| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
| Benjamin Peterson | 7497e91 | 2010-10-16 00:53:39 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 85556 . | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.65 for python 2.7. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # | 
| Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8 | # | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | 
|  | 11 | # Inc. | 
|  | 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 | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16 | ## -------------------- ## | 
|  | 17 | ## M4sh Initialization. ## | 
|  | 18 | ## -------------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20 | # Be more Bourne compatible | 
|  | 21 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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 | a0bea5d | 2010-05-08 10:00:28 +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+"$@"}'='"$@"' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28 | setopt NO_GLOB_SUBST | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 30 | case `(set -o) 2>/dev/null` in #( | 
|  | 31 | *posix*) : | 
|  | 32 | set -o posix ;; #( | 
|  | 33 | *) : | 
|  | 34 | ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 35 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | fi | 
|  | 37 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 38 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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 | a0bea5d | 2010-05-08 10:00:28 +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 | } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 84 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 85 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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.) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 95 | case $0 in #(( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 103 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 104 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 105 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 115 | exit 1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 116 | fi | 
|  | 117 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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 || : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 125 | done | 
|  | 126 | PS1='$ ' | 
|  | 127 | PS2='> ' | 
|  | 128 | PS4='+ ' | 
|  | 129 |  | 
|  | 130 | # NLS nuisances. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 131 | LC_ALL=C | 
|  | 132 | export LC_ALL | 
|  | 133 | LANGUAGE=C | 
|  | 134 | export LANGUAGE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 135 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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 | 
|  | 224 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | 
|  | 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" | 
|  | 323 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | 
|  | 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 |  | 
|  | 363 | # as_fn_error ERROR [LINENO LOG_FD] | 
|  | 364 | # --------------------------------- | 
|  | 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 | 
|  | 367 | # script with status $?, using 1 if that was 0. | 
|  | 368 | as_fn_error () | 
|  | 369 | { | 
|  | 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 | 
|  | 374 | fi | 
|  | 375 | $as_echo "$as_me: error: $1" >&2 | 
|  | 376 | as_fn_exit $as_status | 
|  | 377 | } # as_fn_error | 
|  | 378 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 397 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 402 | $as_echo X/"$0" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 423 |  | 
|  | 424 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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.  :-) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 ' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 443 | s/-\n.*// | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 444 | ' >$as_me.lineno && | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 445 | chmod +x "$as_me.lineno" || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 456 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 457 | case `echo -n x` in #((((( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 458 | -n*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 459 | case `echo 'xy\c'` in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 460 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 461 | xy)  ECHO_C='\c';; | 
|  | 462 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 463 | ECHO_T='	';; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 474 | mkdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 475 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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 | a0bea5d | 2010-05-08 10:00:28 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +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 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 514 | test -d "$1/."; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 515 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 516 | case $1 in #( | 
|  | 517 | -*)set "./$1";; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 518 | esac; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 519 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +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. | 
|  | 537 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | 
|  | 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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 545 | ac_clean_files= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 546 | ac_config_libobj_dir=. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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' | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 556 | PACKAGE_VERSION='2.7' | 
|  | 557 | PACKAGE_STRING='python 2.7' | 
| Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 558 | PACKAGE_BUGREPORT='http://bugs.python.org/' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +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> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | #endif | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 598 | ac_subst_vars='LTLIBOBJS | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 599 | SRCDIRS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 600 | THREADHEADERS | 
|  | 601 | UNICODE_OBJS | 
|  | 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 | 
|  | 634 | LN | 
|  | 635 | INSTALL_DATA | 
|  | 636 | INSTALL_SCRIPT | 
|  | 637 | INSTALL_PROGRAM | 
|  | 638 | SVNVERSION | 
|  | 639 | ARFLAGS | 
|  | 640 | AR | 
|  | 641 | RANLIB | 
|  | 642 | GNULD | 
|  | 643 | LINKCC | 
|  | 644 | RUNSHARED | 
|  | 645 | INSTSONAME | 
|  | 646 | LDLIBRARYDIR | 
|  | 647 | BLDLIBRARY | 
|  | 648 | DLLLIBRARY | 
|  | 649 | LDLIBRARY | 
|  | 650 | LIBRARY | 
|  | 651 | BUILDEXEEXT | 
|  | 652 | EGREP | 
|  | 653 | GREP | 
|  | 654 | CPP | 
|  | 655 | MAINCC | 
|  | 656 | CXX | 
|  | 657 | OBJEXT | 
|  | 658 | EXEEXT | 
|  | 659 | ac_ct_CC | 
|  | 660 | CPPFLAGS | 
|  | 661 | LDFLAGS | 
|  | 662 | CFLAGS | 
|  | 663 | CC | 
|  | 664 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
|  | 665 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
|  | 666 | EXTRAMACHDEPPATH | 
|  | 667 | EXTRAPLATDIR | 
|  | 668 | SGI_ABI | 
|  | 669 | MACHDEP | 
|  | 670 | FRAMEWORKINSTALLAPPSPREFIX | 
|  | 671 | FRAMEWORKUNIXTOOLSPREFIX | 
|  | 672 | FRAMEWORKALTINSTALLLAST | 
|  | 673 | FRAMEWORKALTINSTALLFIRST | 
|  | 674 | FRAMEWORKINSTALLLAST | 
|  | 675 | FRAMEWORKINSTALLFIRST | 
|  | 676 | PYTHONFRAMEWORKINSTALLDIR | 
|  | 677 | PYTHONFRAMEWORKPREFIX | 
|  | 678 | PYTHONFRAMEWORKDIR | 
|  | 679 | PYTHONFRAMEWORKIDENTIFIER | 
|  | 680 | PYTHONFRAMEWORK | 
|  | 681 | LIPO_32BIT_FLAGS | 
|  | 682 | ARCH_RUN_32BIT | 
|  | 683 | UNIVERSALSDK | 
|  | 684 | CONFIG_ARGS | 
|  | 685 | SOVERSION | 
|  | 686 | VERSION | 
|  | 687 | target_alias | 
|  | 688 | host_alias | 
|  | 689 | build_alias | 
|  | 690 | LIBS | 
|  | 691 | ECHO_T | 
|  | 692 | ECHO_N | 
|  | 693 | ECHO_C | 
|  | 694 | DEFS | 
|  | 695 | mandir | 
|  | 696 | localedir | 
|  | 697 | libdir | 
|  | 698 | psdir | 
|  | 699 | pdfdir | 
|  | 700 | dvidir | 
|  | 701 | htmldir | 
|  | 702 | infodir | 
|  | 703 | docdir | 
|  | 704 | oldincludedir | 
|  | 705 | includedir | 
|  | 706 | localstatedir | 
|  | 707 | sharedstatedir | 
|  | 708 | sysconfdir | 
|  | 709 | datadir | 
|  | 710 | datarootdir | 
|  | 711 | libexecdir | 
|  | 712 | sbindir | 
|  | 713 | bindir | 
|  | 714 | program_transform_name | 
|  | 715 | prefix | 
|  | 716 | exec_prefix | 
|  | 717 | PACKAGE_URL | 
|  | 718 | PACKAGE_BUGREPORT | 
|  | 719 | PACKAGE_STRING | 
|  | 720 | PACKAGE_VERSION | 
|  | 721 | PACKAGE_TARNAME | 
|  | 722 | PACKAGE_NAME | 
|  | 723 | PATH_SEPARATOR | 
|  | 724 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 725 | ac_subst_files='' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 726 | ac_user_opts=' | 
|  | 727 | enable_option_checking | 
|  | 728 | enable_universalsdk | 
|  | 729 | with_universal_archs | 
|  | 730 | with_framework_name | 
|  | 731 | enable_framework | 
|  | 732 | with_gcc | 
|  | 733 | with_cxx_main | 
|  | 734 | with_suffix | 
|  | 735 | enable_shared | 
|  | 736 | enable_profiling | 
|  | 737 | with_pydebug | 
|  | 738 | enable_toolbox_glue | 
|  | 739 | with_libs | 
|  | 740 | with_system_expat | 
|  | 741 | with_system_ffi | 
|  | 742 | with_dbmliborder | 
|  | 743 | with_signal_module | 
|  | 744 | with_dec_threads | 
|  | 745 | with_threads | 
|  | 746 | with_thread | 
|  | 747 | with_pth | 
|  | 748 | enable_ipv6 | 
|  | 749 | with_doc_strings | 
|  | 750 | with_tsc | 
|  | 751 | with_pymalloc | 
|  | 752 | with_valgrind | 
|  | 753 | with_wctype_functions | 
|  | 754 | with_fpectl | 
|  | 755 | with_libm | 
|  | 756 | with_libc | 
|  | 757 | enable_big_digits | 
|  | 758 | enable_unicode | 
|  | 759 | ' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 760 | ac_precious_vars='build_alias | 
|  | 761 | host_alias | 
|  | 762 | target_alias | 
|  | 763 | CC | 
|  | 764 | CFLAGS | 
|  | 765 | LDFLAGS | 
|  | 766 | LIBS | 
|  | 767 | CPPFLAGS | 
|  | 768 | CPP' | 
|  | 769 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 770 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 771 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 772 | ac_init_help= | 
|  | 773 | ac_init_version=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 774 | ac_unrecognized_opts= | 
|  | 775 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 776 | # The variables have the same names as the options, with | 
|  | 777 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 778 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 779 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 780 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 781 | no_recursion= | 
|  | 782 | prefix=NONE | 
|  | 783 | program_prefix=NONE | 
|  | 784 | program_suffix=NONE | 
|  | 785 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 786 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 787 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 788 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 789 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 790 | x_includes=NONE | 
|  | 791 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 792 |  | 
|  | 793 | # Installation directory options. | 
|  | 794 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
|  | 795 | # and all the variables that are supposed to be based on exec_prefix | 
|  | 796 | # by default will actually change. | 
|  | 797 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 798 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 799 | bindir='${exec_prefix}/bin' | 
|  | 800 | sbindir='${exec_prefix}/sbin' | 
|  | 801 | libexecdir='${exec_prefix}/libexec' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 802 | datarootdir='${prefix}/share' | 
|  | 803 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 804 | sysconfdir='${prefix}/etc' | 
|  | 805 | sharedstatedir='${prefix}/com' | 
|  | 806 | localstatedir='${prefix}/var' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 807 | includedir='${prefix}/include' | 
|  | 808 | oldincludedir='/usr/include' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 809 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
|  | 810 | infodir='${datarootdir}/info' | 
|  | 811 | htmldir='${docdir}' | 
|  | 812 | dvidir='${docdir}' | 
|  | 813 | pdfdir='${docdir}' | 
|  | 814 | psdir='${docdir}' | 
|  | 815 | libdir='${exec_prefix}/lib' | 
|  | 816 | localedir='${datarootdir}/locale' | 
|  | 817 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 818 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 819 | ac_prev= | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 820 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 821 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 822 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 823 | # If the previous option needs an argument, assign it. | 
|  | 824 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 825 | eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 826 | ac_prev= | 
|  | 827 | continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 828 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 829 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 830 | case $ac_option in | 
|  | 831 | *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
|  | 832 | *)	ac_optarg=yes ;; | 
|  | 833 | esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 834 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 835 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|  | 836 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 837 | case $ac_dashdash$ac_option in | 
|  | 838 | --) | 
|  | 839 | ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 840 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 841 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|  | 842 | ac_prev=bindir ;; | 
|  | 843 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 844 | bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 845 |  | 
|  | 846 | -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 847 | ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 848 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 849 | build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 850 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 851 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 852 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 853 | ac_prev=cache_file ;; | 
|  | 854 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 855 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 856 | cache_file=$ac_optarg ;; | 
|  | 857 |  | 
|  | 858 | --config-cache | -C) | 
|  | 859 | cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 860 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 861 | -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 862 | ac_prev=datadir ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 863 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 864 | datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 865 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 866 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
|  | 867 | | --dataroo | --dataro | --datar) | 
|  | 868 | ac_prev=datarootdir ;; | 
|  | 869 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
|  | 870 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
|  | 871 | datarootdir=$ac_optarg ;; | 
|  | 872 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 873 | -disable-* | --disable-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 874 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 875 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 876 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
|  | 877 | as_fn_error "invalid feature name: $ac_useropt" | 
|  | 878 | ac_useropt_orig=$ac_useropt | 
|  | 879 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 880 | case $ac_user_opts in | 
|  | 881 | *" | 
|  | 882 | "enable_$ac_useropt" | 
|  | 883 | "*) ;; | 
|  | 884 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
|  | 885 | ac_unrecognized_sep=', ';; | 
|  | 886 | esac | 
|  | 887 | eval enable_$ac_useropt=no ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 888 |  | 
|  | 889 | -docdir | --docdir | --docdi | --doc | --do) | 
|  | 890 | ac_prev=docdir ;; | 
|  | 891 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
|  | 892 | docdir=$ac_optarg ;; | 
|  | 893 |  | 
|  | 894 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
|  | 895 | ac_prev=dvidir ;; | 
|  | 896 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
|  | 897 | dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 898 |  | 
|  | 899 | -enable-* | --enable-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 900 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 901 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 902 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
|  | 903 | as_fn_error "invalid feature name: $ac_useropt" | 
|  | 904 | ac_useropt_orig=$ac_useropt | 
|  | 905 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 906 | case $ac_user_opts in | 
|  | 907 | *" | 
|  | 908 | "enable_$ac_useropt" | 
|  | 909 | "*) ;; | 
|  | 910 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
|  | 911 | ac_unrecognized_sep=', ';; | 
|  | 912 | esac | 
|  | 913 | eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 914 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 915 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|  | 916 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|  | 917 | | --exec | --exe | --ex) | 
|  | 918 | ac_prev=exec_prefix ;; | 
|  | 919 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|  | 920 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|  | 921 | | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 922 | exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 923 |  | 
|  | 924 | -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 925 | # Obsolete; use --with-gas. | 
|  | 926 | with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 927 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 928 | -help | --help | --hel | --he | -h) | 
|  | 929 | ac_init_help=long ;; | 
|  | 930 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
|  | 931 | ac_init_help=recursive ;; | 
|  | 932 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
|  | 933 | ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 934 |  | 
|  | 935 | -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 936 | ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 937 | -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 938 | host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 939 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 940 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
|  | 941 | ac_prev=htmldir ;; | 
|  | 942 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
|  | 943 | | --ht=*) | 
|  | 944 | htmldir=$ac_optarg ;; | 
|  | 945 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 946 | -includedir | --includedir | --includedi | --included | --include \ | 
|  | 947 | | --includ | --inclu | --incl | --inc) | 
|  | 948 | ac_prev=includedir ;; | 
|  | 949 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|  | 950 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 951 | includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 952 |  | 
|  | 953 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|  | 954 | ac_prev=infodir ;; | 
|  | 955 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 956 | infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 957 |  | 
|  | 958 | -libdir | --libdir | --libdi | --libd) | 
|  | 959 | ac_prev=libdir ;; | 
|  | 960 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 961 | libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 962 |  | 
|  | 963 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|  | 964 | | --libexe | --libex | --libe) | 
|  | 965 | ac_prev=libexecdir ;; | 
|  | 966 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|  | 967 | | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 968 | libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 969 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 970 | -localedir | --localedir | --localedi | --localed | --locale) | 
|  | 971 | ac_prev=localedir ;; | 
|  | 972 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
|  | 973 | localedir=$ac_optarg ;; | 
|  | 974 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 975 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 976 | | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 977 | ac_prev=localstatedir ;; | 
|  | 978 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 979 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 980 | localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 981 |  | 
|  | 982 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|  | 983 | ac_prev=mandir ;; | 
|  | 984 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 985 | mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 986 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 987 | -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 988 | # Obsolete; use --without-fp. | 
|  | 989 | with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 990 |  | 
|  | 991 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 992 | | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 993 | no_create=yes ;; | 
|  | 994 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 995 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|  | 996 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|  | 997 | no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 998 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 999 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|  | 1000 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|  | 1001 | | --oldin | --oldi | --old | --ol | --o) | 
|  | 1002 | ac_prev=oldincludedir ;; | 
|  | 1003 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|  | 1004 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|  | 1005 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1006 | oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1007 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1008 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 1009 | ac_prev=prefix ;; | 
|  | 1010 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1011 | prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1012 |  | 
|  | 1013 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|  | 1014 | | --program-pre | --program-pr | --program-p) | 
|  | 1015 | ac_prev=program_prefix ;; | 
|  | 1016 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|  | 1017 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1018 | program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1019 |  | 
|  | 1020 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|  | 1021 | | --program-suf | --program-su | --program-s) | 
|  | 1022 | ac_prev=program_suffix ;; | 
|  | 1023 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|  | 1024 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1025 | program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1026 |  | 
|  | 1027 | -program-transform-name | --program-transform-name \ | 
|  | 1028 | | --program-transform-nam | --program-transform-na \ | 
|  | 1029 | | --program-transform-n | --program-transform- \ | 
|  | 1030 | | --program-transform | --program-transfor \ | 
|  | 1031 | | --program-transfo | --program-transf \ | 
|  | 1032 | | --program-trans | --program-tran \ | 
|  | 1033 | | --progr-tra | --program-tr | --program-t) | 
|  | 1034 | ac_prev=program_transform_name ;; | 
|  | 1035 | -program-transform-name=* | --program-transform-name=* \ | 
|  | 1036 | | --program-transform-nam=* | --program-transform-na=* \ | 
|  | 1037 | | --program-transform-n=* | --program-transform-=* \ | 
|  | 1038 | | --program-transform=* | --program-transfor=* \ | 
|  | 1039 | | --program-transfo=* | --program-transf=* \ | 
|  | 1040 | | --program-trans=* | --program-tran=* \ | 
|  | 1041 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1042 | program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1043 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1044 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
|  | 1045 | ac_prev=pdfdir ;; | 
|  | 1046 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
|  | 1047 | pdfdir=$ac_optarg ;; | 
|  | 1048 |  | 
|  | 1049 | -psdir | --psdir | --psdi | --psd | --ps) | 
|  | 1050 | ac_prev=psdir ;; | 
|  | 1051 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
|  | 1052 | psdir=$ac_optarg ;; | 
|  | 1053 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1054 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 1055 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 1056 | silent=yes ;; | 
|  | 1057 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1058 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|  | 1059 | ac_prev=sbindir ;; | 
|  | 1060 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|  | 1061 | | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1062 | sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1063 |  | 
|  | 1064 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|  | 1065 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|  | 1066 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|  | 1067 | | --sha | --sh) | 
|  | 1068 | ac_prev=sharedstatedir ;; | 
|  | 1069 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|  | 1070 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|  | 1071 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|  | 1072 | | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1073 | sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1074 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1075 | -site | --site | --sit) | 
|  | 1076 | ac_prev=site ;; | 
|  | 1077 | -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1078 | site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1079 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1080 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 1081 | ac_prev=srcdir ;; | 
|  | 1082 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1083 | srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1084 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1085 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|  | 1086 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|  | 1087 | ac_prev=sysconfdir ;; | 
|  | 1088 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|  | 1089 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1090 | sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1091 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1092 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1093 | ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1094 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1095 | target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1096 |  | 
|  | 1097 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|  | 1098 | verbose=yes ;; | 
|  | 1099 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1100 | -version | --version | --versio | --versi | --vers | -V) | 
|  | 1101 | ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1102 |  | 
|  | 1103 | -with-* | --with-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1104 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1105 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1106 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
|  | 1107 | as_fn_error "invalid package name: $ac_useropt" | 
|  | 1108 | ac_useropt_orig=$ac_useropt | 
|  | 1109 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1110 | case $ac_user_opts in | 
|  | 1111 | *" | 
|  | 1112 | "with_$ac_useropt" | 
|  | 1113 | "*) ;; | 
|  | 1114 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
|  | 1115 | ac_unrecognized_sep=', ';; | 
|  | 1116 | esac | 
|  | 1117 | eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1118 |  | 
|  | 1119 | -without-* | --without-*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1120 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1121 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1122 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
|  | 1123 | as_fn_error "invalid package name: $ac_useropt" | 
|  | 1124 | ac_useropt_orig=$ac_useropt | 
|  | 1125 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1126 | case $ac_user_opts in | 
|  | 1127 | *" | 
|  | 1128 | "with_$ac_useropt" | 
|  | 1129 | "*) ;; | 
|  | 1130 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
|  | 1131 | ac_unrecognized_sep=', ';; | 
|  | 1132 | esac | 
|  | 1133 | eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1134 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1135 | --x) | 
|  | 1136 | # Obsolete; use --with-x. | 
|  | 1137 | with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1138 |  | 
|  | 1139 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|  | 1140 | | --x-incl | --x-inc | --x-in | --x-i) | 
|  | 1141 | ac_prev=x_includes ;; | 
|  | 1142 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|  | 1143 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1144 | x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1145 |  | 
|  | 1146 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|  | 1147 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|  | 1148 | ac_prev=x_libraries ;; | 
|  | 1149 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|  | 1150 | | --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] | 1151 | x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1152 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1153 | -*) as_fn_error "unrecognized option: \`$ac_option' | 
|  | 1154 | Try \`$0 --help' for more information." | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1155 | ;; | 
|  | 1156 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1157 | *=*) | 
|  | 1158 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
|  | 1159 | # Reject names that are not valid shell variable names. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1160 | case $ac_envvar in #( | 
|  | 1161 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
|  | 1162 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | 
|  | 1163 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1164 | eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1165 | export $ac_envvar ;; | 
|  | 1166 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1167 | *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1168 | # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1169 | $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] | 1170 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1171 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1172 | : ${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] | 1173 | ;; | 
|  | 1174 |  | 
|  | 1175 | esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1176 | done | 
|  | 1177 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1178 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1179 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1180 | as_fn_error "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1181 | fi | 
|  | 1182 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1183 | if test -n "$ac_unrecognized_opts"; then | 
|  | 1184 | case $enable_option_checking in | 
|  | 1185 | no) ;; | 
|  | 1186 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | 
|  | 1187 | *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
|  | 1188 | esac | 
|  | 1189 | fi | 
|  | 1190 |  | 
|  | 1191 | # Check all directory arguments for consistency. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1192 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
|  | 1193 | datadir sysconfdir sharedstatedir localstatedir includedir \ | 
|  | 1194 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
|  | 1195 | libdir localedir mandir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1196 | do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1197 | eval ac_val=\$$ac_var | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1198 | # Remove trailing slashes. | 
|  | 1199 | case $ac_val in | 
|  | 1200 | */ ) | 
|  | 1201 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
|  | 1202 | eval $ac_var=\$ac_val;; | 
|  | 1203 | esac | 
|  | 1204 | # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1205 | case $ac_val in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1206 | [\\/$]* | ?:[\\/]* )  continue;; | 
|  | 1207 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1208 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1209 | 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] | 1210 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1211 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1212 | # There might be people who depend on the old broken behavior: `$host' | 
|  | 1213 | # used to hold the argument of --host etc. | 
|  | 1214 | # FIXME: To remove some day. | 
|  | 1215 | build=$build_alias | 
|  | 1216 | host=$host_alias | 
|  | 1217 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1218 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1219 | # FIXME: To remove some day. | 
|  | 1220 | if test "x$host_alias" != x; then | 
|  | 1221 | if test "x$build_alias" = x; then | 
|  | 1222 | cross_compiling=maybe | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1223 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1224 | If a cross compiler is detected then cross compile mode will be used." >&2 | 
|  | 1225 | elif test "x$build_alias" != "x$host_alias"; then | 
|  | 1226 | cross_compiling=yes | 
|  | 1227 | fi | 
|  | 1228 | fi | 
|  | 1229 |  | 
|  | 1230 | ac_tool_prefix= | 
|  | 1231 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
|  | 1232 |  | 
|  | 1233 | test "$silent" = yes && exec 6>/dev/null | 
|  | 1234 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1235 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1236 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
|  | 1237 | ac_ls_di=`ls -di .` && | 
|  | 1238 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1239 | as_fn_error "working directory cannot be determined" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1240 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1241 | as_fn_error "pwd does not report name of working directory" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1242 |  | 
|  | 1243 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1244 | # Find the source files, if location was not specified. | 
|  | 1245 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1246 | ac_srcdir_defaulted=yes | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1247 | # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1248 | ac_confdir=`$as_dirname -- "$as_myself" || | 
|  | 1249 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 1250 | X"$as_myself" : 'X\(//\)[^/]' \| \ | 
|  | 1251 | X"$as_myself" : 'X\(//\)$' \| \ | 
|  | 1252 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 1253 | $as_echo X"$as_myself" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1254 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 1255 | s//\1/ | 
|  | 1256 | q | 
|  | 1257 | } | 
|  | 1258 | /^X\(\/\/\)[^/].*/{ | 
|  | 1259 | s//\1/ | 
|  | 1260 | q | 
|  | 1261 | } | 
|  | 1262 | /^X\(\/\/\)$/{ | 
|  | 1263 | s//\1/ | 
|  | 1264 | q | 
|  | 1265 | } | 
|  | 1266 | /^X\(\/\).*/{ | 
|  | 1267 | s//\1/ | 
|  | 1268 | q | 
|  | 1269 | } | 
|  | 1270 | s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1271 | srcdir=$ac_confdir | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1272 | if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1273 | srcdir=.. | 
|  | 1274 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1275 | else | 
|  | 1276 | ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1277 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1278 | if test ! -r "$srcdir/$ac_unique_file"; then | 
|  | 1279 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1280 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1281 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1282 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
|  | 1283 | ac_abs_confdir=`( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1284 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1285 | pwd)` | 
|  | 1286 | # When building in place, set srcdir=. | 
|  | 1287 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
|  | 1288 | srcdir=. | 
|  | 1289 | fi | 
|  | 1290 | # Remove unnecessary trailing slashes from srcdir. | 
|  | 1291 | # Double slashes in file names in object file debugging info | 
|  | 1292 | # mess up M-x gdb in Emacs. | 
|  | 1293 | case $srcdir in | 
|  | 1294 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
|  | 1295 | esac | 
|  | 1296 | for ac_var in $ac_precious_vars; do | 
|  | 1297 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1298 | eval ac_env_${ac_var}_value=\$${ac_var} | 
|  | 1299 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1300 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
|  | 1301 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1302 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1303 | # | 
|  | 1304 | # Report the --help message. | 
|  | 1305 | # | 
|  | 1306 | if test "$ac_init_help" = "long"; then | 
|  | 1307 | # Omit some internal or obsolete options to make the list less imposing. | 
|  | 1308 | # This message is too long to be a string in the A/UX 3.1 sh. | 
|  | 1309 | cat <<_ACEOF | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1310 | \`configure' configures python 2.7 to adapt to many kinds of systems. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1311 |  | 
|  | 1312 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
|  | 1313 |  | 
|  | 1314 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
|  | 1315 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
|  | 1316 |  | 
|  | 1317 | Defaults for the options are specified in brackets. | 
|  | 1318 |  | 
|  | 1319 | Configuration: | 
|  | 1320 | -h, --help              display this help and exit | 
|  | 1321 | --help=short        display options specific to this package | 
|  | 1322 | --help=recursive    display the short help of all the included packages | 
|  | 1323 | -V, --version           display version information and exit | 
|  | 1324 | -q, --quiet, --silent   do not print \`checking...' messages | 
|  | 1325 | --cache-file=FILE   cache test results in FILE [disabled] | 
|  | 1326 | -C, --config-cache      alias for \`--cache-file=config.cache' | 
|  | 1327 | -n, --no-create         do not create output files | 
|  | 1328 | --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
|  | 1329 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1330 | Installation directories: | 
|  | 1331 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1332 | [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1333 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1334 | [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1335 |  | 
|  | 1336 | By default, \`make install' will install all the files in | 
|  | 1337 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
|  | 1338 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
|  | 1339 | for instance \`--prefix=\$HOME'. | 
|  | 1340 |  | 
|  | 1341 | For better control, use the options below. | 
|  | 1342 |  | 
|  | 1343 | Fine tuning of the installation directories: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1344 | --bindir=DIR            user executables [EPREFIX/bin] | 
|  | 1345 | --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
|  | 1346 | --libexecdir=DIR        program executables [EPREFIX/libexec] | 
|  | 1347 | --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
|  | 1348 | --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
|  | 1349 | --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
|  | 1350 | --libdir=DIR            object code libraries [EPREFIX/lib] | 
|  | 1351 | --includedir=DIR        C header files [PREFIX/include] | 
|  | 1352 | --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
|  | 1353 | --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
|  | 1354 | --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
|  | 1355 | --infodir=DIR           info documentation [DATAROOTDIR/info] | 
|  | 1356 | --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
|  | 1357 | --mandir=DIR            man documentation [DATAROOTDIR/man] | 
|  | 1358 | --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
|  | 1359 | --htmldir=DIR           html documentation [DOCDIR] | 
|  | 1360 | --dvidir=DIR            dvi documentation [DOCDIR] | 
|  | 1361 | --pdfdir=DIR            pdf documentation [DOCDIR] | 
|  | 1362 | --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1363 | _ACEOF | 
|  | 1364 |  | 
|  | 1365 | cat <<\_ACEOF | 
|  | 1366 | _ACEOF | 
|  | 1367 | fi | 
|  | 1368 |  | 
|  | 1369 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1370 | case $ac_init_help in | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1371 | short | recursive ) echo "Configuration of python 2.7:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1372 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1373 | cat <<\_ACEOF | 
|  | 1374 |  | 
|  | 1375 | Optional Features: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1376 | --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1377 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|  | 1378 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1379 | --enable-universalsdk[=SDKDIR] | 
| Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1380 | Build against Mac OS X 10.4u SDK (ppc/i386) | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1381 | --enable-framework[=INSTALLDIR] | 
|  | 1382 | Build (MacOSX|Darwin) framework | 
|  | 1383 | --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1384 | --enable-profiling      enable C-level code profiling | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1385 | --enable-toolbox-glue   disable/enable MacOSX glue code for extensions | 
|  | 1386 | --enable-ipv6           Enable ipv6 (with ipv4) support | 
|  | 1387 | --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1388 | --enable-big-digits[=BITS] | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1389 | use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1390 | --enable-unicode[=ucs[24]] | 
| Benjamin Peterson | 66556b0 | 2010-05-25 02:23:32 +0000 | [diff] [blame] | 1391 | Enable Unicode strings (default is ucs2) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 |  | 
|  | 1393 | Optional Packages: | 
|  | 1394 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|  | 1395 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1396 | --with-universal-archs=ARCH | 
|  | 1397 | select architectures for universal build ("32-bit", | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 1398 | "64-bit", "3-way", "intel" or "all") | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1399 | --with-framework-name=FRAMEWORK | 
|  | 1400 | specify an alternate name of the framework built | 
|  | 1401 | with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1402 | --without-gcc           never use gcc | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1403 | --with-cxx-main=<compiler> | 
|  | 1404 | compile main() and link python executable with C++ | 
|  | 1405 | compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1406 | --with-suffix=.exe      set executable suffix | 
|  | 1407 | --with-pydebug          build with Py_DEBUG defined | 
|  | 1408 | --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 1409 | --with-system-expat     build pyexpat module using an installed expat | 
|  | 1410 | library | 
| Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1411 | --with-system-ffi       build _ctypes module using an installed ffi library | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1412 | --with-dbmliborder=db1:db2:... | 
|  | 1413 | order to check db backends for dbm. Valid value is a | 
|  | 1414 | colon separated string with the backend names | 
|  | 1415 | `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1416 | --with-signal-module    disable/enable signal module | 
|  | 1417 | --with-dec-threads      use DEC Alpha/OSF1 thread-safe libraries | 
|  | 1418 | --with(out)-threads[=DIRECTORY] | 
|  | 1419 | disable/enable thread support | 
|  | 1420 | --with(out)-thread[=DIRECTORY] | 
|  | 1421 | deprecated; use --with(out)-threads | 
|  | 1422 | --with-pth              use GNU pth threading libraries | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1423 | --with(out)-doc-strings disable/enable documentation strings | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1424 | --with(out)-tsc         enable/disable timestamp counter profile | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1425 | --with(out)-pymalloc    disable/enable specialized mallocs | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 1426 | --with-valgrind         Enable Valgrind support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1427 | --with-wctype-functions use wctype.h functions | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1428 | --with-fpectl           enable SIGFPE catching | 
|  | 1429 | --with-libm=STRING      math library | 
|  | 1430 | --with-libc=STRING      C library | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1431 |  | 
|  | 1432 | Some influential environment variables: | 
|  | 1433 | CC          C compiler command | 
|  | 1434 | CFLAGS      C compiler flags | 
|  | 1435 | LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
|  | 1436 | nonstandard directory <lib dir> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1437 | LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1438 | CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1439 | you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1440 | CPP         C preprocessor | 
|  | 1441 |  | 
|  | 1442 | Use these variables to override the choices made by `configure' or to help | 
|  | 1443 | it to find libraries and programs with nonstandard names/locations. | 
|  | 1444 |  | 
| Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1445 | Report bugs to <http://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1447 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1448 | fi | 
|  | 1449 |  | 
|  | 1450 | if test "$ac_init_help" = "recursive"; then | 
|  | 1451 | # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1452 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1453 | test -d "$ac_dir" || | 
|  | 1454 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
|  | 1455 | continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1456 | ac_builddir=. | 
|  | 1457 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1458 | case "$ac_dir" in | 
|  | 1459 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1460 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1461 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1462 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1463 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1464 | case $ac_top_builddir_sub in | 
|  | 1465 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1466 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 1467 | esac ;; | 
|  | 1468 | esac | 
|  | 1469 | ac_abs_top_builddir=$ac_pwd | 
|  | 1470 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 1471 | # for backward compatibility: | 
|  | 1472 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1473 |  | 
|  | 1474 | case $srcdir in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1475 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1476 | ac_srcdir=. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1477 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 1478 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 1479 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1480 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1481 | ac_top_srcdir=$srcdir | 
|  | 1482 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 1483 | *) # Relative name. | 
|  | 1484 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 1485 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 1486 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1487 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1488 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1489 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1490 | cd "$ac_dir" || { ac_status=$?; continue; } | 
|  | 1491 | # Check for guested configure. | 
|  | 1492 | if test -f "$ac_srcdir/configure.gnu"; then | 
|  | 1493 | echo && | 
|  | 1494 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
|  | 1495 | elif test -f "$ac_srcdir/configure"; then | 
|  | 1496 | echo && | 
|  | 1497 | $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1498 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1499 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1500 | fi || ac_status=$? | 
|  | 1501 | cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1502 | done | 
|  | 1503 | fi | 
|  | 1504 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1505 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1506 | if $ac_init_version; then | 
|  | 1507 | cat <<\_ACEOF | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1508 | python configure 2.7 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1509 | generated by GNU Autoconf 2.65 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1510 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1511 | Copyright (C) 2009 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1512 | This configure script is free software; the Free Software Foundation | 
|  | 1513 | gives unlimited permission to copy, distribute and modify it. | 
|  | 1514 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1515 | exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1516 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1517 |  | 
|  | 1518 | ## ------------------------ ## | 
|  | 1519 | ## Autoconf initialization. ## | 
|  | 1520 | ## ------------------------ ## | 
|  | 1521 |  | 
|  | 1522 | # ac_fn_c_try_compile LINENO | 
|  | 1523 | # -------------------------- | 
|  | 1524 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
|  | 1525 | ac_fn_c_try_compile () | 
|  | 1526 | { | 
|  | 1527 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1528 | rm -f conftest.$ac_objext | 
|  | 1529 | if { { ac_try="$ac_compile" | 
|  | 1530 | case "(($ac_try" in | 
|  | 1531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1532 | *) ac_try_echo=$ac_try;; | 
|  | 1533 | esac | 
|  | 1534 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1535 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1536 | (eval "$ac_compile") 2>conftest.err | 
|  | 1537 | ac_status=$? | 
|  | 1538 | if test -s conftest.err; then | 
|  | 1539 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1540 | cat conftest.er1 >&5 | 
|  | 1541 | mv -f conftest.er1 conftest.err | 
|  | 1542 | fi | 
|  | 1543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1544 | test $ac_status = 0; } && { | 
|  | 1545 | test -z "$ac_c_werror_flag" || | 
|  | 1546 | test ! -s conftest.err | 
|  | 1547 | } && test -s conftest.$ac_objext; then : | 
|  | 1548 | ac_retval=0 | 
|  | 1549 | else | 
|  | 1550 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1551 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1552 |  | 
|  | 1553 | ac_retval=1 | 
|  | 1554 | fi | 
|  | 1555 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 1556 | as_fn_set_status $ac_retval | 
|  | 1557 |  | 
|  | 1558 | } # ac_fn_c_try_compile | 
|  | 1559 |  | 
|  | 1560 | # ac_fn_c_try_cpp LINENO | 
|  | 1561 | # ---------------------- | 
|  | 1562 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
|  | 1563 | ac_fn_c_try_cpp () | 
|  | 1564 | { | 
|  | 1565 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1566 | if { { ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 1567 | case "(($ac_try" in | 
|  | 1568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1569 | *) ac_try_echo=$ac_try;; | 
|  | 1570 | esac | 
|  | 1571 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1572 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1573 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
|  | 1574 | ac_status=$? | 
|  | 1575 | if test -s conftest.err; then | 
|  | 1576 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1577 | cat conftest.er1 >&5 | 
|  | 1578 | mv -f conftest.er1 conftest.err | 
|  | 1579 | fi | 
|  | 1580 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1581 | test $ac_status = 0; } >/dev/null && { | 
|  | 1582 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
|  | 1583 | test ! -s conftest.err | 
|  | 1584 | }; then : | 
|  | 1585 | ac_retval=0 | 
|  | 1586 | else | 
|  | 1587 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1588 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1589 |  | 
|  | 1590 | ac_retval=1 | 
|  | 1591 | fi | 
|  | 1592 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 1593 | as_fn_set_status $ac_retval | 
|  | 1594 |  | 
|  | 1595 | } # ac_fn_c_try_cpp | 
|  | 1596 |  | 
|  | 1597 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
|  | 1598 | # ------------------------------------------------------- | 
|  | 1599 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
|  | 1600 | # the include files in INCLUDES and setting the cache variable VAR | 
|  | 1601 | # accordingly. | 
|  | 1602 | ac_fn_c_check_header_mongrel () | 
|  | 1603 | { | 
|  | 1604 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1605 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
|  | 1606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1607 | $as_echo_n "checking for $2... " >&6; } | 
|  | 1608 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
|  | 1609 | $as_echo_n "(cached) " >&6 | 
|  | 1610 | fi | 
|  | 1611 | eval ac_res=\$$3 | 
|  | 1612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1613 | $as_echo "$ac_res" >&6; } | 
|  | 1614 | else | 
|  | 1615 | # Is the header compilable? | 
|  | 1616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
|  | 1617 | $as_echo_n "checking $2 usability... " >&6; } | 
|  | 1618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1619 | /* end confdefs.h.  */ | 
|  | 1620 | $4 | 
|  | 1621 | #include <$2> | 
|  | 1622 | _ACEOF | 
|  | 1623 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1624 | ac_header_compiler=yes | 
|  | 1625 | else | 
|  | 1626 | ac_header_compiler=no | 
|  | 1627 | fi | 
|  | 1628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
|  | 1630 | $as_echo "$ac_header_compiler" >&6; } | 
|  | 1631 |  | 
|  | 1632 | # Is the header present? | 
|  | 1633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
|  | 1634 | $as_echo_n "checking $2 presence... " >&6; } | 
|  | 1635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1636 | /* end confdefs.h.  */ | 
|  | 1637 | #include <$2> | 
|  | 1638 | _ACEOF | 
|  | 1639 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 1640 | ac_header_preproc=yes | 
|  | 1641 | else | 
|  | 1642 | ac_header_preproc=no | 
|  | 1643 | fi | 
|  | 1644 | rm -f conftest.err conftest.$ac_ext | 
|  | 1645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
|  | 1646 | $as_echo "$ac_header_preproc" >&6; } | 
|  | 1647 |  | 
|  | 1648 | # So?  What about this header? | 
|  | 1649 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
|  | 1650 | yes:no: ) | 
|  | 1651 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 1652 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 1653 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1654 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
|  | 1655 | ;; | 
|  | 1656 | no:yes:* ) | 
|  | 1657 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
|  | 1658 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
|  | 1659 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
|  | 1660 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
|  | 1661 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
|  | 1662 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
|  | 1663 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 1664 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 1665 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 1666 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
|  | 1667 | ( cat <<\_ASBOX | 
|  | 1668 | ## -------------------------------------- ## | 
|  | 1669 | ## Report this to http://bugs.python.org/ ## | 
|  | 1670 | ## -------------------------------------- ## | 
|  | 1671 | _ASBOX | 
|  | 1672 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 1673 | ;; | 
|  | 1674 | esac | 
|  | 1675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1676 | $as_echo_n "checking for $2... " >&6; } | 
|  | 1677 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
|  | 1678 | $as_echo_n "(cached) " >&6 | 
|  | 1679 | else | 
|  | 1680 | eval "$3=\$ac_header_compiler" | 
|  | 1681 | fi | 
|  | 1682 | eval ac_res=\$$3 | 
|  | 1683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1684 | $as_echo "$ac_res" >&6; } | 
|  | 1685 | fi | 
|  | 1686 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 1687 |  | 
|  | 1688 | } # ac_fn_c_check_header_mongrel | 
|  | 1689 |  | 
|  | 1690 | # ac_fn_c_try_run LINENO | 
|  | 1691 | # ---------------------- | 
|  | 1692 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
|  | 1693 | # that executables *can* be run. | 
|  | 1694 | ac_fn_c_try_run () | 
|  | 1695 | { | 
|  | 1696 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1697 | if { { ac_try="$ac_link" | 
|  | 1698 | case "(($ac_try" in | 
|  | 1699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1700 | *) ac_try_echo=$ac_try;; | 
|  | 1701 | esac | 
|  | 1702 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1703 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1704 | (eval "$ac_link") 2>&5 | 
|  | 1705 | ac_status=$? | 
|  | 1706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1707 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
|  | 1708 | { { case "(($ac_try" in | 
|  | 1709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1710 | *) ac_try_echo=$ac_try;; | 
|  | 1711 | esac | 
|  | 1712 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1713 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1714 | (eval "$ac_try") 2>&5 | 
|  | 1715 | ac_status=$? | 
|  | 1716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1717 | test $ac_status = 0; }; }; then : | 
|  | 1718 | ac_retval=0 | 
|  | 1719 | else | 
|  | 1720 | $as_echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 1721 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1722 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1723 |  | 
|  | 1724 | ac_retval=$ac_status | 
|  | 1725 | fi | 
|  | 1726 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
|  | 1727 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 1728 | as_fn_set_status $ac_retval | 
|  | 1729 |  | 
|  | 1730 | } # ac_fn_c_try_run | 
|  | 1731 |  | 
|  | 1732 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
|  | 1733 | # ------------------------------------------------------- | 
|  | 1734 | # Tests whether HEADER exists and can be compiled using the include files in | 
|  | 1735 | # INCLUDES, setting the cache variable VAR accordingly. | 
|  | 1736 | ac_fn_c_check_header_compile () | 
|  | 1737 | { | 
|  | 1738 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1740 | $as_echo_n "checking for $2... " >&6; } | 
|  | 1741 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
|  | 1742 | $as_echo_n "(cached) " >&6 | 
|  | 1743 | else | 
|  | 1744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1745 | /* end confdefs.h.  */ | 
|  | 1746 | $4 | 
|  | 1747 | #include <$2> | 
|  | 1748 | _ACEOF | 
|  | 1749 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1750 | eval "$3=yes" | 
|  | 1751 | else | 
|  | 1752 | eval "$3=no" | 
|  | 1753 | fi | 
|  | 1754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1755 | fi | 
|  | 1756 | eval ac_res=\$$3 | 
|  | 1757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1758 | $as_echo "$ac_res" >&6; } | 
|  | 1759 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 1760 |  | 
|  | 1761 | } # ac_fn_c_check_header_compile | 
|  | 1762 |  | 
|  | 1763 | # ac_fn_c_try_link LINENO | 
|  | 1764 | # ----------------------- | 
|  | 1765 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
|  | 1766 | ac_fn_c_try_link () | 
|  | 1767 | { | 
|  | 1768 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1769 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 1770 | if { { ac_try="$ac_link" | 
|  | 1771 | case "(($ac_try" in | 
|  | 1772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1773 | *) ac_try_echo=$ac_try;; | 
|  | 1774 | esac | 
|  | 1775 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 1776 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 1777 | (eval "$ac_link") 2>conftest.err | 
|  | 1778 | ac_status=$? | 
|  | 1779 | if test -s conftest.err; then | 
|  | 1780 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 1781 | cat conftest.er1 >&5 | 
|  | 1782 | mv -f conftest.er1 conftest.err | 
|  | 1783 | fi | 
|  | 1784 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 1785 | test $ac_status = 0; } && { | 
|  | 1786 | test -z "$ac_c_werror_flag" || | 
|  | 1787 | test ! -s conftest.err | 
|  | 1788 | } && test -s conftest$ac_exeext && { | 
|  | 1789 | test "$cross_compiling" = yes || | 
|  | 1790 | $as_test_x conftest$ac_exeext | 
|  | 1791 | }; then : | 
|  | 1792 | ac_retval=0 | 
|  | 1793 | else | 
|  | 1794 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 1795 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 1796 |  | 
|  | 1797 | ac_retval=1 | 
|  | 1798 | fi | 
|  | 1799 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
|  | 1800 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
|  | 1801 | # interfere with the next link command; also delete a directory that is | 
|  | 1802 | # left behind by Apple's compiler.  We do this before executing the actions. | 
|  | 1803 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
|  | 1804 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 1805 | as_fn_set_status $ac_retval | 
|  | 1806 |  | 
|  | 1807 | } # ac_fn_c_try_link | 
|  | 1808 |  | 
|  | 1809 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
|  | 1810 | # ------------------------------------------- | 
|  | 1811 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
|  | 1812 | # variable VAR accordingly. | 
|  | 1813 | ac_fn_c_check_type () | 
|  | 1814 | { | 
|  | 1815 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 1817 | $as_echo_n "checking for $2... " >&6; } | 
|  | 1818 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
|  | 1819 | $as_echo_n "(cached) " >&6 | 
|  | 1820 | else | 
|  | 1821 | eval "$3=no" | 
|  | 1822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1823 | /* end confdefs.h.  */ | 
|  | 1824 | $4 | 
|  | 1825 | int | 
|  | 1826 | main () | 
|  | 1827 | { | 
|  | 1828 | if (sizeof ($2)) | 
|  | 1829 | return 0; | 
|  | 1830 | ; | 
|  | 1831 | return 0; | 
|  | 1832 | } | 
|  | 1833 | _ACEOF | 
|  | 1834 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1836 | /* end confdefs.h.  */ | 
|  | 1837 | $4 | 
|  | 1838 | int | 
|  | 1839 | main () | 
|  | 1840 | { | 
|  | 1841 | if (sizeof (($2))) | 
|  | 1842 | return 0; | 
|  | 1843 | ; | 
|  | 1844 | return 0; | 
|  | 1845 | } | 
|  | 1846 | _ACEOF | 
|  | 1847 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1848 |  | 
|  | 1849 | else | 
|  | 1850 | eval "$3=yes" | 
|  | 1851 | fi | 
|  | 1852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1853 | fi | 
|  | 1854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1855 | fi | 
|  | 1856 | eval ac_res=\$$3 | 
|  | 1857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1858 | $as_echo "$ac_res" >&6; } | 
|  | 1859 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 1860 |  | 
|  | 1861 | } # ac_fn_c_check_type | 
|  | 1862 |  | 
|  | 1863 | # ac_fn_c_find_uintX_t LINENO BITS VAR | 
|  | 1864 | # ------------------------------------ | 
|  | 1865 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | 
|  | 1866 | # accordingly. | 
|  | 1867 | ac_fn_c_find_uintX_t () | 
|  | 1868 | { | 
|  | 1869 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | 
|  | 1871 | $as_echo_n "checking for uint$2_t... " >&6; } | 
|  | 1872 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
|  | 1873 | $as_echo_n "(cached) " >&6 | 
|  | 1874 | else | 
|  | 1875 | eval "$3=no" | 
|  | 1876 | # Order is important - never check a type that is potentially smaller | 
|  | 1877 | # than half of the expected target width. | 
|  | 1878 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | 
|  | 1879 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | 
|  | 1880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1881 | /* end confdefs.h.  */ | 
|  | 1882 | $ac_includes_default | 
|  | 1883 | int | 
|  | 1884 | main () | 
|  | 1885 | { | 
|  | 1886 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | 
|  | 1887 | test_array [0] = 0 | 
|  | 1888 |  | 
|  | 1889 | ; | 
|  | 1890 | return 0; | 
|  | 1891 | } | 
|  | 1892 | _ACEOF | 
|  | 1893 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1894 | case $ac_type in #( | 
|  | 1895 | uint$2_t) : | 
|  | 1896 | eval "$3=yes" ;; #( | 
|  | 1897 | *) : | 
|  | 1898 | eval "$3=\$ac_type" ;; | 
|  | 1899 | esac | 
|  | 1900 | fi | 
|  | 1901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1902 | eval as_val=\$$3 | 
|  | 1903 | if test "x$as_val" = x""no; then : | 
|  | 1904 |  | 
|  | 1905 | else | 
|  | 1906 | break | 
|  | 1907 | fi | 
|  | 1908 | done | 
|  | 1909 | fi | 
|  | 1910 | eval ac_res=\$$3 | 
|  | 1911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1912 | $as_echo "$ac_res" >&6; } | 
|  | 1913 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 1914 |  | 
|  | 1915 | } # ac_fn_c_find_uintX_t | 
|  | 1916 |  | 
|  | 1917 | # ac_fn_c_find_intX_t LINENO BITS VAR | 
|  | 1918 | # ----------------------------------- | 
|  | 1919 | # Finds a signed integer type with width BITS, setting cache variable VAR | 
|  | 1920 | # accordingly. | 
|  | 1921 | ac_fn_c_find_intX_t () | 
|  | 1922 | { | 
|  | 1923 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | 
|  | 1925 | $as_echo_n "checking for int$2_t... " >&6; } | 
|  | 1926 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
|  | 1927 | $as_echo_n "(cached) " >&6 | 
|  | 1928 | else | 
|  | 1929 | eval "$3=no" | 
|  | 1930 | # Order is important - never check a type that is potentially smaller | 
|  | 1931 | # than half of the expected target width. | 
|  | 1932 | for ac_type in int$2_t 'int' 'long int' \ | 
|  | 1933 | 'long long int' 'short int' 'signed char'; do | 
|  | 1934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1935 | /* end confdefs.h.  */ | 
|  | 1936 | $ac_includes_default | 
| Benjamin Peterson | 7497e91 | 2010-10-16 00:53:39 +0000 | [diff] [blame^] | 1937 | enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1938 | int | 
|  | 1939 | main () | 
|  | 1940 | { | 
| Benjamin Peterson | 7497e91 | 2010-10-16 00:53:39 +0000 | [diff] [blame^] | 1941 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1942 | test_array [0] = 0 | 
|  | 1943 |  | 
|  | 1944 | ; | 
|  | 1945 | return 0; | 
|  | 1946 | } | 
|  | 1947 | _ACEOF | 
|  | 1948 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 1950 | /* end confdefs.h.  */ | 
|  | 1951 | $ac_includes_default | 
| Benjamin Peterson | 7497e91 | 2010-10-16 00:53:39 +0000 | [diff] [blame^] | 1952 | enum { N = $2 / 2 - 1 }; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1953 | int | 
|  | 1954 | main () | 
|  | 1955 | { | 
| Benjamin Peterson | 7497e91 | 2010-10-16 00:53:39 +0000 | [diff] [blame^] | 1956 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1957 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | 
|  | 1958 | test_array [0] = 0 | 
|  | 1959 |  | 
|  | 1960 | ; | 
|  | 1961 | return 0; | 
|  | 1962 | } | 
|  | 1963 | _ACEOF | 
|  | 1964 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 1965 |  | 
|  | 1966 | else | 
|  | 1967 | case $ac_type in #( | 
|  | 1968 | int$2_t) : | 
|  | 1969 | eval "$3=yes" ;; #( | 
|  | 1970 | *) : | 
|  | 1971 | eval "$3=\$ac_type" ;; | 
|  | 1972 | esac | 
|  | 1973 | fi | 
|  | 1974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1975 | fi | 
|  | 1976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 1977 | eval as_val=\$$3 | 
|  | 1978 | if test "x$as_val" = x""no; then : | 
|  | 1979 |  | 
|  | 1980 | else | 
|  | 1981 | break | 
|  | 1982 | fi | 
|  | 1983 | done | 
|  | 1984 | fi | 
|  | 1985 | eval ac_res=\$$3 | 
|  | 1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 1987 | $as_echo "$ac_res" >&6; } | 
|  | 1988 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 1989 |  | 
|  | 1990 | } # ac_fn_c_find_intX_t | 
|  | 1991 |  | 
|  | 1992 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
|  | 1993 | # -------------------------------------------- | 
|  | 1994 | # Tries to find the compile-time value of EXPR in a program that includes | 
|  | 1995 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
|  | 1996 | # computed | 
|  | 1997 | ac_fn_c_compute_int () | 
|  | 1998 | { | 
|  | 1999 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2000 | if test "$cross_compiling" = yes; then | 
|  | 2001 | # Depending upon the size, compute the lo and hi bounds. | 
|  | 2002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2003 | /* end confdefs.h.  */ | 
|  | 2004 | $4 | 
|  | 2005 | int | 
|  | 2006 | main () | 
|  | 2007 | { | 
|  | 2008 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
|  | 2009 | test_array [0] = 0 | 
|  | 2010 |  | 
|  | 2011 | ; | 
|  | 2012 | return 0; | 
|  | 2013 | } | 
|  | 2014 | _ACEOF | 
|  | 2015 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2016 | ac_lo=0 ac_mid=0 | 
|  | 2017 | while :; do | 
|  | 2018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2019 | /* end confdefs.h.  */ | 
|  | 2020 | $4 | 
|  | 2021 | int | 
|  | 2022 | main () | 
|  | 2023 | { | 
|  | 2024 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
|  | 2025 | test_array [0] = 0 | 
|  | 2026 |  | 
|  | 2027 | ; | 
|  | 2028 | return 0; | 
|  | 2029 | } | 
|  | 2030 | _ACEOF | 
|  | 2031 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2032 | ac_hi=$ac_mid; break | 
|  | 2033 | else | 
|  | 2034 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
|  | 2035 | if test $ac_lo -le $ac_mid; then | 
|  | 2036 | ac_lo= ac_hi= | 
|  | 2037 | break | 
|  | 2038 | fi | 
|  | 2039 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
|  | 2040 | fi | 
|  | 2041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2042 | done | 
|  | 2043 | else | 
|  | 2044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2045 | /* end confdefs.h.  */ | 
|  | 2046 | $4 | 
|  | 2047 | int | 
|  | 2048 | main () | 
|  | 2049 | { | 
|  | 2050 | static int test_array [1 - 2 * !(($2) < 0)]; | 
|  | 2051 | test_array [0] = 0 | 
|  | 2052 |  | 
|  | 2053 | ; | 
|  | 2054 | return 0; | 
|  | 2055 | } | 
|  | 2056 | _ACEOF | 
|  | 2057 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2058 | ac_hi=-1 ac_mid=-1 | 
|  | 2059 | while :; do | 
|  | 2060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2061 | /* end confdefs.h.  */ | 
|  | 2062 | $4 | 
|  | 2063 | int | 
|  | 2064 | main () | 
|  | 2065 | { | 
|  | 2066 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
|  | 2067 | test_array [0] = 0 | 
|  | 2068 |  | 
|  | 2069 | ; | 
|  | 2070 | return 0; | 
|  | 2071 | } | 
|  | 2072 | _ACEOF | 
|  | 2073 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2074 | ac_lo=$ac_mid; break | 
|  | 2075 | else | 
|  | 2076 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
|  | 2077 | if test $ac_mid -le $ac_hi; then | 
|  | 2078 | ac_lo= ac_hi= | 
|  | 2079 | break | 
|  | 2080 | fi | 
|  | 2081 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
|  | 2082 | fi | 
|  | 2083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2084 | done | 
|  | 2085 | else | 
|  | 2086 | ac_lo= ac_hi= | 
|  | 2087 | fi | 
|  | 2088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2089 | fi | 
|  | 2090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2091 | # Binary search between lo and hi bounds. | 
|  | 2092 | while test "x$ac_lo" != "x$ac_hi"; do | 
|  | 2093 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
|  | 2094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2095 | /* end confdefs.h.  */ | 
|  | 2096 | $4 | 
|  | 2097 | int | 
|  | 2098 | main () | 
|  | 2099 | { | 
|  | 2100 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
|  | 2101 | test_array [0] = 0 | 
|  | 2102 |  | 
|  | 2103 | ; | 
|  | 2104 | return 0; | 
|  | 2105 | } | 
|  | 2106 | _ACEOF | 
|  | 2107 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2108 | ac_hi=$ac_mid | 
|  | 2109 | else | 
|  | 2110 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
|  | 2111 | fi | 
|  | 2112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2113 | done | 
|  | 2114 | case $ac_lo in #(( | 
|  | 2115 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
|  | 2116 | '') ac_retval=1 ;; | 
|  | 2117 | esac | 
|  | 2118 | else | 
|  | 2119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2120 | /* end confdefs.h.  */ | 
|  | 2121 | $4 | 
|  | 2122 | static long int longval () { return $2; } | 
|  | 2123 | static unsigned long int ulongval () { return $2; } | 
|  | 2124 | #include <stdio.h> | 
|  | 2125 | #include <stdlib.h> | 
|  | 2126 | int | 
|  | 2127 | main () | 
|  | 2128 | { | 
|  | 2129 |  | 
|  | 2130 | FILE *f = fopen ("conftest.val", "w"); | 
|  | 2131 | if (! f) | 
|  | 2132 | return 1; | 
|  | 2133 | if (($2) < 0) | 
|  | 2134 | { | 
|  | 2135 | long int i = longval (); | 
|  | 2136 | if (i != ($2)) | 
|  | 2137 | return 1; | 
|  | 2138 | fprintf (f, "%ld", i); | 
|  | 2139 | } | 
|  | 2140 | else | 
|  | 2141 | { | 
|  | 2142 | unsigned long int i = ulongval (); | 
|  | 2143 | if (i != ($2)) | 
|  | 2144 | return 1; | 
|  | 2145 | fprintf (f, "%lu", i); | 
|  | 2146 | } | 
|  | 2147 | /* Do not output a trailing newline, as this causes \r\n confusion | 
|  | 2148 | on some platforms.  */ | 
|  | 2149 | return ferror (f) || fclose (f) != 0; | 
|  | 2150 |  | 
|  | 2151 | ; | 
|  | 2152 | return 0; | 
|  | 2153 | } | 
|  | 2154 | _ACEOF | 
|  | 2155 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 2156 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
|  | 2157 | else | 
|  | 2158 | ac_retval=1 | 
|  | 2159 | fi | 
|  | 2160 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 2161 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 2162 | rm -f conftest.val | 
|  | 2163 |  | 
|  | 2164 | fi | 
|  | 2165 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 2166 | as_fn_set_status $ac_retval | 
|  | 2167 |  | 
|  | 2168 | } # ac_fn_c_compute_int | 
|  | 2169 |  | 
|  | 2170 | # ac_fn_c_check_func LINENO FUNC VAR | 
|  | 2171 | # ---------------------------------- | 
|  | 2172 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
|  | 2173 | ac_fn_c_check_func () | 
|  | 2174 | { | 
|  | 2175 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2177 | $as_echo_n "checking for $2... " >&6; } | 
|  | 2178 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
|  | 2179 | $as_echo_n "(cached) " >&6 | 
|  | 2180 | else | 
|  | 2181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2182 | /* end confdefs.h.  */ | 
|  | 2183 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
|  | 2184 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 2185 | #define $2 innocuous_$2 | 
|  | 2186 |  | 
|  | 2187 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 2188 | which can conflict with char $2 (); below. | 
|  | 2189 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 2190 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 2191 |  | 
|  | 2192 | #ifdef __STDC__ | 
|  | 2193 | # include <limits.h> | 
|  | 2194 | #else | 
|  | 2195 | # include <assert.h> | 
|  | 2196 | #endif | 
|  | 2197 |  | 
|  | 2198 | #undef $2 | 
|  | 2199 |  | 
|  | 2200 | /* Override any GCC internal prototype to avoid an error. | 
|  | 2201 | Use char because int might match the return type of a GCC | 
|  | 2202 | builtin and then its argument prototype would still apply.  */ | 
|  | 2203 | #ifdef __cplusplus | 
|  | 2204 | extern "C" | 
|  | 2205 | #endif | 
|  | 2206 | char $2 (); | 
|  | 2207 | /* The GNU C library defines this for functions which it implements | 
|  | 2208 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 2209 | something starting with __ and the normal name is an alias.  */ | 
|  | 2210 | #if defined __stub_$2 || defined __stub___$2 | 
|  | 2211 | choke me | 
|  | 2212 | #endif | 
|  | 2213 |  | 
|  | 2214 | int | 
|  | 2215 | main () | 
|  | 2216 | { | 
|  | 2217 | return $2 (); | 
|  | 2218 | ; | 
|  | 2219 | return 0; | 
|  | 2220 | } | 
|  | 2221 | _ACEOF | 
|  | 2222 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 2223 | eval "$3=yes" | 
|  | 2224 | else | 
|  | 2225 | eval "$3=no" | 
|  | 2226 | fi | 
|  | 2227 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 2228 | conftest$ac_exeext conftest.$ac_ext | 
|  | 2229 | fi | 
|  | 2230 | eval ac_res=\$$3 | 
|  | 2231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2232 | $as_echo "$ac_res" >&6; } | 
|  | 2233 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 2234 |  | 
|  | 2235 | } # ac_fn_c_check_func | 
|  | 2236 |  | 
|  | 2237 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
|  | 2238 | # ---------------------------------------------------- | 
|  | 2239 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
|  | 2240 | # INCLUDES, setting cache variable VAR accordingly. | 
|  | 2241 | ac_fn_c_check_member () | 
|  | 2242 | { | 
|  | 2243 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
|  | 2245 | $as_echo_n "checking for $2.$3... " >&6; } | 
|  | 2246 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : | 
|  | 2247 | $as_echo_n "(cached) " >&6 | 
|  | 2248 | else | 
|  | 2249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2250 | /* end confdefs.h.  */ | 
|  | 2251 | $5 | 
|  | 2252 | int | 
|  | 2253 | main () | 
|  | 2254 | { | 
|  | 2255 | static $2 ac_aggr; | 
|  | 2256 | if (ac_aggr.$3) | 
|  | 2257 | return 0; | 
|  | 2258 | ; | 
|  | 2259 | return 0; | 
|  | 2260 | } | 
|  | 2261 | _ACEOF | 
|  | 2262 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2263 | eval "$4=yes" | 
|  | 2264 | else | 
|  | 2265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2266 | /* end confdefs.h.  */ | 
|  | 2267 | $5 | 
|  | 2268 | int | 
|  | 2269 | main () | 
|  | 2270 | { | 
|  | 2271 | static $2 ac_aggr; | 
|  | 2272 | if (sizeof ac_aggr.$3) | 
|  | 2273 | return 0; | 
|  | 2274 | ; | 
|  | 2275 | return 0; | 
|  | 2276 | } | 
|  | 2277 | _ACEOF | 
|  | 2278 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2279 | eval "$4=yes" | 
|  | 2280 | else | 
|  | 2281 | eval "$4=no" | 
|  | 2282 | fi | 
|  | 2283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2284 | fi | 
|  | 2285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2286 | fi | 
|  | 2287 | eval ac_res=\$$4 | 
|  | 2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2289 | $as_echo "$ac_res" >&6; } | 
|  | 2290 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 2291 |  | 
|  | 2292 | } # ac_fn_c_check_member | 
|  | 2293 |  | 
|  | 2294 | # ac_fn_c_check_decl LINENO SYMBOL VAR | 
|  | 2295 | # ------------------------------------ | 
|  | 2296 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | 
|  | 2297 | ac_fn_c_check_decl () | 
|  | 2298 | { | 
|  | 2299 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 | 
|  | 2301 | $as_echo_n "checking whether $2 is declared... " >&6; } | 
|  | 2302 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 
|  | 2303 | $as_echo_n "(cached) " >&6 | 
|  | 2304 | else | 
|  | 2305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2306 | /* end confdefs.h.  */ | 
|  | 2307 | $4 | 
|  | 2308 | int | 
|  | 2309 | main () | 
|  | 2310 | { | 
|  | 2311 | #ifndef $2 | 
|  | 2312 | (void) $2; | 
|  | 2313 | #endif | 
|  | 2314 |  | 
|  | 2315 | ; | 
|  | 2316 | return 0; | 
|  | 2317 | } | 
|  | 2318 | _ACEOF | 
|  | 2319 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2320 | eval "$3=yes" | 
|  | 2321 | else | 
|  | 2322 | eval "$3=no" | 
|  | 2323 | fi | 
|  | 2324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2325 | fi | 
|  | 2326 | eval ac_res=\$$3 | 
|  | 2327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2328 | $as_echo "$ac_res" >&6; } | 
|  | 2329 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 2330 |  | 
|  | 2331 | } # ac_fn_c_check_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2332 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2333 | This file contains any messages produced by compilers while | 
|  | 2334 | running configure, to aid debugging if configure makes a mistake. | 
|  | 2335 |  | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2336 | It was created by python $as_me 2.7, which was | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2337 | generated by GNU Autoconf 2.65.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2338 |  | 
|  | 2339 | $ $0 $@ | 
|  | 2340 |  | 
|  | 2341 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2342 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2343 | { | 
|  | 2344 | cat <<_ASUNAME | 
|  | 2345 | ## --------- ## | 
|  | 2346 | ## Platform. ## | 
|  | 2347 | ## --------- ## | 
|  | 2348 |  | 
|  | 2349 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 2350 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
|  | 2351 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
|  | 2352 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
|  | 2353 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
|  | 2354 |  | 
|  | 2355 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
|  | 2356 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
|  | 2357 |  | 
|  | 2358 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
|  | 2359 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
|  | 2360 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2361 | /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] | 2362 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
|  | 2363 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
|  | 2364 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
|  | 2365 |  | 
|  | 2366 | _ASUNAME | 
|  | 2367 |  | 
|  | 2368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2369 | for as_dir in $PATH | 
|  | 2370 | do | 
|  | 2371 | IFS=$as_save_IFS | 
|  | 2372 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2373 | $as_echo "PATH: $as_dir" | 
|  | 2374 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2375 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2376 |  | 
|  | 2377 | } >&5 | 
|  | 2378 |  | 
|  | 2379 | cat >&5 <<_ACEOF | 
|  | 2380 |  | 
|  | 2381 |  | 
|  | 2382 | ## ----------- ## | 
|  | 2383 | ## Core tests. ## | 
|  | 2384 | ## ----------- ## | 
|  | 2385 |  | 
|  | 2386 | _ACEOF | 
|  | 2387 |  | 
|  | 2388 |  | 
|  | 2389 | # Keep a trace of the command line. | 
|  | 2390 | # 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] | 2391 | # 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] | 2392 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2393 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2394 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2395 | ac_configure_args0= | 
|  | 2396 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2397 | ac_must_keep_next=false | 
|  | 2398 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2399 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2400 | for ac_arg | 
|  | 2401 | do | 
|  | 2402 | case $ac_arg in | 
|  | 2403 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
|  | 2404 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 2405 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 2406 | continue ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2407 | *\'*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2408 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2409 | esac | 
|  | 2410 | case $ac_pass in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2411 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2412 | 2) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2413 | as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2414 | if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2415 | ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2416 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2417 | case $ac_arg in | 
|  | 2418 | *=* | --config-cache | -C | -disable-* | --disable-* \ | 
|  | 2419 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
|  | 2420 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
|  | 2421 | | -with-* | --with-* | -without-* | --without-* | --x) | 
|  | 2422 | case "$ac_configure_args0 " in | 
|  | 2423 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
|  | 2424 | esac | 
|  | 2425 | ;; | 
|  | 2426 | -* ) ac_must_keep_next=true ;; | 
|  | 2427 | esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2428 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2429 | as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2430 | ;; | 
|  | 2431 | esac | 
|  | 2432 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2433 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2434 | { ac_configure_args0=; unset ac_configure_args0;} | 
|  | 2435 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2436 |  | 
|  | 2437 | # When interrupted or exit'd, cleanup temporary files, and complete | 
|  | 2438 | # config.log.  We remove comments because anyway the quotes in there | 
|  | 2439 | # would cause problems or look ugly. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2440 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
|  | 2441 | # 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] | 2442 | trap 'exit_status=$? | 
|  | 2443 | # Save into config.log some information that might help in debugging. | 
|  | 2444 | { | 
|  | 2445 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2446 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2447 | cat <<\_ASBOX | 
|  | 2448 | ## ---------------- ## | 
|  | 2449 | ## Cache variables. ## | 
|  | 2450 | ## ---------------- ## | 
|  | 2451 | _ASBOX | 
|  | 2452 | echo | 
|  | 2453 | # The following way of writing the cache mishandles newlines in values, | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2454 | ( | 
|  | 2455 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
|  | 2456 | eval ac_val=\$$ac_var | 
|  | 2457 | case $ac_val in #( | 
|  | 2458 | *${as_nl}*) | 
|  | 2459 | case $ac_var in #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2460 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 2461 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2462 | esac | 
|  | 2463 | case $ac_var in #( | 
|  | 2464 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2465 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 2466 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2467 | esac ;; | 
|  | 2468 | esac | 
|  | 2469 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2470 | (set) 2>&1 | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2471 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
|  | 2472 | *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2473 | sed -n \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2474 | "s/'\''/'\''\\\\'\'''\''/g; | 
|  | 2475 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
|  | 2476 | ;; #( | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2477 | *) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2478 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2479 | ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2480 | esac | | 
|  | 2481 | sort | 
|  | 2482 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2483 | echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2484 |  | 
|  | 2485 | cat <<\_ASBOX | 
|  | 2486 | ## ----------------- ## | 
|  | 2487 | ## Output variables. ## | 
|  | 2488 | ## ----------------- ## | 
|  | 2489 | _ASBOX | 
|  | 2490 | echo | 
|  | 2491 | for ac_var in $ac_subst_vars | 
|  | 2492 | do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2493 | eval ac_val=\$$ac_var | 
|  | 2494 | case $ac_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2495 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2496 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2497 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2498 | done | sort | 
|  | 2499 | echo | 
|  | 2500 |  | 
|  | 2501 | if test -n "$ac_subst_files"; then | 
|  | 2502 | cat <<\_ASBOX | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2503 | ## ------------------- ## | 
|  | 2504 | ## File substitutions. ## | 
|  | 2505 | ## ------------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2506 | _ASBOX | 
|  | 2507 | echo | 
|  | 2508 | for ac_var in $ac_subst_files | 
|  | 2509 | do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2510 | eval ac_val=\$$ac_var | 
|  | 2511 | case $ac_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2512 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2513 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2514 | $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2515 | done | sort | 
|  | 2516 | echo | 
|  | 2517 | fi | 
|  | 2518 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2519 | if test -s confdefs.h; then | 
|  | 2520 | cat <<\_ASBOX | 
|  | 2521 | ## ----------- ## | 
|  | 2522 | ## confdefs.h. ## | 
|  | 2523 | ## ----------- ## | 
|  | 2524 | _ASBOX | 
|  | 2525 | echo | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2526 | cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2527 | echo | 
|  | 2528 | fi | 
|  | 2529 | test "$ac_signal" != 0 && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2530 | $as_echo "$as_me: caught signal $ac_signal" | 
|  | 2531 | $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2532 | } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2533 | rm -f core *.core core.conftest.* && | 
|  | 2534 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 | exit $exit_status | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2536 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2537 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2538 | 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] | 2539 | done | 
|  | 2540 | ac_signal=0 | 
|  | 2541 |  | 
|  | 2542 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2543 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2544 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2545 | $as_echo "/* confdefs.h */" > confdefs.h | 
|  | 2546 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2547 | # Predefined preprocessor variables. | 
|  | 2548 |  | 
|  | 2549 | cat >>confdefs.h <<_ACEOF | 
|  | 2550 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
|  | 2551 | _ACEOF | 
|  | 2552 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2553 | cat >>confdefs.h <<_ACEOF | 
|  | 2554 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
|  | 2555 | _ACEOF | 
|  | 2556 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2557 | cat >>confdefs.h <<_ACEOF | 
|  | 2558 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
|  | 2559 | _ACEOF | 
|  | 2560 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2561 | cat >>confdefs.h <<_ACEOF | 
|  | 2562 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
|  | 2563 | _ACEOF | 
|  | 2564 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2565 | cat >>confdefs.h <<_ACEOF | 
|  | 2566 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
|  | 2567 | _ACEOF | 
|  | 2568 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2569 | cat >>confdefs.h <<_ACEOF | 
|  | 2570 | #define PACKAGE_URL "$PACKAGE_URL" | 
|  | 2571 | _ACEOF | 
|  | 2572 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2573 |  | 
|  | 2574 | # Let the site file select an alternate cache file if it wants to. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2575 | # Prefer an explicitly selected file to automatically selected ones. | 
|  | 2576 | ac_site_file1=NONE | 
|  | 2577 | ac_site_file2=NONE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2578 | if test -n "$CONFIG_SITE"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2579 | ac_site_file1=$CONFIG_SITE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2580 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2581 | ac_site_file1=$prefix/share/config.site | 
|  | 2582 | ac_site_file2=$prefix/etc/config.site | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2583 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2584 | ac_site_file1=$ac_default_prefix/share/config.site | 
|  | 2585 | ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2586 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2587 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2588 | do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2589 | test "x$ac_site_file" = xNONE && continue | 
|  | 2590 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
|  | 2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
|  | 2592 | $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] | 2593 | sed 's/^/| /' "$ac_site_file" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2594 | . "$ac_site_file" | 
|  | 2595 | fi | 
|  | 2596 | done | 
|  | 2597 |  | 
|  | 2598 | if test -r "$cache_file"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2599 | # Some versions of bash will fail to source /dev/null (special files | 
|  | 2600 | # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
|  | 2601 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
|  | 2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
|  | 2603 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2604 | case $cache_file in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2605 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
|  | 2606 | *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2607 | esac | 
|  | 2608 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2609 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
|  | 2611 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2612 | >$cache_file | 
|  | 2613 | fi | 
|  | 2614 |  | 
|  | 2615 | # Check that the precious variables saved in the cache have kept the same | 
|  | 2616 | # value. | 
|  | 2617 | ac_cache_corrupted=false | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2618 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2619 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
|  | 2620 | eval ac_new_set=\$ac_env_${ac_var}_set | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2621 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
|  | 2622 | eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2623 | case $ac_old_set,$ac_new_set in | 
|  | 2624 | set,) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
|  | 2626 | $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] | 2627 | ac_cache_corrupted=: ;; | 
|  | 2628 | ,set) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
|  | 2630 | $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] | 2631 | ac_cache_corrupted=: ;; | 
|  | 2632 | ,);; | 
|  | 2633 | *) | 
|  | 2634 | if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2635 | # differences in whitespace do not lead to failure. | 
|  | 2636 | ac_old_val_w=`echo x $ac_old_val` | 
|  | 2637 | ac_new_val_w=`echo x $ac_new_val` | 
|  | 2638 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
|  | 2639 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
|  | 2640 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
|  | 2641 | ac_cache_corrupted=: | 
|  | 2642 | else | 
|  | 2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
|  | 2644 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
|  | 2645 | eval $ac_var=\$ac_old_val | 
|  | 2646 | fi | 
|  | 2647 | { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
|  | 2648 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
|  | 2649 | { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
|  | 2650 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2651 | fi;; | 
|  | 2652 | esac | 
|  | 2653 | # Pass precious variables to config.status. | 
|  | 2654 | if test "$ac_new_set" = set; then | 
|  | 2655 | case $ac_new_val in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2656 | *\'*) 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] | 2657 | *) ac_arg=$ac_var=$ac_new_val ;; | 
|  | 2658 | esac | 
|  | 2659 | case " $ac_configure_args " in | 
|  | 2660 | *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2661 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2662 | esac | 
|  | 2663 | fi | 
|  | 2664 | done | 
|  | 2665 | if $ac_cache_corrupted; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 2667 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
|  | 2669 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
|  | 2670 | 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] | 2671 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2672 | ## -------------------- ## | 
|  | 2673 | ## Main body of script. ## | 
|  | 2674 | ## -------------------- ## | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2675 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2676 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2677 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2681 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2682 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2683 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2684 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2685 |  | 
|  | 2686 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2687 |  | 
| Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 2688 | if test "$prefix" != "/"; then | 
|  | 2689 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
|  | 2690 | fi | 
|  | 2691 |  | 
|  | 2692 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2693 |  | 
|  | 2694 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2695 | # We don't use PACKAGE_ variables, and they cause conflicts | 
|  | 2696 | # with other autoconf-based packages that include Python.h | 
|  | 2697 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
|  | 2698 | rm confdefs.h | 
|  | 2699 | mv confdefs.h.new confdefs.h | 
|  | 2700 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2701 |  | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2702 | VERSION=2.7 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2703 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2704 |  | 
|  | 2705 | SOVERSION=1.0 | 
|  | 2706 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2707 | # The later defininition of _XOPEN_SOURCE disables certain features | 
|  | 2708 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
|  | 2709 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2710 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2711 |  | 
|  | 2712 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2713 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2714 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
|  | 2715 | # them. | 
|  | 2716 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2717 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2718 |  | 
|  | 2719 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2720 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2721 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
|  | 2722 | # them. | 
|  | 2723 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2724 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2725 |  | 
|  | 2726 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2727 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2728 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. | 
|  | 2729 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2730 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2731 |  | 
|  | 2732 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2733 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
|  | 2734 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
|  | 2735 | # them. | 
|  | 2736 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2737 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2738 |  | 
|  | 2739 |  | 
|  | 2740 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2741 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2742 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2743 | # Arguments passed to configure. | 
|  | 2744 |  | 
|  | 2745 | CONFIG_ARGS="$ac_configure_args" | 
|  | 2746 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
|  | 2748 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2749 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2750 | if test "${enable_universalsdk+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2751 | enableval=$enable_universalsdk; | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2752 | case $enableval in | 
|  | 2753 | yes) | 
|  | 2754 | enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2755 | if test ! -d "${enableval}" | 
|  | 2756 | then | 
|  | 2757 | enableval=/ | 
|  | 2758 | fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2759 | ;; | 
|  | 2760 | esac | 
|  | 2761 | case $enableval in | 
|  | 2762 | no) | 
|  | 2763 | UNIVERSALSDK= | 
|  | 2764 | enable_universalsdk= | 
|  | 2765 | ;; | 
|  | 2766 | *) | 
|  | 2767 | UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2768 | if test ! -d "${UNIVERSALSDK}" | 
|  | 2769 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2770 | as_fn_error "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2771 | fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2772 | ;; | 
|  | 2773 | esac | 
|  | 2774 |  | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2775 |  | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2776 | else | 
|  | 2777 |  | 
|  | 2778 | UNIVERSALSDK= | 
|  | 2779 | enable_universalsdk= | 
|  | 2780 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2781 | fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2782 |  | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2783 | if test -n "${UNIVERSALSDK}" | 
|  | 2784 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
|  | 2786 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2787 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 2789 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2790 | fi | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2791 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2792 |  | 
| Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 2793 |  | 
|  | 2794 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2795 | UNIVERSAL_ARCHS="32-bit" | 
| Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 2796 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
|  | 2798 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2799 |  | 
|  | 2800 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2801 | if test "${with_universal_archs+set}" = set; then : | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2802 | withval=$with_universal_archs; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 2804 | $as_echo "$withval" >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2805 | UNIVERSAL_ARCHS="$withval" | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 2806 | if test "${enable_universalsdk}" ; then | 
|  | 2807 | : | 
|  | 2808 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2809 | as_fn_error "--with-universal-archs without --enable-universalsdk. See Mac/README" "$LINENO" 5 | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 2810 | fi | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2811 |  | 
|  | 2812 | else | 
|  | 2813 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 | 
|  | 2815 | $as_echo "32-bit" >&6; } | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2816 |  | 
|  | 2817 | fi | 
|  | 2818 |  | 
|  | 2819 |  | 
|  | 2820 |  | 
|  | 2821 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2822 |  | 
|  | 2823 | # Check whether --with-framework-name was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2824 | if test "${with_framework_name+set}" = set; then : | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2825 | withval=$with_framework_name; | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 2826 | if test "${enable_framework}"; then | 
|  | 2827 | : | 
|  | 2828 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2829 | as_fn_error "--with-framework-name without --enable-framework. See Mac/README" "$LINENO" 5 | 
| Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 2830 | fi | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2831 | PYTHONFRAMEWORK=${withval} | 
|  | 2832 | PYTHONFRAMEWORKDIR=${withval}.framework | 
|  | 2833 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
|  | 2834 |  | 
|  | 2835 | else | 
|  | 2836 |  | 
|  | 2837 | PYTHONFRAMEWORK=Python | 
|  | 2838 | PYTHONFRAMEWORKDIR=Python.framework | 
|  | 2839 | PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
|  | 2840 |  | 
|  | 2841 | fi | 
|  | 2842 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2843 | # Check whether --enable-framework was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2844 | if test "${enable_framework+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2845 | enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2846 | case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2847 | yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2848 | enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2849 | esac | 
|  | 2850 | case $enableval in | 
|  | 2851 | no) | 
|  | 2852 | PYTHONFRAMEWORK= | 
|  | 2853 | PYTHONFRAMEWORKDIR=no-framework | 
|  | 2854 | PYTHONFRAMEWORKPREFIX= | 
|  | 2855 | PYTHONFRAMEWORKINSTALLDIR= | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2856 | FRAMEWORKINSTALLFIRST= | 
|  | 2857 | FRAMEWORKINSTALLLAST= | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2858 | FRAMEWORKALTINSTALLFIRST= | 
|  | 2859 | FRAMEWORKALTINSTALLLAST= | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2860 | if test "x${prefix}" = "xNONE"; then | 
|  | 2861 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 2862 | else | 
|  | 2863 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 2864 | fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2865 | enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2866 | ;; | 
|  | 2867 | *) | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2868 | PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2869 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2870 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2871 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" | 
| Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 2872 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
|  | 2873 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2874 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2875 |  | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2876 | if test "x${prefix}" = "xNONE" ; then | 
|  | 2877 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2878 |  | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2879 | else | 
|  | 2880 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 2881 | fi | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2882 |  | 
|  | 2883 | case "${enableval}" in | 
|  | 2884 | /System*) | 
|  | 2885 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 2886 | if test "${prefix}" = "NONE" ; then | 
|  | 2887 | # See below | 
|  | 2888 | FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
|  | 2889 | fi | 
|  | 2890 | ;; | 
|  | 2891 |  | 
|  | 2892 | /Library*) | 
|  | 2893 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 2894 | ;; | 
|  | 2895 |  | 
|  | 2896 | */Library/Frameworks) | 
|  | 2897 | MDIR="`dirname "${enableval}"`" | 
|  | 2898 | MDIR="`dirname "${MDIR}"`" | 
|  | 2899 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
|  | 2900 |  | 
|  | 2901 | if test "${prefix}" = "NONE"; then | 
|  | 2902 | # User hasn't specified the | 
|  | 2903 | # --prefix option, but wants to install | 
|  | 2904 | # the framework in a non-default location, | 
|  | 2905 | # ensure that the compatibility links get | 
|  | 2906 | # installed relative to that prefix as well | 
|  | 2907 | # instead of in /usr/local. | 
|  | 2908 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
|  | 2909 | fi | 
|  | 2910 | ;; | 
|  | 2911 |  | 
|  | 2912 | *) | 
|  | 2913 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
|  | 2914 | ;; | 
|  | 2915 | esac | 
|  | 2916 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2917 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2918 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2919 | # Add files for Mac specific code to the list of output | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2920 | # files: | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2921 | ac_config_files="$ac_config_files Mac/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2922 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2923 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2924 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2925 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" | 
| Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2926 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2927 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
|  | 2928 |  | 
|  | 2929 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
|  | 2930 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2931 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2932 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2933 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2934 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2935 | PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2936 | PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2937 | PYTHONFRAMEWORKPREFIX= | 
|  | 2938 | PYTHONFRAMEWORKINSTALLDIR= | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2939 | FRAMEWORKINSTALLFIRST= | 
|  | 2940 | FRAMEWORKINSTALLLAST= | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2941 | FRAMEWORKALTINSTALLFIRST= | 
|  | 2942 | FRAMEWORKALTINSTALLLAST= | 
| Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2943 | if test "x${prefix}" = "xNONE" ; then | 
|  | 2944 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
|  | 2945 | else | 
|  | 2946 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
|  | 2947 | fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2948 | enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2949 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2950 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2951 | fi | 
|  | 2952 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2953 |  | 
|  | 2954 |  | 
|  | 2955 |  | 
|  | 2956 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2957 |  | 
| Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2958 |  | 
|  | 2959 |  | 
| Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2960 |  | 
|  | 2961 |  | 
|  | 2962 |  | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2963 |  | 
| Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2964 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2965 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 22520ea | 2010-05-08 10:14:46 +0000 | [diff] [blame] | 2966 | ##            AS_HELP_STRING([--with-dyld], | 
|  | 2967 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2968 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2969 | # Set name for machine-dependent library files | 
|  | 2970 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
|  | 2972 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2973 | if test -z "$MACHDEP" | 
|  | 2974 | then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2975 | ac_sys_system=`uname -s` | 
| Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 2976 | if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2977 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2978 | ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2979 | else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2980 | ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2981 | fi | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2982 | ac_md_system=`echo $ac_sys_system | | 
|  | 2983 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
|  | 2984 | ac_md_release=`echo $ac_sys_release | | 
| Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2985 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2986 | MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2987 |  | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2988 | case $MACHDEP in | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2989 | cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2990 | darwin*) MACHDEP="darwin";; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2991 | atheos*) MACHDEP="atheos";; | 
| Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2992 | irix646) MACHDEP="irix6";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2993 | '')	MACHDEP="unknown";; | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2994 | esac | 
|  | 2995 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2996 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2997 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
|  | 2998 | # disable features if it is defined, without any means to access these | 
|  | 2999 | # features as extensions. For these systems, we skip the definition of | 
|  | 3000 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
|  | 3001 | # some feature, make sure there is no alternative way to access this | 
|  | 3002 | # feature. Also, when using wildcards, make sure you have verified the | 
|  | 3003 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
|  | 3004 | # wildcard, and that the wildcard does not include future systems | 
|  | 3005 | # (which may remove their limitations). | 
|  | 3006 | case $ac_sys_system/$ac_sys_release in | 
|  | 3007 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
|  | 3008 | # 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] | 3009 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. | 
| Martin v. Löwis | 7875ef6 | 2010-02-15 21:41:12 +0000 | [diff] [blame] | 3010 | # In addition, Stefan Krah confirms that issue #1244610 exists through | 
|  | 3011 | # OpenBSD 4.6, but is fixed in 4.7. | 
|  | 3012 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456]) | 
| Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3013 | define_xopen_source=no | 
|  | 3014 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3015 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3016 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3017 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3018 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3019 |  | 
|  | 3020 | ;; | 
| Martin v. Löwis | 7875ef6 | 2010-02-15 21:41:12 +0000 | [diff] [blame] | 3021 | OpenBSD/4.[789]) | 
| Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3022 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
|  | 3023 | # also defined. This can be overridden by defining _BSD_SOURCE | 
|  | 3024 | # As this has a different meaning on Linux, only define it on OpenBSD | 
|  | 3025 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3026 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3027 |  | 
|  | 3028 | ;; | 
| Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 3029 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
|  | 3030 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
|  | 3031 | # Marc Recht | 
| Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 3032 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) | 
| Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 3033 | define_xopen_source=no;; | 
| Martin v. Löwis | b41afb5 | 2010-05-28 15:28:47 +0000 | [diff] [blame] | 3034 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
|  | 3035 | # request to enable features supported by the standard as a request | 
|  | 3036 | # to disable features not supported by the standard.  The best way | 
|  | 3037 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
|  | 3038 | # entirely and define __EXTENSIONS__ instead. | 
|  | 3039 | SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3040 | define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3041 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
|  | 3042 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3043 | # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3044 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3045 | define_xopen_source=no;; | 
|  | 3046 | # 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] | 3047 | # 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] | 3048 | SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3049 | define_xopen_source=no;; | 
| Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 3050 | # On FreeBSD 4, the math functions C89 does not cover are never defined | 
|  | 3051 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
|  | 3052 | FreeBSD/4.*) | 
|  | 3053 | define_xopen_source=no;; | 
|  | 3054 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
|  | 3055 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
|  | 3056 | # identifies itself as Darwin/7.* | 
|  | 3057 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3058 | # disables platform specific features beyond repair. | 
|  | 3059 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
|  | 3060 | # has no effect, don't bother defining them | 
|  | 3061 | Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3062 | define_xopen_source=no;; | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 3063 | Darwin/1[0-9].*) | 
|  | 3064 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3065 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
|  | 3066 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
|  | 3067 | # 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] | 3068 | AIX/4) | 
|  | 3069 | define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3070 | AIX/5) | 
|  | 3071 | if test `uname -r` -eq 1; then | 
|  | 3072 | define_xopen_source=no | 
|  | 3073 | fi | 
|  | 3074 | ;; | 
| Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 3075 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
|  | 3076 | # defining NI_NUMERICHOST. | 
|  | 3077 | QNX/6.3.2) | 
|  | 3078 | define_xopen_source=no | 
|  | 3079 | ;; | 
| Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 3080 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3081 | esac | 
|  | 3082 |  | 
|  | 3083 | if test $define_xopen_source = yes | 
|  | 3084 | then | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3085 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3086 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3087 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3088 |  | 
|  | 3089 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
|  | 3090 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
|  | 3091 | # several APIs are not declared. Since this is also needed in some | 
|  | 3092 | # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3093 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3094 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3095 |  | 
|  | 3096 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3097 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3098 | $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3099 |  | 
|  | 3100 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3101 | fi | 
|  | 3102 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3103 | # | 
|  | 3104 | # SGI compilers allow the specification of the both the ABI and the | 
|  | 3105 | # ISA on the command line.  Depending on the values of these switches, | 
|  | 3106 | # different and often incompatable code will be generated. | 
|  | 3107 | # | 
|  | 3108 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
|  | 3109 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
|  | 3110 | # variable is also adjusted. | 
|  | 3111 | # | 
|  | 3112 |  | 
|  | 3113 | if test ! -z "$SGI_ABI" | 
|  | 3114 | then | 
|  | 3115 | CC="cc $SGI_ABI" | 
|  | 3116 | LDFLAGS="$SGI_ABI $LDFLAGS" | 
|  | 3117 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
|  | 3118 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 | 
|  | 3120 | $as_echo "$MACHDEP" >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3121 |  | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3122 | # And add extra plat-mac for darwin | 
|  | 3123 |  | 
| Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3124 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5 | 
|  | 3126 | $as_echo_n "checking EXTRAPLATDIR... " >&6; } | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3127 | if test -z "$EXTRAPLATDIR" | 
|  | 3128 | then | 
|  | 3129 | case $MACHDEP in | 
| Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3130 | darwin) | 
|  | 3131 | EXTRAPLATDIR="\$(PLATMACDIRS)" | 
|  | 3132 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" | 
|  | 3133 | ;; | 
|  | 3134 | *) | 
|  | 3135 | EXTRAPLATDIR="" | 
|  | 3136 | EXTRAMACHDEPPATH="" | 
|  | 3137 | ;; | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3138 | esac | 
|  | 3139 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5 | 
|  | 3141 | $as_echo "$EXTRAPLATDIR" >&6; } | 
| Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3142 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3143 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
|  | 3144 | # it may influence the way we can build extensions, so distutils | 
|  | 3145 | # needs to check it | 
|  | 3146 |  | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3147 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3148 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3149 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3150 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking machine type as reported by uname -m" >&5 | 
|  | 3152 | $as_echo_n "checking machine type as reported by uname -m... " >&6; } | 
| Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 3153 | ac_sys_machine=`uname -m` | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sys_machine" >&5 | 
|  | 3155 | $as_echo "$ac_sys_machine" >&6; } | 
| Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 3156 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3157 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3158 |  | 
|  | 3159 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
|  | 3160 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
|  | 3161 | # just to get things to compile and link.  Users are free to override OPT | 
|  | 3162 | # when running configure or make.  The build should not break if they do. | 
|  | 3163 | # BASECFLAGS should generally not be messed with, however. | 
|  | 3164 |  | 
|  | 3165 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
|  | 3166 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
|  | 3168 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3169 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3170 | # Check whether --with-gcc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3171 | if test "${with_gcc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3172 | withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3173 | case $withval in | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 3174 | no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3175 | without_gcc=yes;; | 
|  | 3176 | yes)	CC=gcc | 
|  | 3177 | without_gcc=no;; | 
|  | 3178 | *)	CC=$withval | 
|  | 3179 | without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3180 | esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3181 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3182 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3183 | case $ac_sys_system in | 
| Antoine Pitrou | 285cd16 | 2010-09-21 15:23:17 +0000 | [diff] [blame] | 3184 | AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3185 | without_gcc=;; | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3186 | BeOS*) | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3187 | case $BE_HOST_CPU in | 
|  | 3188 | ppc) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3189 | CC=mwcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3190 | without_gcc=yes | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3191 | BASECFLAGS="$BASECFLAGS -export pragma" | 
|  | 3192 | OPT="$OPT -O" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3193 | LDFLAGS="$LDFLAGS -nodup" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3194 | ;; | 
|  | 3195 | x86) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3196 | CC=gcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3197 | without_gcc=no | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3198 | OPT="$OPT -O" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3199 | ;; | 
|  | 3200 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3201 | as_fn_error "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5 | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3202 | ;; | 
|  | 3203 | esac | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3204 | AR="\$(srcdir)/Modules/ar_beos" | 
|  | 3205 | RANLIB=: | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3206 | ;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3207 | *)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3208 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3209 | fi | 
|  | 3210 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
|  | 3212 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3213 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3214 | # If the user switches compilers, we can't believe the cache | 
|  | 3215 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
|  | 3216 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3217 | as_fn_error "cached CC is different -- throw away $cache_file | 
|  | 3218 | (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] | 3219 | fi | 
|  | 3220 |  | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 3221 | # If the user set CFLAGS, use this instead of the automatically | 
|  | 3222 | # determined setting | 
|  | 3223 | preset_cflags="$CFLAGS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3224 | ac_ext=c | 
|  | 3225 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3226 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3227 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3228 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3229 | if test -n "$ac_tool_prefix"; then | 
|  | 3230 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
|  | 3231 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3233 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 3234 | if test "${ac_cv_prog_CC+set}" = set; then : | 
|  | 3235 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3236 | else | 
|  | 3237 | if test -n "$CC"; then | 
|  | 3238 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3239 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3241 | for as_dir in $PATH | 
|  | 3242 | do | 
|  | 3243 | IFS=$as_save_IFS | 
|  | 3244 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3245 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3246 | 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] | 3247 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3248 | $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] | 3249 | break 2 | 
|  | 3250 | fi | 
|  | 3251 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3252 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3253 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3254 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3255 | fi | 
|  | 3256 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3257 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3258 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3260 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3261 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3263 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3264 | fi | 
|  | 3265 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3266 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3267 | fi | 
|  | 3268 | if test -z "$ac_cv_prog_CC"; then | 
|  | 3269 | ac_ct_CC=$CC | 
|  | 3270 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 3271 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3273 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 3274 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | 
|  | 3275 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3276 | else | 
|  | 3277 | if test -n "$ac_ct_CC"; then | 
|  | 3278 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3279 | else | 
|  | 3280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3281 | for as_dir in $PATH | 
|  | 3282 | do | 
|  | 3283 | IFS=$as_save_IFS | 
|  | 3284 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3285 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3286 | 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] | 3287 | ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3288 | $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] | 3289 | break 2 | 
|  | 3290 | fi | 
|  | 3291 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3292 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3293 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3294 |  | 
|  | 3295 | fi | 
|  | 3296 | fi | 
|  | 3297 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3298 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3300 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3301 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3303 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3304 | fi | 
|  | 3305 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3306 | if test "x$ac_ct_CC" = x; then | 
|  | 3307 | CC="" | 
|  | 3308 | else | 
|  | 3309 | case $cross_compiling:$ac_tool_warned in | 
|  | 3310 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3312 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3313 | ac_tool_warned=yes ;; | 
|  | 3314 | esac | 
|  | 3315 | CC=$ac_ct_CC | 
|  | 3316 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3317 | else | 
|  | 3318 | CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3319 | fi | 
|  | 3320 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3321 | if test -z "$CC"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3322 | if test -n "$ac_tool_prefix"; then | 
|  | 3323 | # 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] | 3324 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3326 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 3327 | if test "${ac_cv_prog_CC+set}" = set; then : | 
|  | 3328 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3329 | else | 
|  | 3330 | if test -n "$CC"; then | 
|  | 3331 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3332 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3334 | for as_dir in $PATH | 
|  | 3335 | do | 
|  | 3336 | IFS=$as_save_IFS | 
|  | 3337 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3338 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3339 | 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] | 3340 | ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3341 | $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] | 3342 | break 2 | 
|  | 3343 | fi | 
|  | 3344 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3345 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3346 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3347 |  | 
|  | 3348 | fi | 
|  | 3349 | fi | 
|  | 3350 | CC=$ac_cv_prog_CC | 
|  | 3351 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3353 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3354 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3356 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3357 | fi | 
|  | 3358 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3359 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3360 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3361 | fi | 
|  | 3362 | if test -z "$CC"; then | 
|  | 3363 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 3364 | set dummy cc; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3366 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 3367 | if test "${ac_cv_prog_CC+set}" = set; then : | 
|  | 3368 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3369 | else | 
|  | 3370 | if test -n "$CC"; then | 
|  | 3371 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3372 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3373 | ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3375 | for as_dir in $PATH | 
|  | 3376 | do | 
|  | 3377 | IFS=$as_save_IFS | 
|  | 3378 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3379 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3380 | 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] | 3381 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 3382 | ac_prog_rejected=yes | 
|  | 3383 | continue | 
|  | 3384 | fi | 
|  | 3385 | ac_cv_prog_CC="cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3386 | $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] | 3387 | break 2 | 
|  | 3388 | fi | 
|  | 3389 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3390 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3391 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3392 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3393 | if test $ac_prog_rejected = yes; then | 
|  | 3394 | # We found a bogon in the path, so make sure we never use it. | 
|  | 3395 | set dummy $ac_cv_prog_CC | 
|  | 3396 | shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3397 | if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3398 | # We chose a different compiler from the bogus one. | 
|  | 3399 | # However, it has the same basename, so the bogon will be chosen | 
|  | 3400 | # first if we set CC to just the basename; use the full file name. | 
|  | 3401 | shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3402 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3403 | fi | 
|  | 3404 | fi | 
|  | 3405 | fi | 
|  | 3406 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3407 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3408 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3410 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3411 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3413 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3414 | fi | 
|  | 3415 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3416 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3417 | fi | 
|  | 3418 | if test -z "$CC"; then | 
|  | 3419 | if test -n "$ac_tool_prefix"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3420 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3421 | do | 
|  | 3422 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 3423 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3425 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 3426 | if test "${ac_cv_prog_CC+set}" = set; then : | 
|  | 3427 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3428 | else | 
|  | 3429 | if test -n "$CC"; then | 
|  | 3430 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3431 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3433 | for as_dir in $PATH | 
|  | 3434 | do | 
|  | 3435 | IFS=$as_save_IFS | 
|  | 3436 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3437 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3438 | 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] | 3439 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3440 | $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] | 3441 | break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3442 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3443 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3444 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3445 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3446 |  | 
|  | 3447 | fi | 
|  | 3448 | fi | 
|  | 3449 | CC=$ac_cv_prog_CC | 
|  | 3450 | if test -n "$CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 3452 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3453 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3455 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3456 | fi | 
|  | 3457 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3458 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3459 | test -n "$CC" && break | 
|  | 3460 | done | 
|  | 3461 | fi | 
|  | 3462 | if test -z "$CC"; then | 
|  | 3463 | ac_ct_CC=$CC | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3464 | for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3465 | do | 
|  | 3466 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 3467 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3469 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 3470 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | 
|  | 3471 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3472 | else | 
|  | 3473 | if test -n "$ac_ct_CC"; then | 
|  | 3474 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3475 | else | 
|  | 3476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3477 | for as_dir in $PATH | 
|  | 3478 | do | 
|  | 3479 | IFS=$as_save_IFS | 
|  | 3480 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3481 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3482 | 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] | 3483 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3484 | $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] | 3485 | break 2 | 
|  | 3486 | fi | 
|  | 3487 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3488 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3489 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3490 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3491 | fi | 
|  | 3492 | fi | 
|  | 3493 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3494 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 3496 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3497 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3499 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3500 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3501 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3502 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3503 | test -n "$ac_ct_CC" && break | 
|  | 3504 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3505 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3506 | if test "x$ac_ct_CC" = x; then | 
|  | 3507 | CC="" | 
|  | 3508 | else | 
|  | 3509 | case $cross_compiling:$ac_tool_warned in | 
|  | 3510 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3511 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3512 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3513 | ac_tool_warned=yes ;; | 
|  | 3514 | esac | 
|  | 3515 | CC=$ac_ct_CC | 
|  | 3516 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3517 | fi | 
|  | 3518 |  | 
|  | 3519 | fi | 
|  | 3520 |  | 
|  | 3521 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3522 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3523 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 3524 | as_fn_error "no acceptable C compiler found in \$PATH | 
|  | 3525 | See \`config.log' for more details." "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3526 |  | 
|  | 3527 | # Provide some information about the compiler. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3528 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
|  | 3529 | set X $ac_compile | 
|  | 3530 | ac_compiler=$2 | 
|  | 3531 | for ac_option in --version -v -V -qversion; do | 
|  | 3532 | { { ac_try="$ac_compiler $ac_option >&5" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3533 | case "(($ac_try" in | 
|  | 3534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3535 | *) ac_try_echo=$ac_try;; | 
|  | 3536 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3537 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3538 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 3539 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3540 | ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3541 | if test -s conftest.err; then | 
|  | 3542 | sed '10a\ | 
|  | 3543 | ... rest of stderr output deleted ... | 
|  | 3544 | 10q' conftest.err >conftest.er1 | 
|  | 3545 | cat conftest.er1 >&5 | 
|  | 3546 | fi | 
|  | 3547 | rm -f conftest.er1 conftest.err | 
|  | 3548 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3549 | test $ac_status = 0; } | 
|  | 3550 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3551 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3553 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3554 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3555 | int | 
|  | 3556 | main () | 
|  | 3557 | { | 
|  | 3558 |  | 
|  | 3559 | ; | 
|  | 3560 | return 0; | 
|  | 3561 | } | 
|  | 3562 | _ACEOF | 
|  | 3563 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3564 | 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] | 3565 | # Try to create an executable without -o first, disregard a.out. | 
|  | 3566 | # It will help us diagnose broken compilers, and finding out an intuition | 
|  | 3567 | # of exeext. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
|  | 3569 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
|  | 3570 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
|  | 3571 |  | 
|  | 3572 | # The possible output files: | 
|  | 3573 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
|  | 3574 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3575 | ac_rmfiles= | 
|  | 3576 | for ac_file in $ac_files | 
|  | 3577 | do | 
|  | 3578 | case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3579 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3580 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
|  | 3581 | esac | 
|  | 3582 | done | 
|  | 3583 | rm -f $ac_rmfiles | 
|  | 3584 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3585 | if { { ac_try="$ac_link_default" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3586 | case "(($ac_try" in | 
|  | 3587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3588 | *) ac_try_echo=$ac_try;; | 
|  | 3589 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3590 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3591 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3592 | (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3593 | ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3594 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3595 | test $ac_status = 0; }; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3596 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
|  | 3597 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
|  | 3598 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
|  | 3599 | # so that the user can short-circuit this test for compilers unknown to | 
|  | 3600 | # Autoconf. | 
|  | 3601 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3602 | do | 
|  | 3603 | test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3604 | case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3605 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3606 | ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3607 | [ab].out ) | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3608 | # We found the default executable, but exeext='' is most | 
|  | 3609 | # certainly right. | 
|  | 3610 | break;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3611 | *.* ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3612 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3613 | then :; else | 
|  | 3614 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 3615 | fi | 
|  | 3616 | # We set ac_cv_exeext here because the later test for it is not | 
|  | 3617 | # safe: cross compilers may not add the suffix if given an `-o' | 
|  | 3618 | # argument, so we may need to know it at that point already. | 
|  | 3619 | # Even if this section looks crufty: it has the advantage of | 
|  | 3620 | # actually working. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3621 | break;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3622 | * ) | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3623 | break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3624 | esac | 
|  | 3625 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3626 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
|  | 3627 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3628 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3629 | ac_file='' | 
|  | 3630 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3631 | if test -z "$ac_file"; then : | 
|  | 3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3633 | $as_echo "no" >&6; } | 
|  | 3634 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3635 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3636 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3637 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3638 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 3639 | { as_fn_set_status 77 | 
|  | 3640 | as_fn_error "C compiler cannot create executables | 
|  | 3641 | See \`config.log' for more details." "$LINENO" 5; }; } | 
|  | 3642 | else | 
|  | 3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 3644 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3645 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
|  | 3647 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
|  | 3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
|  | 3649 | $as_echo "$ac_file" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3650 | ac_exeext=$ac_cv_exeext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3651 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3652 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3653 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
|  | 3655 | $as_echo_n "checking for suffix of executables... " >&6; } | 
|  | 3656 | if { { ac_try="$ac_link" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3657 | case "(($ac_try" in | 
|  | 3658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3659 | *) ac_try_echo=$ac_try;; | 
|  | 3660 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3661 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3662 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3663 | (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3664 | ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3665 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3666 | test $ac_status = 0; }; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3667 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
|  | 3668 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
|  | 3669 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
|  | 3670 | # `rm'. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3671 | for ac_file in conftest.exe conftest conftest.*; do | 
|  | 3672 | test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3673 | case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3674 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3675 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3676 | break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3677 | * ) break;; | 
|  | 3678 | esac | 
|  | 3679 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3680 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3681 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3682 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 3683 | as_fn_error "cannot compute suffix of executables: cannot compile and link | 
|  | 3684 | See \`config.log' for more details." "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3685 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3686 | rm -f conftest conftest$ac_cv_exeext | 
|  | 3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
|  | 3688 | $as_echo "$ac_cv_exeext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3689 |  | 
|  | 3690 | rm -f conftest.$ac_ext | 
|  | 3691 | EXEEXT=$ac_cv_exeext | 
|  | 3692 | ac_exeext=$EXEEXT | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 3694 | /* end confdefs.h.  */ | 
|  | 3695 | #include <stdio.h> | 
|  | 3696 | int | 
|  | 3697 | main () | 
|  | 3698 | { | 
|  | 3699 | FILE *f = fopen ("conftest.out", "w"); | 
|  | 3700 | return ferror (f) || fclose (f) != 0; | 
|  | 3701 |  | 
|  | 3702 | ; | 
|  | 3703 | return 0; | 
|  | 3704 | } | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3705 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3706 | ac_clean_files="$ac_clean_files conftest.out" | 
|  | 3707 | # Check that the compiler produces executables we can run.  If not, either | 
|  | 3708 | # the compiler is broken, or we cross compile. | 
|  | 3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
|  | 3710 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
|  | 3711 | if test "$cross_compiling" != yes; then | 
|  | 3712 | { { ac_try="$ac_link" | 
|  | 3713 | case "(($ac_try" in | 
|  | 3714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3715 | *) ac_try_echo=$ac_try;; | 
|  | 3716 | esac | 
|  | 3717 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3718 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 3719 | (eval "$ac_link") 2>&5 | 
|  | 3720 | ac_status=$? | 
|  | 3721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3722 | test $ac_status = 0; } | 
|  | 3723 | if { ac_try='./conftest$ac_cv_exeext' | 
|  | 3724 | { { case "(($ac_try" in | 
|  | 3725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3726 | *) ac_try_echo=$ac_try;; | 
|  | 3727 | esac | 
|  | 3728 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3729 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 3730 | (eval "$ac_try") 2>&5 | 
|  | 3731 | ac_status=$? | 
|  | 3732 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3733 | test $ac_status = 0; }; }; then | 
|  | 3734 | cross_compiling=no | 
|  | 3735 | else | 
|  | 3736 | if test "$cross_compiling" = maybe; then | 
|  | 3737 | cross_compiling=yes | 
|  | 3738 | else | 
|  | 3739 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3740 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 3741 | as_fn_error "cannot run C compiled programs. | 
|  | 3742 | If you meant to cross compile, use \`--host'. | 
|  | 3743 | See \`config.log' for more details." "$LINENO" 5; } | 
|  | 3744 | fi | 
|  | 3745 | fi | 
|  | 3746 | fi | 
|  | 3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
|  | 3748 | $as_echo "$cross_compiling" >&6; } | 
|  | 3749 |  | 
|  | 3750 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
|  | 3751 | ac_clean_files=$ac_clean_files_save | 
|  | 3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
|  | 3753 | $as_echo_n "checking for suffix of object files... " >&6; } | 
|  | 3754 | if test "${ac_cv_objext+set}" = set; then : | 
|  | 3755 | $as_echo_n "(cached) " >&6 | 
|  | 3756 | else | 
|  | 3757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3758 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3759 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3760 | int | 
|  | 3761 | main () | 
|  | 3762 | { | 
|  | 3763 |  | 
|  | 3764 | ; | 
|  | 3765 | return 0; | 
|  | 3766 | } | 
|  | 3767 | _ACEOF | 
|  | 3768 | rm -f conftest.o conftest.obj | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3769 | if { { ac_try="$ac_compile" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3770 | case "(($ac_try" in | 
|  | 3771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 3772 | *) ac_try_echo=$ac_try;; | 
|  | 3773 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3774 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 3775 | $as_echo "$ac_try_echo"; } >&5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3776 | (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3777 | ac_status=$? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 3779 | test $ac_status = 0; }; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3780 | for ac_file in conftest.o conftest.obj conftest.*; do | 
|  | 3781 | test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3782 | case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3783 | *.$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] | 3784 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
|  | 3785 | break;; | 
|  | 3786 | esac | 
|  | 3787 | done | 
|  | 3788 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3789 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3790 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3791 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3792 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3793 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 3794 | as_fn_error "cannot compute suffix of object files: cannot compile | 
|  | 3795 | See \`config.log' for more details." "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3796 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3797 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
|  | 3798 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
|  | 3800 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3801 | OBJEXT=$ac_cv_objext | 
|  | 3802 | ac_objext=$OBJEXT | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
|  | 3804 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
|  | 3805 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | 
|  | 3806 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3807 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3809 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3810 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3811 | int | 
|  | 3812 | main () | 
|  | 3813 | { | 
|  | 3814 | #ifndef __GNUC__ | 
|  | 3815 | choke me | 
|  | 3816 | #endif | 
|  | 3817 |  | 
|  | 3818 | ; | 
|  | 3819 | return 0; | 
|  | 3820 | } | 
|  | 3821 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3822 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3823 | ac_compiler_gnu=yes | 
|  | 3824 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3825 | ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3826 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3827 | 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] | 3828 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
|  | 3829 |  | 
|  | 3830 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 3832 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
|  | 3833 | if test $ac_compiler_gnu = yes; then | 
|  | 3834 | GCC=yes | 
|  | 3835 | else | 
|  | 3836 | GCC= | 
|  | 3837 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3838 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 3839 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
|  | 3841 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
|  | 3842 | if test "${ac_cv_prog_cc_g+set}" = set; then : | 
|  | 3843 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3844 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3845 | ac_save_c_werror_flag=$ac_c_werror_flag | 
|  | 3846 | ac_c_werror_flag=yes | 
|  | 3847 | ac_cv_prog_cc_g=no | 
|  | 3848 | CFLAGS="-g" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3850 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3851 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3852 | int | 
|  | 3853 | main () | 
|  | 3854 | { | 
|  | 3855 |  | 
|  | 3856 | ; | 
|  | 3857 | return 0; | 
|  | 3858 | } | 
|  | 3859 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3860 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3861 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3862 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3863 | CFLAGS="" | 
|  | 3864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3865 | /* end confdefs.h.  */ | 
|  | 3866 |  | 
|  | 3867 | int | 
|  | 3868 | main () | 
|  | 3869 | { | 
|  | 3870 |  | 
|  | 3871 | ; | 
|  | 3872 | return 0; | 
|  | 3873 | } | 
|  | 3874 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3875 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3876 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3877 | else | 
|  | 3878 | ac_c_werror_flag=$ac_save_c_werror_flag | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3879 | CFLAGS="-g" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3881 | /* end confdefs.h.  */ | 
|  | 3882 |  | 
|  | 3883 | int | 
|  | 3884 | main () | 
|  | 3885 | { | 
|  | 3886 |  | 
|  | 3887 | ; | 
|  | 3888 | return 0; | 
|  | 3889 | } | 
|  | 3890 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3891 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3892 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3893 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3895 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 3897 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 3899 | ac_c_werror_flag=$ac_save_c_werror_flag | 
|  | 3900 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
|  | 3902 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3903 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3904 | CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3905 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 3906 | if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3907 | CFLAGS="-g -O2" | 
|  | 3908 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3909 | CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3910 | fi | 
|  | 3911 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3912 | if test "$GCC" = yes; then | 
|  | 3913 | CFLAGS="-O2" | 
|  | 3914 | else | 
|  | 3915 | CFLAGS= | 
|  | 3916 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3917 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
|  | 3919 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
|  | 3920 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | 
|  | 3921 | $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3922 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3923 | ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3924 | ac_save_CC=$CC | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3926 | /* end confdefs.h.  */ | 
|  | 3927 | #include <stdarg.h> | 
|  | 3928 | #include <stdio.h> | 
|  | 3929 | #include <sys/types.h> | 
|  | 3930 | #include <sys/stat.h> | 
|  | 3931 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 3932 | struct buf { int x; }; | 
|  | 3933 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 3934 | static char *e (p, i) | 
|  | 3935 | char **p; | 
|  | 3936 | int i; | 
|  | 3937 | { | 
|  | 3938 | return p[i]; | 
|  | 3939 | } | 
|  | 3940 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 3941 | { | 
|  | 3942 | char *s; | 
|  | 3943 | va_list v; | 
|  | 3944 | va_start (v,p); | 
|  | 3945 | s = g (p, va_arg (v,int)); | 
|  | 3946 | va_end (v); | 
|  | 3947 | return s; | 
|  | 3948 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3949 |  | 
|  | 3950 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 3951 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 3952 | These don't provoke an error unfortunately, instead are silently treated | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3953 | 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] | 3954 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 3955 | array size at least.  It's necessary to write '\x00'==0 to get something | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3956 | that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3957 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 3958 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3959 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
|  | 3960 | inside strings and character constants.  */ | 
|  | 3961 | #define FOO(x) 'x' | 
|  | 3962 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
|  | 3963 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3964 | int test (int i, double x); | 
|  | 3965 | struct s1 {int (*f) (int a);}; | 
|  | 3966 | struct s2 {int (*f) (double a);}; | 
|  | 3967 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 3968 | int argc; | 
|  | 3969 | char **argv; | 
|  | 3970 | int | 
|  | 3971 | main () | 
|  | 3972 | { | 
|  | 3973 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 3974 | ; | 
|  | 3975 | return 0; | 
|  | 3976 | } | 
|  | 3977 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3978 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
|  | 3979 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3980 | do | 
|  | 3981 | CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3982 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3983 | ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3984 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3985 | rm -f core conftest.err conftest.$ac_objext | 
|  | 3986 | test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3987 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3988 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3989 | CC=$ac_save_CC | 
|  | 3990 |  | 
|  | 3991 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3992 | # AC_CACHE_VAL | 
|  | 3993 | case "x$ac_cv_prog_cc_c89" in | 
|  | 3994 | x) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
|  | 3996 | $as_echo "none needed" >&6; } ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3997 | xno) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
|  | 3999 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4000 | *) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4001 | CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
|  | 4003 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4004 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4005 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4006 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4007 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4008 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4009 | ac_ext=c | 
|  | 4010 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4011 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4012 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4013 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4014 |  | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 4015 | if test ! -z "$preset_cflags" | 
|  | 4016 | then | 
|  | 4017 | CFLAGS=$preset_cflags | 
|  | 4018 | fi | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4019 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4020 |  | 
|  | 4021 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
|  | 4023 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4024 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4025 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4026 | if test "${with_cxx_main+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4027 | withval=$with_cxx_main; | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4028 |  | 
|  | 4029 | case $withval in | 
|  | 4030 | no)	with_cxx_main=no | 
|  | 4031 | MAINCC='$(CC)';; | 
|  | 4032 | yes)	with_cxx_main=yes | 
|  | 4033 | MAINCC='$(CXX)';; | 
|  | 4034 | *)	with_cxx_main=yes | 
|  | 4035 | MAINCC=$withval | 
|  | 4036 | if test -z "$CXX" | 
|  | 4037 | then | 
|  | 4038 | CXX=$withval | 
|  | 4039 | fi;; | 
|  | 4040 | esac | 
|  | 4041 | else | 
|  | 4042 |  | 
|  | 4043 | with_cxx_main=no | 
|  | 4044 | MAINCC='$(CC)' | 
|  | 4045 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4046 | fi | 
|  | 4047 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
|  | 4049 | $as_echo "$with_cxx_main" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4050 |  | 
|  | 4051 | preset_cxx="$CXX" | 
|  | 4052 | if test -z "$CXX" | 
|  | 4053 | then | 
|  | 4054 | case "$CC" in | 
|  | 4055 | gcc)    # Extract the first word of "g++", so it can be a program name with args. | 
|  | 4056 | set dummy g++; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4058 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4059 | if test "${ac_cv_path_CXX+set}" = set; then : | 
|  | 4060 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4061 | else | 
|  | 4062 | case $CXX in | 
|  | 4063 | [\\/]* | ?:[\\/]*) | 
|  | 4064 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4065 | ;; | 
|  | 4066 | *) | 
|  | 4067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4068 | for as_dir in notfound | 
|  | 4069 | do | 
|  | 4070 | IFS=$as_save_IFS | 
|  | 4071 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4072 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4073 | 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 | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4074 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4076 | break 2 | 
|  | 4077 | fi | 
|  | 4078 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4079 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4080 | IFS=$as_save_IFS | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4081 |  | 
|  | 4082 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" | 
|  | 4083 | ;; | 
|  | 4084 | esac | 
|  | 4085 | fi | 
|  | 4086 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4087 | if test -n "$CXX"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4089 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4090 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4092 | $as_echo "no" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4093 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4094 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4095 | ;; | 
|  | 4096 | cc)     # Extract the first word of "c++", so it can be a program name with args. | 
|  | 4097 | set dummy c++; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4099 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4100 | if test "${ac_cv_path_CXX+set}" = set; then : | 
|  | 4101 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4102 | else | 
|  | 4103 | case $CXX in | 
|  | 4104 | [\\/]* | ?:[\\/]*) | 
|  | 4105 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
|  | 4106 | ;; | 
|  | 4107 | *) | 
|  | 4108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4109 | for as_dir in notfound | 
|  | 4110 | do | 
|  | 4111 | IFS=$as_save_IFS | 
|  | 4112 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4113 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4114 | 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 | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4115 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4117 | break 2 | 
|  | 4118 | fi | 
|  | 4119 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4120 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4121 | IFS=$as_save_IFS | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4122 |  | 
|  | 4123 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" | 
|  | 4124 | ;; | 
|  | 4125 | esac | 
|  | 4126 | fi | 
|  | 4127 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4128 | if test -n "$CXX"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4130 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4131 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4133 | $as_echo "no" >&6; } | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4134 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4135 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4136 | ;; | 
|  | 4137 | esac | 
|  | 4138 | if test "$CXX" = "notfound" | 
|  | 4139 | then | 
|  | 4140 | CXX="" | 
|  | 4141 | fi | 
|  | 4142 | fi | 
|  | 4143 | if test -z "$CXX" | 
|  | 4144 | then | 
|  | 4145 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
|  | 4146 | do | 
|  | 4147 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 4148 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4150 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4151 | if test "${ac_cv_prog_CXX+set}" = set; then : | 
|  | 4152 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4153 | else | 
|  | 4154 | if test -n "$CXX"; then | 
|  | 4155 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 4156 | else | 
|  | 4157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4158 | for as_dir in $PATH | 
|  | 4159 | do | 
|  | 4160 | IFS=$as_save_IFS | 
|  | 4161 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4162 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4163 | 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 | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4164 | ac_cv_prog_CXX="$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4165 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4166 | break 2 | 
|  | 4167 | fi | 
|  | 4168 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4169 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4170 | IFS=$as_save_IFS | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4171 |  | 
|  | 4172 | fi | 
|  | 4173 | fi | 
|  | 4174 | CXX=$ac_cv_prog_CXX | 
|  | 4175 | if test -n "$CXX"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 4177 | $as_echo "$CXX" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4178 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4180 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4181 | fi | 
|  | 4182 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4183 |  | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4184 | test -n "$CXX" && break | 
|  | 4185 | done | 
|  | 4186 | test -n "$CXX" || CXX="notfound" | 
|  | 4187 |  | 
|  | 4188 | if test "$CXX" = "notfound" | 
|  | 4189 | then | 
|  | 4190 | CXX="" | 
|  | 4191 | fi | 
|  | 4192 | fi | 
|  | 4193 | if test "$preset_cxx" != "$CXX" | 
|  | 4194 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4196 |  | 
|  | 4197 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 4198 | If this is not intended, then set CXX on the configure command line. | 
|  | 4199 | " >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4200 | $as_echo "$as_me: WARNING: | 
| Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4201 |  | 
|  | 4202 | By default, distutils will build C++ extension modules with \"$CXX\". | 
|  | 4203 | If this is not intended, then set CXX on the configure command line. | 
|  | 4204 | " >&2;} | 
|  | 4205 | fi | 
|  | 4206 |  | 
|  | 4207 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4208 | # checks for UNIX variants that set C preprocessor variables | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4209 |  | 
|  | 4210 | ac_ext=c | 
|  | 4211 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4212 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4213 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4214 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
|  | 4216 | $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] | 4217 | # On Suns, sometimes $CPP names a directory. | 
|  | 4218 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 4219 | CPP= | 
|  | 4220 | fi | 
|  | 4221 | if test -z "$CPP"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4222 | if test "${ac_cv_prog_CPP+set}" = set; then : | 
|  | 4223 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4224 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4225 | # Double quotes because CPP needs to be expanded | 
|  | 4226 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 4227 | do | 
|  | 4228 | ac_preproc_ok=false | 
|  | 4229 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4230 | do | 
|  | 4231 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4232 | # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4233 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4234 | # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4235 | # 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] | 4236 | # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4238 | /* end confdefs.h.  */ | 
|  | 4239 | #ifdef __STDC__ | 
|  | 4240 | # include <limits.h> | 
|  | 4241 | #else | 
|  | 4242 | # include <assert.h> | 
|  | 4243 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4244 | Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4245 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4246 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4247 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4248 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4249 | # Broken: fails on valid input. | 
|  | 4250 | continue | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4251 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4252 | rm -f conftest.err conftest.$ac_ext | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4253 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4254 | # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4255 | # can be detected and how. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4257 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4258 | #include <ac_nonexistent.h> | 
|  | 4259 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4260 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4261 | # Broken: success on invalid input. | 
|  | 4262 | continue | 
|  | 4263 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4264 | # Passes both tests. | 
|  | 4265 | ac_preproc_ok=: | 
|  | 4266 | break | 
|  | 4267 | fi | 
|  | 4268 | rm -f conftest.err conftest.$ac_ext | 
|  | 4269 |  | 
|  | 4270 | done | 
|  | 4271 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 4272 | rm -f conftest.err conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4273 | if $ac_preproc_ok; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4274 | break | 
|  | 4275 | fi | 
|  | 4276 |  | 
|  | 4277 | done | 
|  | 4278 | ac_cv_prog_CPP=$CPP | 
|  | 4279 |  | 
|  | 4280 | fi | 
|  | 4281 | CPP=$ac_cv_prog_CPP | 
|  | 4282 | else | 
|  | 4283 | ac_cv_prog_CPP=$CPP | 
|  | 4284 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
|  | 4286 | $as_echo "$CPP" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4287 | ac_preproc_ok=false | 
|  | 4288 | for ac_c_preproc_warn_flag in '' yes | 
|  | 4289 | do | 
|  | 4290 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 4291 | # with a fresh cross-compiler works. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4292 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 4293 | # <limits.h> exists even on freestanding compilers. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4294 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 4295 | # not just through cpp. "Syntax error" is here to catch this case. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4297 | /* end confdefs.h.  */ | 
|  | 4298 | #ifdef __STDC__ | 
|  | 4299 | # include <limits.h> | 
|  | 4300 | #else | 
|  | 4301 | # include <assert.h> | 
|  | 4302 | #endif | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4303 | Syntax error | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4304 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4305 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4306 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4307 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4308 | # Broken: fails on valid input. | 
|  | 4309 | continue | 
|  | 4310 | fi | 
|  | 4311 | rm -f conftest.err conftest.$ac_ext | 
|  | 4312 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4313 | # OK, works on sane cases.  Now check whether nonexistent headers | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4314 | # can be detected and how. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4316 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4317 | #include <ac_nonexistent.h> | 
|  | 4318 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4319 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4320 | # Broken: success on invalid input. | 
|  | 4321 | continue | 
|  | 4322 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4323 | # Passes both tests. | 
|  | 4324 | ac_preproc_ok=: | 
|  | 4325 | break | 
|  | 4326 | fi | 
|  | 4327 | rm -f conftest.err conftest.$ac_ext | 
|  | 4328 |  | 
|  | 4329 | done | 
|  | 4330 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 4331 | rm -f conftest.err conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4332 | if $ac_preproc_ok; then : | 
|  | 4333 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4334 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4335 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4336 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 4337 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | 
|  | 4338 | See \`config.log' for more details." "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4339 | fi | 
|  | 4340 |  | 
|  | 4341 | ac_ext=c | 
|  | 4342 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4343 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4344 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4345 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4346 |  | 
|  | 4347 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
|  | 4349 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
|  | 4350 | if test "${ac_cv_path_GREP+set}" = set; then : | 
|  | 4351 | $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4352 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4353 | if test -z "$GREP"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4354 | ac_path_GREP_found=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4355 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4357 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 4358 | do | 
|  | 4359 | IFS=$as_save_IFS | 
|  | 4360 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4361 | for ac_prog in grep ggrep; do | 
|  | 4362 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4363 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 4364 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | 
|  | 4365 | # Check for GNU ac_path_GREP and select it if it is found. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4366 | # Check for GNU $ac_path_GREP | 
|  | 4367 | case `"$ac_path_GREP" --version 2>&1` in | 
|  | 4368 | *GNU*) | 
|  | 4369 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
|  | 4370 | *) | 
|  | 4371 | ac_count=0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4372 | $as_echo_n 0123456789 >"conftest.in" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4373 | while : | 
|  | 4374 | do | 
|  | 4375 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4376 | mv "conftest.tmp" "conftest.in" | 
|  | 4377 | cp "conftest.in" "conftest.nl" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4378 | $as_echo 'GREP' >> "conftest.nl" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4379 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4380 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4381 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4382 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
|  | 4383 | # Best one so far, save it but keep looking for a better one | 
|  | 4384 | ac_cv_path_GREP="$ac_path_GREP" | 
|  | 4385 | ac_path_GREP_max=$ac_count | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4386 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4387 | # 10*(2^10) chars as input seems more than enough | 
|  | 4388 | test $ac_count -gt 10 && break | 
|  | 4389 | done | 
|  | 4390 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4391 | esac | 
|  | 4392 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4393 | $ac_path_GREP_found && break 3 | 
|  | 4394 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4395 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4396 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4397 | IFS=$as_save_IFS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4398 | if test -z "$ac_cv_path_GREP"; then | 
|  | 4399 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
|  | 4400 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4401 | else | 
|  | 4402 | ac_cv_path_GREP=$GREP | 
|  | 4403 | fi | 
|  | 4404 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4405 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
|  | 4407 | $as_echo "$ac_cv_path_GREP" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4408 | GREP="$ac_cv_path_GREP" | 
|  | 4409 |  | 
|  | 4410 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
|  | 4412 | $as_echo_n "checking for egrep... " >&6; } | 
|  | 4413 | if test "${ac_cv_path_EGREP+set}" = set; then : | 
|  | 4414 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4415 | else | 
|  | 4416 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
|  | 4417 | then ac_cv_path_EGREP="$GREP -E" | 
|  | 4418 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4419 | if test -z "$EGREP"; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4420 | ac_path_EGREP_found=false | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4421 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 4422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4423 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 4424 | do | 
|  | 4425 | IFS=$as_save_IFS | 
|  | 4426 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4427 | for ac_prog in egrep; do | 
|  | 4428 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4429 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 4430 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | 
|  | 4431 | # Check for GNU ac_path_EGREP and select it if it is found. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4432 | # Check for GNU $ac_path_EGREP | 
|  | 4433 | case `"$ac_path_EGREP" --version 2>&1` in | 
|  | 4434 | *GNU*) | 
|  | 4435 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
|  | 4436 | *) | 
|  | 4437 | ac_count=0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4438 | $as_echo_n 0123456789 >"conftest.in" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4439 | while : | 
|  | 4440 | do | 
|  | 4441 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 4442 | mv "conftest.tmp" "conftest.in" | 
|  | 4443 | cp "conftest.in" "conftest.nl" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4444 | $as_echo 'EGREP' >> "conftest.nl" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4445 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 4446 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4447 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4448 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
|  | 4449 | # Best one so far, save it but keep looking for a better one | 
|  | 4450 | ac_cv_path_EGREP="$ac_path_EGREP" | 
|  | 4451 | ac_path_EGREP_max=$ac_count | 
|  | 4452 | fi | 
|  | 4453 | # 10*(2^10) chars as input seems more than enough | 
|  | 4454 | test $ac_count -gt 10 && break | 
|  | 4455 | done | 
|  | 4456 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 4457 | esac | 
|  | 4458 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4459 | $ac_path_EGREP_found && break 3 | 
|  | 4460 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4461 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4462 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4463 | IFS=$as_save_IFS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4464 | if test -z "$ac_cv_path_EGREP"; then | 
|  | 4465 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
|  | 4466 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4467 | else | 
|  | 4468 | ac_cv_path_EGREP=$EGREP | 
|  | 4469 | fi | 
|  | 4470 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4471 | fi | 
|  | 4472 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
|  | 4474 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4475 | EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4476 |  | 
|  | 4477 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 4479 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
|  | 4480 | if test "${ac_cv_header_stdc+set}" = set; then : | 
|  | 4481 | $as_echo_n "(cached) " >&6 | 
|  | 4482 | else | 
|  | 4483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4484 | /* end confdefs.h.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4485 | #include <stdlib.h> | 
|  | 4486 | #include <stdarg.h> | 
|  | 4487 | #include <string.h> | 
|  | 4488 | #include <float.h> | 
|  | 4489 |  | 
|  | 4490 | int | 
|  | 4491 | main () | 
|  | 4492 | { | 
|  | 4493 |  | 
|  | 4494 | ; | 
|  | 4495 | return 0; | 
|  | 4496 | } | 
|  | 4497 | _ACEOF | 
|  | 4498 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 4499 | ac_cv_header_stdc=yes | 
|  | 4500 | else | 
|  | 4501 | ac_cv_header_stdc=no | 
|  | 4502 | fi | 
|  | 4503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4504 |  | 
|  | 4505 | if test $ac_cv_header_stdc = yes; then | 
|  | 4506 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 4507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4508 | /* end confdefs.h.  */ | 
|  | 4509 | #include <string.h> | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4510 |  | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4511 | _ACEOF | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4512 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4513 | $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4514 |  | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4515 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4516 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4517 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 4518 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4519 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4520 | fi | 
|  | 4521 |  | 
|  | 4522 | if test $ac_cv_header_stdc = yes; then | 
|  | 4523 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 4524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4525 | /* end confdefs.h.  */ | 
|  | 4526 | #include <stdlib.h> | 
|  | 4527 |  | 
|  | 4528 | _ACEOF | 
|  | 4529 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 4530 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 4531 |  | 
|  | 4532 | else | 
|  | 4533 | ac_cv_header_stdc=no | 
|  | 4534 | fi | 
|  | 4535 | rm -f conftest* | 
|  | 4536 |  | 
|  | 4537 | fi | 
|  | 4538 |  | 
|  | 4539 | if test $ac_cv_header_stdc = yes; then | 
|  | 4540 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 4541 | if test "$cross_compiling" = yes; then : | 
|  | 4542 | : | 
|  | 4543 | else | 
|  | 4544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4545 | /* end confdefs.h.  */ | 
|  | 4546 | #include <ctype.h> | 
|  | 4547 | #include <stdlib.h> | 
|  | 4548 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 4549 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 4550 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 4551 | #else | 
|  | 4552 | # define ISLOWER(c) \ | 
|  | 4553 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 4554 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 4555 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 4556 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 4557 | #endif | 
|  | 4558 |  | 
|  | 4559 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 4560 | int | 
|  | 4561 | main () | 
|  | 4562 | { | 
|  | 4563 | int i; | 
|  | 4564 | for (i = 0; i < 256; i++) | 
|  | 4565 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 4566 | || toupper (i) != TOUPPER (i)) | 
|  | 4567 | return 2; | 
|  | 4568 | return 0; | 
|  | 4569 | } | 
|  | 4570 | _ACEOF | 
|  | 4571 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 4572 |  | 
|  | 4573 | else | 
|  | 4574 | ac_cv_header_stdc=no | 
|  | 4575 | fi | 
|  | 4576 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 4577 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 4578 | fi | 
|  | 4579 |  | 
|  | 4580 | fi | 
|  | 4581 | fi | 
|  | 4582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 4583 | $as_echo "$ac_cv_header_stdc" >&6; } | 
|  | 4584 | if test $ac_cv_header_stdc = yes; then | 
|  | 4585 |  | 
|  | 4586 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
|  | 4587 |  | 
|  | 4588 | fi | 
|  | 4589 |  | 
|  | 4590 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
|  | 4591 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
|  | 4592 | inttypes.h stdint.h unistd.h | 
|  | 4593 | do : | 
|  | 4594 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 4595 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
|  | 4596 | " | 
|  | 4597 | eval as_val=\$$as_ac_Header | 
|  | 4598 | if test "x$as_val" = x""yes; then : | 
|  | 4599 | cat >>confdefs.h <<_ACEOF | 
|  | 4600 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 4601 | _ACEOF | 
|  | 4602 |  | 
|  | 4603 | fi | 
|  | 4604 |  | 
|  | 4605 | done | 
|  | 4606 |  | 
|  | 4607 |  | 
|  | 4608 |  | 
|  | 4609 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | 
|  | 4610 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | 
|  | 4611 | MINIX=yes | 
|  | 4612 | else | 
|  | 4613 | MINIX= | 
|  | 4614 | fi | 
|  | 4615 |  | 
|  | 4616 |  | 
|  | 4617 | if test "$MINIX" = yes; then | 
|  | 4618 |  | 
|  | 4619 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
|  | 4620 |  | 
|  | 4621 |  | 
|  | 4622 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
|  | 4623 |  | 
|  | 4624 |  | 
|  | 4625 | $as_echo "#define _MINIX 1" >>confdefs.h | 
|  | 4626 |  | 
|  | 4627 | fi | 
|  | 4628 |  | 
|  | 4629 |  | 
|  | 4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
|  | 4631 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
|  | 4632 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | 
|  | 4633 | $as_echo_n "(cached) " >&6 | 
|  | 4634 | else | 
|  | 4635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4636 | /* end confdefs.h.  */ | 
|  | 4637 |  | 
|  | 4638 | #	  define __EXTENSIONS__ 1 | 
|  | 4639 | $ac_includes_default | 
|  | 4640 | int | 
|  | 4641 | main () | 
|  | 4642 | { | 
|  | 4643 |  | 
|  | 4644 | ; | 
|  | 4645 | return 0; | 
|  | 4646 | } | 
|  | 4647 | _ACEOF | 
|  | 4648 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 4649 | ac_cv_safe_to_define___extensions__=yes | 
|  | 4650 | else | 
|  | 4651 | ac_cv_safe_to_define___extensions__=no | 
|  | 4652 | fi | 
|  | 4653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4654 | fi | 
|  | 4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
|  | 4656 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
|  | 4657 | test $ac_cv_safe_to_define___extensions__ = yes && | 
|  | 4658 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
|  | 4659 |  | 
|  | 4660 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
|  | 4661 |  | 
|  | 4662 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
|  | 4663 |  | 
|  | 4664 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
|  | 4665 |  | 
|  | 4666 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
|  | 4667 |  | 
|  | 4668 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4669 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4670 | # Check for unsupported systems | 
|  | 4671 | case $ac_sys_system/$ac_sys_release in | 
|  | 4672 | atheos*|Linux*/1*) | 
|  | 4673 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
|  | 4674 | echo See README for details. | 
|  | 4675 | exit 1;; | 
|  | 4676 | esac | 
|  | 4677 |  | 
|  | 4678 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
|  | 4680 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4681 |  | 
|  | 4682 | # Check whether --with-suffix was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4683 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4684 | withval=$with_suffix; | 
|  | 4685 | case $withval in | 
|  | 4686 | no)	EXEEXT=;; | 
|  | 4687 | yes)	EXEEXT=.exe;; | 
|  | 4688 | *)	EXEEXT=$withval;; | 
|  | 4689 | esac | 
|  | 4690 | fi | 
|  | 4691 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
|  | 4693 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4694 |  | 
|  | 4695 | # Test whether we're running on a non-case-sensitive system, in which | 
|  | 4696 | # case we give a warning if no ext is given | 
|  | 4697 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
|  | 4699 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4700 | if test ! -d CaseSensitiveTestDir; then | 
|  | 4701 | mkdir CaseSensitiveTestDir | 
|  | 4702 | fi | 
|  | 4703 |  | 
|  | 4704 | if test -d casesensitivetestdir | 
|  | 4705 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 4707 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4708 | BUILDEXEEXT=.exe | 
|  | 4709 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4711 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4712 | BUILDEXEEXT=$EXEEXT | 
|  | 4713 | fi | 
|  | 4714 | rmdir CaseSensitiveTestDir | 
|  | 4715 |  | 
|  | 4716 | case $MACHDEP in | 
|  | 4717 | bsdos*) | 
|  | 4718 | case $CC in | 
|  | 4719 | gcc) CC="$CC -D_HAVE_BSDI";; | 
|  | 4720 | esac;; | 
|  | 4721 | esac | 
|  | 4722 |  | 
|  | 4723 | case $ac_sys_system in | 
|  | 4724 | hp*|HP*) | 
|  | 4725 | case $CC in | 
|  | 4726 | cc|*/cc) CC="$CC -Ae";; | 
|  | 4727 | esac;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4728 | SunOS*) | 
|  | 4729 | # Some functions have a prototype only with that define, e.g. confstr | 
|  | 4730 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4731 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4732 |  | 
|  | 4733 | ;; | 
|  | 4734 | esac | 
|  | 4735 |  | 
|  | 4736 |  | 
|  | 4737 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
|  | 4739 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4740 | if test -z "$LIBRARY" | 
|  | 4741 | then | 
|  | 4742 | LIBRARY='libpython$(VERSION).a' | 
|  | 4743 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
|  | 4745 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4746 |  | 
|  | 4747 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
|  | 4748 | # name of the library into which to insert object files). BLDLIBRARY is also | 
|  | 4749 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
|  | 4750 | # is blank as the main program is not linked directly against LDLIBRARY. | 
|  | 4751 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
|  | 4752 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
|  | 4753 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
|  | 4754 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
|  | 4755 | # | 
|  | 4756 | # RUNSHARED is used to run shared python without installed libraries | 
|  | 4757 | # | 
|  | 4758 | # INSTSONAME is the name of the shared library that will be use to install | 
|  | 4759 | # on the system - some systems like version suffix, others don't | 
|  | 4760 |  | 
|  | 4761 |  | 
|  | 4762 |  | 
|  | 4763 |  | 
|  | 4764 |  | 
|  | 4765 |  | 
|  | 4766 | LDLIBRARY="$LIBRARY" | 
|  | 4767 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 4768 | INSTSONAME='$(LDLIBRARY)' | 
|  | 4769 | DLLLIBRARY='' | 
|  | 4770 | LDLIBRARYDIR='' | 
|  | 4771 | RUNSHARED='' | 
|  | 4772 |  | 
|  | 4773 | # LINKCC is the command that links the python executable -- default is $(CC). | 
|  | 4774 | # If CXX is set, and if it is needed to link a main function that was | 
|  | 4775 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
|  | 4776 | # python might then depend on the C++ runtime | 
|  | 4777 | # This is altered for AIX in order to build the export list before | 
|  | 4778 | # linking. | 
|  | 4779 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
|  | 4781 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4782 | if test -z "$LINKCC" | 
|  | 4783 | then | 
|  | 4784 | LINKCC='$(PURIFY) $(MAINCC)' | 
|  | 4785 | case $ac_sys_system in | 
|  | 4786 | AIX*) | 
|  | 4787 | exp_extra="\"\"" | 
|  | 4788 | if test $ac_sys_release -ge 5 -o \ | 
|  | 4789 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
|  | 4790 | exp_extra="." | 
|  | 4791 | fi | 
|  | 4792 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4793 | QNX*) | 
|  | 4794 | # qcc must be used because the other compilers do not | 
|  | 4795 | # support -N. | 
|  | 4796 | LINKCC=qcc;; | 
|  | 4797 | esac | 
|  | 4798 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
|  | 4800 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4801 |  | 
|  | 4802 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
|  | 4803 | # make sure we default having it set to "no": this is used by | 
|  | 4804 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
|  | 4805 | # to linker command lines, and failing to detect GNU ld simply results | 
|  | 4806 | # in the same bahaviour as before. | 
|  | 4807 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
|  | 4809 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4810 | ac_prog=ld | 
|  | 4811 | if test "$GCC" = yes; then | 
|  | 4812 | ac_prog=`$CC -print-prog-name=ld` | 
|  | 4813 | fi | 
|  | 4814 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
|  | 4815 | *GNU*) | 
|  | 4816 | GNULD=yes;; | 
|  | 4817 | *) | 
|  | 4818 | GNULD=no;; | 
|  | 4819 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
|  | 4821 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4822 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
|  | 4824 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4825 | # Check whether --enable-shared was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4826 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4827 | enableval=$enable_shared; | 
|  | 4828 | fi | 
|  | 4829 |  | 
|  | 4830 |  | 
|  | 4831 | if test -z "$enable_shared" | 
|  | 4832 | then | 
|  | 4833 | case $ac_sys_system in | 
|  | 4834 | CYGWIN* | atheos*) | 
|  | 4835 | enable_shared="yes";; | 
|  | 4836 | *) | 
|  | 4837 | enable_shared="no";; | 
|  | 4838 | esac | 
|  | 4839 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
|  | 4841 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4842 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
|  | 4844 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4845 | # Check whether --enable-profiling was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4846 | if test "${enable_profiling+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4847 | enableval=$enable_profiling; ac_save_cc="$CC" | 
|  | 4848 | CC="$CC -pg" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4849 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4850 | ac_enable_profiling="no" | 
|  | 4851 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4853 | /* end confdefs.h.  */ | 
|  | 4854 | int main() { return 0; } | 
|  | 4855 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4856 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4857 | ac_enable_profiling="yes" | 
|  | 4858 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4859 | ac_enable_profiling="no" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4860 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4861 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 4862 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4863 | fi | 
|  | 4864 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4865 | CC="$ac_save_cc" | 
|  | 4866 | fi | 
|  | 4867 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5 | 
|  | 4869 | $as_echo "$ac_enable_profiling" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4870 |  | 
|  | 4871 | case "$ac_enable_profiling" in | 
|  | 4872 | "yes") | 
|  | 4873 | BASECFLAGS="-pg $BASECFLAGS" | 
|  | 4874 | LDFLAGS="-pg $LDFLAGS" | 
|  | 4875 | ;; | 
|  | 4876 | esac | 
|  | 4877 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
|  | 4879 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4880 |  | 
|  | 4881 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
|  | 4882 | # library that we build, but we do not want to link against it (we | 
|  | 4883 | # will find it with a -framework option). For this reason there is an | 
|  | 4884 | # extra variable BLDLIBRARY against which Python and the extension | 
|  | 4885 | # modules are linked, BLDLIBRARY. This is normally the same as | 
|  | 4886 | # LDLIBRARY, but empty for MacOSX framework builds. | 
|  | 4887 | if test "$enable_framework" | 
|  | 4888 | then | 
|  | 4889 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 4890 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" | 
|  | 4891 | BLDLIBRARY='' | 
|  | 4892 | else | 
|  | 4893 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 4894 | fi | 
|  | 4895 |  | 
|  | 4896 | # Other platforms follow | 
|  | 4897 | if test $enable_shared = "yes"; then | 
|  | 4898 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4899 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4900 |  | 
|  | 4901 | case $ac_sys_system in | 
|  | 4902 | BeOS*) | 
|  | 4903 | LDLIBRARY='libpython$(VERSION).so' | 
|  | 4904 | ;; | 
|  | 4905 | CYGWIN*) | 
|  | 4906 | LDLIBRARY='libpython$(VERSION).dll.a' | 
|  | 4907 | DLLLIBRARY='libpython$(VERSION).dll' | 
|  | 4908 | ;; | 
|  | 4909 | SunOS*) | 
|  | 4910 | LDLIBRARY='libpython$(VERSION).so' | 
|  | 4911 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' | 
|  | 4912 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
|  | 4913 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
|  | 4914 | ;; | 
|  | 4915 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) | 
|  | 4916 | LDLIBRARY='libpython$(VERSION).so' | 
|  | 4917 | BLDLIBRARY='-L. -lpython$(VERSION)' | 
|  | 4918 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
|  | 4919 | case $ac_sys_system in | 
|  | 4920 | FreeBSD*) | 
|  | 4921 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` | 
|  | 4922 | ;; | 
|  | 4923 | esac | 
|  | 4924 | INSTSONAME="$LDLIBRARY".$SOVERSION | 
|  | 4925 | ;; | 
|  | 4926 | hp*|HP*) | 
|  | 4927 | case `uname -m` in | 
|  | 4928 | ia64) | 
|  | 4929 | LDLIBRARY='libpython$(VERSION).so' | 
|  | 4930 | ;; | 
|  | 4931 | *) | 
|  | 4932 | LDLIBRARY='libpython$(VERSION).sl' | 
|  | 4933 | ;; | 
|  | 4934 | esac | 
|  | 4935 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' | 
|  | 4936 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} | 
|  | 4937 | ;; | 
|  | 4938 | OSF*) | 
|  | 4939 | LDLIBRARY='libpython$(VERSION).so' | 
|  | 4940 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' | 
|  | 4941 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} | 
|  | 4942 | ;; | 
|  | 4943 | atheos*) | 
|  | 4944 | LDLIBRARY='libpython$(VERSION).so' | 
|  | 4945 | BLDLIBRARY='-L. -lpython$(VERSION)' | 
|  | 4946 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} | 
|  | 4947 | ;; | 
|  | 4948 | Darwin*) | 
|  | 4949 | LDLIBRARY='libpython$(VERSION).dylib' | 
|  | 4950 | BLDLIBRARY='-L. -lpython$(VERSION)' | 
|  | 4951 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' | 
|  | 4952 | ;; | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 4953 | AIX*) | 
|  | 4954 | LDLIBRARY='libpython$(VERSION).so' | 
|  | 4955 | RUNSHARED=LIBPATH=`pwd`:${LIBPATH} | 
|  | 4956 | ;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4957 |  | 
|  | 4958 | esac | 
|  | 4959 | else # shared is disabled | 
|  | 4960 | case $ac_sys_system in | 
|  | 4961 | CYGWIN*) | 
|  | 4962 | BLDLIBRARY='$(LIBRARY)' | 
|  | 4963 | LDLIBRARY='libpython$(VERSION).dll.a' | 
|  | 4964 | ;; | 
|  | 4965 | esac | 
|  | 4966 | fi | 
|  | 4967 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
|  | 4969 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4970 |  | 
|  | 4971 | if test -n "$ac_tool_prefix"; then | 
|  | 4972 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 4973 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 4975 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 4976 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | 
|  | 4977 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4978 | else | 
|  | 4979 | if test -n "$RANLIB"; then | 
|  | 4980 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 4981 | else | 
|  | 4982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4983 | for as_dir in $PATH | 
|  | 4984 | do | 
|  | 4985 | IFS=$as_save_IFS | 
|  | 4986 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4987 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4988 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 4989 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4991 | break 2 | 
|  | 4992 | fi | 
|  | 4993 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4994 | done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4995 | IFS=$as_save_IFS | 
|  | 4996 |  | 
|  | 4997 | fi | 
|  | 4998 | fi | 
|  | 4999 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 5000 | if test -n "$RANLIB"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
|  | 5002 | $as_echo "$RANLIB" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5003 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5005 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5006 | fi | 
|  | 5007 |  | 
|  | 5008 |  | 
|  | 5009 | fi | 
|  | 5010 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 5011 | ac_ct_RANLIB=$RANLIB | 
|  | 5012 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 5013 | set dummy ranlib; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5015 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5016 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | 
|  | 5017 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5018 | else | 
|  | 5019 | if test -n "$ac_ct_RANLIB"; then | 
|  | 5020 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 5021 | else | 
|  | 5022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5023 | for as_dir in $PATH | 
|  | 5024 | do | 
|  | 5025 | IFS=$as_save_IFS | 
|  | 5026 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5027 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5028 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5029 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5031 | break 2 | 
|  | 5032 | fi | 
|  | 5033 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5034 | done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5035 | IFS=$as_save_IFS | 
|  | 5036 |  | 
|  | 5037 | fi | 
|  | 5038 | fi | 
|  | 5039 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 5040 | if test -n "$ac_ct_RANLIB"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
|  | 5042 | $as_echo "$ac_ct_RANLIB" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5043 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5045 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5046 | fi | 
|  | 5047 |  | 
|  | 5048 | if test "x$ac_ct_RANLIB" = x; then | 
|  | 5049 | RANLIB=":" | 
|  | 5050 | else | 
|  | 5051 | case $cross_compiling:$ac_tool_warned in | 
|  | 5052 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5053 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5054 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5055 | ac_tool_warned=yes ;; | 
|  | 5056 | esac | 
|  | 5057 | RANLIB=$ac_ct_RANLIB | 
|  | 5058 | fi | 
|  | 5059 | else | 
|  | 5060 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 5061 | fi | 
|  | 5062 |  | 
|  | 5063 |  | 
|  | 5064 | for ac_prog in ar aal | 
|  | 5065 | do | 
|  | 5066 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 5067 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5069 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5070 | if test "${ac_cv_prog_AR+set}" = set; then : | 
|  | 5071 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5072 | else | 
|  | 5073 | if test -n "$AR"; then | 
|  | 5074 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 5075 | else | 
|  | 5076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5077 | for as_dir in $PATH | 
|  | 5078 | do | 
|  | 5079 | IFS=$as_save_IFS | 
|  | 5080 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5081 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5082 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5083 | ac_cv_prog_AR="$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5085 | break 2 | 
|  | 5086 | fi | 
|  | 5087 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5088 | done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5089 | IFS=$as_save_IFS | 
|  | 5090 |  | 
|  | 5091 | fi | 
|  | 5092 | fi | 
|  | 5093 | AR=$ac_cv_prog_AR | 
|  | 5094 | if test -n "$AR"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
|  | 5096 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5097 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5099 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5100 | fi | 
|  | 5101 |  | 
|  | 5102 |  | 
|  | 5103 | test -n "$AR" && break | 
|  | 5104 | done | 
|  | 5105 | test -n "$AR" || AR="ar" | 
|  | 5106 |  | 
|  | 5107 |  | 
|  | 5108 | # tweak ARFLAGS only if the user didn't set it on the command line | 
|  | 5109 |  | 
|  | 5110 | if test -z "$ARFLAGS" | 
|  | 5111 | then | 
|  | 5112 | ARFLAGS="rc" | 
|  | 5113 | fi | 
|  | 5114 |  | 
|  | 5115 |  | 
|  | 5116 | # Extract the first word of "svnversion", so it can be a program name with args. | 
|  | 5117 | set dummy svnversion; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5119 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5120 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then : | 
|  | 5121 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5122 | else | 
|  | 5123 | if test -n "$SVNVERSION"; then | 
|  | 5124 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. | 
|  | 5125 | else | 
|  | 5126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5127 | for as_dir in $PATH | 
|  | 5128 | do | 
|  | 5129 | IFS=$as_save_IFS | 
|  | 5130 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5131 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5132 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5133 | ac_cv_prog_SVNVERSION="found" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5135 | break 2 | 
|  | 5136 | fi | 
|  | 5137 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5138 | done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5139 | IFS=$as_save_IFS | 
|  | 5140 |  | 
|  | 5141 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" | 
|  | 5142 | fi | 
|  | 5143 | fi | 
|  | 5144 | SVNVERSION=$ac_cv_prog_SVNVERSION | 
|  | 5145 | if test -n "$SVNVERSION"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 | 
|  | 5147 | $as_echo "$SVNVERSION" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5148 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5150 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5151 | fi | 
|  | 5152 |  | 
|  | 5153 |  | 
|  | 5154 | if test $SVNVERSION = found | 
|  | 5155 | then | 
|  | 5156 | SVNVERSION="svnversion \$(srcdir)" | 
|  | 5157 | else | 
|  | 5158 | SVNVERSION="echo Unversioned directory" | 
|  | 5159 | fi | 
|  | 5160 |  | 
|  | 5161 | case $MACHDEP in | 
|  | 5162 | bsdos*|hp*|HP*) | 
|  | 5163 | # install -d does not work on BSDI or HP-UX | 
|  | 5164 | if test -z "$INSTALL" | 
|  | 5165 | then | 
|  | 5166 | INSTALL="${srcdir}/install-sh -c" | 
|  | 5167 | fi | 
|  | 5168 | esac | 
|  | 5169 | ac_aux_dir= | 
|  | 5170 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5171 | for ac_t in install-sh install.sh shtool; do | 
|  | 5172 | if test -f "$ac_dir/$ac_t"; then | 
|  | 5173 | ac_aux_dir=$ac_dir | 
|  | 5174 | ac_install_sh="$ac_aux_dir/$ac_t -c" | 
|  | 5175 | break 2 | 
|  | 5176 | fi | 
|  | 5177 | done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5178 | done | 
|  | 5179 | if test -z "$ac_aux_dir"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5180 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5181 | fi | 
|  | 5182 |  | 
|  | 5183 | # These three variables are undocumented and unsupported, | 
|  | 5184 | # and are intended to be withdrawn in a future Autoconf release. | 
|  | 5185 | # They can cause serious problems if a builder's source tree is in a directory | 
|  | 5186 | # whose full name contains unusual characters. | 
|  | 5187 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
|  | 5188 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
|  | 5189 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
|  | 5190 |  | 
|  | 5191 |  | 
|  | 5192 | # Find a good install program.  We prefer a C program (faster), | 
|  | 5193 | # so one script is as good as another.  But avoid the broken or | 
|  | 5194 | # incompatible versions: | 
|  | 5195 | # SysV /etc/install, /usr/sbin/install | 
|  | 5196 | # SunOS /usr/etc/install | 
|  | 5197 | # IRIX /sbin/install | 
|  | 5198 | # AIX /bin/install | 
|  | 5199 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
|  | 5200 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 5201 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 5202 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 5203 | # OS/2's system install, which has a completely different semantic | 
|  | 5204 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5205 | # Reject install programs that cannot install multiple files. | 
|  | 5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
|  | 5207 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5208 | if test -z "$INSTALL"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5209 | if test "${ac_cv_path_install+set}" = set; then : | 
|  | 5210 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5211 | else | 
|  | 5212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5213 | for as_dir in $PATH | 
|  | 5214 | do | 
|  | 5215 | IFS=$as_save_IFS | 
|  | 5216 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5217 | # Account for people who put trailing slashes in PATH elements. | 
|  | 5218 | case $as_dir/ in #(( | 
|  | 5219 | ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5220 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5221 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5222 | /usr/ucb/* ) ;; | 
|  | 5223 | *) | 
|  | 5224 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 5225 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 5226 | # by default. | 
|  | 5227 | for ac_prog in ginstall scoinst install; do | 
|  | 5228 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5229 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | 
|  | 5230 | if test $ac_prog = install && | 
|  | 5231 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 5232 | # AIX install.  It has an incompatible calling convention. | 
|  | 5233 | : | 
|  | 5234 | elif test $ac_prog = install && | 
|  | 5235 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 5236 | # program-specific install script used by HP pwplus--don't use. | 
|  | 5237 | : | 
|  | 5238 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5239 | rm -rf conftest.one conftest.two conftest.dir | 
|  | 5240 | echo one > conftest.one | 
|  | 5241 | echo two > conftest.two | 
|  | 5242 | mkdir conftest.dir | 
|  | 5243 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
|  | 5244 | test -s conftest.one && test -s conftest.two && | 
|  | 5245 | test -s conftest.dir/conftest.one && | 
|  | 5246 | test -s conftest.dir/conftest.two | 
|  | 5247 | then | 
|  | 5248 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
|  | 5249 | break 3 | 
|  | 5250 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5251 | fi | 
|  | 5252 | fi | 
|  | 5253 | done | 
|  | 5254 | done | 
|  | 5255 | ;; | 
|  | 5256 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5257 |  | 
|  | 5258 | done | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5259 | IFS=$as_save_IFS | 
|  | 5260 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5261 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5262 |  | 
|  | 5263 | fi | 
|  | 5264 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 5265 | INSTALL=$ac_cv_path_install | 
|  | 5266 | else | 
|  | 5267 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 5268 | # value for INSTALL within a source directory, because that will | 
|  | 5269 | # break other packages using the cache if that directory is | 
|  | 5270 | # removed, or if the value is a relative name. | 
|  | 5271 | INSTALL=$ac_install_sh | 
|  | 5272 | fi | 
|  | 5273 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
|  | 5275 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5276 |  | 
|  | 5277 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 5278 | # It thinks the first close brace ends the variable substitution. | 
|  | 5279 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 5280 |  | 
|  | 5281 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
|  | 5282 |  | 
|  | 5283 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 5284 |  | 
|  | 5285 |  | 
|  | 5286 | # Not every filesystem supports hard links | 
|  | 5287 |  | 
|  | 5288 | if test -z "$LN" ; then | 
|  | 5289 | case $ac_sys_system in | 
|  | 5290 | BeOS*) LN="ln -s";; | 
|  | 5291 | CYGWIN*) LN="ln -s";; | 
|  | 5292 | atheos*) LN="ln -s";; | 
|  | 5293 | *) LN=ln;; | 
|  | 5294 | esac | 
|  | 5295 | fi | 
|  | 5296 |  | 
|  | 5297 | # Check for --with-pydebug | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
|  | 5299 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5300 |  | 
|  | 5301 | # Check whether --with-pydebug was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5302 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5303 | withval=$with_pydebug; | 
|  | 5304 | if test "$withval" != no | 
|  | 5305 | then | 
|  | 5306 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5307 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5308 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 5310 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5311 | Py_DEBUG='true' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5312 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5313 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5314 | fi | 
|  | 5315 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5317 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5318 | fi | 
|  | 5319 |  | 
|  | 5320 |  | 
|  | 5321 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
|  | 5322 | # merged with this chunk of code? | 
|  | 5323 |  | 
|  | 5324 | # Optimizer/debugger flags | 
|  | 5325 | # ------------------------ | 
|  | 5326 | # (The following bit of code is complicated enough - please keep things | 
|  | 5327 | # indented properly.  Just pretend you're editing Python code. ;-) | 
|  | 5328 |  | 
|  | 5329 | # There are two parallel sets of case statements below, one that checks to | 
|  | 5330 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
|  | 5331 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
|  | 5332 | # user set OPT. | 
|  | 5333 |  | 
|  | 5334 | # tweak OPT based on compiler and platform, only if the user didn't set | 
|  | 5335 | # it on the command line | 
|  | 5336 |  | 
| Benjamin Peterson | d4b721b | 2010-03-23 20:58:37 +0000 | [diff] [blame] | 5337 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5338 | then | 
|  | 5339 | case $GCC in | 
|  | 5340 | yes) | 
|  | 5341 | if test "$CC" != 'g++' ; then | 
|  | 5342 | STRICT_PROTO="-Wstrict-prototypes" | 
|  | 5343 | fi | 
|  | 5344 | # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
|  | 5345 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
|  | 5346 | WRAP="-fwrapv" | 
|  | 5347 | fi | 
|  | 5348 | case $ac_cv_prog_cc_g in | 
|  | 5349 | yes) | 
|  | 5350 | if test "$Py_DEBUG" = 'true' ; then | 
|  | 5351 | # Optimization messes up debuggers, so turn it off for | 
|  | 5352 | # debug builds. | 
| Mark Dickinson | d2f3e3f | 2010-05-05 22:23:58 +0000 | [diff] [blame] | 5353 | OPT="-g -O0 -Wall $STRICT_PROTO" | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5354 | else | 
|  | 5355 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" | 
|  | 5356 | fi | 
|  | 5357 | ;; | 
|  | 5358 | *) | 
|  | 5359 | OPT="-O3 -Wall $STRICT_PROTO" | 
|  | 5360 | ;; | 
|  | 5361 | esac | 
|  | 5362 | case $ac_sys_system in | 
|  | 5363 | SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
|  | 5364 | ;; | 
|  | 5365 | esac | 
|  | 5366 | ;; | 
|  | 5367 |  | 
|  | 5368 | *) | 
|  | 5369 | OPT="-O" | 
|  | 5370 | ;; | 
|  | 5371 | esac | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5372 | fi | 
|  | 5373 |  | 
|  | 5374 |  | 
|  | 5375 |  | 
|  | 5376 | # The -arch flags for universal builds on OSX | 
|  | 5377 | UNIVERSAL_ARCH_FLAGS= | 
|  | 5378 |  | 
|  | 5379 |  | 
|  | 5380 | # tweak BASECFLAGS based on compiler and platform | 
|  | 5381 | case $GCC in | 
|  | 5382 | yes) | 
|  | 5383 | # Python violates C99 rules, by casting between incompatible | 
|  | 5384 | # pointer types. GCC may generate bad code as a result of that, | 
|  | 5385 | # so use -fno-strict-aliasing if supported. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5 | 
|  | 5387 | $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5388 | ac_save_cc="$CC" | 
|  | 5389 | CC="$CC -fno-strict-aliasing" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5390 | if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then : | 
|  | 5391 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 5392 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5394 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5395 |  | 
|  | 5396 | int | 
|  | 5397 | main () | 
|  | 5398 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 5399 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5400 | ; | 
|  | 5401 | return 0; | 
|  | 5402 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5403 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5404 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5405 | ac_cv_no_strict_aliasing_ok=yes | 
|  | 5406 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5407 | ac_cv_no_strict_aliasing_ok=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5408 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 5410 | fi | 
|  | 5411 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5412 | CC="$ac_save_cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5 | 
|  | 5414 | $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5415 | if test $ac_cv_no_strict_aliasing_ok = yes | 
|  | 5416 | then | 
|  | 5417 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
|  | 5418 | fi | 
|  | 5419 |  | 
|  | 5420 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
|  | 5421 | # support.  Without this, treatment of subnormals doesn't follow | 
|  | 5422 | # the standard. | 
|  | 5423 | case $ac_sys_machine in | 
|  | 5424 | alpha*) | 
|  | 5425 | BASECFLAGS="$BASECFLAGS -mieee" | 
|  | 5426 | ;; | 
|  | 5427 | esac | 
|  | 5428 |  | 
|  | 5429 | case $ac_sys_system in | 
|  | 5430 | SCO_SV*) | 
|  | 5431 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
|  | 5432 | ;; | 
|  | 5433 | # is there any other compiler on Darwin besides gcc? | 
|  | 5434 | Darwin*) | 
|  | 5435 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
|  | 5436 | # used to be here, but non-Apple gcc doesn't accept them. | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5437 | if test "${CC}" = gcc | 
|  | 5438 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 | 
|  | 5440 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5441 | case "${UNIVERSALSDK}" in | 
|  | 5442 | */MacOSX10.4u.sdk) | 
|  | 5443 | # Build using 10.4 SDK, force usage of gcc when the | 
|  | 5444 | # compiler is gcc, otherwise the user will get very | 
|  | 5445 | # confusing error messages when building on OSX 10.6 | 
|  | 5446 | CC=gcc-4.0 | 
|  | 5447 | CPP=cpp-4.0 | 
|  | 5448 | ;; | 
|  | 5449 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 5451 | $as_echo "$CC" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5452 | fi | 
|  | 5453 |  | 
|  | 5454 | # Calculate the right deployment target for this build. | 
|  | 5455 | # | 
|  | 5456 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` | 
|  | 5457 | if test ${cur_target} '>' 10.2; then | 
|  | 5458 | cur_target=10.3 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 5459 | if test ${enable_universalsdk}; then | 
|  | 5460 | if test "${UNIVERSAL_ARCHS}" = "all"; then | 
|  | 5461 | # Ensure that the default platform for a | 
|  | 5462 | # 4-way universal build is OSX 10.5, | 
|  | 5463 | # that's the first OS release where | 
|  | 5464 | # 4-way builds make sense. | 
|  | 5465 | cur_target='10.5' | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 5466 |  | 
|  | 5467 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then | 
|  | 5468 | cur_target='10.5' | 
|  | 5469 |  | 
|  | 5470 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then | 
|  | 5471 | cur_target='10.5' | 
|  | 5472 |  | 
|  | 5473 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then | 
|  | 5474 | cur_target='10.5' | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 5475 | fi | 
|  | 5476 | else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 5477 | if test `/usr/bin/arch` = "i386"; then | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 5478 | # On Intel macs default to a deployment | 
|  | 5479 | # target of 10.4, that's the first OSX | 
|  | 5480 | # release with Intel support. | 
|  | 5481 | cur_target="10.4" | 
|  | 5482 | fi | 
|  | 5483 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5484 | fi | 
|  | 5485 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
|  | 5486 |  | 
|  | 5487 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
|  | 5488 | # environment with a value that is the same as what we'll use | 
|  | 5489 | # in the Makefile to ensure that we'll get the same compiler | 
|  | 5490 | # environment during configure and build time. | 
|  | 5491 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
|  | 5492 | export MACOSX_DEPLOYMENT_TARGET | 
|  | 5493 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
|  | 5494 |  | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5495 | if test "${enable_universalsdk}"; then | 
|  | 5496 | UNIVERSAL_ARCH_FLAGS="" | 
|  | 5497 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then | 
|  | 5498 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
|  | 5499 | ARCH_RUN_32BIT="" | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 5500 | LIPO_32BIT_FLAGS="" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5501 |  | 
|  | 5502 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then | 
|  | 5503 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
|  | 5504 | LIPO_32BIT_FLAGS="" | 
|  | 5505 | ARCH_RUN_32BIT="true" | 
|  | 5506 |  | 
|  | 5507 | elif test "$UNIVERSAL_ARCHS" = "all" ; then | 
|  | 5508 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
|  | 5509 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 5510 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5511 |  | 
|  | 5512 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then | 
|  | 5513 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
|  | 5514 | LIPO_32BIT_FLAGS="-extract i386" | 
| Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 5515 | ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5516 |  | 
|  | 5517 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then | 
|  | 5518 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
|  | 5519 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
| Ronald Oussoren | 9922f17 | 2010-02-11 13:19:34 +0000 | [diff] [blame] | 5520 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5521 |  | 
|  | 5522 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5523 | as_fn_error "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5524 |  | 
|  | 5525 | fi | 
|  | 5526 |  | 
|  | 5527 |  | 
| Ronald Oussoren | 974eb5e | 2010-04-18 17:59:37 +0000 | [diff] [blame] | 5528 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" | 
|  | 5529 | if test "${UNIVERSALSDK}" != "/" | 
|  | 5530 | then | 
|  | 5531 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
|  | 5532 | LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
|  | 5533 | CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5534 | fi | 
|  | 5535 |  | 
|  | 5536 | fi | 
|  | 5537 |  | 
|  | 5538 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5539 | ;; | 
|  | 5540 | OSF*) | 
|  | 5541 | BASECFLAGS="$BASECFLAGS -mieee" | 
|  | 5542 | ;; | 
|  | 5543 | esac | 
|  | 5544 | ;; | 
|  | 5545 |  | 
|  | 5546 | *) | 
|  | 5547 | case $ac_sys_system in | 
|  | 5548 | OpenUNIX*|UnixWare*) | 
|  | 5549 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
|  | 5550 | ;; | 
|  | 5551 | OSF*) | 
|  | 5552 | BASECFLAGS="$BASECFLAGS -ieee -std" | 
|  | 5553 | ;; | 
|  | 5554 | SCO_SV*) | 
|  | 5555 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
|  | 5556 | ;; | 
|  | 5557 | esac | 
|  | 5558 | ;; | 
|  | 5559 | esac | 
|  | 5560 |  | 
|  | 5561 | if test "$Py_DEBUG" = 'true'; then | 
|  | 5562 | : | 
|  | 5563 | else | 
|  | 5564 | OPT="-DNDEBUG $OPT" | 
|  | 5565 | fi | 
|  | 5566 |  | 
|  | 5567 | if test "$ac_arch_flags" | 
|  | 5568 | then | 
|  | 5569 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
|  | 5570 | fi | 
|  | 5571 |  | 
|  | 5572 | # disable check for icc since it seems to pass, but generates a warning | 
|  | 5573 | if test "$CC" = icc | 
|  | 5574 | then | 
|  | 5575 | ac_cv_opt_olimit_ok=no | 
|  | 5576 | fi | 
|  | 5577 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5 | 
|  | 5579 | $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; } | 
|  | 5580 | if test "${ac_cv_opt_olimit_ok+set}" = set; then : | 
|  | 5581 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5582 | else | 
|  | 5583 | ac_save_cc="$CC" | 
|  | 5584 | CC="$CC -OPT:Olimit=0" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5586 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5587 |  | 
|  | 5588 | int | 
|  | 5589 | main () | 
|  | 5590 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 5591 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5592 | ; | 
|  | 5593 | return 0; | 
|  | 5594 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5595 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5596 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5597 | ac_cv_opt_olimit_ok=yes | 
|  | 5598 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5599 | ac_cv_opt_olimit_ok=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5600 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5601 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5603 | CC="$ac_save_cc" | 
|  | 5604 | fi | 
|  | 5605 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5 | 
|  | 5607 | $as_echo "$ac_cv_opt_olimit_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5608 | if test $ac_cv_opt_olimit_ok = yes; then | 
|  | 5609 | case $ac_sys_system in | 
|  | 5610 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the | 
|  | 5611 | # olimit_ok test is "no".  Is it "yes" in some other Darwin-esque | 
|  | 5612 | # environment? | 
|  | 5613 | Darwin*) | 
|  | 5614 | ;; | 
|  | 5615 | *) | 
|  | 5616 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" | 
|  | 5617 | ;; | 
|  | 5618 | esac | 
|  | 5619 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5 | 
|  | 5621 | $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; } | 
|  | 5622 | if test "${ac_cv_olimit_ok+set}" = set; then : | 
|  | 5623 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5624 | else | 
|  | 5625 | ac_save_cc="$CC" | 
|  | 5626 | CC="$CC -Olimit 1500" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5628 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5629 |  | 
|  | 5630 | int | 
|  | 5631 | main () | 
|  | 5632 | { | 
| Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 5633 |  | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5634 | ; | 
|  | 5635 | return 0; | 
|  | 5636 | } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5637 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5638 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5639 | ac_cv_olimit_ok=yes | 
|  | 5640 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5641 | ac_cv_olimit_ok=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5642 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5643 | fi | 
| Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5645 | CC="$ac_save_cc" | 
|  | 5646 | fi | 
|  | 5647 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5 | 
|  | 5649 | $as_echo "$ac_cv_olimit_ok" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5650 | if test $ac_cv_olimit_ok = yes; then | 
|  | 5651 | BASECFLAGS="$BASECFLAGS -Olimit 1500" | 
|  | 5652 | fi | 
|  | 5653 | fi | 
|  | 5654 |  | 
|  | 5655 | # Check whether GCC supports PyArg_ParseTuple format | 
|  | 5656 | if test "$GCC" = "yes" | 
|  | 5657 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 | 
|  | 5659 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5660 | save_CFLAGS=$CFLAGS | 
|  | 5661 | CFLAGS="$CFLAGS -Werror" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5663 | /* end confdefs.h.  */ | 
|  | 5664 |  | 
|  | 5665 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5666 | int | 
|  | 5667 | main () | 
|  | 5668 | { | 
|  | 5669 |  | 
|  | 5670 | ; | 
|  | 5671 | return 0; | 
|  | 5672 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5673 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5674 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5675 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5676 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5677 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5678 | $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5679 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5681 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5682 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5683 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5684 |  | 
|  | 5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5686 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5687 |  | 
|  | 5688 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5690 | CFLAGS=$save_CFLAGS | 
|  | 5691 | fi | 
|  | 5692 |  | 
|  | 5693 | # On some compilers, pthreads are available without further options | 
|  | 5694 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
|  | 5695 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
|  | 5696 | # So we have to see first whether pthreads are available without | 
|  | 5697 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
|  | 5699 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
|  | 5700 | if test "${ac_cv_pthread_is_default+set}" = set; then : | 
|  | 5701 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5702 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5703 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5704 | ac_cv_pthread_is_default=no | 
|  | 5705 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5707 | /* end confdefs.h.  */ | 
|  | 5708 |  | 
|  | 5709 | #include <pthread.h> | 
|  | 5710 |  | 
|  | 5711 | void* routine(void* p){return NULL;} | 
|  | 5712 |  | 
|  | 5713 | int main(){ | 
|  | 5714 | pthread_t p; | 
|  | 5715 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 5716 | return 1; | 
|  | 5717 | (void)pthread_detach(p); | 
|  | 5718 | return 0; | 
|  | 5719 | } | 
|  | 5720 |  | 
|  | 5721 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5722 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5723 |  | 
|  | 5724 | ac_cv_pthread_is_default=yes | 
|  | 5725 | ac_cv_kthread=no | 
|  | 5726 | ac_cv_pthread=no | 
|  | 5727 |  | 
|  | 5728 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5729 | ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5730 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5731 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5732 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5733 | fi | 
|  | 5734 |  | 
|  | 5735 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5736 | fi | 
|  | 5737 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
|  | 5739 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5740 |  | 
|  | 5741 |  | 
|  | 5742 | if test $ac_cv_pthread_is_default = yes | 
|  | 5743 | then | 
|  | 5744 | ac_cv_kpthread=no | 
|  | 5745 | else | 
|  | 5746 | # -Kpthread, if available, provides the right #defines | 
|  | 5747 | # and linker options to make pthread_create available | 
|  | 5748 | # Some compilers won't report that they do not support -Kpthread, | 
|  | 5749 | # so we need to run a program to see whether it really made the | 
|  | 5750 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
|  | 5752 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
|  | 5753 | if test "${ac_cv_kpthread+set}" = set; then : | 
|  | 5754 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5755 | else | 
|  | 5756 | ac_save_cc="$CC" | 
|  | 5757 | CC="$CC -Kpthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5758 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5759 | ac_cv_kpthread=no | 
|  | 5760 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5762 | /* end confdefs.h.  */ | 
|  | 5763 |  | 
|  | 5764 | #include <pthread.h> | 
|  | 5765 |  | 
|  | 5766 | void* routine(void* p){return NULL;} | 
|  | 5767 |  | 
|  | 5768 | int main(){ | 
|  | 5769 | pthread_t p; | 
|  | 5770 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 5771 | return 1; | 
|  | 5772 | (void)pthread_detach(p); | 
|  | 5773 | return 0; | 
|  | 5774 | } | 
|  | 5775 |  | 
|  | 5776 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5777 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5778 | ac_cv_kpthread=yes | 
|  | 5779 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5780 | ac_cv_kpthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5781 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5782 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5783 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5784 | fi | 
|  | 5785 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5786 | CC="$ac_save_cc" | 
|  | 5787 | fi | 
|  | 5788 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
|  | 5790 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5791 | fi | 
|  | 5792 |  | 
|  | 5793 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
|  | 5794 | then | 
|  | 5795 | # -Kthread, if available, provides the right #defines | 
|  | 5796 | # and linker options to make pthread_create available | 
|  | 5797 | # Some compilers won't report that they do not support -Kthread, | 
|  | 5798 | # so we need to run a program to see whether it really made the | 
|  | 5799 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
|  | 5801 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
|  | 5802 | if test "${ac_cv_kthread+set}" = set; then : | 
|  | 5803 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5804 | else | 
|  | 5805 | ac_save_cc="$CC" | 
|  | 5806 | CC="$CC -Kthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5807 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5808 | ac_cv_kthread=no | 
|  | 5809 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5811 | /* end confdefs.h.  */ | 
|  | 5812 |  | 
|  | 5813 | #include <pthread.h> | 
|  | 5814 |  | 
|  | 5815 | void* routine(void* p){return NULL;} | 
|  | 5816 |  | 
|  | 5817 | int main(){ | 
|  | 5818 | pthread_t p; | 
|  | 5819 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 5820 | return 1; | 
|  | 5821 | (void)pthread_detach(p); | 
|  | 5822 | return 0; | 
|  | 5823 | } | 
|  | 5824 |  | 
|  | 5825 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5826 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5827 | ac_cv_kthread=yes | 
|  | 5828 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5829 | ac_cv_kthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5830 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5831 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5832 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5833 | fi | 
|  | 5834 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5835 | CC="$ac_save_cc" | 
|  | 5836 | fi | 
|  | 5837 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
|  | 5839 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5840 | fi | 
|  | 5841 |  | 
|  | 5842 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
|  | 5843 | then | 
|  | 5844 | # -pthread, if available, provides the right #defines | 
|  | 5845 | # and linker options to make pthread_create available | 
|  | 5846 | # Some compilers won't report that they do not support -pthread, | 
|  | 5847 | # so we need to run a program to see whether it really made the | 
|  | 5848 | # function available. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
|  | 5850 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
|  | 5851 | if test "${ac_cv_thread+set}" = set; then : | 
|  | 5852 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5853 | else | 
|  | 5854 | ac_save_cc="$CC" | 
|  | 5855 | CC="$CC -pthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5856 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5857 | ac_cv_pthread=no | 
|  | 5858 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5860 | /* end confdefs.h.  */ | 
|  | 5861 |  | 
|  | 5862 | #include <pthread.h> | 
|  | 5863 |  | 
|  | 5864 | void* routine(void* p){return NULL;} | 
|  | 5865 |  | 
|  | 5866 | int main(){ | 
|  | 5867 | pthread_t p; | 
|  | 5868 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 5869 | return 1; | 
|  | 5870 | (void)pthread_detach(p); | 
|  | 5871 | return 0; | 
|  | 5872 | } | 
|  | 5873 |  | 
|  | 5874 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5875 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5876 | ac_cv_pthread=yes | 
|  | 5877 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5878 | ac_cv_pthread=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5879 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5880 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5881 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5882 | fi | 
|  | 5883 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5884 | CC="$ac_save_cc" | 
|  | 5885 | fi | 
|  | 5886 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
|  | 5888 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5889 | fi | 
|  | 5890 |  | 
|  | 5891 | # If we have set a CC compiler flag for thread support then | 
|  | 5892 | # check if it works for CXX, too. | 
|  | 5893 | ac_cv_cxx_thread=no | 
|  | 5894 | if test ! -z "$CXX" | 
|  | 5895 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
|  | 5897 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5898 | ac_save_cxx="$CXX" | 
|  | 5899 |  | 
|  | 5900 | if test "$ac_cv_kpthread" = "yes" | 
|  | 5901 | then | 
|  | 5902 | CXX="$CXX -Kpthread" | 
|  | 5903 | ac_cv_cxx_thread=yes | 
|  | 5904 | elif test "$ac_cv_kthread" = "yes" | 
|  | 5905 | then | 
|  | 5906 | CXX="$CXX -Kthread" | 
|  | 5907 | ac_cv_cxx_thread=yes | 
|  | 5908 | elif test "$ac_cv_pthread" = "yes" | 
|  | 5909 | then | 
|  | 5910 | CXX="$CXX -pthread" | 
|  | 5911 | ac_cv_cxx_thread=yes | 
|  | 5912 | fi | 
|  | 5913 |  | 
|  | 5914 | if test $ac_cv_cxx_thread = yes | 
|  | 5915 | then | 
|  | 5916 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
|  | 5917 | $CXX -c conftest.$ac_ext 2>&5 | 
|  | 5918 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
|  | 5919 | && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
|  | 5920 | then | 
|  | 5921 | ac_cv_cxx_thread=yes | 
|  | 5922 | else | 
|  | 5923 | ac_cv_cxx_thread=no | 
|  | 5924 | fi | 
|  | 5925 | rm -fr conftest* | 
|  | 5926 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
|  | 5928 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5929 | fi | 
|  | 5930 | CXX="$ac_save_cxx" | 
|  | 5931 |  | 
|  | 5932 |  | 
|  | 5933 | # checks for header files | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 5935 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
|  | 5936 | if test "${ac_cv_header_stdc+set}" = set; then : | 
|  | 5937 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5938 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5940 | /* end confdefs.h.  */ | 
|  | 5941 | #include <stdlib.h> | 
|  | 5942 | #include <stdarg.h> | 
|  | 5943 | #include <string.h> | 
|  | 5944 | #include <float.h> | 
|  | 5945 |  | 
|  | 5946 | int | 
|  | 5947 | main () | 
|  | 5948 | { | 
|  | 5949 |  | 
|  | 5950 | ; | 
|  | 5951 | return 0; | 
|  | 5952 | } | 
|  | 5953 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5954 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5955 | ac_cv_header_stdc=yes | 
|  | 5956 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5957 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5958 | fi | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5960 |  | 
|  | 5961 | if test $ac_cv_header_stdc = yes; then | 
|  | 5962 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5964 | /* end confdefs.h.  */ | 
|  | 5965 | #include <string.h> | 
|  | 5966 |  | 
|  | 5967 | _ACEOF | 
|  | 5968 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5969 | $EGREP "memchr" >/dev/null 2>&1; then : | 
|  | 5970 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5971 | else | 
|  | 5972 | ac_cv_header_stdc=no | 
|  | 5973 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 5974 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5975 |  | 
|  | 5976 | fi | 
|  | 5977 |  | 
|  | 5978 | if test $ac_cv_header_stdc = yes; then | 
|  | 5979 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5981 | /* end confdefs.h.  */ | 
|  | 5982 | #include <stdlib.h> | 
|  | 5983 |  | 
|  | 5984 | _ACEOF | 
|  | 5985 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5986 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 5987 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5988 | else | 
|  | 5989 | ac_cv_header_stdc=no | 
|  | 5990 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 5991 | rm -f conftest* | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5992 |  | 
|  | 5993 | fi | 
|  | 5994 |  | 
|  | 5995 | if test $ac_cv_header_stdc = yes; then | 
|  | 5996 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5997 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5998 | : | 
|  | 5999 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6001 | /* end confdefs.h.  */ | 
|  | 6002 | #include <ctype.h> | 
|  | 6003 | #include <stdlib.h> | 
|  | 6004 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 6005 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 6006 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 6007 | #else | 
|  | 6008 | # define ISLOWER(c) \ | 
|  | 6009 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 6010 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 6011 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 6012 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 6013 | #endif | 
|  | 6014 |  | 
|  | 6015 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 6016 | int | 
|  | 6017 | main () | 
|  | 6018 | { | 
|  | 6019 | int i; | 
|  | 6020 | for (i = 0; i < 256; i++) | 
|  | 6021 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 6022 | || toupper (i) != TOUPPER (i)) | 
|  | 6023 | return 2; | 
|  | 6024 | return 0; | 
|  | 6025 | } | 
|  | 6026 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6027 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 6028 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6029 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6030 | ac_cv_header_stdc=no | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6031 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6032 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 6033 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6034 | fi | 
|  | 6035 |  | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6036 | fi | 
|  | 6037 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 6039 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6040 | if test $ac_cv_header_stdc = yes; then | 
|  | 6041 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6042 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6043 |  | 
|  | 6044 | fi | 
|  | 6045 |  | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6046 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ | 
|  | 6047 | fcntl.h grp.h \ | 
| Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 6048 | ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ | 
| Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 6049 | 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] | 6050 | unistd.h utime.h \ | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 6051 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ | 
|  | 6052 | sys/lock.h sys/mkdev.h sys/modem.h \ | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6053 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ | 
| Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 6054 | sys/termio.h sys/time.h \ | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6055 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ | 
| Martin v. Löwis | 0347a9a | 2006-10-27 07:06:52 +0000 | [diff] [blame] | 6056 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6057 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6058 | do : | 
|  | 6059 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 6060 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
|  | 6061 | eval as_val=\$$as_ac_Header | 
|  | 6062 | if test "x$as_val" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6063 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6064 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6065 | _ACEOF | 
|  | 6066 |  | 
|  | 6067 | fi | 
|  | 6068 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6069 | done | 
|  | 6070 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6071 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6072 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6073 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
|  | 6074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
|  | 6075 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
|  | 6076 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : | 
|  | 6077 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6078 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6080 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6081 | #include <sys/types.h> | 
|  | 6082 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6083 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6084 | int | 
|  | 6085 | main () | 
|  | 6086 | { | 
|  | 6087 | if ((DIR *) 0) | 
|  | 6088 | return 0; | 
|  | 6089 | ; | 
|  | 6090 | return 0; | 
|  | 6091 | } | 
|  | 6092 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6093 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6094 | eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6095 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6096 | eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6097 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6099 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6100 | eval ac_res=\$$as_ac_Header | 
|  | 6101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 6102 | $as_echo "$ac_res" >&6; } | 
|  | 6103 | eval as_val=\$$as_ac_Header | 
|  | 6104 | if test "x$as_val" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6105 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6106 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6107 | _ACEOF | 
|  | 6108 |  | 
|  | 6109 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6110 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6111 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6112 | done | 
|  | 6113 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 6114 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 6116 | $as_echo_n "checking for library containing opendir... " >&6; } | 
|  | 6117 | if test "${ac_cv_search_opendir+set}" = set; then : | 
|  | 6118 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6119 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6120 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6122 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6123 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6124 | /* Override any GCC internal prototype to avoid an error. | 
|  | 6125 | Use char because int might match the return type of a GCC | 
|  | 6126 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6127 | #ifdef __cplusplus | 
|  | 6128 | extern "C" | 
|  | 6129 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6130 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6131 | int | 
|  | 6132 | main () | 
|  | 6133 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6134 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6135 | ; | 
|  | 6136 | return 0; | 
|  | 6137 | } | 
|  | 6138 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6139 | for ac_lib in '' dir; do | 
|  | 6140 | if test -z "$ac_lib"; then | 
|  | 6141 | ac_res="none required" | 
|  | 6142 | else | 
|  | 6143 | ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6144 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6145 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6146 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6147 | ac_cv_search_opendir=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6148 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6149 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 6150 | conftest$ac_exeext | 
|  | 6151 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6152 | break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6153 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6154 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6155 | if test "${ac_cv_search_opendir+set}" = set; then : | 
|  | 6156 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6157 | else | 
|  | 6158 | ac_cv_search_opendir=no | 
|  | 6159 | fi | 
|  | 6160 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6161 | LIBS=$ac_func_search_save_LIBS | 
|  | 6162 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 6164 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6165 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6166 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6167 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6168 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6169 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6170 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6171 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
|  | 6173 | $as_echo_n "checking for library containing opendir... " >&6; } | 
|  | 6174 | if test "${ac_cv_search_opendir+set}" = set; then : | 
|  | 6175 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6176 | else | 
|  | 6177 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6179 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6180 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6181 | /* Override any GCC internal prototype to avoid an error. | 
|  | 6182 | Use char because int might match the return type of a GCC | 
|  | 6183 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6184 | #ifdef __cplusplus | 
|  | 6185 | extern "C" | 
|  | 6186 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6187 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6188 | int | 
|  | 6189 | main () | 
|  | 6190 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6191 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6192 | ; | 
|  | 6193 | return 0; | 
|  | 6194 | } | 
|  | 6195 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6196 | for ac_lib in '' x; do | 
|  | 6197 | if test -z "$ac_lib"; then | 
|  | 6198 | ac_res="none required" | 
|  | 6199 | else | 
|  | 6200 | ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6201 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6202 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6203 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6204 | ac_cv_search_opendir=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6205 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6206 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 6207 | conftest$ac_exeext | 
|  | 6208 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6209 | break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6210 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6211 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6212 | if test "${ac_cv_search_opendir+set}" = set; then : | 
|  | 6213 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6214 | else | 
|  | 6215 | ac_cv_search_opendir=no | 
|  | 6216 | fi | 
|  | 6217 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6218 | LIBS=$ac_func_search_save_LIBS | 
|  | 6219 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
|  | 6221 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6222 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6223 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6224 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6225 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6226 | fi | 
|  | 6227 |  | 
|  | 6228 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6229 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
|  | 6231 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
|  | 6232 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : | 
|  | 6233 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6234 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6236 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6237 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6238 | int | 
|  | 6239 | main () | 
|  | 6240 | { | 
|  | 6241 | return makedev(0, 0); | 
|  | 6242 | ; | 
|  | 6243 | return 0; | 
|  | 6244 | } | 
|  | 6245 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6246 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6247 | ac_cv_header_sys_types_h_makedev=yes | 
|  | 6248 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6249 | ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6250 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6251 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 6252 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6253 |  | 
|  | 6254 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
|  | 6256 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6257 |  | 
|  | 6258 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6259 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | 
|  | 6260 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6261 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6262 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6263 |  | 
|  | 6264 | fi | 
|  | 6265 |  | 
|  | 6266 |  | 
|  | 6267 |  | 
|  | 6268 | if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6269 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | 
|  | 6270 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6271 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6272 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6273 |  | 
|  | 6274 | fi | 
|  | 6275 |  | 
|  | 6276 |  | 
|  | 6277 | fi | 
|  | 6278 | fi | 
|  | 6279 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6280 |  | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6281 | # On Solaris, term.h requires curses.h | 
| Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6282 | for ac_header in term.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6283 | do : | 
|  | 6284 | 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] | 6285 | #ifdef HAVE_CURSES_H | 
|  | 6286 | #include <curses.h> | 
|  | 6287 | #endif | 
|  | 6288 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6289 | " | 
|  | 6290 | if test "x$ac_cv_header_term_h" = x""yes; then : | 
| Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6291 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6292 | #define HAVE_TERM_H 1 | 
| Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6293 | _ACEOF | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6294 |  | 
| Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6295 | fi | 
|  | 6296 |  | 
|  | 6297 | done | 
| Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6298 |  | 
|  | 6299 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6300 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6301 | for ac_header in linux/netlink.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6302 | do : | 
|  | 6303 | 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] | 6304 | #ifdef HAVE_ASM_TYPES_H | 
|  | 6305 | #include <asm/types.h> | 
|  | 6306 | #endif | 
|  | 6307 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 6308 | #include <sys/socket.h> | 
|  | 6309 | #endif | 
|  | 6310 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6311 | " | 
|  | 6312 | 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] | 6313 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6314 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6315 | _ACEOF | 
|  | 6316 |  | 
|  | 6317 | fi | 
|  | 6318 |  | 
|  | 6319 | done | 
|  | 6320 |  | 
|  | 6321 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6322 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6323 | was_it_defined=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
|  | 6325 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
|  | 6326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6327 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6328 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6329 |  | 
|  | 6330 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6331 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6332 | $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6333 | was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6334 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6335 |  | 
|  | 6336 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6337 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6338 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6339 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6340 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6341 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6342 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 6344 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6345 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6346 | # Check whether using makedev requires defining _OSF_SOURCE | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
|  | 6348 | $as_echo_n "checking for makedev... " >&6; } | 
|  | 6349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6350 | /* end confdefs.h.  */ | 
| Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6351 |  | 
|  | 6352 | #if defined(MAJOR_IN_MKDEV) | 
|  | 6353 | #include <sys/mkdev.h> | 
|  | 6354 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 6355 | #include <sys/sysmacros.h> | 
|  | 6356 | #else | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6357 | #include <sys/types.h> | 
| Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6358 | #endif | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6359 | int | 
|  | 6360 | main () | 
|  | 6361 | { | 
|  | 6362 | makedev(0, 0) | 
|  | 6363 | ; | 
|  | 6364 | return 0; | 
|  | 6365 | } | 
|  | 6366 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6367 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6368 | ac_cv_has_makedev=yes | 
|  | 6369 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6370 | ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6371 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6372 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 6373 | conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6374 | if test "$ac_cv_has_makedev" = "no"; then | 
|  | 6375 | # we didn't link, try if _OSF_SOURCE will allow us to link | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6377 | /* end confdefs.h.  */ | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6378 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6379 | #define _OSF_SOURCE 1 | 
|  | 6380 | #include <sys/types.h> | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6381 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6382 | int | 
|  | 6383 | main () | 
|  | 6384 | { | 
|  | 6385 | makedev(0, 0) | 
|  | 6386 | ; | 
|  | 6387 | return 0; | 
|  | 6388 | } | 
|  | 6389 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6390 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6391 | ac_cv_has_makedev=yes | 
|  | 6392 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6393 | ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6394 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6395 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 6396 | conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6397 | if test "$ac_cv_has_makedev" = "yes"; then | 
|  | 6398 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6399 | $as_echo "#define _OSF_SOURCE 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6400 |  | 
|  | 6401 | fi | 
|  | 6402 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
|  | 6404 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6405 | if test "$ac_cv_has_makedev" = "yes"; then | 
|  | 6406 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6407 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6408 |  | 
|  | 6409 | fi | 
|  | 6410 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6411 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in | 
|  | 6412 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are | 
|  | 6413 | # defined, but the compiler does not support pragma redefine_extname, | 
|  | 6414 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit | 
|  | 6415 | # structures (such as rlimit64) without declaring them. As a | 
|  | 6416 | # work-around, disable LFS on such configurations | 
|  | 6417 |  | 
|  | 6418 | use_lfs=yes | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 | 
|  | 6420 | $as_echo_n "checking Solaris LFS bug... " >&6; } | 
|  | 6421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6422 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6423 |  | 
|  | 6424 | #define _LARGEFILE_SOURCE 1 | 
|  | 6425 | #define _FILE_OFFSET_BITS 64 | 
|  | 6426 | #include <sys/resource.h> | 
|  | 6427 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6428 | int | 
|  | 6429 | main () | 
|  | 6430 | { | 
|  | 6431 | struct rlimit foo; | 
|  | 6432 | ; | 
|  | 6433 | return 0; | 
|  | 6434 | } | 
|  | 6435 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6436 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6437 | sol_lfs_bug=no | 
|  | 6438 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6439 | sol_lfs_bug=yes | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6440 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 | 
|  | 6443 | $as_echo "$sol_lfs_bug" >&6; } | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6444 | if test "$sol_lfs_bug" = "yes"; then | 
|  | 6445 | use_lfs=no | 
|  | 6446 | fi | 
|  | 6447 |  | 
|  | 6448 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6449 | # Two defines needed to enable largefile support on various platforms | 
|  | 6450 | # These may affect some typedefs | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6451 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6452 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6453 |  | 
|  | 6454 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6455 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6456 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6457 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6458 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6459 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
|  | 6460 | cat >> confdefs.h <<\EOF | 
|  | 6461 | #if defined(SCO_DS) | 
|  | 6462 | #undef _OFF_T | 
|  | 6463 | #endif | 
|  | 6464 | EOF | 
|  | 6465 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6466 | # Type availability checks | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6467 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | 
|  | 6468 | if test "x$ac_cv_type_mode_t" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6469 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6470 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6471 |  | 
|  | 6472 | cat >>confdefs.h <<_ACEOF | 
|  | 6473 | #define mode_t int | 
|  | 6474 | _ACEOF | 
|  | 6475 |  | 
|  | 6476 | fi | 
|  | 6477 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6478 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | 
|  | 6479 | if test "x$ac_cv_type_off_t" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6480 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6481 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6482 |  | 
|  | 6483 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6484 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6485 | _ACEOF | 
|  | 6486 |  | 
|  | 6487 | fi | 
|  | 6488 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6489 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | 
|  | 6490 | if test "x$ac_cv_type_pid_t" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6491 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6492 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6493 |  | 
|  | 6494 | cat >>confdefs.h <<_ACEOF | 
|  | 6495 | #define pid_t int | 
|  | 6496 | _ACEOF | 
|  | 6497 |  | 
|  | 6498 | fi | 
|  | 6499 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6500 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6501 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | cbf54b1 | 2010-05-08 11:04:18 +0000 | [diff] [blame] | 6502 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6503 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6504 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6505 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | 
|  | 6506 | if test "x$ac_cv_type_size_t" = x""yes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6507 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6508 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6509 |  | 
|  | 6510 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6511 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6512 | _ACEOF | 
|  | 6513 |  | 
|  | 6514 | fi | 
|  | 6515 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
|  | 6517 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
|  | 6518 | if test "${ac_cv_type_uid_t+set}" = set; then : | 
|  | 6519 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6520 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6522 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6523 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6524 |  | 
|  | 6525 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6526 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6527 | $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6528 | ac_cv_type_uid_t=yes | 
|  | 6529 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6530 | ac_cv_type_uid_t=no | 
|  | 6531 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6532 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6533 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6534 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
|  | 6536 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6537 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6538 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6539 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6540 |  | 
|  | 6541 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6542 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6543 |  | 
|  | 6544 | fi | 
|  | 6545 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6546 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | 
|  | 6547 | case $ac_cv_c_uint32_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6548 | no|yes) ;; #( | 
|  | 6549 | *) | 
|  | 6550 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6551 | $as_echo "#define _UINT32_T 1" >>confdefs.h | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6552 |  | 
|  | 6553 |  | 
|  | 6554 | cat >>confdefs.h <<_ACEOF | 
|  | 6555 | #define uint32_t $ac_cv_c_uint32_t | 
|  | 6556 | _ACEOF | 
|  | 6557 | ;; | 
|  | 6558 | esac | 
|  | 6559 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6560 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | 
|  | 6561 | case $ac_cv_c_uint64_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6562 | no|yes) ;; #( | 
|  | 6563 | *) | 
|  | 6564 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6565 | $as_echo "#define _UINT64_T 1" >>confdefs.h | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6566 |  | 
|  | 6567 |  | 
|  | 6568 | cat >>confdefs.h <<_ACEOF | 
|  | 6569 | #define uint64_t $ac_cv_c_uint64_t | 
|  | 6570 | _ACEOF | 
|  | 6571 | ;; | 
|  | 6572 | esac | 
|  | 6573 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6574 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | 
|  | 6575 | case $ac_cv_c_int32_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6576 | no|yes) ;; #( | 
|  | 6577 | *) | 
|  | 6578 |  | 
|  | 6579 | cat >>confdefs.h <<_ACEOF | 
|  | 6580 | #define int32_t $ac_cv_c_int32_t | 
|  | 6581 | _ACEOF | 
|  | 6582 | ;; | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6583 | esac | 
|  | 6584 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6585 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | 
|  | 6586 | case $ac_cv_c_int64_t in #( | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6587 | no|yes) ;; #( | 
|  | 6588 | *) | 
|  | 6589 |  | 
|  | 6590 | cat >>confdefs.h <<_ACEOF | 
|  | 6591 | #define int64_t $ac_cv_c_int64_t | 
|  | 6592 | _ACEOF | 
|  | 6593 | ;; | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6594 | esac | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6595 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6596 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | 
|  | 6597 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6598 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6599 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6600 |  | 
|  | 6601 | fi | 
|  | 6602 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6603 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6604 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6605 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6606 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6607 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6608 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6609 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
|  | 6611 | $as_echo_n "checking size of int... " >&6; } | 
|  | 6612 | if test "${ac_cv_sizeof_int+set}" = set; then : | 
|  | 6613 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6614 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6615 | 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] | 6616 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6617 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6618 | if test "$ac_cv_type_int" = yes; then | 
|  | 6619 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6620 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 6621 | { as_fn_set_status 77 | 
|  | 6622 | as_fn_error "cannot compute sizeof (int) | 
|  | 6623 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6624 | else | 
|  | 6625 | ac_cv_sizeof_int=0 | 
|  | 6626 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6627 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6628 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6629 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
|  | 6631 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6632 |  | 
|  | 6633 |  | 
|  | 6634 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6635 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6636 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6637 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6638 |  | 
|  | 6639 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6640 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6641 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6642 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6643 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
|  | 6645 | $as_echo_n "checking size of long... " >&6; } | 
|  | 6646 | if test "${ac_cv_sizeof_long+set}" = set; then : | 
|  | 6647 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6648 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6649 | 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] | 6650 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6651 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6652 | if test "$ac_cv_type_long" = yes; then | 
|  | 6653 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6654 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 6655 | { as_fn_set_status 77 | 
|  | 6656 | as_fn_error "cannot compute sizeof (long) | 
|  | 6657 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6658 | else | 
|  | 6659 | ac_cv_sizeof_long=0 | 
|  | 6660 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6661 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6662 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6663 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
|  | 6665 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6666 |  | 
|  | 6667 |  | 
|  | 6668 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6669 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6670 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6671 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6672 |  | 
|  | 6673 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6674 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6675 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6676 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6677 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
|  | 6679 | $as_echo_n "checking size of void *... " >&6; } | 
|  | 6680 | if test "${ac_cv_sizeof_void_p+set}" = set; then : | 
|  | 6681 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6682 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6683 | 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] | 6684 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6685 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6686 | if test "$ac_cv_type_void_p" = yes; then | 
|  | 6687 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6688 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 6689 | { as_fn_set_status 77 | 
|  | 6690 | as_fn_error "cannot compute sizeof (void *) | 
|  | 6691 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6692 | else | 
|  | 6693 | ac_cv_sizeof_void_p=0 | 
|  | 6694 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6695 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6696 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6697 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
|  | 6699 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6700 |  | 
|  | 6701 |  | 
|  | 6702 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6703 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6704 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6705 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6706 |  | 
|  | 6707 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6708 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6709 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6710 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6711 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
|  | 6713 | $as_echo_n "checking size of short... " >&6; } | 
|  | 6714 | if test "${ac_cv_sizeof_short+set}" = set; then : | 
|  | 6715 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6716 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6717 | 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] | 6718 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6719 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6720 | if test "$ac_cv_type_short" = yes; then | 
|  | 6721 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6722 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 6723 | { as_fn_set_status 77 | 
|  | 6724 | as_fn_error "cannot compute sizeof (short) | 
|  | 6725 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6726 | else | 
|  | 6727 | ac_cv_sizeof_short=0 | 
|  | 6728 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6729 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6730 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6731 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
|  | 6733 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6734 |  | 
|  | 6735 |  | 
|  | 6736 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6737 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6738 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6739 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6740 |  | 
|  | 6741 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6742 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6743 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6744 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6745 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
|  | 6747 | $as_echo_n "checking size of float... " >&6; } | 
|  | 6748 | if test "${ac_cv_sizeof_float+set}" = set; then : | 
|  | 6749 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6750 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6751 | 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] | 6752 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6753 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6754 | if test "$ac_cv_type_float" = yes; then | 
|  | 6755 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6756 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 6757 | { as_fn_set_status 77 | 
|  | 6758 | as_fn_error "cannot compute sizeof (float) | 
|  | 6759 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6760 | else | 
|  | 6761 | ac_cv_sizeof_float=0 | 
|  | 6762 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6763 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6764 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6765 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
|  | 6767 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6768 |  | 
|  | 6769 |  | 
|  | 6770 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6771 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6772 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6773 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6774 |  | 
|  | 6775 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6776 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6777 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6778 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6779 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
|  | 6781 | $as_echo_n "checking size of double... " >&6; } | 
|  | 6782 | if test "${ac_cv_sizeof_double+set}" = set; then : | 
|  | 6783 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6784 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6785 | 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] | 6786 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6787 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6788 | if test "$ac_cv_type_double" = yes; then | 
|  | 6789 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6790 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 6791 | { as_fn_set_status 77 | 
|  | 6792 | as_fn_error "cannot compute sizeof (double) | 
|  | 6793 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6794 | else | 
|  | 6795 | ac_cv_sizeof_double=0 | 
|  | 6796 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6797 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6798 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6799 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
|  | 6801 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6802 |  | 
|  | 6803 |  | 
|  | 6804 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6805 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6806 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6807 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6808 |  | 
|  | 6809 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6810 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6811 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6812 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6813 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
|  | 6815 | $as_echo_n "checking size of fpos_t... " >&6; } | 
|  | 6816 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then : | 
|  | 6817 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6818 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6819 | 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] | 6820 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6821 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6822 | if test "$ac_cv_type_fpos_t" = yes; then | 
|  | 6823 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6824 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 6825 | { as_fn_set_status 77 | 
|  | 6826 | as_fn_error "cannot compute sizeof (fpos_t) | 
|  | 6827 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6828 | else | 
|  | 6829 | ac_cv_sizeof_fpos_t=0 | 
|  | 6830 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6831 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6832 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6833 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
|  | 6835 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6836 |  | 
|  | 6837 |  | 
|  | 6838 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6839 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6840 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6841 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6842 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6843 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6844 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6845 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6846 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6847 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
|  | 6849 | $as_echo_n "checking size of size_t... " >&6; } | 
|  | 6850 | if test "${ac_cv_sizeof_size_t+set}" = set; then : | 
|  | 6851 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6852 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6853 | 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] | 6854 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6855 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6856 | if test "$ac_cv_type_size_t" = yes; then | 
|  | 6857 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6858 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 6859 | { as_fn_set_status 77 | 
|  | 6860 | as_fn_error "cannot compute sizeof (size_t) | 
|  | 6861 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6862 | else | 
|  | 6863 | ac_cv_sizeof_size_t=0 | 
|  | 6864 | fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6865 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6866 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6867 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
|  | 6869 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6870 |  | 
|  | 6871 |  | 
|  | 6872 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6873 | cat >>confdefs.h <<_ACEOF | 
|  | 6874 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
|  | 6875 | _ACEOF | 
|  | 6876 |  | 
|  | 6877 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6878 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6879 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6880 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6881 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
|  | 6883 | $as_echo_n "checking size of pid_t... " >&6; } | 
|  | 6884 | if test "${ac_cv_sizeof_pid_t+set}" = set; then : | 
|  | 6885 | $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6886 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6887 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then : | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6888 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6889 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6890 | if test "$ac_cv_type_pid_t" = yes; then | 
|  | 6891 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6892 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 6893 | { as_fn_set_status 77 | 
|  | 6894 | as_fn_error "cannot compute sizeof (pid_t) | 
|  | 6895 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6896 | else | 
|  | 6897 | ac_cv_sizeof_pid_t=0 | 
|  | 6898 | fi | 
|  | 6899 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6900 |  | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6901 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
|  | 6903 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6904 |  | 
|  | 6905 |  | 
|  | 6906 |  | 
|  | 6907 | cat >>confdefs.h <<_ACEOF | 
|  | 6908 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
|  | 6909 | _ACEOF | 
|  | 6910 |  | 
|  | 6911 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6912 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 | 
|  | 6914 | $as_echo_n "checking for long long support... " >&6; } | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6915 | have_long_long=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6917 | /* end confdefs.h.  */ | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6918 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6919 | int | 
|  | 6920 | main () | 
|  | 6921 | { | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6922 | long long x; x = (long long)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6923 | ; | 
|  | 6924 | return 0; | 
|  | 6925 | } | 
|  | 6926 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6927 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6928 |  | 
|  | 6929 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6930 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6931 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6932 | have_long_long=yes | 
|  | 6933 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6934 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 | 
|  | 6937 | $as_echo "$have_long_long" >&6; } | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 6938 | if test "$have_long_long" = yes ; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6939 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 6940 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 6941 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 6942 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
|  | 6944 | $as_echo_n "checking size of long long... " >&6; } | 
|  | 6945 | if test "${ac_cv_sizeof_long_long+set}" = set; then : | 
|  | 6946 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6947 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6948 | 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] | 6949 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6950 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6951 | if test "$ac_cv_type_long_long" = yes; then | 
|  | 6952 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 6953 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 6954 | { as_fn_set_status 77 | 
|  | 6955 | as_fn_error "cannot compute sizeof (long long) | 
|  | 6956 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6957 | else | 
|  | 6958 | ac_cv_sizeof_long_long=0 | 
|  | 6959 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6960 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6961 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6962 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
|  | 6964 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6965 |  | 
|  | 6966 |  | 
|  | 6967 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6968 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6969 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6970 | _ACEOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6971 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6972 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6973 | fi | 
|  | 6974 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
|  | 6976 | $as_echo_n "checking for long double support... " >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 6977 | have_long_double=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 6979 | /* end confdefs.h.  */ | 
|  | 6980 |  | 
|  | 6981 | int | 
|  | 6982 | main () | 
|  | 6983 | { | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6984 | long double x; x = (long double)0; | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 6985 | ; | 
|  | 6986 | return 0; | 
|  | 6987 | } | 
|  | 6988 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6989 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 6990 |  | 
|  | 6991 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6992 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 6993 |  | 
|  | 6994 | have_long_double=yes | 
|  | 6995 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 6996 | fi | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 6997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
|  | 6999 | $as_echo "$have_long_double" >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7000 | if test "$have_long_double" = yes ; then | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7001 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7002 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7003 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7004 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
|  | 7006 | $as_echo_n "checking size of long double... " >&6; } | 
|  | 7007 | if test "${ac_cv_sizeof_long_double+set}" = set; then : | 
|  | 7008 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7009 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7010 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then : | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7011 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7012 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7013 | if test "$ac_cv_type_long_double" = yes; then | 
|  | 7014 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7015 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 7016 | { as_fn_set_status 77 | 
|  | 7017 | as_fn_error "cannot compute sizeof (long double) | 
|  | 7018 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7019 | else | 
|  | 7020 | ac_cv_sizeof_long_double=0 | 
|  | 7021 | fi | 
|  | 7022 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7023 |  | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7024 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
|  | 7026 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7027 |  | 
|  | 7028 |  | 
|  | 7029 |  | 
|  | 7030 | cat >>confdefs.h <<_ACEOF | 
|  | 7031 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
|  | 7032 | _ACEOF | 
|  | 7033 |  | 
|  | 7034 |  | 
|  | 7035 | fi | 
|  | 7036 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 | 
|  | 7038 | $as_echo_n "checking for _Bool support... " >&6; } | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7039 | have_c99_bool=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7041 | /* end confdefs.h.  */ | 
|  | 7042 |  | 
|  | 7043 | int | 
|  | 7044 | main () | 
|  | 7045 | { | 
|  | 7046 | _Bool x; x = (_Bool)0; | 
|  | 7047 | ; | 
|  | 7048 | return 0; | 
|  | 7049 | } | 
|  | 7050 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7051 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7052 |  | 
|  | 7053 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7054 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7055 |  | 
|  | 7056 | have_c99_bool=yes | 
|  | 7057 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7058 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 | 
|  | 7061 | $as_echo "$have_c99_bool" >&6; } | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7062 | if test "$have_c99_bool" = yes ; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7063 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7064 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7065 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7066 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
|  | 7068 | $as_echo_n "checking size of _Bool... " >&6; } | 
|  | 7069 | if test "${ac_cv_sizeof__Bool+set}" = set; then : | 
|  | 7070 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7071 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7072 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then : | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7073 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7074 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7075 | if test "$ac_cv_type__Bool" = yes; then | 
|  | 7076 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7077 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 7078 | { as_fn_set_status 77 | 
|  | 7079 | as_fn_error "cannot compute sizeof (_Bool) | 
|  | 7080 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7081 | else | 
|  | 7082 | ac_cv_sizeof__Bool=0 | 
|  | 7083 | fi | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7084 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7085 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7086 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
|  | 7088 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7089 |  | 
|  | 7090 |  | 
|  | 7091 |  | 
| Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7092 | cat >>confdefs.h <<_ACEOF | 
|  | 7093 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
|  | 7094 | _ACEOF | 
|  | 7095 |  | 
|  | 7096 |  | 
|  | 7097 | fi | 
|  | 7098 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7099 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H | 
| Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 7100 | #include <stdint.h> | 
|  | 7101 | #endif | 
| Antoine Pitrou | 7be5a65 | 2010-10-10 08:14:41 +0000 | [diff] [blame] | 7102 | #ifdef HAVE_INTTYPES_H | 
|  | 7103 | #include <inttypes.h> | 
|  | 7104 | #endif | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7105 | " | 
|  | 7106 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : | 
| Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7107 |  | 
|  | 7108 | cat >>confdefs.h <<_ACEOF | 
|  | 7109 | #define HAVE_UINTPTR_T 1 | 
|  | 7110 | _ACEOF | 
|  | 7111 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7112 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7113 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7114 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7115 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
|  | 7117 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
|  | 7118 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then : | 
|  | 7119 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7120 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7121 | 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] | 7122 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7123 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7124 | if test "$ac_cv_type_uintptr_t" = yes; then | 
|  | 7125 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7126 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 7127 | { as_fn_set_status 77 | 
|  | 7128 | as_fn_error "cannot compute sizeof (uintptr_t) | 
|  | 7129 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7130 | else | 
|  | 7131 | ac_cv_sizeof_uintptr_t=0 | 
|  | 7132 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7133 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7134 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7135 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
|  | 7137 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7138 |  | 
|  | 7139 |  | 
|  | 7140 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7141 | cat >>confdefs.h <<_ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7142 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7143 | _ACEOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7144 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7145 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7146 | fi | 
|  | 7147 |  | 
| Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7148 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7149 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7150 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7151 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7152 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
|  | 7154 | $as_echo_n "checking size of off_t... " >&6; } | 
|  | 7155 | if test "${ac_cv_sizeof_off_t+set}" = set; then : | 
|  | 7156 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7157 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7158 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        " | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7159 | #ifdef HAVE_SYS_TYPES_H | 
|  | 7160 | #include <sys/types.h> | 
|  | 7161 | #endif | 
|  | 7162 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7163 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7164 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7165 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7166 | if test "$ac_cv_type_off_t" = yes; then | 
|  | 7167 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7168 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 7169 | { as_fn_set_status 77 | 
|  | 7170 | as_fn_error "cannot compute sizeof (off_t) | 
|  | 7171 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7172 | else | 
|  | 7173 | ac_cv_sizeof_off_t=0 | 
|  | 7174 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7175 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7176 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7177 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
|  | 7179 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7180 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7181 |  | 
|  | 7182 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7183 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7184 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7185 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7186 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7187 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7188 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
|  | 7190 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7191 | if test "$have_long_long" = yes | 
|  | 7192 | then | 
|  | 7193 | 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] | 7194 | "$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] | 7195 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7196 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7197 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 7199 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7200 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7202 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7203 | fi | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7204 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7206 | $as_echo "no" >&6; } | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7207 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7208 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7209 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 7210 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7211 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7212 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
|  | 7214 | $as_echo_n "checking size of time_t... " >&6; } | 
|  | 7215 | if test "${ac_cv_sizeof_time_t+set}" = set; then : | 
|  | 7216 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7217 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7218 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        " | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7219 | #ifdef HAVE_SYS_TYPES_H | 
|  | 7220 | #include <sys/types.h> | 
|  | 7221 | #endif | 
|  | 7222 | #ifdef HAVE_TIME_H | 
|  | 7223 | #include <time.h> | 
|  | 7224 | #endif | 
|  | 7225 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7226 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7227 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7228 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7229 | if test "$ac_cv_type_time_t" = yes; then | 
|  | 7230 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7231 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 7232 | { as_fn_set_status 77 | 
|  | 7233 | as_fn_error "cannot compute sizeof (time_t) | 
|  | 7234 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7235 | else | 
|  | 7236 | ac_cv_sizeof_time_t=0 | 
|  | 7237 | fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7238 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7239 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7240 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
|  | 7242 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7243 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7244 |  | 
|  | 7245 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7246 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7247 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7248 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7249 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7250 |  | 
|  | 7251 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7252 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7253 | ac_save_cc="$CC" | 
|  | 7254 | if test "$ac_cv_kpthread" = "yes" | 
|  | 7255 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 7256 | elif test "$ac_cv_kthread" = "yes" | 
|  | 7257 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 7258 | elif test "$ac_cv_pthread" = "yes" | 
|  | 7259 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7260 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
|  | 7262 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7263 | have_pthread_t=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7265 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7266 |  | 
|  | 7267 | #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7268 | int | 
|  | 7269 | main () | 
|  | 7270 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 7271 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7272 | ; | 
|  | 7273 | return 0; | 
|  | 7274 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7275 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7276 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7277 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7278 | have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7279 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
|  | 7282 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7283 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7284 | # The cast to long int works around a bug in the HP C Compiler | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7285 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 7286 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 7287 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
|  | 7289 | $as_echo_n "checking size of pthread_t... " >&6; } | 
|  | 7290 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then : | 
|  | 7291 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7292 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7293 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        " | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7294 | #ifdef HAVE_PTHREAD_H | 
|  | 7295 | #include <pthread.h> | 
|  | 7296 | #endif | 
|  | 7297 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7298 | "; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7299 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7300 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7301 | if test "$ac_cv_type_pthread_t" = yes; then | 
|  | 7302 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 7303 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 7304 | { as_fn_set_status 77 | 
|  | 7305 | as_fn_error "cannot compute sizeof (pthread_t) | 
|  | 7306 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7307 | else | 
|  | 7308 | ac_cv_sizeof_pthread_t=0 | 
|  | 7309 | fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7310 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7311 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7312 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
|  | 7314 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7315 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7316 |  | 
|  | 7317 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7318 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7319 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7320 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7321 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7322 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7323 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7324 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7325 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5 | 
|  | 7327 | $as_echo_n "checking for --enable-toolbox-glue... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7328 | # Check whether --enable-toolbox-glue was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7329 | if test "${enable_toolbox_glue+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7330 | enableval=$enable_toolbox_glue; | 
|  | 7331 | fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7332 |  | 
|  | 7333 |  | 
|  | 7334 | if test -z "$enable_toolbox_glue" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7335 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7336 | case $ac_sys_system/$ac_sys_release in | 
|  | 7337 | Darwin/*) | 
|  | 7338 | enable_toolbox_glue="yes";; | 
|  | 7339 | *) | 
|  | 7340 | enable_toolbox_glue="no";; | 
|  | 7341 | esac | 
|  | 7342 | fi | 
|  | 7343 | case "$enable_toolbox_glue" in | 
|  | 7344 | yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7345 | extra_machdep_objs="Python/mactoolboxglue.o" | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7346 | extra_undefs="-u _PyMac_Error" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7347 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7348 | $as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7349 |  | 
|  | 7350 | ;; | 
|  | 7351 | *) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7352 | extra_machdep_objs="" | 
| Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 7353 | extra_undefs="" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7354 | ;; | 
|  | 7355 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5 | 
|  | 7357 | $as_echo "$enable_toolbox_glue" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7358 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7359 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 7360 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7361 | case $ac_sys_system/$ac_sys_release in | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 7362 | Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7363 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
|  | 7364 | ;; | 
|  | 7365 | Darwin/*) | 
|  | 7366 | OTHER_LIBTOOL_OPT="" | 
|  | 7367 | ;; | 
|  | 7368 | esac | 
|  | 7369 |  | 
|  | 7370 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7371 | ARCH_RUN_32BIT="" | 
|  | 7372 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7373 | case $ac_sys_system/$ac_sys_release in | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 7374 | Darwin/[01567]\..*) | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 7375 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
|  | 7376 | if test "${enable_universalsdk}"; then | 
|  | 7377 | : | 
|  | 7378 | else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 7379 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 7380 | fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7381 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7382 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 7383 | Darwin/*) | 
| Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 7384 | gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7385 | if test ${gcc_version} '<' 4.0 | 
|  | 7386 | then | 
|  | 7387 | LIBTOOL_CRUFT="-lcc_dynamic" | 
|  | 7388 | else | 
|  | 7389 | LIBTOOL_CRUFT="" | 
|  | 7390 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7391 | if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 7392 | ac_osx_32bit=yes | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7393 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7395 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 7396 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7397 | #include <unistd.h> | 
|  | 7398 | int main(int argc, char*argv[]) | 
|  | 7399 | { | 
|  | 7400 | if (sizeof(long) == 4) { | 
|  | 7401 | return 0; | 
|  | 7402 | } else { | 
|  | 7403 | return 1; | 
|  | 7404 | } | 
| Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 7405 | } | 
| Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 7406 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7407 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7408 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7409 | ac_osx_32bit=yes | 
|  | 7410 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7411 | ac_osx_32bit=no | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7412 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7413 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 7414 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7415 | fi | 
|  | 7416 |  | 
|  | 7417 |  | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7418 | if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 7419 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7420 | i386) | 
|  | 7421 | MACOSX_DEFAULT_ARCH="i386" | 
|  | 7422 | ;; | 
|  | 7423 | ppc) | 
|  | 7424 | MACOSX_DEFAULT_ARCH="ppc" | 
|  | 7425 | ;; | 
|  | 7426 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7427 | as_fn_error "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7428 | ;; | 
|  | 7429 | esac | 
|  | 7430 | else | 
| Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 7431 | case `/usr/bin/arch` in | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7432 | i386) | 
|  | 7433 | MACOSX_DEFAULT_ARCH="x86_64" | 
|  | 7434 | ;; | 
|  | 7435 | ppc) | 
|  | 7436 | MACOSX_DEFAULT_ARCH="ppc64" | 
|  | 7437 | ;; | 
|  | 7438 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7439 | as_fn_error "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7440 | ;; | 
|  | 7441 | esac | 
|  | 7442 |  | 
|  | 7443 | #ARCH_RUN_32BIT="true" | 
|  | 7444 | fi | 
|  | 7445 |  | 
|  | 7446 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7447 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7448 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7449 | esac | 
|  | 7450 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
|  | 7452 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7453 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7454 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 7455 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7456 | # -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7457 | # in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7458 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7459 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7460 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 7462 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 7463 | if test $enable_shared = "yes" | 
|  | 7464 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7465 | as_fn_error "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." "$LINENO" 5 | 
| Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 7466 | fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7467 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7469 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7470 | fi | 
|  | 7471 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
|  | 7473 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7474 | case $ac_sys_system/$ac_sys_release in | 
|  | 7475 | Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7476 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7477 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7478 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
|  | 7480 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7481 | ;; | 
|  | 7482 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7484 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7485 | ;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7486 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7487 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7488 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7489 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7490 |  | 
|  | 7491 |  | 
|  | 7492 |  | 
|  | 7493 |  | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7494 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7495 | # SO is the extension of shared libraries `(including the dot!) | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 7496 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 | 
|  | 7498 | $as_echo_n "checking SO... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7499 | if test -z "$SO" | 
|  | 7500 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7501 | case $ac_sys_system in | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 7502 | hp*|HP*) | 
|  | 7503 | case `uname -m` in | 
|  | 7504 | ia64) SO=.so;; | 
|  | 7505 | *)    SO=.sl;; | 
|  | 7506 | esac | 
|  | 7507 | ;; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 7508 | CYGWIN*)   SO=.dll;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 7509 | *)	   SO=.so;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7510 | esac | 
| Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 7511 | else | 
|  | 7512 | # this might also be a termcap variable, see #610332 | 
|  | 7513 | echo | 
|  | 7514 | echo '=====================================================================' | 
|  | 7515 | echo '+                                                                   +' | 
|  | 7516 | echo '+ WARNING: You have set SO in your environment.                     +' | 
|  | 7517 | echo '+ Do you really mean to change the extension for shared libraries?  +' | 
|  | 7518 | echo '+ Continuing in 10 seconds to let you to ponder.                    +' | 
|  | 7519 | echo '+                                                                   +' | 
|  | 7520 | echo '=====================================================================' | 
|  | 7521 | sleep 10 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7522 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 | 
|  | 7524 | $as_echo "$SO" >&6; } | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 7525 |  | 
| Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 7526 |  | 
| Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 7527 | cat >>confdefs.h <<_ACEOF | 
|  | 7528 | #define SHLIB_EXT "$SO" | 
|  | 7529 | _ACEOF | 
|  | 7530 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7531 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 7532 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7533 | # (Shared libraries in this instance are shared modules to be loaded into | 
|  | 7534 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
|  | 7536 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7537 | if test -z "$LDSHARED" | 
|  | 7538 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7539 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7540 | AIX*) | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 7541 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp -L\$(srcdir)" | 
| Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 7542 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7543 | ;; | 
|  | 7544 | BeOS*) | 
|  | 7545 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" | 
| Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 7546 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7547 | ;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7548 | IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7549 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7550 | SunOS/5*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7551 | if test "$GCC" = "yes" ; then | 
|  | 7552 | LDSHARED='$(CC) -shared' | 
|  | 7553 | LDCXXSHARED='$(CXX) -shared' | 
|  | 7554 | else | 
|  | 7555 | LDSHARED='$(CC) -G' | 
|  | 7556 | LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 7557 | fi ;; | 
| Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 7558 | hp*|HP*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7559 | if test "$GCC" = "yes" ; then | 
|  | 7560 | LDSHARED='$(CC) -shared' | 
|  | 7561 | LDCXXSHARED='$(CXX) -shared' | 
|  | 7562 | else | 
|  | 7563 | LDSHARED='ld -b' | 
| Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 7564 | fi ;; | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7565 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7566 | Darwin/1.3*) | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7567 | LDSHARED='$(CC) $(LDFLAGS) -bundle' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7568 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7569 | if test "$enable_framework" ; then | 
|  | 7570 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7571 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 7572 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7573 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7574 | else | 
|  | 7575 | # No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7576 | LDSHARED="$LDSHARED -undefined suppress" | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7577 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7578 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7579 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7580 | LDSHARED='$(CC) $(LDFLAGS) -bundle' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7581 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7582 | if test "$enable_framework" ; then | 
|  | 7583 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7584 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 7585 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7586 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7587 | else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 7588 | # No framework, use the Python app as bundle-loader | 
|  | 7589 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 7590 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7591 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7592 | fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7593 | Darwin/*) | 
|  | 7594 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
|  | 7595 | # This allows an extension to be used in any Python | 
| Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 7596 |  | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 7597 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7598 | then | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 7599 | if test "${enable_universalsdk}"; then | 
| Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 7600 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
| Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 7601 | fi | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7602 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7603 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle -undefined dynamic_lookup' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7604 | BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7605 | else | 
|  | 7606 | LDSHARED='$(CC) $(LDFLAGS) -bundle' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7607 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7608 | if test "$enable_framework" ; then | 
|  | 7609 | # Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7610 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 7611 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7612 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7613 | else | 
|  | 7614 | # No framework, use the Python app as bundle-loader | 
|  | 7615 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
|  | 7616 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7617 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7618 | fi | 
|  | 7619 | fi | 
|  | 7620 | ;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7621 | Linux*|GNU*|QNX*) | 
|  | 7622 | LDSHARED='$(CC) -shared' | 
|  | 7623 | LDCXXSHARED='$(CXX) -shared';; | 
|  | 7624 | BSD/OS*/4*) | 
|  | 7625 | LDSHARED="gcc -shared" | 
|  | 7626 | LDCXXSHARED="g++ -shared";; | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 7627 | FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 7628 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7629 | then | 
| Benjamin Peterson | 3b2abe9 | 2010-03-14 15:06:14 +0000 | [diff] [blame] | 7630 | LDSHARED='$(CC) -shared ${LDFLAGS}' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7631 | LDCXXSHARED='$(CXX) -shared ${LDFLAGS}' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7632 | else | 
|  | 7633 | LDSHARED="ld -Bshareable ${LDFLAGS}" | 
|  | 7634 | fi;; | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 7635 | OpenBSD*) | 
|  | 7636 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 7637 | then | 
|  | 7638 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7639 | LDCXXSHARED='$(CXX) -shared $(CCSHARED) ${LDFLAGS}' | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 7640 | else | 
|  | 7641 | case `uname -r` in | 
|  | 7642 | [01].* | 2.[0-7] | 2.[0-7].*) | 
|  | 7643 | LDSHARED="ld -Bshareable ${LDFLAGS}" | 
|  | 7644 | ;; | 
|  | 7645 | *) | 
|  | 7646 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7647 | LDCXXSHARED='$(CXX) -shared $(CCSHARED) ${LDFLAGS}' | 
| Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 7648 | ;; | 
|  | 7649 | esac | 
|  | 7650 | fi;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7651 | NetBSD*|DragonFly*) | 
|  | 7652 | LDSHARED="cc -shared ${LDFLAGS}" | 
|  | 7653 | LDCXXSHARED="c++ -shared ${LDFLAGS}";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7654 | OpenUNIX*|UnixWare*) | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7655 | if test "$GCC" = "yes" ; then | 
|  | 7656 | LDSHARED='$(CC) -shared' | 
|  | 7657 | LDCXXSHARED='$(CXX) -shared' | 
|  | 7658 | else | 
|  | 7659 | LDSHARED='$(CC) -G' | 
|  | 7660 | LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7661 | fi;; | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7662 | SCO_SV*) | 
|  | 7663 | LDSHARED='$(CC) -Wl,-G,-Bexport' | 
|  | 7664 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
|  | 7665 | CYGWIN*) | 
|  | 7666 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
|  | 7667 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
|  | 7668 | atheos*) | 
|  | 7669 | LDSHARED="gcc -shared" | 
|  | 7670 | LDCXXSHARED="g++ -shared";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7671 | *)	LDSHARED="ld";; | 
|  | 7672 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7673 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
|  | 7675 | $as_echo "$LDSHARED" >&6; } | 
| Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7676 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7677 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7678 | # 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] | 7679 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
|  | 7681 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7682 | if test -z "$CCSHARED" | 
|  | 7683 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7684 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7685 | SunOS*) if test "$GCC" = yes; | 
| Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 7686 | then CCSHARED="-fPIC"; | 
|  | 7687 | elif test `uname -p` = sparc; | 
|  | 7688 | then CCSHARED="-xcode=pic32"; | 
|  | 7689 | else CCSHARED="-Kpic"; | 
|  | 7690 | fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7691 | hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 7692 | then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7693 | else CCSHARED="+z"; | 
|  | 7694 | fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7695 | Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7696 | BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7697 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7698 | OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7699 | if test "$GCC" = "yes" | 
|  | 7700 | then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 7701 | else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7702 | fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7703 | SCO_SV*) | 
|  | 7704 | if test "$GCC" = "yes" | 
|  | 7705 | then CCSHARED="-fPIC" | 
|  | 7706 | else CCSHARED="-Kpic -belf" | 
|  | 7707 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7708 | IRIX*/6*)  case $CC in | 
|  | 7709 | *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 7710 | *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7711 | esac;; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7712 | atheos*) CCSHARED="-fPIC";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7713 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7714 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
|  | 7716 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7717 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7718 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
|  | 7720 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7721 | if test -z "$LINKFORSHARED" | 
|  | 7722 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7723 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7724 | AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7725 | hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 7726 | LINKFORSHARED="-Wl,-E -Wl,+s";; | 
|  | 7727 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7728 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7729 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7730 | # -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7731 | Darwin/*) | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7732 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, | 
|  | 7733 | # which is | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7734 | # not used by the core itself but which needs to be in the core so | 
|  | 7735 | # that dynamically loaded extension modules have access to it. | 
| Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 7736 | # -prebind is no longer used, because it actually seems to give a | 
|  | 7737 | # slowdown in stead of a speedup, maybe due to the large number of | 
|  | 7738 | # dynamic loads Python does. | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7739 |  | 
|  | 7740 | LINKFORSHARED="$extra_undefs" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7741 | if test "$enable_framework" | 
|  | 7742 | then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7743 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7744 | fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7745 | LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7746 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7747 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 7748 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7749 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 7750 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 7751 | then | 
|  | 7752 | LINKFORSHARED="-Wl,--export-dynamic" | 
|  | 7753 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7754 | SunOS/5*) case $CC in | 
|  | 7755 | *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 7756 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 7757 | then | 
|  | 7758 | LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7759 | fi;; | 
|  | 7760 | esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 7761 | CYGWIN*) | 
|  | 7762 | if test $enable_shared = "no" | 
|  | 7763 | then | 
|  | 7764 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
|  | 7765 | fi;; | 
| Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 7766 | QNX*) | 
|  | 7767 | # -Wl,-E causes the symbols to be added to the dynamic | 
|  | 7768 | # symbol table so that they can be found when a module | 
|  | 7769 | # is loaded.  -N 2048K causes the stack size to be set | 
|  | 7770 | # to 2048 kilobytes so that the stack doesn't overflow | 
|  | 7771 | # when running test_compile.py. | 
|  | 7772 | LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7773 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7774 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
|  | 7776 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7777 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7778 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 7779 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
|  | 7781 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7782 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
|  | 7783 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 7784 | case $ac_sys_system in | 
|  | 7785 | CYGWIN*) | 
|  | 7786 | # Cygwin needs CCSHARED when building extension DLLs | 
|  | 7787 | # but not when building the interpreter DLL. | 
|  | 7788 | CFLAGSFORSHARED='';; | 
|  | 7789 | *) | 
|  | 7790 | CFLAGSFORSHARED='$(CCSHARED)' | 
|  | 7791 | esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7792 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
|  | 7794 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7795 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7796 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
|  | 7797 | # library (with --enable-shared). | 
|  | 7798 | # 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] | 7799 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
|  | 7800 | # if it is not required, since it creates a dependency of the shared library | 
|  | 7801 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
|  | 7802 | # don't need to link LIBS explicitly. The default should be only changed | 
|  | 7803 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7804 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
|  | 7806 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7807 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7808 | *) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 7809 | SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7810 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
|  | 7812 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7813 |  | 
|  | 7814 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7815 | # checks for libraries | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
|  | 7817 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
|  | 7818 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | 
|  | 7819 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7820 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7821 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7822 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7824 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7825 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7826 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7827 | Use char because int might match the return type of a GCC | 
|  | 7828 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7829 | #ifdef __cplusplus | 
|  | 7830 | extern "C" | 
|  | 7831 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7832 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7833 | int | 
|  | 7834 | main () | 
|  | 7835 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7836 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7837 | ; | 
|  | 7838 | return 0; | 
|  | 7839 | } | 
|  | 7840 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7841 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7842 | ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7843 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7844 | ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7845 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7846 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7847 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7848 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7849 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 7851 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
|  | 7852 | 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] | 7853 | cat >>confdefs.h <<_ACEOF | 
|  | 7854 | #define HAVE_LIBDL 1 | 
|  | 7855 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7856 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7857 | LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7858 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7859 | fi | 
|  | 7860 | # Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
|  | 7862 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
|  | 7863 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | 
|  | 7864 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7865 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7866 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7867 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7869 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7870 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7871 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7872 | Use char because int might match the return type of a GCC | 
|  | 7873 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7874 | #ifdef __cplusplus | 
|  | 7875 | extern "C" | 
|  | 7876 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7877 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7878 | int | 
|  | 7879 | main () | 
|  | 7880 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7881 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7882 | ; | 
|  | 7883 | return 0; | 
|  | 7884 | } | 
|  | 7885 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7886 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7887 | ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7888 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7889 | ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7890 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7891 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7892 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7893 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7894 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 7896 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
|  | 7897 | 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] | 7898 | cat >>confdefs.h <<_ACEOF | 
|  | 7899 | #define HAVE_LIBDLD 1 | 
|  | 7900 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7901 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7902 | LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7903 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7904 | fi | 
|  | 7905 | # Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7906 |  | 
| Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 7907 | # only check for sem_init if thread support is requested | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7908 | if test "$with_threads" = "yes" -o -z "$with_threads"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
|  | 7910 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
|  | 7911 | if test "${ac_cv_search_sem_init+set}" = set; then : | 
|  | 7912 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7913 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7914 | ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7916 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7917 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7918 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7919 | Use char because int might match the return type of a GCC | 
|  | 7920 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7921 | #ifdef __cplusplus | 
|  | 7922 | extern "C" | 
|  | 7923 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7924 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7925 | int | 
|  | 7926 | main () | 
|  | 7927 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7928 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7929 | ; | 
|  | 7930 | return 0; | 
|  | 7931 | } | 
|  | 7932 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7933 | for ac_lib in '' pthread rt posix4; do | 
|  | 7934 | if test -z "$ac_lib"; then | 
|  | 7935 | ac_res="none required" | 
|  | 7936 | else | 
|  | 7937 | ac_res=-l$ac_lib | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 7938 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7939 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7940 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7941 | ac_cv_search_sem_init=$ac_res | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 7942 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7943 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 7944 | conftest$ac_exeext | 
|  | 7945 | if test "${ac_cv_search_sem_init+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7946 | break | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 7947 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7948 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7949 | if test "${ac_cv_search_sem_init+set}" = set; then : | 
|  | 7950 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7951 | else | 
|  | 7952 | ac_cv_search_sem_init=no | 
|  | 7953 | fi | 
|  | 7954 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7955 | LIBS=$ac_func_search_save_LIBS | 
|  | 7956 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
|  | 7958 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7959 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7960 | if test "$ac_res" != no; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7961 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7962 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7963 | fi | 
| Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 7964 | # 'Real Time' functions on Solaris | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7965 | # posix4 on Solaris 2.6 | 
|  | 7966 | # pthread (first!) on Linux | 
|  | 7967 | fi | 
|  | 7968 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7969 | # check if we need libintl for locale functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
|  | 7971 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
|  | 7972 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then : | 
|  | 7973 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7974 | else | 
|  | 7975 | ac_check_lib_save_LIBS=$LIBS | 
|  | 7976 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7978 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7979 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7980 | /* Override any GCC internal prototype to avoid an error. | 
|  | 7981 | Use char because int might match the return type of a GCC | 
|  | 7982 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7983 | #ifdef __cplusplus | 
|  | 7984 | extern "C" | 
|  | 7985 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7986 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7987 | int | 
|  | 7988 | main () | 
|  | 7989 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7990 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7991 | ; | 
|  | 7992 | return 0; | 
|  | 7993 | } | 
|  | 7994 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7995 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7996 | ac_cv_lib_intl_textdomain=yes | 
|  | 7997 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7998 | ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7999 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8000 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8001 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8002 | LIBS=$ac_check_lib_save_LIBS | 
|  | 8003 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
|  | 8005 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
|  | 8006 | 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] | 8007 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8008 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8009 |  | 
|  | 8010 | fi | 
|  | 8011 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8012 |  | 
|  | 8013 | # checks for system dependent C++ extensions support | 
|  | 8014 | case "$ac_sys_system" in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8015 | AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
|  | 8016 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
|  | 8017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8018 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8019 |  | 
|  | 8020 | #include "/usr/lpp/xlC/include/load.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8021 | int | 
|  | 8022 | main () | 
|  | 8023 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8024 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8025 | ; | 
|  | 8026 | return 0; | 
|  | 8027 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8028 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8029 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8030 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8031 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8032 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8033 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8034 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8036 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8037 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8038 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8039 |  | 
|  | 8040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8041 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8042 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8043 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8044 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8045 | conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8046 | *) ;; | 
|  | 8047 | esac | 
|  | 8048 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8049 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8050 | # BeOS' sockets are stashed in libnet. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
|  | 8052 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
|  | 8053 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then : | 
|  | 8054 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8055 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8056 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8057 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8059 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8060 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8061 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8062 | Use char because int might match the return type of a GCC | 
|  | 8063 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8064 | #ifdef __cplusplus | 
|  | 8065 | extern "C" | 
|  | 8066 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8067 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8068 | int | 
|  | 8069 | main () | 
|  | 8070 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8071 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8072 | ; | 
|  | 8073 | return 0; | 
|  | 8074 | } | 
|  | 8075 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8076 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8077 | ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8078 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8079 | ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8080 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8081 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8082 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8083 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8084 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
|  | 8086 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
|  | 8087 | 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] | 8088 | LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8089 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 8090 | # SVR4 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
|  | 8092 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
|  | 8093 | if test "${ac_cv_lib_socket_socket+set}" = set; then : | 
|  | 8094 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8095 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8096 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8097 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8099 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8100 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8101 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8102 | Use char because int might match the return type of a GCC | 
|  | 8103 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8104 | #ifdef __cplusplus | 
|  | 8105 | extern "C" | 
|  | 8106 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8107 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8108 | int | 
|  | 8109 | main () | 
|  | 8110 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8111 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8112 | ; | 
|  | 8113 | return 0; | 
|  | 8114 | } | 
|  | 8115 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8116 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8117 | ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8118 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8119 | ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8120 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8121 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8122 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8123 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8124 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
|  | 8126 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
|  | 8127 | if test "x$ac_cv_lib_socket_socket" = x""yes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8128 | LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8129 | fi | 
|  | 8130 | # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 8131 |  | 
| Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 8132 | case "$ac_sys_system" in | 
|  | 8133 | BeOS*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5 | 
|  | 8135 | $as_echo_n "checking for socket in -lnet... " >&6; } | 
|  | 8136 | if test "${ac_cv_lib_net_socket+set}" = set; then : | 
|  | 8137 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8138 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8139 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8140 | LIBS="-lnet $LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8142 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8143 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8144 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8145 | Use char because int might match the return type of a GCC | 
|  | 8146 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8147 | #ifdef __cplusplus | 
|  | 8148 | extern "C" | 
|  | 8149 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8150 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8151 | int | 
|  | 8152 | main () | 
|  | 8153 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8154 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8155 | ; | 
|  | 8156 | return 0; | 
|  | 8157 | } | 
|  | 8158 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8159 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8160 | ac_cv_lib_net_socket=yes | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8161 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8162 | ac_cv_lib_net_socket=no | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8163 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8164 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8165 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8166 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8167 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5 | 
|  | 8169 | $as_echo "$ac_cv_lib_net_socket" >&6; } | 
|  | 8170 | if test "x$ac_cv_lib_net_socket" = x""yes; then : | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8171 | LIBS="-lnet $LIBS" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8172 | fi | 
|  | 8173 | # BeOS | 
|  | 8174 | ;; | 
|  | 8175 | esac | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8176 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
|  | 8178 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8179 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8180 | # Check whether --with-libs was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8181 | if test "${with_libs+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8182 | withval=$with_libs; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 8184 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 8185 | LIBS="$withval $LIBS" | 
|  | 8186 |  | 
|  | 8187 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8189 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8190 | fi | 
|  | 8191 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8192 |  | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8193 | if test -n "$ac_tool_prefix"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8194 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
|  | 8195 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 8197 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 8198 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | 
|  | 8199 | $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8200 | else | 
|  | 8201 | case $PKG_CONFIG in | 
|  | 8202 | [\\/]* | ?:[\\/]*) | 
|  | 8203 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
|  | 8204 | ;; | 
|  | 8205 | *) | 
|  | 8206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 8207 | for as_dir in $PATH | 
|  | 8208 | do | 
|  | 8209 | IFS=$as_save_IFS | 
|  | 8210 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8211 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8212 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 8213 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8215 | break 2 | 
|  | 8216 | fi | 
|  | 8217 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8218 | done | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8219 | IFS=$as_save_IFS | 
|  | 8220 |  | 
|  | 8221 | ;; | 
|  | 8222 | esac | 
|  | 8223 | fi | 
|  | 8224 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
|  | 8225 | if test -n "$PKG_CONFIG"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
|  | 8227 | $as_echo "$PKG_CONFIG" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8228 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8230 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8231 | fi | 
|  | 8232 |  | 
|  | 8233 |  | 
|  | 8234 | fi | 
|  | 8235 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
|  | 8236 | ac_pt_PKG_CONFIG=$PKG_CONFIG | 
|  | 8237 | # Extract the first word of "pkg-config", so it can be a program name with args. | 
|  | 8238 | set dummy pkg-config; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 8240 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 8241 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | 
|  | 8242 | $as_echo_n "(cached) " >&6 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8243 | else | 
|  | 8244 | case $ac_pt_PKG_CONFIG in | 
|  | 8245 | [\\/]* | ?:[\\/]*) | 
|  | 8246 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
|  | 8247 | ;; | 
|  | 8248 | *) | 
|  | 8249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 8250 | for as_dir in $PATH | 
|  | 8251 | do | 
|  | 8252 | IFS=$as_save_IFS | 
|  | 8253 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8254 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8255 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 8256 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8257 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8258 | break 2 | 
|  | 8259 | fi | 
|  | 8260 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8261 | done | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8262 | IFS=$as_save_IFS | 
|  | 8263 |  | 
|  | 8264 | ;; | 
|  | 8265 | esac | 
|  | 8266 | fi | 
|  | 8267 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
|  | 8268 | if test -n "$ac_pt_PKG_CONFIG"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
|  | 8270 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8271 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8273 | $as_echo "no" >&6; } | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8274 | fi | 
|  | 8275 |  | 
|  | 8276 | if test "x$ac_pt_PKG_CONFIG" = x; then | 
|  | 8277 | PKG_CONFIG="" | 
|  | 8278 | else | 
|  | 8279 | case $cross_compiling:$ac_tool_warned in | 
|  | 8280 | yes:) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8281 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 8282 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8283 | ac_tool_warned=yes ;; | 
|  | 8284 | esac | 
|  | 8285 | PKG_CONFIG=$ac_pt_PKG_CONFIG | 
|  | 8286 | fi | 
|  | 8287 | else | 
|  | 8288 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
|  | 8289 | fi | 
|  | 8290 |  | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8291 |  | 
|  | 8292 | # Check for use of the system expat library | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
|  | 8294 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8295 |  | 
|  | 8296 | # Check whether --with-system_expat was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8297 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8298 | withval=$with_system_expat; | 
|  | 8299 | fi | 
|  | 8300 |  | 
|  | 8301 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
|  | 8303 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8304 |  | 
|  | 8305 | # Check for use of the system libffi library | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
|  | 8307 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8308 |  | 
|  | 8309 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8310 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8311 | withval=$with_system_ffi; | 
|  | 8312 | fi | 
|  | 8313 |  | 
|  | 8314 |  | 
|  | 8315 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8316 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
|  | 8317 | else | 
|  | 8318 | LIBFFI_INCLUDEDIR="" | 
|  | 8319 | fi | 
|  | 8320 |  | 
|  | 8321 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
|  | 8323 | $as_echo "$with_system_ffi" >&6; } | 
| Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 8324 |  | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8325 | # Check for --with-dbmliborder | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
|  | 8327 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8328 |  | 
|  | 8329 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8330 | if test "${with_dbmliborder+set}" = set; then : | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8331 | withval=$with_dbmliborder; | 
|  | 8332 | if test x$with_dbmliborder = xyes | 
|  | 8333 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8334 | as_fn_error "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8335 | else | 
|  | 8336 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
|  | 8337 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
|  | 8338 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8339 | as_fn_error "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8340 | fi | 
|  | 8341 | done | 
|  | 8342 | fi | 
|  | 8343 | fi | 
|  | 8344 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
|  | 8346 | $as_echo "$with_dbmliborder" >&6; } | 
| Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8347 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8348 | # Determine if signalmodule should be used. | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8349 |  | 
|  | 8350 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 | 
|  | 8352 | $as_echo_n "checking for --with-signal-module... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8353 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8354 | # Check whether --with-signal-module was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8355 | if test "${with_signal_module+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8356 | withval=$with_signal_module; | 
|  | 8357 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8358 |  | 
|  | 8359 |  | 
|  | 8360 | if test -z "$with_signal_module" | 
|  | 8361 | then with_signal_module="yes" | 
|  | 8362 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 | 
|  | 8364 | $as_echo "$with_signal_module" >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8365 |  | 
|  | 8366 | if test "${with_signal_module}" = "yes"; then | 
|  | 8367 | USE_SIGNAL_MODULE="" | 
|  | 8368 | SIGNAL_OBJS="" | 
|  | 8369 | else | 
|  | 8370 | USE_SIGNAL_MODULE="#" | 
|  | 8371 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
|  | 8372 | fi | 
|  | 8373 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 8374 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8375 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8376 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8377 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5 | 
|  | 8379 | $as_echo_n "checking for --with-dec-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8380 |  | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8381 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8382 | # Check whether --with-dec-threads was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8383 | if test "${with_dec_threads+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8384 | withval=$with_dec_threads; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 8386 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8387 | LDLAST=-threads | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8388 | if test "${with_thread+set}" != set; then | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8389 | with_thread="$withval"; | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8390 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8391 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8393 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8394 | fi | 
|  | 8395 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8396 |  | 
|  | 8397 | # Templates for things AC_DEFINEd more than once. | 
|  | 8398 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8399 |  | 
|  | 8400 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8401 |  | 
|  | 8402 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 | 
|  | 8404 | $as_echo_n "checking for --with-threads... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8405 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8406 | # Check whether --with-threads was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8407 | if test "${with_threads+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8408 | withval=$with_threads; | 
|  | 8409 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8410 |  | 
|  | 8411 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8412 | # --with-thread is deprecated, but check for it anyway | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8413 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8414 | # Check whether --with-thread was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8415 | if test "${with_thread+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8416 | withval=$with_thread; with_threads=$with_thread | 
|  | 8417 | fi | 
|  | 8418 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8419 |  | 
|  | 8420 | if test -z "$with_threads" | 
|  | 8421 | then with_threads="yes" | 
|  | 8422 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 | 
|  | 8424 | $as_echo "$with_threads" >&6; } | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8425 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8426 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8427 | if test "$with_threads" = "no" | 
|  | 8428 | then | 
|  | 8429 | USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8430 | elif test "$ac_cv_pthread_is_default" = yes | 
|  | 8431 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8432 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8433 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8434 | # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8435 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8436 |  | 
|  | 8437 | posix_threads=yes | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8438 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8439 | elif test "$ac_cv_kpthread" = "yes" | 
|  | 8440 | then | 
|  | 8441 | CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8442 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 8443 | CXX="$CXX -Kpthread" | 
|  | 8444 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8445 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 8446 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8447 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8448 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8449 | elif test "$ac_cv_kthread" = "yes" | 
|  | 8450 | then | 
|  | 8451 | CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8452 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 8453 | CXX="$CXX -Kthread" | 
|  | 8454 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8455 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8456 |  | 
|  | 8457 | posix_threads=yes | 
|  | 8458 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8459 | elif test "$ac_cv_pthread" = "yes" | 
|  | 8460 | then | 
|  | 8461 | CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8462 | if test "$ac_cv_cxx_thread" = "yes"; then | 
|  | 8463 | CXX="$CXX -pthread" | 
|  | 8464 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8465 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8466 |  | 
|  | 8467 | posix_threads=yes | 
|  | 8468 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8469 | else | 
|  | 8470 | if test ! -z "$with_threads" -a -d "$with_threads" | 
|  | 8471 | then LDFLAGS="$LDFLAGS -L$with_threads" | 
|  | 8472 | fi | 
|  | 8473 | if test ! -z "$withval" -a -d "$withval" | 
|  | 8474 | then LDFLAGS="$LDFLAGS -L$withval" | 
|  | 8475 | fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8476 |  | 
|  | 8477 | # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 8478 | # define _POSIX_THREADS in unistd.h. Some apparently don't | 
|  | 8479 | # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
|  | 8481 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
|  | 8482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8483 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8484 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8485 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8486 | #ifdef _POSIX_THREADS | 
|  | 8487 | yes | 
|  | 8488 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8489 |  | 
|  | 8490 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8491 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8492 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8493 | unistd_defines_pthreads=yes | 
|  | 8494 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8495 | unistd_defines_pthreads=no | 
|  | 8496 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 8497 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8498 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
|  | 8500 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8501 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8502 | $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 8503 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8504 | ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default" | 
|  | 8505 | if test "x$ac_cv_header_cthreads_h" = x""yes; then : | 
|  | 8506 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8507 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8508 | $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8509 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8510 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8511 | $as_echo "#define HURD_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8512 |  | 
|  | 8513 | LIBS="$LIBS -lthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8514 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8515 | else | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8516 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8517 | ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" | 
|  | 8518 | if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then : | 
|  | 8519 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8520 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8521 | $as_echo "#define C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8522 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8523 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8524 | $as_echo "#define MACH_C_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8525 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8526 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8527 | else | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8528 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5 | 
|  | 8530 | $as_echo_n "checking for --with-pth... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8531 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8532 | # Check whether --with-pth was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8533 | if test "${with_pth+set}" = set; then : | 
|  | 8534 | withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
|  | 8535 | $as_echo "$withval" >&6; } | 
|  | 8536 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8537 |  | 
|  | 8538 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8539 | $as_echo "#define HAVE_PTH 1" >>confdefs.h | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 8540 |  | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8541 | LIBS="-lpth $LIBS" | 
|  | 8542 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 8543 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8545 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8546 |  | 
|  | 8547 | # Just looking for pthread_create in libpthread is not enough: | 
|  | 8548 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
|  | 8549 | # So we really have to include pthread.h, and then link. | 
|  | 8550 | _libs=$LIBS | 
|  | 8551 | LIBS="$LIBS -lpthread" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
|  | 8553 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
|  | 8554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8555 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8556 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8557 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8558 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8559 | int | 
|  | 8560 | main () | 
|  | 8561 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8562 |  | 
|  | 8563 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8564 | ; | 
|  | 8565 | return 0; | 
|  | 8566 | } | 
|  | 8567 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8568 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8569 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 8571 | $as_echo "yes" >&6; } | 
|  | 8572 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8573 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8574 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8575 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8576 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8577 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8578 | LIBS=$_libs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8579 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" | 
|  | 8580 | if test "x$ac_cv_func_pthread_detach" = x""yes; then : | 
|  | 8581 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8582 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8583 | posix_threads=yes | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8584 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8585 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8586 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8587 | ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default" | 
|  | 8588 | if test "x$ac_cv_header_atheos_threads_h" = x""yes; then : | 
|  | 8589 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8590 |  | 
|  | 8591 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8592 | $as_echo "#define ATHEOS_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8593 |  | 
|  | 8594 | THREADOBJ="Python/thread.o" | 
|  | 8595 | else | 
|  | 8596 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8597 | ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default" | 
|  | 8598 | if test "x$ac_cv_header_kernel_OS_h" = x""yes; then : | 
|  | 8599 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8600 |  | 
|  | 8601 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8602 | $as_echo "#define BEOS_THREADS 1" >>confdefs.h | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8603 |  | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8604 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8605 | else | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8606 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
|  | 8608 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
|  | 8609 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then : | 
|  | 8610 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8611 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8612 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8613 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8615 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8616 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8617 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8618 | Use char because int might match the return type of a GCC | 
|  | 8619 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8620 | #ifdef __cplusplus | 
|  | 8621 | extern "C" | 
|  | 8622 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8623 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8624 | int | 
|  | 8625 | main () | 
|  | 8626 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8627 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8628 | ; | 
|  | 8629 | return 0; | 
|  | 8630 | } | 
|  | 8631 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8632 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8633 | ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8634 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8635 | ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8636 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8637 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8638 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8639 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8640 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
|  | 8642 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
|  | 8643 | if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then : | 
|  | 8644 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8645 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8646 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8647 | LIBS="$LIBS -lpthreads" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8648 | THREADOBJ="Python/thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8649 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8650 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
|  | 8652 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
|  | 8653 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then : | 
|  | 8654 | $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8655 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8656 | ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8657 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8659 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8660 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8661 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8662 | Use char because int might match the return type of a GCC | 
|  | 8663 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8664 | #ifdef __cplusplus | 
|  | 8665 | extern "C" | 
|  | 8666 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8668 | int | 
|  | 8669 | main () | 
|  | 8670 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8671 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8672 | ; | 
|  | 8673 | return 0; | 
|  | 8674 | } | 
|  | 8675 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8676 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8677 | ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8678 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8679 | ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8680 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8681 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8682 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8683 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8684 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
|  | 8686 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
|  | 8687 | if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then : | 
|  | 8688 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8689 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8690 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8691 | LIBS="$LIBS -lc_r" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8692 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8693 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8694 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
|  | 8696 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
|  | 8697 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then : | 
|  | 8698 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8699 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8700 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8701 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8703 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8704 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8705 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8706 | Use char because int might match the return type of a GCC | 
|  | 8707 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8708 | #ifdef __cplusplus | 
|  | 8709 | extern "C" | 
|  | 8710 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8711 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8712 | int | 
|  | 8713 | main () | 
|  | 8714 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8715 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8716 | ; | 
|  | 8717 | return 0; | 
|  | 8718 | } | 
|  | 8719 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8720 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8721 | ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8722 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8723 | ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8724 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8725 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8726 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8727 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8728 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
|  | 8730 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
|  | 8731 | if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then : | 
|  | 8732 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8733 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8734 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8735 | LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8736 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8737 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8738 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
|  | 8740 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
|  | 8741 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then : | 
|  | 8742 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8743 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8744 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8745 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8747 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8748 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8749 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8750 | Use char because int might match the return type of a GCC | 
|  | 8751 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8752 | #ifdef __cplusplus | 
|  | 8753 | extern "C" | 
|  | 8754 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8755 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8756 | int | 
|  | 8757 | main () | 
|  | 8758 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8759 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8760 | ; | 
|  | 8761 | return 0; | 
|  | 8762 | } | 
|  | 8763 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8764 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8765 | ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8766 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8767 | ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8768 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8769 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8770 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8771 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8772 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
|  | 8774 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
|  | 8775 | if test "x$ac_cv_lib_cma_pthread_create" = x""yes; then : | 
|  | 8776 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8777 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8778 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8779 | LIBS="$LIBS -lcma" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8780 | THREADOBJ="Python/thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8781 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 8782 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8783 | USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 8784 | fi | 
|  | 8785 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8786 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8787 | fi | 
|  | 8788 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 8789 | fi | 
|  | 8790 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8791 | fi | 
|  | 8792 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8793 | fi | 
|  | 8794 |  | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8795 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8796 | fi | 
|  | 8797 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8798 |  | 
|  | 8799 | fi | 
|  | 8800 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8801 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8802 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8803 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8804 | fi | 
|  | 8805 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8806 | fi | 
|  | 8807 |  | 
|  | 8808 |  | 
|  | 8809 | fi | 
|  | 8810 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8811 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8812 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
|  | 8814 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
|  | 8815 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then : | 
|  | 8816 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8817 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8818 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8819 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8821 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8822 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8823 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8824 | Use char because int might match the return type of a GCC | 
|  | 8825 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8826 | #ifdef __cplusplus | 
|  | 8827 | extern "C" | 
|  | 8828 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8829 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8830 | int | 
|  | 8831 | main () | 
|  | 8832 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8833 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8834 | ; | 
|  | 8835 | return 0; | 
|  | 8836 | } | 
|  | 8837 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8838 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8839 | ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8840 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8841 | ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8842 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8843 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8844 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8845 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8846 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
|  | 8848 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
|  | 8849 | if test "x$ac_cv_lib_mpc_usconfig" = x""yes; then : | 
|  | 8850 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8851 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8852 | LIBS="$LIBS -lmpc" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8853 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8854 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8855 | fi | 
|  | 8856 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8857 |  | 
| Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 8858 | if test "$posix_threads" != "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 | 
|  | 8860 | $as_echo_n "checking for thr_create in -lthread... " >&6; } | 
|  | 8861 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then : | 
|  | 8862 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8863 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8864 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8865 | LIBS="-lthread  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8867 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8868 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8869 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8870 | Use char because int might match the return type of a GCC | 
|  | 8871 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8872 | #ifdef __cplusplus | 
|  | 8873 | extern "C" | 
|  | 8874 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8875 | char thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8876 | int | 
|  | 8877 | main () | 
|  | 8878 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8879 | return thr_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8880 | ; | 
|  | 8881 | return 0; | 
|  | 8882 | } | 
|  | 8883 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8884 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8885 | ac_cv_lib_thread_thr_create=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8886 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8887 | ac_cv_lib_thread_thr_create=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8888 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8889 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8890 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8891 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8892 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 | 
|  | 8894 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } | 
|  | 8895 | if test "x$ac_cv_lib_thread_thr_create" = x""yes; then : | 
|  | 8896 | $as_echo "#define WITH_THREAD 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8897 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8898 | LIBS="$LIBS -lthread" | 
| Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8899 | THREADOBJ="Python/thread.o" | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8900 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8901 | fi | 
|  | 8902 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8903 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8904 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8905 | if test "$USE_THREAD_MODULE" != "#" | 
|  | 8906 | then | 
|  | 8907 | # If the above checks didn't disable threads, (at least) OSF1 | 
|  | 8908 | # needs this '-threads' argument during linking. | 
|  | 8909 | case $ac_sys_system in | 
|  | 8910 | OSF1) LDLAST=-threads;; | 
|  | 8911 | esac | 
| Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 8912 | fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8913 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8914 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8915 | if test "$posix_threads" = "yes"; then | 
|  | 8916 | if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8917 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8918 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8919 |  | 
|  | 8920 | fi | 
|  | 8921 |  | 
|  | 8922 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
|  | 8923 | case  $ac_sys_system/$ac_sys_release in | 
|  | 8924 | SunOS/5.6) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8925 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8926 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8927 | ;; | 
|  | 8928 | SunOS/5.8) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8929 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8930 |  | 
|  | 8931 | ;; | 
| Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 8932 | AIX/5) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8933 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 8934 |  | 
|  | 8935 | ;; | 
| Antoine Pitrou | b41947b | 2010-08-30 14:55:30 +0000 | [diff] [blame] | 8936 | AIX/6) | 
|  | 8937 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
|  | 8938 |  | 
|  | 8939 | ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8940 | esac | 
|  | 8941 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
|  | 8943 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
|  | 8944 | if test "${ac_cv_pthread_system_supported+set}" = set; then : | 
|  | 8945 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8946 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8947 | if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8948 | ac_cv_pthread_system_supported=no | 
|  | 8949 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8951 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8952 | #include <pthread.h> | 
|  | 8953 | void *foo(void *parm) { | 
|  | 8954 | return NULL; | 
|  | 8955 | } | 
|  | 8956 | main() { | 
|  | 8957 | pthread_attr_t attr; | 
|  | 8958 | pthread_t id; | 
|  | 8959 | if (pthread_attr_init(&attr)) exit(-1); | 
|  | 8960 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
|  | 8961 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
|  | 8962 | exit(0); | 
|  | 8963 | } | 
|  | 8964 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8965 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8966 | ac_cv_pthread_system_supported=yes | 
|  | 8967 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8968 | ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8969 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8970 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 8971 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8972 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8973 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8974 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8975 | fi | 
|  | 8976 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
|  | 8978 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8979 | if test "$ac_cv_pthread_system_supported" = "yes"; then | 
|  | 8980 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8981 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8982 |  | 
|  | 8983 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8984 | for ac_func in pthread_sigmask | 
|  | 8985 | do : | 
|  | 8986 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | 
|  | 8987 | 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] | 8988 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8989 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8990 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8991 | case $ac_sys_system in | 
|  | 8992 | CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8993 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8994 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8995 |  | 
|  | 8996 | ;; | 
|  | 8997 | esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8998 | fi | 
|  | 8999 | done | 
|  | 9000 |  | 
|  | 9001 | fi | 
|  | 9002 |  | 
|  | 9003 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9004 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9005 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
|  | 9007 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9008 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9009 | if test "${enable_ipv6+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9010 | enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9011 | no) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9013 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9014 | ipv6=no | 
|  | 9015 | ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9016 | *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9017 | $as_echo "yes" >&6; } | 
|  | 9018 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9019 |  | 
|  | 9020 | ipv6=yes | 
|  | 9021 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9022 | esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9023 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9024 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9025 | if test "$cross_compiling" = yes; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9026 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9028 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9029 | ipv6=no | 
|  | 9030 |  | 
|  | 9031 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9033 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9034 | /* AF_INET6 available check */ | 
|  | 9035 | #include <sys/types.h> | 
|  | 9036 | #include <sys/socket.h> | 
|  | 9037 | main() | 
|  | 9038 | { | 
|  | 9039 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) | 
|  | 9040 | exit(1); | 
|  | 9041 | else | 
|  | 9042 | exit(0); | 
|  | 9043 | } | 
|  | 9044 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9045 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9046 | if ac_fn_c_try_run "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9047 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9049 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9050 | ipv6=yes | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9051 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9052 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9053 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9055 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9056 | ipv6=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9057 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9058 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9059 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 9060 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9061 | fi | 
|  | 9062 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9063 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9064 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
|  | 9066 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
|  | 9067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9068 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9069 |  | 
|  | 9070 | #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9071 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9072 | int | 
|  | 9073 | main () | 
|  | 9074 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9075 | struct sockaddr_in6 x; | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9076 | x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9077 | ; | 
|  | 9078 | return 0; | 
|  | 9079 | } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9080 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9081 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9082 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9083 |  | 
|  | 9084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9085 | $as_echo "yes" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9086 | ipv6=yes | 
|  | 9087 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9088 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9089 |  | 
|  | 9090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9091 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9092 | ipv6=no | 
|  | 9093 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9094 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9095 | 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] | 9096 | fi | 
|  | 9097 |  | 
|  | 9098 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9099 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9100 |  | 
|  | 9101 | fi | 
|  | 9102 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9103 | fi | 
|  | 9104 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9105 |  | 
|  | 9106 | ipv6type=unknown | 
|  | 9107 | ipv6lib=none | 
|  | 9108 | ipv6trylibc=no | 
|  | 9109 |  | 
|  | 9110 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
|  | 9112 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 9113 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
|  | 9114 | do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9115 | case $i in | 
|  | 9116 | inria) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9118 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9119 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9120 | #include <netinet/in.h> | 
|  | 9121 | #ifdef IPV6_INRIA_VERSION | 
|  | 9122 | yes | 
|  | 9123 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9124 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9125 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9126 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9127 | ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9128 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9129 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9130 |  | 
|  | 9131 | ;; | 
|  | 9132 | kame) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9134 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9135 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9136 | #include <netinet/in.h> | 
|  | 9137 | #ifdef __KAME__ | 
|  | 9138 | yes | 
|  | 9139 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9140 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9141 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9142 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9143 | ipv6type=$i; | 
|  | 9144 | ipv6lib=inet6 | 
|  | 9145 | ipv6libdir=/usr/local/v6/lib | 
|  | 9146 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9147 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9148 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9149 |  | 
|  | 9150 | ;; | 
|  | 9151 | linux-glibc) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9153 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9154 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9155 | #include <features.h> | 
|  | 9156 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
|  | 9157 | yes | 
|  | 9158 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9159 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9160 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9161 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9162 | ipv6type=$i; | 
|  | 9163 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9164 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9165 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9166 |  | 
|  | 9167 | ;; | 
|  | 9168 | linux-inet6) | 
|  | 9169 | if test -d /usr/inet6; then | 
|  | 9170 | ipv6type=$i | 
|  | 9171 | ipv6lib=inet6 | 
|  | 9172 | ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9173 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9174 | fi | 
|  | 9175 | ;; | 
|  | 9176 | solaris) | 
|  | 9177 | if test -f /etc/netconfig; then | 
|  | 9178 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then | 
|  | 9179 | ipv6type=$i | 
|  | 9180 | ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9181 | fi | 
|  | 9182 | fi | 
|  | 9183 | ;; | 
|  | 9184 | toshiba) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9186 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9187 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9188 | #include <sys/param.h> | 
|  | 9189 | #ifdef _TOSHIBA_INET6 | 
|  | 9190 | yes | 
|  | 9191 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9192 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9193 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9194 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9195 | ipv6type=$i; | 
|  | 9196 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9197 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9198 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9199 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9200 |  | 
|  | 9201 | ;; | 
|  | 9202 | v6d) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9204 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9205 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9206 | #include </usr/local/v6/include/sys/v6config.h> | 
|  | 9207 | #ifdef __V6D__ | 
|  | 9208 | yes | 
|  | 9209 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9210 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9211 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9212 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9213 | ipv6type=$i; | 
|  | 9214 | ipv6lib=v6; | 
|  | 9215 | ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9216 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9217 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9218 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9219 |  | 
|  | 9220 | ;; | 
|  | 9221 | zeta) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9223 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9224 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9225 | #include <sys/param.h> | 
|  | 9226 | #ifdef _ZETA_MINAMI_INET6 | 
|  | 9227 | yes | 
|  | 9228 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9229 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9230 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9231 | $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9232 | ipv6type=$i; | 
|  | 9233 | ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9234 | ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9235 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9236 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9237 |  | 
|  | 9238 | ;; | 
|  | 9239 | esac | 
|  | 9240 | if test "$ipv6type" != "unknown"; then | 
|  | 9241 | break | 
|  | 9242 | fi | 
|  | 9243 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
|  | 9245 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9246 | fi | 
|  | 9247 |  | 
|  | 9248 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
|  | 9249 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
|  | 9250 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
|  | 9251 | echo "using lib$ipv6lib" | 
|  | 9252 | else | 
|  | 9253 | if test $ipv6trylibc = "yes"; then | 
|  | 9254 | echo "using libc" | 
|  | 9255 | else | 
|  | 9256 | echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
|  | 9257 | echo "You need to fetch lib$ipv6lib.a from appropriate" | 
|  | 9258 | echo 'ipv6 kit and compile beforehand.' | 
|  | 9259 | exit 1 | 
|  | 9260 | fi | 
|  | 9261 | fi | 
|  | 9262 | fi | 
|  | 9263 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 | 
|  | 9265 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } | 
|  | 9266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9267 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9268 |  | 
|  | 9269 | #include <Carbon/Carbon.h> | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9270 | int | 
|  | 9271 | main () | 
|  | 9272 | { | 
|  | 9273 | FSIORefNum fRef = 0 | 
|  | 9274 | ; | 
|  | 9275 | return 0; | 
|  | 9276 | } | 
| Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 9277 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9278 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9279 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9280 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9281 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9282 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9283 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9285 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9286 |  | 
| Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 9287 | else | 
|  | 9288 |  | 
|  | 9289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9290 | $as_echo "no" >&6; } | 
|  | 9291 |  | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9292 | fi | 
| Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 9294 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9295 | # Check for --with-doc-strings | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
|  | 9297 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9298 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9299 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9300 | if test "${with_doc_strings+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9301 | withval=$with_doc_strings; | 
|  | 9302 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9303 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9304 |  | 
|  | 9305 | if test -z "$with_doc_strings" | 
|  | 9306 | then with_doc_strings="yes" | 
|  | 9307 | fi | 
|  | 9308 | if test "$with_doc_strings" != "no" | 
|  | 9309 | then | 
|  | 9310 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9311 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9312 |  | 
|  | 9313 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
|  | 9315 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9316 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9317 | # Check for Python-specific malloc support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 | 
|  | 9319 | $as_echo_n "checking for --with-tsc... " >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9320 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9321 | # Check whether --with-tsc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9322 | if test "${with_tsc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9323 | withval=$with_tsc; | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9324 | if test "$withval" != no | 
|  | 9325 | then | 
|  | 9326 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9327 | $as_echo "#define WITH_TSC 1" >>confdefs.h | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9328 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9330 | $as_echo "yes" >&6; } | 
|  | 9331 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9332 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9333 | fi | 
|  | 9334 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9336 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9337 | fi | 
|  | 9338 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9339 |  | 
|  | 9340 | # Check for Python-specific malloc support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
|  | 9342 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9343 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9344 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9345 | if test "${with_pymalloc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9346 | withval=$with_pymalloc; | 
|  | 9347 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9348 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9349 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9350 | if test -z "$with_pymalloc" | 
|  | 9351 | then with_pymalloc="yes" | 
|  | 9352 | fi | 
|  | 9353 | if test "$with_pymalloc" != "no" | 
|  | 9354 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9355 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9356 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9357 |  | 
|  | 9358 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
|  | 9360 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9361 |  | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9362 | # Check for Valgrind support | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
|  | 9364 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9365 |  | 
|  | 9366 | # Check whether --with-valgrind was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9367 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9368 | withval=$with_valgrind; | 
|  | 9369 | else | 
|  | 9370 | with_valgrind=no | 
|  | 9371 | fi | 
|  | 9372 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
|  | 9374 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9375 | if test "$with_valgrind" != no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9376 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" | 
|  | 9377 | if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then : | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9378 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9379 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9380 |  | 
|  | 9381 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9382 | as_fn_error "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9383 |  | 
|  | 9384 | fi | 
|  | 9385 |  | 
|  | 9386 |  | 
|  | 9387 | fi | 
|  | 9388 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9389 | # Check for --with-wctype-functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5 | 
|  | 9391 | $as_echo_n "checking for --with-wctype-functions... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9392 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9393 | # Check whether --with-wctype-functions was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9394 | if test "${with_wctype_functions+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9395 | withval=$with_wctype_functions; | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9396 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9397 | then | 
|  | 9398 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9399 | $as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9400 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 9402 | $as_echo "yes" >&6; } | 
|  | 9403 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9404 | $as_echo "no" >&6; } | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9405 | fi | 
|  | 9406 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9408 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9409 | fi | 
|  | 9410 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9411 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9412 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9413 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 9414 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9415 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9416 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
|  | 9417 | # 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] | 9418 | for ac_func in dlopen | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9419 | do : | 
|  | 9420 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
|  | 9421 | if test "x$ac_cv_func_dlopen" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9422 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9423 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9424 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9425 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9426 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 9427 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9428 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9429 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9430 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
|  | 9431 | # loading of modules. | 
|  | 9432 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
|  | 9434 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9435 | if test -z "$DYNLOADFILE" | 
|  | 9436 | then | 
|  | 9437 | case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 9438 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
|  | 9439 | if test "$ac_cv_func_dlopen" = yes | 
|  | 9440 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 9441 | else DYNLOADFILE="dynload_aix.o" | 
|  | 9442 | fi | 
|  | 9443 | ;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9444 | BeOS*) DYNLOADFILE="dynload_beos.o";; | 
|  | 9445 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 9446 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
|  | 9447 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9448 | atheos*) DYNLOADFILE="dynload_atheos.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9449 | *) | 
|  | 9450 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
|  | 9451 | # out any dynamic loading | 
|  | 9452 | if test "$ac_cv_func_dlopen" = yes | 
|  | 9453 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 9454 | else DYNLOADFILE="dynload_stub.o" | 
|  | 9455 | fi | 
|  | 9456 | ;; | 
|  | 9457 | esac | 
|  | 9458 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
|  | 9460 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9461 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
|  | 9462 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9463 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9464 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9465 |  | 
|  | 9466 | fi | 
|  | 9467 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9468 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
|  | 9469 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9470 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
|  | 9472 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9473 | if test -z "$MACHDEP_OBJS" | 
|  | 9474 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9475 | MACHDEP_OBJS=$extra_machdep_objs | 
|  | 9476 | else | 
|  | 9477 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9478 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 | 
|  | 9480 | $as_echo "MACHDEP_OBJS" >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9481 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9482 | # checks for library functions | 
| Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 9483 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ | 
|  | 9484 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ | 
| Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 9485 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 9486 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 9487 | initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \ | 
| Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 9488 | mremap nice pathconf pause plock poll pthread_init \ | 
| Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 9489 | putenv readlink realpath \ | 
| Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 9490 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ | 
|  | 9491 | setgid \ | 
| Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 9492 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ | 
| Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 9493 | setlocale setregid setreuid setresuid setresgid \ | 
|  | 9494 | setsid setpgid setpgrp setuid setvbuf snprintf \ | 
| Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 9495 | sigaction siginterrupt sigrelse strftime \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 9496 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 9497 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9498 | do : | 
|  | 9499 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 9500 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
|  | 9501 | eval as_val=\$$as_ac_var | 
|  | 9502 | if test "x$as_val" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9503 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9504 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9505 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9506 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9507 | fi | 
|  | 9508 | done | 
|  | 9509 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9510 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9511 | # For some functions, having a definition is not sufficient, since | 
|  | 9512 | # we want to take their address. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
|  | 9514 | $as_echo_n "checking for chroot... " >&6; } | 
|  | 9515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9516 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9517 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9518 | int | 
|  | 9519 | main () | 
|  | 9520 | { | 
|  | 9521 | void *x=chroot | 
|  | 9522 | ; | 
|  | 9523 | return 0; | 
|  | 9524 | } | 
|  | 9525 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9526 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9527 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9528 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9529 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9531 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9532 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9534 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9535 |  | 
|  | 9536 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
|  | 9539 | $as_echo_n "checking for link... " >&6; } | 
|  | 9540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9541 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9542 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9543 | int | 
|  | 9544 | main () | 
|  | 9545 | { | 
|  | 9546 | void *x=link | 
|  | 9547 | ; | 
|  | 9548 | return 0; | 
|  | 9549 | } | 
|  | 9550 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9551 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9552 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9553 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9554 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9556 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9557 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9559 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9560 |  | 
|  | 9561 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
|  | 9564 | $as_echo_n "checking for symlink... " >&6; } | 
|  | 9565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9566 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9567 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9568 | int | 
|  | 9569 | main () | 
|  | 9570 | { | 
|  | 9571 | void *x=symlink | 
|  | 9572 | ; | 
|  | 9573 | return 0; | 
|  | 9574 | } | 
|  | 9575 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9576 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9577 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9578 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9579 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9581 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9582 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9584 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9585 |  | 
|  | 9586 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
|  | 9589 | $as_echo_n "checking for fchdir... " >&6; } | 
|  | 9590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9591 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9592 | #include <unistd.h> | 
|  | 9593 | int | 
|  | 9594 | main () | 
|  | 9595 | { | 
|  | 9596 | void *x=fchdir | 
|  | 9597 | ; | 
|  | 9598 | return 0; | 
|  | 9599 | } | 
|  | 9600 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9601 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9602 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9603 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9604 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9606 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9607 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9609 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9610 |  | 
|  | 9611 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
|  | 9614 | $as_echo_n "checking for fsync... " >&6; } | 
|  | 9615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9616 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9617 | #include <unistd.h> | 
|  | 9618 | int | 
|  | 9619 | main () | 
|  | 9620 | { | 
|  | 9621 | void *x=fsync | 
|  | 9622 | ; | 
|  | 9623 | return 0; | 
|  | 9624 | } | 
|  | 9625 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9626 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9627 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9628 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9629 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9631 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9632 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9634 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9635 |  | 
|  | 9636 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
|  | 9639 | $as_echo_n "checking for fdatasync... " >&6; } | 
|  | 9640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9641 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9642 | #include <unistd.h> | 
|  | 9643 | int | 
|  | 9644 | main () | 
|  | 9645 | { | 
|  | 9646 | void *x=fdatasync | 
|  | 9647 | ; | 
|  | 9648 | return 0; | 
|  | 9649 | } | 
|  | 9650 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9651 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9652 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9653 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9654 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9656 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9657 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9659 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9660 |  | 
|  | 9661 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
|  | 9664 | $as_echo_n "checking for epoll... " >&6; } | 
|  | 9665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9666 | /* end confdefs.h.  */ | 
|  | 9667 | #include <sys/epoll.h> | 
|  | 9668 | int | 
|  | 9669 | main () | 
|  | 9670 | { | 
|  | 9671 | void *x=epoll_create | 
|  | 9672 | ; | 
|  | 9673 | return 0; | 
|  | 9674 | } | 
|  | 9675 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9676 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9677 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9678 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9679 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9681 | $as_echo "yes" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9682 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9684 | $as_echo "no" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9685 |  | 
|  | 9686 | fi | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
|  | 9689 | $as_echo_n "checking for kqueue... " >&6; } | 
|  | 9690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9691 | /* end confdefs.h.  */ | 
|  | 9692 |  | 
|  | 9693 | #include <sys/types.h> | 
|  | 9694 | #include <sys/event.h> | 
|  | 9695 |  | 
|  | 9696 | int | 
|  | 9697 | main () | 
|  | 9698 | { | 
|  | 9699 | int x=kqueue() | 
|  | 9700 | ; | 
|  | 9701 | return 0; | 
|  | 9702 | } | 
|  | 9703 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9704 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9705 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9706 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9707 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9709 | $as_echo "yes" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9710 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9712 | $as_echo "no" >&6; } | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9713 |  | 
|  | 9714 | fi | 
| Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9715 | 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] | 9716 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
|  | 9717 | # functions ctermid_r, setgroups in the library, but no prototype | 
|  | 9718 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
|  | 9719 | # address to avoid compiler warnings and potential miscompilations | 
|  | 9720 | # because of the missing prototypes. | 
|  | 9721 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
|  | 9723 | $as_echo_n "checking for ctermid_r... " >&6; } | 
|  | 9724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9725 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9726 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9727 | #include <stdio.h> | 
|  | 9728 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9729 | int | 
|  | 9730 | main () | 
|  | 9731 | { | 
|  | 9732 | void* p = ctermid_r | 
|  | 9733 | ; | 
|  | 9734 | return 0; | 
|  | 9735 | } | 
|  | 9736 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9737 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9738 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9739 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9740 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9742 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9743 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9745 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9746 |  | 
|  | 9747 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 9749 |  | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
|  | 9751 | $as_echo_n "checking for flock declaration... " >&6; } | 
|  | 9752 | if test "${ac_cv_flock_decl+set}" = set; then : | 
|  | 9753 | $as_echo_n "(cached) " >&6 | 
|  | 9754 | else | 
|  | 9755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9756 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9757 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9758 | int | 
|  | 9759 | main () | 
|  | 9760 | { | 
|  | 9761 | void* p = flock | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9762 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9763 | ; | 
|  | 9764 | return 0; | 
|  | 9765 | } | 
|  | 9766 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9767 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9768 | ac_cv_flock_decl=yes | 
|  | 9769 | else | 
|  | 9770 | ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9771 |  | 
|  | 9772 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 9774 |  | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9775 | fi | 
|  | 9776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
|  | 9777 | $as_echo "$ac_cv_flock_decl" >&6; } | 
|  | 9778 | if test "x${ac_cv_flock_decl}" = xyes; then | 
|  | 9779 | for ac_func in flock | 
|  | 9780 | do : | 
|  | 9781 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
|  | 9782 | if test "x$ac_cv_func_flock" = x""yes; then : | 
|  | 9783 | cat >>confdefs.h <<_ACEOF | 
|  | 9784 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 9785 | _ACEOF | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9786 |  | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 9787 | else | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 9789 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
|  | 9790 | if test "${ac_cv_lib_bsd_flock+set}" = set; then : | 
|  | 9791 | $as_echo_n "(cached) " >&6 | 
|  | 9792 | else | 
|  | 9793 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9794 | LIBS="-lbsd  $LIBS" | 
|  | 9795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9796 | /* end confdefs.h.  */ | 
|  | 9797 |  | 
|  | 9798 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9799 | Use char because int might match the return type of a GCC | 
|  | 9800 | builtin and then its argument prototype would still apply.  */ | 
|  | 9801 | #ifdef __cplusplus | 
|  | 9802 | extern "C" | 
|  | 9803 | #endif | 
|  | 9804 | char flock (); | 
|  | 9805 | int | 
|  | 9806 | main () | 
|  | 9807 | { | 
|  | 9808 | return flock (); | 
|  | 9809 | ; | 
|  | 9810 | return 0; | 
|  | 9811 | } | 
|  | 9812 | _ACEOF | 
|  | 9813 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 9814 | ac_cv_lib_bsd_flock=yes | 
|  | 9815 | else | 
|  | 9816 | ac_cv_lib_bsd_flock=no | 
|  | 9817 | fi | 
|  | 9818 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9819 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9820 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9821 | fi | 
|  | 9822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
|  | 9823 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
|  | 9824 | if test "x$ac_cv_lib_bsd_flock" = x""yes; then : | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9825 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 9826 |  | 
|  | 9827 |  | 
|  | 9828 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
|  | 9829 |  | 
|  | 9830 |  | 
|  | 9831 | fi | 
|  | 9832 |  | 
|  | 9833 |  | 
|  | 9834 | fi | 
| Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9835 | done | 
|  | 9836 |  | 
| Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 9837 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9838 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
|  | 9840 | $as_echo_n "checking for getpagesize... " >&6; } | 
|  | 9841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9842 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9843 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9844 | #include <unistd.h> | 
|  | 9845 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9846 | int | 
|  | 9847 | main () | 
|  | 9848 | { | 
|  | 9849 | void* p = getpagesize | 
|  | 9850 | ; | 
|  | 9851 | return 0; | 
|  | 9852 | } | 
|  | 9853 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9854 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9855 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9856 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9857 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9859 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9860 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9862 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9863 |  | 
|  | 9864 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9865 | 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] | 9866 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9867 | for ac_prog in true | 
|  | 9868 | do | 
|  | 9869 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 9870 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 9872 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 9873 | if test "${ac_cv_prog_TRUE+set}" = set; then : | 
|  | 9874 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9875 | else | 
|  | 9876 | if test -n "$TRUE"; then | 
|  | 9877 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
|  | 9878 | else | 
|  | 9879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9880 | for as_dir in $PATH | 
|  | 9881 | do | 
|  | 9882 | IFS=$as_save_IFS | 
|  | 9883 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9884 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9885 | 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] | 9886 | ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9887 | $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] | 9888 | break 2 | 
|  | 9889 | fi | 
|  | 9890 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9891 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9892 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9893 |  | 
|  | 9894 | fi | 
|  | 9895 | fi | 
|  | 9896 | TRUE=$ac_cv_prog_TRUE | 
|  | 9897 | if test -n "$TRUE"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
|  | 9899 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9900 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9902 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9903 | fi | 
|  | 9904 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9905 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9906 | test -n "$TRUE" && break | 
|  | 9907 | done | 
|  | 9908 | test -n "$TRUE" || TRUE="/bin/true" | 
|  | 9909 |  | 
|  | 9910 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
|  | 9912 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
|  | 9913 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then : | 
|  | 9914 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9915 | else | 
|  | 9916 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9917 | LIBS="-lc  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9919 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9920 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9921 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9922 | Use char because int might match the return type of a GCC | 
|  | 9923 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9924 | #ifdef __cplusplus | 
|  | 9925 | extern "C" | 
|  | 9926 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9927 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9928 | int | 
|  | 9929 | main () | 
|  | 9930 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9931 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9932 | ; | 
|  | 9933 | return 0; | 
|  | 9934 | } | 
|  | 9935 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9936 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9937 | ac_cv_lib_c_inet_aton=yes | 
|  | 9938 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9939 | ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9940 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9941 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9942 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9943 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9944 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
|  | 9946 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
|  | 9947 | 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] | 9948 | $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9949 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
|  | 9951 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
|  | 9952 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then : | 
|  | 9953 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9954 | else | 
|  | 9955 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9956 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9958 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9959 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9960 | /* Override any GCC internal prototype to avoid an error. | 
|  | 9961 | Use char because int might match the return type of a GCC | 
|  | 9962 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9963 | #ifdef __cplusplus | 
|  | 9964 | extern "C" | 
|  | 9965 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9966 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9967 | int | 
|  | 9968 | main () | 
|  | 9969 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9970 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9971 | ; | 
|  | 9972 | return 0; | 
|  | 9973 | } | 
|  | 9974 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9975 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9976 | ac_cv_lib_resolv_inet_aton=yes | 
|  | 9977 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9978 | ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9979 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9980 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9981 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9982 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9983 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
|  | 9985 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
|  | 9986 | 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] | 9987 | cat >>confdefs.h <<_ACEOF | 
|  | 9988 | #define HAVE_LIBRESOLV 1 | 
|  | 9989 | _ACEOF | 
|  | 9990 |  | 
|  | 9991 | LIBS="-lresolv $LIBS" | 
|  | 9992 |  | 
|  | 9993 | fi | 
|  | 9994 |  | 
|  | 9995 |  | 
|  | 9996 | fi | 
|  | 9997 |  | 
|  | 9998 |  | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 9999 | # On Tru64, chflags seems to be present, but calling it will | 
|  | 10000 | # exit Python | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
|  | 10002 | $as_echo_n "checking for chflags... " >&6; } | 
|  | 10003 | if test "${ac_cv_have_chflags+set}" = set; then : | 
|  | 10004 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10005 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10006 | if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10007 | ac_cv_have_chflags=cross | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10008 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10010 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10011 | [ | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10012 | #include <sys/stat.h> | 
|  | 10013 | #include <unistd.h> | 
|  | 10014 | int main(int argc, char*argv[]) | 
|  | 10015 | { | 
|  | 10016 | if(chflags(argv[0], 0) != 0) | 
|  | 10017 | return 1; | 
|  | 10018 | return 0; | 
|  | 10019 | } | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10020 | ] | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10021 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10022 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10023 | ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10024 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10025 | ac_cv_have_chflags=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10026 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10027 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 10028 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 10029 | fi | 
|  | 10030 |  | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10031 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10032 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
|  | 10034 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10035 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10036 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
|  | 10037 | if test "x$ac_cv_func_chflags" = x""yes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10038 | ac_cv_have_chflags="yes" | 
|  | 10039 | else | 
|  | 10040 | ac_cv_have_chflags="no" | 
|  | 10041 | fi | 
|  | 10042 |  | 
|  | 10043 | fi | 
|  | 10044 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10045 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10046 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10047 |  | 
|  | 10048 | fi | 
|  | 10049 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
|  | 10051 | $as_echo_n "checking for lchflags... " >&6; } | 
|  | 10052 | if test "${ac_cv_have_lchflags+set}" = set; then : | 
|  | 10053 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10054 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10055 | if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10056 | ac_cv_have_lchflags=cross | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10057 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10059 | /* end confdefs.h.  */ | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10060 | [ | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10061 | #include <sys/stat.h> | 
|  | 10062 | #include <unistd.h> | 
|  | 10063 | int main(int argc, char*argv[]) | 
|  | 10064 | { | 
|  | 10065 | if(lchflags(argv[0], 0) != 0) | 
|  | 10066 | return 1; | 
|  | 10067 | return 0; | 
|  | 10068 | } | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10069 | ] | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10070 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10071 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10072 | ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10073 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10074 | ac_cv_have_lchflags=no | 
| Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10075 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10076 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 10077 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10078 | fi | 
|  | 10079 |  | 
|  | 10080 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10081 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
|  | 10083 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10084 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10085 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
|  | 10086 | if test "x$ac_cv_func_lchflags" = x""yes; then : | 
| Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10087 | ac_cv_have_lchflags="yes" | 
|  | 10088 | else | 
|  | 10089 | ac_cv_have_lchflags="no" | 
|  | 10090 | fi | 
|  | 10091 |  | 
|  | 10092 | fi | 
|  | 10093 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10094 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10095 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10096 |  | 
|  | 10097 | fi | 
|  | 10098 |  | 
| Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 10099 | case $ac_sys_system/$ac_sys_release in | 
|  | 10100 | Darwin/*) | 
|  | 10101 | _CUR_CFLAGS="${CFLAGS}" | 
|  | 10102 | _CUR_LDFLAGS="${LDFLAGS}" | 
|  | 10103 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
|  | 10104 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
|  | 10105 | ;; | 
|  | 10106 | esac | 
|  | 10107 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
|  | 10109 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
|  | 10110 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then : | 
|  | 10111 | $as_echo_n "(cached) " >&6 | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10112 | else | 
|  | 10113 | ac_check_lib_save_LIBS=$LIBS | 
|  | 10114 | LIBS="-lz  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10116 | /* end confdefs.h.  */ | 
|  | 10117 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10118 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10119 | Use char because int might match the return type of a GCC | 
|  | 10120 | builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10121 | #ifdef __cplusplus | 
|  | 10122 | extern "C" | 
|  | 10123 | #endif | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10124 | char inflateCopy (); | 
|  | 10125 | int | 
|  | 10126 | main () | 
|  | 10127 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10128 | return inflateCopy (); | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10129 | ; | 
|  | 10130 | return 0; | 
|  | 10131 | } | 
|  | 10132 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10133 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10134 | ac_cv_lib_z_inflateCopy=yes | 
|  | 10135 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10136 | ac_cv_lib_z_inflateCopy=no | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10137 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10138 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10139 | conftest$ac_exeext conftest.$ac_ext | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10140 | LIBS=$ac_check_lib_save_LIBS | 
|  | 10141 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
|  | 10143 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
|  | 10144 | if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then : | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10145 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10146 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10147 |  | 
|  | 10148 | fi | 
|  | 10149 |  | 
|  | 10150 |  | 
| Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 10151 | case $ac_sys_system/$ac_sys_release in | 
|  | 10152 | Darwin/*) | 
|  | 10153 | CFLAGS="${_CUR_CFLAGS}" | 
|  | 10154 | LDFLAGS="${_CUR_LDFLAGS}" | 
|  | 10155 | ;; | 
|  | 10156 | esac | 
|  | 10157 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
|  | 10159 | $as_echo_n "checking for hstrerror... " >&6; } | 
|  | 10160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10161 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10162 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10163 | #include <netdb.h> | 
|  | 10164 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10165 | int | 
|  | 10166 | main () | 
|  | 10167 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10168 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10169 | ; | 
|  | 10170 | return 0; | 
|  | 10171 | } | 
|  | 10172 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10173 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10174 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10175 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10176 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10178 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10179 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10181 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10182 |  | 
|  | 10183 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10184 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10185 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10186 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
|  | 10188 | $as_echo_n "checking for inet_aton... " >&6; } | 
|  | 10189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10190 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10191 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10192 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10193 | #include <sys/socket.h> | 
|  | 10194 | #include <netinet/in.h> | 
|  | 10195 | #include <arpa/inet.h> | 
|  | 10196 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10197 | int | 
|  | 10198 | main () | 
|  | 10199 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10200 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10201 | ; | 
|  | 10202 | return 0; | 
|  | 10203 | } | 
|  | 10204 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10205 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10206 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10207 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10208 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10210 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10211 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10213 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10214 |  | 
|  | 10215 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10216 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10217 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10218 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
|  | 10220 | $as_echo_n "checking for inet_pton... " >&6; } | 
|  | 10221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10222 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10223 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10224 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10225 | #include <sys/socket.h> | 
|  | 10226 | #include <netinet/in.h> | 
|  | 10227 | #include <arpa/inet.h> | 
|  | 10228 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10229 | int | 
|  | 10230 | main () | 
|  | 10231 | { | 
|  | 10232 | void* p = inet_pton | 
|  | 10233 | ; | 
|  | 10234 | return 0; | 
|  | 10235 | } | 
|  | 10236 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10237 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10238 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10239 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10240 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10242 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10243 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10245 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10246 |  | 
|  | 10247 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10248 | 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] | 10249 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10250 | # On some systems, setgroups is in unistd.h, on others, in grp.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
|  | 10252 | $as_echo_n "checking for setgroups... " >&6; } | 
|  | 10253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10254 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10255 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10256 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10257 | #ifdef HAVE_GRP_H | 
|  | 10258 | #include <grp.h> | 
|  | 10259 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10260 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10261 | int | 
|  | 10262 | main () | 
|  | 10263 | { | 
|  | 10264 | void* p = setgroups | 
|  | 10265 | ; | 
|  | 10266 | return 0; | 
|  | 10267 | } | 
|  | 10268 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10269 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10270 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10271 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10272 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10274 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10275 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10277 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10278 |  | 
|  | 10279 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10280 | 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] | 10281 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10282 | # check for openpty and forkpty | 
|  | 10283 |  | 
|  | 10284 | for ac_func in openpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10285 | do : | 
|  | 10286 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
|  | 10287 | if test "x$ac_cv_func_openpty" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10288 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10289 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10290 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10291 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10292 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
|  | 10294 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
|  | 10295 | if test "${ac_cv_lib_util_openpty+set}" = set; then : | 
|  | 10296 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10297 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10298 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10299 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10301 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10302 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10303 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10304 | Use char because int might match the return type of a GCC | 
|  | 10305 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10306 | #ifdef __cplusplus | 
|  | 10307 | extern "C" | 
|  | 10308 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10309 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10310 | int | 
|  | 10311 | main () | 
|  | 10312 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10313 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10314 | ; | 
|  | 10315 | return 0; | 
|  | 10316 | } | 
|  | 10317 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10318 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10319 | ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10320 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10321 | ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10322 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10323 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10324 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10325 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10326 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
|  | 10328 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
|  | 10329 | if test "x$ac_cv_lib_util_openpty" = x""yes; then : | 
|  | 10330 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10331 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10332 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
|  | 10334 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
|  | 10335 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then : | 
|  | 10336 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10337 | else | 
|  | 10338 | ac_check_lib_save_LIBS=$LIBS | 
|  | 10339 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10341 | /* end confdefs.h.  */ | 
|  | 10342 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10343 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10344 | Use char because int might match the return type of a GCC | 
|  | 10345 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10346 | #ifdef __cplusplus | 
|  | 10347 | extern "C" | 
|  | 10348 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10349 | char openpty (); | 
|  | 10350 | int | 
|  | 10351 | main () | 
|  | 10352 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10353 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10354 | ; | 
|  | 10355 | return 0; | 
|  | 10356 | } | 
|  | 10357 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10358 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10359 | ac_cv_lib_bsd_openpty=yes | 
|  | 10360 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10361 | ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10362 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10363 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10364 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10365 | LIBS=$ac_check_lib_save_LIBS | 
|  | 10366 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
|  | 10368 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
|  | 10369 | if test "x$ac_cv_lib_bsd_openpty" = x""yes; then : | 
|  | 10370 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10371 | LIBS="$LIBS -lbsd" | 
|  | 10372 | fi | 
|  | 10373 |  | 
|  | 10374 |  | 
|  | 10375 | fi | 
|  | 10376 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10377 |  | 
|  | 10378 | fi | 
|  | 10379 | done | 
|  | 10380 |  | 
|  | 10381 | for ac_func in forkpty | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10382 | do : | 
|  | 10383 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
|  | 10384 | if test "x$ac_cv_func_forkpty" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10385 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10386 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10387 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10388 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10389 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
|  | 10391 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
|  | 10392 | if test "${ac_cv_lib_util_forkpty+set}" = set; then : | 
|  | 10393 | $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10394 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10395 | ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10396 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10398 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10399 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10400 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10401 | Use char because int might match the return type of a GCC | 
|  | 10402 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10403 | #ifdef __cplusplus | 
|  | 10404 | extern "C" | 
|  | 10405 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10406 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10407 | int | 
|  | 10408 | main () | 
|  | 10409 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10410 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10411 | ; | 
|  | 10412 | return 0; | 
|  | 10413 | } | 
|  | 10414 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10415 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10416 | ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10417 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10418 | ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10419 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10420 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10421 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10422 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10423 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
|  | 10425 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
|  | 10426 | if test "x$ac_cv_lib_util_forkpty" = x""yes; then : | 
|  | 10427 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10428 | LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10429 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
|  | 10431 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
|  | 10432 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then : | 
|  | 10433 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10434 | else | 
|  | 10435 | ac_check_lib_save_LIBS=$LIBS | 
|  | 10436 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10438 | /* end confdefs.h.  */ | 
|  | 10439 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10440 | /* Override any GCC internal prototype to avoid an error. | 
|  | 10441 | Use char because int might match the return type of a GCC | 
|  | 10442 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10443 | #ifdef __cplusplus | 
|  | 10444 | extern "C" | 
|  | 10445 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10446 | char forkpty (); | 
|  | 10447 | int | 
|  | 10448 | main () | 
|  | 10449 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10450 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10451 | ; | 
|  | 10452 | return 0; | 
|  | 10453 | } | 
|  | 10454 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10455 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10456 | ac_cv_lib_bsd_forkpty=yes | 
|  | 10457 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10458 | ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10459 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10460 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10461 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10462 | LIBS=$ac_check_lib_save_LIBS | 
|  | 10463 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
|  | 10465 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
|  | 10466 | if test "x$ac_cv_lib_bsd_forkpty" = x""yes; then : | 
|  | 10467 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10468 | LIBS="$LIBS -lbsd" | 
|  | 10469 | fi | 
|  | 10470 |  | 
|  | 10471 |  | 
|  | 10472 | fi | 
|  | 10473 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10474 |  | 
|  | 10475 | fi | 
|  | 10476 | done | 
|  | 10477 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10478 |  | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10479 | # Stuff for expat. | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10480 | for ac_func in memmove | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10481 | do : | 
|  | 10482 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | 
|  | 10483 | if test "x$ac_cv_func_memmove" = x""yes; then : | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10484 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10485 | #define HAVE_MEMMOVE 1 | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10486 | _ACEOF | 
|  | 10487 |  | 
|  | 10488 | fi | 
|  | 10489 | done | 
|  | 10490 |  | 
|  | 10491 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10492 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10493 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10494 | do : | 
|  | 10495 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 10496 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
|  | 10497 | eval as_val=\$$as_ac_var | 
|  | 10498 | if test "x$as_val" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10499 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10500 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10501 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10502 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10503 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10504 | done | 
|  | 10505 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10506 |  | 
| Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10507 | for ac_func in dup2 getcwd strdup | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10508 | do : | 
|  | 10509 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 10510 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
|  | 10511 | eval as_val=\$$as_ac_var | 
|  | 10512 | if test "x$as_val" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10513 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10514 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10515 | _ACEOF | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10516 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10517 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10518 | case " $LIBOBJS " in | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10519 | *" $ac_func.$ac_objext "* ) ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10520 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | 
|  | 10521 | ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10522 | esac | 
|  | 10523 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10524 | fi | 
|  | 10525 | done | 
|  | 10526 |  | 
|  | 10527 |  | 
|  | 10528 | for ac_func in getpgrp | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10529 | do : | 
|  | 10530 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
|  | 10531 | if test "x$ac_cv_func_getpgrp" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10532 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10533 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10534 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10536 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10537 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10538 | int | 
|  | 10539 | main () | 
|  | 10540 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10541 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10542 | ; | 
|  | 10543 | return 0; | 
|  | 10544 | } | 
|  | 10545 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10546 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10547 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10548 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10549 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10550 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10551 | 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] | 10552 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10553 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10554 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10555 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10556 | for ac_func in setpgrp | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10557 | do : | 
|  | 10558 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
|  | 10559 | if test "x$ac_cv_func_setpgrp" = x""yes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10560 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10561 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10562 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10564 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10565 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10566 | int | 
|  | 10567 | main () | 
|  | 10568 | { | 
|  | 10569 | setpgrp(0,0); | 
|  | 10570 | ; | 
|  | 10571 | return 0; | 
|  | 10572 | } | 
|  | 10573 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10574 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10575 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10576 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10577 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10578 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10580 |  | 
|  | 10581 | fi | 
|  | 10582 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10583 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10584 | for ac_func in gettimeofday | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10585 | do : | 
|  | 10586 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
|  | 10587 | if test "x$ac_cv_func_gettimeofday" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10588 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10589 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10590 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10592 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10593 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10594 | int | 
|  | 10595 | main () | 
|  | 10596 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10597 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10598 | ; | 
|  | 10599 | return 0; | 
|  | 10600 | } | 
|  | 10601 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10602 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 10603 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10604 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10605 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10606 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10607 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10608 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10609 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10610 | 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] | 10611 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10612 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10613 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10614 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10615 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
|  | 10617 | $as_echo_n "checking for major... " >&6; } | 
|  | 10618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10619 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10620 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10621 | #if defined(MAJOR_IN_MKDEV) | 
|  | 10622 | #include <sys/mkdev.h> | 
|  | 10623 | #elif defined(MAJOR_IN_SYSMACROS) | 
|  | 10624 | #include <sys/sysmacros.h> | 
|  | 10625 | #else | 
|  | 10626 | #include <sys/types.h> | 
|  | 10627 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10628 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10629 | int | 
|  | 10630 | main () | 
|  | 10631 | { | 
|  | 10632 |  | 
|  | 10633 | makedev(major(0),minor(0)); | 
|  | 10634 |  | 
|  | 10635 | ; | 
|  | 10636 | return 0; | 
|  | 10637 | } | 
|  | 10638 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10639 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10640 |  | 
|  | 10641 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10642 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10643 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 10645 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10646 |  | 
|  | 10647 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10648 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10650 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10651 |  | 
|  | 10652 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10653 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10654 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10655 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10656 | # 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] | 10657 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
|  | 10659 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
|  | 10660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10661 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10662 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10663 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10664 | #include <sys/socket.h> | 
|  | 10665 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10666 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10667 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10668 | int | 
|  | 10669 | main () | 
|  | 10670 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10671 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10672 | ; | 
|  | 10673 | return 0; | 
|  | 10674 | } | 
|  | 10675 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10676 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10677 | have_getaddrinfo=yes | 
|  | 10678 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10679 | have_getaddrinfo=no | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10680 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10681 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10682 | conftest$ac_exeext conftest.$ac_ext | 
|  | 10683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
|  | 10684 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10685 | if test $have_getaddrinfo = yes | 
|  | 10686 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
|  | 10688 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
|  | 10689 | if test "${ac_cv_buggy_getaddrinfo+set}" = set; then : | 
|  | 10690 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10691 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10692 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10693 | ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10694 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10696 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10697 |  | 
|  | 10698 | #include <sys/types.h> | 
|  | 10699 | #include <netdb.h> | 
|  | 10700 | #include <string.h> | 
|  | 10701 | #include <sys/socket.h> | 
|  | 10702 | #include <netinet/in.h> | 
|  | 10703 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10704 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10705 | { | 
|  | 10706 | int passive, gaierr, inet4 = 0, inet6 = 0; | 
|  | 10707 | struct addrinfo hints, *ai, *aitop; | 
|  | 10708 | char straddr[INET6_ADDRSTRLEN], strport[16]; | 
|  | 10709 |  | 
|  | 10710 | for (passive = 0; passive <= 1; passive++) { | 
|  | 10711 | memset(&hints, 0, sizeof(hints)); | 
|  | 10712 | hints.ai_family = AF_UNSPEC; | 
|  | 10713 | hints.ai_flags = passive ? AI_PASSIVE : 0; | 
|  | 10714 | hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 10715 | hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10716 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
|  | 10717 | (void)gai_strerror(gaierr); | 
|  | 10718 | goto bad; | 
|  | 10719 | } | 
|  | 10720 | for (ai = aitop; ai; ai = ai->ai_next) { | 
|  | 10721 | if (ai->ai_addr == NULL || | 
|  | 10722 | ai->ai_addrlen == 0 || | 
|  | 10723 | getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
|  | 10724 | straddr, sizeof(straddr), strport, sizeof(strport), | 
|  | 10725 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
|  | 10726 | goto bad; | 
|  | 10727 | } | 
|  | 10728 | switch (ai->ai_family) { | 
|  | 10729 | case AF_INET: | 
|  | 10730 | if (strcmp(strport, "54321") != 0) { | 
|  | 10731 | goto bad; | 
|  | 10732 | } | 
|  | 10733 | if (passive) { | 
|  | 10734 | if (strcmp(straddr, "0.0.0.0") != 0) { | 
|  | 10735 | goto bad; | 
|  | 10736 | } | 
|  | 10737 | } else { | 
|  | 10738 | if (strcmp(straddr, "127.0.0.1") != 0) { | 
|  | 10739 | goto bad; | 
|  | 10740 | } | 
|  | 10741 | } | 
|  | 10742 | inet4++; | 
|  | 10743 | break; | 
|  | 10744 | case AF_INET6: | 
|  | 10745 | if (strcmp(strport, "54321") != 0) { | 
|  | 10746 | goto bad; | 
|  | 10747 | } | 
|  | 10748 | if (passive) { | 
|  | 10749 | if (strcmp(straddr, "::") != 0) { | 
|  | 10750 | goto bad; | 
|  | 10751 | } | 
|  | 10752 | } else { | 
|  | 10753 | if (strcmp(straddr, "::1") != 0) { | 
|  | 10754 | goto bad; | 
|  | 10755 | } | 
|  | 10756 | } | 
|  | 10757 | inet6++; | 
|  | 10758 | break; | 
|  | 10759 | case AF_UNSPEC: | 
|  | 10760 | goto bad; | 
|  | 10761 | break; | 
|  | 10762 | default: | 
|  | 10763 | /* another family support? */ | 
|  | 10764 | break; | 
|  | 10765 | } | 
|  | 10766 | } | 
|  | 10767 | } | 
|  | 10768 |  | 
|  | 10769 | if (!(inet4 == 0 || inet4 == 2)) | 
|  | 10770 | goto bad; | 
|  | 10771 | if (!(inet6 == 0 || inet6 == 2)) | 
|  | 10772 | goto bad; | 
|  | 10773 |  | 
|  | 10774 | if (aitop) | 
|  | 10775 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10776 | return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10777 |  | 
|  | 10778 | bad: | 
|  | 10779 | if (aitop) | 
|  | 10780 | freeaddrinfo(aitop); | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10781 | return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10782 | } | 
|  | 10783 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10784 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10785 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10786 | ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10787 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10788 | ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10789 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10790 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 10791 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10792 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10793 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10794 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10795 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10796 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10797 |  | 
| Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 10798 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10799 | then | 
|  | 10800 | if test $ipv6 = yes | 
|  | 10801 | then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10802 | echo 'Fatal: You must get working getaddrinfo() function.' | 
|  | 10803 | echo '       or you can specify "--disable-ipv6"'. | 
|  | 10804 | exit 1 | 
|  | 10805 | fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10806 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10807 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10808 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10809 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10810 | fi | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10811 | for ac_func in getnameinfo | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10812 | do : | 
|  | 10813 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
|  | 10814 | if test "x$ac_cv_func_getnameinfo" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10815 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10816 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10817 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10818 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10819 | fi | 
|  | 10820 | done | 
|  | 10821 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10822 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10823 | # checks for structures | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
|  | 10825 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 
|  | 10826 | if test "${ac_cv_header_time+set}" = set; then : | 
|  | 10827 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10828 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10830 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10831 | #include <sys/types.h> | 
|  | 10832 | #include <sys/time.h> | 
|  | 10833 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10834 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10835 | int | 
|  | 10836 | main () | 
|  | 10837 | { | 
|  | 10838 | if ((struct tm *) 0) | 
|  | 10839 | return 0; | 
|  | 10840 | ; | 
|  | 10841 | return 0; | 
|  | 10842 | } | 
|  | 10843 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10844 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10845 | ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10846 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10847 | ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10848 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10850 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
|  | 10852 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10853 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10854 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10855 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10856 |  | 
|  | 10857 | fi | 
|  | 10858 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
|  | 10860 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 
|  | 10861 | if test "${ac_cv_struct_tm+set}" = set; then : | 
|  | 10862 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10863 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10865 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10866 | #include <sys/types.h> | 
|  | 10867 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10868 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10869 | int | 
|  | 10870 | main () | 
|  | 10871 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10872 | struct tm tm; | 
|  | 10873 | int *p = &tm.tm_sec; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10874 | return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10875 | ; | 
|  | 10876 | return 0; | 
|  | 10877 | } | 
|  | 10878 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10879 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10880 | ac_cv_struct_tm=time.h | 
|  | 10881 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10882 | ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10883 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10885 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
|  | 10887 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10888 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10889 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10890 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10891 |  | 
|  | 10892 | fi | 
|  | 10893 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10894 | 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] | 10895 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10896 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10897 | " | 
|  | 10898 | 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] | 10899 |  | 
|  | 10900 | cat >>confdefs.h <<_ACEOF | 
|  | 10901 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 10902 | _ACEOF | 
|  | 10903 |  | 
|  | 10904 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10905 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10906 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10907 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 10908 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10909 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10910 |  | 
|  | 10911 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10912 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 10913 | " | 
|  | 10914 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : | 
|  | 10915 | ac_have_decl=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10916 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10917 | ac_have_decl=0 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10918 | fi | 
|  | 10919 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10920 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10921 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10922 | _ACEOF | 
|  | 10923 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 10925 | $as_echo_n "checking for tzname... " >&6; } | 
|  | 10926 | if test "${ac_cv_var_tzname+set}" = set; then : | 
|  | 10927 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10928 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10930 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10931 | #include <time.h> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10932 | #if !HAVE_DECL_TZNAME | 
|  | 10933 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10934 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10935 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10936 | int | 
|  | 10937 | main () | 
|  | 10938 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10939 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10940 | ; | 
|  | 10941 | return 0; | 
|  | 10942 | } | 
|  | 10943 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10944 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10945 | ac_cv_var_tzname=yes | 
|  | 10946 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10947 | ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10948 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10949 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 10950 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10951 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 10953 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10954 | if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10955 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10956 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10957 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10958 | fi | 
|  | 10959 | fi | 
|  | 10960 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10961 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | 
|  | 10962 | 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] | 10963 |  | 
|  | 10964 | cat >>confdefs.h <<_ACEOF | 
|  | 10965 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
|  | 10966 | _ACEOF | 
|  | 10967 |  | 
|  | 10968 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10969 | fi | 
|  | 10970 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10971 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | 
|  | 10972 | 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] | 10973 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10974 | cat >>confdefs.h <<_ACEOF | 
|  | 10975 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
|  | 10976 | _ACEOF | 
|  | 10977 |  | 
|  | 10978 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10979 | fi | 
|  | 10980 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10981 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" | 
|  | 10982 | 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] | 10983 |  | 
|  | 10984 | cat >>confdefs.h <<_ACEOF | 
|  | 10985 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
|  | 10986 | _ACEOF | 
|  | 10987 |  | 
|  | 10988 |  | 
|  | 10989 | fi | 
|  | 10990 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10991 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" | 
|  | 10992 | 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] | 10993 |  | 
|  | 10994 | cat >>confdefs.h <<_ACEOF | 
|  | 10995 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
|  | 10996 | _ACEOF | 
|  | 10997 |  | 
|  | 10998 |  | 
|  | 10999 | fi | 
|  | 11000 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11001 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" | 
|  | 11002 | 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] | 11003 |  | 
|  | 11004 | cat >>confdefs.h <<_ACEOF | 
|  | 11005 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
|  | 11006 | _ACEOF | 
|  | 11007 |  | 
|  | 11008 |  | 
|  | 11009 | fi | 
|  | 11010 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11011 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | 
|  | 11012 | 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] | 11013 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11014 | cat >>confdefs.h <<_ACEOF | 
|  | 11015 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
|  | 11016 | _ACEOF | 
|  | 11017 |  | 
|  | 11018 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11019 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11020 |  | 
|  | 11021 | else | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11022 | case " $LIBOBJS " in | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11023 | *" fileblocks.$ac_objext "* ) ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11024 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | 
|  | 11025 | ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11026 | esac | 
|  | 11027 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11028 | fi | 
|  | 11029 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11030 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11031 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
|  | 11033 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
|  | 11034 | if test "${ac_cv_header_time_altzone+set}" = set; then : | 
|  | 11035 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11036 | else | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11037 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11039 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11040 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11041 | int | 
|  | 11042 | main () | 
|  | 11043 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11044 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11045 | ; | 
|  | 11046 | return 0; | 
|  | 11047 | } | 
|  | 11048 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11049 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11050 | ac_cv_header_time_altzone=yes | 
|  | 11051 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11052 | ac_cv_header_time_altzone=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11053 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11055 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11056 | fi | 
|  | 11057 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
|  | 11059 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11060 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11061 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11062 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11063 |  | 
|  | 11064 | fi | 
|  | 11065 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11066 | was_it_defined=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
|  | 11068 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
|  | 11069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11070 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11071 |  | 
|  | 11072 | #include <sys/types.h> | 
|  | 11073 | #include <sys/select.h> | 
|  | 11074 | #include <sys/time.h> | 
|  | 11075 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11076 | int | 
|  | 11077 | main () | 
|  | 11078 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11079 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11080 | ; | 
|  | 11081 | return 0; | 
|  | 11082 | } | 
|  | 11083 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11084 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11085 |  | 
|  | 11086 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11087 | $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] | 11088 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11089 | was_it_defined=yes | 
|  | 11090 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11091 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
|  | 11094 | $as_echo "$was_it_defined" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11095 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
|  | 11097 | $as_echo_n "checking for addrinfo... " >&6; } | 
|  | 11098 | if test "${ac_cv_struct_addrinfo+set}" = set; then : | 
|  | 11099 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11100 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11102 | /* end confdefs.h.  */ | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11103 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11104 | int | 
|  | 11105 | main () | 
|  | 11106 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11107 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11108 | ; | 
|  | 11109 | return 0; | 
|  | 11110 | } | 
|  | 11111 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11112 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11113 | ac_cv_struct_addrinfo=yes | 
|  | 11114 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11115 | ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11116 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11118 | fi | 
|  | 11119 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
|  | 11121 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11122 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11123 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11124 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11125 |  | 
|  | 11126 | fi | 
|  | 11127 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
|  | 11129 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
|  | 11130 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then : | 
|  | 11131 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11132 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11134 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11135 |  | 
|  | 11136 | #		include <sys/types.h> | 
|  | 11137 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11138 | int | 
|  | 11139 | main () | 
|  | 11140 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11141 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11142 | ; | 
|  | 11143 | return 0; | 
|  | 11144 | } | 
|  | 11145 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11146 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11147 | ac_cv_struct_sockaddr_storage=yes | 
|  | 11148 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11149 | ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11150 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 11152 | fi | 
|  | 11153 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
|  | 11155 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11156 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11157 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11158 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11159 |  | 
|  | 11160 | fi | 
|  | 11161 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11162 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11163 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
|  | 11165 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
|  | 11166 | if test "${ac_cv_c_char_unsigned+set}" = set; then : | 
|  | 11167 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11168 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11170 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11171 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11172 | int | 
|  | 11173 | main () | 
|  | 11174 | { | 
|  | 11175 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
|  | 11176 | test_array [0] = 0 | 
|  | 11177 |  | 
|  | 11178 | ; | 
|  | 11179 | return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11180 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11181 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11182 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11183 | ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11184 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11185 | ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11186 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11188 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
|  | 11190 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11191 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11192 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11193 |  | 
|  | 11194 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11195 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
|  | 11197 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
|  | 11198 | if test "${ac_cv_c_const+set}" = set; then : | 
|  | 11199 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11200 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11202 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11203 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11204 | int | 
|  | 11205 | main () | 
|  | 11206 | { | 
|  | 11207 | /* FIXME: Include the comments suggested by Paul. */ | 
|  | 11208 | #ifndef __cplusplus | 
|  | 11209 | /* Ultrix mips cc rejects this.  */ | 
|  | 11210 | typedef int charset[2]; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11211 | const charset cs; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11212 | /* SunOS 4.1.1 cc rejects this.  */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11213 | char const *const *pcpcc; | 
|  | 11214 | char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11215 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
|  | 11216 | struct point {int x, y;}; | 
|  | 11217 | static struct point const zero = {0,0}; | 
|  | 11218 | /* AIX XL C 1.02.0.0 rejects this. | 
|  | 11219 | It does not let you subtract one const X* pointer from another in | 
|  | 11220 | an arm of an if-expression whose if-part is not a constant | 
|  | 11221 | expression */ | 
|  | 11222 | const char *g = "string"; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11223 | pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11224 | /* HPUX 7.0 cc rejects these. */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11225 | ++pcpcc; | 
|  | 11226 | ppc = (char**) pcpcc; | 
|  | 11227 | pcpcc = (char const *const *) ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11228 | { /* SCO 3.2v4 cc rejects this.  */ | 
|  | 11229 | char *t; | 
|  | 11230 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11231 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11232 | *t++ = 0; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11233 | if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11234 | } | 
|  | 11235 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
|  | 11236 | int x[] = {25, 17}; | 
|  | 11237 | const int *foo = &x[0]; | 
|  | 11238 | ++foo; | 
|  | 11239 | } | 
|  | 11240 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
|  | 11241 | typedef const int *iptr; | 
|  | 11242 | iptr p = 0; | 
|  | 11243 | ++p; | 
|  | 11244 | } | 
|  | 11245 | { /* AIX XL C 1.02.0.0 rejects this saying | 
|  | 11246 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
|  | 11247 | struct s { int j; const int *ap[3]; }; | 
|  | 11248 | struct s *b; b->j = 5; | 
|  | 11249 | } | 
|  | 11250 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
|  | 11251 | const int foo = 10; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11252 | if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11253 | } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11254 | return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11255 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11256 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11257 | ; | 
|  | 11258 | return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11259 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11260 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11261 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11262 | ac_cv_c_const=yes | 
|  | 11263 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11264 | ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11265 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11267 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
|  | 11269 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11270 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11271 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11272 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11273 |  | 
|  | 11274 | fi | 
|  | 11275 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11276 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11277 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
|  | 11279 | $as_echo_n "checking for working volatile... " >&6; } | 
|  | 11280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11281 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11282 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11283 | int | 
|  | 11284 | main () | 
|  | 11285 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11286 | volatile int x; x = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11287 | ; | 
|  | 11288 | return 0; | 
|  | 11289 | } | 
|  | 11290 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11291 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11292 | works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11293 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11294 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11295 | $as_echo "#define volatile /**/" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11296 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11297 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11298 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 11301 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11302 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11303 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
|  | 11305 | $as_echo_n "checking for working signed char... " >&6; } | 
|  | 11306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11307 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11308 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11309 | int | 
|  | 11310 | main () | 
|  | 11311 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11312 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11313 | ; | 
|  | 11314 | return 0; | 
|  | 11315 | } | 
|  | 11316 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11317 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11318 | works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11319 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11320 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11321 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11322 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11323 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11324 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 11327 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11328 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11329 | have_prototypes=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
|  | 11331 | $as_echo_n "checking for prototypes... " >&6; } | 
|  | 11332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11333 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11334 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11335 | int | 
|  | 11336 | main () | 
|  | 11337 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11338 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11339 | ; | 
|  | 11340 | return 0; | 
|  | 11341 | } | 
|  | 11342 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11343 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11344 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11345 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11346 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11347 | have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11348 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
|  | 11351 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11352 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11353 | works=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
|  | 11355 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
|  | 11356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11357 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11358 |  | 
|  | 11359 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11360 | int foo(int x, ...) { | 
|  | 11361 | va_list va; | 
|  | 11362 | va_start(va, x); | 
|  | 11363 | va_arg(va, int); | 
|  | 11364 | va_arg(va, char *); | 
|  | 11365 | va_arg(va, double); | 
|  | 11366 | return 0; | 
|  | 11367 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11368 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11369 | int | 
|  | 11370 | main () | 
|  | 11371 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11372 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11373 | ; | 
|  | 11374 | return 0; | 
|  | 11375 | } | 
|  | 11376 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11377 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11378 |  | 
|  | 11379 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11380 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11381 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11382 | works=yes | 
|  | 11383 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11384 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
|  | 11387 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11388 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11389 | # check for socketpair | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
|  | 11391 | $as_echo_n "checking for socketpair... " >&6; } | 
|  | 11392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11393 | /* end confdefs.h.  */ | 
|  | 11394 |  | 
|  | 11395 | #include <sys/types.h> | 
|  | 11396 | #include <sys/socket.h> | 
|  | 11397 |  | 
|  | 11398 | int | 
|  | 11399 | main () | 
|  | 11400 | { | 
|  | 11401 | void *x=socketpair | 
|  | 11402 | ; | 
|  | 11403 | return 0; | 
|  | 11404 | } | 
|  | 11405 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11406 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11407 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11408 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11409 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11411 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11412 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11414 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11415 |  | 
|  | 11416 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11417 | 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] | 11418 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11419 | # check if sockaddr has sa_len member | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
|  | 11421 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
|  | 11422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11423 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11424 | #include <sys/types.h> | 
|  | 11425 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11426 | int | 
|  | 11427 | main () | 
|  | 11428 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11429 | struct sockaddr x; | 
|  | 11430 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11431 | ; | 
|  | 11432 | return 0; | 
|  | 11433 | } | 
|  | 11434 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11435 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11437 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11438 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11439 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11440 |  | 
|  | 11441 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11443 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11444 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11445 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11446 | 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] | 11447 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11448 | va_list_is_array=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 | 
|  | 11450 | $as_echo_n "checking whether va_list is an array... " >&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 | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11453 |  | 
|  | 11454 | #ifdef HAVE_STDARG_PROTOTYPES | 
|  | 11455 | #include <stdarg.h> | 
|  | 11456 | #else | 
|  | 11457 | #include <varargs.h> | 
|  | 11458 | #endif | 
|  | 11459 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11460 | int | 
|  | 11461 | main () | 
|  | 11462 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11463 | va_list list1, list2; list1 = list2; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11464 | ; | 
|  | 11465 | return 0; | 
|  | 11466 | } | 
|  | 11467 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11468 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11469 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11470 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11471 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11472 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11473 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11474 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11475 | va_list_is_array=yes | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11476 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11477 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 | 
|  | 11480 | $as_echo "$va_list_is_array" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11481 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11482 | # 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] | 11483 |  | 
|  | 11484 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11485 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" | 
|  | 11486 | 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] | 11487 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11488 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 11489 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
|  | 11491 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11492 | OLD_CFLAGS=$CFLAGS | 
|  | 11493 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11495 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11496 |  | 
|  | 11497 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11498 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11499 | int | 
|  | 11500 | main () | 
|  | 11501 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11502 |  | 
|  | 11503 | char *name; | 
|  | 11504 | struct hostent *he, *res; | 
|  | 11505 | char buffer[2048]; | 
|  | 11506 | int buflen = 2048; | 
|  | 11507 | int h_errnop; | 
|  | 11508 |  | 
|  | 11509 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11510 |  | 
|  | 11511 | ; | 
|  | 11512 | return 0; | 
|  | 11513 | } | 
|  | 11514 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11515 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11516 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11517 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11518 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11519 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11520 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11521 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11523 | $as_echo "yes" >&6; } | 
| 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 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11526 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11528 | $as_echo "no" >&6; } | 
|  | 11529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
|  | 11530 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
|  | 11531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11532 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11533 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11534 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11535 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11536 | int | 
|  | 11537 | main () | 
|  | 11538 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11539 |  | 
|  | 11540 | char *name; | 
|  | 11541 | struct hostent *he; | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11542 | char buffer[2048]; | 
|  | 11543 | int buflen = 2048; | 
|  | 11544 | int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11545 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11546 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11547 |  | 
|  | 11548 | ; | 
|  | 11549 | return 0; | 
|  | 11550 | } | 
|  | 11551 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11552 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11553 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11554 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11555 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11556 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11557 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11558 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11560 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11561 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11562 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11563 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11565 | $as_echo "no" >&6; } | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
|  | 11567 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
|  | 11568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11569 | /* end confdefs.h.  */ | 
|  | 11570 |  | 
|  | 11571 | #           include <netdb.h> | 
|  | 11572 |  | 
|  | 11573 | int | 
|  | 11574 | main () | 
|  | 11575 | { | 
|  | 11576 |  | 
|  | 11577 | char *name; | 
|  | 11578 | struct hostent *he; | 
|  | 11579 | struct hostent_data data; | 
|  | 11580 |  | 
|  | 11581 | (void) gethostbyname_r(name, he, &data); | 
|  | 11582 |  | 
|  | 11583 | ; | 
|  | 11584 | return 0; | 
|  | 11585 | } | 
|  | 11586 | _ACEOF | 
|  | 11587 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 11588 |  | 
|  | 11589 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
|  | 11590 |  | 
|  | 11591 |  | 
|  | 11592 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
|  | 11593 |  | 
|  | 11594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11595 | $as_echo "yes" >&6; } | 
|  | 11596 |  | 
|  | 11597 | else | 
|  | 11598 |  | 
|  | 11599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11600 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11601 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11602 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11603 | 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] | 11604 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11605 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11606 | 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] | 11607 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11608 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11610 | CFLAGS=$OLD_CFLAGS | 
|  | 11611 |  | 
|  | 11612 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11613 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11614 | for ac_func in gethostbyname | 
|  | 11615 | do : | 
|  | 11616 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
|  | 11617 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11618 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11619 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11620 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11621 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11622 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11623 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11624 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11625 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11626 | fi | 
|  | 11627 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11628 |  | 
|  | 11629 |  | 
|  | 11630 |  | 
|  | 11631 |  | 
|  | 11632 |  | 
|  | 11633 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11634 | # checks for system services | 
|  | 11635 | # (none yet) | 
|  | 11636 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11637 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11638 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" | 
|  | 11639 | if test "x$ac_cv_func___fpu_control" = x""yes; then : | 
|  | 11640 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11641 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
|  | 11643 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
|  | 11644 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then : | 
|  | 11645 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11646 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11647 | ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11648 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11650 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11651 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11652 | /* Override any GCC internal prototype to avoid an error. | 
|  | 11653 | Use char because int might match the return type of a GCC | 
|  | 11654 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11655 | #ifdef __cplusplus | 
|  | 11656 | extern "C" | 
|  | 11657 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11658 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11659 | int | 
|  | 11660 | main () | 
|  | 11661 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11662 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11663 | ; | 
|  | 11664 | return 0; | 
|  | 11665 | } | 
|  | 11666 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11667 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11668 | ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11669 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11670 | ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11671 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11672 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11673 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11674 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11675 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
|  | 11677 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
|  | 11678 | 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] | 11679 | cat >>confdefs.h <<_ACEOF | 
|  | 11680 | #define HAVE_LIBIEEE 1 | 
|  | 11681 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11682 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11683 | LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11684 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11685 | fi | 
|  | 11686 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11687 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11688 | fi | 
|  | 11689 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11690 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11691 | # Check for --with-fpectl | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
|  | 11693 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11694 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11695 | # Check whether --with-fpectl was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11696 | if test "${with_fpectl+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11697 | withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11698 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11699 | then | 
|  | 11700 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11701 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11702 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 11704 | $as_echo "yes" >&6; } | 
|  | 11705 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11706 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11707 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11708 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11710 | $as_echo "no" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11711 | fi | 
|  | 11712 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11713 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11714 | # check for --with-libm=... | 
|  | 11715 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11716 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 11717 | Darwin) ;; | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11718 | BeOS) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11719 | *) LIBM=-lm | 
|  | 11720 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
|  | 11722 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11723 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11724 | # Check whether --with-libm was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11725 | if test "${with_libm+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11726 | withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11727 | if test "$withval" = no | 
|  | 11728 | then LIBM= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
|  | 11730 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11731 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11732 | then LIBM=$withval | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
|  | 11734 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
|  | 11735 | 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] | 11736 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11737 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
|  | 11739 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11740 | fi | 
|  | 11741 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11742 |  | 
|  | 11743 | # check for --with-libc=... | 
|  | 11744 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
|  | 11746 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11747 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11748 | # Check whether --with-libc was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11749 | if test "${with_libc+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11750 | withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11751 | if test "$withval" = no | 
|  | 11752 | then LIBC= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
|  | 11754 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11755 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11756 | then LIBC=$withval | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
|  | 11758 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
|  | 11759 | 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] | 11760 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11761 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
|  | 11763 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11764 | fi | 
|  | 11765 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11766 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11767 | # ************************************************** | 
|  | 11768 | # * Check for various properties of floating point * | 
|  | 11769 | # ************************************************** | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 11770 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
|  | 11772 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } | 
|  | 11773 | if test "${ac_cv_little_endian_double+set}" = set; then : | 
|  | 11774 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11775 | else | 
|  | 11776 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11777 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11778 | ac_cv_little_endian_double=no | 
|  | 11779 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11781 | /* end confdefs.h.  */ | 
|  | 11782 |  | 
|  | 11783 | #include <string.h> | 
|  | 11784 | int main() { | 
|  | 11785 | double x = 9006104071832581.0; | 
|  | 11786 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
|  | 11787 | return 0; | 
|  | 11788 | else | 
|  | 11789 | return 1; | 
|  | 11790 | } | 
|  | 11791 |  | 
|  | 11792 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11793 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11794 | ac_cv_little_endian_double=yes | 
|  | 11795 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11796 | ac_cv_little_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11797 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11798 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11799 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11800 | fi | 
|  | 11801 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11802 | fi | 
|  | 11803 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
|  | 11805 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11806 | if test "$ac_cv_little_endian_double" = yes | 
|  | 11807 | then | 
|  | 11808 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11809 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11810 |  | 
|  | 11811 | fi | 
|  | 11812 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
|  | 11814 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } | 
|  | 11815 | if test "${ac_cv_big_endian_double+set}" = set; then : | 
|  | 11816 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11817 | else | 
|  | 11818 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11819 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11820 | ac_cv_big_endian_double=no | 
|  | 11821 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11823 | /* end confdefs.h.  */ | 
|  | 11824 |  | 
|  | 11825 | #include <string.h> | 
|  | 11826 | int main() { | 
|  | 11827 | double x = 9006104071832581.0; | 
|  | 11828 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
|  | 11829 | return 0; | 
|  | 11830 | else | 
|  | 11831 | return 1; | 
|  | 11832 | } | 
|  | 11833 |  | 
|  | 11834 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11835 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11836 | ac_cv_big_endian_double=yes | 
|  | 11837 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11838 | ac_cv_big_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11839 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11840 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11841 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11842 | fi | 
|  | 11843 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11844 | fi | 
|  | 11845 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
|  | 11847 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11848 | if test "$ac_cv_big_endian_double" = yes | 
|  | 11849 | then | 
|  | 11850 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11851 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11852 |  | 
|  | 11853 | fi | 
|  | 11854 |  | 
|  | 11855 | # Some ARM platforms use a mixed-endian representation for doubles. | 
|  | 11856 | # While Python doesn't currently have full support for these platforms | 
|  | 11857 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
|  | 11858 | # conversions work. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
|  | 11860 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } | 
|  | 11861 | if test "${ac_cv_mixed_endian_double+set}" = set; then : | 
|  | 11862 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11863 | else | 
|  | 11864 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11865 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11866 | ac_cv_mixed_endian_double=no | 
|  | 11867 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11869 | /* end confdefs.h.  */ | 
|  | 11870 |  | 
|  | 11871 | #include <string.h> | 
|  | 11872 | int main() { | 
|  | 11873 | double x = 9006104071832581.0; | 
|  | 11874 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
|  | 11875 | return 0; | 
|  | 11876 | else | 
|  | 11877 | return 1; | 
|  | 11878 | } | 
|  | 11879 |  | 
|  | 11880 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11881 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11882 | ac_cv_mixed_endian_double=yes | 
|  | 11883 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11884 | ac_cv_mixed_endian_double=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11885 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11886 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11887 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11888 | fi | 
|  | 11889 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11890 | fi | 
|  | 11891 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
|  | 11893 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11894 | if test "$ac_cv_mixed_endian_double" = yes | 
|  | 11895 | then | 
|  | 11896 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11897 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11898 |  | 
|  | 11899 | fi | 
|  | 11900 |  | 
|  | 11901 | # The short float repr introduced in Python 3.1 requires the | 
|  | 11902 | # correctly-rounded string <-> double conversion functions from | 
|  | 11903 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit | 
|  | 11904 | # rounding; this is a problem on x86, where the x87 FPU has a default | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 11905 | # rounding precision of 64 bits.  For gcc/x86, we can fix this by | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11906 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 11907 |  | 
|  | 11908 | # This inline assembler syntax may also work for suncc and icc, | 
|  | 11909 | # so we try it on all platforms. | 
|  | 11910 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
|  | 11912 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
|  | 11913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11914 | /* end confdefs.h.  */ | 
|  | 11915 |  | 
|  | 11916 | int | 
|  | 11917 | main () | 
|  | 11918 | { | 
|  | 11919 |  | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 11920 | unsigned short cw; | 
|  | 11921 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
|  | 11922 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11923 |  | 
|  | 11924 | ; | 
|  | 11925 | return 0; | 
|  | 11926 | } | 
|  | 11927 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11928 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11929 | have_gcc_asm_for_x87=yes | 
|  | 11930 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11931 | have_gcc_asm_for_x87=no | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11932 | fi | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
|  | 11935 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 11936 | if test "$have_gcc_asm_for_x87" = yes | 
|  | 11937 | then | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11938 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11939 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11940 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11941 | fi | 
| Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 11942 |  | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 11943 | # Detect whether system arithmetic is subject to x87-style double | 
|  | 11944 | # rounding issues.  The result of this test has little meaning on non | 
|  | 11945 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
|  | 11946 | # mode is round-to-nearest and double rounding issues are present, and | 
|  | 11947 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
|  | 11949 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 11950 | # $BASECFLAGS may affect the result | 
|  | 11951 | ac_save_cc="$CC" | 
|  | 11952 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11953 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 11954 | ac_cv_x87_double_rounding=no | 
|  | 11955 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 11957 | /* end confdefs.h.  */ | 
|  | 11958 |  | 
|  | 11959 | #include <stdlib.h> | 
|  | 11960 | #include <math.h> | 
|  | 11961 | int main() { | 
|  | 11962 | volatile double x, y, z; | 
|  | 11963 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
|  | 11964 | x = 0.99999999999999989; /* 1-2**-53 */ | 
|  | 11965 | y = 1./x; | 
|  | 11966 | if (y != 1.) | 
|  | 11967 | exit(0); | 
|  | 11968 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
|  | 11969 | x = 1e16; | 
|  | 11970 | y = 2.99999; | 
|  | 11971 | z = x + y; | 
|  | 11972 | if (z != 1e16+4.) | 
|  | 11973 | exit(0); | 
|  | 11974 | /* both tests show evidence of double rounding */ | 
|  | 11975 | exit(1); | 
|  | 11976 | } | 
|  | 11977 |  | 
|  | 11978 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11979 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 11980 | ac_cv_x87_double_rounding=no | 
|  | 11981 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11982 | ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 11983 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11984 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 11985 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 11986 | fi | 
|  | 11987 |  | 
| Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 11988 | CC="$ac_save_cc" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
|  | 11990 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 11991 | if test "$ac_cv_x87_double_rounding" = yes | 
|  | 11992 | then | 
|  | 11993 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11994 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 11995 |  | 
|  | 11996 | fi | 
|  | 11997 |  | 
| Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11998 | # ************************************ | 
|  | 11999 | # * Check for mathematical functions * | 
|  | 12000 | # ************************************ | 
|  | 12001 |  | 
|  | 12002 | LIBS_SAVE=$LIBS | 
|  | 12003 | LIBS="$LIBS $LIBM" | 
|  | 12004 |  | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12005 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
|  | 12006 | # -0. on some architectures. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
|  | 12008 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
|  | 12009 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then : | 
|  | 12010 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12011 | else | 
|  | 12012 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12013 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12014 | ac_cv_tanh_preserves_zero_sign=no | 
|  | 12015 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12017 | /* end confdefs.h.  */ | 
|  | 12018 |  | 
|  | 12019 | #include <math.h> | 
| Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 12020 | #include <stdlib.h> | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12021 | int main() { | 
|  | 12022 | /* return 0 if either negative zeros don't exist | 
|  | 12023 | on this platform or if negative zeros exist | 
|  | 12024 | and tanh(-0.) == -0. */ | 
|  | 12025 | if (atan2(0., -1.) == atan2(-0., -1.) || | 
|  | 12026 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
|  | 12027 | else exit(1); | 
|  | 12028 | } | 
|  | 12029 |  | 
|  | 12030 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12031 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12032 | ac_cv_tanh_preserves_zero_sign=yes | 
|  | 12033 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12034 | ac_cv_tanh_preserves_zero_sign=no | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12035 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12036 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12037 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12038 | fi | 
|  | 12039 |  | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12040 | fi | 
|  | 12041 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
|  | 12043 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12044 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
|  | 12045 | then | 
|  | 12046 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12047 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12048 |  | 
|  | 12049 | fi | 
|  | 12050 |  | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12051 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12052 | do : | 
|  | 12053 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 12054 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
|  | 12055 | eval as_val=\$$as_ac_var | 
|  | 12056 | if test "x$as_val" = x""yes; then : | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12057 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12058 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12059 | _ACEOF | 
|  | 12060 |  | 
|  | 12061 | fi | 
|  | 12062 | done | 
|  | 12063 |  | 
| Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12064 | for ac_func in hypot lgamma log1p round tgamma | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12065 | do : | 
|  | 12066 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 12067 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
|  | 12068 | eval as_val=\$$as_ac_var | 
|  | 12069 | if test "x$as_val" = x""yes; then : | 
| Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 12070 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12071 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 12072 | _ACEOF | 
|  | 12073 |  | 
|  | 12074 | fi | 
|  | 12075 | done | 
|  | 12076 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12077 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
|  | 12078 | " | 
|  | 12079 | if test "x$ac_cv_have_decl_isinf" = x""yes; then : | 
|  | 12080 | ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12081 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12082 | ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12083 | fi | 
|  | 12084 |  | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12085 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12086 | #define HAVE_DECL_ISINF $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12087 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12088 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
|  | 12089 | " | 
|  | 12090 | if test "x$ac_cv_have_decl_isnan" = x""yes; then : | 
|  | 12091 | ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12092 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12093 | ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12094 | fi | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12095 |  | 
|  | 12096 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12097 | #define HAVE_DECL_ISNAN $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12098 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12099 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
|  | 12100 | " | 
|  | 12101 | if test "x$ac_cv_have_decl_isfinite" = x""yes; then : | 
|  | 12102 | ac_have_decl=1 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12103 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12104 | ac_have_decl=0 | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12105 | fi | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12106 |  | 
|  | 12107 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12108 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
| Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12109 | _ACEOF | 
|  | 12110 |  | 
|  | 12111 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 12112 | LIBS=$LIBS_SAVE | 
|  | 12113 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12114 | # For multiprocessing module, check that sem_open | 
|  | 12115 | # actually works.  For FreeBSD versions <= 7.2, | 
|  | 12116 | # the kernel module that provides POSIX semaphores | 
|  | 12117 | # isn't loaded by default, so an attempt to call | 
|  | 12118 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
|  | 12120 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
|  | 12121 | if test "${ac_cv_posix_semaphores_enabled+set}" = set; then : | 
|  | 12122 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12123 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12124 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12125 | ac_cv_posix_semaphores_enabled=yes | 
|  | 12126 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12128 | /* end confdefs.h.  */ | 
|  | 12129 |  | 
|  | 12130 | #include <unistd.h> | 
|  | 12131 | #include <fcntl.h> | 
|  | 12132 | #include <stdio.h> | 
|  | 12133 | #include <semaphore.h> | 
|  | 12134 | #include <sys/stat.h> | 
|  | 12135 |  | 
|  | 12136 | int main(void) { | 
|  | 12137 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
|  | 12138 | if (a == SEM_FAILED) { | 
|  | 12139 | perror("sem_open"); | 
|  | 12140 | return 1; | 
|  | 12141 | } | 
|  | 12142 | sem_close(a); | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12143 | sem_unlink("/autoconf"); | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12144 | return 0; | 
|  | 12145 | } | 
|  | 12146 |  | 
|  | 12147 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12148 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12149 | ac_cv_posix_semaphores_enabled=yes | 
|  | 12150 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12151 | ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12152 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12153 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12154 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12155 | fi | 
|  | 12156 |  | 
|  | 12157 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12158 | fi | 
|  | 12159 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
|  | 12161 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12162 | if test $ac_cv_posix_semaphores_enabled = no | 
|  | 12163 | then | 
|  | 12164 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12165 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12166 |  | 
|  | 12167 | fi | 
|  | 12168 |  | 
|  | 12169 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
|  | 12171 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
|  | 12172 | if test "${ac_cv_broken_sem_getvalue+set}" = set; then : | 
|  | 12173 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12174 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12175 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12176 | ac_cv_broken_sem_getvalue=yes | 
|  | 12177 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12179 | /* end confdefs.h.  */ | 
|  | 12180 |  | 
|  | 12181 | #include <unistd.h> | 
|  | 12182 | #include <fcntl.h> | 
|  | 12183 | #include <stdio.h> | 
|  | 12184 | #include <semaphore.h> | 
|  | 12185 | #include <sys/stat.h> | 
|  | 12186 |  | 
|  | 12187 | int main(void){ | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12188 | sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12189 | int count; | 
|  | 12190 | int res; | 
|  | 12191 | if(a==SEM_FAILED){ | 
|  | 12192 | perror("sem_open"); | 
|  | 12193 | return 1; | 
|  | 12194 |  | 
|  | 12195 | } | 
|  | 12196 | res = sem_getvalue(a, &count); | 
|  | 12197 | sem_close(a); | 
| Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12198 | sem_unlink("/autocftw"); | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12199 | return res==-1 ? 1 : 0; | 
|  | 12200 | } | 
|  | 12201 |  | 
|  | 12202 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12203 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12204 | ac_cv_broken_sem_getvalue=no | 
|  | 12205 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12206 | ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12207 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12208 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12209 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12210 | fi | 
|  | 12211 |  | 
|  | 12212 |  | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12213 | fi | 
|  | 12214 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
|  | 12216 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12217 | if test $ac_cv_broken_sem_getvalue = yes | 
|  | 12218 | then | 
|  | 12219 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12220 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12221 |  | 
|  | 12222 | fi | 
|  | 12223 |  | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12224 | # determine what size digit to use for Python's longs | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
|  | 12226 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12227 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12228 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12229 | enableval=$enable_big_digits; case $enable_big_digits in | 
|  | 12230 | yes) | 
|  | 12231 | enable_big_digits=30 ;; | 
|  | 12232 | no) | 
|  | 12233 | enable_big_digits=15 ;; | 
|  | 12234 | 15|30) | 
|  | 12235 | ;; | 
|  | 12236 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12237 | as_fn_error "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12238 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
|  | 12240 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12241 |  | 
|  | 12242 | cat >>confdefs.h <<_ACEOF | 
|  | 12243 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
|  | 12244 | _ACEOF | 
|  | 12245 |  | 
|  | 12246 |  | 
|  | 12247 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
|  | 12249 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12250 | fi | 
|  | 12251 |  | 
|  | 12252 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12253 | # check for wchar.h | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12254 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | 
|  | 12255 | 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] | 12256 |  | 
|  | 12257 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12258 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12259 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12260 | wchar_h="yes" | 
|  | 12261 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12262 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12263 | wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12264 |  | 
|  | 12265 | fi | 
|  | 12266 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12267 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12268 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12269 | # determine wchar_t size | 
|  | 12270 | if test "$wchar_h" = yes | 
|  | 12271 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12272 | # The cast to long int works around a bug in the HP C Compiler | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12273 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 12274 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 12275 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
|  | 12277 | $as_echo_n "checking size of wchar_t... " >&6; } | 
|  | 12278 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then : | 
|  | 12279 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12280 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12281 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
|  | 12282 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12283 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12284 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12285 | if test "$ac_cv_type_wchar_t" = yes; then | 
|  | 12286 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 12287 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 12288 | { as_fn_set_status 77 | 
|  | 12289 | as_fn_error "cannot compute sizeof (wchar_t) | 
|  | 12290 | See \`config.log' for more details." "$LINENO" 5; }; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12291 | else | 
|  | 12292 | ac_cv_sizeof_wchar_t=0 | 
|  | 12293 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12294 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12295 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12296 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
|  | 12298 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12299 |  | 
|  | 12300 |  | 
|  | 12301 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12302 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12303 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12304 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12305 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12306 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12307 | fi | 
|  | 12308 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
|  | 12310 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12311 | have_ucs4_tcl=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12313 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12314 |  | 
|  | 12315 | #include <tcl.h> | 
|  | 12316 | #if TCL_UTF_MAX != 6 | 
|  | 12317 | # error "NOT UCS4_TCL" | 
|  | 12318 | #endif | 
|  | 12319 | int | 
|  | 12320 | main () | 
|  | 12321 | { | 
|  | 12322 |  | 
|  | 12323 | ; | 
|  | 12324 | return 0; | 
|  | 12325 | } | 
|  | 12326 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12327 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12328 |  | 
|  | 12329 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12330 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12331 |  | 
|  | 12332 | have_ucs4_tcl=yes | 
|  | 12333 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12334 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
|  | 12337 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12338 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12339 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12340 | if test "$wchar_h" = yes | 
|  | 12341 | then | 
|  | 12342 | # check whether wchar_t is signed or not | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
|  | 12344 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
|  | 12345 | if test "${ac_cv_wchar_t_signed+set}" = set; then : | 
|  | 12346 | $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12347 | else | 
|  | 12348 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12349 | if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12350 | ac_cv_wchar_t_signed=yes | 
|  | 12351 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12353 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12354 |  | 
|  | 12355 | #include <wchar.h> | 
|  | 12356 | int main() | 
|  | 12357 | { | 
| Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 12358 | /* Success: exit code 0 */ | 
|  | 12359 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12360 | } | 
|  | 12361 |  | 
|  | 12362 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12363 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12364 | ac_cv_wchar_t_signed=yes | 
|  | 12365 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12366 | ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12367 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12368 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12369 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12370 | fi | 
|  | 12371 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12372 | fi | 
|  | 12373 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
|  | 12375 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12376 | fi | 
|  | 12377 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5 | 
|  | 12379 | $as_echo_n "checking what type to use for unicode... " >&6; } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12380 | # Check whether --enable-unicode was given. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12381 | if test "${enable_unicode+set}" = set; then : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12382 | enableval=$enable_unicode; | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12383 | else | 
|  | 12384 | enable_unicode=yes | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12385 | fi | 
|  | 12386 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12387 |  | 
|  | 12388 | if test $enable_unicode = yes | 
|  | 12389 | then | 
| Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 12390 | # Without any arguments, Py_UNICODE defaults to two-byte mode | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12391 | case "$have_ucs4_tcl" in | 
|  | 12392 | yes) enable_unicode="ucs4" | 
|  | 12393 | ;; | 
|  | 12394 | *)   enable_unicode="ucs2" | 
|  | 12395 | ;; | 
|  | 12396 | esac | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12397 | fi | 
|  | 12398 |  | 
| Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 12399 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12400 | case "$enable_unicode" in | 
|  | 12401 | ucs2) unicode_size="2" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12402 | $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12403 |  | 
|  | 12404 | ;; | 
|  | 12405 | ucs4) unicode_size="4" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12406 | $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12407 |  | 
|  | 12408 | ;; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12409 | *) as_fn_error "invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." "$LINENO" 5 ;; | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12410 | esac | 
|  | 12411 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12412 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12413 |  | 
|  | 12414 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12415 | if test "$enable_unicode" = "no" | 
|  | 12416 | then | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 12417 | UNICODE_OBJS="" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5 | 
|  | 12419 | $as_echo "not used" >&6; } | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12420 | else | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 12421 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12422 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12423 | $as_echo "#define Py_USING_UNICODE 1" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12424 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12425 |  | 
|  | 12426 | # wchar_t is only usable if it maps to an unsigned type | 
|  | 12427 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 12428 | -a "$ac_cv_wchar_t_signed" = "no" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12429 | then | 
|  | 12430 | PY_UNICODE_TYPE="wchar_t" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12431 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12432 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12433 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12434 | $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12435 |  | 
|  | 12436 | elif test "$ac_cv_sizeof_short" = "$unicode_size" | 
|  | 12437 | then | 
|  | 12438 | PY_UNICODE_TYPE="unsigned short" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12439 | $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12440 |  | 
|  | 12441 | elif test "$ac_cv_sizeof_long" = "$unicode_size" | 
|  | 12442 | then | 
|  | 12443 | PY_UNICODE_TYPE="unsigned long" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12444 | $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12445 |  | 
|  | 12446 | else | 
|  | 12447 | PY_UNICODE_TYPE="no type found" | 
|  | 12448 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 | 
|  | 12450 | $as_echo "$PY_UNICODE_TYPE" >&6; } | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12451 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12452 |  | 
|  | 12453 | # check for endianness | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
|  | 12455 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
|  | 12456 | if test "${ac_cv_c_bigendian+set}" = set; then : | 
|  | 12457 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12458 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12459 | ac_cv_c_bigendian=unknown | 
|  | 12460 | # See if we're dealing with a universal compiler. | 
|  | 12461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12462 | /* end confdefs.h.  */ | 
|  | 12463 | #ifndef __APPLE_CC__ | 
|  | 12464 | not a universal capable compiler | 
|  | 12465 | #endif | 
|  | 12466 | typedef int dummy; | 
|  | 12467 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12468 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12469 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12470 |  | 
|  | 12471 | # Check for potential -arch flags.  It is not universal unless | 
|  | 12472 | # there are at least two -arch flags with different values. | 
|  | 12473 | ac_arch= | 
|  | 12474 | ac_prev= | 
|  | 12475 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
|  | 12476 | if test -n "$ac_prev"; then | 
|  | 12477 | case $ac_word in | 
|  | 12478 | i?86 | x86_64 | ppc | ppc64) | 
|  | 12479 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
|  | 12480 | ac_arch=$ac_word | 
|  | 12481 | else | 
|  | 12482 | ac_cv_c_bigendian=universal | 
|  | 12483 | break | 
|  | 12484 | fi | 
|  | 12485 | ;; | 
|  | 12486 | esac | 
|  | 12487 | ac_prev= | 
|  | 12488 | elif test "x$ac_word" = "x-arch"; then | 
|  | 12489 | ac_prev=arch | 
|  | 12490 | fi | 
|  | 12491 | done | 
|  | 12492 | fi | 
|  | 12493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12494 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 12495 | # See if sys/param.h defines the BYTE_ORDER macro. | 
|  | 12496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12497 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12498 | #include <sys/types.h> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12499 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12500 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12501 | int | 
|  | 12502 | main () | 
|  | 12503 | { | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12504 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
|  | 12505 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
|  | 12506 | && LITTLE_ENDIAN) | 
|  | 12507 | bogus endian macros | 
|  | 12508 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12509 |  | 
|  | 12510 | ; | 
|  | 12511 | return 0; | 
|  | 12512 | } | 
|  | 12513 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12514 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12515 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12517 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12518 | #include <sys/types.h> | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12519 | #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12520 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12521 | int | 
|  | 12522 | main () | 
|  | 12523 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12524 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12525 | not big endian | 
|  | 12526 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12527 |  | 
|  | 12528 | ; | 
|  | 12529 | return 0; | 
|  | 12530 | } | 
|  | 12531 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12532 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12533 | ac_cv_c_bigendian=yes | 
|  | 12534 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12535 | ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12536 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12538 | fi | 
|  | 12539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12540 | fi | 
|  | 12541 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 12542 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
|  | 12543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12544 | /* end confdefs.h.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12545 | #include <limits.h> | 
|  | 12546 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12547 | int | 
|  | 12548 | main () | 
|  | 12549 | { | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12550 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
|  | 12551 | bogus endian macros | 
|  | 12552 | #endif | 
|  | 12553 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12554 | ; | 
|  | 12555 | return 0; | 
|  | 12556 | } | 
|  | 12557 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12558 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12559 | # It does; now see whether it defined to _BIG_ENDIAN or not. | 
|  | 12560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12561 | /* end confdefs.h.  */ | 
|  | 12562 | #include <limits.h> | 
|  | 12563 |  | 
|  | 12564 | int | 
|  | 12565 | main () | 
|  | 12566 | { | 
|  | 12567 | #ifndef _BIG_ENDIAN | 
|  | 12568 | not big endian | 
|  | 12569 | #endif | 
|  | 12570 |  | 
|  | 12571 | ; | 
|  | 12572 | return 0; | 
|  | 12573 | } | 
|  | 12574 | _ACEOF | 
|  | 12575 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12576 | ac_cv_c_bigendian=yes | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 12577 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12578 | ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12579 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12581 | fi | 
|  | 12582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 12583 | fi | 
|  | 12584 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 12585 | # Compile a test program. | 
|  | 12586 | if test "$cross_compiling" = yes; then : | 
|  | 12587 | # Try to guess by grepping values from an object file. | 
|  | 12588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12589 | /* end confdefs.h.  */ | 
|  | 12590 | short int ascii_mm[] = | 
|  | 12591 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
|  | 12592 | short int ascii_ii[] = | 
|  | 12593 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
|  | 12594 | int use_ascii (int i) { | 
|  | 12595 | return ascii_mm[i] + ascii_ii[i]; | 
|  | 12596 | } | 
|  | 12597 | short int ebcdic_ii[] = | 
|  | 12598 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
|  | 12599 | short int ebcdic_mm[] = | 
|  | 12600 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
|  | 12601 | int use_ebcdic (int i) { | 
|  | 12602 | return ebcdic_mm[i] + ebcdic_ii[i]; | 
|  | 12603 | } | 
|  | 12604 | extern int foo; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12605 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12606 | int | 
|  | 12607 | main () | 
|  | 12608 | { | 
|  | 12609 | return use_ascii (foo) == use_ebcdic (foo); | 
|  | 12610 | ; | 
|  | 12611 | return 0; | 
|  | 12612 | } | 
|  | 12613 | _ACEOF | 
|  | 12614 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 12615 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
|  | 12616 | ac_cv_c_bigendian=yes | 
|  | 12617 | fi | 
|  | 12618 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
|  | 12619 | if test "$ac_cv_c_bigendian" = unknown; then | 
|  | 12620 | ac_cv_c_bigendian=no | 
|  | 12621 | else | 
|  | 12622 | # finding both strings is unlikely to happen, but who knows? | 
|  | 12623 | ac_cv_c_bigendian=unknown | 
|  | 12624 | fi | 
|  | 12625 | fi | 
|  | 12626 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12627 | 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] | 12628 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12630 | /* end confdefs.h.  */ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12631 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12632 | int | 
|  | 12633 | main () | 
|  | 12634 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12635 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12636 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 12637 | union | 
|  | 12638 | { | 
|  | 12639 | long int l; | 
|  | 12640 | char c[sizeof (long int)]; | 
|  | 12641 | } u; | 
|  | 12642 | u.l = 1; | 
|  | 12643 | return u.c[sizeof (long int) - 1] == 1; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12644 |  | 
|  | 12645 | ; | 
|  | 12646 | return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12647 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12648 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12649 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12650 | ac_cv_c_bigendian=no | 
|  | 12651 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12652 | ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12653 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12654 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12655 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12656 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12657 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12658 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12659 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
|  | 12661 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
|  | 12662 | case $ac_cv_c_bigendian in #( | 
|  | 12663 | yes) | 
|  | 12664 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
|  | 12665 | ;; #( | 
|  | 12666 | no) | 
|  | 12667 | ;; #( | 
|  | 12668 | universal) | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12669 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12670 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 12671 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12672 | ;; #( | 
|  | 12673 | *) | 
|  | 12674 | as_fn_error "unknown endianness | 
|  | 12675 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
|  | 12676 | esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12677 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12678 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12679 | # Check whether right shifting a negative integer extends the sign bit | 
|  | 12680 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
|  | 12682 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
|  | 12683 | if test "${ac_cv_rshift_extends_sign+set}" = set; then : | 
|  | 12684 | $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12685 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12686 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12687 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12688 | ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12689 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12691 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12692 |  | 
|  | 12693 | int main() | 
|  | 12694 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12695 | exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12696 | } | 
|  | 12697 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12698 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12699 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12700 | ac_cv_rshift_extends_sign=yes | 
|  | 12701 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12702 | ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12703 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12704 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 12705 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12706 | fi | 
|  | 12707 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12708 | fi | 
|  | 12709 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
|  | 12711 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12712 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12713 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12714 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12715 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12716 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12717 | fi | 
|  | 12718 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12719 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
|  | 12721 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
|  | 12722 | if test "${ac_cv_have_getc_unlocked+set}" = set; then : | 
|  | 12723 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12724 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12725 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12727 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12728 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12729 | int | 
|  | 12730 | main () | 
|  | 12731 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12732 |  | 
|  | 12733 | FILE *f = fopen("/dev/null", "r"); | 
|  | 12734 | flockfile(f); | 
|  | 12735 | getc_unlocked(f); | 
|  | 12736 | funlockfile(f); | 
|  | 12737 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12738 | ; | 
|  | 12739 | return 0; | 
|  | 12740 | } | 
|  | 12741 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12742 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12743 | ac_cv_have_getc_unlocked=yes | 
|  | 12744 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12745 | ac_cv_have_getc_unlocked=no | 
|  | 12746 | fi | 
|  | 12747 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12748 | conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12749 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12750 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
|  | 12752 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12753 | if test "$ac_cv_have_getc_unlocked" = yes | 
|  | 12754 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12755 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12756 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12757 |  | 
|  | 12758 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12759 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12760 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 12761 | # save the value of LIBS so we don't actually link Python with readline | 
|  | 12762 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12763 |  | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12764 | # On some systems we need to link readline to a termcap compatible | 
|  | 12765 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
|  | 12766 | # with setup.py. | 
|  | 12767 | py_cv_lib_readline=no | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
|  | 12769 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12770 | for py_libtermcap in "" ncursesw ncurses curses termcap; do | 
|  | 12771 | if test -z "$py_libtermcap"; then | 
|  | 12772 | READLINE_LIBS="-lreadline" | 
|  | 12773 | else | 
|  | 12774 | READLINE_LIBS="-lreadline -l$py_libtermcap" | 
|  | 12775 | fi | 
|  | 12776 | LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12778 | /* end confdefs.h.  */ | 
|  | 12779 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12780 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12781 | Use char because int might match the return type of a GCC | 
|  | 12782 | builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12783 | #ifdef __cplusplus | 
|  | 12784 | extern "C" | 
|  | 12785 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12786 | char readline (); | 
|  | 12787 | int | 
|  | 12788 | main () | 
|  | 12789 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12790 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12791 | ; | 
|  | 12792 | return 0; | 
|  | 12793 | } | 
|  | 12794 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12795 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12796 | py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12797 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12798 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12799 | conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12800 | if test $py_cv_lib_readline = yes; then | 
|  | 12801 | break | 
|  | 12802 | fi | 
|  | 12803 | done | 
|  | 12804 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
|  | 12805 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 12806 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 12808 | $as_echo "none" >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12809 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
|  | 12811 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12812 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12813 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12814 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12815 | fi | 
|  | 12816 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12817 | # check for readline 2.1 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 | 
|  | 12819 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } | 
|  | 12820 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then : | 
|  | 12821 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12822 | else | 
|  | 12823 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 12824 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12826 | /* end confdefs.h.  */ | 
|  | 12827 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12828 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12829 | Use char because int might match the return type of a GCC | 
|  | 12830 | builtin and then its argument prototype would still apply.  */ | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12831 | #ifdef __cplusplus | 
|  | 12832 | extern "C" | 
|  | 12833 | #endif | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12834 | char rl_callback_handler_install (); | 
|  | 12835 | int | 
|  | 12836 | main () | 
|  | 12837 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12838 | return rl_callback_handler_install (); | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12839 | ; | 
|  | 12840 | return 0; | 
|  | 12841 | } | 
|  | 12842 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12843 | if ac_fn_c_try_link "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12844 | ac_cv_lib_readline_rl_callback_handler_install=yes | 
|  | 12845 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12846 | ac_cv_lib_readline_rl_callback_handler_install=no | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12847 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12848 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12849 | conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12850 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12851 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 | 
|  | 12853 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } | 
|  | 12854 | 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] | 12855 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12856 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12857 |  | 
|  | 12858 | fi | 
|  | 12859 |  | 
|  | 12860 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12861 | # check for readline 2.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12863 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12864 | #include <readline/readline.h> | 
|  | 12865 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12866 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12867 | have_readline=yes | 
|  | 12868 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12869 | have_readline=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12870 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12871 | fi | 
|  | 12872 | rm -f conftest.err conftest.$ac_ext | 
|  | 12873 | if test $have_readline = yes | 
|  | 12874 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12876 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12877 | #include <readline/readline.h> | 
|  | 12878 |  | 
|  | 12879 | _ACEOF | 
|  | 12880 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12881 | $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] | 12882 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12883 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12884 |  | 
|  | 12885 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 12886 | rm -f conftest* | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 12887 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 12889 | /* end confdefs.h.  */ | 
|  | 12890 | #include <readline/readline.h> | 
|  | 12891 |  | 
|  | 12892 | _ACEOF | 
|  | 12893 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12894 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 12895 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12896 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 12897 |  | 
|  | 12898 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 12899 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12900 |  | 
|  | 12901 | fi | 
|  | 12902 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12903 | # check for readline 4.0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
|  | 12905 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
|  | 12906 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then : | 
|  | 12907 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12908 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12909 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 12910 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12912 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12913 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12914 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12915 | Use char because int might match the return type of a GCC | 
|  | 12916 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12917 | #ifdef __cplusplus | 
|  | 12918 | extern "C" | 
|  | 12919 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12920 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12921 | int | 
|  | 12922 | main () | 
|  | 12923 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12924 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12925 | ; | 
|  | 12926 | return 0; | 
|  | 12927 | } | 
|  | 12928 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12929 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12930 | ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12931 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12932 | ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12933 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12934 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12935 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12936 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12937 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
|  | 12939 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
|  | 12940 | 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] | 12941 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12942 | $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] | 12943 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12944 | fi | 
|  | 12945 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12946 |  | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 12947 | # also in 4.0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
|  | 12949 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } | 
|  | 12950 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then : | 
|  | 12951 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 12952 | else | 
|  | 12953 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 12954 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 12956 | /* end confdefs.h.  */ | 
|  | 12957 |  | 
|  | 12958 | /* Override any GCC internal prototype to avoid an error. | 
|  | 12959 | Use char because int might match the return type of a GCC | 
|  | 12960 | builtin and then its argument prototype would still apply.  */ | 
|  | 12961 | #ifdef __cplusplus | 
|  | 12962 | extern "C" | 
|  | 12963 | #endif | 
|  | 12964 | char rl_completion_display_matches_hook (); | 
|  | 12965 | int | 
|  | 12966 | main () | 
|  | 12967 | { | 
|  | 12968 | return rl_completion_display_matches_hook (); | 
|  | 12969 | ; | 
|  | 12970 | return 0; | 
|  | 12971 | } | 
|  | 12972 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12973 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 12974 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
|  | 12975 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12976 | ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 12977 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12978 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12979 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 12980 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12981 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
|  | 12983 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
|  | 12984 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = x""yes; then : | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 12985 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12986 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 12987 |  | 
|  | 12988 | fi | 
|  | 12989 |  | 
|  | 12990 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12991 | # check for readline 4.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
|  | 12993 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
|  | 12994 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then : | 
|  | 12995 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12996 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12997 | ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 12998 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13000 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13001 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13002 | /* Override any GCC internal prototype to avoid an error. | 
|  | 13003 | Use char because int might match the return type of a GCC | 
|  | 13004 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13005 | #ifdef __cplusplus | 
|  | 13006 | extern "C" | 
|  | 13007 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13008 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13009 | int | 
|  | 13010 | main () | 
|  | 13011 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13012 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13013 | ; | 
|  | 13014 | return 0; | 
|  | 13015 | } | 
|  | 13016 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13017 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13018 | ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13019 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13020 | ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13021 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13022 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13023 | conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13024 | LIBS=$ac_check_lib_save_LIBS | 
|  | 13025 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
|  | 13027 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
|  | 13028 | 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] | 13029 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13030 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13031 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13032 | fi | 
|  | 13033 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13034 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13035 | # also in readline 4.2 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13037 | /* end confdefs.h.  */ | 
|  | 13038 | #include <readline/readline.h> | 
|  | 13039 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13040 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13041 | have_readline=yes | 
|  | 13042 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13043 | have_readline=no | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13044 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13045 | fi | 
|  | 13046 | rm -f conftest.err conftest.$ac_ext | 
|  | 13047 | if test $have_readline = yes | 
|  | 13048 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13050 | /* end confdefs.h.  */ | 
|  | 13051 | #include <readline/readline.h> | 
|  | 13052 |  | 
|  | 13053 | _ACEOF | 
|  | 13054 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13055 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13056 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13057 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13058 |  | 
|  | 13059 | fi | 
| Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13060 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13061 |  | 
|  | 13062 | fi | 
|  | 13063 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13064 | # End of readline checks: restore LIBS | 
|  | 13065 | LIBS=$LIBS_no_readline | 
|  | 13066 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
|  | 13068 | $as_echo_n "checking for broken nice()... " >&6; } | 
|  | 13069 | if test "${ac_cv_broken_nice+set}" = set; then : | 
|  | 13070 | $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13071 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13072 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13073 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13074 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13075 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13077 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13078 |  | 
|  | 13079 | int main() | 
|  | 13080 | { | 
|  | 13081 | int val1 = nice(1); | 
|  | 13082 | if (val1 != -1 && val1 == nice(2)) | 
|  | 13083 | exit(0); | 
|  | 13084 | exit(1); | 
|  | 13085 | } | 
|  | 13086 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13087 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13088 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13089 | ac_cv_broken_nice=yes | 
|  | 13090 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13091 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13092 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13093 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13094 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13095 | fi | 
|  | 13096 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13097 | fi | 
|  | 13098 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
|  | 13100 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13101 | if test "$ac_cv_broken_nice" = yes | 
|  | 13102 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13103 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13104 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13105 |  | 
|  | 13106 | fi | 
|  | 13107 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
|  | 13109 | $as_echo_n "checking for broken poll()... " >&6; } | 
|  | 13110 | if test "${ac_cv_broken_poll+set}" = set; then : | 
|  | 13111 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13112 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13113 | if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13114 | ac_cv_broken_poll=no | 
|  | 13115 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13117 | /* end confdefs.h.  */ | 
|  | 13118 |  | 
|  | 13119 | #include <poll.h> | 
|  | 13120 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13121 | int main() | 
|  | 13122 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13123 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13124 | int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13125 |  | 
|  | 13126 | close (42); | 
|  | 13127 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13128 | poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13129 | if (poll_test < 0) | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13130 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13131 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13132 | return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13133 | else | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13134 | return 1; | 
|  | 13135 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13136 |  | 
|  | 13137 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13138 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13139 | ac_cv_broken_poll=yes | 
|  | 13140 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13141 | ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13142 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13143 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13144 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13145 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13146 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13147 | fi | 
|  | 13148 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
|  | 13150 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13151 | if test "$ac_cv_broken_poll" = yes | 
|  | 13152 | then | 
|  | 13153 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13154 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13155 |  | 
|  | 13156 | fi | 
|  | 13157 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13158 | # 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] | 13159 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
|  | 13160 | # tzname[] | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13161 | 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] | 13162 | #include <$ac_cv_struct_tm> | 
|  | 13163 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13164 | " | 
|  | 13165 | 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] | 13166 |  | 
|  | 13167 | cat >>confdefs.h <<_ACEOF | 
|  | 13168 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 13169 | _ACEOF | 
|  | 13170 |  | 
|  | 13171 |  | 
|  | 13172 | fi | 
|  | 13173 |  | 
|  | 13174 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 13175 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13176 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13177 |  | 
|  | 13178 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13179 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 13180 | " | 
|  | 13181 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : | 
|  | 13182 | ac_have_decl=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13183 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13184 | ac_have_decl=0 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13185 | fi | 
|  | 13186 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13187 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13188 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13189 | _ACEOF | 
|  | 13190 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 13192 | $as_echo_n "checking for tzname... " >&6; } | 
|  | 13193 | if test "${ac_cv_var_tzname+set}" = set; then : | 
|  | 13194 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13195 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13197 | /* end confdefs.h.  */ | 
|  | 13198 | #include <time.h> | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13199 | #if !HAVE_DECL_TZNAME | 
|  | 13200 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13201 | #endif | 
|  | 13202 |  | 
|  | 13203 | int | 
|  | 13204 | main () | 
|  | 13205 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13206 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13207 | ; | 
|  | 13208 | return 0; | 
|  | 13209 | } | 
|  | 13210 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13211 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13212 | ac_cv_var_tzname=yes | 
|  | 13213 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13214 | ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13215 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13216 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13217 | conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13218 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 13220 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13221 | if test $ac_cv_var_tzname = yes; then | 
|  | 13222 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13223 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13224 |  | 
|  | 13225 | fi | 
|  | 13226 | fi | 
|  | 13227 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13228 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13229 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
|  | 13231 | $as_echo_n "checking for working tzset()... " >&6; } | 
|  | 13232 | if test "${ac_cv_working_tzset+set}" = set; then : | 
|  | 13233 | $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13234 | else | 
|  | 13235 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13236 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13237 | ac_cv_working_tzset=no | 
|  | 13238 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13240 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13241 |  | 
|  | 13242 | #include <stdlib.h> | 
|  | 13243 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13244 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13245 |  | 
|  | 13246 | #if HAVE_TZNAME | 
|  | 13247 | extern char *tzname[]; | 
|  | 13248 | #endif | 
|  | 13249 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13250 | int main() | 
|  | 13251 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13252 | /* Note that we need to ensure that not only does tzset(3) | 
|  | 13253 | do 'something' with localtime, but it works as documented | 
|  | 13254 | 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] | 13255 | This includes making sure that tzname is set properly if | 
|  | 13256 | tm->tm_zone does not exist since it is the alternative way | 
|  | 13257 | of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13258 |  | 
|  | 13259 | Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13260 | after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13261 | */ | 
|  | 13262 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13263 | time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13264 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
|  | 13265 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13266 | putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13267 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13268 | if (localtime(&groundhogday)->tm_hour != 0) | 
|  | 13269 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13270 | #if HAVE_TZNAME | 
|  | 13271 | /* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
|  | 13272 | if (strcmp(tzname[0], "UTC") || | 
|  | 13273 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
|  | 13274 | exit(1); | 
|  | 13275 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13276 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13277 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13278 | tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13279 | if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13280 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13281 | #if HAVE_TZNAME | 
|  | 13282 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
|  | 13283 | exit(1); | 
|  | 13284 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13285 |  | 
|  | 13286 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
|  | 13287 | tzset(); | 
|  | 13288 | if (localtime(&groundhogday)->tm_hour != 11) | 
|  | 13289 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13290 | #if HAVE_TZNAME | 
|  | 13291 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
|  | 13292 | exit(1); | 
|  | 13293 | #endif | 
|  | 13294 |  | 
|  | 13295 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13296 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
|  | 13297 | exit(1); | 
|  | 13298 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
|  | 13299 | exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13300 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13301 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13302 | exit(0); | 
|  | 13303 | } | 
|  | 13304 |  | 
|  | 13305 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13306 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13307 | ac_cv_working_tzset=yes | 
|  | 13308 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13309 | ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13310 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13311 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13312 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13313 | fi | 
|  | 13314 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13315 | fi | 
|  | 13316 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
|  | 13318 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13319 | if test "$ac_cv_working_tzset" = yes | 
|  | 13320 | then | 
|  | 13321 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13322 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13323 |  | 
|  | 13324 | fi | 
|  | 13325 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13326 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
|  | 13328 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
|  | 13329 | if test "${ac_cv_stat_tv_nsec+set}" = set; then : | 
|  | 13330 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13331 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13333 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13334 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13335 | int | 
|  | 13336 | main () | 
|  | 13337 | { | 
|  | 13338 |  | 
|  | 13339 | struct stat st; | 
|  | 13340 | st.st_mtim.tv_nsec = 1; | 
|  | 13341 |  | 
|  | 13342 | ; | 
|  | 13343 | return 0; | 
|  | 13344 | } | 
|  | 13345 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13346 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 13347 | ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13348 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13349 | ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13350 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13352 | fi | 
|  | 13353 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
|  | 13355 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13356 | if test "$ac_cv_stat_tv_nsec" = yes | 
|  | 13357 | then | 
|  | 13358 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13359 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13360 |  | 
|  | 13361 | fi | 
|  | 13362 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13363 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
|  | 13365 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
|  | 13366 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then : | 
|  | 13367 | $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13368 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13370 | /* end confdefs.h.  */ | 
|  | 13371 | #include <sys/stat.h> | 
|  | 13372 | int | 
|  | 13373 | main () | 
|  | 13374 | { | 
|  | 13375 |  | 
|  | 13376 | struct stat st; | 
|  | 13377 | st.st_mtimespec.tv_nsec = 1; | 
|  | 13378 |  | 
|  | 13379 | ; | 
|  | 13380 | return 0; | 
|  | 13381 | } | 
|  | 13382 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13383 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13384 | ac_cv_stat_tv_nsec2=yes | 
|  | 13385 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13386 | ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13387 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13389 | fi | 
|  | 13390 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
|  | 13392 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13393 | if test "$ac_cv_stat_tv_nsec2" = yes | 
|  | 13394 | then | 
|  | 13395 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13396 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13397 |  | 
|  | 13398 | fi | 
|  | 13399 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13400 | # On HP/UX 11.0, mvwdelch is a block with a return statement | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
|  | 13402 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
|  | 13403 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then : | 
|  | 13404 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13405 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13407 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13408 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13409 | int | 
|  | 13410 | main () | 
|  | 13411 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13412 |  | 
|  | 13413 | int rtn; | 
|  | 13414 | rtn = mvwdelch(0,0,0); | 
|  | 13415 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13416 | ; | 
|  | 13417 | return 0; | 
|  | 13418 | } | 
|  | 13419 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13420 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13421 | ac_cv_mvwdelch_is_expression=yes | 
|  | 13422 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13423 | ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13424 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13426 | fi | 
|  | 13427 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
|  | 13429 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13430 |  | 
|  | 13431 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
|  | 13432 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13433 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13434 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13435 |  | 
|  | 13436 | fi | 
|  | 13437 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
|  | 13439 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
|  | 13440 | if test "${ac_cv_window_has_flags+set}" = set; then : | 
|  | 13441 | $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13442 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13444 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13445 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13446 | int | 
|  | 13447 | main () | 
|  | 13448 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13449 |  | 
|  | 13450 | WINDOW *w; | 
|  | 13451 | w->_flags = 0; | 
|  | 13452 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13453 | ; | 
|  | 13454 | return 0; | 
|  | 13455 | } | 
|  | 13456 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13457 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13458 | ac_cv_window_has_flags=yes | 
|  | 13459 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13460 | ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13461 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13463 | fi | 
|  | 13464 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
|  | 13466 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13467 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13468 |  | 
|  | 13469 | if test "$ac_cv_window_has_flags" = yes | 
|  | 13470 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13471 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13472 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13473 |  | 
|  | 13474 | fi | 
|  | 13475 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
|  | 13477 | $as_echo_n "checking for is_term_resized... " >&6; } | 
|  | 13478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13479 | /* end confdefs.h.  */ | 
|  | 13480 | #include <curses.h> | 
|  | 13481 | int | 
|  | 13482 | main () | 
|  | 13483 | { | 
|  | 13484 | void *x=is_term_resized | 
|  | 13485 | ; | 
|  | 13486 | return 0; | 
|  | 13487 | } | 
|  | 13488 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13489 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13490 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13491 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13492 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13494 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13495 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13497 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13498 |  | 
|  | 13499 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13501 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
|  | 13503 | $as_echo_n "checking for resize_term... " >&6; } | 
|  | 13504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13505 | /* end confdefs.h.  */ | 
|  | 13506 | #include <curses.h> | 
|  | 13507 | int | 
|  | 13508 | main () | 
|  | 13509 | { | 
|  | 13510 | void *x=resize_term | 
|  | 13511 | ; | 
|  | 13512 | return 0; | 
|  | 13513 | } | 
|  | 13514 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13515 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13516 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13517 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13518 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13520 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13521 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13523 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13524 |  | 
|  | 13525 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13527 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
|  | 13529 | $as_echo_n "checking for resizeterm... " >&6; } | 
|  | 13530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13531 | /* end confdefs.h.  */ | 
|  | 13532 | #include <curses.h> | 
|  | 13533 | int | 
|  | 13534 | main () | 
|  | 13535 | { | 
|  | 13536 | void *x=resizeterm | 
|  | 13537 | ; | 
|  | 13538 | return 0; | 
|  | 13539 | } | 
|  | 13540 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13541 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13542 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13543 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13544 |  | 
| Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13546 | $as_echo "yes" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13547 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13549 | $as_echo "no" >&6; } | 
| Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13550 |  | 
|  | 13551 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 13553 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
|  | 13555 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 13556 |  | 
|  | 13557 | if test -r /dev/ptmx | 
|  | 13558 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13560 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13561 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13562 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13563 |  | 
| Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 13564 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13566 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13567 | fi | 
|  | 13568 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
|  | 13570 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 13571 |  | 
|  | 13572 | if test -r /dev/ptc | 
|  | 13573 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 13575 | $as_echo "yes" >&6; } | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13576 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13577 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13578 |  | 
| Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 13579 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 13581 | $as_echo "no" >&6; } | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13582 | fi | 
|  | 13583 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13584 | if test "$have_long_long" = yes | 
|  | 13585 | then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 | 
|  | 13587 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } | 
|  | 13588 | if test "${ac_cv_have_long_long_format+set}" = set; then : | 
|  | 13589 | $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13590 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13591 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13592 | ac_cv_have_long_long_format=no | 
|  | 13593 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13595 | /* end confdefs.h.  */ | 
|  | 13596 |  | 
|  | 13597 | #include <stdio.h> | 
|  | 13598 | #include <stddef.h> | 
|  | 13599 | #include <string.h> | 
|  | 13600 |  | 
|  | 13601 | #ifdef HAVE_SYS_TYPES_H | 
|  | 13602 | #include <sys/types.h> | 
|  | 13603 | #endif | 
|  | 13604 |  | 
|  | 13605 | int main() | 
|  | 13606 | { | 
|  | 13607 | char buffer[256]; | 
|  | 13608 |  | 
|  | 13609 | if (sprintf(buffer, "%lld", (long long)123) < 0) | 
|  | 13610 | return 1; | 
|  | 13611 | if (strcmp(buffer, "123")) | 
|  | 13612 | return 1; | 
|  | 13613 |  | 
|  | 13614 | if (sprintf(buffer, "%lld", (long long)-123) < 0) | 
|  | 13615 | return 1; | 
|  | 13616 | if (strcmp(buffer, "-123")) | 
|  | 13617 | return 1; | 
|  | 13618 |  | 
|  | 13619 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) | 
|  | 13620 | return 1; | 
|  | 13621 | if (strcmp(buffer, "123")) | 
|  | 13622 | return 1; | 
|  | 13623 |  | 
|  | 13624 | return 0; | 
|  | 13625 | } | 
|  | 13626 |  | 
|  | 13627 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13628 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13629 | ac_cv_have_long_long_format=yes | 
|  | 13630 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13631 | ac_cv_have_long_long_format=no | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13632 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13633 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13634 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13635 | fi | 
|  | 13636 |  | 
|  | 13637 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13638 | fi | 
|  | 13639 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 | 
|  | 13641 | $as_echo "$ac_cv_have_long_long_format" >&6; } | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13642 | fi | 
|  | 13643 |  | 
| Mark Dickinson | 5ce8474 | 2009-12-31 20:48:04 +0000 | [diff] [blame] | 13644 | if test "$ac_cv_have_long_long_format" = yes | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13645 | then | 
|  | 13646 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13647 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13648 |  | 
|  | 13649 | fi | 
|  | 13650 |  | 
| Ronald Oussoren | 315cd0c | 2009-11-19 16:25:21 +0000 | [diff] [blame] | 13651 | if test $ac_sys_system = Darwin | 
|  | 13652 | then | 
|  | 13653 | LIBS="$LIBS -framework CoreFoundation" | 
|  | 13654 | fi | 
|  | 13655 |  | 
| Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13656 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
|  | 13658 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
|  | 13659 | if test "${ac_cv_have_size_t_format+set}" = set; then : | 
|  | 13660 | $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13661 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13662 | if test "$cross_compiling" = yes; then : | 
| Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 13663 | ac_cv_have_size_t_format="cross -- assuming yes" | 
|  | 13664 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13665 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13667 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13668 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13669 | #include <stdio.h> | 
|  | 13670 | #include <stddef.h> | 
|  | 13671 | #include <string.h> | 
|  | 13672 |  | 
| Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 13673 | #ifdef HAVE_SYS_TYPES_H | 
|  | 13674 | #include <sys/types.h> | 
|  | 13675 | #endif | 
| Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 13676 |  | 
|  | 13677 | #ifdef HAVE_SSIZE_T | 
|  | 13678 | typedef ssize_t Py_ssize_t; | 
|  | 13679 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
|  | 13680 | typedef long Py_ssize_t; | 
|  | 13681 | #else | 
|  | 13682 | typedef int Py_ssize_t; | 
|  | 13683 | #endif | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13684 |  | 
| Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 13685 | int main() | 
|  | 13686 | { | 
|  | 13687 | char buffer[256]; | 
|  | 13688 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13689 | if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
|  | 13690 | return 1; | 
|  | 13691 |  | 
| Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 13692 | if (strcmp(buffer, "123")) | 
|  | 13693 | return 1; | 
|  | 13694 |  | 
|  | 13695 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
|  | 13696 | return 1; | 
|  | 13697 |  | 
|  | 13698 | if (strcmp(buffer, "-123")) | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13699 | return 1; | 
|  | 13700 |  | 
|  | 13701 | return 0; | 
|  | 13702 | } | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13703 |  | 
| Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13704 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13705 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13706 | ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13707 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13708 | ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13709 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13710 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 13711 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 13712 | fi | 
|  | 13713 |  | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13714 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
|  | 13716 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 13717 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13718 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13719 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13720 |  | 
|  | 13721 | fi | 
|  | 13722 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13723 | 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] | 13724 | #ifdef HAVE_SYS_TYPES_H | 
|  | 13725 | #include <sys/types.h> | 
|  | 13726 | #endif | 
|  | 13727 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 13728 | #include <sys/socket.h> | 
|  | 13729 | #endif | 
|  | 13730 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13731 | " | 
|  | 13732 | 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] | 13733 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13734 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13735 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13736 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13737 |  | 
|  | 13738 | fi | 
|  | 13739 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13740 |  | 
| Benjamin Peterson | 7497e91 | 2010-10-16 00:53:39 +0000 | [diff] [blame^] | 13741 | case $ac_sys_system in | 
|  | 13742 | AIX*) | 
|  | 13743 |  | 
|  | 13744 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
|  | 13745 | ;; | 
|  | 13746 | esac | 
|  | 13747 |  | 
|  | 13748 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13749 |  | 
|  | 13750 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 13751 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
|  | 13752 | do | 
|  | 13753 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
|  | 13754 | done | 
|  | 13755 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13756 |  | 
| Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 13757 | SRCDIRS="Parser Grammar Objects Python Modules Mac" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
|  | 13759 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13760 | for dir in $SRCDIRS; do | 
|  | 13761 | if test ! -d $dir; then | 
|  | 13762 | mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 13763 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13764 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
|  | 13766 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 13767 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13768 | # generate output files | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 13769 | 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] | 13770 |  | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 13771 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
|  | 13772 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13773 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13774 | # This file is a shell script that caches the results of configure | 
|  | 13775 | # 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] | 13776 | # scripts and configure runs, see configure's option --config-cache. | 
|  | 13777 | # It is not useful on other systems.  If it contains results you don't | 
|  | 13778 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13779 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13780 | # config.status only pays attention to the cache file if you give it | 
|  | 13781 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13782 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13783 | # `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] | 13784 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
|  | 13785 | # following values. | 
|  | 13786 |  | 
|  | 13787 | _ACEOF | 
|  | 13788 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13789 | # The following way of writing the cache mishandles newlines in values, | 
|  | 13790 | # but we know of no workaround that is simple, portable, and efficient. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13791 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13792 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 13793 | # and sets the high bit in the cache file unless we assign to the vars. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13794 | ( | 
|  | 13795 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
|  | 13796 | eval ac_val=\$$ac_var | 
|  | 13797 | case $ac_val in #( | 
|  | 13798 | *${as_nl}*) | 
|  | 13799 | case $ac_var in #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13800 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
|  | 13801 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13802 | esac | 
|  | 13803 | case $ac_var in #( | 
|  | 13804 | _ | IFS | as_nl) ;; #( | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13805 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
|  | 13806 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13807 | esac ;; | 
|  | 13808 | esac | 
|  | 13809 | done | 
|  | 13810 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13811 | (set) 2>&1 | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13812 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
|  | 13813 | *${as_nl}ac_space=\ *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13814 | # `set' does not quote correctly, so add quotes: double-quote | 
|  | 13815 | # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13816 | sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13817 | "s/'/'\\\\''/g; | 
|  | 13818 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13819 | ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13820 | *) | 
|  | 13821 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13822 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13823 | ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13824 | esac | | 
|  | 13825 | sort | 
|  | 13826 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13827 | sed ' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13828 | /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13829 | t clear | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13830 | :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13831 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
|  | 13832 | t end | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13833 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
|  | 13834 | :end' >>confcache | 
|  | 13835 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
|  | 13836 | if test -w "$cache_file"; then | 
|  | 13837 | test "x$cache_file" != "x/dev/null" && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13838 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
|  | 13839 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13840 | cat confcache >$cache_file | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13841 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
|  | 13843 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13844 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13845 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13846 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13847 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13848 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 13849 | # Let make expand exec_prefix. | 
|  | 13850 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13851 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13852 | DEFS=-DHAVE_CONFIG_H | 
|  | 13853 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13854 | ac_libobjs= | 
|  | 13855 | ac_ltlibobjs= | 
|  | 13856 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
|  | 13857 | # 1. Remove the extension, and $U if already installed. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13858 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13859 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13860 | # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
|  | 13861 | #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13862 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
|  | 13863 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13864 | done | 
|  | 13865 | LIBOBJS=$ac_libobjs | 
|  | 13866 |  | 
|  | 13867 | LTLIBOBJS=$ac_ltlibobjs | 
|  | 13868 |  | 
|  | 13869 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13870 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13871 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13872 | : ${CONFIG_STATUS=./config.status} | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13873 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13874 | ac_clean_files_save=$ac_clean_files | 
|  | 13875 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13876 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
|  | 13877 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
|  | 13878 | as_write_fail=0 | 
|  | 13879 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13880 | #! $SHELL | 
|  | 13881 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13882 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13883 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13884 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13885 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13886 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13887 | ac_cs_recheck=false | 
|  | 13888 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13889 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13890 | SHELL=\${CONFIG_SHELL-$SHELL} | 
|  | 13891 | export SHELL | 
|  | 13892 | _ASEOF | 
|  | 13893 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
|  | 13894 | ## -------------------- ## | 
|  | 13895 | ## M4sh Initialization. ## | 
|  | 13896 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13897 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13898 | # Be more Bourne compatible | 
|  | 13899 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13900 | 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] | 13901 | emulate sh | 
|  | 13902 | NULLCMD=: | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13903 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13904 | # is contrary to our usage.  Disable this feature. | 
|  | 13905 | alias -g '${1+"$@"}'='"$@"' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13906 | setopt NO_GLOB_SUBST | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 13907 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13908 | case `(set -o) 2>/dev/null` in #( | 
|  | 13909 | *posix*) : | 
|  | 13910 | set -o posix ;; #( | 
|  | 13911 | *) : | 
|  | 13912 | ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13913 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13914 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13915 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13916 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13917 | as_nl=' | 
|  | 13918 | ' | 
|  | 13919 | export as_nl | 
|  | 13920 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
|  | 13921 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 13922 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 13923 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 13924 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
|  | 13925 | # but without wasting forks for bash or zsh. | 
|  | 13926 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
|  | 13927 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 13928 | as_echo='print -r --' | 
|  | 13929 | as_echo_n='print -rn --' | 
|  | 13930 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 13931 | as_echo='printf %s\n' | 
|  | 13932 | as_echo_n='printf %s' | 
|  | 13933 | else | 
|  | 13934 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
|  | 13935 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
|  | 13936 | as_echo_n='/usr/ucb/echo -n' | 
|  | 13937 | else | 
|  | 13938 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
|  | 13939 | as_echo_n_body='eval | 
|  | 13940 | arg=$1; | 
|  | 13941 | case $arg in #( | 
|  | 13942 | *"$as_nl"*) | 
|  | 13943 | expr "X$arg" : "X\\(.*\\)$as_nl"; | 
|  | 13944 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
|  | 13945 | esac; | 
|  | 13946 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
|  | 13947 | ' | 
|  | 13948 | export as_echo_n_body | 
|  | 13949 | as_echo_n='sh -c $as_echo_n_body as_echo' | 
|  | 13950 | fi | 
|  | 13951 | export as_echo_body | 
|  | 13952 | as_echo='sh -c $as_echo_body as_echo' | 
|  | 13953 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13954 |  | 
|  | 13955 | # The user is always right. | 
|  | 13956 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13957 | PATH_SEPARATOR=: | 
|  | 13958 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
|  | 13959 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
|  | 13960 | PATH_SEPARATOR=';' | 
|  | 13961 | } | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13962 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13963 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13964 |  | 
|  | 13965 | # IFS | 
|  | 13966 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 13967 | # there to prevent editors from complaining about space-tab. | 
|  | 13968 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 13969 | # splitting by setting IFS to empty value.) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13970 | IFS=" ""	$as_nl" | 
|  | 13971 |  | 
|  | 13972 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13973 | case $0 in #(( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13974 | *[\\/]* ) as_myself=$0 ;; | 
|  | 13975 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13976 | for as_dir in $PATH | 
|  | 13977 | do | 
|  | 13978 | IFS=$as_save_IFS | 
|  | 13979 | test -z "$as_dir" && as_dir=. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13980 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 13981 | done | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13982 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13983 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13984 | ;; | 
|  | 13985 | esac | 
|  | 13986 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 13987 | # in which case we are not to be found in the path. | 
|  | 13988 | if test "x$as_myself" = x; then | 
|  | 13989 | as_myself=$0 | 
|  | 13990 | fi | 
|  | 13991 | if test ! -f "$as_myself"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13992 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
|  | 13993 | exit 1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13994 | fi | 
|  | 13995 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13996 | # Unset variables that we do not need and which cause bugs (e.g. in | 
|  | 13997 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
|  | 13998 | # suppresses any "Segmentation fault" message there.  '((' could | 
|  | 13999 | # trigger a bug in pdksh 5.2.14. | 
|  | 14000 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
|  | 14001 | do eval test x\${$as_var+set} = xset \ | 
|  | 14002 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14003 | done | 
|  | 14004 | PS1='$ ' | 
|  | 14005 | PS2='> ' | 
|  | 14006 | PS4='+ ' | 
|  | 14007 |  | 
|  | 14008 | # NLS nuisances. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14009 | LC_ALL=C | 
|  | 14010 | export LC_ALL | 
|  | 14011 | LANGUAGE=C | 
|  | 14012 | export LANGUAGE | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14013 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14014 | # CDPATH. | 
|  | 14015 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 14016 |  | 
|  | 14017 |  | 
|  | 14018 | # as_fn_error ERROR [LINENO LOG_FD] | 
|  | 14019 | # --------------------------------- | 
|  | 14020 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
|  | 14021 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
|  | 14022 | # script with status $?, using 1 if that was 0. | 
|  | 14023 | as_fn_error () | 
|  | 14024 | { | 
|  | 14025 | as_status=$?; test $as_status -eq 0 && as_status=1 | 
|  | 14026 | if test "$3"; then | 
|  | 14027 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 14028 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | 
|  | 14029 | fi | 
|  | 14030 | $as_echo "$as_me: error: $1" >&2 | 
|  | 14031 | as_fn_exit $as_status | 
|  | 14032 | } # as_fn_error | 
|  | 14033 |  | 
|  | 14034 |  | 
|  | 14035 | # as_fn_set_status STATUS | 
|  | 14036 | # ----------------------- | 
|  | 14037 | # Set $? to STATUS, without forking. | 
|  | 14038 | as_fn_set_status () | 
|  | 14039 | { | 
|  | 14040 | return $1 | 
|  | 14041 | } # as_fn_set_status | 
|  | 14042 |  | 
|  | 14043 | # as_fn_exit STATUS | 
|  | 14044 | # ----------------- | 
|  | 14045 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
|  | 14046 | as_fn_exit () | 
|  | 14047 | { | 
|  | 14048 | set +e | 
|  | 14049 | as_fn_set_status $1 | 
|  | 14050 | exit $1 | 
|  | 14051 | } # as_fn_exit | 
|  | 14052 |  | 
|  | 14053 | # as_fn_unset VAR | 
|  | 14054 | # --------------- | 
|  | 14055 | # Portably unset VAR. | 
|  | 14056 | as_fn_unset () | 
|  | 14057 | { | 
|  | 14058 | { eval $1=; unset $1;} | 
|  | 14059 | } | 
|  | 14060 | as_unset=as_fn_unset | 
|  | 14061 | # as_fn_append VAR VALUE | 
|  | 14062 | # ---------------------- | 
|  | 14063 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
|  | 14064 | # advantage of any shell optimizations that allow amortized linear growth over | 
|  | 14065 | # repeated appends, instead of the typical quadratic growth present in naive | 
|  | 14066 | # implementations. | 
|  | 14067 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
|  | 14068 | eval 'as_fn_append () | 
|  | 14069 | { | 
|  | 14070 | eval $1+=\$2 | 
|  | 14071 | }' | 
|  | 14072 | else | 
|  | 14073 | as_fn_append () | 
|  | 14074 | { | 
|  | 14075 | eval $1=\$$1\$2 | 
|  | 14076 | } | 
|  | 14077 | fi # as_fn_append | 
|  | 14078 |  | 
|  | 14079 | # as_fn_arith ARG... | 
|  | 14080 | # ------------------ | 
|  | 14081 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
|  | 14082 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
|  | 14083 | # must be portable across $(()) and expr. | 
|  | 14084 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
|  | 14085 | eval 'as_fn_arith () | 
|  | 14086 | { | 
|  | 14087 | as_val=$(( $* )) | 
|  | 14088 | }' | 
|  | 14089 | else | 
|  | 14090 | as_fn_arith () | 
|  | 14091 | { | 
|  | 14092 | as_val=`expr "$@" || test $? -eq 1` | 
|  | 14093 | } | 
|  | 14094 | fi # as_fn_arith | 
|  | 14095 |  | 
|  | 14096 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14097 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 14098 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 14099 | as_expr=expr | 
|  | 14100 | else | 
|  | 14101 | as_expr=false | 
|  | 14102 | fi | 
|  | 14103 |  | 
|  | 14104 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 14105 | as_basename=basename | 
|  | 14106 | else | 
|  | 14107 | as_basename=false | 
|  | 14108 | fi | 
|  | 14109 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14110 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 14111 | as_dirname=dirname | 
|  | 14112 | else | 
|  | 14113 | as_dirname=false | 
|  | 14114 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14115 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14116 | as_me=`$as_basename -- "$0" || | 
|  | 14117 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 14118 | X"$0" : 'X\(//\)$' \| \ | 
|  | 14119 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14120 | $as_echo X/"$0" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14121 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 14122 | s//\1/ | 
|  | 14123 | q | 
|  | 14124 | } | 
|  | 14125 | /^X\/\(\/\/\)$/{ | 
|  | 14126 | s//\1/ | 
|  | 14127 | q | 
|  | 14128 | } | 
|  | 14129 | /^X\/\(\/\).*/{ | 
|  | 14130 | s//\1/ | 
|  | 14131 | q | 
|  | 14132 | } | 
|  | 14133 | s/.*/./; q'` | 
|  | 14134 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14135 | # Avoid depending upon Character Ranges. | 
|  | 14136 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 14137 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 14138 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 14139 | as_cr_digits='0123456789' | 
|  | 14140 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14141 |  | 
|  | 14142 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14143 | case `echo -n x` in #((((( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14144 | -n*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14145 | case `echo 'xy\c'` in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14146 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14147 | xy)  ECHO_C='\c';; | 
|  | 14148 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 14149 | ECHO_T='	';; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14150 | esac;; | 
|  | 14151 | *) | 
|  | 14152 | ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14153 | esac | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14154 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14155 | rm -f conf$$ conf$$.exe conf$$.file | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14156 | if test -d conf$$.dir; then | 
|  | 14157 | rm -f conf$$.dir/conf$$.file | 
|  | 14158 | else | 
|  | 14159 | rm -f conf$$.dir | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14160 | mkdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14161 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14162 | if (echo >conf$$.file) 2>/dev/null; then | 
|  | 14163 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 14164 | as_ln_s='ln -s' | 
|  | 14165 | # ... but there are two gotchas: | 
|  | 14166 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 14167 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
|  | 14168 | # In both cases, we have to default to `cp -p'. | 
|  | 14169 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
|  | 14170 | as_ln_s='cp -p' | 
|  | 14171 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 14172 | as_ln_s=ln | 
|  | 14173 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14174 | as_ln_s='cp -p' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14175 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14176 | else | 
|  | 14177 | as_ln_s='cp -p' | 
|  | 14178 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14179 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 14180 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14181 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14182 |  | 
|  | 14183 | # as_fn_mkdir_p | 
|  | 14184 | # ------------- | 
|  | 14185 | # Create "$as_dir" as a directory, including parents if necessary. | 
|  | 14186 | as_fn_mkdir_p () | 
|  | 14187 | { | 
|  | 14188 |  | 
|  | 14189 | case $as_dir in #( | 
|  | 14190 | -*) as_dir=./$as_dir;; | 
|  | 14191 | esac | 
|  | 14192 | test -d "$as_dir" || eval $as_mkdir_p || { | 
|  | 14193 | as_dirs= | 
|  | 14194 | while :; do | 
|  | 14195 | case $as_dir in #( | 
|  | 14196 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
|  | 14197 | *) as_qdir=$as_dir;; | 
|  | 14198 | esac | 
|  | 14199 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 14200 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 14201 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 14202 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 14203 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 14204 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 14205 | $as_echo X"$as_dir" | | 
|  | 14206 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 14207 | s//\1/ | 
|  | 14208 | q | 
|  | 14209 | } | 
|  | 14210 | /^X\(\/\/\)[^/].*/{ | 
|  | 14211 | s//\1/ | 
|  | 14212 | q | 
|  | 14213 | } | 
|  | 14214 | /^X\(\/\/\)$/{ | 
|  | 14215 | s//\1/ | 
|  | 14216 | q | 
|  | 14217 | } | 
|  | 14218 | /^X\(\/\).*/{ | 
|  | 14219 | s//\1/ | 
|  | 14220 | q | 
|  | 14221 | } | 
|  | 14222 | s/.*/./; q'` | 
|  | 14223 | test -d "$as_dir" && break | 
|  | 14224 | done | 
|  | 14225 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
|  | 14226 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | 
|  | 14227 |  | 
|  | 14228 |  | 
|  | 14229 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14230 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14231 | as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14232 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14233 | test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14234 | as_mkdir_p=false | 
|  | 14235 | fi | 
|  | 14236 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14237 | if test -x / >/dev/null 2>&1; then | 
|  | 14238 | as_test_x='test -x' | 
|  | 14239 | else | 
|  | 14240 | if ls -dL / >/dev/null 2>&1; then | 
|  | 14241 | as_ls_L_option=L | 
|  | 14242 | else | 
|  | 14243 | as_ls_L_option= | 
|  | 14244 | fi | 
|  | 14245 | as_test_x=' | 
|  | 14246 | eval sh -c '\'' | 
|  | 14247 | if test -d "$1"; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14248 | test -d "$1/."; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14249 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14250 | case $1 in #( | 
|  | 14251 | -*)set "./$1";; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14252 | esac; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14253 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14254 | ???[sx]*):;;*)false;;esac;fi | 
|  | 14255 | '\'' sh | 
|  | 14256 | ' | 
|  | 14257 | fi | 
|  | 14258 | as_executable_p=$as_test_x | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14259 |  | 
|  | 14260 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14261 | 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] | 14262 |  | 
|  | 14263 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14264 | 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] | 14265 |  | 
|  | 14266 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14267 | exec 6>&1 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14268 | ## ----------------------------------- ## | 
|  | 14269 | ## Main body of $CONFIG_STATUS script. ## | 
|  | 14270 | ## ----------------------------------- ## | 
|  | 14271 | _ASEOF | 
|  | 14272 | 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] | 14273 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14274 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 14275 | # 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] | 14276 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14277 | # values after options handling. | 
|  | 14278 | ac_log=" | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 14279 | This file was extended by python $as_me 2.7, which was | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14280 | generated by GNU Autoconf 2.65.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14281 |  | 
|  | 14282 | CONFIG_FILES    = $CONFIG_FILES | 
|  | 14283 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
|  | 14284 | CONFIG_LINKS    = $CONFIG_LINKS | 
|  | 14285 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
|  | 14286 | $ $0 $@ | 
|  | 14287 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14288 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 14289 | " | 
|  | 14290 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14291 | _ACEOF | 
|  | 14292 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14293 | case $ac_config_files in *" | 
|  | 14294 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
|  | 14295 | esac | 
|  | 14296 |  | 
|  | 14297 | case $ac_config_headers in *" | 
|  | 14298 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
|  | 14299 | esac | 
|  | 14300 |  | 
|  | 14301 |  | 
|  | 14302 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14303 | # Files that config.status was made for. | 
| Benjamin Peterson | 7497e91 | 2010-10-16 00:53:39 +0000 | [diff] [blame^] | 14304 | config_files="$ac_config_files" | 
|  | 14305 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14306 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14307 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14308 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14309 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14310 | ac_cs_usage="\ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14311 | \`$as_me' instantiates files and other configuration actions | 
|  | 14312 | from templates according to the current configuration.  Unless the files | 
|  | 14313 | 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] | 14314 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14315 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14316 |  | 
|  | 14317 | -h, --help       print this help, then exit | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14318 | -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14319 | --config     print configuration, then exit | 
|  | 14320 | -q, --quiet, --silent | 
|  | 14321 | do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14322 | -d, --debug      don't remove temporary files | 
|  | 14323 | --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14324 | --file=FILE[:TEMPLATE] | 
|  | 14325 | instantiate the configuration file FILE | 
|  | 14326 | --header=FILE[:TEMPLATE] | 
|  | 14327 | instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14328 |  | 
|  | 14329 | Configuration files: | 
|  | 14330 | $config_files | 
|  | 14331 |  | 
|  | 14332 | Configuration headers: | 
|  | 14333 | $config_headers | 
|  | 14334 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14335 | Report bugs to <http://bugs.python.org/>." | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 14336 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14337 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14338 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 14339 | 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] | 14340 | ac_cs_version="\\ | 
| Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 14341 | python config.status 2.7 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14342 | configured by $0, generated by GNU Autoconf 2.65, | 
|  | 14343 | with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14344 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14345 | Copyright (C) 2009 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14346 | This config.status script is free software; the Free Software Foundation | 
|  | 14347 | gives unlimited permission to copy, distribute and modify it." | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14348 |  | 
|  | 14349 | ac_pwd='$ac_pwd' | 
|  | 14350 | srcdir='$srcdir' | 
|  | 14351 | INSTALL='$INSTALL' | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14352 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14353 | _ACEOF | 
|  | 14354 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14355 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 14356 | # 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] | 14357 | ac_need_defaults=: | 
|  | 14358 | while test $# != 0 | 
|  | 14359 | do | 
|  | 14360 | case $1 in | 
|  | 14361 | --*=*) | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14362 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 14363 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14364 | ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14365 | ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14366 | *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14367 | ac_option=$1 | 
|  | 14368 | ac_optarg=$2 | 
|  | 14369 | ac_shift=shift | 
|  | 14370 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14371 | esac | 
|  | 14372 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14373 | case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14374 | # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14375 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|  | 14376 | ac_cs_recheck=: ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14377 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14378 | $as_echo "$ac_cs_version"; exit ;; | 
|  | 14379 | --config | --confi | --conf | --con | --co | --c ) | 
|  | 14380 | $as_echo "$ac_cs_config"; exit ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14381 | --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14382 | debug=: ;; | 
|  | 14383 | --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14384 | $ac_shift | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14385 | case $ac_optarg in | 
|  | 14386 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 14387 | esac | 
|  | 14388 | as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14389 | ac_need_defaults=false;; | 
|  | 14390 | --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14391 | $ac_shift | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14392 | case $ac_optarg in | 
|  | 14393 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 14394 | esac | 
|  | 14395 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14396 | ac_need_defaults=false;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14397 | --he | --h) | 
|  | 14398 | # Conflict between --help and --header | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14399 | as_fn_error "ambiguous option: \`$1' | 
|  | 14400 | Try \`$0 --help' for more information.";; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14401 | --help | --hel | -h ) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14402 | $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14403 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 14404 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
|  | 14405 | ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14406 |  | 
|  | 14407 | # This is an error. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14408 | -*) as_fn_error "unrecognized option: \`$1' | 
|  | 14409 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14410 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14411 | *) as_fn_append ac_config_targets " $1" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14412 | ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14413 |  | 
|  | 14414 | esac | 
|  | 14415 | shift | 
|  | 14416 | done | 
|  | 14417 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14418 | ac_configure_extra_args= | 
|  | 14419 |  | 
|  | 14420 | if $ac_cs_silent; then | 
|  | 14421 | exec 6>/dev/null | 
|  | 14422 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
|  | 14423 | fi | 
|  | 14424 |  | 
|  | 14425 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14426 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14427 | if \$ac_cs_recheck; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14428 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
|  | 14429 | shift | 
|  | 14430 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
|  | 14431 | CONFIG_SHELL='$SHELL' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14432 | export CONFIG_SHELL | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14433 | exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14434 | fi | 
|  | 14435 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14436 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14437 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14438 | exec 5>>config.log | 
|  | 14439 | { | 
|  | 14440 | echo | 
|  | 14441 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
|  | 14442 | ## Running $as_me. ## | 
|  | 14443 | _ASBOX | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14444 | $as_echo "$ac_log" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14445 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14446 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14447 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14448 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14449 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14450 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14451 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14452 |  | 
|  | 14453 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14454 | for ac_config_target in $ac_config_targets | 
|  | 14455 | do | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14456 | case $ac_config_target in | 
|  | 14457 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
|  | 14458 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
|  | 14459 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
|  | 14460 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; | 
| Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 14461 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
|  | 14462 | "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14463 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
|  | 14464 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; | 
| Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 14465 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 14466 | "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14467 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14468 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14469 | esac | 
|  | 14470 | done | 
|  | 14471 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14472 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14473 | # If the user did not use the arguments to specify the items to instantiate, | 
|  | 14474 | # then the envvar interface is used.  Set only those that are not. | 
|  | 14475 | # We use the long form for the default assignment because of an extremely | 
|  | 14476 | # bizarre bug on SunOS 4.1.3. | 
|  | 14477 | if $ac_need_defaults; then | 
|  | 14478 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
|  | 14479 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
|  | 14480 | fi | 
|  | 14481 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14482 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14483 | # 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] | 14484 | # creating and moving files from /tmp can sometimes cause problems. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14485 | # Hook for its removal unless debugging. | 
|  | 14486 | # Note that there is a small window in which the directory will not be cleaned: | 
|  | 14487 | # 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] | 14488 | $debug || | 
|  | 14489 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14490 | tmp= | 
|  | 14491 | trap 'exit_status=$? | 
|  | 14492 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | 
|  | 14493 | ' 0 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14494 | trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14495 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14496 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14497 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14498 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14499 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14500 | test -n "$tmp" && test -d "$tmp" | 
|  | 14501 | }  || | 
|  | 14502 | { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14503 | tmp=./conf$$-$RANDOM | 
|  | 14504 | (umask 077 && mkdir "$tmp") | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14505 | } || 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] | 14506 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14507 | # Set up the scripts for CONFIG_FILES section. | 
|  | 14508 | # No need to generate them if there are no CONFIG_FILES. | 
|  | 14509 | # This happens for instance with `./config.status config.h'. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14510 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14511 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14512 |  | 
|  | 14513 | ac_cr=`echo X | tr X '\015'` | 
|  | 14514 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
|  | 14515 | # But we know of no other shell where ac_cr would be empty at this | 
|  | 14516 | # point, so we can use a bashism as a fallback. | 
|  | 14517 | if test "x$ac_cr" = x; then | 
|  | 14518 | eval ac_cr=\$\'\\r\' | 
|  | 14519 | fi | 
|  | 14520 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
|  | 14521 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
|  | 14522 | ac_cs_awk_cr='\r' | 
|  | 14523 | else | 
|  | 14524 | ac_cs_awk_cr=$ac_cr | 
|  | 14525 | fi | 
|  | 14526 |  | 
|  | 14527 | echo 'BEGIN {' >"$tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14528 | _ACEOF | 
|  | 14529 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14530 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14531 | { | 
|  | 14532 | echo "cat >conf$$subs.awk <<_ACEOF" && | 
|  | 14533 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
|  | 14534 | echo "_ACEOF" | 
|  | 14535 | } >conf$$subs.sh || | 
|  | 14536 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | 
|  | 14537 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14538 | ac_delim='%!_!# ' | 
|  | 14539 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14540 | . ./conf$$subs.sh || | 
|  | 14541 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14542 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14543 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
|  | 14544 | if test $ac_delim_n = $ac_delim_num; then | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14545 | break | 
|  | 14546 | elif $ac_last_try; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14547 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14548 | else | 
|  | 14549 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14550 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14551 | done | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14552 | rm -f conf$$subs.sh | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14553 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14554 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 14555 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14556 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14557 | sed -n ' | 
|  | 14558 | h | 
|  | 14559 | s/^/S["/; s/!.*/"]=/ | 
|  | 14560 | p | 
|  | 14561 | g | 
|  | 14562 | s/^[^!]*!// | 
|  | 14563 | :repl | 
|  | 14564 | t repl | 
|  | 14565 | s/'"$ac_delim"'$// | 
|  | 14566 | t delim | 
|  | 14567 | :nl | 
|  | 14568 | h | 
|  | 14569 | s/\(.\{148\}\)..*/\1/ | 
|  | 14570 | t more1 | 
|  | 14571 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
|  | 14572 | p | 
|  | 14573 | n | 
|  | 14574 | b repl | 
|  | 14575 | :more1 | 
|  | 14576 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 14577 | p | 
|  | 14578 | g | 
|  | 14579 | s/.\{148\}// | 
|  | 14580 | t nl | 
|  | 14581 | :delim | 
|  | 14582 | h | 
|  | 14583 | s/\(.\{148\}\)..*/\1/ | 
|  | 14584 | t more2 | 
|  | 14585 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
|  | 14586 | p | 
|  | 14587 | b | 
|  | 14588 | :more2 | 
|  | 14589 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 14590 | p | 
|  | 14591 | g | 
|  | 14592 | s/.\{148\}// | 
|  | 14593 | t delim | 
|  | 14594 | ' <conf$$subs.awk | sed ' | 
|  | 14595 | /^[^""]/{ | 
|  | 14596 | N | 
|  | 14597 | s/\n// | 
|  | 14598 | } | 
|  | 14599 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 14600 | rm -f conf$$subs.awk | 
|  | 14601 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 14602 | _ACAWK | 
|  | 14603 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | 
|  | 14604 | for (key in S) S_is_set[key] = 1 | 
|  | 14605 | FS = "" | 
|  | 14606 |  | 
|  | 14607 | } | 
|  | 14608 | { | 
|  | 14609 | line = $ 0 | 
|  | 14610 | nfields = split(line, field, "@") | 
|  | 14611 | substed = 0 | 
|  | 14612 | len = length(field[1]) | 
|  | 14613 | for (i = 2; i < nfields; i++) { | 
|  | 14614 | key = field[i] | 
|  | 14615 | keylen = length(key) | 
|  | 14616 | if (S_is_set[key]) { | 
|  | 14617 | value = S[key] | 
|  | 14618 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
|  | 14619 | len += length(value) + length(field[++i]) | 
|  | 14620 | substed = 1 | 
|  | 14621 | } else | 
|  | 14622 | len += 1 + keylen | 
|  | 14623 | } | 
|  | 14624 |  | 
|  | 14625 | print line | 
|  | 14626 | } | 
|  | 14627 |  | 
|  | 14628 | _ACAWK | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14629 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14630 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 14631 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
|  | 14632 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
|  | 14633 | else | 
|  | 14634 | cat | 
|  | 14635 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | 
|  | 14636 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | 
| Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14637 | _ACEOF | 
|  | 14638 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14639 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | 
|  | 14640 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 
|  | 14641 | # trailing colons and then remove the whole line if VPATH becomes empty | 
|  | 14642 | # (actually we leave an empty line to preserve line numbers). | 
|  | 14643 | if test "x$srcdir" = x.; then | 
|  | 14644 | ac_vpsub='/^[	 ]*VPATH[	 ]*=/{ | 
|  | 14645 | s/:*\$(srcdir):*/:/ | 
|  | 14646 | s/:*\${srcdir}:*/:/ | 
|  | 14647 | s/:*@srcdir@:*/:/ | 
|  | 14648 | s/^\([^=]*=[	 ]*\):*/\1/ | 
|  | 14649 | s/:*$// | 
|  | 14650 | s/^[^=]*=[	 ]*$// | 
|  | 14651 | }' | 
|  | 14652 | fi | 
|  | 14653 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14654 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14655 | fi # test -n "$CONFIG_FILES" | 
|  | 14656 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14657 | # Set up the scripts for CONFIG_HEADERS section. | 
|  | 14658 | # No need to generate them if there are no CONFIG_HEADERS. | 
|  | 14659 | # This happens for instance with `./config.status Makefile'. | 
|  | 14660 | if test -n "$CONFIG_HEADERS"; then | 
|  | 14661 | cat >"$tmp/defines.awk" <<\_ACAWK || | 
|  | 14662 | BEGIN { | 
|  | 14663 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14664 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14665 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
|  | 14666 | # here-document in config.status, that substitutes the proper values into | 
|  | 14667 | # config.h.in to produce config.h. | 
|  | 14668 |  | 
|  | 14669 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
|  | 14670 | # handling of long lines. | 
|  | 14671 | ac_delim='%!_!# ' | 
|  | 14672 | for ac_last_try in false false :; do | 
|  | 14673 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | 
|  | 14674 | if test -z "$ac_t"; then | 
|  | 14675 | break | 
|  | 14676 | elif $ac_last_try; then | 
|  | 14677 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
|  | 14678 | else | 
|  | 14679 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
|  | 14680 | fi | 
|  | 14681 | done | 
|  | 14682 |  | 
|  | 14683 | # For the awk script, D is an array of macro values keyed by name, | 
|  | 14684 | # likewise P contains macro parameters if any.  Preserve backslash | 
|  | 14685 | # newline sequences. | 
|  | 14686 |  | 
|  | 14687 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
|  | 14688 | sed -n ' | 
|  | 14689 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 14690 | t rset | 
|  | 14691 | :rset | 
|  | 14692 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
|  | 14693 | t def | 
|  | 14694 | d | 
|  | 14695 | :def | 
|  | 14696 | s/\\$// | 
|  | 14697 | t bsnl | 
|  | 14698 | s/["\\]/\\&/g | 
|  | 14699 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 14700 | D["\1"]=" \3"/p | 
|  | 14701 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
|  | 14702 | d | 
|  | 14703 | :bsnl | 
|  | 14704 | s/["\\]/\\&/g | 
|  | 14705 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 14706 | D["\1"]=" \3\\\\\\n"\\/p | 
|  | 14707 | t cont | 
|  | 14708 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
|  | 14709 | t cont | 
|  | 14710 | d | 
|  | 14711 | :cont | 
|  | 14712 | n | 
|  | 14713 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 14714 | t clear | 
|  | 14715 | :clear | 
|  | 14716 | s/\\$// | 
|  | 14717 | t bsnlc | 
|  | 14718 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
|  | 14719 | d | 
|  | 14720 | :bsnlc | 
|  | 14721 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
|  | 14722 | b cont | 
|  | 14723 | ' <confdefs.h | sed ' | 
|  | 14724 | s/'"$ac_delim"'/"\\\ | 
|  | 14725 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 14726 |  | 
|  | 14727 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 14728 | for (key in D) D_is_set[key] = 1 | 
|  | 14729 | FS = "" | 
|  | 14730 | } | 
|  | 14731 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
|  | 14732 | line = \$ 0 | 
|  | 14733 | split(line, arg, " ") | 
|  | 14734 | if (arg[1] == "#") { | 
|  | 14735 | defundef = arg[2] | 
|  | 14736 | mac1 = arg[3] | 
|  | 14737 | } else { | 
|  | 14738 | defundef = substr(arg[1], 2) | 
|  | 14739 | mac1 = arg[2] | 
|  | 14740 | } | 
|  | 14741 | split(mac1, mac2, "(") #) | 
|  | 14742 | macro = mac2[1] | 
|  | 14743 | prefix = substr(line, 1, index(line, defundef) - 1) | 
|  | 14744 | if (D_is_set[macro]) { | 
|  | 14745 | # Preserve the white space surrounding the "#". | 
|  | 14746 | print prefix "define", macro P[macro] D[macro] | 
|  | 14747 | next | 
|  | 14748 | } else { | 
|  | 14749 | # Replace #undef with comments.  This is necessary, for example, | 
|  | 14750 | # in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 14751 | # on some systems where configure will not decide to define it. | 
|  | 14752 | if (defundef == "undef") { | 
|  | 14753 | print "/*", prefix defundef, macro, "*/" | 
|  | 14754 | next | 
|  | 14755 | } | 
|  | 14756 | } | 
|  | 14757 | } | 
|  | 14758 | { print } | 
|  | 14759 | _ACAWK | 
|  | 14760 | _ACEOF | 
|  | 14761 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 14762 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | 
|  | 14763 | fi # test -n "$CONFIG_HEADERS" | 
|  | 14764 |  | 
|  | 14765 |  | 
|  | 14766 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
|  | 14767 | shift | 
|  | 14768 | for ac_tag | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14769 | do | 
|  | 14770 | case $ac_tag in | 
|  | 14771 | :[FHLC]) ac_mode=$ac_tag; continue;; | 
|  | 14772 | esac | 
|  | 14773 | case $ac_mode$ac_tag in | 
|  | 14774 | :[FHL]*:*);; | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14775 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14776 | :[FH]-) ac_tag=-:-;; | 
|  | 14777 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
|  | 14778 | esac | 
|  | 14779 | ac_save_IFS=$IFS | 
|  | 14780 | IFS=: | 
|  | 14781 | set x $ac_tag | 
|  | 14782 | IFS=$ac_save_IFS | 
|  | 14783 | shift | 
|  | 14784 | ac_file=$1 | 
|  | 14785 | shift | 
|  | 14786 |  | 
|  | 14787 | case $ac_mode in | 
|  | 14788 | :L) ac_source=$1;; | 
|  | 14789 | :[FH]) | 
|  | 14790 | ac_file_inputs= | 
|  | 14791 | for ac_f | 
|  | 14792 | do | 
|  | 14793 | case $ac_f in | 
|  | 14794 | -) ac_f="$tmp/stdin";; | 
|  | 14795 | *) # Look for the file first in the build tree, then in the source tree | 
|  | 14796 | # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
|  | 14797 | # because $ac_f cannot contain `:'. | 
|  | 14798 | test -f "$ac_f" || | 
|  | 14799 | case $ac_f in | 
|  | 14800 | [\\/$]*) false;; | 
|  | 14801 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
|  | 14802 | esac || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14803 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14804 | esac | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14805 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
|  | 14806 | as_fn_append ac_file_inputs " '$ac_f'" | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14807 | done | 
|  | 14808 |  | 
|  | 14809 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 14810 | # use $as_me), people would be surprised to read: | 
|  | 14811 | #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14812 | configure_input='Generated from '` | 
|  | 14813 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
|  | 14814 | `' by configure.' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14815 | if test x"$ac_file" != x-; then | 
|  | 14816 | configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14817 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
|  | 14818 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14819 | fi | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14820 | # Neutralize special characters interpreted by sed in replacement strings. | 
|  | 14821 | case $configure_input in #( | 
|  | 14822 | *\&* | *\|* | *\\* ) | 
|  | 14823 | ac_sed_conf_input=`$as_echo "$configure_input" | | 
|  | 14824 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
|  | 14825 | *) ac_sed_conf_input=$configure_input;; | 
|  | 14826 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14827 |  | 
|  | 14828 | case $ac_tag in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14829 | *:-:* | *:-) cat >"$tmp/stdin" \ | 
|  | 14830 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14831 | esac | 
|  | 14832 | ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14833 | esac | 
|  | 14834 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14835 | ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14836 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14837 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 14838 | X"$ac_file" : 'X\(//\)$' \| \ | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14839 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14840 | $as_echo X"$ac_file" | | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14841 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 14842 | s//\1/ | 
|  | 14843 | q | 
|  | 14844 | } | 
|  | 14845 | /^X\(\/\/\)[^/].*/{ | 
|  | 14846 | s//\1/ | 
|  | 14847 | q | 
|  | 14848 | } | 
|  | 14849 | /^X\(\/\/\)$/{ | 
|  | 14850 | s//\1/ | 
|  | 14851 | q | 
|  | 14852 | } | 
|  | 14853 | /^X\(\/\).*/{ | 
|  | 14854 | s//\1/ | 
|  | 14855 | q | 
|  | 14856 | } | 
|  | 14857 | s/.*/./; q'` | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14858 | as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14859 | ac_builddir=. | 
|  | 14860 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14861 | case "$ac_dir" in | 
|  | 14862 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 14863 | *) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14864 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14865 | # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14866 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14867 | case $ac_top_builddir_sub in | 
|  | 14868 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 14869 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 14870 | esac ;; | 
|  | 14871 | esac | 
|  | 14872 | ac_abs_top_builddir=$ac_pwd | 
|  | 14873 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 14874 | # for backward compatibility: | 
|  | 14875 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14876 |  | 
|  | 14877 | case $srcdir in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14878 | .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14879 | ac_srcdir=. | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14880 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 14881 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 14882 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14883 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14884 | ac_top_srcdir=$srcdir | 
|  | 14885 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 14886 | *) # Relative name. | 
|  | 14887 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 14888 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 14889 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14890 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14891 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14892 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14893 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14894 | case $ac_mode in | 
|  | 14895 | :F) | 
|  | 14896 | # | 
|  | 14897 | # CONFIG_FILE | 
|  | 14898 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14899 |  | 
|  | 14900 | case $INSTALL in | 
|  | 14901 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14902 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14903 | esac | 
| Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 14904 | _ACEOF | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14905 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14906 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14907 | # If the template does not know about datarootdir, expand it. | 
|  | 14908 | # FIXME: This hack should be removed a few years after 2.60. | 
|  | 14909 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14910 | ac_sed_dataroot=' | 
|  | 14911 | /datarootdir/ { | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14912 | p | 
|  | 14913 | q | 
|  | 14914 | } | 
|  | 14915 | /@datadir@/p | 
|  | 14916 | /@docdir@/p | 
|  | 14917 | /@infodir@/p | 
|  | 14918 | /@localedir@/p | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14919 | /@mandir@/p' | 
|  | 14920 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14921 | *datarootdir*) ac_datarootdir_seen=yes;; | 
|  | 14922 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14923 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
|  | 14924 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14925 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14926 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14927 | ac_datarootdir_hack=' | 
|  | 14928 | s&@datadir@&$datadir&g | 
|  | 14929 | s&@docdir@&$docdir&g | 
|  | 14930 | s&@infodir@&$infodir&g | 
|  | 14931 | s&@localedir@&$localedir&g | 
|  | 14932 | s&@mandir@&$mandir&g | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14933 | s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14934 | esac | 
|  | 14935 | _ACEOF | 
|  | 14936 |  | 
|  | 14937 | # Neutralize VPATH when `$srcdir' = `.'. | 
|  | 14938 | # Shell code in configure.ac might set extrasub. | 
|  | 14939 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14940 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 14941 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14942 | $extrasub | 
|  | 14943 | _ACEOF | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14944 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14945 | :t | 
|  | 14946 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14947 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14948 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14949 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14950 | s&@srcdir@&$ac_srcdir&;t t | 
|  | 14951 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
|  | 14952 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
|  | 14953 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
|  | 14954 | s&@builddir@&$ac_builddir&;t t | 
|  | 14955 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
|  | 14956 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
|  | 14957 | s&@INSTALL@&$ac_INSTALL&;t t | 
|  | 14958 | $ac_datarootdir_hack | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14959 | " | 
|  | 14960 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | 
|  | 14961 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14962 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14963 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
|  | 14964 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | 
|  | 14965 | { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14966 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14967 | which seems to be undefined.  Please make sure it is defined." >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14968 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14969 | which seems to be undefined.  Please make sure it is defined." >&2;} | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14970 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14971 | rm -f "$tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14972 | case $ac_file in | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14973 | -) cat "$tmp/out" && rm -f "$tmp/out";; | 
|  | 14974 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | 
|  | 14975 | esac \ | 
|  | 14976 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14977 | ;; | 
|  | 14978 | :H) | 
|  | 14979 | # | 
|  | 14980 | # CONFIG_HEADER | 
|  | 14981 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14982 | if test x"$ac_file" != x-; then | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14983 | { | 
|  | 14984 | $as_echo "/* $configure_input  */" \ | 
|  | 14985 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | 
|  | 14986 | } >"$tmp/config.h" \ | 
|  | 14987 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | 
|  | 14988 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | 
|  | 14989 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
|  | 14990 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14991 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14992 | rm -f "$ac_file" | 
|  | 14993 | mv "$tmp/config.h" "$ac_file" \ | 
|  | 14994 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14995 | fi | 
|  | 14996 | else | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14997 | $as_echo "/* $configure_input  */" \ | 
|  | 14998 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | 
|  | 14999 | || as_fn_error "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15000 | fi | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15001 | ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15002 |  | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15003 |  | 
|  | 15004 | esac | 
|  | 15005 |  | 
| Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 15006 |  | 
|  | 15007 | case $ac_file$ac_mode in | 
|  | 15008 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
|  | 15009 |  | 
|  | 15010 | esac | 
| Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15011 | done # for ac_tag | 
|  | 15012 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15013 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15014 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15015 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15016 | ac_clean_files=$ac_clean_files_save | 
|  | 15017 |  | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15018 | test $ac_write_fail = 0 || | 
|  | 15019 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
|  | 15020 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15021 |  | 
|  | 15022 | # configure is writing to config.log, and then calls config.status. | 
|  | 15023 | # config.status does its own redirection, appending to config.log. | 
|  | 15024 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
|  | 15025 | # by configure, so config.status won't be able to write to it; its | 
|  | 15026 | # output is simply discarded.  So we exec the FD to /dev/null, | 
|  | 15027 | # effectively closing config.log, so it can be properly (re)opened and | 
|  | 15028 | # appended to by config.status.  When coming back to configure, we | 
|  | 15029 | # need to make the FD available again. | 
|  | 15030 | if test "$no_create" != yes; then | 
|  | 15031 | ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15032 | ac_config_status_args= | 
|  | 15033 | test "$silent" = yes && | 
|  | 15034 | ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15035 | exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15036 | $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] | 15037 | exec 5>>config.log | 
|  | 15038 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
|  | 15039 | # would make configure fail if this is the last instruction. | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15040 | $ac_cs_success || as_fn_exit $? | 
|  | 15041 | fi | 
|  | 15042 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
|  | 15043 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
|  | 15044 | $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] | 15045 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15046 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15047 |  | 
| Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 15048 | echo "creating Modules/Setup" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15049 | if test ! -f Modules/Setup | 
|  | 15050 | then | 
|  | 15051 | cp $srcdir/Modules/Setup.dist Modules/Setup | 
|  | 15052 | fi | 
|  | 15053 |  | 
| Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 15054 | echo "creating Modules/Setup.local" | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15055 | if test ! -f Modules/Setup.local | 
|  | 15056 | then | 
|  | 15057 | echo "# Edit this file for local setup changes" >Modules/Setup.local | 
|  | 15058 | fi | 
|  | 15059 |  | 
|  | 15060 | echo "creating Makefile" | 
|  | 15061 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
|  | 15062 | -s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 15063 | Modules/Setup.local Modules/Setup | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15064 |  | 
|  | 15065 | case $ac_sys_system in | 
|  | 15066 | BeOS) | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15067 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15068 |  | 
|  | 15069 | Support for BeOS is deprecated as of Python 2.6. | 
|  | 15070 | See PEP 11 for the gory details. | 
|  | 15071 | " >&5 | 
| Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15072 | $as_echo "$as_me: WARNING: | 
| Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15073 |  | 
|  | 15074 | Support for BeOS is deprecated as of Python 2.6. | 
|  | 15075 | See PEP 11 for the gory details. | 
|  | 15076 | " >&2;} | 
|  | 15077 | ;; | 
|  | 15078 | *) ;; | 
|  | 15079 | esac | 
|  | 15080 |  | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 15081 | mv config.c Modules |