Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 2 | # From configure.in Revision. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.68 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, |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
| 11 | # Foundation, Inc. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12 | # |
| 13 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14 | # This configure script is free software; the Free Software Foundation |
| 15 | # gives unlimited permission to copy, distribute and modify it. |
Matthias Klose | 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. |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 95 | as_myself= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 96 | case $0 in #(( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 97 | *[\\/]* ) as_myself=$0 ;; |
| 98 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 99 | for as_dir in $PATH |
| 100 | do |
| 101 | IFS=$as_save_IFS |
| 102 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 103 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 104 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 105 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 106 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 107 | ;; |
| 108 | esac |
| 109 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 110 | # in which case we are not to be found in the path. |
| 111 | if test "x$as_myself" = x; then |
| 112 | as_myself=$0 |
| 113 | fi |
| 114 | if test ! -f "$as_myself"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 115 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 116 | exit 1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 117 | fi |
| 118 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 119 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 120 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 121 | # suppresses any "Segmentation fault" message there. '((' could |
| 122 | # trigger a bug in pdksh 5.2.14. |
| 123 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 124 | do eval test x\${$as_var+set} = xset \ |
| 125 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 126 | done |
| 127 | PS1='$ ' |
| 128 | PS2='> ' |
| 129 | PS4='+ ' |
| 130 | |
| 131 | # NLS nuisances. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 132 | LC_ALL=C |
| 133 | export LC_ALL |
| 134 | LANGUAGE=C |
| 135 | export LANGUAGE |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 136 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 137 | # CDPATH. |
| 138 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 139 | |
| 140 | if test "x$CONFIG_SHELL" = x; then |
| 141 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 142 | emulate sh |
| 143 | NULLCMD=: |
| 144 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 145 | # is contrary to our usage. Disable this feature. |
| 146 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 147 | setopt NO_GLOB_SUBST |
| 148 | else |
| 149 | case \`(set -o) 2>/dev/null\` in #( |
| 150 | *posix*) : |
| 151 | set -o posix ;; #( |
| 152 | *) : |
| 153 | ;; |
| 154 | esac |
| 155 | fi |
| 156 | " |
| 157 | as_required="as_fn_return () { (exit \$1); } |
| 158 | as_fn_success () { as_fn_return 0; } |
| 159 | as_fn_failure () { as_fn_return 1; } |
| 160 | as_fn_ret_success () { return 0; } |
| 161 | as_fn_ret_failure () { return 1; } |
| 162 | |
| 163 | exitcode=0 |
| 164 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 165 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 166 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 167 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 168 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 169 | |
| 170 | else |
| 171 | exitcode=1; echo positional parameters were not saved. |
| 172 | fi |
| 173 | test x\$exitcode = x0 || exit 1" |
| 174 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 175 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 176 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 177 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 178 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 179 | if (eval "$as_required") 2>/dev/null; then : |
| 180 | as_have_required=yes |
| 181 | else |
| 182 | as_have_required=no |
| 183 | fi |
| 184 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 185 | |
| 186 | else |
| 187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 188 | as_found=false |
| 189 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 190 | do |
| 191 | IFS=$as_save_IFS |
| 192 | test -z "$as_dir" && as_dir=. |
| 193 | as_found=: |
| 194 | case $as_dir in #( |
| 195 | /*) |
| 196 | for as_base in sh bash ksh sh5; do |
| 197 | # Try only shells that exist, to save several forks. |
| 198 | as_shell=$as_dir/$as_base |
| 199 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 200 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 201 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 202 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 203 | break 2 |
| 204 | fi |
| 205 | fi |
| 206 | done;; |
| 207 | esac |
| 208 | as_found=false |
| 209 | done |
| 210 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 211 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 212 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 213 | fi; } |
| 214 | IFS=$as_save_IFS |
| 215 | |
| 216 | |
| 217 | if test "x$CONFIG_SHELL" != x; then : |
| 218 | # We cannot yet assume a decent shell, so we have to provide a |
| 219 | # neutralization value for shells without unset; and this also |
| 220 | # works around shells that cannot unset nonexistent variables. |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 221 | # Preserve -v and -x to the replacement shell. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 222 | BASH_ENV=/dev/null |
| 223 | ENV=/dev/null |
| 224 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 225 | export CONFIG_SHELL |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 226 | case $- in # (((( |
| 227 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 228 | *v* ) as_opts=-v ;; |
| 229 | *x* ) as_opts=-x ;; |
| 230 | * ) as_opts= ;; |
| 231 | esac |
| 232 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 233 | fi |
| 234 | |
| 235 | if test x$as_have_required = xno; then : |
| 236 | $as_echo "$0: This script requires a shell more modern than all" |
| 237 | $as_echo "$0: the shells that I found on your system." |
| 238 | if test x${ZSH_VERSION+set} = xset ; then |
| 239 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 240 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 241 | else |
| 242 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 243 | $0: http://bugs.python.org/ about your system, including |
| 244 | $0: any error possibly output before this message. Then |
| 245 | $0: install a modern shell, or manually run the script |
| 246 | $0: under such a shell if you do have one." |
| 247 | fi |
| 248 | exit 1 |
| 249 | fi |
| 250 | fi |
| 251 | fi |
| 252 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 253 | export SHELL |
| 254 | # Unset more variables known to interfere with behavior of common tools. |
| 255 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 256 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 257 | |
| 258 | ## --------------------- ## |
| 259 | ## M4sh Shell Functions. ## |
| 260 | ## --------------------- ## |
| 261 | # as_fn_unset VAR |
| 262 | # --------------- |
| 263 | # Portably unset VAR. |
| 264 | as_fn_unset () |
| 265 | { |
| 266 | { eval $1=; unset $1;} |
| 267 | } |
| 268 | as_unset=as_fn_unset |
| 269 | |
| 270 | # as_fn_set_status STATUS |
| 271 | # ----------------------- |
| 272 | # Set $? to STATUS, without forking. |
| 273 | as_fn_set_status () |
| 274 | { |
| 275 | return $1 |
| 276 | } # as_fn_set_status |
| 277 | |
| 278 | # as_fn_exit STATUS |
| 279 | # ----------------- |
| 280 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 281 | as_fn_exit () |
| 282 | { |
| 283 | set +e |
| 284 | as_fn_set_status $1 |
| 285 | exit $1 |
| 286 | } # as_fn_exit |
| 287 | |
| 288 | # as_fn_mkdir_p |
| 289 | # ------------- |
| 290 | # Create "$as_dir" as a directory, including parents if necessary. |
| 291 | as_fn_mkdir_p () |
| 292 | { |
| 293 | |
| 294 | case $as_dir in #( |
| 295 | -*) as_dir=./$as_dir;; |
| 296 | esac |
| 297 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 298 | as_dirs= |
| 299 | while :; do |
| 300 | case $as_dir in #( |
| 301 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 302 | *) as_qdir=$as_dir;; |
| 303 | esac |
| 304 | as_dirs="'$as_qdir' $as_dirs" |
| 305 | as_dir=`$as_dirname -- "$as_dir" || |
| 306 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 307 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 308 | X"$as_dir" : 'X\(//\)$' \| \ |
| 309 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 310 | $as_echo X"$as_dir" | |
| 311 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 312 | s//\1/ |
| 313 | q |
| 314 | } |
| 315 | /^X\(\/\/\)[^/].*/{ |
| 316 | s//\1/ |
| 317 | q |
| 318 | } |
| 319 | /^X\(\/\/\)$/{ |
| 320 | s//\1/ |
| 321 | q |
| 322 | } |
| 323 | /^X\(\/\).*/{ |
| 324 | s//\1/ |
| 325 | q |
| 326 | } |
| 327 | s/.*/./; q'` |
| 328 | test -d "$as_dir" && break |
| 329 | done |
| 330 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 331 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 332 | |
| 333 | |
| 334 | } # as_fn_mkdir_p |
| 335 | # as_fn_append VAR VALUE |
| 336 | # ---------------------- |
| 337 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 338 | # advantage of any shell optimizations that allow amortized linear growth over |
| 339 | # repeated appends, instead of the typical quadratic growth present in naive |
| 340 | # implementations. |
| 341 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 342 | eval 'as_fn_append () |
| 343 | { |
| 344 | eval $1+=\$2 |
| 345 | }' |
| 346 | else |
| 347 | as_fn_append () |
| 348 | { |
| 349 | eval $1=\$$1\$2 |
| 350 | } |
| 351 | fi # as_fn_append |
| 352 | |
| 353 | # as_fn_arith ARG... |
| 354 | # ------------------ |
| 355 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 356 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 357 | # must be portable across $(()) and expr. |
| 358 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 359 | eval 'as_fn_arith () |
| 360 | { |
| 361 | as_val=$(( $* )) |
| 362 | }' |
| 363 | else |
| 364 | as_fn_arith () |
| 365 | { |
| 366 | as_val=`expr "$@" || test $? -eq 1` |
| 367 | } |
| 368 | fi # as_fn_arith |
| 369 | |
| 370 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 371 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 372 | # ---------------------------------------- |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 373 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 374 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 375 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 376 | as_fn_error () |
| 377 | { |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 378 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 379 | if test "$4"; then |
| 380 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 381 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 382 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 383 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 384 | as_fn_exit $as_status |
| 385 | } # as_fn_error |
| 386 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 387 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 388 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 389 | as_expr=expr |
| 390 | else |
| 391 | as_expr=false |
| 392 | fi |
| 393 | |
| 394 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 395 | as_basename=basename |
| 396 | else |
| 397 | as_basename=false |
| 398 | fi |
| 399 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 400 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 401 | as_dirname=dirname |
| 402 | else |
| 403 | as_dirname=false |
| 404 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 405 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 406 | as_me=`$as_basename -- "$0" || |
| 407 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 408 | X"$0" : 'X\(//\)$' \| \ |
| 409 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 410 | $as_echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 411 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 412 | s//\1/ |
| 413 | q |
| 414 | } |
| 415 | /^X\/\(\/\/\)$/{ |
| 416 | s//\1/ |
| 417 | q |
| 418 | } |
| 419 | /^X\/\(\/\).*/{ |
| 420 | s//\1/ |
| 421 | q |
| 422 | } |
| 423 | s/.*/./; q'` |
| 424 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 425 | # Avoid depending upon Character Ranges. |
| 426 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 427 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 428 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 429 | as_cr_digits='0123456789' |
| 430 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 431 | |
| 432 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 433 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 434 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 435 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 436 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 437 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 438 | sed -n ' |
| 439 | p |
| 440 | /[$]LINENO/= |
| 441 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 442 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 443 | s/[$]LINENO.*/&-/ |
| 444 | t lineno |
| 445 | b |
| 446 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 447 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 448 | :loop |
| 449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 451 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 452 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 453 | chmod +x "$as_me.lineno" || |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 454 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 | |
| 456 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 457 | # (the dirname of $[0] is not the place where we might find the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 458 | # original and so on. Autoconf is especially sensitive to this). |
| 459 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 460 | # Exit status is that of the last command. |
| 461 | exit |
| 462 | } |
| 463 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 464 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 465 | case `echo -n x` in #((((( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 466 | -n*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 467 | case `echo 'xy\c'` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 468 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 469 | xy) ECHO_C='\c';; |
| 470 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 471 | ECHO_T=' ';; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 472 | esac;; |
| 473 | *) |
| 474 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 475 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 477 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 478 | if test -d conf$$.dir; then |
| 479 | rm -f conf$$.dir/conf$$.file |
| 480 | else |
| 481 | rm -f conf$$.dir |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 482 | mkdir conf$$.dir 2>/dev/null |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 483 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 484 | if (echo >conf$$.file) 2>/dev/null; then |
| 485 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 486 | as_ln_s='ln -s' |
| 487 | # ... but there are two gotchas: |
| 488 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 489 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 490 | # In both cases, we have to default to `cp -p'. |
| 491 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 492 | as_ln_s='cp -p' |
| 493 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 494 | as_ln_s=ln |
| 495 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 496 | as_ln_s='cp -p' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 497 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 498 | else |
| 499 | as_ln_s='cp -p' |
| 500 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 501 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 502 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 503 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 504 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 505 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 506 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 507 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 508 | as_mkdir_p=false |
| 509 | fi |
| 510 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 511 | if test -x / >/dev/null 2>&1; then |
| 512 | as_test_x='test -x' |
| 513 | else |
| 514 | if ls -dL / >/dev/null 2>&1; then |
| 515 | as_ls_L_option=L |
| 516 | else |
| 517 | as_ls_L_option= |
| 518 | fi |
| 519 | as_test_x=' |
| 520 | eval sh -c '\'' |
| 521 | if test -d "$1"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 522 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 523 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 524 | case $1 in #( |
| 525 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 526 | esac; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 527 | 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] | 528 | ???[sx]*):;;*)false;;esac;fi |
| 529 | '\'' sh |
| 530 | ' |
| 531 | fi |
| 532 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 533 | |
| 534 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 535 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 536 | |
| 537 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 538 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 539 | |
| 540 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 541 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 542 | exec 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 543 | |
| 544 | # Name of the host. |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 545 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 546 | # so uname gets run too. |
| 547 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 549 | # |
| 550 | # Initializations. |
| 551 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 552 | ac_default_prefix=/usr/local |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 553 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 554 | ac_config_libobj_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 555 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | cross_compiling=no |
| 557 | subdirs= |
| 558 | MFLAGS= |
| 559 | MAKEFLAGS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 560 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 561 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 562 | PACKAGE_NAME='python' |
| 563 | PACKAGE_TARNAME='python' |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='2.7' |
| 565 | PACKAGE_STRING='python 2.7' |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 566 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 567 | PACKAGE_URL='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 568 | |
| 569 | ac_unique_file="Include/object.h" |
| 570 | # Factoring default headers for most tests. |
| 571 | ac_includes_default="\ |
| 572 | #include <stdio.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 573 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 574 | # include <sys/types.h> |
| 575 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 576 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 577 | # include <sys/stat.h> |
| 578 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 579 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 580 | # include <stdlib.h> |
| 581 | # include <stddef.h> |
| 582 | #else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 583 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 584 | # include <stdlib.h> |
| 585 | # endif |
| 586 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 587 | #ifdef HAVE_STRING_H |
| 588 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 589 | # include <memory.h> |
| 590 | # endif |
| 591 | # include <string.h> |
| 592 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 593 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 594 | # include <strings.h> |
| 595 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 596 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <inttypes.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 598 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 599 | #ifdef HAVE_STDINT_H |
| 600 | # include <stdint.h> |
| 601 | #endif |
| 602 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | # include <unistd.h> |
| 604 | #endif" |
| 605 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 606 | ac_subst_vars='LTLIBOBJS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 607 | SRCDIRS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 608 | THREADHEADERS |
| 609 | UNICODE_OBJS |
| 610 | LIBC |
| 611 | LIBM |
| 612 | HAVE_GETHOSTBYNAME |
| 613 | HAVE_GETHOSTBYNAME_R |
| 614 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 615 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 616 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 617 | LIBOBJS |
| 618 | TRUE |
| 619 | MACHDEP_OBJS |
| 620 | DYNLOADFILE |
| 621 | DLINCLDIR |
| 622 | THREADOBJ |
| 623 | LDLAST |
| 624 | USE_THREAD_MODULE |
| 625 | SIGNAL_OBJS |
| 626 | USE_SIGNAL_MODULE |
| 627 | LIBFFI_INCLUDEDIR |
| 628 | PKG_CONFIG |
| 629 | SHLIBS |
| 630 | CFLAGSFORSHARED |
| 631 | LINKFORSHARED |
| 632 | CCSHARED |
| 633 | BLDSHARED |
| 634 | LDCXXSHARED |
| 635 | LDSHARED |
| 636 | SO |
| 637 | LIBTOOL_CRUFT |
| 638 | OTHER_LIBTOOL_OPT |
| 639 | UNIVERSAL_ARCH_FLAGS |
| 640 | BASECFLAGS |
| 641 | OPT |
| 642 | LN |
| 643 | INSTALL_DATA |
| 644 | INSTALL_SCRIPT |
| 645 | INSTALL_PROGRAM |
Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 646 | HAS_HG |
| 647 | HGBRANCH |
| 648 | HGTAG |
| 649 | HGVERSION |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 650 | SVNVERSION |
| 651 | ARFLAGS |
| 652 | AR |
| 653 | RANLIB |
| 654 | GNULD |
| 655 | LINKCC |
| 656 | RUNSHARED |
| 657 | INSTSONAME |
| 658 | LDLIBRARYDIR |
| 659 | BLDLIBRARY |
| 660 | DLLLIBRARY |
| 661 | LDLIBRARY |
| 662 | LIBRARY |
| 663 | BUILDEXEEXT |
| 664 | EGREP |
| 665 | GREP |
| 666 | CPP |
| 667 | MAINCC |
| 668 | CXX |
| 669 | OBJEXT |
| 670 | EXEEXT |
| 671 | ac_ct_CC |
| 672 | CPPFLAGS |
| 673 | LDFLAGS |
| 674 | CFLAGS |
| 675 | CC |
| 676 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 677 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 678 | EXTRAMACHDEPPATH |
| 679 | EXTRAPLATDIR |
| 680 | SGI_ABI |
| 681 | MACHDEP |
| 682 | FRAMEWORKINSTALLAPPSPREFIX |
| 683 | FRAMEWORKUNIXTOOLSPREFIX |
| 684 | FRAMEWORKALTINSTALLLAST |
| 685 | FRAMEWORKALTINSTALLFIRST |
| 686 | FRAMEWORKINSTALLLAST |
| 687 | FRAMEWORKINSTALLFIRST |
| 688 | PYTHONFRAMEWORKINSTALLDIR |
| 689 | PYTHONFRAMEWORKPREFIX |
| 690 | PYTHONFRAMEWORKDIR |
| 691 | PYTHONFRAMEWORKIDENTIFIER |
| 692 | PYTHONFRAMEWORK |
| 693 | LIPO_32BIT_FLAGS |
| 694 | ARCH_RUN_32BIT |
| 695 | UNIVERSALSDK |
| 696 | CONFIG_ARGS |
| 697 | SOVERSION |
| 698 | VERSION |
| 699 | target_alias |
| 700 | host_alias |
| 701 | build_alias |
| 702 | LIBS |
| 703 | ECHO_T |
| 704 | ECHO_N |
| 705 | ECHO_C |
| 706 | DEFS |
| 707 | mandir |
| 708 | localedir |
| 709 | libdir |
| 710 | psdir |
| 711 | pdfdir |
| 712 | dvidir |
| 713 | htmldir |
| 714 | infodir |
| 715 | docdir |
| 716 | oldincludedir |
| 717 | includedir |
| 718 | localstatedir |
| 719 | sharedstatedir |
| 720 | sysconfdir |
| 721 | datadir |
| 722 | datarootdir |
| 723 | libexecdir |
| 724 | sbindir |
| 725 | bindir |
| 726 | program_transform_name |
| 727 | prefix |
| 728 | exec_prefix |
| 729 | PACKAGE_URL |
| 730 | PACKAGE_BUGREPORT |
| 731 | PACKAGE_STRING |
| 732 | PACKAGE_VERSION |
| 733 | PACKAGE_TARNAME |
| 734 | PACKAGE_NAME |
| 735 | PATH_SEPARATOR |
| 736 | SHELL' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 737 | ac_subst_files='' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 738 | ac_user_opts=' |
| 739 | enable_option_checking |
| 740 | enable_universalsdk |
| 741 | with_universal_archs |
| 742 | with_framework_name |
| 743 | enable_framework |
| 744 | with_gcc |
| 745 | with_cxx_main |
| 746 | with_suffix |
| 747 | enable_shared |
| 748 | enable_profiling |
| 749 | with_pydebug |
| 750 | enable_toolbox_glue |
| 751 | with_libs |
| 752 | with_system_expat |
| 753 | with_system_ffi |
| 754 | with_dbmliborder |
| 755 | with_signal_module |
| 756 | with_dec_threads |
| 757 | with_threads |
| 758 | with_thread |
| 759 | with_pth |
| 760 | enable_ipv6 |
| 761 | with_doc_strings |
| 762 | with_tsc |
| 763 | with_pymalloc |
| 764 | with_valgrind |
| 765 | with_wctype_functions |
| 766 | with_fpectl |
| 767 | with_libm |
| 768 | with_libc |
| 769 | enable_big_digits |
| 770 | enable_unicode |
| 771 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 772 | ac_precious_vars='build_alias |
| 773 | host_alias |
| 774 | target_alias |
| 775 | CC |
| 776 | CFLAGS |
| 777 | LDFLAGS |
| 778 | LIBS |
| 779 | CPPFLAGS |
| 780 | CPP' |
| 781 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 782 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 783 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 784 | ac_init_help= |
| 785 | ac_init_version=false |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 786 | ac_unrecognized_opts= |
| 787 | ac_unrecognized_sep= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 788 | # The variables have the same names as the options, with |
| 789 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 790 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 791 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 792 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 793 | no_recursion= |
| 794 | prefix=NONE |
| 795 | program_prefix=NONE |
| 796 | program_suffix=NONE |
| 797 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 798 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 799 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 800 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 801 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 802 | x_includes=NONE |
| 803 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 804 | |
| 805 | # Installation directory options. |
| 806 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 807 | # and all the variables that are supposed to be based on exec_prefix |
| 808 | # by default will actually change. |
| 809 | # 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] | 810 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 811 | bindir='${exec_prefix}/bin' |
| 812 | sbindir='${exec_prefix}/sbin' |
| 813 | libexecdir='${exec_prefix}/libexec' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 814 | datarootdir='${prefix}/share' |
| 815 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 816 | sysconfdir='${prefix}/etc' |
| 817 | sharedstatedir='${prefix}/com' |
| 818 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 819 | includedir='${prefix}/include' |
| 820 | oldincludedir='/usr/include' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 821 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 822 | infodir='${datarootdir}/info' |
| 823 | htmldir='${docdir}' |
| 824 | dvidir='${docdir}' |
| 825 | pdfdir='${docdir}' |
| 826 | psdir='${docdir}' |
| 827 | libdir='${exec_prefix}/lib' |
| 828 | localedir='${datarootdir}/locale' |
| 829 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 830 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 831 | ac_prev= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 832 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 833 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 834 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 835 | # If the previous option needs an argument, assign it. |
| 836 | if test -n "$ac_prev"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 837 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 838 | ac_prev= |
| 839 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 840 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 841 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 842 | case $ac_option in |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 843 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 844 | *=) ac_optarg= ;; |
| 845 | *) ac_optarg=yes ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 846 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 847 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 848 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 849 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 850 | case $ac_dashdash$ac_option in |
| 851 | --) |
| 852 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 853 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 854 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 855 | ac_prev=bindir ;; |
| 856 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 857 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 858 | |
| 859 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 860 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 861 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 862 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 863 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 864 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 865 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 866 | ac_prev=cache_file ;; |
| 867 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 868 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 869 | cache_file=$ac_optarg ;; |
| 870 | |
| 871 | --config-cache | -C) |
| 872 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 873 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 874 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 875 | ac_prev=datadir ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 876 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 877 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 878 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 879 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 880 | | --dataroo | --dataro | --datar) |
| 881 | ac_prev=datarootdir ;; |
| 882 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 883 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 884 | datarootdir=$ac_optarg ;; |
| 885 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 886 | -disable-* | --disable-*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 887 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 888 | # Reject names that are not valid shell variable names. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 889 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 890 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 891 | ac_useropt_orig=$ac_useropt |
| 892 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 893 | case $ac_user_opts in |
| 894 | *" |
| 895 | "enable_$ac_useropt" |
| 896 | "*) ;; |
| 897 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 898 | ac_unrecognized_sep=', ';; |
| 899 | esac |
| 900 | eval enable_$ac_useropt=no ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 901 | |
| 902 | -docdir | --docdir | --docdi | --doc | --do) |
| 903 | ac_prev=docdir ;; |
| 904 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 905 | docdir=$ac_optarg ;; |
| 906 | |
| 907 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 908 | ac_prev=dvidir ;; |
| 909 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 910 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 911 | |
| 912 | -enable-* | --enable-*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 913 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 914 | # Reject names that are not valid shell variable names. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 915 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 916 | as_fn_error $? "invalid feature name: $ac_useropt" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 917 | ac_useropt_orig=$ac_useropt |
| 918 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 919 | case $ac_user_opts in |
| 920 | *" |
| 921 | "enable_$ac_useropt" |
| 922 | "*) ;; |
| 923 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 924 | ac_unrecognized_sep=', ';; |
| 925 | esac |
| 926 | eval enable_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 927 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 928 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 929 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 930 | | --exec | --exe | --ex) |
| 931 | ac_prev=exec_prefix ;; |
| 932 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 933 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 934 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 935 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 936 | |
| 937 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 938 | # Obsolete; use --with-gas. |
| 939 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 941 | -help | --help | --hel | --he | -h) |
| 942 | ac_init_help=long ;; |
| 943 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 944 | ac_init_help=recursive ;; |
| 945 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 946 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 947 | |
| 948 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 949 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 950 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 951 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 952 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 953 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 954 | ac_prev=htmldir ;; |
| 955 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 956 | | --ht=*) |
| 957 | htmldir=$ac_optarg ;; |
| 958 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 959 | -includedir | --includedir | --includedi | --included | --include \ |
| 960 | | --includ | --inclu | --incl | --inc) |
| 961 | ac_prev=includedir ;; |
| 962 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 963 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 964 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 965 | |
| 966 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 967 | ac_prev=infodir ;; |
| 968 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 969 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 970 | |
| 971 | -libdir | --libdir | --libdi | --libd) |
| 972 | ac_prev=libdir ;; |
| 973 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 974 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 975 | |
| 976 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 977 | | --libexe | --libex | --libe) |
| 978 | ac_prev=libexecdir ;; |
| 979 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 980 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 981 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 982 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 983 | -localedir | --localedir | --localedi | --localed | --locale) |
| 984 | ac_prev=localedir ;; |
| 985 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 986 | localedir=$ac_optarg ;; |
| 987 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 988 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 989 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 990 | ac_prev=localstatedir ;; |
| 991 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 992 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 993 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 994 | |
| 995 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 996 | ac_prev=mandir ;; |
| 997 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 998 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 999 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1000 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1001 | # Obsolete; use --without-fp. |
| 1002 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1003 | |
| 1004 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1005 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1006 | no_create=yes ;; |
| 1007 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1008 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1009 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1010 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1011 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1012 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1013 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1014 | | --oldin | --oldi | --old | --ol | --o) |
| 1015 | ac_prev=oldincludedir ;; |
| 1016 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1017 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1018 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1019 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1020 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1021 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1022 | ac_prev=prefix ;; |
| 1023 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1024 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1025 | |
| 1026 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1027 | | --program-pre | --program-pr | --program-p) |
| 1028 | ac_prev=program_prefix ;; |
| 1029 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1030 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1031 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1032 | |
| 1033 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1034 | | --program-suf | --program-su | --program-s) |
| 1035 | ac_prev=program_suffix ;; |
| 1036 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1037 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1038 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1039 | |
| 1040 | -program-transform-name | --program-transform-name \ |
| 1041 | | --program-transform-nam | --program-transform-na \ |
| 1042 | | --program-transform-n | --program-transform- \ |
| 1043 | | --program-transform | --program-transfor \ |
| 1044 | | --program-transfo | --program-transf \ |
| 1045 | | --program-trans | --program-tran \ |
| 1046 | | --progr-tra | --program-tr | --program-t) |
| 1047 | ac_prev=program_transform_name ;; |
| 1048 | -program-transform-name=* | --program-transform-name=* \ |
| 1049 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1050 | | --program-transform-n=* | --program-transform-=* \ |
| 1051 | | --program-transform=* | --program-transfor=* \ |
| 1052 | | --program-transfo=* | --program-transf=* \ |
| 1053 | | --program-trans=* | --program-tran=* \ |
| 1054 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1055 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1056 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1057 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1058 | ac_prev=pdfdir ;; |
| 1059 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1060 | pdfdir=$ac_optarg ;; |
| 1061 | |
| 1062 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1063 | ac_prev=psdir ;; |
| 1064 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1065 | psdir=$ac_optarg ;; |
| 1066 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1067 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1068 | | -silent | --silent | --silen | --sile | --sil) |
| 1069 | silent=yes ;; |
| 1070 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1071 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1072 | ac_prev=sbindir ;; |
| 1073 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1074 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1075 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1076 | |
| 1077 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1078 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1079 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1080 | | --sha | --sh) |
| 1081 | ac_prev=sharedstatedir ;; |
| 1082 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1083 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1084 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1085 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1086 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1087 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1088 | -site | --site | --sit) |
| 1089 | ac_prev=site ;; |
| 1090 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1091 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1092 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1093 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1094 | ac_prev=srcdir ;; |
| 1095 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1096 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1097 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1098 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1099 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1100 | ac_prev=sysconfdir ;; |
| 1101 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1102 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1103 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1104 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1105 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1106 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1107 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1108 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1109 | |
| 1110 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1111 | verbose=yes ;; |
| 1112 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1113 | -version | --version | --versio | --versi | --vers | -V) |
| 1114 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1115 | |
| 1116 | -with-* | --with-*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1117 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1118 | # Reject names that are not valid shell variable names. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1119 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1120 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1121 | ac_useropt_orig=$ac_useropt |
| 1122 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1123 | case $ac_user_opts in |
| 1124 | *" |
| 1125 | "with_$ac_useropt" |
| 1126 | "*) ;; |
| 1127 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1128 | ac_unrecognized_sep=', ';; |
| 1129 | esac |
| 1130 | eval with_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1131 | |
| 1132 | -without-* | --without-*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1133 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1134 | # Reject names that are not valid shell variable names. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1135 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1136 | as_fn_error $? "invalid package name: $ac_useropt" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1137 | ac_useropt_orig=$ac_useropt |
| 1138 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1139 | case $ac_user_opts in |
| 1140 | *" |
| 1141 | "with_$ac_useropt" |
| 1142 | "*) ;; |
| 1143 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1144 | ac_unrecognized_sep=', ';; |
| 1145 | esac |
| 1146 | eval with_$ac_useropt=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1147 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1148 | --x) |
| 1149 | # Obsolete; use --with-x. |
| 1150 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1151 | |
| 1152 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1153 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1154 | ac_prev=x_includes ;; |
| 1155 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1156 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1157 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1158 | |
| 1159 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1160 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1161 | ac_prev=x_libraries ;; |
| 1162 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1163 | | --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] | 1164 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1165 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1166 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1167 | Try \`$0 --help' for more information" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1168 | ;; |
| 1169 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1170 | *=*) |
| 1171 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1172 | # Reject names that are not valid shell variable names. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1173 | case $ac_envvar in #( |
| 1174 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1175 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1176 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1177 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1178 | export $ac_envvar ;; |
| 1179 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1180 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1181 | # FIXME: should be removed in autoconf 3.0. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1182 | $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] | 1183 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1184 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1185 | : "${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] | 1186 | ;; |
| 1187 | |
| 1188 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1189 | done |
| 1190 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1191 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1192 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1193 | as_fn_error $? "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1194 | fi |
| 1195 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1196 | if test -n "$ac_unrecognized_opts"; then |
| 1197 | case $enable_option_checking in |
| 1198 | no) ;; |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1199 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1200 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1201 | esac |
| 1202 | fi |
| 1203 | |
| 1204 | # Check all directory arguments for consistency. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1205 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1206 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1207 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1208 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1209 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1210 | eval ac_val=\$$ac_var |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1211 | # Remove trailing slashes. |
| 1212 | case $ac_val in |
| 1213 | */ ) |
| 1214 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1215 | eval $ac_var=\$ac_val;; |
| 1216 | esac |
| 1217 | # Be sure to have absolute directory names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1218 | case $ac_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1219 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1220 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1221 | esac |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1222 | 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] | 1223 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1225 | # There might be people who depend on the old broken behavior: `$host' |
| 1226 | # used to hold the argument of --host etc. |
| 1227 | # FIXME: To remove some day. |
| 1228 | build=$build_alias |
| 1229 | host=$host_alias |
| 1230 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1232 | # FIXME: To remove some day. |
| 1233 | if test "x$host_alias" != x; then |
| 1234 | if test "x$build_alias" = x; then |
| 1235 | cross_compiling=maybe |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1236 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
| 1237 | If a cross compiler is detected then cross compile mode will be used" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1238 | elif test "x$build_alias" != "x$host_alias"; then |
| 1239 | cross_compiling=yes |
| 1240 | fi |
| 1241 | fi |
| 1242 | |
| 1243 | ac_tool_prefix= |
| 1244 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1245 | |
| 1246 | test "$silent" = yes && exec 6>/dev/null |
| 1247 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1248 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1249 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1250 | ac_ls_di=`ls -di .` && |
| 1251 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1252 | as_fn_error $? "working directory cannot be determined" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1253 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1254 | 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] | 1255 | |
| 1256 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1257 | # Find the source files, if location was not specified. |
| 1258 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1259 | ac_srcdir_defaulted=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1260 | # Try the directory containing this script, then the parent directory. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1261 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1262 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1263 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1264 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1265 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1266 | $as_echo X"$as_myself" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1267 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1268 | s//\1/ |
| 1269 | q |
| 1270 | } |
| 1271 | /^X\(\/\/\)[^/].*/{ |
| 1272 | s//\1/ |
| 1273 | q |
| 1274 | } |
| 1275 | /^X\(\/\/\)$/{ |
| 1276 | s//\1/ |
| 1277 | q |
| 1278 | } |
| 1279 | /^X\(\/\).*/{ |
| 1280 | s//\1/ |
| 1281 | q |
| 1282 | } |
| 1283 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1284 | srcdir=$ac_confdir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1285 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1286 | srcdir=.. |
| 1287 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1288 | else |
| 1289 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1290 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1291 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1292 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1293 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1294 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1295 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1296 | ac_abs_confdir=`( |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1297 | 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] | 1298 | pwd)` |
| 1299 | # When building in place, set srcdir=. |
| 1300 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1301 | srcdir=. |
| 1302 | fi |
| 1303 | # Remove unnecessary trailing slashes from srcdir. |
| 1304 | # Double slashes in file names in object file debugging info |
| 1305 | # mess up M-x gdb in Emacs. |
| 1306 | case $srcdir in |
| 1307 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1308 | esac |
| 1309 | for ac_var in $ac_precious_vars; do |
| 1310 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1311 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1312 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1313 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1314 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1315 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1316 | # |
| 1317 | # Report the --help message. |
| 1318 | # |
| 1319 | if test "$ac_init_help" = "long"; then |
| 1320 | # Omit some internal or obsolete options to make the list less imposing. |
| 1321 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1322 | cat <<_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1323 | \`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] | 1324 | |
| 1325 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1326 | |
| 1327 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1328 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1329 | |
| 1330 | Defaults for the options are specified in brackets. |
| 1331 | |
| 1332 | Configuration: |
| 1333 | -h, --help display this help and exit |
| 1334 | --help=short display options specific to this package |
| 1335 | --help=recursive display the short help of all the included packages |
| 1336 | -V, --version display version information and exit |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1337 | -q, --quiet, --silent do not print \`checking ...' messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1338 | --cache-file=FILE cache test results in FILE [disabled] |
| 1339 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1340 | -n, --no-create do not create output files |
| 1341 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1342 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1343 | Installation directories: |
| 1344 | --prefix=PREFIX install architecture-independent files in PREFIX |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1345 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1346 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1347 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1348 | |
| 1349 | By default, \`make install' will install all the files in |
| 1350 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1351 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1352 | for instance \`--prefix=\$HOME'. |
| 1353 | |
| 1354 | For better control, use the options below. |
| 1355 | |
| 1356 | Fine tuning of the installation directories: |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1357 | --bindir=DIR user executables [EPREFIX/bin] |
| 1358 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1359 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1360 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1361 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1362 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1363 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1364 | --includedir=DIR C header files [PREFIX/include] |
| 1365 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1366 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1367 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1368 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1369 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1370 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1371 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1372 | --htmldir=DIR html documentation [DOCDIR] |
| 1373 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1374 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1375 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1376 | _ACEOF |
| 1377 | |
| 1378 | cat <<\_ACEOF |
| 1379 | _ACEOF |
| 1380 | fi |
| 1381 | |
| 1382 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1383 | case $ac_init_help in |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1384 | short | recursive ) echo "Configuration of python 2.7:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1385 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1386 | cat <<\_ACEOF |
| 1387 | |
| 1388 | Optional Features: |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1389 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1390 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1391 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1392 | --enable-universalsdk[=SDKDIR] |
Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1393 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1394 | --enable-framework[=INSTALLDIR] |
| 1395 | Build (MacOSX|Darwin) framework |
| 1396 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1397 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1398 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 1399 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1400 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1401 | --enable-big-digits[=BITS] |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1402 | use big digits for Python longs [[BITS=30]] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1403 | --enable-unicode[=ucs[24]] |
Benjamin Peterson | 66556b0 | 2010-05-25 02:23:32 +0000 | [diff] [blame] | 1404 | Enable Unicode strings (default is ucs2) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1405 | |
| 1406 | Optional Packages: |
| 1407 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1408 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1409 | --with-universal-archs=ARCH |
| 1410 | select architectures for universal build ("32-bit", |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 1411 | "64-bit", "3-way", "intel" or "all") |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1412 | --with-framework-name=FRAMEWORK |
| 1413 | specify an alternate name of the framework built |
| 1414 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1415 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1416 | --with-cxx-main=<compiler> |
| 1417 | compile main() and link python executable with C++ |
| 1418 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1419 | --with-suffix=.exe set executable suffix |
| 1420 | --with-pydebug build with Py_DEBUG defined |
| 1421 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 1422 | --with-system-expat build pyexpat module using an installed expat |
| 1423 | library |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1424 | --with-system-ffi build _ctypes module using an installed ffi library |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1425 | --with-dbmliborder=db1:db2:... |
| 1426 | order to check db backends for dbm. Valid value is a |
| 1427 | colon separated string with the backend names |
| 1428 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1429 | --with-signal-module disable/enable signal module |
| 1430 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1431 | --with(out)-threads[=DIRECTORY] |
| 1432 | disable/enable thread support |
| 1433 | --with(out)-thread[=DIRECTORY] |
| 1434 | deprecated; use --with(out)-threads |
| 1435 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1436 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1437 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1438 | --with(out)-pymalloc disable/enable specialized mallocs |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 1439 | --with-valgrind Enable Valgrind support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1440 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1441 | --with-fpectl enable SIGFPE catching |
| 1442 | --with-libm=STRING math library |
| 1443 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1444 | |
| 1445 | Some influential environment variables: |
| 1446 | CC C compiler command |
| 1447 | CFLAGS C compiler flags |
| 1448 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1449 | nonstandard directory <lib dir> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1450 | LIBS libraries to pass to the linker, e.g. -l<library> |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1451 | 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] | 1452 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1453 | CPP C preprocessor |
| 1454 | |
| 1455 | Use these variables to override the choices made by `configure' or to help |
| 1456 | it to find libraries and programs with nonstandard names/locations. |
| 1457 | |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1458 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1459 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1460 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1461 | fi |
| 1462 | |
| 1463 | if test "$ac_init_help" = "recursive"; then |
| 1464 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1465 | 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] | 1466 | test -d "$ac_dir" || |
| 1467 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1468 | continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1469 | ac_builddir=. |
| 1470 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1471 | case "$ac_dir" in |
| 1472 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1473 | *) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1474 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1475 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1476 | 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] | 1477 | case $ac_top_builddir_sub in |
| 1478 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1479 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1480 | esac ;; |
| 1481 | esac |
| 1482 | ac_abs_top_builddir=$ac_pwd |
| 1483 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1484 | # for backward compatibility: |
| 1485 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1486 | |
| 1487 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1488 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1489 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1490 | ac_top_srcdir=$ac_top_builddir_sub |
| 1491 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1492 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1493 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1494 | ac_top_srcdir=$srcdir |
| 1495 | ac_abs_top_srcdir=$srcdir ;; |
| 1496 | *) # Relative name. |
| 1497 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1498 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1499 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1500 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1501 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1502 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1503 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1504 | # Check for guested configure. |
| 1505 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1506 | echo && |
| 1507 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1508 | elif test -f "$ac_srcdir/configure"; then |
| 1509 | echo && |
| 1510 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1511 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1512 | $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] | 1513 | fi || ac_status=$? |
| 1514 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1515 | done |
| 1516 | fi |
| 1517 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1518 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1519 | if $ac_init_version; then |
| 1520 | cat <<\_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1521 | python configure 2.7 |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1522 | generated by GNU Autoconf 2.68 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1523 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1524 | Copyright (C) 2010 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1525 | This configure script is free software; the Free Software Foundation |
| 1526 | gives unlimited permission to copy, distribute and modify it. |
| 1527 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1528 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1529 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1530 | |
| 1531 | ## ------------------------ ## |
| 1532 | ## Autoconf initialization. ## |
| 1533 | ## ------------------------ ## |
| 1534 | |
| 1535 | # ac_fn_c_try_compile LINENO |
| 1536 | # -------------------------- |
| 1537 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1538 | ac_fn_c_try_compile () |
| 1539 | { |
| 1540 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1541 | rm -f conftest.$ac_objext |
| 1542 | if { { ac_try="$ac_compile" |
| 1543 | case "(($ac_try" in |
| 1544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1545 | *) ac_try_echo=$ac_try;; |
| 1546 | esac |
| 1547 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1548 | $as_echo "$ac_try_echo"; } >&5 |
| 1549 | (eval "$ac_compile") 2>conftest.err |
| 1550 | ac_status=$? |
| 1551 | if test -s conftest.err; then |
| 1552 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1553 | cat conftest.er1 >&5 |
| 1554 | mv -f conftest.er1 conftest.err |
| 1555 | fi |
| 1556 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1557 | test $ac_status = 0; } && { |
| 1558 | test -z "$ac_c_werror_flag" || |
| 1559 | test ! -s conftest.err |
| 1560 | } && test -s conftest.$ac_objext; then : |
| 1561 | ac_retval=0 |
| 1562 | else |
| 1563 | $as_echo "$as_me: failed program was:" >&5 |
| 1564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1565 | |
| 1566 | ac_retval=1 |
| 1567 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1568 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1569 | as_fn_set_status $ac_retval |
| 1570 | |
| 1571 | } # ac_fn_c_try_compile |
| 1572 | |
| 1573 | # ac_fn_c_try_cpp LINENO |
| 1574 | # ---------------------- |
| 1575 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1576 | ac_fn_c_try_cpp () |
| 1577 | { |
| 1578 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1579 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1580 | case "(($ac_try" in |
| 1581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1582 | *) ac_try_echo=$ac_try;; |
| 1583 | esac |
| 1584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1585 | $as_echo "$ac_try_echo"; } >&5 |
| 1586 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1587 | ac_status=$? |
| 1588 | if test -s conftest.err; then |
| 1589 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1590 | cat conftest.er1 >&5 |
| 1591 | mv -f conftest.er1 conftest.err |
| 1592 | fi |
| 1593 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1594 | test $ac_status = 0; } > conftest.i && { |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1595 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1596 | test ! -s conftest.err |
| 1597 | }; then : |
| 1598 | ac_retval=0 |
| 1599 | else |
| 1600 | $as_echo "$as_me: failed program was:" >&5 |
| 1601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1602 | |
| 1603 | ac_retval=1 |
| 1604 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1605 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1606 | as_fn_set_status $ac_retval |
| 1607 | |
| 1608 | } # ac_fn_c_try_cpp |
| 1609 | |
| 1610 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1611 | # ------------------------------------------------------- |
| 1612 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1613 | # the include files in INCLUDES and setting the cache variable VAR |
| 1614 | # accordingly. |
| 1615 | ac_fn_c_check_header_mongrel () |
| 1616 | { |
| 1617 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1618 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1620 | $as_echo_n "checking for $2... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1621 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1622 | $as_echo_n "(cached) " >&6 |
| 1623 | fi |
| 1624 | eval ac_res=\$$3 |
| 1625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1626 | $as_echo "$ac_res" >&6; } |
| 1627 | else |
| 1628 | # Is the header compilable? |
| 1629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1630 | $as_echo_n "checking $2 usability... " >&6; } |
| 1631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1632 | /* end confdefs.h. */ |
| 1633 | $4 |
| 1634 | #include <$2> |
| 1635 | _ACEOF |
| 1636 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1637 | ac_header_compiler=yes |
| 1638 | else |
| 1639 | ac_header_compiler=no |
| 1640 | fi |
| 1641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1643 | $as_echo "$ac_header_compiler" >&6; } |
| 1644 | |
| 1645 | # Is the header present? |
| 1646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1647 | $as_echo_n "checking $2 presence... " >&6; } |
| 1648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1649 | /* end confdefs.h. */ |
| 1650 | #include <$2> |
| 1651 | _ACEOF |
| 1652 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1653 | ac_header_preproc=yes |
| 1654 | else |
| 1655 | ac_header_preproc=no |
| 1656 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1657 | rm -f conftest.err conftest.i conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1659 | $as_echo "$ac_header_preproc" >&6; } |
| 1660 | |
| 1661 | # So? What about this header? |
| 1662 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1663 | yes:no: ) |
| 1664 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1665 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1666 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1667 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1668 | ;; |
| 1669 | no:yes:* ) |
| 1670 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1671 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1672 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1673 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1674 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1675 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1676 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1677 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1678 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1679 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1680 | ( $as_echo "## -------------------------------------- ## |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1681 | ## Report this to http://bugs.python.org/ ## |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1682 | ## -------------------------------------- ##" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1683 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1684 | ;; |
| 1685 | esac |
| 1686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1687 | $as_echo_n "checking for $2... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1688 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1689 | $as_echo_n "(cached) " >&6 |
| 1690 | else |
| 1691 | eval "$3=\$ac_header_compiler" |
| 1692 | fi |
| 1693 | eval ac_res=\$$3 |
| 1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1695 | $as_echo "$ac_res" >&6; } |
| 1696 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1697 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1698 | |
| 1699 | } # ac_fn_c_check_header_mongrel |
| 1700 | |
| 1701 | # ac_fn_c_try_run LINENO |
| 1702 | # ---------------------- |
| 1703 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1704 | # that executables *can* be run. |
| 1705 | ac_fn_c_try_run () |
| 1706 | { |
| 1707 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1708 | if { { ac_try="$ac_link" |
| 1709 | case "(($ac_try" in |
| 1710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1711 | *) ac_try_echo=$ac_try;; |
| 1712 | esac |
| 1713 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1714 | $as_echo "$ac_try_echo"; } >&5 |
| 1715 | (eval "$ac_link") 2>&5 |
| 1716 | ac_status=$? |
| 1717 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1718 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1719 | { { case "(($ac_try" in |
| 1720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1721 | *) ac_try_echo=$ac_try;; |
| 1722 | esac |
| 1723 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1724 | $as_echo "$ac_try_echo"; } >&5 |
| 1725 | (eval "$ac_try") 2>&5 |
| 1726 | ac_status=$? |
| 1727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1728 | test $ac_status = 0; }; }; then : |
| 1729 | ac_retval=0 |
| 1730 | else |
| 1731 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1732 | $as_echo "$as_me: failed program was:" >&5 |
| 1733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1734 | |
| 1735 | ac_retval=$ac_status |
| 1736 | fi |
| 1737 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1738 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1739 | as_fn_set_status $ac_retval |
| 1740 | |
| 1741 | } # ac_fn_c_try_run |
| 1742 | |
| 1743 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1744 | # ------------------------------------------------------- |
| 1745 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1746 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1747 | ac_fn_c_check_header_compile () |
| 1748 | { |
| 1749 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1751 | $as_echo_n "checking for $2... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1752 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1753 | $as_echo_n "(cached) " >&6 |
| 1754 | else |
| 1755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1756 | /* end confdefs.h. */ |
| 1757 | $4 |
| 1758 | #include <$2> |
| 1759 | _ACEOF |
| 1760 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1761 | eval "$3=yes" |
| 1762 | else |
| 1763 | eval "$3=no" |
| 1764 | fi |
| 1765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1766 | fi |
| 1767 | eval ac_res=\$$3 |
| 1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1769 | $as_echo "$ac_res" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1770 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1771 | |
| 1772 | } # ac_fn_c_check_header_compile |
| 1773 | |
| 1774 | # ac_fn_c_try_link LINENO |
| 1775 | # ----------------------- |
| 1776 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1777 | ac_fn_c_try_link () |
| 1778 | { |
| 1779 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1780 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1781 | if { { ac_try="$ac_link" |
| 1782 | case "(($ac_try" in |
| 1783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1784 | *) ac_try_echo=$ac_try;; |
| 1785 | esac |
| 1786 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1787 | $as_echo "$ac_try_echo"; } >&5 |
| 1788 | (eval "$ac_link") 2>conftest.err |
| 1789 | ac_status=$? |
| 1790 | if test -s conftest.err; then |
| 1791 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1792 | cat conftest.er1 >&5 |
| 1793 | mv -f conftest.er1 conftest.err |
| 1794 | fi |
| 1795 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1796 | test $ac_status = 0; } && { |
| 1797 | test -z "$ac_c_werror_flag" || |
| 1798 | test ! -s conftest.err |
| 1799 | } && test -s conftest$ac_exeext && { |
| 1800 | test "$cross_compiling" = yes || |
| 1801 | $as_test_x conftest$ac_exeext |
| 1802 | }; then : |
| 1803 | ac_retval=0 |
| 1804 | else |
| 1805 | $as_echo "$as_me: failed program was:" >&5 |
| 1806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1807 | |
| 1808 | ac_retval=1 |
| 1809 | fi |
| 1810 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1811 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1812 | # interfere with the next link command; also delete a directory that is |
| 1813 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1814 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1815 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1816 | as_fn_set_status $ac_retval |
| 1817 | |
| 1818 | } # ac_fn_c_try_link |
| 1819 | |
| 1820 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1821 | # ------------------------------------------- |
| 1822 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1823 | # variable VAR accordingly. |
| 1824 | ac_fn_c_check_type () |
| 1825 | { |
| 1826 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1828 | $as_echo_n "checking for $2... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1829 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1830 | $as_echo_n "(cached) " >&6 |
| 1831 | else |
| 1832 | eval "$3=no" |
| 1833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1834 | /* end confdefs.h. */ |
| 1835 | $4 |
| 1836 | int |
| 1837 | main () |
| 1838 | { |
| 1839 | if (sizeof ($2)) |
| 1840 | return 0; |
| 1841 | ; |
| 1842 | return 0; |
| 1843 | } |
| 1844 | _ACEOF |
| 1845 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1847 | /* end confdefs.h. */ |
| 1848 | $4 |
| 1849 | int |
| 1850 | main () |
| 1851 | { |
| 1852 | if (sizeof (($2))) |
| 1853 | return 0; |
| 1854 | ; |
| 1855 | return 0; |
| 1856 | } |
| 1857 | _ACEOF |
| 1858 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1859 | |
| 1860 | else |
| 1861 | eval "$3=yes" |
| 1862 | fi |
| 1863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1864 | fi |
| 1865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1866 | fi |
| 1867 | eval ac_res=\$$3 |
| 1868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1869 | $as_echo "$ac_res" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1870 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1871 | |
| 1872 | } # ac_fn_c_check_type |
| 1873 | |
| 1874 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 1875 | # ------------------------------------ |
| 1876 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 1877 | # accordingly. |
| 1878 | ac_fn_c_find_uintX_t () |
| 1879 | { |
| 1880 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 1882 | $as_echo_n "checking for uint$2_t... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1883 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1884 | $as_echo_n "(cached) " >&6 |
| 1885 | else |
| 1886 | eval "$3=no" |
| 1887 | # Order is important - never check a type that is potentially smaller |
| 1888 | # than half of the expected target width. |
| 1889 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 1890 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 1891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1892 | /* end confdefs.h. */ |
| 1893 | $ac_includes_default |
| 1894 | int |
| 1895 | main () |
| 1896 | { |
| 1897 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
| 1898 | test_array [0] = 0 |
| 1899 | |
| 1900 | ; |
| 1901 | return 0; |
| 1902 | } |
| 1903 | _ACEOF |
| 1904 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1905 | case $ac_type in #( |
| 1906 | uint$2_t) : |
| 1907 | eval "$3=yes" ;; #( |
| 1908 | *) : |
| 1909 | eval "$3=\$ac_type" ;; |
| 1910 | esac |
| 1911 | fi |
| 1912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1913 | if eval test \"x\$"$3"\" = x"no"; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1914 | |
| 1915 | else |
| 1916 | break |
| 1917 | fi |
| 1918 | done |
| 1919 | fi |
| 1920 | eval ac_res=\$$3 |
| 1921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1922 | $as_echo "$ac_res" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1923 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1924 | |
| 1925 | } # ac_fn_c_find_uintX_t |
| 1926 | |
| 1927 | # ac_fn_c_find_intX_t LINENO BITS VAR |
| 1928 | # ----------------------------------- |
| 1929 | # Finds a signed integer type with width BITS, setting cache variable VAR |
| 1930 | # accordingly. |
| 1931 | ac_fn_c_find_intX_t () |
| 1932 | { |
| 1933 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 1935 | $as_echo_n "checking for int$2_t... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1936 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1937 | $as_echo_n "(cached) " >&6 |
| 1938 | else |
| 1939 | eval "$3=no" |
| 1940 | # Order is important - never check a type that is potentially smaller |
| 1941 | # than half of the expected target width. |
| 1942 | for ac_type in int$2_t 'int' 'long int' \ |
| 1943 | 'long long int' 'short int' 'signed char'; do |
| 1944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1945 | /* end confdefs.h. */ |
| 1946 | $ac_includes_default |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1947 | enum { N = $2 / 2 - 1 }; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1948 | int |
| 1949 | main () |
| 1950 | { |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1951 | 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] | 1952 | test_array [0] = 0 |
| 1953 | |
| 1954 | ; |
| 1955 | return 0; |
| 1956 | } |
| 1957 | _ACEOF |
| 1958 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1960 | /* end confdefs.h. */ |
| 1961 | $ac_includes_default |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1962 | enum { N = $2 / 2 - 1 }; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1963 | int |
| 1964 | main () |
| 1965 | { |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1966 | 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] | 1967 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
| 1968 | test_array [0] = 0 |
| 1969 | |
| 1970 | ; |
| 1971 | return 0; |
| 1972 | } |
| 1973 | _ACEOF |
| 1974 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1975 | |
| 1976 | else |
| 1977 | case $ac_type in #( |
| 1978 | int$2_t) : |
| 1979 | eval "$3=yes" ;; #( |
| 1980 | *) : |
| 1981 | eval "$3=\$ac_type" ;; |
| 1982 | esac |
| 1983 | fi |
| 1984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1985 | fi |
| 1986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1987 | if eval test \"x\$"$3"\" = x"no"; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1988 | |
| 1989 | else |
| 1990 | break |
| 1991 | fi |
| 1992 | done |
| 1993 | fi |
| 1994 | eval ac_res=\$$3 |
| 1995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1996 | $as_echo "$ac_res" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 1997 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1998 | |
| 1999 | } # ac_fn_c_find_intX_t |
| 2000 | |
| 2001 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2002 | # -------------------------------------------- |
| 2003 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2004 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2005 | # computed |
| 2006 | ac_fn_c_compute_int () |
| 2007 | { |
| 2008 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2009 | if test "$cross_compiling" = yes; then |
| 2010 | # Depending upon the size, compute the lo and hi bounds. |
| 2011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2012 | /* end confdefs.h. */ |
| 2013 | $4 |
| 2014 | int |
| 2015 | main () |
| 2016 | { |
| 2017 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2018 | test_array [0] = 0 |
| 2019 | |
| 2020 | ; |
| 2021 | return 0; |
| 2022 | } |
| 2023 | _ACEOF |
| 2024 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2025 | ac_lo=0 ac_mid=0 |
| 2026 | while :; do |
| 2027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2028 | /* end confdefs.h. */ |
| 2029 | $4 |
| 2030 | int |
| 2031 | main () |
| 2032 | { |
| 2033 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2034 | test_array [0] = 0 |
| 2035 | |
| 2036 | ; |
| 2037 | return 0; |
| 2038 | } |
| 2039 | _ACEOF |
| 2040 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2041 | ac_hi=$ac_mid; break |
| 2042 | else |
| 2043 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2044 | if test $ac_lo -le $ac_mid; then |
| 2045 | ac_lo= ac_hi= |
| 2046 | break |
| 2047 | fi |
| 2048 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2049 | fi |
| 2050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2051 | done |
| 2052 | else |
| 2053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2054 | /* end confdefs.h. */ |
| 2055 | $4 |
| 2056 | int |
| 2057 | main () |
| 2058 | { |
| 2059 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2060 | test_array [0] = 0 |
| 2061 | |
| 2062 | ; |
| 2063 | return 0; |
| 2064 | } |
| 2065 | _ACEOF |
| 2066 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2067 | ac_hi=-1 ac_mid=-1 |
| 2068 | while :; do |
| 2069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2070 | /* end confdefs.h. */ |
| 2071 | $4 |
| 2072 | int |
| 2073 | main () |
| 2074 | { |
| 2075 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2076 | test_array [0] = 0 |
| 2077 | |
| 2078 | ; |
| 2079 | return 0; |
| 2080 | } |
| 2081 | _ACEOF |
| 2082 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2083 | ac_lo=$ac_mid; break |
| 2084 | else |
| 2085 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2086 | if test $ac_mid -le $ac_hi; then |
| 2087 | ac_lo= ac_hi= |
| 2088 | break |
| 2089 | fi |
| 2090 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2091 | fi |
| 2092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2093 | done |
| 2094 | else |
| 2095 | ac_lo= ac_hi= |
| 2096 | fi |
| 2097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2098 | fi |
| 2099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2100 | # Binary search between lo and hi bounds. |
| 2101 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2102 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2104 | /* end confdefs.h. */ |
| 2105 | $4 |
| 2106 | int |
| 2107 | main () |
| 2108 | { |
| 2109 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2110 | test_array [0] = 0 |
| 2111 | |
| 2112 | ; |
| 2113 | return 0; |
| 2114 | } |
| 2115 | _ACEOF |
| 2116 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2117 | ac_hi=$ac_mid |
| 2118 | else |
| 2119 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2120 | fi |
| 2121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2122 | done |
| 2123 | case $ac_lo in #(( |
| 2124 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2125 | '') ac_retval=1 ;; |
| 2126 | esac |
| 2127 | else |
| 2128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2129 | /* end confdefs.h. */ |
| 2130 | $4 |
| 2131 | static long int longval () { return $2; } |
| 2132 | static unsigned long int ulongval () { return $2; } |
| 2133 | #include <stdio.h> |
| 2134 | #include <stdlib.h> |
| 2135 | int |
| 2136 | main () |
| 2137 | { |
| 2138 | |
| 2139 | FILE *f = fopen ("conftest.val", "w"); |
| 2140 | if (! f) |
| 2141 | return 1; |
| 2142 | if (($2) < 0) |
| 2143 | { |
| 2144 | long int i = longval (); |
| 2145 | if (i != ($2)) |
| 2146 | return 1; |
| 2147 | fprintf (f, "%ld", i); |
| 2148 | } |
| 2149 | else |
| 2150 | { |
| 2151 | unsigned long int i = ulongval (); |
| 2152 | if (i != ($2)) |
| 2153 | return 1; |
| 2154 | fprintf (f, "%lu", i); |
| 2155 | } |
| 2156 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2157 | on some platforms. */ |
| 2158 | return ferror (f) || fclose (f) != 0; |
| 2159 | |
| 2160 | ; |
| 2161 | return 0; |
| 2162 | } |
| 2163 | _ACEOF |
| 2164 | if ac_fn_c_try_run "$LINENO"; then : |
| 2165 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2166 | else |
| 2167 | ac_retval=1 |
| 2168 | fi |
| 2169 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2170 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2171 | rm -f conftest.val |
| 2172 | |
| 2173 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2174 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2175 | as_fn_set_status $ac_retval |
| 2176 | |
| 2177 | } # ac_fn_c_compute_int |
| 2178 | |
| 2179 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2180 | # ---------------------------------- |
| 2181 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2182 | ac_fn_c_check_func () |
| 2183 | { |
| 2184 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2186 | $as_echo_n "checking for $2... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2187 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2188 | $as_echo_n "(cached) " >&6 |
| 2189 | else |
| 2190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2191 | /* end confdefs.h. */ |
| 2192 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2193 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2194 | #define $2 innocuous_$2 |
| 2195 | |
| 2196 | /* System header to define __stub macros and hopefully few prototypes, |
| 2197 | which can conflict with char $2 (); below. |
| 2198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2199 | <limits.h> exists even on freestanding compilers. */ |
| 2200 | |
| 2201 | #ifdef __STDC__ |
| 2202 | # include <limits.h> |
| 2203 | #else |
| 2204 | # include <assert.h> |
| 2205 | #endif |
| 2206 | |
| 2207 | #undef $2 |
| 2208 | |
| 2209 | /* Override any GCC internal prototype to avoid an error. |
| 2210 | Use char because int might match the return type of a GCC |
| 2211 | builtin and then its argument prototype would still apply. */ |
| 2212 | #ifdef __cplusplus |
| 2213 | extern "C" |
| 2214 | #endif |
| 2215 | char $2 (); |
| 2216 | /* The GNU C library defines this for functions which it implements |
| 2217 | to always fail with ENOSYS. Some functions are actually named |
| 2218 | something starting with __ and the normal name is an alias. */ |
| 2219 | #if defined __stub_$2 || defined __stub___$2 |
| 2220 | choke me |
| 2221 | #endif |
| 2222 | |
| 2223 | int |
| 2224 | main () |
| 2225 | { |
| 2226 | return $2 (); |
| 2227 | ; |
| 2228 | return 0; |
| 2229 | } |
| 2230 | _ACEOF |
| 2231 | if ac_fn_c_try_link "$LINENO"; then : |
| 2232 | eval "$3=yes" |
| 2233 | else |
| 2234 | eval "$3=no" |
| 2235 | fi |
| 2236 | rm -f core conftest.err conftest.$ac_objext \ |
| 2237 | conftest$ac_exeext conftest.$ac_ext |
| 2238 | fi |
| 2239 | eval ac_res=\$$3 |
| 2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2241 | $as_echo "$ac_res" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2242 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2243 | |
| 2244 | } # ac_fn_c_check_func |
| 2245 | |
| 2246 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2247 | # ---------------------------------------------------- |
| 2248 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2249 | # INCLUDES, setting cache variable VAR accordingly. |
| 2250 | ac_fn_c_check_member () |
| 2251 | { |
| 2252 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2254 | $as_echo_n "checking for $2.$3... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2255 | if eval \${$4+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2256 | $as_echo_n "(cached) " >&6 |
| 2257 | else |
| 2258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2259 | /* end confdefs.h. */ |
| 2260 | $5 |
| 2261 | int |
| 2262 | main () |
| 2263 | { |
| 2264 | static $2 ac_aggr; |
| 2265 | if (ac_aggr.$3) |
| 2266 | return 0; |
| 2267 | ; |
| 2268 | return 0; |
| 2269 | } |
| 2270 | _ACEOF |
| 2271 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2272 | eval "$4=yes" |
| 2273 | else |
| 2274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2275 | /* end confdefs.h. */ |
| 2276 | $5 |
| 2277 | int |
| 2278 | main () |
| 2279 | { |
| 2280 | static $2 ac_aggr; |
| 2281 | if (sizeof ac_aggr.$3) |
| 2282 | return 0; |
| 2283 | ; |
| 2284 | return 0; |
| 2285 | } |
| 2286 | _ACEOF |
| 2287 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2288 | eval "$4=yes" |
| 2289 | else |
| 2290 | eval "$4=no" |
| 2291 | fi |
| 2292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2293 | fi |
| 2294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2295 | fi |
| 2296 | eval ac_res=\$$4 |
| 2297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2298 | $as_echo "$ac_res" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2299 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2300 | |
| 2301 | } # ac_fn_c_check_member |
| 2302 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2303 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2304 | # --------------------------------------------- |
| 2305 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2306 | # accordingly. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2307 | ac_fn_c_check_decl () |
| 2308 | { |
| 2309 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2310 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2311 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2313 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2314 | if eval \${$3+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2315 | $as_echo_n "(cached) " >&6 |
| 2316 | else |
| 2317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2318 | /* end confdefs.h. */ |
| 2319 | $4 |
| 2320 | int |
| 2321 | main () |
| 2322 | { |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2323 | #ifndef $as_decl_name |
| 2324 | #ifdef __cplusplus |
| 2325 | (void) $as_decl_use; |
| 2326 | #else |
| 2327 | (void) $as_decl_name; |
| 2328 | #endif |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2329 | #endif |
| 2330 | |
| 2331 | ; |
| 2332 | return 0; |
| 2333 | } |
| 2334 | _ACEOF |
| 2335 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2336 | eval "$3=yes" |
| 2337 | else |
| 2338 | eval "$3=no" |
| 2339 | fi |
| 2340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2341 | fi |
| 2342 | eval ac_res=\$$3 |
| 2343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2344 | $as_echo "$ac_res" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2345 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2346 | |
| 2347 | } # ac_fn_c_check_decl |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2348 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2349 | This file contains any messages produced by compilers while |
| 2350 | running configure, to aid debugging if configure makes a mistake. |
| 2351 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2352 | It was created by python $as_me 2.7, which was |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2353 | generated by GNU Autoconf 2.68. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2354 | |
| 2355 | $ $0 $@ |
| 2356 | |
| 2357 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2358 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2359 | { |
| 2360 | cat <<_ASUNAME |
| 2361 | ## --------- ## |
| 2362 | ## Platform. ## |
| 2363 | ## --------- ## |
| 2364 | |
| 2365 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2366 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2367 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2368 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2369 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2370 | |
| 2371 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2372 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2373 | |
| 2374 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2375 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2376 | /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] | 2377 | /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] | 2378 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2379 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2380 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2381 | |
| 2382 | _ASUNAME |
| 2383 | |
| 2384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2385 | for as_dir in $PATH |
| 2386 | do |
| 2387 | IFS=$as_save_IFS |
| 2388 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2389 | $as_echo "PATH: $as_dir" |
| 2390 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2391 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2392 | |
| 2393 | } >&5 |
| 2394 | |
| 2395 | cat >&5 <<_ACEOF |
| 2396 | |
| 2397 | |
| 2398 | ## ----------- ## |
| 2399 | ## Core tests. ## |
| 2400 | ## ----------- ## |
| 2401 | |
| 2402 | _ACEOF |
| 2403 | |
| 2404 | |
| 2405 | # Keep a trace of the command line. |
| 2406 | # 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] | 2407 | # 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] | 2408 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2409 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2410 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2411 | ac_configure_args0= |
| 2412 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2413 | ac_must_keep_next=false |
| 2414 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2415 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2416 | for ac_arg |
| 2417 | do |
| 2418 | case $ac_arg in |
| 2419 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2420 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2421 | | -silent | --silent | --silen | --sile | --sil) |
| 2422 | continue ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2423 | *\'*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2424 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2425 | esac |
| 2426 | case $ac_pass in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2427 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2428 | 2) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2429 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2430 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2431 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2432 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2433 | case $ac_arg in |
| 2434 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2435 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2436 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2437 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2438 | case "$ac_configure_args0 " in |
| 2439 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2440 | esac |
| 2441 | ;; |
| 2442 | -* ) ac_must_keep_next=true ;; |
| 2443 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2444 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2445 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2446 | ;; |
| 2447 | esac |
| 2448 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2449 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2450 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2451 | { ac_configure_args1=; unset ac_configure_args1;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2452 | |
| 2453 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2454 | # config.log. We remove comments because anyway the quotes in there |
| 2455 | # would cause problems or look ugly. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2456 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2457 | # 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] | 2458 | trap 'exit_status=$? |
| 2459 | # Save into config.log some information that might help in debugging. |
| 2460 | { |
| 2461 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2462 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2463 | $as_echo "## ---------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2464 | ## Cache variables. ## |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2465 | ## ---------------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2466 | echo |
| 2467 | # 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] | 2468 | ( |
| 2469 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2470 | eval ac_val=\$$ac_var |
| 2471 | case $ac_val in #( |
| 2472 | *${as_nl}*) |
| 2473 | case $ac_var in #( |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2474 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2475 | $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] | 2476 | esac |
| 2477 | case $ac_var in #( |
| 2478 | _ | IFS | as_nl) ;; #( |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2479 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2480 | *) { eval $ac_var=; unset $ac_var;} ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2481 | esac ;; |
| 2482 | esac |
| 2483 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2484 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2485 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2486 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2487 | sed -n \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2488 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2489 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2490 | ;; #( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2491 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2492 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2493 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2494 | esac | |
| 2495 | sort |
| 2496 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2497 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2498 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2499 | $as_echo "## ----------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2500 | ## Output variables. ## |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2501 | ## ----------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2502 | echo |
| 2503 | for ac_var in $ac_subst_vars |
| 2504 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2505 | eval ac_val=\$$ac_var |
| 2506 | case $ac_val in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2507 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2508 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2509 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2510 | done | sort |
| 2511 | echo |
| 2512 | |
| 2513 | if test -n "$ac_subst_files"; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2514 | $as_echo "## ------------------- ## |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2515 | ## File substitutions. ## |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2516 | ## ------------------- ##" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2517 | echo |
| 2518 | for ac_var in $ac_subst_files |
| 2519 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2520 | eval ac_val=\$$ac_var |
| 2521 | case $ac_val in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2522 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2523 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2524 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2525 | done | sort |
| 2526 | echo |
| 2527 | fi |
| 2528 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2529 | if test -s confdefs.h; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2530 | $as_echo "## ----------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2531 | ## confdefs.h. ## |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2532 | ## ----------- ##" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2533 | echo |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2534 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 | echo |
| 2536 | fi |
| 2537 | test "$ac_signal" != 0 && |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2538 | $as_echo "$as_me: caught signal $ac_signal" |
| 2539 | $as_echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2540 | } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2541 | rm -f core *.core core.conftest.* && |
| 2542 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2543 | exit $exit_status |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2544 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2545 | for ac_signal in 1 2 13 15; do |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2546 | 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] | 2547 | done |
| 2548 | ac_signal=0 |
| 2549 | |
| 2550 | # 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] | 2551 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2552 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2553 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2554 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2555 | # Predefined preprocessor variables. |
| 2556 | |
| 2557 | cat >>confdefs.h <<_ACEOF |
| 2558 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 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_TARNAME "$PACKAGE_TARNAME" |
| 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_VERSION "$PACKAGE_VERSION" |
| 2567 | _ACEOF |
| 2568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2569 | cat >>confdefs.h <<_ACEOF |
| 2570 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2571 | _ACEOF |
| 2572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2573 | cat >>confdefs.h <<_ACEOF |
| 2574 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2575 | _ACEOF |
| 2576 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2577 | cat >>confdefs.h <<_ACEOF |
| 2578 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2579 | _ACEOF |
| 2580 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2581 | |
| 2582 | # 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] | 2583 | # Prefer an explicitly selected file to automatically selected ones. |
| 2584 | ac_site_file1=NONE |
| 2585 | ac_site_file2=NONE |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2586 | if test -n "$CONFIG_SITE"; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2587 | # We do not want a PATH search for config.site. |
| 2588 | case $CONFIG_SITE in #(( |
| 2589 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2590 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2591 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2592 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2593 | elif test "x$prefix" != xNONE; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2594 | ac_site_file1=$prefix/share/config.site |
| 2595 | ac_site_file2=$prefix/etc/config.site |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2596 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2597 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2598 | ac_site_file2=$ac_default_prefix/etc/config.site |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2599 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2600 | 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] | 2601 | do |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2602 | test "x$ac_site_file" = xNONE && continue |
| 2603 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2605 | $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] | 2606 | sed 's/^/| /' "$ac_site_file" >&5 |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2607 | . "$ac_site_file" \ |
| 2608 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2609 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2610 | as_fn_error $? "failed to load site script $ac_site_file |
| 2611 | See \`config.log' for more details" "$LINENO" 5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2612 | fi |
| 2613 | done |
| 2614 | |
| 2615 | if test -r "$cache_file"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2616 | # Some versions of bash will fail to source /dev/null (special files |
| 2617 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2618 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2620 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2621 | case $cache_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2622 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2623 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2624 | esac |
| 2625 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2626 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2628 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2629 | >$cache_file |
| 2630 | fi |
| 2631 | |
| 2632 | # Check that the precious variables saved in the cache have kept the same |
| 2633 | # value. |
| 2634 | ac_cache_corrupted=false |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2635 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2636 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2637 | eval ac_new_set=\$ac_env_${ac_var}_set |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2638 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2639 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2640 | case $ac_old_set,$ac_new_set in |
| 2641 | set,) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2643 | $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] | 2644 | ac_cache_corrupted=: ;; |
| 2645 | ,set) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2646 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2647 | $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] | 2648 | ac_cache_corrupted=: ;; |
| 2649 | ,);; |
| 2650 | *) |
| 2651 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2652 | # differences in whitespace do not lead to failure. |
| 2653 | ac_old_val_w=`echo x $ac_old_val` |
| 2654 | ac_new_val_w=`echo x $ac_new_val` |
| 2655 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2657 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2658 | ac_cache_corrupted=: |
| 2659 | else |
| 2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2661 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2662 | eval $ac_var=\$ac_old_val |
| 2663 | fi |
| 2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2665 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2667 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2668 | fi;; |
| 2669 | esac |
| 2670 | # Pass precious variables to config.status. |
| 2671 | if test "$ac_new_set" = set; then |
| 2672 | case $ac_new_val in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2673 | *\'*) 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] | 2674 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2675 | esac |
| 2676 | case " $ac_configure_args " in |
| 2677 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2678 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2679 | esac |
| 2680 | fi |
| 2681 | done |
| 2682 | if $ac_cache_corrupted; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2684 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2686 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2687 | 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] | 2688 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2689 | ## -------------------- ## |
| 2690 | ## Main body of script. ## |
| 2691 | ## -------------------- ## |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2692 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2693 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2694 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2695 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2696 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2697 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2698 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2699 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2700 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2701 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2702 | |
| 2703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2704 | |
Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 2705 | if test "$prefix" != "/"; then |
| 2706 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 2707 | fi |
| 2708 | |
| 2709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2710 | |
| 2711 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2712 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 2713 | # with other autoconf-based packages that include Python.h |
| 2714 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 2715 | rm confdefs.h |
| 2716 | mv confdefs.h.new confdefs.h |
| 2717 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2718 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2719 | VERSION=2.7 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2720 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2721 | |
| 2722 | SOVERSION=1.0 |
| 2723 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2724 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 2725 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 2726 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2727 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2728 | |
| 2729 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2730 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2731 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 2732 | # them. |
| 2733 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2734 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2735 | |
| 2736 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2737 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2738 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 2739 | # them. |
| 2740 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2741 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2742 | |
| 2743 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2744 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2745 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 2746 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2747 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2748 | |
| 2749 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2750 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2751 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 2752 | # them. |
| 2753 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2754 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2755 | |
| 2756 | |
| 2757 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2758 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2759 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2760 | # Arguments passed to configure. |
| 2761 | |
| 2762 | CONFIG_ARGS="$ac_configure_args" |
| 2763 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
| 2765 | $as_echo_n "checking for --enable-universalsdk... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2766 | # Check whether --enable-universalsdk was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2767 | if test "${enable_universalsdk+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2768 | enableval=$enable_universalsdk; |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2769 | case $enableval in |
| 2770 | yes) |
| 2771 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2772 | if test ! -d "${enableval}" |
| 2773 | then |
| 2774 | enableval=/ |
| 2775 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2776 | ;; |
| 2777 | esac |
| 2778 | case $enableval in |
| 2779 | no) |
| 2780 | UNIVERSALSDK= |
| 2781 | enable_universalsdk= |
| 2782 | ;; |
| 2783 | *) |
| 2784 | UNIVERSALSDK=$enableval |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2785 | if test ! -d "${UNIVERSALSDK}" |
| 2786 | then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2787 | as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2788 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2789 | ;; |
| 2790 | esac |
| 2791 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2792 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2793 | else |
| 2794 | |
| 2795 | UNIVERSALSDK= |
| 2796 | enable_universalsdk= |
| 2797 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2798 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2799 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2800 | if test -n "${UNIVERSALSDK}" |
| 2801 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
| 2803 | $as_echo "${UNIVERSALSDK}" >&6; } |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2804 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2806 | $as_echo "no" >&6; } |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2807 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2808 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2809 | |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 2810 | |
| 2811 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2812 | UNIVERSAL_ARCHS="32-bit" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 2813 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
| 2815 | $as_echo_n "checking for --with-universal-archs... " >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2816 | |
| 2817 | # Check whether --with-universal-archs was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2818 | if test "${with_universal_archs+set}" = set; then : |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2819 | withval=$with_universal_archs; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 2821 | $as_echo "$withval" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2822 | UNIVERSAL_ARCHS="$withval" |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 2823 | if test "${enable_universalsdk}" ; then |
| 2824 | : |
| 2825 | else |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2826 | 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] | 2827 | fi |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2828 | |
| 2829 | else |
| 2830 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 |
| 2832 | $as_echo "32-bit" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2833 | |
| 2834 | fi |
| 2835 | |
| 2836 | |
| 2837 | |
| 2838 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2839 | |
| 2840 | # Check whether --with-framework-name was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2841 | if test "${with_framework_name+set}" = set; then : |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2842 | withval=$with_framework_name; |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 2843 | if test "${enable_framework}"; then |
| 2844 | : |
| 2845 | else |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 2846 | 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] | 2847 | fi |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2848 | PYTHONFRAMEWORK=${withval} |
| 2849 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 2850 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 2851 | |
| 2852 | else |
| 2853 | |
| 2854 | PYTHONFRAMEWORK=Python |
| 2855 | PYTHONFRAMEWORKDIR=Python.framework |
| 2856 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 2857 | |
| 2858 | fi |
| 2859 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2860 | # Check whether --enable-framework was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2861 | if test "${enable_framework+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2862 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2863 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2864 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2865 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2866 | esac |
| 2867 | case $enableval in |
| 2868 | no) |
| 2869 | PYTHONFRAMEWORK= |
| 2870 | PYTHONFRAMEWORKDIR=no-framework |
| 2871 | PYTHONFRAMEWORKPREFIX= |
| 2872 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2873 | FRAMEWORKINSTALLFIRST= |
| 2874 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2875 | FRAMEWORKALTINSTALLFIRST= |
| 2876 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2877 | if test "x${prefix}" = "xNONE"; then |
| 2878 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2879 | else |
| 2880 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2881 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2882 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2883 | ;; |
| 2884 | *) |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2885 | PYTHONFRAMEWORKPREFIX="${enableval}" |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2886 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2887 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2888 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 2889 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
| 2890 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2891 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2892 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2893 | if test "x${prefix}" = "xNONE" ; then |
| 2894 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2895 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2896 | else |
| 2897 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2898 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2899 | |
| 2900 | case "${enableval}" in |
| 2901 | /System*) |
| 2902 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 2903 | if test "${prefix}" = "NONE" ; then |
| 2904 | # See below |
| 2905 | FRAMEWORKUNIXTOOLSPREFIX="/usr" |
| 2906 | fi |
| 2907 | ;; |
| 2908 | |
| 2909 | /Library*) |
| 2910 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 2911 | ;; |
| 2912 | |
| 2913 | */Library/Frameworks) |
| 2914 | MDIR="`dirname "${enableval}"`" |
| 2915 | MDIR="`dirname "${MDIR}"`" |
| 2916 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" |
| 2917 | |
| 2918 | if test "${prefix}" = "NONE"; then |
| 2919 | # User hasn't specified the |
| 2920 | # --prefix option, but wants to install |
| 2921 | # the framework in a non-default location, |
| 2922 | # ensure that the compatibility links get |
| 2923 | # installed relative to that prefix as well |
| 2924 | # instead of in /usr/local. |
| 2925 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" |
| 2926 | fi |
| 2927 | ;; |
| 2928 | |
| 2929 | *) |
| 2930 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 2931 | ;; |
| 2932 | esac |
| 2933 | |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2934 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2935 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2936 | # Add files for Mac specific code to the list of output |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2937 | # files: |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2938 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2939 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2940 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2941 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2942 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2943 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2944 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2945 | |
| 2946 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2947 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2948 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2949 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2951 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2952 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2953 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2954 | PYTHONFRAMEWORKPREFIX= |
| 2955 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2956 | FRAMEWORKINSTALLFIRST= |
| 2957 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2958 | FRAMEWORKALTINSTALLFIRST= |
| 2959 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2960 | if test "x${prefix}" = "xNONE" ; then |
| 2961 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2962 | else |
| 2963 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2964 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2965 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2966 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2967 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2968 | fi |
| 2969 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2970 | |
| 2971 | |
| 2972 | |
| 2973 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2974 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2975 | |
| 2976 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2977 | |
| 2978 | |
| 2979 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2980 | |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2981 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2982 | ##AC_ARG_WITH(dyld, |
Matthias Klose | 22520ea | 2010-05-08 10:14:46 +0000 | [diff] [blame] | 2983 | ## AS_HELP_STRING([--with-dyld], |
| 2984 | ## [Use (OpenStep|Rhapsody) dynamic linker])) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2985 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2986 | # Set name for machine-dependent library files |
| 2987 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
| 2989 | $as_echo_n "checking MACHDEP... " >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2990 | if test -z "$MACHDEP" |
| 2991 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2992 | ac_sys_system=`uname -s` |
Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 2993 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2994 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2995 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2996 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2997 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2998 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2999 | ac_md_system=`echo $ac_sys_system | |
| 3000 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 3001 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 3002 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3003 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3004 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3005 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3006 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3007 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3008 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 3009 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3010 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3011 | esac |
| 3012 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3013 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3014 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 3015 | # disable features if it is defined, without any means to access these |
| 3016 | # features as extensions. For these systems, we skip the definition of |
| 3017 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 3018 | # some feature, make sure there is no alternative way to access this |
| 3019 | # feature. Also, when using wildcards, make sure you have verified the |
| 3020 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 3021 | # wildcard, and that the wildcard does not include future systems |
| 3022 | # (which may remove their limitations). |
| 3023 | case $ac_sys_system/$ac_sys_release in |
| 3024 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 3025 | # 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] | 3026 | # 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] | 3027 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
| 3028 | # OpenBSD 4.6, but is fixed in 4.7. |
| 3029 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456]) |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3030 | define_xopen_source=no |
| 3031 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3032 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3033 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3034 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3035 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3036 | |
| 3037 | ;; |
Martin v. Löwis | 7875ef6 | 2010-02-15 21:41:12 +0000 | [diff] [blame] | 3038 | OpenBSD/4.[789]) |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3039 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3040 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3041 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3042 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3043 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3044 | |
| 3045 | ;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 3046 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 3047 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 3048 | # Marc Recht |
Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 3049 | 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] | 3050 | define_xopen_source=no;; |
Martin v. Löwis | b41afb5 | 2010-05-28 15:28:47 +0000 | [diff] [blame] | 3051 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a |
| 3052 | # request to enable features supported by the standard as a request |
| 3053 | # to disable features not supported by the standard. The best way |
| 3054 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out |
| 3055 | # entirely and define __EXTENSIONS__ instead. |
| 3056 | SunOS/*) |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3057 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3058 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 3059 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3060 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3061 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3062 | define_xopen_source=no;; |
| 3063 | # 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] | 3064 | # 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] | 3065 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3066 | define_xopen_source=no;; |
Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 3067 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 3068 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 3069 | FreeBSD/4.*) |
| 3070 | define_xopen_source=no;; |
| 3071 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 3072 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 3073 | # identifies itself as Darwin/7.* |
| 3074 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3075 | # disables platform specific features beyond repair. |
| 3076 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3077 | # has no effect, don't bother defining them |
| 3078 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3079 | define_xopen_source=no;; |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 3080 | Darwin/1[0-9].*) |
| 3081 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3082 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 3083 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 3084 | # 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] | 3085 | AIX/4) |
| 3086 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3087 | AIX/5) |
| 3088 | if test `uname -r` -eq 1; then |
| 3089 | define_xopen_source=no |
| 3090 | fi |
| 3091 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 3092 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 3093 | # defining NI_NUMERICHOST. |
| 3094 | QNX/6.3.2) |
| 3095 | define_xopen_source=no |
| 3096 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 3097 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3098 | esac |
| 3099 | |
| 3100 | if test $define_xopen_source = yes |
| 3101 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3102 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3103 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3104 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3105 | |
| 3106 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 3107 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 3108 | # several APIs are not declared. Since this is also needed in some |
| 3109 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3110 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3111 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3112 | |
| 3113 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3114 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3115 | $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3116 | |
| 3117 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3118 | fi |
| 3119 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3120 | # |
| 3121 | # SGI compilers allow the specification of the both the ABI and the |
| 3122 | # ISA on the command line. Depending on the values of these switches, |
| 3123 | # different and often incompatable code will be generated. |
| 3124 | # |
| 3125 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 3126 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 3127 | # variable is also adjusted. |
| 3128 | # |
| 3129 | |
| 3130 | if test ! -z "$SGI_ABI" |
| 3131 | then |
| 3132 | CC="cc $SGI_ABI" |
| 3133 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 3134 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 3135 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 |
| 3137 | $as_echo "$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3138 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3139 | # And add extra plat-mac for darwin |
| 3140 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3141 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5 |
| 3143 | $as_echo_n "checking EXTRAPLATDIR... " >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3144 | if test -z "$EXTRAPLATDIR" |
| 3145 | then |
| 3146 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3147 | darwin) |
| 3148 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 3149 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 3150 | ;; |
| 3151 | *) |
| 3152 | EXTRAPLATDIR="" |
| 3153 | EXTRAMACHDEPPATH="" |
| 3154 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3155 | esac |
| 3156 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5 |
| 3158 | $as_echo "$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3159 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3160 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 3161 | # it may influence the way we can build extensions, so distutils |
| 3162 | # needs to check it |
| 3163 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3164 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3165 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3166 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3167 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking machine type as reported by uname -m" >&5 |
| 3169 | $as_echo_n "checking machine type as reported by uname -m... " >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 3170 | ac_sys_machine=`uname -m` |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sys_machine" >&5 |
| 3172 | $as_echo "$ac_sys_machine" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 3173 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3174 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3175 | |
| 3176 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 3177 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 3178 | # just to get things to compile and link. Users are free to override OPT |
| 3179 | # when running configure or make. The build should not break if they do. |
| 3180 | # BASECFLAGS should generally not be messed with, however. |
| 3181 | |
| 3182 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 3183 | # on that fiddles with OPT and BASECFLAGS? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 |
| 3185 | $as_echo_n "checking for --without-gcc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3186 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3187 | # Check whether --with-gcc was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3188 | if test "${with_gcc+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3189 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3190 | case $withval in |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 3191 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3192 | without_gcc=yes;; |
| 3193 | yes) CC=gcc |
| 3194 | without_gcc=no;; |
| 3195 | *) CC=$withval |
| 3196 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3197 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3198 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3199 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3200 | case $ac_sys_system in |
Antoine Pitrou | 285cd16 | 2010-09-21 15:23:17 +0000 | [diff] [blame] | 3201 | AIX*) CC=${CC:-xlc_r} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3202 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3203 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3204 | case $BE_HOST_CPU in |
| 3205 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3206 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3207 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3208 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 3209 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3210 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3211 | ;; |
| 3212 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3213 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3214 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3215 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3216 | ;; |
| 3217 | *) |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3218 | as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5 |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3219 | ;; |
| 3220 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3221 | AR="\$(srcdir)/Modules/ar_beos" |
| 3222 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3223 | ;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3224 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3225 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3226 | fi |
| 3227 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 |
| 3229 | $as_echo "$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3230 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3231 | # If the user switches compilers, we can't believe the cache |
| 3232 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 3233 | then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3234 | as_fn_error $? "cached CC is different -- throw away $cache_file |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3235 | (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] | 3236 | fi |
| 3237 | |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 3238 | # If the user set CFLAGS, use this instead of the automatically |
| 3239 | # determined setting |
| 3240 | preset_cflags="$CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3241 | ac_ext=c |
| 3242 | ac_cpp='$CPP $CPPFLAGS' |
| 3243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3246 | if test -n "$ac_tool_prefix"; then |
| 3247 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3248 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3250 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3251 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3252 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3253 | else |
| 3254 | if test -n "$CC"; then |
| 3255 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3256 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3258 | for as_dir in $PATH |
| 3259 | do |
| 3260 | IFS=$as_save_IFS |
| 3261 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3262 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3263 | 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] | 3264 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3265 | $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] | 3266 | break 2 |
| 3267 | fi |
| 3268 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3269 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3270 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3271 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3272 | fi |
| 3273 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3274 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3275 | if test -n "$CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3277 | $as_echo "$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3278 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3280 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3281 | fi |
| 3282 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3283 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3284 | fi |
| 3285 | if test -z "$ac_cv_prog_CC"; then |
| 3286 | ac_ct_CC=$CC |
| 3287 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3288 | set dummy gcc; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3290 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3291 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3292 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3293 | else |
| 3294 | if test -n "$ac_ct_CC"; then |
| 3295 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3296 | else |
| 3297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3298 | for as_dir in $PATH |
| 3299 | do |
| 3300 | IFS=$as_save_IFS |
| 3301 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3302 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3303 | 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] | 3304 | ac_cv_prog_ac_ct_CC="gcc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3305 | $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] | 3306 | break 2 |
| 3307 | fi |
| 3308 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3309 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3310 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3311 | |
| 3312 | fi |
| 3313 | fi |
| 3314 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3315 | if test -n "$ac_ct_CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3317 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3318 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3320 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3321 | fi |
| 3322 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3323 | if test "x$ac_ct_CC" = x; then |
| 3324 | CC="" |
| 3325 | else |
| 3326 | case $cross_compiling:$ac_tool_warned in |
| 3327 | yes:) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3328 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3329 | $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] | 3330 | ac_tool_warned=yes ;; |
| 3331 | esac |
| 3332 | CC=$ac_ct_CC |
| 3333 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3334 | else |
| 3335 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3336 | fi |
| 3337 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3338 | if test -z "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3339 | if test -n "$ac_tool_prefix"; then |
| 3340 | # 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] | 3341 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3343 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3344 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3345 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3346 | else |
| 3347 | if test -n "$CC"; then |
| 3348 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3351 | for as_dir in $PATH |
| 3352 | do |
| 3353 | IFS=$as_save_IFS |
| 3354 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3355 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3356 | 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] | 3357 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3358 | $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] | 3359 | break 2 |
| 3360 | fi |
| 3361 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3362 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3363 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3364 | |
| 3365 | fi |
| 3366 | fi |
| 3367 | CC=$ac_cv_prog_CC |
| 3368 | if test -n "$CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3370 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3371 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3373 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3374 | fi |
| 3375 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3376 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3377 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3378 | fi |
| 3379 | if test -z "$CC"; then |
| 3380 | # Extract the first word of "cc", so it can be a program name with args. |
| 3381 | set dummy cc; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3383 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3384 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3385 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3386 | else |
| 3387 | if test -n "$CC"; then |
| 3388 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3389 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3390 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3392 | for as_dir in $PATH |
| 3393 | do |
| 3394 | IFS=$as_save_IFS |
| 3395 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3396 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3397 | 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] | 3398 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3399 | ac_prog_rejected=yes |
| 3400 | continue |
| 3401 | fi |
| 3402 | ac_cv_prog_CC="cc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3403 | $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] | 3404 | break 2 |
| 3405 | fi |
| 3406 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3407 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3408 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3409 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3410 | if test $ac_prog_rejected = yes; then |
| 3411 | # We found a bogon in the path, so make sure we never use it. |
| 3412 | set dummy $ac_cv_prog_CC |
| 3413 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3414 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3415 | # We chose a different compiler from the bogus one. |
| 3416 | # However, it has the same basename, so the bogon will be chosen |
| 3417 | # first if we set CC to just the basename; use the full file name. |
| 3418 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3419 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3420 | fi |
| 3421 | fi |
| 3422 | fi |
| 3423 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3424 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3425 | if test -n "$CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3427 | $as_echo "$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3428 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3430 | $as_echo "no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3431 | fi |
| 3432 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3433 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3434 | fi |
| 3435 | if test -z "$CC"; then |
| 3436 | if test -n "$ac_tool_prefix"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3437 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3438 | do |
| 3439 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3440 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3442 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3443 | if ${ac_cv_prog_CC+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3444 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3445 | else |
| 3446 | if test -n "$CC"; then |
| 3447 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3448 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3450 | for as_dir in $PATH |
| 3451 | do |
| 3452 | IFS=$as_save_IFS |
| 3453 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3454 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3455 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3456 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3457 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3458 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3459 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3460 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3461 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3462 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3463 | |
| 3464 | fi |
| 3465 | fi |
| 3466 | CC=$ac_cv_prog_CC |
| 3467 | if test -n "$CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3469 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3470 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3472 | $as_echo "no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3473 | fi |
| 3474 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3476 | test -n "$CC" && break |
| 3477 | done |
| 3478 | fi |
| 3479 | if test -z "$CC"; then |
| 3480 | ac_ct_CC=$CC |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3481 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3482 | do |
| 3483 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3484 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3486 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3487 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3488 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3489 | else |
| 3490 | if test -n "$ac_ct_CC"; then |
| 3491 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3492 | else |
| 3493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3494 | for as_dir in $PATH |
| 3495 | do |
| 3496 | IFS=$as_save_IFS |
| 3497 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3498 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3499 | 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] | 3500 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3501 | $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] | 3502 | break 2 |
| 3503 | fi |
| 3504 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3505 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3506 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3508 | fi |
| 3509 | fi |
| 3510 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3511 | if test -n "$ac_ct_CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3513 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3514 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3516 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3517 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3518 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3519 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3520 | test -n "$ac_ct_CC" && break |
| 3521 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3522 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3523 | if test "x$ac_ct_CC" = x; then |
| 3524 | CC="" |
| 3525 | else |
| 3526 | case $cross_compiling:$ac_tool_warned in |
| 3527 | yes:) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3529 | $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] | 3530 | ac_tool_warned=yes ;; |
| 3531 | esac |
| 3532 | CC=$ac_ct_CC |
| 3533 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3534 | fi |
| 3535 | |
| 3536 | fi |
| 3537 | |
| 3538 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3539 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3540 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3541 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3542 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3543 | |
| 3544 | # Provide some information about the compiler. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3545 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3546 | set X $ac_compile |
| 3547 | ac_compiler=$2 |
| 3548 | for ac_option in --version -v -V -qversion; do |
| 3549 | { { ac_try="$ac_compiler $ac_option >&5" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3550 | case "(($ac_try" in |
| 3551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3552 | *) ac_try_echo=$ac_try;; |
| 3553 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3554 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3555 | $as_echo "$ac_try_echo"; } >&5 |
| 3556 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3557 | ac_status=$? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3558 | if test -s conftest.err; then |
| 3559 | sed '10a\ |
| 3560 | ... rest of stderr output deleted ... |
| 3561 | 10q' conftest.err >conftest.er1 |
| 3562 | cat conftest.er1 >&5 |
| 3563 | fi |
| 3564 | rm -f conftest.er1 conftest.err |
| 3565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3566 | test $ac_status = 0; } |
| 3567 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3568 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3570 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3572 | int |
| 3573 | main () |
| 3574 | { |
| 3575 | |
| 3576 | ; |
| 3577 | return 0; |
| 3578 | } |
| 3579 | _ACEOF |
| 3580 | ac_clean_files_save=$ac_clean_files |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3581 | 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] | 3582 | # Try to create an executable without -o first, disregard a.out. |
| 3583 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3584 | # of exeext. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3586 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3587 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3588 | |
| 3589 | # The possible output files: |
| 3590 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3591 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3592 | ac_rmfiles= |
| 3593 | for ac_file in $ac_files |
| 3594 | do |
| 3595 | case $ac_file in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3596 | *.$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] | 3597 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3598 | esac |
| 3599 | done |
| 3600 | rm -f $ac_rmfiles |
| 3601 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3602 | if { { ac_try="$ac_link_default" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3603 | case "(($ac_try" in |
| 3604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3605 | *) ac_try_echo=$ac_try;; |
| 3606 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3607 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3608 | $as_echo "$ac_try_echo"; } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3609 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3610 | ac_status=$? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3612 | test $ac_status = 0; }; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3613 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3614 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3615 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3616 | # so that the user can short-circuit this test for compilers unknown to |
| 3617 | # Autoconf. |
| 3618 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3619 | do |
| 3620 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3621 | case $ac_file in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3622 | *.$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] | 3623 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3624 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3625 | # We found the default executable, but exeext='' is most |
| 3626 | # certainly right. |
| 3627 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3628 | *.* ) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3629 | 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] | 3630 | then :; else |
| 3631 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3632 | fi |
| 3633 | # We set ac_cv_exeext here because the later test for it is not |
| 3634 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3635 | # argument, so we may need to know it at that point already. |
| 3636 | # Even if this section looks crufty: it has the advantage of |
| 3637 | # actually working. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3638 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3639 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3640 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3641 | esac |
| 3642 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3643 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3644 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3645 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3646 | ac_file='' |
| 3647 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3648 | if test -z "$ac_file"; then : |
| 3649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3650 | $as_echo "no" >&6; } |
| 3651 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3653 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3654 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3655 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3656 | as_fn_error 77 "C compiler cannot create executables |
| 3657 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3658 | else |
| 3659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3660 | $as_echo "yes" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3661 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3663 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3665 | $as_echo "$ac_file" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3666 | ac_exeext=$ac_cv_exeext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3667 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3668 | 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] | 3669 | ac_clean_files=$ac_clean_files_save |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3671 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3672 | if { { ac_try="$ac_link" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3673 | case "(($ac_try" in |
| 3674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3675 | *) ac_try_echo=$ac_try;; |
| 3676 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3677 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3678 | $as_echo "$ac_try_echo"; } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3679 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3680 | ac_status=$? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3681 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3682 | test $ac_status = 0; }; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3683 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3684 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3685 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3686 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3687 | for ac_file in conftest.exe conftest conftest.*; do |
| 3688 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3689 | case $ac_file in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3690 | *.$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] | 3691 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3692 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3693 | * ) break;; |
| 3694 | esac |
| 3695 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3696 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3697 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3698 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3699 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3700 | See \`config.log' for more details" "$LINENO" 5; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3701 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3702 | rm -f conftest conftest$ac_cv_exeext |
| 3703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3704 | $as_echo "$ac_cv_exeext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3705 | |
| 3706 | rm -f conftest.$ac_ext |
| 3707 | EXEEXT=$ac_cv_exeext |
| 3708 | ac_exeext=$EXEEXT |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3710 | /* end confdefs.h. */ |
| 3711 | #include <stdio.h> |
| 3712 | int |
| 3713 | main () |
| 3714 | { |
| 3715 | FILE *f = fopen ("conftest.out", "w"); |
| 3716 | return ferror (f) || fclose (f) != 0; |
| 3717 | |
| 3718 | ; |
| 3719 | return 0; |
| 3720 | } |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3721 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3722 | ac_clean_files="$ac_clean_files conftest.out" |
| 3723 | # Check that the compiler produces executables we can run. If not, either |
| 3724 | # the compiler is broken, or we cross compile. |
| 3725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3726 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3727 | if test "$cross_compiling" != yes; then |
| 3728 | { { ac_try="$ac_link" |
| 3729 | case "(($ac_try" in |
| 3730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3731 | *) ac_try_echo=$ac_try;; |
| 3732 | esac |
| 3733 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3734 | $as_echo "$ac_try_echo"; } >&5 |
| 3735 | (eval "$ac_link") 2>&5 |
| 3736 | ac_status=$? |
| 3737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3738 | test $ac_status = 0; } |
| 3739 | if { ac_try='./conftest$ac_cv_exeext' |
| 3740 | { { case "(($ac_try" in |
| 3741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3742 | *) ac_try_echo=$ac_try;; |
| 3743 | esac |
| 3744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3745 | $as_echo "$ac_try_echo"; } >&5 |
| 3746 | (eval "$ac_try") 2>&5 |
| 3747 | ac_status=$? |
| 3748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3749 | test $ac_status = 0; }; }; then |
| 3750 | cross_compiling=no |
| 3751 | else |
| 3752 | if test "$cross_compiling" = maybe; then |
| 3753 | cross_compiling=yes |
| 3754 | else |
| 3755 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3756 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3757 | as_fn_error $? "cannot run C compiled programs. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3758 | If you meant to cross compile, use \`--host'. |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3759 | See \`config.log' for more details" "$LINENO" 5; } |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3760 | fi |
| 3761 | fi |
| 3762 | fi |
| 3763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3764 | $as_echo "$cross_compiling" >&6; } |
| 3765 | |
| 3766 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3767 | ac_clean_files=$ac_clean_files_save |
| 3768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3769 | $as_echo_n "checking for suffix of object files... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3770 | if ${ac_cv_objext+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3771 | $as_echo_n "(cached) " >&6 |
| 3772 | else |
| 3773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3774 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3775 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3776 | int |
| 3777 | main () |
| 3778 | { |
| 3779 | |
| 3780 | ; |
| 3781 | return 0; |
| 3782 | } |
| 3783 | _ACEOF |
| 3784 | rm -f conftest.o conftest.obj |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3785 | if { { ac_try="$ac_compile" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3786 | case "(($ac_try" in |
| 3787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3788 | *) ac_try_echo=$ac_try;; |
| 3789 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3790 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3791 | $as_echo "$ac_try_echo"; } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3792 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3793 | ac_status=$? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3795 | test $ac_status = 0; }; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3796 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3797 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3798 | case $ac_file in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3799 | *.$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] | 3800 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3801 | break;; |
| 3802 | esac |
| 3803 | done |
| 3804 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3805 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3807 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3808 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3809 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3810 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3811 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3812 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3813 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3814 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3816 | $as_echo "$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3817 | OBJEXT=$ac_cv_objext |
| 3818 | ac_objext=$OBJEXT |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3820 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3821 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3822 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3823 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3825 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3827 | int |
| 3828 | main () |
| 3829 | { |
| 3830 | #ifndef __GNUC__ |
| 3831 | choke me |
| 3832 | #endif |
| 3833 | |
| 3834 | ; |
| 3835 | return 0; |
| 3836 | } |
| 3837 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3838 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3839 | ac_compiler_gnu=yes |
| 3840 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3841 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3842 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3843 | 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] | 3844 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3845 | |
| 3846 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3848 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3849 | if test $ac_compiler_gnu = yes; then |
| 3850 | GCC=yes |
| 3851 | else |
| 3852 | GCC= |
| 3853 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3854 | ac_test_CFLAGS=${CFLAGS+set} |
| 3855 | ac_save_CFLAGS=$CFLAGS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3857 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3858 | if ${ac_cv_prog_cc_g+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3859 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3860 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3861 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3862 | ac_c_werror_flag=yes |
| 3863 | ac_cv_prog_cc_g=no |
| 3864 | CFLAGS="-g" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3866 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3868 | int |
| 3869 | main () |
| 3870 | { |
| 3871 | |
| 3872 | ; |
| 3873 | return 0; |
| 3874 | } |
| 3875 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3876 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3877 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3878 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3879 | CFLAGS="" |
| 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 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3893 | else |
| 3894 | ac_c_werror_flag=$ac_save_c_werror_flag |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3895 | CFLAGS="-g" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3897 | /* end confdefs.h. */ |
| 3898 | |
| 3899 | int |
| 3900 | main () |
| 3901 | { |
| 3902 | |
| 3903 | ; |
| 3904 | return 0; |
| 3905 | } |
| 3906 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3907 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3908 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3909 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3911 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3913 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3915 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3916 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3918 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3919 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3920 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3921 | elif test $ac_cv_prog_cc_g = yes; then |
| 3922 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3923 | CFLAGS="-g -O2" |
| 3924 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3925 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3926 | fi |
| 3927 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3928 | if test "$GCC" = yes; then |
| 3929 | CFLAGS="-O2" |
| 3930 | else |
| 3931 | CFLAGS= |
| 3932 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3933 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3935 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 3936 | if ${ac_cv_prog_cc_c89+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3937 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3938 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3939 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3940 | ac_save_CC=$CC |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3942 | /* end confdefs.h. */ |
| 3943 | #include <stdarg.h> |
| 3944 | #include <stdio.h> |
| 3945 | #include <sys/types.h> |
| 3946 | #include <sys/stat.h> |
| 3947 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3948 | struct buf { int x; }; |
| 3949 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3950 | static char *e (p, i) |
| 3951 | char **p; |
| 3952 | int i; |
| 3953 | { |
| 3954 | return p[i]; |
| 3955 | } |
| 3956 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3957 | { |
| 3958 | char *s; |
| 3959 | va_list v; |
| 3960 | va_start (v,p); |
| 3961 | s = g (p, va_arg (v,int)); |
| 3962 | va_end (v); |
| 3963 | return s; |
| 3964 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3965 | |
| 3966 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3967 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3968 | 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] | 3969 | 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] | 3970 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3971 | 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] | 3972 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3973 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3974 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3975 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3976 | inside strings and character constants. */ |
| 3977 | #define FOO(x) 'x' |
| 3978 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3979 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3980 | int test (int i, double x); |
| 3981 | struct s1 {int (*f) (int a);}; |
| 3982 | struct s2 {int (*f) (double a);}; |
| 3983 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3984 | int argc; |
| 3985 | char **argv; |
| 3986 | int |
| 3987 | main () |
| 3988 | { |
| 3989 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3990 | ; |
| 3991 | return 0; |
| 3992 | } |
| 3993 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3994 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3995 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3996 | do |
| 3997 | CC="$ac_save_CC $ac_arg" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3998 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3999 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4000 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4001 | rm -f core conftest.err conftest.$ac_objext |
| 4002 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4003 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4004 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4005 | CC=$ac_save_CC |
| 4006 | |
| 4007 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4008 | # AC_CACHE_VAL |
| 4009 | case "x$ac_cv_prog_cc_c89" in |
| 4010 | x) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4012 | $as_echo "none needed" >&6; } ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4013 | xno) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4015 | $as_echo "unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4016 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4017 | CC="$CC $ac_cv_prog_cc_c89" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4019 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4020 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4021 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4022 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4023 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4024 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4025 | ac_ext=c |
| 4026 | ac_cpp='$CPP $CPPFLAGS' |
| 4027 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4028 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4029 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4030 | |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 4031 | if test ! -z "$preset_cflags" |
| 4032 | then |
| 4033 | CFLAGS=$preset_cflags |
| 4034 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4035 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4036 | |
| 4037 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
| 4039 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4040 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4041 | # Check whether --with-cxx_main was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4042 | if test "${with_cxx_main+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4043 | withval=$with_cxx_main; |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4044 | |
| 4045 | case $withval in |
| 4046 | no) with_cxx_main=no |
| 4047 | MAINCC='$(CC)';; |
| 4048 | yes) with_cxx_main=yes |
| 4049 | MAINCC='$(CXX)';; |
| 4050 | *) with_cxx_main=yes |
| 4051 | MAINCC=$withval |
| 4052 | if test -z "$CXX" |
| 4053 | then |
| 4054 | CXX=$withval |
| 4055 | fi;; |
| 4056 | esac |
| 4057 | else |
| 4058 | |
| 4059 | with_cxx_main=no |
| 4060 | MAINCC='$(CC)' |
| 4061 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4062 | fi |
| 4063 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
| 4065 | $as_echo "$with_cxx_main" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4066 | |
| 4067 | preset_cxx="$CXX" |
| 4068 | if test -z "$CXX" |
| 4069 | then |
| 4070 | case "$CC" in |
| 4071 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 4072 | set dummy g++; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4074 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4075 | if ${ac_cv_path_CXX+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4076 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4077 | else |
| 4078 | case $CXX in |
| 4079 | [\\/]* | ?:[\\/]*) |
| 4080 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4081 | ;; |
| 4082 | *) |
| 4083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4084 | for as_dir in notfound |
| 4085 | do |
| 4086 | IFS=$as_save_IFS |
| 4087 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4088 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4089 | 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] | 4090 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4091 | $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] | 4092 | break 2 |
| 4093 | fi |
| 4094 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4095 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4096 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4097 | |
| 4098 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 4099 | ;; |
| 4100 | esac |
| 4101 | fi |
| 4102 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4103 | if test -n "$CXX"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4105 | $as_echo "$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4106 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4108 | $as_echo "no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4109 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4110 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4111 | ;; |
| 4112 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 4113 | set dummy c++; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4115 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4116 | if ${ac_cv_path_CXX+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4117 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4118 | else |
| 4119 | case $CXX in |
| 4120 | [\\/]* | ?:[\\/]*) |
| 4121 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4122 | ;; |
| 4123 | *) |
| 4124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4125 | for as_dir in notfound |
| 4126 | do |
| 4127 | IFS=$as_save_IFS |
| 4128 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4129 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4130 | 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] | 4131 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4132 | $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] | 4133 | break 2 |
| 4134 | fi |
| 4135 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4136 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4137 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4138 | |
| 4139 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 4140 | ;; |
| 4141 | esac |
| 4142 | fi |
| 4143 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4144 | if test -n "$CXX"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4146 | $as_echo "$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4147 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4149 | $as_echo "no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4150 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4151 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4152 | ;; |
| 4153 | esac |
| 4154 | if test "$CXX" = "notfound" |
| 4155 | then |
| 4156 | CXX="" |
| 4157 | fi |
| 4158 | fi |
| 4159 | if test -z "$CXX" |
| 4160 | then |
| 4161 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 4162 | do |
| 4163 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4164 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4166 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4167 | if ${ac_cv_prog_CXX+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4168 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4169 | else |
| 4170 | if test -n "$CXX"; then |
| 4171 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4172 | else |
| 4173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4174 | for as_dir in $PATH |
| 4175 | do |
| 4176 | IFS=$as_save_IFS |
| 4177 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4178 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4179 | 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] | 4180 | ac_cv_prog_CXX="$ac_prog" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4181 | $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] | 4182 | break 2 |
| 4183 | fi |
| 4184 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4185 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4186 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4187 | |
| 4188 | fi |
| 4189 | fi |
| 4190 | CXX=$ac_cv_prog_CXX |
| 4191 | if test -n "$CXX"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4193 | $as_echo "$CXX" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4194 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4196 | $as_echo "no" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4197 | fi |
| 4198 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4199 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4200 | test -n "$CXX" && break |
| 4201 | done |
| 4202 | test -n "$CXX" || CXX="notfound" |
| 4203 | |
| 4204 | if test "$CXX" = "notfound" |
| 4205 | then |
| 4206 | CXX="" |
| 4207 | fi |
| 4208 | fi |
| 4209 | if test "$preset_cxx" != "$CXX" |
| 4210 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4212 | |
| 4213 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 4214 | If this is not intended, then set CXX on the configure command line. |
| 4215 | " >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4216 | $as_echo "$as_me: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4217 | |
| 4218 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 4219 | If this is not intended, then set CXX on the configure command line. |
| 4220 | " >&2;} |
| 4221 | fi |
| 4222 | |
| 4223 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4224 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4225 | |
| 4226 | ac_ext=c |
| 4227 | ac_cpp='$CPP $CPPFLAGS' |
| 4228 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4229 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4230 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4232 | $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] | 4233 | # On Suns, sometimes $CPP names a directory. |
| 4234 | if test -n "$CPP" && test -d "$CPP"; then |
| 4235 | CPP= |
| 4236 | fi |
| 4237 | if test -z "$CPP"; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4238 | if ${ac_cv_prog_CPP+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4239 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4240 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4241 | # Double quotes because CPP needs to be expanded |
| 4242 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4243 | do |
| 4244 | ac_preproc_ok=false |
| 4245 | for ac_c_preproc_warn_flag in '' yes |
| 4246 | do |
| 4247 | # Use a header file that comes with gcc, so configuring glibc |
| 4248 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4249 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4250 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4251 | # 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] | 4252 | # not just through cpp. "Syntax error" is here to catch this case. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4254 | /* end confdefs.h. */ |
| 4255 | #ifdef __STDC__ |
| 4256 | # include <limits.h> |
| 4257 | #else |
| 4258 | # include <assert.h> |
| 4259 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4260 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4261 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4262 | if ac_fn_c_try_cpp "$LINENO"; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4263 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4264 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4265 | # Broken: fails on valid input. |
| 4266 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4267 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4268 | rm -f conftest.err conftest.i conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4269 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4270 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4271 | # can be detected and how. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4273 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4274 | #include <ac_nonexistent.h> |
| 4275 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4276 | if ac_fn_c_try_cpp "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4277 | # Broken: success on invalid input. |
| 4278 | continue |
| 4279 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4280 | # Passes both tests. |
| 4281 | ac_preproc_ok=: |
| 4282 | break |
| 4283 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4284 | rm -f conftest.err conftest.i conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4285 | |
| 4286 | done |
| 4287 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4288 | rm -f conftest.i conftest.err conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4289 | if $ac_preproc_ok; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4290 | break |
| 4291 | fi |
| 4292 | |
| 4293 | done |
| 4294 | ac_cv_prog_CPP=$CPP |
| 4295 | |
| 4296 | fi |
| 4297 | CPP=$ac_cv_prog_CPP |
| 4298 | else |
| 4299 | ac_cv_prog_CPP=$CPP |
| 4300 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4302 | $as_echo "$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4303 | ac_preproc_ok=false |
| 4304 | for ac_c_preproc_warn_flag in '' yes |
| 4305 | do |
| 4306 | # Use a header file that comes with gcc, so configuring glibc |
| 4307 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4308 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4309 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4310 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4311 | # not just through cpp. "Syntax error" is here to catch this case. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4313 | /* end confdefs.h. */ |
| 4314 | #ifdef __STDC__ |
| 4315 | # include <limits.h> |
| 4316 | #else |
| 4317 | # include <assert.h> |
| 4318 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4319 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4320 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4321 | if ac_fn_c_try_cpp "$LINENO"; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4322 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4323 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4324 | # Broken: fails on valid input. |
| 4325 | continue |
| 4326 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4327 | rm -f conftest.err conftest.i conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4328 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4329 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4330 | # can be detected and how. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4332 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4333 | #include <ac_nonexistent.h> |
| 4334 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4335 | if ac_fn_c_try_cpp "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4336 | # Broken: success on invalid input. |
| 4337 | continue |
| 4338 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4339 | # Passes both tests. |
| 4340 | ac_preproc_ok=: |
| 4341 | break |
| 4342 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4343 | rm -f conftest.err conftest.i conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4344 | |
| 4345 | done |
| 4346 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4347 | rm -f conftest.i conftest.err conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4348 | if $ac_preproc_ok; then : |
| 4349 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4350 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4351 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4352 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4353 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4354 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4355 | fi |
| 4356 | |
| 4357 | ac_ext=c |
| 4358 | ac_cpp='$CPP $CPPFLAGS' |
| 4359 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4360 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4361 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4362 | |
| 4363 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4365 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4366 | if ${ac_cv_path_GREP+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4367 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4368 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4369 | if test -z "$GREP"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4370 | ac_path_GREP_found=false |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4371 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4373 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4374 | do |
| 4375 | IFS=$as_save_IFS |
| 4376 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4377 | for ac_prog in grep ggrep; do |
| 4378 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4379 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4380 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4381 | # 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] | 4382 | # Check for GNU $ac_path_GREP |
| 4383 | case `"$ac_path_GREP" --version 2>&1` in |
| 4384 | *GNU*) |
| 4385 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4386 | *) |
| 4387 | ac_count=0 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4388 | $as_echo_n 0123456789 >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4389 | while : |
| 4390 | do |
| 4391 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4392 | mv "conftest.tmp" "conftest.in" |
| 4393 | cp "conftest.in" "conftest.nl" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4394 | $as_echo 'GREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4395 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4396 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4397 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4398 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4399 | # Best one so far, save it but keep looking for a better one |
| 4400 | ac_cv_path_GREP="$ac_path_GREP" |
| 4401 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4402 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4403 | # 10*(2^10) chars as input seems more than enough |
| 4404 | test $ac_count -gt 10 && break |
| 4405 | done |
| 4406 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4407 | esac |
| 4408 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4409 | $ac_path_GREP_found && break 3 |
| 4410 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4411 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4412 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4413 | IFS=$as_save_IFS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4414 | if test -z "$ac_cv_path_GREP"; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4415 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4416 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4417 | else |
| 4418 | ac_cv_path_GREP=$GREP |
| 4419 | fi |
| 4420 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4421 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4423 | $as_echo "$ac_cv_path_GREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4424 | GREP="$ac_cv_path_GREP" |
| 4425 | |
| 4426 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4428 | $as_echo_n "checking for egrep... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4429 | if ${ac_cv_path_EGREP+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4430 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4431 | else |
| 4432 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4433 | then ac_cv_path_EGREP="$GREP -E" |
| 4434 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4435 | if test -z "$EGREP"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4436 | ac_path_EGREP_found=false |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4437 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4439 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4440 | do |
| 4441 | IFS=$as_save_IFS |
| 4442 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4443 | for ac_prog in egrep; do |
| 4444 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4445 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4446 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4447 | # 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] | 4448 | # Check for GNU $ac_path_EGREP |
| 4449 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4450 | *GNU*) |
| 4451 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4452 | *) |
| 4453 | ac_count=0 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4454 | $as_echo_n 0123456789 >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4455 | while : |
| 4456 | do |
| 4457 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4458 | mv "conftest.tmp" "conftest.in" |
| 4459 | cp "conftest.in" "conftest.nl" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4460 | $as_echo 'EGREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4461 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4462 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4463 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4464 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4465 | # Best one so far, save it but keep looking for a better one |
| 4466 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4467 | ac_path_EGREP_max=$ac_count |
| 4468 | fi |
| 4469 | # 10*(2^10) chars as input seems more than enough |
| 4470 | test $ac_count -gt 10 && break |
| 4471 | done |
| 4472 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4473 | esac |
| 4474 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4475 | $ac_path_EGREP_found && break 3 |
| 4476 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4477 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4478 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4479 | IFS=$as_save_IFS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4480 | if test -z "$ac_cv_path_EGREP"; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4481 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4482 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4483 | else |
| 4484 | ac_cv_path_EGREP=$EGREP |
| 4485 | fi |
| 4486 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4487 | fi |
| 4488 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4490 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4491 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4492 | |
| 4493 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4495 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4496 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4497 | $as_echo_n "(cached) " >&6 |
| 4498 | else |
| 4499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4500 | /* end confdefs.h. */ |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4501 | #include <stdlib.h> |
| 4502 | #include <stdarg.h> |
| 4503 | #include <string.h> |
| 4504 | #include <float.h> |
| 4505 | |
| 4506 | int |
| 4507 | main () |
| 4508 | { |
| 4509 | |
| 4510 | ; |
| 4511 | return 0; |
| 4512 | } |
| 4513 | _ACEOF |
| 4514 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4515 | ac_cv_header_stdc=yes |
| 4516 | else |
| 4517 | ac_cv_header_stdc=no |
| 4518 | fi |
| 4519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4520 | |
| 4521 | if test $ac_cv_header_stdc = yes; then |
| 4522 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4524 | /* end confdefs.h. */ |
| 4525 | #include <string.h> |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4526 | |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4527 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4528 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4529 | $EGREP "memchr" >/dev/null 2>&1; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4530 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4531 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4532 | ac_cv_header_stdc=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4533 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 4534 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4535 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4536 | fi |
| 4537 | |
| 4538 | if test $ac_cv_header_stdc = yes; then |
| 4539 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4541 | /* end confdefs.h. */ |
| 4542 | #include <stdlib.h> |
| 4543 | |
| 4544 | _ACEOF |
| 4545 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4546 | $EGREP "free" >/dev/null 2>&1; then : |
| 4547 | |
| 4548 | else |
| 4549 | ac_cv_header_stdc=no |
| 4550 | fi |
| 4551 | rm -f conftest* |
| 4552 | |
| 4553 | fi |
| 4554 | |
| 4555 | if test $ac_cv_header_stdc = yes; then |
| 4556 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4557 | if test "$cross_compiling" = yes; then : |
| 4558 | : |
| 4559 | else |
| 4560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4561 | /* end confdefs.h. */ |
| 4562 | #include <ctype.h> |
| 4563 | #include <stdlib.h> |
| 4564 | #if ((' ' & 0x0FF) == 0x020) |
| 4565 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4566 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4567 | #else |
| 4568 | # define ISLOWER(c) \ |
| 4569 | (('a' <= (c) && (c) <= 'i') \ |
| 4570 | || ('j' <= (c) && (c) <= 'r') \ |
| 4571 | || ('s' <= (c) && (c) <= 'z')) |
| 4572 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4573 | #endif |
| 4574 | |
| 4575 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4576 | int |
| 4577 | main () |
| 4578 | { |
| 4579 | int i; |
| 4580 | for (i = 0; i < 256; i++) |
| 4581 | if (XOR (islower (i), ISLOWER (i)) |
| 4582 | || toupper (i) != TOUPPER (i)) |
| 4583 | return 2; |
| 4584 | return 0; |
| 4585 | } |
| 4586 | _ACEOF |
| 4587 | if ac_fn_c_try_run "$LINENO"; then : |
| 4588 | |
| 4589 | else |
| 4590 | ac_cv_header_stdc=no |
| 4591 | fi |
| 4592 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4593 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4594 | fi |
| 4595 | |
| 4596 | fi |
| 4597 | fi |
| 4598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4599 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4600 | if test $ac_cv_header_stdc = yes; then |
| 4601 | |
| 4602 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4603 | |
| 4604 | fi |
| 4605 | |
| 4606 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4607 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4608 | inttypes.h stdint.h unistd.h |
| 4609 | do : |
| 4610 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4611 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4612 | " |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4613 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4614 | cat >>confdefs.h <<_ACEOF |
| 4615 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4616 | _ACEOF |
| 4617 | |
| 4618 | fi |
| 4619 | |
| 4620 | done |
| 4621 | |
| 4622 | |
| 4623 | |
| 4624 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4625 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4626 | MINIX=yes |
| 4627 | else |
| 4628 | MINIX= |
| 4629 | fi |
| 4630 | |
| 4631 | |
| 4632 | if test "$MINIX" = yes; then |
| 4633 | |
| 4634 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 4635 | |
| 4636 | |
| 4637 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 4638 | |
| 4639 | |
| 4640 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 4641 | |
| 4642 | fi |
| 4643 | |
| 4644 | |
| 4645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 4646 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4647 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4648 | $as_echo_n "(cached) " >&6 |
| 4649 | else |
| 4650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4651 | /* end confdefs.h. */ |
| 4652 | |
| 4653 | # define __EXTENSIONS__ 1 |
| 4654 | $ac_includes_default |
| 4655 | int |
| 4656 | main () |
| 4657 | { |
| 4658 | |
| 4659 | ; |
| 4660 | return 0; |
| 4661 | } |
| 4662 | _ACEOF |
| 4663 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4664 | ac_cv_safe_to_define___extensions__=yes |
| 4665 | else |
| 4666 | ac_cv_safe_to_define___extensions__=no |
| 4667 | fi |
| 4668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4669 | fi |
| 4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 4671 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4672 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 4673 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 4674 | |
| 4675 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 4676 | |
| 4677 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 4678 | |
| 4679 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 4680 | |
| 4681 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 4682 | |
| 4683 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4684 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4685 | # Check for unsupported systems |
| 4686 | case $ac_sys_system/$ac_sys_release in |
| 4687 | atheos*|Linux*/1*) |
| 4688 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 4689 | echo See README for details. |
| 4690 | exit 1;; |
| 4691 | esac |
| 4692 | |
| 4693 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
| 4695 | $as_echo_n "checking for --with-suffix... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4696 | |
| 4697 | # Check whether --with-suffix was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4698 | if test "${with_suffix+set}" = set; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4699 | withval=$with_suffix; |
| 4700 | case $withval in |
| 4701 | no) EXEEXT=;; |
| 4702 | yes) EXEEXT=.exe;; |
| 4703 | *) EXEEXT=$withval;; |
| 4704 | esac |
| 4705 | fi |
| 4706 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
| 4708 | $as_echo "$EXEEXT" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4709 | |
| 4710 | # Test whether we're running on a non-case-sensitive system, in which |
| 4711 | # case we give a warning if no ext is given |
| 4712 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
| 4714 | $as_echo_n "checking for case-insensitive build directory... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4715 | if test ! -d CaseSensitiveTestDir; then |
| 4716 | mkdir CaseSensitiveTestDir |
| 4717 | fi |
| 4718 | |
| 4719 | if test -d casesensitivetestdir |
| 4720 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4722 | $as_echo "yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4723 | BUILDEXEEXT=.exe |
| 4724 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4726 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4727 | BUILDEXEEXT=$EXEEXT |
| 4728 | fi |
| 4729 | rmdir CaseSensitiveTestDir |
| 4730 | |
| 4731 | case $MACHDEP in |
| 4732 | bsdos*) |
| 4733 | case $CC in |
| 4734 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 4735 | esac;; |
| 4736 | esac |
| 4737 | |
| 4738 | case $ac_sys_system in |
| 4739 | hp*|HP*) |
| 4740 | case $CC in |
| 4741 | cc|*/cc) CC="$CC -Ae";; |
| 4742 | esac;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4743 | SunOS*) |
| 4744 | # Some functions have a prototype only with that define, e.g. confstr |
| 4745 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4746 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4747 | |
| 4748 | ;; |
| 4749 | esac |
| 4750 | |
| 4751 | |
| 4752 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
| 4754 | $as_echo_n "checking LIBRARY... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4755 | if test -z "$LIBRARY" |
| 4756 | then |
| 4757 | LIBRARY='libpython$(VERSION).a' |
| 4758 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
| 4760 | $as_echo "$LIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4761 | |
| 4762 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 4763 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 4764 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 4765 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 4766 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 4767 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 4768 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 4769 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 4770 | # |
| 4771 | # RUNSHARED is used to run shared python without installed libraries |
| 4772 | # |
| 4773 | # INSTSONAME is the name of the shared library that will be use to install |
| 4774 | # on the system - some systems like version suffix, others don't |
| 4775 | |
| 4776 | |
| 4777 | |
| 4778 | |
| 4779 | |
| 4780 | |
| 4781 | LDLIBRARY="$LIBRARY" |
| 4782 | BLDLIBRARY='$(LDLIBRARY)' |
| 4783 | INSTSONAME='$(LDLIBRARY)' |
| 4784 | DLLLIBRARY='' |
| 4785 | LDLIBRARYDIR='' |
| 4786 | RUNSHARED='' |
| 4787 | |
| 4788 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 4789 | # If CXX is set, and if it is needed to link a main function that was |
| 4790 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 4791 | # python might then depend on the C++ runtime |
| 4792 | # This is altered for AIX in order to build the export list before |
| 4793 | # linking. |
| 4794 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
| 4796 | $as_echo_n "checking LINKCC... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4797 | if test -z "$LINKCC" |
| 4798 | then |
| 4799 | LINKCC='$(PURIFY) $(MAINCC)' |
| 4800 | case $ac_sys_system in |
| 4801 | AIX*) |
| 4802 | exp_extra="\"\"" |
| 4803 | if test $ac_sys_release -ge 5 -o \ |
| 4804 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 4805 | exp_extra="." |
| 4806 | fi |
| 4807 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4808 | QNX*) |
| 4809 | # qcc must be used because the other compilers do not |
| 4810 | # support -N. |
| 4811 | LINKCC=qcc;; |
| 4812 | esac |
| 4813 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
| 4815 | $as_echo "$LINKCC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4816 | |
| 4817 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4818 | # make sure we default having it set to "no": this is used by |
| 4819 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4820 | # to linker command lines, and failing to detect GNU ld simply results |
| 4821 | # in the same bahaviour as before. |
| 4822 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4824 | $as_echo_n "checking for GNU ld... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4825 | ac_prog=ld |
| 4826 | if test "$GCC" = yes; then |
| 4827 | ac_prog=`$CC -print-prog-name=ld` |
| 4828 | fi |
| 4829 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4830 | *GNU*) |
| 4831 | GNULD=yes;; |
| 4832 | *) |
| 4833 | GNULD=no;; |
| 4834 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
| 4836 | $as_echo "$GNULD" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4837 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
| 4839 | $as_echo_n "checking for --enable-shared... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4840 | # Check whether --enable-shared was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4841 | if test "${enable_shared+set}" = set; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4842 | enableval=$enable_shared; |
| 4843 | fi |
| 4844 | |
| 4845 | |
| 4846 | if test -z "$enable_shared" |
| 4847 | then |
| 4848 | case $ac_sys_system in |
| 4849 | CYGWIN* | atheos*) |
| 4850 | enable_shared="yes";; |
| 4851 | *) |
| 4852 | enable_shared="no";; |
| 4853 | esac |
| 4854 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 4856 | $as_echo "$enable_shared" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4857 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
| 4859 | $as_echo_n "checking for --enable-profiling... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4860 | # Check whether --enable-profiling was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4861 | if test "${enable_profiling+set}" = set; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4862 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4863 | CC="$CC -pg" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4864 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4865 | ac_enable_profiling="no" |
| 4866 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4868 | /* end confdefs.h. */ |
| 4869 | int main() { return 0; } |
| 4870 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4871 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4872 | ac_enable_profiling="yes" |
| 4873 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4874 | ac_enable_profiling="no" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4875 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4876 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4877 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4878 | fi |
| 4879 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4880 | CC="$ac_save_cc" |
| 4881 | fi |
| 4882 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5 |
| 4884 | $as_echo "$ac_enable_profiling" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4885 | |
| 4886 | case "$ac_enable_profiling" in |
| 4887 | "yes") |
| 4888 | BASECFLAGS="-pg $BASECFLAGS" |
| 4889 | LDFLAGS="-pg $LDFLAGS" |
| 4890 | ;; |
| 4891 | esac |
| 4892 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
| 4894 | $as_echo_n "checking LDLIBRARY... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4895 | |
| 4896 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4897 | # library that we build, but we do not want to link against it (we |
| 4898 | # will find it with a -framework option). For this reason there is an |
| 4899 | # extra variable BLDLIBRARY against which Python and the extension |
| 4900 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4901 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4902 | if test "$enable_framework" |
| 4903 | then |
| 4904 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4905 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4906 | BLDLIBRARY='' |
| 4907 | else |
| 4908 | BLDLIBRARY='$(LDLIBRARY)' |
| 4909 | fi |
| 4910 | |
| 4911 | # Other platforms follow |
| 4912 | if test $enable_shared = "yes"; then |
| 4913 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4914 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4915 | |
| 4916 | case $ac_sys_system in |
| 4917 | BeOS*) |
| 4918 | LDLIBRARY='libpython$(VERSION).so' |
| 4919 | ;; |
| 4920 | CYGWIN*) |
| 4921 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4922 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4923 | ;; |
| 4924 | SunOS*) |
| 4925 | LDLIBRARY='libpython$(VERSION).so' |
| 4926 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4927 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4928 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4929 | ;; |
| 4930 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4931 | LDLIBRARY='libpython$(VERSION).so' |
| 4932 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4933 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4934 | case $ac_sys_system in |
| 4935 | FreeBSD*) |
| 4936 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4937 | ;; |
| 4938 | esac |
| 4939 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4940 | ;; |
| 4941 | hp*|HP*) |
| 4942 | case `uname -m` in |
| 4943 | ia64) |
| 4944 | LDLIBRARY='libpython$(VERSION).so' |
| 4945 | ;; |
| 4946 | *) |
| 4947 | LDLIBRARY='libpython$(VERSION).sl' |
| 4948 | ;; |
| 4949 | esac |
| 4950 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4951 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4952 | ;; |
| 4953 | OSF*) |
| 4954 | LDLIBRARY='libpython$(VERSION).so' |
| 4955 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4956 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4957 | ;; |
| 4958 | atheos*) |
| 4959 | LDLIBRARY='libpython$(VERSION).so' |
| 4960 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4961 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4962 | ;; |
| 4963 | Darwin*) |
| 4964 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4965 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4966 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4967 | ;; |
Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 4968 | AIX*) |
| 4969 | LDLIBRARY='libpython$(VERSION).so' |
| 4970 | RUNSHARED=LIBPATH=`pwd`:${LIBPATH} |
| 4971 | ;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4972 | |
| 4973 | esac |
| 4974 | else # shared is disabled |
| 4975 | case $ac_sys_system in |
| 4976 | CYGWIN*) |
| 4977 | BLDLIBRARY='$(LIBRARY)' |
| 4978 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4979 | ;; |
| 4980 | esac |
| 4981 | fi |
| 4982 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
| 4984 | $as_echo "$LDLIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4985 | |
| 4986 | if test -n "$ac_tool_prefix"; then |
| 4987 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4988 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4990 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 4991 | if ${ac_cv_prog_RANLIB+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4992 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4993 | else |
| 4994 | if test -n "$RANLIB"; then |
| 4995 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4996 | else |
| 4997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4998 | for as_dir in $PATH |
| 4999 | do |
| 5000 | IFS=$as_save_IFS |
| 5001 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5002 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5003 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5004 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5005 | $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] | 5006 | break 2 |
| 5007 | fi |
| 5008 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5009 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5010 | IFS=$as_save_IFS |
| 5011 | |
| 5012 | fi |
| 5013 | fi |
| 5014 | RANLIB=$ac_cv_prog_RANLIB |
| 5015 | if test -n "$RANLIB"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5017 | $as_echo "$RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5018 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5020 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5021 | fi |
| 5022 | |
| 5023 | |
| 5024 | fi |
| 5025 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5026 | ac_ct_RANLIB=$RANLIB |
| 5027 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5028 | set dummy ranlib; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5030 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5031 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5032 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5033 | else |
| 5034 | if test -n "$ac_ct_RANLIB"; then |
| 5035 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5036 | else |
| 5037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5038 | for as_dir in $PATH |
| 5039 | do |
| 5040 | IFS=$as_save_IFS |
| 5041 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5042 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5043 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5044 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5045 | $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] | 5046 | break 2 |
| 5047 | fi |
| 5048 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5049 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5050 | IFS=$as_save_IFS |
| 5051 | |
| 5052 | fi |
| 5053 | fi |
| 5054 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5055 | if test -n "$ac_ct_RANLIB"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5057 | $as_echo "$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5058 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5060 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5061 | fi |
| 5062 | |
| 5063 | if test "x$ac_ct_RANLIB" = x; then |
| 5064 | RANLIB=":" |
| 5065 | else |
| 5066 | case $cross_compiling:$ac_tool_warned in |
| 5067 | yes:) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5069 | $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] | 5070 | ac_tool_warned=yes ;; |
| 5071 | esac |
| 5072 | RANLIB=$ac_ct_RANLIB |
| 5073 | fi |
| 5074 | else |
| 5075 | RANLIB="$ac_cv_prog_RANLIB" |
| 5076 | fi |
| 5077 | |
| 5078 | |
| 5079 | for ac_prog in ar aal |
| 5080 | do |
| 5081 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5082 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5084 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5085 | if ${ac_cv_prog_AR+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5086 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5087 | else |
| 5088 | if test -n "$AR"; then |
| 5089 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5090 | else |
| 5091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5092 | for as_dir in $PATH |
| 5093 | do |
| 5094 | IFS=$as_save_IFS |
| 5095 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5096 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5098 | ac_cv_prog_AR="$ac_prog" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5099 | $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] | 5100 | break 2 |
| 5101 | fi |
| 5102 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5103 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5104 | IFS=$as_save_IFS |
| 5105 | |
| 5106 | fi |
| 5107 | fi |
| 5108 | AR=$ac_cv_prog_AR |
| 5109 | if test -n "$AR"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5111 | $as_echo "$AR" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5112 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5114 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5115 | fi |
| 5116 | |
| 5117 | |
| 5118 | test -n "$AR" && break |
| 5119 | done |
| 5120 | test -n "$AR" || AR="ar" |
| 5121 | |
| 5122 | |
| 5123 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 5124 | |
| 5125 | if test -z "$ARFLAGS" |
| 5126 | then |
| 5127 | ARFLAGS="rc" |
| 5128 | fi |
| 5129 | |
| 5130 | |
| 5131 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 5132 | set dummy svnversion; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5134 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5135 | if ${ac_cv_prog_SVNVERSION+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5136 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5137 | else |
| 5138 | if test -n "$SVNVERSION"; then |
| 5139 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 5140 | else |
| 5141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5142 | for as_dir in $PATH |
| 5143 | do |
| 5144 | IFS=$as_save_IFS |
| 5145 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5146 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5148 | ac_cv_prog_SVNVERSION="found" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5149 | $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] | 5150 | break 2 |
| 5151 | fi |
| 5152 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5153 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5154 | IFS=$as_save_IFS |
| 5155 | |
| 5156 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 5157 | fi |
| 5158 | fi |
| 5159 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 5160 | if test -n "$SVNVERSION"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 |
| 5162 | $as_echo "$SVNVERSION" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5163 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5165 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5166 | fi |
| 5167 | |
| 5168 | |
| 5169 | if test $SVNVERSION = found |
| 5170 | then |
| 5171 | SVNVERSION="svnversion \$(srcdir)" |
| 5172 | else |
| 5173 | SVNVERSION="echo Unversioned directory" |
| 5174 | fi |
| 5175 | |
Georg Brandl | 3a5508e | 2011-03-06 10:42:21 +0100 | [diff] [blame] | 5176 | |
| 5177 | |
| 5178 | |
| 5179 | # Extract the first word of "hg", so it can be a program name with args. |
| 5180 | set dummy hg; ac_word=$2 |
| 5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5182 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5183 | if ${ac_cv_prog_HAS_HG+:} false; then : |
| 5184 | $as_echo_n "(cached) " >&6 |
| 5185 | else |
| 5186 | if test -n "$HAS_HG"; then |
| 5187 | ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. |
| 5188 | else |
| 5189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5190 | for as_dir in $PATH |
| 5191 | do |
| 5192 | IFS=$as_save_IFS |
| 5193 | test -z "$as_dir" && as_dir=. |
| 5194 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5195 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5196 | ac_cv_prog_HAS_HG="found" |
| 5197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5198 | break 2 |
| 5199 | fi |
| 5200 | done |
| 5201 | done |
| 5202 | IFS=$as_save_IFS |
| 5203 | |
| 5204 | test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" |
| 5205 | fi |
| 5206 | fi |
| 5207 | HAS_HG=$ac_cv_prog_HAS_HG |
| 5208 | if test -n "$HAS_HG"; then |
| 5209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 |
| 5210 | $as_echo "$HAS_HG" >&6; } |
| 5211 | else |
| 5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5213 | $as_echo "no" >&6; } |
| 5214 | fi |
| 5215 | |
| 5216 | |
| 5217 | if test $HAS_HG = found |
| 5218 | then |
| 5219 | HGVERSION="hg id -i \$(srcdir)" |
| 5220 | HGTAG="hg id -t \$(srcdir)" |
| 5221 | HGBRANCH="hg id -b \$(srcdir)" |
| 5222 | else |
| 5223 | HGVERSION="" |
| 5224 | HGTAG="" |
| 5225 | HGBRANCH="" |
| 5226 | fi |
| 5227 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5228 | case $MACHDEP in |
| 5229 | bsdos*|hp*|HP*) |
| 5230 | # install -d does not work on BSDI or HP-UX |
| 5231 | if test -z "$INSTALL" |
| 5232 | then |
| 5233 | INSTALL="${srcdir}/install-sh -c" |
| 5234 | fi |
| 5235 | esac |
| 5236 | ac_aux_dir= |
| 5237 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5238 | if test -f "$ac_dir/install-sh"; then |
| 5239 | ac_aux_dir=$ac_dir |
| 5240 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 5241 | break |
| 5242 | elif test -f "$ac_dir/install.sh"; then |
| 5243 | ac_aux_dir=$ac_dir |
| 5244 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 5245 | break |
| 5246 | elif test -f "$ac_dir/shtool"; then |
| 5247 | ac_aux_dir=$ac_dir |
| 5248 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 5249 | break |
| 5250 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5251 | done |
| 5252 | if test -z "$ac_aux_dir"; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5253 | 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] | 5254 | fi |
| 5255 | |
| 5256 | # These three variables are undocumented and unsupported, |
| 5257 | # and are intended to be withdrawn in a future Autoconf release. |
| 5258 | # They can cause serious problems if a builder's source tree is in a directory |
| 5259 | # whose full name contains unusual characters. |
| 5260 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 5261 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 5262 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 5263 | |
| 5264 | |
| 5265 | # Find a good install program. We prefer a C program (faster), |
| 5266 | # so one script is as good as another. But avoid the broken or |
| 5267 | # incompatible versions: |
| 5268 | # SysV /etc/install, /usr/sbin/install |
| 5269 | # SunOS /usr/etc/install |
| 5270 | # IRIX /sbin/install |
| 5271 | # AIX /bin/install |
| 5272 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5273 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5274 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5275 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5276 | # OS/2's system install, which has a completely different semantic |
| 5277 | # ./install, which can be erroneously created by make from ./install.sh. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5278 | # Reject install programs that cannot install multiple files. |
| 5279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 5280 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5281 | if test -z "$INSTALL"; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5282 | if ${ac_cv_path_install+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5283 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5284 | else |
| 5285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5286 | for as_dir in $PATH |
| 5287 | do |
| 5288 | IFS=$as_save_IFS |
| 5289 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5290 | # Account for people who put trailing slashes in PATH elements. |
| 5291 | case $as_dir/ in #(( |
| 5292 | ./ | .// | /[cC]/* | \ |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5293 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5294 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5295 | /usr/ucb/* ) ;; |
| 5296 | *) |
| 5297 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5298 | # Don't use installbsd from OSF since it installs stuff as root |
| 5299 | # by default. |
| 5300 | for ac_prog in ginstall scoinst install; do |
| 5301 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5302 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 5303 | if test $ac_prog = install && |
| 5304 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5305 | # AIX install. It has an incompatible calling convention. |
| 5306 | : |
| 5307 | elif test $ac_prog = install && |
| 5308 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5309 | # program-specific install script used by HP pwplus--don't use. |
| 5310 | : |
| 5311 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5312 | rm -rf conftest.one conftest.two conftest.dir |
| 5313 | echo one > conftest.one |
| 5314 | echo two > conftest.two |
| 5315 | mkdir conftest.dir |
| 5316 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5317 | test -s conftest.one && test -s conftest.two && |
| 5318 | test -s conftest.dir/conftest.one && |
| 5319 | test -s conftest.dir/conftest.two |
| 5320 | then |
| 5321 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5322 | break 3 |
| 5323 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5324 | fi |
| 5325 | fi |
| 5326 | done |
| 5327 | done |
| 5328 | ;; |
| 5329 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5330 | |
| 5331 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5332 | IFS=$as_save_IFS |
| 5333 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5334 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5335 | |
| 5336 | fi |
| 5337 | if test "${ac_cv_path_install+set}" = set; then |
| 5338 | INSTALL=$ac_cv_path_install |
| 5339 | else |
| 5340 | # As a last resort, use the slow shell script. Don't cache a |
| 5341 | # value for INSTALL within a source directory, because that will |
| 5342 | # break other packages using the cache if that directory is |
| 5343 | # removed, or if the value is a relative name. |
| 5344 | INSTALL=$ac_install_sh |
| 5345 | fi |
| 5346 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 5348 | $as_echo "$INSTALL" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5349 | |
| 5350 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5351 | # It thinks the first close brace ends the variable substitution. |
| 5352 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5353 | |
| 5354 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5355 | |
| 5356 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5357 | |
| 5358 | |
| 5359 | # Not every filesystem supports hard links |
| 5360 | |
| 5361 | if test -z "$LN" ; then |
| 5362 | case $ac_sys_system in |
| 5363 | BeOS*) LN="ln -s";; |
| 5364 | CYGWIN*) LN="ln -s";; |
| 5365 | atheos*) LN="ln -s";; |
| 5366 | *) LN=ln;; |
| 5367 | esac |
| 5368 | fi |
| 5369 | |
| 5370 | # Check for --with-pydebug |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
| 5372 | $as_echo_n "checking for --with-pydebug... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5373 | |
| 5374 | # Check whether --with-pydebug was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5375 | if test "${with_pydebug+set}" = set; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5376 | withval=$with_pydebug; |
| 5377 | if test "$withval" != no |
| 5378 | then |
| 5379 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5380 | $as_echo "#define Py_DEBUG 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5381 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5383 | $as_echo "yes" >&6; }; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5384 | Py_DEBUG='true' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5385 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5386 | $as_echo "no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5387 | fi |
| 5388 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5390 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5391 | fi |
| 5392 | |
| 5393 | |
| 5394 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 5395 | # merged with this chunk of code? |
| 5396 | |
| 5397 | # Optimizer/debugger flags |
| 5398 | # ------------------------ |
| 5399 | # (The following bit of code is complicated enough - please keep things |
| 5400 | # indented properly. Just pretend you're editing Python code. ;-) |
| 5401 | |
| 5402 | # There are two parallel sets of case statements below, one that checks to |
| 5403 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 5404 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 5405 | # user set OPT. |
| 5406 | |
| 5407 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 5408 | # it on the command line |
| 5409 | |
Benjamin Peterson | d4b721b | 2010-03-23 20:58:37 +0000 | [diff] [blame] | 5410 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5411 | then |
| 5412 | case $GCC in |
| 5413 | yes) |
| 5414 | if test "$CC" != 'g++' ; then |
| 5415 | STRICT_PROTO="-Wstrict-prototypes" |
| 5416 | fi |
| 5417 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 5418 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 5419 | WRAP="-fwrapv" |
| 5420 | fi |
| 5421 | case $ac_cv_prog_cc_g in |
| 5422 | yes) |
| 5423 | if test "$Py_DEBUG" = 'true' ; then |
| 5424 | # Optimization messes up debuggers, so turn it off for |
| 5425 | # debug builds. |
Mark Dickinson | d2f3e3f | 2010-05-05 22:23:58 +0000 | [diff] [blame] | 5426 | OPT="-g -O0 -Wall $STRICT_PROTO" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5427 | else |
| 5428 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 5429 | fi |
| 5430 | ;; |
| 5431 | *) |
| 5432 | OPT="-O3 -Wall $STRICT_PROTO" |
| 5433 | ;; |
| 5434 | esac |
| 5435 | case $ac_sys_system in |
| 5436 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 5437 | ;; |
| 5438 | esac |
| 5439 | ;; |
| 5440 | |
| 5441 | *) |
| 5442 | OPT="-O" |
| 5443 | ;; |
| 5444 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5445 | fi |
| 5446 | |
| 5447 | |
| 5448 | |
| 5449 | # The -arch flags for universal builds on OSX |
| 5450 | UNIVERSAL_ARCH_FLAGS= |
| 5451 | |
| 5452 | |
| 5453 | # tweak BASECFLAGS based on compiler and platform |
| 5454 | case $GCC in |
| 5455 | yes) |
| 5456 | # Python violates C99 rules, by casting between incompatible |
| 5457 | # pointer types. GCC may generate bad code as a result of that, |
| 5458 | # so use -fno-strict-aliasing if supported. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 5460 | $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5461 | ac_save_cc="$CC" |
| 5462 | CC="$CC -fno-strict-aliasing" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5463 | if ${ac_cv_no_strict_aliasing_ok+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5464 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 5465 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5467 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5468 | |
| 5469 | int |
| 5470 | main () |
| 5471 | { |
Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 5472 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5473 | ; |
| 5474 | return 0; |
| 5475 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5476 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5477 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5478 | ac_cv_no_strict_aliasing_ok=yes |
| 5479 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5480 | ac_cv_no_strict_aliasing_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5481 | fi |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 5483 | fi |
| 5484 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5485 | CC="$ac_save_cc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 5487 | $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5488 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 5489 | then |
| 5490 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 5491 | fi |
| 5492 | |
| 5493 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 5494 | # support. Without this, treatment of subnormals doesn't follow |
| 5495 | # the standard. |
| 5496 | case $ac_sys_machine in |
| 5497 | alpha*) |
| 5498 | BASECFLAGS="$BASECFLAGS -mieee" |
| 5499 | ;; |
| 5500 | esac |
| 5501 | |
| 5502 | case $ac_sys_system in |
| 5503 | SCO_SV*) |
| 5504 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 5505 | ;; |
| 5506 | # is there any other compiler on Darwin besides gcc? |
| 5507 | Darwin*) |
| 5508 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 5509 | # used to be here, but non-Apple gcc doesn't accept them. |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5510 | if test "${CC}" = gcc |
| 5511 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 |
| 5513 | $as_echo_n "checking which compiler should be used... " >&6; } |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5514 | case "${UNIVERSALSDK}" in |
| 5515 | */MacOSX10.4u.sdk) |
| 5516 | # Build using 10.4 SDK, force usage of gcc when the |
| 5517 | # compiler is gcc, otherwise the user will get very |
| 5518 | # confusing error messages when building on OSX 10.6 |
| 5519 | CC=gcc-4.0 |
| 5520 | CPP=cpp-4.0 |
| 5521 | ;; |
| 5522 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5524 | $as_echo "$CC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5525 | fi |
| 5526 | |
| 5527 | # Calculate the right deployment target for this build. |
| 5528 | # |
| 5529 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 5530 | if test ${cur_target} '>' 10.2; then |
| 5531 | cur_target=10.3 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 5532 | if test ${enable_universalsdk}; then |
| 5533 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 5534 | # Ensure that the default platform for a |
| 5535 | # 4-way universal build is OSX 10.5, |
| 5536 | # that's the first OS release where |
| 5537 | # 4-way builds make sense. |
| 5538 | cur_target='10.5' |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 5539 | |
| 5540 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then |
| 5541 | cur_target='10.5' |
| 5542 | |
| 5543 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then |
| 5544 | cur_target='10.5' |
| 5545 | |
| 5546 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then |
| 5547 | cur_target='10.5' |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 5548 | fi |
| 5549 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 5550 | if test `/usr/bin/arch` = "i386"; then |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 5551 | # On Intel macs default to a deployment |
| 5552 | # target of 10.4, that's the first OSX |
| 5553 | # release with Intel support. |
| 5554 | cur_target="10.4" |
| 5555 | fi |
| 5556 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5557 | fi |
| 5558 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 5559 | |
| 5560 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 5561 | # environment with a value that is the same as what we'll use |
| 5562 | # in the Makefile to ensure that we'll get the same compiler |
| 5563 | # environment during configure and build time. |
| 5564 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 5565 | export MACOSX_DEPLOYMENT_TARGET |
| 5566 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 5567 | |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5568 | if test "${enable_universalsdk}"; then |
| 5569 | UNIVERSAL_ARCH_FLAGS="" |
| 5570 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 5571 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 5572 | ARCH_RUN_32BIT="" |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 5573 | LIPO_32BIT_FLAGS="" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5574 | |
| 5575 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 5576 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 5577 | LIPO_32BIT_FLAGS="" |
| 5578 | ARCH_RUN_32BIT="true" |
| 5579 | |
| 5580 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 5581 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 5582 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 5583 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5584 | |
| 5585 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then |
| 5586 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 5587 | LIPO_32BIT_FLAGS="-extract i386" |
Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 5588 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5589 | |
| 5590 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then |
| 5591 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 5592 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 9922f17 | 2010-02-11 13:19:34 +0000 | [diff] [blame] | 5593 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5594 | |
| 5595 | else |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5596 | 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] | 5597 | |
| 5598 | fi |
| 5599 | |
| 5600 | |
Ronald Oussoren | 974eb5e | 2010-04-18 17:59:37 +0000 | [diff] [blame] | 5601 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" |
| 5602 | if test "${UNIVERSALSDK}" != "/" |
| 5603 | then |
| 5604 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
| 5605 | LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| 5606 | CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5607 | fi |
| 5608 | |
| 5609 | fi |
| 5610 | |
| 5611 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5612 | ;; |
| 5613 | OSF*) |
| 5614 | BASECFLAGS="$BASECFLAGS -mieee" |
| 5615 | ;; |
| 5616 | esac |
| 5617 | ;; |
| 5618 | |
| 5619 | *) |
| 5620 | case $ac_sys_system in |
| 5621 | OpenUNIX*|UnixWare*) |
| 5622 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 5623 | ;; |
| 5624 | OSF*) |
| 5625 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 5626 | ;; |
| 5627 | SCO_SV*) |
| 5628 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 5629 | ;; |
| 5630 | esac |
| 5631 | ;; |
| 5632 | esac |
| 5633 | |
| 5634 | if test "$Py_DEBUG" = 'true'; then |
| 5635 | : |
| 5636 | else |
| 5637 | OPT="-DNDEBUG $OPT" |
| 5638 | fi |
| 5639 | |
| 5640 | if test "$ac_arch_flags" |
| 5641 | then |
| 5642 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 5643 | fi |
| 5644 | |
| 5645 | # disable check for icc since it seems to pass, but generates a warning |
| 5646 | if test "$CC" = icc |
| 5647 | then |
| 5648 | ac_cv_opt_olimit_ok=no |
| 5649 | fi |
| 5650 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 5652 | $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5653 | if ${ac_cv_opt_olimit_ok+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5654 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5655 | else |
| 5656 | ac_save_cc="$CC" |
| 5657 | CC="$CC -OPT:Olimit=0" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5659 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5660 | |
| 5661 | int |
| 5662 | main () |
| 5663 | { |
Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 5664 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5665 | ; |
| 5666 | return 0; |
| 5667 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5668 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5669 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5670 | ac_cv_opt_olimit_ok=yes |
| 5671 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5672 | ac_cv_opt_olimit_ok=no |
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 | fi |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5676 | CC="$ac_save_cc" |
| 5677 | fi |
| 5678 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5 |
| 5680 | $as_echo "$ac_cv_opt_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5681 | if test $ac_cv_opt_olimit_ok = yes; then |
| 5682 | case $ac_sys_system in |
| 5683 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 5684 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 5685 | # environment? |
| 5686 | Darwin*) |
| 5687 | ;; |
| 5688 | *) |
| 5689 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 5690 | ;; |
| 5691 | esac |
| 5692 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5 |
| 5694 | $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5695 | if ${ac_cv_olimit_ok+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5696 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5697 | else |
| 5698 | ac_save_cc="$CC" |
| 5699 | CC="$CC -Olimit 1500" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5701 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5702 | |
| 5703 | int |
| 5704 | main () |
| 5705 | { |
Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 5706 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5707 | ; |
| 5708 | return 0; |
| 5709 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5710 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5711 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5712 | ac_cv_olimit_ok=yes |
| 5713 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5714 | ac_cv_olimit_ok=no |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5715 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5716 | fi |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5718 | CC="$ac_save_cc" |
| 5719 | fi |
| 5720 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5 |
| 5722 | $as_echo "$ac_cv_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5723 | if test $ac_cv_olimit_ok = yes; then |
| 5724 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 5725 | fi |
| 5726 | fi |
| 5727 | |
| 5728 | # Check whether GCC supports PyArg_ParseTuple format |
| 5729 | if test "$GCC" = "yes" |
| 5730 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 |
| 5732 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5733 | save_CFLAGS=$CFLAGS |
| 5734 | CFLAGS="$CFLAGS -Werror" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5736 | /* end confdefs.h. */ |
| 5737 | |
| 5738 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5739 | int |
| 5740 | main () |
| 5741 | { |
| 5742 | |
| 5743 | ; |
| 5744 | return 0; |
| 5745 | } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5746 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5747 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5748 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5749 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5750 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5751 | $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5752 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5754 | $as_echo "yes" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5755 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5756 | else |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5757 | |
| 5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5759 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5760 | |
| 5761 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5763 | CFLAGS=$save_CFLAGS |
| 5764 | fi |
| 5765 | |
| 5766 | # On some compilers, pthreads are available without further options |
| 5767 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 5768 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 5769 | # So we have to see first whether pthreads are available without |
| 5770 | # options before we can check whether -Kpthread improves anything. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
| 5772 | $as_echo_n "checking whether pthreads are available without options... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5773 | if ${ac_cv_pthread_is_default+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5774 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5775 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5776 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5777 | ac_cv_pthread_is_default=no |
| 5778 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5780 | /* end confdefs.h. */ |
| 5781 | |
| 5782 | #include <pthread.h> |
| 5783 | |
| 5784 | void* routine(void* p){return NULL;} |
| 5785 | |
| 5786 | int main(){ |
| 5787 | pthread_t p; |
| 5788 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5789 | return 1; |
| 5790 | (void)pthread_detach(p); |
| 5791 | return 0; |
| 5792 | } |
| 5793 | |
| 5794 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5795 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5796 | |
| 5797 | ac_cv_pthread_is_default=yes |
| 5798 | ac_cv_kthread=no |
| 5799 | ac_cv_pthread=no |
| 5800 | |
| 5801 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5802 | ac_cv_pthread_is_default=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5803 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5804 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5805 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5806 | fi |
| 5807 | |
| 5808 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5809 | fi |
| 5810 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
| 5812 | $as_echo "$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5813 | |
| 5814 | |
| 5815 | if test $ac_cv_pthread_is_default = yes |
| 5816 | then |
| 5817 | ac_cv_kpthread=no |
| 5818 | else |
| 5819 | # -Kpthread, if available, provides the right #defines |
| 5820 | # and linker options to make pthread_create available |
| 5821 | # Some compilers won't report that they do not support -Kpthread, |
| 5822 | # so we need to run a program to see whether it really made the |
| 5823 | # function available. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
| 5825 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5826 | if ${ac_cv_kpthread+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5827 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5828 | else |
| 5829 | ac_save_cc="$CC" |
| 5830 | CC="$CC -Kpthread" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5831 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5832 | ac_cv_kpthread=no |
| 5833 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5835 | /* end confdefs.h. */ |
| 5836 | |
| 5837 | #include <pthread.h> |
| 5838 | |
| 5839 | void* routine(void* p){return NULL;} |
| 5840 | |
| 5841 | int main(){ |
| 5842 | pthread_t p; |
| 5843 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5844 | return 1; |
| 5845 | (void)pthread_detach(p); |
| 5846 | return 0; |
| 5847 | } |
| 5848 | |
| 5849 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5850 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5851 | ac_cv_kpthread=yes |
| 5852 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5853 | ac_cv_kpthread=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5854 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5855 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5856 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5857 | fi |
| 5858 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5859 | CC="$ac_save_cc" |
| 5860 | fi |
| 5861 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
| 5863 | $as_echo "$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5864 | fi |
| 5865 | |
| 5866 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5867 | then |
| 5868 | # -Kthread, if available, provides the right #defines |
| 5869 | # and linker options to make pthread_create available |
| 5870 | # Some compilers won't report that they do not support -Kthread, |
| 5871 | # so we need to run a program to see whether it really made the |
| 5872 | # function available. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
| 5874 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5875 | if ${ac_cv_kthread+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5876 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5877 | else |
| 5878 | ac_save_cc="$CC" |
| 5879 | CC="$CC -Kthread" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5880 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5881 | ac_cv_kthread=no |
| 5882 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5884 | /* end confdefs.h. */ |
| 5885 | |
| 5886 | #include <pthread.h> |
| 5887 | |
| 5888 | void* routine(void* p){return NULL;} |
| 5889 | |
| 5890 | int main(){ |
| 5891 | pthread_t p; |
| 5892 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5893 | return 1; |
| 5894 | (void)pthread_detach(p); |
| 5895 | return 0; |
| 5896 | } |
| 5897 | |
| 5898 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5899 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5900 | ac_cv_kthread=yes |
| 5901 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5902 | ac_cv_kthread=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5903 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5904 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5905 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5906 | fi |
| 5907 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5908 | CC="$ac_save_cc" |
| 5909 | fi |
| 5910 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
| 5912 | $as_echo "$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5913 | fi |
| 5914 | |
| 5915 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5916 | then |
| 5917 | # -pthread, if available, provides the right #defines |
| 5918 | # and linker options to make pthread_create available |
| 5919 | # Some compilers won't report that they do not support -pthread, |
| 5920 | # so we need to run a program to see whether it really made the |
| 5921 | # function available. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
| 5923 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 5924 | if ${ac_cv_thread+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5925 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5926 | else |
| 5927 | ac_save_cc="$CC" |
| 5928 | CC="$CC -pthread" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5929 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5930 | ac_cv_pthread=no |
| 5931 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5933 | /* end confdefs.h. */ |
| 5934 | |
| 5935 | #include <pthread.h> |
| 5936 | |
| 5937 | void* routine(void* p){return NULL;} |
| 5938 | |
| 5939 | int main(){ |
| 5940 | pthread_t p; |
| 5941 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5942 | return 1; |
| 5943 | (void)pthread_detach(p); |
| 5944 | return 0; |
| 5945 | } |
| 5946 | |
| 5947 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5948 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5949 | ac_cv_pthread=yes |
| 5950 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5951 | ac_cv_pthread=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5952 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5953 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5954 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5955 | fi |
| 5956 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5957 | CC="$ac_save_cc" |
| 5958 | fi |
| 5959 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
| 5961 | $as_echo "$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5962 | fi |
| 5963 | |
| 5964 | # If we have set a CC compiler flag for thread support then |
| 5965 | # check if it works for CXX, too. |
| 5966 | ac_cv_cxx_thread=no |
| 5967 | if test ! -z "$CXX" |
| 5968 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
| 5970 | $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] | 5971 | ac_save_cxx="$CXX" |
| 5972 | |
| 5973 | if test "$ac_cv_kpthread" = "yes" |
| 5974 | then |
| 5975 | CXX="$CXX -Kpthread" |
| 5976 | ac_cv_cxx_thread=yes |
| 5977 | elif test "$ac_cv_kthread" = "yes" |
| 5978 | then |
| 5979 | CXX="$CXX -Kthread" |
| 5980 | ac_cv_cxx_thread=yes |
| 5981 | elif test "$ac_cv_pthread" = "yes" |
| 5982 | then |
| 5983 | CXX="$CXX -pthread" |
| 5984 | ac_cv_cxx_thread=yes |
| 5985 | fi |
| 5986 | |
| 5987 | if test $ac_cv_cxx_thread = yes |
| 5988 | then |
| 5989 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5990 | $CXX -c conftest.$ac_ext 2>&5 |
| 5991 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5992 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5993 | then |
| 5994 | ac_cv_cxx_thread=yes |
| 5995 | else |
| 5996 | ac_cv_cxx_thread=no |
| 5997 | fi |
| 5998 | rm -fr conftest* |
| 5999 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
| 6001 | $as_echo "$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6002 | fi |
| 6003 | CXX="$ac_save_cxx" |
| 6004 | |
| 6005 | |
| 6006 | # checks for header files |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 6008 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6009 | if ${ac_cv_header_stdc+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6010 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6011 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6013 | /* end confdefs.h. */ |
| 6014 | #include <stdlib.h> |
| 6015 | #include <stdarg.h> |
| 6016 | #include <string.h> |
| 6017 | #include <float.h> |
| 6018 | |
| 6019 | int |
| 6020 | main () |
| 6021 | { |
| 6022 | |
| 6023 | ; |
| 6024 | return 0; |
| 6025 | } |
| 6026 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6027 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6028 | ac_cv_header_stdc=yes |
| 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 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6033 | |
| 6034 | if test $ac_cv_header_stdc = yes; then |
| 6035 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6037 | /* end confdefs.h. */ |
| 6038 | #include <string.h> |
| 6039 | |
| 6040 | _ACEOF |
| 6041 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6042 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6043 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6044 | else |
| 6045 | ac_cv_header_stdc=no |
| 6046 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6047 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6048 | |
| 6049 | fi |
| 6050 | |
| 6051 | if test $ac_cv_header_stdc = yes; then |
| 6052 | # 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] | 6053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6054 | /* end confdefs.h. */ |
| 6055 | #include <stdlib.h> |
| 6056 | |
| 6057 | _ACEOF |
| 6058 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6059 | $EGREP "free" >/dev/null 2>&1; then : |
| 6060 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6061 | else |
| 6062 | ac_cv_header_stdc=no |
| 6063 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6064 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6065 | |
| 6066 | fi |
| 6067 | |
| 6068 | if test $ac_cv_header_stdc = yes; then |
| 6069 | # /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] | 6070 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6071 | : |
| 6072 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6074 | /* end confdefs.h. */ |
| 6075 | #include <ctype.h> |
| 6076 | #include <stdlib.h> |
| 6077 | #if ((' ' & 0x0FF) == 0x020) |
| 6078 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6079 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6080 | #else |
| 6081 | # define ISLOWER(c) \ |
| 6082 | (('a' <= (c) && (c) <= 'i') \ |
| 6083 | || ('j' <= (c) && (c) <= 'r') \ |
| 6084 | || ('s' <= (c) && (c) <= 'z')) |
| 6085 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6086 | #endif |
| 6087 | |
| 6088 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6089 | int |
| 6090 | main () |
| 6091 | { |
| 6092 | int i; |
| 6093 | for (i = 0; i < 256; i++) |
| 6094 | if (XOR (islower (i), ISLOWER (i)) |
| 6095 | || toupper (i) != TOUPPER (i)) |
| 6096 | return 2; |
| 6097 | return 0; |
| 6098 | } |
| 6099 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6100 | if ac_fn_c_try_run "$LINENO"; then : |
| 6101 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6102 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6103 | ac_cv_header_stdc=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6104 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6105 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6106 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6107 | fi |
| 6108 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6109 | fi |
| 6110 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 6112 | $as_echo "$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6113 | if test $ac_cv_header_stdc = yes; then |
| 6114 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6115 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6116 | |
| 6117 | fi |
| 6118 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6119 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 6120 | fcntl.h grp.h \ |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 6121 | 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] | 6122 | 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] | 6123 | unistd.h utime.h \ |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 6124 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 6125 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6126 | 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] | 6127 | sys/termio.h sys/time.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6128 | 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] | 6129 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6130 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6131 | do : |
| 6132 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6133 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6134 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6135 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6136 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6137 | _ACEOF |
| 6138 | |
| 6139 | fi |
| 6140 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6141 | done |
| 6142 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6143 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6144 | 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] | 6145 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 6146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 6147 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6148 | if eval \${$as_ac_Header+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6149 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6150 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6152 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6153 | #include <sys/types.h> |
| 6154 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6156 | int |
| 6157 | main () |
| 6158 | { |
| 6159 | if ((DIR *) 0) |
| 6160 | return 0; |
| 6161 | ; |
| 6162 | return 0; |
| 6163 | } |
| 6164 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6165 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6166 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6167 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6168 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6169 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6171 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6172 | eval ac_res=\$$as_ac_Header |
| 6173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6174 | $as_echo "$ac_res" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6175 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6176 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6177 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6178 | _ACEOF |
| 6179 | |
| 6180 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6181 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6182 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6183 | done |
| 6184 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 6185 | if test $ac_header_dirent = dirent.h; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 6187 | $as_echo_n "checking for library containing opendir... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6188 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6189 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6190 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6191 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6193 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6194 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6195 | /* Override any GCC internal prototype to avoid an error. |
| 6196 | Use char because int might match the return type of a GCC |
| 6197 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6198 | #ifdef __cplusplus |
| 6199 | extern "C" |
| 6200 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6201 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6202 | int |
| 6203 | main () |
| 6204 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6205 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6206 | ; |
| 6207 | return 0; |
| 6208 | } |
| 6209 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6210 | for ac_lib in '' dir; do |
| 6211 | if test -z "$ac_lib"; then |
| 6212 | ac_res="none required" |
| 6213 | else |
| 6214 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6215 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6216 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6217 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6218 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6219 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6220 | rm -f core conftest.err conftest.$ac_objext \ |
| 6221 | conftest$ac_exeext |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6222 | if ${ac_cv_search_opendir+:} false; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6223 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6224 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6225 | done |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6226 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6227 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6228 | else |
| 6229 | ac_cv_search_opendir=no |
| 6230 | fi |
| 6231 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6232 | LIBS=$ac_func_search_save_LIBS |
| 6233 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 6235 | $as_echo "$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6236 | ac_res=$ac_cv_search_opendir |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6237 | if test "$ac_res" != no; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6238 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6239 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6240 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6241 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6242 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 6244 | $as_echo_n "checking for library containing opendir... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6245 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6246 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6247 | else |
| 6248 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6250 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6251 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6252 | /* Override any GCC internal prototype to avoid an error. |
| 6253 | Use char because int might match the return type of a GCC |
| 6254 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6255 | #ifdef __cplusplus |
| 6256 | extern "C" |
| 6257 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6258 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6259 | int |
| 6260 | main () |
| 6261 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6262 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6263 | ; |
| 6264 | return 0; |
| 6265 | } |
| 6266 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6267 | for ac_lib in '' x; do |
| 6268 | if test -z "$ac_lib"; then |
| 6269 | ac_res="none required" |
| 6270 | else |
| 6271 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6272 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6273 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6274 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6275 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6276 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6277 | rm -f core conftest.err conftest.$ac_objext \ |
| 6278 | conftest$ac_exeext |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6279 | if ${ac_cv_search_opendir+:} false; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6280 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6281 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6282 | done |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6283 | if ${ac_cv_search_opendir+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6284 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6285 | else |
| 6286 | ac_cv_search_opendir=no |
| 6287 | fi |
| 6288 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6289 | LIBS=$ac_func_search_save_LIBS |
| 6290 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 6292 | $as_echo "$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6293 | ac_res=$ac_cv_search_opendir |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6294 | if test "$ac_res" != no; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6295 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6296 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6297 | fi |
| 6298 | |
| 6299 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6300 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
| 6302 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6303 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6304 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6305 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6307 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6308 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6309 | int |
| 6310 | main () |
| 6311 | { |
| 6312 | return makedev(0, 0); |
| 6313 | ; |
| 6314 | return 0; |
| 6315 | } |
| 6316 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6317 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6318 | ac_cv_header_sys_types_h_makedev=yes |
| 6319 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6320 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6321 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6322 | rm -f core conftest.err conftest.$ac_objext \ |
| 6323 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6324 | |
| 6325 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6327 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6328 | |
| 6329 | if test $ac_cv_header_sys_types_h_makedev = no; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6330 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6331 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6332 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6333 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6334 | |
| 6335 | fi |
| 6336 | |
| 6337 | |
| 6338 | |
| 6339 | if test $ac_cv_header_sys_mkdev_h = no; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6340 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6341 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6342 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6343 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6344 | |
| 6345 | fi |
| 6346 | |
| 6347 | |
| 6348 | fi |
| 6349 | fi |
| 6350 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6351 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6352 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6353 | for ac_header in term.h |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6354 | do : |
| 6355 | 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] | 6356 | #ifdef HAVE_CURSES_H |
| 6357 | #include <curses.h> |
| 6358 | #endif |
| 6359 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6360 | " |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6361 | if test "x$ac_cv_header_term_h" = xyes; then : |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6362 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6363 | #define HAVE_TERM_H 1 |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6364 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6365 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6366 | fi |
| 6367 | |
| 6368 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6369 | |
| 6370 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6371 | # On Linux, netlink.h requires asm/types.h |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6372 | for ac_header in linux/netlink.h |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6373 | do : |
| 6374 | 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] | 6375 | #ifdef HAVE_ASM_TYPES_H |
| 6376 | #include <asm/types.h> |
| 6377 | #endif |
| 6378 | #ifdef HAVE_SYS_SOCKET_H |
| 6379 | #include <sys/socket.h> |
| 6380 | #endif |
| 6381 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6382 | " |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6383 | if test "x$ac_cv_header_linux_netlink_h" = xyes; then : |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6384 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6385 | #define HAVE_LINUX_NETLINK_H 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6386 | _ACEOF |
| 6387 | |
| 6388 | fi |
| 6389 | |
| 6390 | done |
| 6391 | |
| 6392 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6393 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6394 | was_it_defined=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
| 6396 | $as_echo_n "checking for clock_t in time.h... " >&6; } |
| 6397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6398 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6399 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6400 | |
| 6401 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6402 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6403 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6404 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6405 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6406 | |
| 6407 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6408 | $as_echo "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6409 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6410 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6411 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6412 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6413 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 6415 | $as_echo "$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6416 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6417 | # Check whether using makedev requires defining _OSF_SOURCE |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
| 6419 | $as_echo_n "checking for makedev... " >&6; } |
| 6420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6421 | /* end confdefs.h. */ |
Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6422 | |
| 6423 | #if defined(MAJOR_IN_MKDEV) |
| 6424 | #include <sys/mkdev.h> |
| 6425 | #elif defined(MAJOR_IN_SYSMACROS) |
| 6426 | #include <sys/sysmacros.h> |
| 6427 | #else |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6428 | #include <sys/types.h> |
Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6429 | #endif |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6430 | int |
| 6431 | main () |
| 6432 | { |
| 6433 | makedev(0, 0) |
| 6434 | ; |
| 6435 | return 0; |
| 6436 | } |
| 6437 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6438 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6439 | ac_cv_has_makedev=yes |
| 6440 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6441 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6442 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6443 | rm -f core conftest.err conftest.$ac_objext \ |
| 6444 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6445 | if test "$ac_cv_has_makedev" = "no"; then |
| 6446 | # 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] | 6447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6448 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6449 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6450 | #define _OSF_SOURCE 1 |
| 6451 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6452 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6453 | int |
| 6454 | main () |
| 6455 | { |
| 6456 | makedev(0, 0) |
| 6457 | ; |
| 6458 | return 0; |
| 6459 | } |
| 6460 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6461 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6462 | ac_cv_has_makedev=yes |
| 6463 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6464 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6465 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6466 | rm -f core conftest.err conftest.$ac_objext \ |
| 6467 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6468 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6469 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6470 | $as_echo "#define _OSF_SOURCE 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6471 | |
| 6472 | fi |
| 6473 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
| 6475 | $as_echo "$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6476 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6477 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6478 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6479 | |
| 6480 | fi |
| 6481 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6482 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6483 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6484 | # defined, but the compiler does not support pragma redefine_extname, |
| 6485 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6486 | # structures (such as rlimit64) without declaring them. As a |
| 6487 | # work-around, disable LFS on such configurations |
| 6488 | |
| 6489 | use_lfs=yes |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 |
| 6491 | $as_echo_n "checking Solaris LFS bug... " >&6; } |
| 6492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6493 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6494 | |
| 6495 | #define _LARGEFILE_SOURCE 1 |
| 6496 | #define _FILE_OFFSET_BITS 64 |
| 6497 | #include <sys/resource.h> |
| 6498 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6499 | int |
| 6500 | main () |
| 6501 | { |
| 6502 | struct rlimit foo; |
| 6503 | ; |
| 6504 | return 0; |
| 6505 | } |
| 6506 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6507 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6508 | sol_lfs_bug=no |
| 6509 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6510 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6511 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 |
| 6514 | $as_echo "$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6515 | if test "$sol_lfs_bug" = "yes"; then |
| 6516 | use_lfs=no |
| 6517 | fi |
| 6518 | |
| 6519 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6520 | # Two defines needed to enable largefile support on various platforms |
| 6521 | # These may affect some typedefs |
Georg Brandl | 94800df | 2011-02-25 11:09:02 +0000 | [diff] [blame] | 6522 | case $ac_sys_system/$ac_sys_release in |
| 6523 | AIX*) |
| 6524 | |
| 6525 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h |
| 6526 | |
| 6527 | ;; |
| 6528 | esac |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6529 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6530 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6531 | |
| 6532 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6533 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6534 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6535 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6536 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6537 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6538 | cat >> confdefs.h <<\EOF |
| 6539 | #if defined(SCO_DS) |
| 6540 | #undef _OFF_T |
| 6541 | #endif |
| 6542 | EOF |
| 6543 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6544 | # Type availability checks |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6545 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6546 | if test "x$ac_cv_type_mode_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6547 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6548 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6549 | |
| 6550 | cat >>confdefs.h <<_ACEOF |
| 6551 | #define mode_t int |
| 6552 | _ACEOF |
| 6553 | |
| 6554 | fi |
| 6555 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6556 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6557 | if test "x$ac_cv_type_off_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6558 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6560 | |
| 6561 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6562 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6563 | _ACEOF |
| 6564 | |
| 6565 | fi |
| 6566 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6567 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6568 | if test "x$ac_cv_type_pid_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6569 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6570 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6571 | |
| 6572 | cat >>confdefs.h <<_ACEOF |
| 6573 | #define pid_t int |
| 6574 | _ACEOF |
| 6575 | |
| 6576 | fi |
| 6577 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6578 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6579 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | cbf54b1 | 2010-05-08 11:04:18 +0000 | [diff] [blame] | 6580 | #define RETSIGTYPE void |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6581 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6582 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6583 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6584 | if test "x$ac_cv_type_size_t" = xyes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6585 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6586 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6587 | |
| 6588 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6589 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6590 | _ACEOF |
| 6591 | |
| 6592 | fi |
| 6593 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 6595 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6596 | if ${ac_cv_type_uid_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6597 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6598 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6600 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6601 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6602 | |
| 6603 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6604 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6605 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6606 | ac_cv_type_uid_t=yes |
| 6607 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6608 | ac_cv_type_uid_t=no |
| 6609 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6610 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6611 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6612 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 6614 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6615 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6616 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6617 | $as_echo "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6618 | |
| 6619 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6620 | $as_echo "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6621 | |
| 6622 | fi |
| 6623 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6624 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 6625 | case $ac_cv_c_uint32_t in #( |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6626 | no|yes) ;; #( |
| 6627 | *) |
| 6628 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6629 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6630 | |
| 6631 | |
| 6632 | cat >>confdefs.h <<_ACEOF |
| 6633 | #define uint32_t $ac_cv_c_uint32_t |
| 6634 | _ACEOF |
| 6635 | ;; |
| 6636 | esac |
| 6637 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6638 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 6639 | case $ac_cv_c_uint64_t in #( |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6640 | no|yes) ;; #( |
| 6641 | *) |
| 6642 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6643 | $as_echo "#define _UINT64_T 1" >>confdefs.h |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6644 | |
| 6645 | |
| 6646 | cat >>confdefs.h <<_ACEOF |
| 6647 | #define uint64_t $ac_cv_c_uint64_t |
| 6648 | _ACEOF |
| 6649 | ;; |
| 6650 | esac |
| 6651 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6652 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
| 6653 | case $ac_cv_c_int32_t in #( |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6654 | no|yes) ;; #( |
| 6655 | *) |
| 6656 | |
| 6657 | cat >>confdefs.h <<_ACEOF |
| 6658 | #define int32_t $ac_cv_c_int32_t |
| 6659 | _ACEOF |
| 6660 | ;; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6661 | esac |
| 6662 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6663 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
| 6664 | case $ac_cv_c_int64_t in #( |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6665 | no|yes) ;; #( |
| 6666 | *) |
| 6667 | |
| 6668 | cat >>confdefs.h <<_ACEOF |
| 6669 | #define int64_t $ac_cv_c_int64_t |
| 6670 | _ACEOF |
| 6671 | ;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6672 | esac |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6673 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6674 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6675 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6676 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6677 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6678 | |
| 6679 | fi |
| 6680 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6681 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6682 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6683 | # 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] | 6684 | # The cast to long int works around a bug in the HP C Compiler |
| 6685 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6686 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6687 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 6689 | $as_echo_n "checking size of int... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6690 | if ${ac_cv_sizeof_int+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6691 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6692 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6693 | 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] | 6694 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6695 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6696 | if test "$ac_cv_type_int" = yes; then |
| 6697 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6698 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6699 | as_fn_error 77 "cannot compute sizeof (int) |
| 6700 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6701 | else |
| 6702 | ac_cv_sizeof_int=0 |
| 6703 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6704 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6705 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6706 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 6708 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6709 | |
| 6710 | |
| 6711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6712 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6713 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6714 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6715 | |
| 6716 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6717 | # The cast to long int works around a bug in the HP C Compiler |
| 6718 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6719 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6720 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 6722 | $as_echo_n "checking size of long... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6723 | if ${ac_cv_sizeof_long+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6724 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6725 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6726 | 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] | 6727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6728 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6729 | if test "$ac_cv_type_long" = yes; then |
| 6730 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6731 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6732 | as_fn_error 77 "cannot compute sizeof (long) |
| 6733 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6734 | else |
| 6735 | ac_cv_sizeof_long=0 |
| 6736 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6737 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6738 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6739 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 6741 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6742 | |
| 6743 | |
| 6744 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6745 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6746 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6747 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6748 | |
| 6749 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6750 | # The cast to long int works around a bug in the HP C Compiler |
| 6751 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6752 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6753 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
| 6755 | $as_echo_n "checking size of void *... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6756 | if ${ac_cv_sizeof_void_p+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6757 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6758 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6759 | 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] | 6760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6761 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6762 | if test "$ac_cv_type_void_p" = yes; then |
| 6763 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6764 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6765 | as_fn_error 77 "cannot compute sizeof (void *) |
| 6766 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6767 | else |
| 6768 | ac_cv_sizeof_void_p=0 |
| 6769 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6770 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6771 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6772 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
| 6774 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6775 | |
| 6776 | |
| 6777 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6778 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6779 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6780 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6781 | |
| 6782 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6783 | # The cast to long int works around a bug in the HP C Compiler |
| 6784 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6785 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6786 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
| 6788 | $as_echo_n "checking size of short... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6789 | if ${ac_cv_sizeof_short+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6790 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6791 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6792 | 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] | 6793 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6794 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6795 | if test "$ac_cv_type_short" = yes; then |
| 6796 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6797 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6798 | as_fn_error 77 "cannot compute sizeof (short) |
| 6799 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6800 | else |
| 6801 | ac_cv_sizeof_short=0 |
| 6802 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6803 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6804 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6805 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
| 6807 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6808 | |
| 6809 | |
| 6810 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6811 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6812 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6813 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6814 | |
| 6815 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6816 | # The cast to long int works around a bug in the HP C Compiler |
| 6817 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6818 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6819 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
| 6821 | $as_echo_n "checking size of float... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6822 | if ${ac_cv_sizeof_float+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6823 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6824 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6825 | 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] | 6826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6827 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6828 | if test "$ac_cv_type_float" = yes; then |
| 6829 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6830 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6831 | as_fn_error 77 "cannot compute sizeof (float) |
| 6832 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6833 | else |
| 6834 | ac_cv_sizeof_float=0 |
| 6835 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6836 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6837 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6838 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
| 6840 | $as_echo "$ac_cv_sizeof_float" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6841 | |
| 6842 | |
| 6843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6844 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6845 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6846 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6847 | |
| 6848 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6849 | # The cast to long int works around a bug in the HP C Compiler |
| 6850 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6851 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6852 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
| 6854 | $as_echo_n "checking size of double... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6855 | if ${ac_cv_sizeof_double+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6856 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6857 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6858 | 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] | 6859 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6860 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6861 | if test "$ac_cv_type_double" = yes; then |
| 6862 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6863 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6864 | as_fn_error 77 "cannot compute sizeof (double) |
| 6865 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6866 | else |
| 6867 | ac_cv_sizeof_double=0 |
| 6868 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6869 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6871 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
| 6873 | $as_echo "$ac_cv_sizeof_double" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6874 | |
| 6875 | |
| 6876 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6877 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6878 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6879 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6880 | |
| 6881 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6882 | # The cast to long int works around a bug in the HP C Compiler |
| 6883 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6884 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6885 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
| 6887 | $as_echo_n "checking size of fpos_t... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6888 | if ${ac_cv_sizeof_fpos_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6889 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6890 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6891 | 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] | 6892 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6893 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6894 | if test "$ac_cv_type_fpos_t" = yes; then |
| 6895 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6896 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6897 | as_fn_error 77 "cannot compute sizeof (fpos_t) |
| 6898 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6899 | else |
| 6900 | ac_cv_sizeof_fpos_t=0 |
| 6901 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6902 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6904 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
| 6906 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6907 | |
| 6908 | |
| 6909 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6910 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6911 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6912 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6913 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6914 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6915 | # The cast to long int works around a bug in the HP C Compiler |
| 6916 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6917 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6918 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 6920 | $as_echo_n "checking size of size_t... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6921 | if ${ac_cv_sizeof_size_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6922 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6923 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6924 | 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] | 6925 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6926 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6927 | if test "$ac_cv_type_size_t" = yes; then |
| 6928 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6929 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6930 | as_fn_error 77 "cannot compute sizeof (size_t) |
| 6931 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6932 | else |
| 6933 | ac_cv_sizeof_size_t=0 |
| 6934 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6935 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6936 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6937 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 6939 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6940 | |
| 6941 | |
| 6942 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6943 | cat >>confdefs.h <<_ACEOF |
| 6944 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 6945 | _ACEOF |
| 6946 | |
| 6947 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6948 | # The cast to long int works around a bug in the HP C Compiler |
| 6949 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6950 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6951 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
| 6953 | $as_echo_n "checking size of pid_t... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6954 | if ${ac_cv_sizeof_pid_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6955 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6956 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6957 | 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] | 6958 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6959 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6960 | if test "$ac_cv_type_pid_t" = yes; then |
| 6961 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6962 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 6963 | as_fn_error 77 "cannot compute sizeof (pid_t) |
| 6964 | See \`config.log' for more details" "$LINENO" 5; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6965 | else |
| 6966 | ac_cv_sizeof_pid_t=0 |
| 6967 | fi |
| 6968 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6969 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6970 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
| 6972 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6973 | |
| 6974 | |
| 6975 | |
| 6976 | cat >>confdefs.h <<_ACEOF |
| 6977 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 6978 | _ACEOF |
| 6979 | |
| 6980 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6981 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 |
| 6983 | $as_echo_n "checking for long long support... " >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6984 | have_long_long=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6986 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6987 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6988 | int |
| 6989 | main () |
| 6990 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6991 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6992 | ; |
| 6993 | return 0; |
| 6994 | } |
| 6995 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6996 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6997 | |
| 6998 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6999 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7000 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7001 | have_long_long=yes |
| 7002 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7003 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 |
| 7006 | $as_echo "$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7007 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7008 | # The cast to long int works around a bug in the HP C Compiler |
| 7009 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7010 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7011 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
| 7013 | $as_echo_n "checking size of long long... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7014 | if ${ac_cv_sizeof_long_long+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7015 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7016 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7017 | 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] | 7018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7019 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7020 | if test "$ac_cv_type_long_long" = yes; then |
| 7021 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7022 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7023 | as_fn_error 77 "cannot compute sizeof (long long) |
| 7024 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7025 | else |
| 7026 | ac_cv_sizeof_long_long=0 |
| 7027 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7028 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7029 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7030 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
| 7032 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7033 | |
| 7034 | |
| 7035 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7036 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7037 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7038 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7039 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7040 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7041 | fi |
| 7042 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 |
| 7044 | $as_echo_n "checking for long double support... " >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7045 | have_long_double=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7047 | /* end confdefs.h. */ |
| 7048 | |
| 7049 | int |
| 7050 | main () |
| 7051 | { |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7052 | long double x; x = (long double)0; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7053 | ; |
| 7054 | return 0; |
| 7055 | } |
| 7056 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7057 | if ac_fn_c_try_compile "$LINENO"; then : |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7058 | |
| 7059 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7060 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7061 | |
| 7062 | have_long_double=yes |
| 7063 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7064 | fi |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 |
| 7067 | $as_echo "$have_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7068 | if test "$have_long_double" = yes ; then |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7069 | # The cast to long int works around a bug in the HP C Compiler |
| 7070 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7071 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7072 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
| 7074 | $as_echo_n "checking size of long double... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7075 | if ${ac_cv_sizeof_long_double+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7076 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7077 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7078 | 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] | 7079 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7080 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7081 | if test "$ac_cv_type_long_double" = yes; then |
| 7082 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7083 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7084 | as_fn_error 77 "cannot compute sizeof (long double) |
| 7085 | See \`config.log' for more details" "$LINENO" 5; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7086 | else |
| 7087 | ac_cv_sizeof_long_double=0 |
| 7088 | fi |
| 7089 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7090 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7091 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
| 7093 | $as_echo "$ac_cv_sizeof_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7094 | |
| 7095 | |
| 7096 | |
| 7097 | cat >>confdefs.h <<_ACEOF |
| 7098 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 7099 | _ACEOF |
| 7100 | |
| 7101 | |
| 7102 | fi |
| 7103 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 |
| 7105 | $as_echo_n "checking for _Bool support... " >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7106 | have_c99_bool=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7108 | /* end confdefs.h. */ |
| 7109 | |
| 7110 | int |
| 7111 | main () |
| 7112 | { |
| 7113 | _Bool x; x = (_Bool)0; |
| 7114 | ; |
| 7115 | return 0; |
| 7116 | } |
| 7117 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7118 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7119 | |
| 7120 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7121 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7122 | |
| 7123 | have_c99_bool=yes |
| 7124 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7125 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 |
| 7128 | $as_echo "$have_c99_bool" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7129 | if test "$have_c99_bool" = yes ; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7130 | # The cast to long int works around a bug in the HP C Compiler |
| 7131 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7132 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7133 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
| 7135 | $as_echo_n "checking size of _Bool... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7136 | if ${ac_cv_sizeof__Bool+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7137 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7138 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7139 | 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] | 7140 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7141 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7142 | if test "$ac_cv_type__Bool" = yes; then |
| 7143 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7144 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7145 | as_fn_error 77 "cannot compute sizeof (_Bool) |
| 7146 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7147 | else |
| 7148 | ac_cv_sizeof__Bool=0 |
| 7149 | fi |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7150 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7151 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7152 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
| 7154 | $as_echo "$ac_cv_sizeof__Bool" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7155 | |
| 7156 | |
| 7157 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7158 | cat >>confdefs.h <<_ACEOF |
| 7159 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 7160 | _ACEOF |
| 7161 | |
| 7162 | |
| 7163 | fi |
| 7164 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7165 | 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] | 7166 | #include <stdint.h> |
| 7167 | #endif |
Antoine Pitrou | 7be5a65 | 2010-10-10 08:14:41 +0000 | [diff] [blame] | 7168 | #ifdef HAVE_INTTYPES_H |
| 7169 | #include <inttypes.h> |
| 7170 | #endif |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7171 | " |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7172 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7173 | |
| 7174 | cat >>confdefs.h <<_ACEOF |
| 7175 | #define HAVE_UINTPTR_T 1 |
| 7176 | _ACEOF |
| 7177 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7178 | # The cast to long int works around a bug in the HP C Compiler |
| 7179 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7180 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7181 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 |
| 7183 | $as_echo_n "checking size of uintptr_t... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7184 | if ${ac_cv_sizeof_uintptr_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7185 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7186 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7187 | 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] | 7188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7189 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7190 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 7191 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7192 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7193 | as_fn_error 77 "cannot compute sizeof (uintptr_t) |
| 7194 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7195 | else |
| 7196 | ac_cv_sizeof_uintptr_t=0 |
| 7197 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7198 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7199 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7200 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 7202 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7203 | |
| 7204 | |
| 7205 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7206 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7207 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7208 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7209 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7210 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7211 | fi |
| 7212 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7213 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7214 | # The cast to long int works around a bug in the HP C Compiler |
| 7215 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7216 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7217 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 7219 | $as_echo_n "checking size of off_t... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7220 | if ${ac_cv_sizeof_off_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7221 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7222 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7223 | 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] | 7224 | #ifdef HAVE_SYS_TYPES_H |
| 7225 | #include <sys/types.h> |
| 7226 | #endif |
| 7227 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7228 | "; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7229 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7230 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7231 | if test "$ac_cv_type_off_t" = yes; then |
| 7232 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7233 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7234 | as_fn_error 77 "cannot compute sizeof (off_t) |
| 7235 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7236 | else |
| 7237 | ac_cv_sizeof_off_t=0 |
| 7238 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7239 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7240 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7241 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 7243 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7244 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7245 | |
| 7246 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7247 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7248 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7249 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7250 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7251 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7252 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
| 7254 | $as_echo_n "checking whether to enable large file support... " >&6; } |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7255 | if test "$have_long_long" = yes |
| 7256 | then |
| 7257 | 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] | 7258 | "$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] | 7259 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7260 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7261 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7263 | $as_echo "yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7264 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7266 | $as_echo "no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7267 | fi |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7268 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7270 | $as_echo "no" >&6; } |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7271 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7272 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7273 | # The cast to long int works around a bug in the HP C Compiler |
| 7274 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7275 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7276 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 7278 | $as_echo_n "checking size of time_t... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7279 | if ${ac_cv_sizeof_time_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7280 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7281 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7282 | 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] | 7283 | #ifdef HAVE_SYS_TYPES_H |
| 7284 | #include <sys/types.h> |
| 7285 | #endif |
| 7286 | #ifdef HAVE_TIME_H |
| 7287 | #include <time.h> |
| 7288 | #endif |
| 7289 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7290 | "; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7291 | |
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 test "$ac_cv_type_time_t" = yes; then |
| 7294 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7295 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7296 | as_fn_error 77 "cannot compute sizeof (time_t) |
| 7297 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7298 | else |
| 7299 | ac_cv_sizeof_time_t=0 |
| 7300 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7301 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7302 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7303 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 7305 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7306 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7307 | |
| 7308 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7309 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7310 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7311 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7312 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7313 | |
| 7314 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7315 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7316 | ac_save_cc="$CC" |
| 7317 | if test "$ac_cv_kpthread" = "yes" |
| 7318 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 7319 | elif test "$ac_cv_kthread" = "yes" |
| 7320 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 7321 | elif test "$ac_cv_pthread" = "yes" |
| 7322 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7323 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
| 7325 | $as_echo_n "checking for pthread_t... " >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7326 | have_pthread_t=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7328 | /* end confdefs.h. */ |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7329 | |
| 7330 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7331 | int |
| 7332 | main () |
| 7333 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 7334 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7335 | ; |
| 7336 | return 0; |
| 7337 | } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7339 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7340 | if ac_fn_c_try_compile "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7341 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7342 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 |
| 7345 | $as_echo "$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7346 | if test "$have_pthread_t" = yes ; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7347 | # 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] | 7348 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7349 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7350 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
| 7352 | $as_echo_n "checking size of pthread_t... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7353 | if ${ac_cv_sizeof_pthread_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7354 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7355 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7356 | 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] | 7357 | #ifdef HAVE_PTHREAD_H |
| 7358 | #include <pthread.h> |
| 7359 | #endif |
| 7360 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7361 | "; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7362 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7363 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7364 | if test "$ac_cv_type_pthread_t" = yes; then |
| 7365 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7366 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7367 | as_fn_error 77 "cannot compute sizeof (pthread_t) |
| 7368 | See \`config.log' for more details" "$LINENO" 5; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7369 | else |
| 7370 | ac_cv_sizeof_pthread_t=0 |
| 7371 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7372 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7373 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7374 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
| 7376 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7377 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7378 | |
| 7379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7380 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7381 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7382 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7383 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7384 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7385 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7386 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7387 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5 |
| 7389 | $as_echo_n "checking for --enable-toolbox-glue... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7390 | # Check whether --enable-toolbox-glue was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7391 | if test "${enable_toolbox_glue+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7392 | enableval=$enable_toolbox_glue; |
| 7393 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7394 | |
| 7395 | |
| 7396 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7397 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7398 | case $ac_sys_system/$ac_sys_release in |
| 7399 | Darwin/*) |
| 7400 | enable_toolbox_glue="yes";; |
| 7401 | *) |
| 7402 | enable_toolbox_glue="no";; |
| 7403 | esac |
| 7404 | fi |
| 7405 | case "$enable_toolbox_glue" in |
| 7406 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7407 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7408 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7409 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7410 | $as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7411 | |
| 7412 | ;; |
| 7413 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7414 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 7415 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7416 | ;; |
| 7417 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5 |
| 7419 | $as_echo "$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7420 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7421 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 7422 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7423 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 7424 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7425 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 7426 | ;; |
| 7427 | Darwin/*) |
| 7428 | OTHER_LIBTOOL_OPT="" |
| 7429 | ;; |
| 7430 | esac |
| 7431 | |
| 7432 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7433 | ARCH_RUN_32BIT="" |
| 7434 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7435 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 7436 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 7437 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 7438 | if test "${enable_universalsdk}"; then |
| 7439 | : |
| 7440 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 7441 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 7442 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7443 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7444 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 7445 | Darwin/*) |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 7446 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7447 | if test ${gcc_version} '<' 4.0 |
| 7448 | then |
| 7449 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 7450 | else |
| 7451 | LIBTOOL_CRUFT="" |
| 7452 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7453 | if test "$cross_compiling" = yes; then : |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 7454 | ac_osx_32bit=yes |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7455 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7457 | /* end confdefs.h. */ |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 7458 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7459 | #include <unistd.h> |
| 7460 | int main(int argc, char*argv[]) |
| 7461 | { |
| 7462 | if (sizeof(long) == 4) { |
| 7463 | return 0; |
| 7464 | } else { |
| 7465 | return 1; |
| 7466 | } |
Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 7467 | } |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 7468 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7469 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7470 | if ac_fn_c_try_run "$LINENO"; then : |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7471 | ac_osx_32bit=yes |
| 7472 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7473 | ac_osx_32bit=no |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7474 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7475 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7476 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7477 | fi |
| 7478 | |
| 7479 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7480 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 7481 | case `/usr/bin/arch` in |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7482 | i386) |
| 7483 | MACOSX_DEFAULT_ARCH="i386" |
| 7484 | ;; |
| 7485 | ppc) |
| 7486 | MACOSX_DEFAULT_ARCH="ppc" |
| 7487 | ;; |
| 7488 | *) |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7489 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7490 | ;; |
| 7491 | esac |
| 7492 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 7493 | case `/usr/bin/arch` in |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7494 | i386) |
| 7495 | MACOSX_DEFAULT_ARCH="x86_64" |
| 7496 | ;; |
| 7497 | ppc) |
| 7498 | MACOSX_DEFAULT_ARCH="ppc64" |
| 7499 | ;; |
| 7500 | *) |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7501 | as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7502 | ;; |
| 7503 | esac |
| 7504 | |
| 7505 | #ARCH_RUN_32BIT="true" |
| 7506 | fi |
| 7507 | |
| 7508 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7509 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7510 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7511 | esac |
| 7512 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
| 7514 | $as_echo_n "checking for --enable-framework... " >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7515 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7516 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 7517 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7518 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7519 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7520 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7521 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7522 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7524 | $as_echo "yes" >&6; } |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 7525 | if test $enable_shared = "yes" |
| 7526 | then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7527 | 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] | 7528 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7529 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7531 | $as_echo "no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7532 | fi |
| 7533 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
| 7535 | $as_echo_n "checking for dyld... " >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7536 | case $ac_sys_system/$ac_sys_release in |
| 7537 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7538 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7539 | $as_echo "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7540 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
| 7542 | $as_echo "always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7543 | ;; |
| 7544 | *) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7546 | $as_echo "no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7547 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7548 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7549 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7550 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7551 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7552 | |
| 7553 | |
| 7554 | |
| 7555 | |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7556 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7557 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 7558 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 |
| 7560 | $as_echo_n "checking SO... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7561 | if test -z "$SO" |
| 7562 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7563 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 7564 | hp*|HP*) |
| 7565 | case `uname -m` in |
| 7566 | ia64) SO=.so;; |
| 7567 | *) SO=.sl;; |
| 7568 | esac |
| 7569 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 7570 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 7571 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7572 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 7573 | else |
| 7574 | # this might also be a termcap variable, see #610332 |
| 7575 | echo |
| 7576 | echo '=====================================================================' |
| 7577 | echo '+ +' |
| 7578 | echo '+ WARNING: You have set SO in your environment. +' |
| 7579 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 7580 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 7581 | echo '+ +' |
| 7582 | echo '=====================================================================' |
| 7583 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7584 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 |
| 7586 | $as_echo "$SO" >&6; } |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 7587 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 7588 | |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 7589 | cat >>confdefs.h <<_ACEOF |
| 7590 | #define SHLIB_EXT "$SO" |
| 7591 | _ACEOF |
| 7592 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7593 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 7594 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7595 | # (Shared libraries in this instance are shared modules to be loaded into |
| 7596 | # Python, as opposed to building Python itself as a shared library.) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
| 7598 | $as_echo_n "checking LDSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7599 | if test -z "$LDSHARED" |
| 7600 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7601 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7602 | AIX*) |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7603 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 7604 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7605 | ;; |
| 7606 | BeOS*) |
| 7607 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 7608 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7609 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7610 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7611 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7612 | SunOS/5*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7613 | if test "$GCC" = "yes" ; then |
| 7614 | LDSHARED='$(CC) -shared' |
| 7615 | LDCXXSHARED='$(CXX) -shared' |
| 7616 | else |
| 7617 | LDSHARED='$(CC) -G' |
| 7618 | LDCXXSHARED='$(CXX) -G' |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 7619 | fi ;; |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 7620 | hp*|HP*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7621 | if test "$GCC" = "yes" ; then |
| 7622 | LDSHARED='$(CC) -shared' |
| 7623 | LDCXXSHARED='$(CXX) -shared' |
| 7624 | else |
| 7625 | LDSHARED='ld -b' |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 7626 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7627 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7628 | Darwin/1.3*) |
Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 7629 | LDSHARED='$(CC) -bundle' |
| 7630 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7631 | if test "$enable_framework" ; then |
| 7632 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7633 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7634 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7635 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7636 | else |
| 7637 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7638 | LDSHARED="$LDSHARED -undefined suppress" |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7639 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7640 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7641 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 7642 | LDSHARED='$(CC) -bundle' |
| 7643 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7644 | if test "$enable_framework" ; then |
| 7645 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7646 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7647 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7648 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7649 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 7650 | # No framework, use the Python app as bundle-loader |
| 7651 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 7652 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7653 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7654 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7655 | Darwin/*) |
| 7656 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 7657 | # This allows an extension to be used in any Python |
Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 7658 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 7659 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7660 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 7661 | if test "${enable_universalsdk}"; then |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 7662 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 7663 | fi |
Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 7664 | LDSHARED='$(CC) -bundle -undefined dynamic_lookup' |
| 7665 | LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7666 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7667 | else |
Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 7668 | LDSHARED='$(CC) -bundle' |
| 7669 | LDCXXSHARED='$(CXX) -bundle' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7670 | if test "$enable_framework" ; then |
| 7671 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7672 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7673 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7674 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7675 | else |
| 7676 | # No framework, use the Python app as bundle-loader |
| 7677 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 7678 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7679 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7680 | fi |
| 7681 | fi |
| 7682 | ;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7683 | Linux*|GNU*|QNX*) |
| 7684 | LDSHARED='$(CC) -shared' |
| 7685 | LDCXXSHARED='$(CXX) -shared';; |
| 7686 | BSD/OS*/4*) |
| 7687 | LDSHARED="gcc -shared" |
| 7688 | LDCXXSHARED="g++ -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 7689 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 7690 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7691 | then |
Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 7692 | LDSHARED='$(CC) -shared' |
| 7693 | LDCXXSHARED='$(CXX) -shared' |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7694 | else |
Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 7695 | LDSHARED="ld -Bshareable" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7696 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 7697 | OpenBSD*) |
| 7698 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 7699 | then |
Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 7700 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 7701 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 7702 | else |
| 7703 | case `uname -r` in |
| 7704 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 7705 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 7706 | ;; |
| 7707 | *) |
Stefan Krah | 3a3e203 | 2010-11-28 15:30:05 +0000 | [diff] [blame] | 7708 | LDSHARED='$(CC) -shared $(CCSHARED)' |
| 7709 | LDCXXSHARED='$(CXX) -shared $(CCSHARED)' |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 7710 | ;; |
| 7711 | esac |
| 7712 | fi;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7713 | NetBSD*|DragonFly*) |
Antoine Pitrou | cb40277 | 2011-01-02 20:51:34 +0000 | [diff] [blame] | 7714 | LDSHARED='$(CC) -shared' |
| 7715 | LDCXXSHARED='$(CXX) -shared';; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7716 | OpenUNIX*|UnixWare*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7717 | if test "$GCC" = "yes" ; then |
| 7718 | LDSHARED='$(CC) -shared' |
| 7719 | LDCXXSHARED='$(CXX) -shared' |
| 7720 | else |
| 7721 | LDSHARED='$(CC) -G' |
| 7722 | LDCXXSHARED='$(CXX) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7723 | fi;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7724 | SCO_SV*) |
| 7725 | LDSHARED='$(CC) -Wl,-G,-Bexport' |
| 7726 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; |
| 7727 | CYGWIN*) |
| 7728 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" |
| 7729 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; |
| 7730 | atheos*) |
| 7731 | LDSHARED="gcc -shared" |
| 7732 | LDCXXSHARED="g++ -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7733 | *) LDSHARED="ld";; |
| 7734 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7735 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
| 7737 | $as_echo "$LDSHARED" >&6; } |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7738 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7739 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7740 | # 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] | 7741 | # library (module) -- this is only needed for a few systems |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
| 7743 | $as_echo_n "checking CCSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7744 | if test -z "$CCSHARED" |
| 7745 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7746 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7747 | SunOS*) if test "$GCC" = yes; |
Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 7748 | then CCSHARED="-fPIC"; |
| 7749 | elif test `uname -p` = sparc; |
| 7750 | then CCSHARED="-xcode=pic32"; |
| 7751 | else CCSHARED="-Kpic"; |
| 7752 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7753 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 7754 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7755 | else CCSHARED="+z"; |
| 7756 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7757 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7758 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7759 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7760 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7761 | if test "$GCC" = "yes" |
| 7762 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 7763 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7764 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7765 | SCO_SV*) |
| 7766 | if test "$GCC" = "yes" |
| 7767 | then CCSHARED="-fPIC" |
| 7768 | else CCSHARED="-Kpic -belf" |
| 7769 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7770 | IRIX*/6*) case $CC in |
| 7771 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 7772 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7773 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7774 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7775 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7776 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
| 7778 | $as_echo "$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7779 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7780 | # the python executable -- this is only needed for a few systems |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
| 7782 | $as_echo_n "checking LINKFORSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7783 | if test -z "$LINKFORSHARED" |
| 7784 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7785 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7786 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7787 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 7788 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 7789 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7790 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7791 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7792 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7793 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7794 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 7795 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7796 | # not used by the core itself but which needs to be in the core so |
| 7797 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 7798 | # -prebind is no longer used, because it actually seems to give a |
| 7799 | # slowdown in stead of a speedup, maybe due to the large number of |
| 7800 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7801 | |
| 7802 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7803 | if test "$enable_framework" |
| 7804 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7805 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7806 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7807 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7808 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7809 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 7810 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7811 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 7812 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 7813 | then |
| 7814 | LINKFORSHARED="-Wl,--export-dynamic" |
| 7815 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7816 | SunOS/5*) case $CC in |
| 7817 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 7818 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 7819 | then |
| 7820 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7821 | fi;; |
| 7822 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 7823 | CYGWIN*) |
| 7824 | if test $enable_shared = "no" |
| 7825 | then |
| 7826 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 7827 | fi;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 7828 | QNX*) |
| 7829 | # -Wl,-E causes the symbols to be added to the dynamic |
| 7830 | # symbol table so that they can be found when a module |
| 7831 | # is loaded. -N 2048K causes the stack size to be set |
| 7832 | # to 2048 kilobytes so that the stack doesn't overflow |
| 7833 | # when running test_compile.py. |
| 7834 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7835 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7836 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
| 7838 | $as_echo "$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7839 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7840 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 7841 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
| 7843 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7844 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 7845 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 7846 | case $ac_sys_system in |
| 7847 | CYGWIN*) |
| 7848 | # Cygwin needs CCSHARED when building extension DLLs |
| 7849 | # but not when building the interpreter DLL. |
| 7850 | CFLAGSFORSHARED='';; |
| 7851 | *) |
| 7852 | CFLAGSFORSHARED='$(CCSHARED)' |
| 7853 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7854 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
| 7856 | $as_echo "$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7857 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7858 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 7859 | # library (with --enable-shared). |
| 7860 | # 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] | 7861 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 7862 | # if it is not required, since it creates a dependency of the shared library |
| 7863 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 7864 | # don't need to link LIBS explicitly. The default should be only changed |
| 7865 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7866 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
| 7868 | $as_echo_n "checking SHLIBS... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7869 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7870 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 7871 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7872 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
| 7874 | $as_echo "$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7875 | |
| 7876 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7877 | # checks for libraries |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 7879 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7880 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7881 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7882 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7883 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7884 | LIBS="-ldl $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7886 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7887 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7888 | /* Override any GCC internal prototype to avoid an error. |
| 7889 | Use char because int might match the return type of a GCC |
| 7890 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7891 | #ifdef __cplusplus |
| 7892 | extern "C" |
| 7893 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7894 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7895 | int |
| 7896 | main () |
| 7897 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7898 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7899 | ; |
| 7900 | return 0; |
| 7901 | } |
| 7902 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7903 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7904 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7905 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7906 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7907 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7908 | rm -f core conftest.err conftest.$ac_objext \ |
| 7909 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7910 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7911 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 7913 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7914 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7915 | cat >>confdefs.h <<_ACEOF |
| 7916 | #define HAVE_LIBDL 1 |
| 7917 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7918 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7919 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7920 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7921 | fi |
| 7922 | # Dynamic linking for SunOS/Solaris and SYSV |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 7924 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7925 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7926 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7928 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7929 | LIBS="-ldld $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7931 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7932 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7933 | /* Override any GCC internal prototype to avoid an error. |
| 7934 | Use char because int might match the return type of a GCC |
| 7935 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7936 | #ifdef __cplusplus |
| 7937 | extern "C" |
| 7938 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7939 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7940 | int |
| 7941 | main () |
| 7942 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7943 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7944 | ; |
| 7945 | return 0; |
| 7946 | } |
| 7947 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7948 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7949 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7950 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7951 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7952 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7953 | rm -f core conftest.err conftest.$ac_objext \ |
| 7954 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7955 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7956 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 7958 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7959 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7960 | cat >>confdefs.h <<_ACEOF |
| 7961 | #define HAVE_LIBDLD 1 |
| 7962 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7963 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7964 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7965 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7966 | fi |
| 7967 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7968 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 7969 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7970 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
| 7972 | $as_echo_n "checking for library containing sem_init... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 7973 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7974 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7975 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7976 | ac_func_search_save_LIBS=$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 | 1143799 | 2002-04-12 09:54:03 +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 | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7983 | #ifdef __cplusplus |
| 7984 | extern "C" |
| 7985 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7986 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7987 | int |
| 7988 | main () |
| 7989 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7990 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7991 | ; |
| 7992 | return 0; |
| 7993 | } |
| 7994 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7995 | for ac_lib in '' pthread rt posix4; do |
| 7996 | if test -z "$ac_lib"; then |
| 7997 | ac_res="none required" |
| 7998 | else |
| 7999 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 8000 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8001 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8002 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8003 | ac_cv_search_sem_init=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 8004 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8005 | rm -f core conftest.err conftest.$ac_objext \ |
| 8006 | conftest$ac_exeext |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8007 | if ${ac_cv_search_sem_init+:} false; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8008 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 8009 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8010 | done |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8011 | if ${ac_cv_search_sem_init+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8012 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8013 | else |
| 8014 | ac_cv_search_sem_init=no |
| 8015 | fi |
| 8016 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 8017 | LIBS=$ac_func_search_save_LIBS |
| 8018 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
| 8020 | $as_echo "$ac_cv_search_sem_init" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8021 | ac_res=$ac_cv_search_sem_init |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8022 | if test "$ac_res" != no; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8023 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8024 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 8025 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 8026 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8027 | # posix4 on Solaris 2.6 |
| 8028 | # pthread (first!) on Linux |
| 8029 | fi |
| 8030 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8031 | # check if we need libintl for locale functions |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
| 8033 | $as_echo_n "checking for textdomain in -lintl... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8034 | if ${ac_cv_lib_intl_textdomain+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8035 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8036 | else |
| 8037 | ac_check_lib_save_LIBS=$LIBS |
| 8038 | LIBS="-lintl $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8040 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8041 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8042 | /* Override any GCC internal prototype to avoid an error. |
| 8043 | Use char because int might match the return type of a GCC |
| 8044 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8045 | #ifdef __cplusplus |
| 8046 | extern "C" |
| 8047 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8048 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8049 | int |
| 8050 | main () |
| 8051 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8052 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8053 | ; |
| 8054 | return 0; |
| 8055 | } |
| 8056 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8057 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8058 | ac_cv_lib_intl_textdomain=yes |
| 8059 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8060 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8061 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8062 | rm -f core conftest.err conftest.$ac_objext \ |
| 8063 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8064 | LIBS=$ac_check_lib_save_LIBS |
| 8065 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
| 8067 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8068 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8069 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8070 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8071 | |
| 8072 | fi |
| 8073 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8074 | |
| 8075 | # checks for system dependent C++ extensions support |
| 8076 | case "$ac_sys_system" in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8077 | AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
| 8078 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } |
| 8079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8080 | /* end confdefs.h. */ |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8081 | |
Georg Brandl | 94800df | 2011-02-25 11:09:02 +0000 | [diff] [blame] | 8082 | #include <load.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8083 | int |
| 8084 | main () |
| 8085 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8086 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8087 | ; |
| 8088 | return 0; |
| 8089 | } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8090 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8091 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8092 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8093 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8094 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8095 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8096 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8098 | $as_echo "yes" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8099 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8100 | else |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8101 | |
| 8102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8103 | $as_echo "no" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8104 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8105 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8106 | rm -f core conftest.err conftest.$ac_objext \ |
| 8107 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8108 | *) ;; |
| 8109 | esac |
| 8110 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8111 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8112 | # BeOS' sockets are stashed in libnet. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
| 8114 | $as_echo_n "checking for t_open in -lnsl... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8115 | if ${ac_cv_lib_nsl_t_open+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8116 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8117 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8118 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8119 | LIBS="-lnsl $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8121 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8122 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8123 | /* Override any GCC internal prototype to avoid an error. |
| 8124 | Use char because int might match the return type of a GCC |
| 8125 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8126 | #ifdef __cplusplus |
| 8127 | extern "C" |
| 8128 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8129 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8130 | int |
| 8131 | main () |
| 8132 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8133 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8134 | ; |
| 8135 | return 0; |
| 8136 | } |
| 8137 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8138 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8139 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8140 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8141 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8142 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8143 | rm -f core conftest.err conftest.$ac_objext \ |
| 8144 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8145 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8146 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
| 8148 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8149 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8150 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8151 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 8152 | # SVR4 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 8154 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8155 | if ${ac_cv_lib_socket_socket+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8156 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8158 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8159 | LIBS="-lsocket $LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8161 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8162 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8163 | /* Override any GCC internal prototype to avoid an error. |
| 8164 | Use char because int might match the return type of a GCC |
| 8165 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8166 | #ifdef __cplusplus |
| 8167 | extern "C" |
| 8168 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8169 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8170 | int |
| 8171 | main () |
| 8172 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8173 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8174 | ; |
| 8175 | return 0; |
| 8176 | } |
| 8177 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8178 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8179 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8180 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8181 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8182 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8183 | rm -f core conftest.err conftest.$ac_objext \ |
| 8184 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8185 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8186 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 8188 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8189 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8190 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8191 | fi |
| 8192 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 8193 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 8194 | case "$ac_sys_system" in |
| 8195 | BeOS*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5 |
| 8197 | $as_echo_n "checking for socket in -lnet... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8198 | if ${ac_cv_lib_net_socket+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8199 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8200 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8201 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8202 | LIBS="-lnet $LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8204 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8205 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8206 | /* Override any GCC internal prototype to avoid an error. |
| 8207 | Use char because int might match the return type of a GCC |
| 8208 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8209 | #ifdef __cplusplus |
| 8210 | extern "C" |
| 8211 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8212 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8213 | int |
| 8214 | main () |
| 8215 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8216 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8217 | ; |
| 8218 | return 0; |
| 8219 | } |
| 8220 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8221 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8222 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8223 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8224 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8225 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8226 | rm -f core conftest.err conftest.$ac_objext \ |
| 8227 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8228 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8229 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5 |
| 8231 | $as_echo "$ac_cv_lib_net_socket" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8232 | if test "x$ac_cv_lib_net_socket" = xyes; then : |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8233 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8234 | fi |
| 8235 | # BeOS |
| 8236 | ;; |
| 8237 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8238 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
| 8240 | $as_echo_n "checking for --with-libs... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8241 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8242 | # Check whether --with-libs was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8243 | if test "${with_libs+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8244 | withval=$with_libs; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 8246 | $as_echo "$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 8247 | LIBS="$withval $LIBS" |
| 8248 | |
| 8249 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8251 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8252 | fi |
| 8253 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8254 | |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8255 | if test -n "$ac_tool_prefix"; then |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8256 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 8257 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8259 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8260 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8261 | $as_echo_n "(cached) " >&6 |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8262 | else |
| 8263 | case $PKG_CONFIG in |
| 8264 | [\\/]* | ?:[\\/]*) |
| 8265 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 8266 | ;; |
| 8267 | *) |
| 8268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8269 | for as_dir in $PATH |
| 8270 | do |
| 8271 | IFS=$as_save_IFS |
| 8272 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8273 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8274 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8275 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8276 | $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] | 8277 | break 2 |
| 8278 | fi |
| 8279 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8280 | done |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8281 | IFS=$as_save_IFS |
| 8282 | |
| 8283 | ;; |
| 8284 | esac |
| 8285 | fi |
| 8286 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 8287 | if test -n "$PKG_CONFIG"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 8289 | $as_echo "$PKG_CONFIG" >&6; } |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8290 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8292 | $as_echo "no" >&6; } |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8293 | fi |
| 8294 | |
| 8295 | |
| 8296 | fi |
| 8297 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 8298 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 8299 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8300 | set dummy pkg-config; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8302 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8303 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8304 | $as_echo_n "(cached) " >&6 |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8305 | else |
| 8306 | case $ac_pt_PKG_CONFIG in |
| 8307 | [\\/]* | ?:[\\/]*) |
| 8308 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 8309 | ;; |
| 8310 | *) |
| 8311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8312 | for as_dir in $PATH |
| 8313 | do |
| 8314 | IFS=$as_save_IFS |
| 8315 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8316 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8318 | 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] | 8319 | $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] | 8320 | break 2 |
| 8321 | fi |
| 8322 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8323 | done |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8324 | IFS=$as_save_IFS |
| 8325 | |
| 8326 | ;; |
| 8327 | esac |
| 8328 | fi |
| 8329 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 8330 | if test -n "$ac_pt_PKG_CONFIG"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 8332 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8333 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8335 | $as_echo "no" >&6; } |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8336 | fi |
| 8337 | |
| 8338 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 8339 | PKG_CONFIG="" |
| 8340 | else |
| 8341 | case $cross_compiling:$ac_tool_warned in |
| 8342 | yes:) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8344 | $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] | 8345 | ac_tool_warned=yes ;; |
| 8346 | esac |
| 8347 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 8348 | fi |
| 8349 | else |
| 8350 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 8351 | fi |
| 8352 | |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8353 | |
| 8354 | # Check for use of the system expat library |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 |
| 8356 | $as_echo_n "checking for --with-system-expat... " >&6; } |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8357 | |
| 8358 | # Check whether --with-system_expat was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8359 | if test "${with_system_expat+set}" = set; then : |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8360 | withval=$with_system_expat; |
Benjamin Peterson | f2d1b2a | 2010-10-31 16:53:53 +0000 | [diff] [blame] | 8361 | else |
| 8362 | with_system_expat="no" |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8363 | fi |
| 8364 | |
| 8365 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 |
| 8367 | $as_echo "$with_system_expat" >&6; } |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8368 | |
| 8369 | # Check for use of the system libffi library |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
| 8371 | $as_echo_n "checking for --with-system-ffi... " >&6; } |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8372 | |
| 8373 | # Check whether --with-system_ffi was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8374 | if test "${with_system_ffi+set}" = set; then : |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8375 | withval=$with_system_ffi; |
Benjamin Peterson | f2d1b2a | 2010-10-31 16:53:53 +0000 | [diff] [blame] | 8376 | else |
| 8377 | with_system_ffi="no" |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8378 | fi |
| 8379 | |
| 8380 | |
| 8381 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8382 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
| 8383 | else |
| 8384 | LIBFFI_INCLUDEDIR="" |
| 8385 | fi |
| 8386 | |
| 8387 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 |
| 8389 | $as_echo "$with_system_ffi" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 8390 | |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8391 | # Check for --with-dbmliborder |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
| 8393 | $as_echo_n "checking for --with-dbmliborder... " >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8394 | |
| 8395 | # Check whether --with-dbmliborder was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8396 | if test "${with_dbmliborder+set}" = set; then : |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8397 | withval=$with_dbmliborder; |
| 8398 | if test x$with_dbmliborder = xyes |
| 8399 | then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8400 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8401 | else |
| 8402 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 8403 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 8404 | then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8405 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8406 | fi |
| 8407 | done |
| 8408 | fi |
| 8409 | fi |
| 8410 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
| 8412 | $as_echo "$with_dbmliborder" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8413 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8414 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8415 | |
| 8416 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 |
| 8418 | $as_echo_n "checking for --with-signal-module... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8419 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8420 | # Check whether --with-signal-module was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8421 | if test "${with_signal_module+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8422 | withval=$with_signal_module; |
| 8423 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8424 | |
| 8425 | |
| 8426 | if test -z "$with_signal_module" |
| 8427 | then with_signal_module="yes" |
| 8428 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 |
| 8430 | $as_echo "$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8431 | |
| 8432 | if test "${with_signal_module}" = "yes"; then |
| 8433 | USE_SIGNAL_MODULE="" |
| 8434 | SIGNAL_OBJS="" |
| 8435 | else |
| 8436 | USE_SIGNAL_MODULE="#" |
| 8437 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 8438 | fi |
| 8439 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 8440 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8441 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8442 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8443 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5 |
| 8445 | $as_echo_n "checking for --with-dec-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8446 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8447 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8448 | # Check whether --with-dec-threads was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8449 | if test "${with_dec_threads+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8450 | withval=$with_dec_threads; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 8452 | $as_echo "$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8453 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8454 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8455 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8456 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8457 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8459 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8460 | fi |
| 8461 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8462 | |
| 8463 | # Templates for things AC_DEFINEd more than once. |
| 8464 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8465 | |
| 8466 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8467 | |
| 8468 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 |
| 8470 | $as_echo_n "checking for --with-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8471 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8472 | # Check whether --with-threads was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8473 | if test "${with_threads+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8474 | withval=$with_threads; |
| 8475 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8476 | |
| 8477 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8478 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8479 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8480 | # Check whether --with-thread was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8481 | if test "${with_thread+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8482 | withval=$with_thread; with_threads=$with_thread |
| 8483 | fi |
| 8484 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8485 | |
| 8486 | if test -z "$with_threads" |
| 8487 | then with_threads="yes" |
| 8488 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 |
| 8490 | $as_echo "$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8491 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8492 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8493 | if test "$with_threads" = "no" |
| 8494 | then |
| 8495 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8496 | elif test "$ac_cv_pthread_is_default" = yes |
| 8497 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8498 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8499 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8500 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8501 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8502 | |
| 8503 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8504 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8505 | elif test "$ac_cv_kpthread" = "yes" |
| 8506 | then |
| 8507 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8508 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8509 | CXX="$CXX -Kpthread" |
| 8510 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8511 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 8512 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8513 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8514 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8515 | elif test "$ac_cv_kthread" = "yes" |
| 8516 | then |
| 8517 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8518 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8519 | CXX="$CXX -Kthread" |
| 8520 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8521 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8522 | |
| 8523 | posix_threads=yes |
| 8524 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8525 | elif test "$ac_cv_pthread" = "yes" |
| 8526 | then |
| 8527 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8528 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8529 | CXX="$CXX -pthread" |
| 8530 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8531 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8532 | |
| 8533 | posix_threads=yes |
| 8534 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8535 | else |
| 8536 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 8537 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 8538 | fi |
| 8539 | if test ! -z "$withval" -a -d "$withval" |
| 8540 | then LDFLAGS="$LDFLAGS -L$withval" |
| 8541 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8542 | |
| 8543 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 8544 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 8545 | # (e.g. gnu pth with pthread emulation) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
| 8547 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } |
| 8548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8549 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8550 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8551 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8552 | #ifdef _POSIX_THREADS |
| 8553 | yes |
| 8554 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8555 | |
| 8556 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8557 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8558 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8559 | unistd_defines_pthreads=yes |
| 8560 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8561 | unistd_defines_pthreads=no |
| 8562 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 8563 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8564 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
| 8566 | $as_echo "$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8567 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8568 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 8569 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8570 | ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8571 | if test "x$ac_cv_header_cthreads_h" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8572 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8573 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8574 | $as_echo "#define C_THREADS 1" >>confdefs.h |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8576 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8577 | $as_echo "#define HURD_C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8578 | |
| 8579 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8580 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8581 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8582 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8583 | ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8584 | if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8585 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8586 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8587 | $as_echo "#define C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8589 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8590 | $as_echo "#define MACH_C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8591 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8592 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8593 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8594 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5 |
| 8596 | $as_echo_n "checking for --with-pth... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8597 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8598 | # Check whether --with-pth was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8599 | if test "${with_pth+set}" = set; then : |
| 8600 | withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 8601 | $as_echo "$withval" >&6; } |
| 8602 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8603 | |
| 8604 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8605 | $as_echo "#define HAVE_PTH 1" >>confdefs.h |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 8606 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8607 | LIBS="-lpth $LIBS" |
| 8608 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 8609 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8611 | $as_echo "no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8612 | |
| 8613 | # Just looking for pthread_create in libpthread is not enough: |
| 8614 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 8615 | # So we really have to include pthread.h, and then link. |
| 8616 | _libs=$LIBS |
| 8617 | LIBS="$LIBS -lpthread" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 8619 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
| 8620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8621 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8622 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8623 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8624 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8625 | int |
| 8626 | main () |
| 8627 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8628 | |
| 8629 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8630 | ; |
| 8631 | return 0; |
| 8632 | } |
| 8633 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8634 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8635 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8637 | $as_echo "yes" >&6; } |
| 8638 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8639 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8640 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8641 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8642 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8643 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8644 | LIBS=$_libs |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8645 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8646 | if test "x$ac_cv_func_pthread_detach" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8647 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8648 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8649 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8650 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8651 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8652 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8653 | ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8654 | if test "x$ac_cv_header_atheos_threads_h" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8655 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8656 | |
| 8657 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8658 | $as_echo "#define ATHEOS_THREADS 1" >>confdefs.h |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8659 | |
| 8660 | THREADOBJ="Python/thread.o" |
| 8661 | else |
| 8662 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8663 | ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8664 | if test "x$ac_cv_header_kernel_OS_h" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8665 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8666 | |
| 8667 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8668 | $as_echo "#define BEOS_THREADS 1" >>confdefs.h |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8669 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8670 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8671 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8672 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
| 8674 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8675 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8676 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8677 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8678 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8679 | LIBS="-lpthreads $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8681 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8682 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8683 | /* Override any GCC internal prototype to avoid an error. |
| 8684 | Use char because int might match the return type of a GCC |
| 8685 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8686 | #ifdef __cplusplus |
| 8687 | extern "C" |
| 8688 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8689 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8690 | int |
| 8691 | main () |
| 8692 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8693 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8694 | ; |
| 8695 | return 0; |
| 8696 | } |
| 8697 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8698 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8699 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8700 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8701 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8702 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8703 | rm -f core conftest.err conftest.$ac_objext \ |
| 8704 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8705 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8706 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 8708 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8709 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8710 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8711 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8712 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8713 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8714 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8715 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8716 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
| 8718 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8719 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8720 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8721 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8722 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8723 | LIBS="-lc_r $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8725 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8726 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8727 | /* Override any GCC internal prototype to avoid an error. |
| 8728 | Use char because int might match the return type of a GCC |
| 8729 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8730 | #ifdef __cplusplus |
| 8731 | extern "C" |
| 8732 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8733 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8734 | int |
| 8735 | main () |
| 8736 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8737 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8738 | ; |
| 8739 | return 0; |
| 8740 | } |
| 8741 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8742 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8743 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8744 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8745 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8746 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8747 | rm -f core conftest.err conftest.$ac_objext \ |
| 8748 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8749 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8750 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 8752 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8753 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8754 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8755 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8756 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8757 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8758 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8759 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8760 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
| 8762 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8763 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8764 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8765 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8766 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8767 | LIBS="-lpthread $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8769 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8770 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8771 | /* Override any GCC internal prototype to avoid an error. |
| 8772 | Use char because int might match the return type of a GCC |
| 8773 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8774 | #ifdef __cplusplus |
| 8775 | extern "C" |
| 8776 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8777 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8778 | int |
| 8779 | main () |
| 8780 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8781 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8782 | ; |
| 8783 | return 0; |
| 8784 | } |
| 8785 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8786 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8787 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8788 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8789 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8790 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8791 | rm -f core conftest.err conftest.$ac_objext \ |
| 8792 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8793 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8794 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 8796 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8797 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8798 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8799 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8800 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8801 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8802 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8803 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8804 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
| 8806 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8807 | if ${ac_cv_lib_cma_pthread_create+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8808 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8809 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8810 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8811 | LIBS="-lcma $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8813 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8814 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8815 | /* Override any GCC internal prototype to avoid an error. |
| 8816 | Use char because int might match the return type of a GCC |
| 8817 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8818 | #ifdef __cplusplus |
| 8819 | extern "C" |
| 8820 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8821 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8822 | int |
| 8823 | main () |
| 8824 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8825 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8826 | ; |
| 8827 | return 0; |
| 8828 | } |
| 8829 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8830 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8831 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8832 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8833 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8834 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8835 | rm -f core conftest.err conftest.$ac_objext \ |
| 8836 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8837 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8838 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 8840 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8841 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8842 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8843 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8844 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8845 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8846 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8847 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 8848 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8849 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 8850 | fi |
| 8851 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8852 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8853 | fi |
| 8854 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 8855 | fi |
| 8856 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8857 | fi |
| 8858 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8859 | fi |
| 8860 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8861 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8862 | fi |
| 8863 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8864 | |
| 8865 | fi |
| 8866 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8867 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8868 | rm -f core conftest.err conftest.$ac_objext \ |
| 8869 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8870 | fi |
| 8871 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8872 | fi |
| 8873 | |
| 8874 | |
| 8875 | fi |
| 8876 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8877 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8878 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
| 8880 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8881 | if ${ac_cv_lib_mpc_usconfig+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8882 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8883 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8884 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8885 | LIBS="-lmpc $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8887 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8888 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8889 | /* Override any GCC internal prototype to avoid an error. |
| 8890 | Use char because int might match the return type of a GCC |
| 8891 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8892 | #ifdef __cplusplus |
| 8893 | extern "C" |
| 8894 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8895 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8896 | int |
| 8897 | main () |
| 8898 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8899 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8900 | ; |
| 8901 | return 0; |
| 8902 | } |
| 8903 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8904 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8905 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8906 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8907 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8908 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8909 | rm -f core conftest.err conftest.$ac_objext \ |
| 8910 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8911 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8912 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 8914 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8915 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8916 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8917 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8918 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8919 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8920 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8921 | fi |
| 8922 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8923 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 8924 | if test "$posix_threads" != "yes"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 |
| 8926 | $as_echo_n "checking for thr_create in -lthread... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8927 | if ${ac_cv_lib_thread_thr_create+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8928 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8929 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8930 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8931 | LIBS="-lthread $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8933 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8934 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8935 | /* Override any GCC internal prototype to avoid an error. |
| 8936 | Use char because int might match the return type of a GCC |
| 8937 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8938 | #ifdef __cplusplus |
| 8939 | extern "C" |
| 8940 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8941 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8942 | int |
| 8943 | main () |
| 8944 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8945 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8946 | ; |
| 8947 | return 0; |
| 8948 | } |
| 8949 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8950 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8951 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8952 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8953 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8954 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8955 | rm -f core conftest.err conftest.$ac_objext \ |
| 8956 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8957 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8958 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 |
| 8960 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 8961 | if test "x$ac_cv_lib_thread_thr_create" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8962 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8963 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8964 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8965 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8966 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8967 | fi |
| 8968 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8969 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8970 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8971 | if test "$USE_THREAD_MODULE" != "#" |
| 8972 | then |
| 8973 | # If the above checks didn't disable threads, (at least) OSF1 |
| 8974 | # needs this '-threads' argument during linking. |
| 8975 | case $ac_sys_system in |
| 8976 | OSF1) LDLAST=-threads;; |
| 8977 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 8978 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8979 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8980 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8981 | if test "$posix_threads" = "yes"; then |
| 8982 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8983 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8984 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8985 | |
| 8986 | fi |
| 8987 | |
| 8988 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 8989 | case $ac_sys_system/$ac_sys_release in |
| 8990 | SunOS/5.6) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8991 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8992 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8993 | ;; |
| 8994 | SunOS/5.8) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8995 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8996 | |
| 8997 | ;; |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 8998 | AIX/5) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8999 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 9000 | |
| 9001 | ;; |
Antoine Pitrou | b41947b | 2010-08-30 14:55:30 +0000 | [diff] [blame] | 9002 | AIX/6) |
| 9003 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
| 9004 | |
| 9005 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9006 | esac |
| 9007 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 9009 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9010 | if ${ac_cv_pthread_system_supported+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9011 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9012 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9013 | if test "$cross_compiling" = yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9014 | ac_cv_pthread_system_supported=no |
| 9015 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9017 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9018 | #include <pthread.h> |
| 9019 | void *foo(void *parm) { |
| 9020 | return NULL; |
| 9021 | } |
| 9022 | main() { |
| 9023 | pthread_attr_t attr; |
| 9024 | pthread_t id; |
| 9025 | if (pthread_attr_init(&attr)) exit(-1); |
| 9026 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 9027 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 9028 | exit(0); |
| 9029 | } |
| 9030 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9031 | if ac_fn_c_try_run "$LINENO"; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9032 | ac_cv_pthread_system_supported=yes |
| 9033 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9034 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9035 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9036 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9037 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9038 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 9039 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9040 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9041 | fi |
| 9042 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
| 9044 | $as_echo "$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9045 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 9046 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9047 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9048 | |
| 9049 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9050 | for ac_func in pthread_sigmask |
| 9051 | do : |
| 9052 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9053 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9054 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9055 | #define HAVE_PTHREAD_SIGMASK 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9056 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9057 | case $ac_sys_system in |
| 9058 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9059 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9060 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 9061 | |
| 9062 | ;; |
| 9063 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9064 | fi |
| 9065 | done |
| 9066 | |
| 9067 | fi |
| 9068 | |
| 9069 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9070 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9071 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
| 9073 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9074 | # Check whether --enable-ipv6 was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9075 | if test "${enable_ipv6+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9076 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9077 | no) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9079 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9080 | ipv6=no |
| 9081 | ;; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9082 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9083 | $as_echo "yes" >&6; } |
| 9084 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9085 | |
| 9086 | ipv6=yes |
| 9087 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9088 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9089 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9090 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9091 | if test "$cross_compiling" = yes; then : |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9092 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9094 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9095 | ipv6=no |
| 9096 | |
| 9097 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9099 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9100 | /* AF_INET6 available check */ |
| 9101 | #include <sys/types.h> |
| 9102 | #include <sys/socket.h> |
| 9103 | main() |
| 9104 | { |
| 9105 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 9106 | exit(1); |
| 9107 | else |
| 9108 | exit(0); |
| 9109 | } |
| 9110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9111 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9112 | if ac_fn_c_try_run "$LINENO"; then : |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9113 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9115 | $as_echo "yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9116 | ipv6=yes |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9117 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9118 | else |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9119 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9121 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9122 | ipv6=no |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9123 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9124 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9125 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9126 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9127 | fi |
| 9128 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9129 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9130 | if test "$ipv6" = "yes"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
| 9132 | $as_echo_n "checking if RFC2553 API is available... " >&6; } |
| 9133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9134 | /* end confdefs.h. */ |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9135 | |
| 9136 | #include <sys/types.h> |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9137 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9138 | int |
| 9139 | main () |
| 9140 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9141 | struct sockaddr_in6 x; |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9142 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9143 | ; |
| 9144 | return 0; |
| 9145 | } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9147 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9148 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9149 | |
| 9150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9151 | $as_echo "yes" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9152 | ipv6=yes |
| 9153 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9154 | else |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9155 | |
| 9156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9157 | $as_echo "no" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9158 | ipv6=no |
| 9159 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9160 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9161 | 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] | 9162 | fi |
| 9163 | |
| 9164 | if test "$ipv6" = "yes"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9165 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9166 | |
| 9167 | fi |
| 9168 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9169 | fi |
| 9170 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9171 | |
| 9172 | ipv6type=unknown |
| 9173 | ipv6lib=none |
| 9174 | ipv6trylibc=no |
| 9175 | |
| 9176 | if test "$ipv6" = "yes"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
| 9178 | $as_echo_n "checking ipv6 stack type... " >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 9179 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 9180 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9181 | case $i in |
| 9182 | inria) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9184 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9185 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9186 | #include <netinet/in.h> |
| 9187 | #ifdef IPV6_INRIA_VERSION |
| 9188 | yes |
| 9189 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9190 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9191 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9192 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9193 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9194 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9195 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9196 | |
| 9197 | ;; |
| 9198 | kame) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9200 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9201 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9202 | #include <netinet/in.h> |
| 9203 | #ifdef __KAME__ |
| 9204 | yes |
| 9205 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9206 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9207 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9208 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9209 | ipv6type=$i; |
| 9210 | ipv6lib=inet6 |
| 9211 | ipv6libdir=/usr/local/v6/lib |
| 9212 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9213 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9214 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9215 | |
| 9216 | ;; |
| 9217 | linux-glibc) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9219 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9220 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9221 | #include <features.h> |
| 9222 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 9223 | yes |
| 9224 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9225 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9226 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9227 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9228 | ipv6type=$i; |
| 9229 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9230 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9231 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9232 | |
| 9233 | ;; |
| 9234 | linux-inet6) |
| 9235 | if test -d /usr/inet6; then |
| 9236 | ipv6type=$i |
| 9237 | ipv6lib=inet6 |
| 9238 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9239 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9240 | fi |
| 9241 | ;; |
| 9242 | solaris) |
| 9243 | if test -f /etc/netconfig; then |
Antoine Pitrou | 31e8595 | 2011-01-03 18:57:14 +0000 | [diff] [blame] | 9244 | if $GREP -q tcp6 /etc/netconfig; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9245 | ipv6type=$i |
| 9246 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9247 | fi |
| 9248 | fi |
| 9249 | ;; |
| 9250 | toshiba) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9252 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9253 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9254 | #include <sys/param.h> |
| 9255 | #ifdef _TOSHIBA_INET6 |
| 9256 | yes |
| 9257 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9258 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9259 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9260 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9261 | ipv6type=$i; |
| 9262 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9263 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9264 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9265 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9266 | |
| 9267 | ;; |
| 9268 | v6d) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9270 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9271 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9272 | #include </usr/local/v6/include/sys/v6config.h> |
| 9273 | #ifdef __V6D__ |
| 9274 | yes |
| 9275 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9276 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9277 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9278 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9279 | ipv6type=$i; |
| 9280 | ipv6lib=v6; |
| 9281 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9282 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9283 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9284 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9285 | |
| 9286 | ;; |
| 9287 | zeta) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9289 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9290 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9291 | #include <sys/param.h> |
| 9292 | #ifdef _ZETA_MINAMI_INET6 |
| 9293 | yes |
| 9294 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9295 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9296 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9297 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9298 | ipv6type=$i; |
| 9299 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9300 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9301 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9302 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9303 | |
| 9304 | ;; |
| 9305 | esac |
| 9306 | if test "$ipv6type" != "unknown"; then |
| 9307 | break |
| 9308 | fi |
| 9309 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
| 9311 | $as_echo "$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9312 | fi |
| 9313 | |
| 9314 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 9315 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 9316 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 9317 | echo "using lib$ipv6lib" |
| 9318 | else |
| 9319 | if test $ipv6trylibc = "yes"; then |
| 9320 | echo "using libc" |
| 9321 | else |
| 9322 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 9323 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 9324 | echo 'ipv6 kit and compile beforehand.' |
| 9325 | exit 1 |
| 9326 | fi |
| 9327 | fi |
| 9328 | fi |
| 9329 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 |
| 9331 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } |
| 9332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9333 | /* end confdefs.h. */ |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9334 | |
| 9335 | #include <Carbon/Carbon.h> |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9336 | int |
| 9337 | main () |
| 9338 | { |
| 9339 | FSIORefNum fRef = 0 |
| 9340 | ; |
| 9341 | return 0; |
| 9342 | } |
Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 9343 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9344 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9345 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9346 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9347 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9348 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9349 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9351 | $as_echo "yes" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9352 | |
Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 9353 | else |
| 9354 | |
| 9355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9356 | $as_echo "no" >&6; } |
| 9357 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9358 | fi |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9360 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9361 | # Check for --with-doc-strings |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
| 9363 | $as_echo_n "checking for --with-doc-strings... " >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9364 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9365 | # Check whether --with-doc-strings was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9366 | if test "${with_doc_strings+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9367 | withval=$with_doc_strings; |
| 9368 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9369 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9370 | |
| 9371 | if test -z "$with_doc_strings" |
| 9372 | then with_doc_strings="yes" |
| 9373 | fi |
| 9374 | if test "$with_doc_strings" != "no" |
| 9375 | then |
| 9376 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9377 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9378 | |
| 9379 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
| 9381 | $as_echo "$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9382 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9383 | # Check for Python-specific malloc support |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 |
| 9385 | $as_echo_n "checking for --with-tsc... " >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9386 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9387 | # Check whether --with-tsc was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9388 | if test "${with_tsc+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9389 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9390 | if test "$withval" != no |
| 9391 | then |
| 9392 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9393 | $as_echo "#define WITH_TSC 1" >>confdefs.h |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9394 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9396 | $as_echo "yes" >&6; } |
| 9397 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9398 | $as_echo "no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9399 | fi |
| 9400 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9402 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9403 | fi |
| 9404 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9405 | |
| 9406 | # Check for Python-specific malloc support |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
| 9408 | $as_echo_n "checking for --with-pymalloc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9409 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9410 | # Check whether --with-pymalloc was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9411 | if test "${with_pymalloc+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9412 | withval=$with_pymalloc; |
| 9413 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9414 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9415 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9416 | if test -z "$with_pymalloc" |
| 9417 | then with_pymalloc="yes" |
| 9418 | fi |
| 9419 | if test "$with_pymalloc" != "no" |
| 9420 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9421 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9422 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9423 | |
| 9424 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
| 9426 | $as_echo "$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9427 | |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9428 | # Check for Valgrind support |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 |
| 9430 | $as_echo_n "checking for --with-valgrind... " >&6; } |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9431 | |
| 9432 | # Check whether --with-valgrind was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9433 | if test "${with_valgrind+set}" = set; then : |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9434 | withval=$with_valgrind; |
| 9435 | else |
| 9436 | with_valgrind=no |
| 9437 | fi |
| 9438 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 |
| 9440 | $as_echo "$with_valgrind" >&6; } |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9441 | if test "$with_valgrind" != no; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9442 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9443 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9444 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9445 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9446 | |
| 9447 | else |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9448 | as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9449 | |
| 9450 | fi |
| 9451 | |
| 9452 | |
| 9453 | fi |
| 9454 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9455 | # Check for --with-wctype-functions |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5 |
| 9457 | $as_echo_n "checking for --with-wctype-functions... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9458 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9459 | # Check whether --with-wctype-functions was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9460 | if test "${with_wctype_functions+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9461 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9462 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9463 | then |
| 9464 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9465 | $as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9466 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9468 | $as_echo "yes" >&6; } |
| 9469 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9470 | $as_echo "no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9471 | fi |
| 9472 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9474 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9475 | fi |
| 9476 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9477 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9478 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9479 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 9480 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9481 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9482 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 9483 | # 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] | 9484 | for ac_func in dlopen |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9485 | do : |
| 9486 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9487 | if test "x$ac_cv_func_dlopen" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9488 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9489 | #define HAVE_DLOPEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9490 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9491 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9492 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 9493 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9494 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9495 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9496 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 9497 | # loading of modules. |
| 9498 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
| 9500 | $as_echo_n "checking DYNLOADFILE... " >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9501 | if test -z "$DYNLOADFILE" |
| 9502 | then |
| 9503 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 9504 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 9505 | if test "$ac_cv_func_dlopen" = yes |
| 9506 | then DYNLOADFILE="dynload_shlib.o" |
| 9507 | else DYNLOADFILE="dynload_aix.o" |
| 9508 | fi |
| 9509 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9510 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 9511 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 9512 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 9513 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9514 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9515 | *) |
| 9516 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 9517 | # out any dynamic loading |
| 9518 | if test "$ac_cv_func_dlopen" = yes |
| 9519 | then DYNLOADFILE="dynload_shlib.o" |
| 9520 | else DYNLOADFILE="dynload_stub.o" |
| 9521 | fi |
| 9522 | ;; |
| 9523 | esac |
| 9524 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
| 9526 | $as_echo "$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9527 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 9528 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9529 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9530 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9531 | |
| 9532 | fi |
| 9533 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9534 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 9535 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9536 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
| 9538 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9539 | if test -z "$MACHDEP_OBJS" |
| 9540 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9541 | MACHDEP_OBJS=$extra_machdep_objs |
| 9542 | else |
| 9543 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9544 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 |
| 9546 | $as_echo "MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9547 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9548 | # checks for library functions |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 9549 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 9550 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 9551 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 9552 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 9553 | initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 9554 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 9555 | putenv readlink realpath \ |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 9556 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 9557 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 9558 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 9559 | setlocale setregid setreuid setresuid setresgid \ |
| 9560 | setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 9561 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 9562 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 9563 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9564 | do : |
| 9565 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9566 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9567 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9568 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9569 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9570 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9571 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9572 | fi |
| 9573 | done |
| 9574 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9575 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9576 | # For some functions, having a definition is not sufficient, since |
| 9577 | # we want to take their address. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
| 9579 | $as_echo_n "checking for chroot... " >&6; } |
| 9580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9581 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9582 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9583 | int |
| 9584 | main () |
| 9585 | { |
| 9586 | void *x=chroot |
| 9587 | ; |
| 9588 | return 0; |
| 9589 | } |
| 9590 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9591 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9592 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9593 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9594 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9596 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9597 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9599 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9600 | |
| 9601 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 |
| 9604 | $as_echo_n "checking for link... " >&6; } |
| 9605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9606 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9607 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9608 | int |
| 9609 | main () |
| 9610 | { |
| 9611 | void *x=link |
| 9612 | ; |
| 9613 | return 0; |
| 9614 | } |
| 9615 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9616 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9617 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9618 | $as_echo "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9619 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9621 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9622 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9624 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9625 | |
| 9626 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 |
| 9629 | $as_echo_n "checking for symlink... " >&6; } |
| 9630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9631 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9632 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9633 | int |
| 9634 | main () |
| 9635 | { |
| 9636 | void *x=symlink |
| 9637 | ; |
| 9638 | return 0; |
| 9639 | } |
| 9640 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9641 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9642 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9643 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9644 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9646 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9647 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9649 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9650 | |
| 9651 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 |
| 9654 | $as_echo_n "checking for fchdir... " >&6; } |
| 9655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9656 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9657 | #include <unistd.h> |
| 9658 | int |
| 9659 | main () |
| 9660 | { |
| 9661 | void *x=fchdir |
| 9662 | ; |
| 9663 | return 0; |
| 9664 | } |
| 9665 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9666 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9667 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9668 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9669 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9671 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9672 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9674 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9675 | |
| 9676 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 |
| 9679 | $as_echo_n "checking for fsync... " >&6; } |
| 9680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9681 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9682 | #include <unistd.h> |
| 9683 | int |
| 9684 | main () |
| 9685 | { |
| 9686 | void *x=fsync |
| 9687 | ; |
| 9688 | return 0; |
| 9689 | } |
| 9690 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9691 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9692 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9693 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9694 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9696 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9697 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9699 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9700 | |
| 9701 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
| 9704 | $as_echo_n "checking for fdatasync... " >&6; } |
| 9705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9706 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9707 | #include <unistd.h> |
| 9708 | int |
| 9709 | main () |
| 9710 | { |
| 9711 | void *x=fdatasync |
| 9712 | ; |
| 9713 | return 0; |
| 9714 | } |
| 9715 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9716 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9717 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9718 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9719 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9721 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9722 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9724 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9725 | |
| 9726 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 |
| 9729 | $as_echo_n "checking for epoll... " >&6; } |
| 9730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9731 | /* end confdefs.h. */ |
| 9732 | #include <sys/epoll.h> |
| 9733 | int |
| 9734 | main () |
| 9735 | { |
| 9736 | void *x=epoll_create |
| 9737 | ; |
| 9738 | return 0; |
| 9739 | } |
| 9740 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9741 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9742 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9743 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9744 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9746 | $as_echo "yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9747 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9749 | $as_echo "no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9750 | |
| 9751 | fi |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 |
| 9754 | $as_echo_n "checking for kqueue... " >&6; } |
| 9755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9756 | /* end confdefs.h. */ |
| 9757 | |
| 9758 | #include <sys/types.h> |
| 9759 | #include <sys/event.h> |
| 9760 | |
| 9761 | int |
| 9762 | main () |
| 9763 | { |
| 9764 | int x=kqueue() |
| 9765 | ; |
| 9766 | return 0; |
| 9767 | } |
| 9768 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9769 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9770 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9771 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9772 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9774 | $as_echo "yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9775 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9777 | $as_echo "no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9778 | |
| 9779 | fi |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9780 | 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] | 9781 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 9782 | # functions ctermid_r, setgroups in the library, but no prototype |
| 9783 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 9784 | # address to avoid compiler warnings and potential miscompilations |
| 9785 | # because of the missing prototypes. |
| 9786 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
| 9788 | $as_echo_n "checking for ctermid_r... " >&6; } |
| 9789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9790 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9791 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9792 | #include <stdio.h> |
| 9793 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9794 | int |
| 9795 | main () |
| 9796 | { |
| 9797 | void* p = ctermid_r |
| 9798 | ; |
| 9799 | return 0; |
| 9800 | } |
| 9801 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9802 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9803 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9804 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9805 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9807 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9808 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9810 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9811 | |
| 9812 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9814 | |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 |
| 9816 | $as_echo_n "checking for flock declaration... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9817 | if ${ac_cv_flock_decl+:} false; then : |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9818 | $as_echo_n "(cached) " >&6 |
| 9819 | else |
| 9820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9821 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9822 | #include <sys/file.h> |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9823 | int |
| 9824 | main () |
| 9825 | { |
| 9826 | void* p = flock |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9827 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9828 | ; |
| 9829 | return 0; |
| 9830 | } |
| 9831 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9832 | if ac_fn_c_try_compile "$LINENO"; then : |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9833 | ac_cv_flock_decl=yes |
| 9834 | else |
| 9835 | ac_cv_flock_decl=no |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9836 | |
| 9837 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 9839 | |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9840 | fi |
| 9841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 |
| 9842 | $as_echo "$ac_cv_flock_decl" >&6; } |
| 9843 | if test "x${ac_cv_flock_decl}" = xyes; then |
| 9844 | for ac_func in flock |
| 9845 | do : |
| 9846 | ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9847 | if test "x$ac_cv_func_flock" = xyes; then : |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9848 | cat >>confdefs.h <<_ACEOF |
| 9849 | #define HAVE_FLOCK 1 |
Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 9850 | _ACEOF |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9851 | |
Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 9852 | else |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9853 | { $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] | 9854 | $as_echo_n "checking for flock in -lbsd... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9855 | if ${ac_cv_lib_bsd_flock+:} false; then : |
Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 9856 | $as_echo_n "(cached) " >&6 |
| 9857 | else |
| 9858 | ac_check_lib_save_LIBS=$LIBS |
| 9859 | LIBS="-lbsd $LIBS" |
| 9860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9861 | /* end confdefs.h. */ |
| 9862 | |
| 9863 | /* Override any GCC internal prototype to avoid an error. |
| 9864 | Use char because int might match the return type of a GCC |
| 9865 | builtin and then its argument prototype would still apply. */ |
| 9866 | #ifdef __cplusplus |
| 9867 | extern "C" |
| 9868 | #endif |
| 9869 | char flock (); |
| 9870 | int |
| 9871 | main () |
| 9872 | { |
| 9873 | return flock (); |
| 9874 | ; |
| 9875 | return 0; |
| 9876 | } |
| 9877 | _ACEOF |
| 9878 | if ac_fn_c_try_link "$LINENO"; then : |
| 9879 | ac_cv_lib_bsd_flock=yes |
| 9880 | else |
| 9881 | ac_cv_lib_bsd_flock=no |
| 9882 | fi |
| 9883 | rm -f core conftest.err conftest.$ac_objext \ |
| 9884 | conftest$ac_exeext conftest.$ac_ext |
| 9885 | LIBS=$ac_check_lib_save_LIBS |
| 9886 | fi |
| 9887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 |
| 9888 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9889 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9890 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h |
Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 9891 | |
| 9892 | |
| 9893 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h |
| 9894 | |
| 9895 | |
| 9896 | fi |
| 9897 | |
| 9898 | |
| 9899 | fi |
Antoine Pitrou | b170f17 | 2010-09-10 18:47:36 +0000 | [diff] [blame] | 9900 | done |
| 9901 | |
Antoine Pitrou | 8572981 | 2010-09-07 14:55:24 +0000 | [diff] [blame] | 9902 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9903 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
| 9905 | $as_echo_n "checking for getpagesize... " >&6; } |
| 9906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9907 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9908 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9909 | #include <unistd.h> |
| 9910 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9911 | int |
| 9912 | main () |
| 9913 | { |
| 9914 | void* p = getpagesize |
| 9915 | ; |
| 9916 | return 0; |
| 9917 | } |
| 9918 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9919 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9920 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9921 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9922 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9924 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9925 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9927 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9928 | |
| 9929 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9930 | 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] | 9931 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9932 | for ac_prog in true |
| 9933 | do |
| 9934 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9935 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9937 | $as_echo_n "checking for $ac_word... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9938 | if ${ac_cv_prog_TRUE+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9939 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9940 | else |
| 9941 | if test -n "$TRUE"; then |
| 9942 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 9943 | else |
| 9944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9945 | for as_dir in $PATH |
| 9946 | do |
| 9947 | IFS=$as_save_IFS |
| 9948 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9949 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9950 | 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] | 9951 | ac_cv_prog_TRUE="$ac_prog" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9952 | $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] | 9953 | break 2 |
| 9954 | fi |
| 9955 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9956 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9957 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9958 | |
| 9959 | fi |
| 9960 | fi |
| 9961 | TRUE=$ac_cv_prog_TRUE |
| 9962 | if test -n "$TRUE"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
| 9964 | $as_echo "$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9965 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9967 | $as_echo "no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9968 | fi |
| 9969 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9970 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9971 | test -n "$TRUE" && break |
| 9972 | done |
| 9973 | test -n "$TRUE" || TRUE="/bin/true" |
| 9974 | |
| 9975 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
| 9977 | $as_echo_n "checking for inet_aton in -lc... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 9978 | if ${ac_cv_lib_c_inet_aton+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9979 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9980 | else |
| 9981 | ac_check_lib_save_LIBS=$LIBS |
| 9982 | LIBS="-lc $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9984 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9985 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9986 | /* Override any GCC internal prototype to avoid an error. |
| 9987 | Use char because int might match the return type of a GCC |
| 9988 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9989 | #ifdef __cplusplus |
| 9990 | extern "C" |
| 9991 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9992 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9993 | int |
| 9994 | main () |
| 9995 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9996 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9997 | ; |
| 9998 | return 0; |
| 9999 | } |
| 10000 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10001 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10002 | ac_cv_lib_c_inet_aton=yes |
| 10003 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10004 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10005 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10006 | rm -f core conftest.err conftest.$ac_objext \ |
| 10007 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10008 | LIBS=$ac_check_lib_save_LIBS |
| 10009 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
| 10011 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10012 | if test "x$ac_cv_lib_c_inet_aton" = xyes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10013 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10014 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
| 10016 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10017 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10018 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10019 | else |
| 10020 | ac_check_lib_save_LIBS=$LIBS |
| 10021 | LIBS="-lresolv $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10023 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10024 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10025 | /* Override any GCC internal prototype to avoid an error. |
| 10026 | Use char because int might match the return type of a GCC |
| 10027 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10028 | #ifdef __cplusplus |
| 10029 | extern "C" |
| 10030 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10031 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10032 | int |
| 10033 | main () |
| 10034 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10035 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10036 | ; |
| 10037 | return 0; |
| 10038 | } |
| 10039 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10040 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10041 | ac_cv_lib_resolv_inet_aton=yes |
| 10042 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10043 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10044 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10045 | rm -f core conftest.err conftest.$ac_objext \ |
| 10046 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10047 | LIBS=$ac_check_lib_save_LIBS |
| 10048 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 10050 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10051 | if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10052 | cat >>confdefs.h <<_ACEOF |
| 10053 | #define HAVE_LIBRESOLV 1 |
| 10054 | _ACEOF |
| 10055 | |
| 10056 | LIBS="-lresolv $LIBS" |
| 10057 | |
| 10058 | fi |
| 10059 | |
| 10060 | |
| 10061 | fi |
| 10062 | |
| 10063 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10064 | # On Tru64, chflags seems to be present, but calling it will |
| 10065 | # exit Python |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
| 10067 | $as_echo_n "checking for chflags... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10068 | if ${ac_cv_have_chflags+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10069 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10070 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10071 | if test "$cross_compiling" = yes; then : |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10072 | ac_cv_have_chflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10073 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10075 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10076 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10077 | #include <sys/stat.h> |
| 10078 | #include <unistd.h> |
| 10079 | int main(int argc, char*argv[]) |
| 10080 | { |
| 10081 | if(chflags(argv[0], 0) != 0) |
| 10082 | return 1; |
| 10083 | return 0; |
| 10084 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10085 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10086 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10087 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10088 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10089 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10090 | ac_cv_have_chflags=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10091 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10092 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10093 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 10094 | fi |
| 10095 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10096 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10097 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
| 10099 | $as_echo "$ac_cv_have_chflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10100 | if test "$ac_cv_have_chflags" = cross ; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10101 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10102 | if test "x$ac_cv_func_chflags" = xyes; then : |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10103 | ac_cv_have_chflags="yes" |
| 10104 | else |
| 10105 | ac_cv_have_chflags="no" |
| 10106 | fi |
| 10107 | |
| 10108 | fi |
| 10109 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10110 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10111 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10112 | |
| 10113 | fi |
| 10114 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
| 10116 | $as_echo_n "checking for lchflags... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10117 | if ${ac_cv_have_lchflags+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10118 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10119 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10120 | if test "$cross_compiling" = yes; then : |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10121 | ac_cv_have_lchflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10122 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10124 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10125 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10126 | #include <sys/stat.h> |
| 10127 | #include <unistd.h> |
| 10128 | int main(int argc, char*argv[]) |
| 10129 | { |
| 10130 | if(lchflags(argv[0], 0) != 0) |
| 10131 | return 1; |
| 10132 | return 0; |
| 10133 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10134 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10135 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10136 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10137 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10138 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10139 | ac_cv_have_lchflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10140 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10141 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10142 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10143 | fi |
| 10144 | |
| 10145 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10146 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 |
| 10148 | $as_echo "$ac_cv_have_lchflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10149 | if test "$ac_cv_have_lchflags" = cross ; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10150 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10151 | if test "x$ac_cv_func_lchflags" = xyes; then : |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10152 | ac_cv_have_lchflags="yes" |
| 10153 | else |
| 10154 | ac_cv_have_lchflags="no" |
| 10155 | fi |
| 10156 | |
| 10157 | fi |
| 10158 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10159 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10160 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10161 | |
| 10162 | fi |
| 10163 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 10164 | case $ac_sys_system/$ac_sys_release in |
| 10165 | Darwin/*) |
| 10166 | _CUR_CFLAGS="${CFLAGS}" |
| 10167 | _CUR_LDFLAGS="${LDFLAGS}" |
| 10168 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 10169 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 10170 | ;; |
| 10171 | esac |
| 10172 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
| 10174 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10175 | if ${ac_cv_lib_z_inflateCopy+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10176 | $as_echo_n "(cached) " >&6 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10177 | else |
| 10178 | ac_check_lib_save_LIBS=$LIBS |
| 10179 | LIBS="-lz $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10181 | /* end confdefs.h. */ |
| 10182 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10183 | /* Override any GCC internal prototype to avoid an error. |
| 10184 | Use char because int might match the return type of a GCC |
| 10185 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10186 | #ifdef __cplusplus |
| 10187 | extern "C" |
| 10188 | #endif |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10189 | char inflateCopy (); |
| 10190 | int |
| 10191 | main () |
| 10192 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10193 | return inflateCopy (); |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10194 | ; |
| 10195 | return 0; |
| 10196 | } |
| 10197 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10198 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10199 | ac_cv_lib_z_inflateCopy=yes |
| 10200 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10201 | ac_cv_lib_z_inflateCopy=no |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10202 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10203 | rm -f core conftest.err conftest.$ac_objext \ |
| 10204 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10205 | LIBS=$ac_check_lib_save_LIBS |
| 10206 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 10208 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10209 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10210 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10211 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10212 | |
| 10213 | fi |
| 10214 | |
| 10215 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 10216 | case $ac_sys_system/$ac_sys_release in |
| 10217 | Darwin/*) |
| 10218 | CFLAGS="${_CUR_CFLAGS}" |
| 10219 | LDFLAGS="${_CUR_LDFLAGS}" |
| 10220 | ;; |
| 10221 | esac |
| 10222 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
| 10224 | $as_echo_n "checking for hstrerror... " >&6; } |
| 10225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10226 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10227 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10228 | #include <netdb.h> |
| 10229 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10230 | int |
| 10231 | main () |
| 10232 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10233 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10234 | ; |
| 10235 | return 0; |
| 10236 | } |
| 10237 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10238 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10239 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10240 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10241 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10243 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10244 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10246 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10247 | |
| 10248 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10249 | rm -f core conftest.err conftest.$ac_objext \ |
| 10250 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10251 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
| 10253 | $as_echo_n "checking for inet_aton... " >&6; } |
| 10254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10255 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10256 | |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10257 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10258 | #include <sys/socket.h> |
| 10259 | #include <netinet/in.h> |
| 10260 | #include <arpa/inet.h> |
| 10261 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10262 | int |
| 10263 | main () |
| 10264 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10265 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10266 | ; |
| 10267 | return 0; |
| 10268 | } |
| 10269 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10270 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10271 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10272 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10273 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10275 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10276 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10278 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10279 | |
| 10280 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10281 | rm -f core conftest.err conftest.$ac_objext \ |
| 10282 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10283 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
| 10285 | $as_echo_n "checking for inet_pton... " >&6; } |
| 10286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10287 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10288 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10289 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10290 | #include <sys/socket.h> |
| 10291 | #include <netinet/in.h> |
| 10292 | #include <arpa/inet.h> |
| 10293 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10294 | int |
| 10295 | main () |
| 10296 | { |
| 10297 | void* p = inet_pton |
| 10298 | ; |
| 10299 | return 0; |
| 10300 | } |
| 10301 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10302 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10303 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10304 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10305 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10307 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10308 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10310 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10311 | |
| 10312 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10314 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10315 | # 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] | 10316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
| 10317 | $as_echo_n "checking for setgroups... " >&6; } |
| 10318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10319 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10320 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10321 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10322 | #ifdef HAVE_GRP_H |
| 10323 | #include <grp.h> |
| 10324 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10325 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10326 | int |
| 10327 | main () |
| 10328 | { |
| 10329 | void* p = setgroups |
| 10330 | ; |
| 10331 | return 0; |
| 10332 | } |
| 10333 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10334 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10335 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10336 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10337 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10339 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10340 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10342 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10343 | |
| 10344 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10345 | 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] | 10346 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10347 | # check for openpty and forkpty |
| 10348 | |
| 10349 | for ac_func in openpty |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10350 | do : |
| 10351 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10352 | if test "x$ac_cv_func_openpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10353 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10354 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10355 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10356 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10357 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
| 10359 | $as_echo_n "checking for openpty in -lutil... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10360 | if ${ac_cv_lib_util_openpty+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10361 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10362 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10363 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10364 | LIBS="-lutil $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10366 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10367 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10368 | /* Override any GCC internal prototype to avoid an error. |
| 10369 | Use char because int might match the return type of a GCC |
| 10370 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10371 | #ifdef __cplusplus |
| 10372 | extern "C" |
| 10373 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10374 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10375 | int |
| 10376 | main () |
| 10377 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10378 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10379 | ; |
| 10380 | return 0; |
| 10381 | } |
| 10382 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10383 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10384 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10385 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10386 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10387 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10388 | rm -f core conftest.err conftest.$ac_objext \ |
| 10389 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10390 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10391 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
| 10393 | $as_echo "$ac_cv_lib_util_openpty" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10394 | if test "x$ac_cv_lib_util_openpty" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10395 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10396 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10397 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 |
| 10399 | $as_echo_n "checking for openpty in -lbsd... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10400 | if ${ac_cv_lib_bsd_openpty+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10401 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10402 | else |
| 10403 | ac_check_lib_save_LIBS=$LIBS |
| 10404 | LIBS="-lbsd $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10406 | /* end confdefs.h. */ |
| 10407 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10408 | /* Override any GCC internal prototype to avoid an error. |
| 10409 | Use char because int might match the return type of a GCC |
| 10410 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10411 | #ifdef __cplusplus |
| 10412 | extern "C" |
| 10413 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10414 | char openpty (); |
| 10415 | int |
| 10416 | main () |
| 10417 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10418 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10419 | ; |
| 10420 | return 0; |
| 10421 | } |
| 10422 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10423 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10424 | ac_cv_lib_bsd_openpty=yes |
| 10425 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10426 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10427 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10428 | rm -f core conftest.err conftest.$ac_objext \ |
| 10429 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10430 | LIBS=$ac_check_lib_save_LIBS |
| 10431 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
| 10433 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10434 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10435 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10436 | LIBS="$LIBS -lbsd" |
| 10437 | fi |
| 10438 | |
| 10439 | |
| 10440 | fi |
| 10441 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10442 | |
| 10443 | fi |
| 10444 | done |
| 10445 | |
| 10446 | for ac_func in forkpty |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10447 | do : |
| 10448 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10449 | if test "x$ac_cv_func_forkpty" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10450 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10451 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10452 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10453 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10454 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 |
| 10456 | $as_echo_n "checking for forkpty in -lutil... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10457 | if ${ac_cv_lib_util_forkpty+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10458 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10459 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10460 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10461 | LIBS="-lutil $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10463 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10464 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10465 | /* Override any GCC internal prototype to avoid an error. |
| 10466 | Use char because int might match the return type of a GCC |
| 10467 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10468 | #ifdef __cplusplus |
| 10469 | extern "C" |
| 10470 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10471 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10472 | int |
| 10473 | main () |
| 10474 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10475 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10476 | ; |
| 10477 | return 0; |
| 10478 | } |
| 10479 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10480 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10481 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10482 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10483 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10484 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10485 | rm -f core conftest.err conftest.$ac_objext \ |
| 10486 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10487 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10488 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
| 10490 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10491 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10492 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10493 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10494 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 |
| 10496 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10497 | if ${ac_cv_lib_bsd_forkpty+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10498 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10499 | else |
| 10500 | ac_check_lib_save_LIBS=$LIBS |
| 10501 | LIBS="-lbsd $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10503 | /* end confdefs.h. */ |
| 10504 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10505 | /* Override any GCC internal prototype to avoid an error. |
| 10506 | Use char because int might match the return type of a GCC |
| 10507 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10508 | #ifdef __cplusplus |
| 10509 | extern "C" |
| 10510 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10511 | char forkpty (); |
| 10512 | int |
| 10513 | main () |
| 10514 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10515 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10516 | ; |
| 10517 | return 0; |
| 10518 | } |
| 10519 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10520 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10521 | ac_cv_lib_bsd_forkpty=yes |
| 10522 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10523 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10524 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10525 | rm -f core conftest.err conftest.$ac_objext \ |
| 10526 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10527 | LIBS=$ac_check_lib_save_LIBS |
| 10528 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 10530 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10531 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10532 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10533 | LIBS="$LIBS -lbsd" |
| 10534 | fi |
| 10535 | |
| 10536 | |
| 10537 | fi |
| 10538 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10539 | |
| 10540 | fi |
| 10541 | done |
| 10542 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10543 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10544 | # Stuff for expat. |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10545 | for ac_func in memmove |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10546 | do : |
| 10547 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10548 | if test "x$ac_cv_func_memmove" = xyes; then : |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10549 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10550 | #define HAVE_MEMMOVE 1 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10551 | _ACEOF |
| 10552 | |
| 10553 | fi |
| 10554 | done |
| 10555 | |
| 10556 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10557 | # check for long file support functions |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10558 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10559 | do : |
| 10560 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10561 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10562 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10563 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10564 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10565 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10566 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10567 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10568 | done |
| 10569 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10570 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10571 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
| 10572 | if test "x$ac_cv_func_dup2" = xyes; then : |
| 10573 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10574 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10575 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10576 | case " $LIBOBJS " in |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10577 | *" dup2.$ac_objext "* ) ;; |
| 10578 | *) LIBOBJS="$LIBOBJS dup2.$ac_objext" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10579 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10580 | esac |
| 10581 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10582 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10583 | |
| 10584 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" |
| 10585 | if test "x$ac_cv_func_getcwd" = xyes; then : |
| 10586 | $as_echo "#define HAVE_GETCWD 1" >>confdefs.h |
| 10587 | |
| 10588 | else |
| 10589 | case " $LIBOBJS " in |
| 10590 | *" getcwd.$ac_objext "* ) ;; |
| 10591 | *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" |
| 10592 | ;; |
| 10593 | esac |
| 10594 | |
| 10595 | fi |
| 10596 | |
| 10597 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" |
| 10598 | if test "x$ac_cv_func_strdup" = xyes; then : |
| 10599 | $as_echo "#define HAVE_STRDUP 1" >>confdefs.h |
| 10600 | |
| 10601 | else |
| 10602 | case " $LIBOBJS " in |
| 10603 | *" strdup.$ac_objext "* ) ;; |
| 10604 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" |
| 10605 | ;; |
| 10606 | esac |
| 10607 | |
| 10608 | fi |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10609 | |
| 10610 | |
| 10611 | for ac_func in getpgrp |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10612 | do : |
| 10613 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10614 | if test "x$ac_cv_func_getpgrp" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10615 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10616 | #define HAVE_GETPGRP 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10617 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10619 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10620 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10621 | int |
| 10622 | main () |
| 10623 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10624 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10625 | ; |
| 10626 | return 0; |
| 10627 | } |
| 10628 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10629 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10630 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10631 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10632 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10633 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10634 | 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] | 10635 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10636 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10637 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10638 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10639 | for ac_func in setpgrp |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10640 | do : |
| 10641 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10642 | if test "x$ac_cv_func_setpgrp" = xyes; then : |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10643 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10644 | #define HAVE_SETPGRP 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10645 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10647 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10648 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10649 | int |
| 10650 | main () |
| 10651 | { |
| 10652 | setpgrp(0,0); |
| 10653 | ; |
| 10654 | return 0; |
| 10655 | } |
| 10656 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10657 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10658 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10659 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10660 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10661 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10663 | |
| 10664 | fi |
| 10665 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10666 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10667 | for ac_func in gettimeofday |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10668 | do : |
| 10669 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10670 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10671 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10672 | #define HAVE_GETTIMEOFDAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10673 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10675 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10676 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10677 | int |
| 10678 | main () |
| 10679 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10680 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10681 | ; |
| 10682 | return 0; |
| 10683 | } |
| 10684 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10685 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10686 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10687 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10688 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10689 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10691 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10692 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10693 | 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] | 10694 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10695 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10696 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10697 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10698 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 |
| 10700 | $as_echo_n "checking for major... " >&6; } |
| 10701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10702 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10703 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10704 | #if defined(MAJOR_IN_MKDEV) |
| 10705 | #include <sys/mkdev.h> |
| 10706 | #elif defined(MAJOR_IN_SYSMACROS) |
| 10707 | #include <sys/sysmacros.h> |
| 10708 | #else |
| 10709 | #include <sys/types.h> |
| 10710 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10711 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10712 | int |
| 10713 | main () |
| 10714 | { |
| 10715 | |
| 10716 | makedev(major(0),minor(0)); |
| 10717 | |
| 10718 | ; |
| 10719 | return 0; |
| 10720 | } |
| 10721 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10722 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10723 | |
| 10724 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10725 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10726 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10728 | $as_echo "yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10729 | |
| 10730 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10731 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10733 | $as_echo "no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10734 | |
| 10735 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10736 | rm -f core conftest.err conftest.$ac_objext \ |
| 10737 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10738 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10739 | # 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] | 10740 | # for [no]getaddrinfo in netdb.h. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
| 10742 | $as_echo_n "checking for getaddrinfo... " >&6; } |
| 10743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10744 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10745 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10746 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10747 | #include <sys/socket.h> |
| 10748 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10749 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10750 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10751 | int |
| 10752 | main () |
| 10753 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10754 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10755 | ; |
| 10756 | return 0; |
| 10757 | } |
| 10758 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10759 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10760 | have_getaddrinfo=yes |
| 10761 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10762 | have_getaddrinfo=no |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10763 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10764 | rm -f core conftest.err conftest.$ac_objext \ |
| 10765 | conftest$ac_exeext conftest.$ac_ext |
| 10766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 |
| 10767 | $as_echo "$have_getaddrinfo" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10768 | if test $have_getaddrinfo = yes |
| 10769 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
| 10771 | $as_echo_n "checking getaddrinfo bug... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10772 | if ${ac_cv_buggy_getaddrinfo+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10773 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10774 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10775 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10776 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10777 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10779 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10780 | |
| 10781 | #include <sys/types.h> |
| 10782 | #include <netdb.h> |
| 10783 | #include <string.h> |
| 10784 | #include <sys/socket.h> |
| 10785 | #include <netinet/in.h> |
| 10786 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10787 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10788 | { |
| 10789 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 10790 | struct addrinfo hints, *ai, *aitop; |
| 10791 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 10792 | |
| 10793 | for (passive = 0; passive <= 1; passive++) { |
| 10794 | memset(&hints, 0, sizeof(hints)); |
| 10795 | hints.ai_family = AF_UNSPEC; |
| 10796 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 10797 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 10798 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10799 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 10800 | (void)gai_strerror(gaierr); |
| 10801 | goto bad; |
| 10802 | } |
| 10803 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 10804 | if (ai->ai_addr == NULL || |
| 10805 | ai->ai_addrlen == 0 || |
| 10806 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 10807 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 10808 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 10809 | goto bad; |
| 10810 | } |
| 10811 | switch (ai->ai_family) { |
| 10812 | case AF_INET: |
| 10813 | if (strcmp(strport, "54321") != 0) { |
| 10814 | goto bad; |
| 10815 | } |
| 10816 | if (passive) { |
| 10817 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 10818 | goto bad; |
| 10819 | } |
| 10820 | } else { |
| 10821 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 10822 | goto bad; |
| 10823 | } |
| 10824 | } |
| 10825 | inet4++; |
| 10826 | break; |
| 10827 | case AF_INET6: |
| 10828 | if (strcmp(strport, "54321") != 0) { |
| 10829 | goto bad; |
| 10830 | } |
| 10831 | if (passive) { |
| 10832 | if (strcmp(straddr, "::") != 0) { |
| 10833 | goto bad; |
| 10834 | } |
| 10835 | } else { |
| 10836 | if (strcmp(straddr, "::1") != 0) { |
| 10837 | goto bad; |
| 10838 | } |
| 10839 | } |
| 10840 | inet6++; |
| 10841 | break; |
| 10842 | case AF_UNSPEC: |
| 10843 | goto bad; |
| 10844 | break; |
| 10845 | default: |
| 10846 | /* another family support? */ |
| 10847 | break; |
| 10848 | } |
| 10849 | } |
| 10850 | } |
| 10851 | |
| 10852 | if (!(inet4 == 0 || inet4 == 2)) |
| 10853 | goto bad; |
| 10854 | if (!(inet6 == 0 || inet6 == 2)) |
| 10855 | goto bad; |
| 10856 | |
| 10857 | if (aitop) |
| 10858 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10859 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10860 | |
| 10861 | bad: |
| 10862 | if (aitop) |
| 10863 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10864 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10865 | } |
| 10866 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10867 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10868 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10869 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10870 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10871 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10872 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10873 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10874 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10875 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10876 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10877 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10878 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10879 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10880 | |
Benjamin Peterson | 75fed81 | 2010-11-01 01:47:19 +0000 | [diff] [blame] | 10881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 |
| 10882 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } |
| 10883 | |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 10884 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10885 | then |
| 10886 | if test $ipv6 = yes |
| 10887 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10888 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 10889 | echo ' or you can specify "--disable-ipv6"'. |
| 10890 | exit 1 |
| 10891 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10892 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10893 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10894 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10895 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10896 | fi |
Benjamin Peterson | 75fed81 | 2010-11-01 01:47:19 +0000 | [diff] [blame] | 10897 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10898 | for ac_func in getnameinfo |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10899 | do : |
| 10900 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10901 | if test "x$ac_cv_func_getnameinfo" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10902 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10903 | #define HAVE_GETNAMEINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10904 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10905 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10906 | fi |
| 10907 | done |
| 10908 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10909 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10910 | # checks for structures |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 10912 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10913 | if ${ac_cv_header_time+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10914 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10915 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10917 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10918 | #include <sys/types.h> |
| 10919 | #include <sys/time.h> |
| 10920 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10921 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10922 | int |
| 10923 | main () |
| 10924 | { |
| 10925 | if ((struct tm *) 0) |
| 10926 | return 0; |
| 10927 | ; |
| 10928 | return 0; |
| 10929 | } |
| 10930 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10931 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10932 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10933 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10934 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10935 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10937 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 10939 | $as_echo "$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10940 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10941 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10942 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10943 | |
| 10944 | fi |
| 10945 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 10947 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10948 | if ${ac_cv_struct_tm+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10949 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10950 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10952 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10953 | #include <sys/types.h> |
| 10954 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10956 | int |
| 10957 | main () |
| 10958 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10959 | struct tm tm; |
| 10960 | int *p = &tm.tm_sec; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10961 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10962 | ; |
| 10963 | return 0; |
| 10964 | } |
| 10965 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10966 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10967 | ac_cv_struct_tm=time.h |
| 10968 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10969 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10970 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10972 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| 10974 | $as_echo "$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10975 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10976 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10977 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10978 | |
| 10979 | fi |
| 10980 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10981 | 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] | 10982 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10983 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10984 | " |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 10985 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10986 | |
| 10987 | cat >>confdefs.h <<_ACEOF |
| 10988 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 10989 | _ACEOF |
| 10990 | |
| 10991 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10992 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10994 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 10995 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10996 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10997 | |
| 10998 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10999 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 11000 | " |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11001 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11002 | ac_have_decl=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11003 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11004 | ac_have_decl=0 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11005 | fi |
| 11006 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11007 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11008 | #define HAVE_DECL_TZNAME $ac_have_decl |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11009 | _ACEOF |
| 11010 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 11012 | $as_echo_n "checking for tzname... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11013 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11014 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11015 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11017 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11018 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11019 | #if !HAVE_DECL_TZNAME |
| 11020 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11021 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11022 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11023 | int |
| 11024 | main () |
| 11025 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11026 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11027 | ; |
| 11028 | return 0; |
| 11029 | } |
| 11030 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11031 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11032 | ac_cv_var_tzname=yes |
| 11033 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11034 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11035 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11036 | rm -f core conftest.err conftest.$ac_objext \ |
| 11037 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11038 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 11040 | $as_echo "$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11041 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11042 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11043 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11044 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11045 | fi |
| 11046 | fi |
| 11047 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11048 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11049 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11050 | |
| 11051 | cat >>confdefs.h <<_ACEOF |
| 11052 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 11053 | _ACEOF |
| 11054 | |
| 11055 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11056 | fi |
| 11057 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11058 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11059 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11061 | cat >>confdefs.h <<_ACEOF |
| 11062 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 11063 | _ACEOF |
| 11064 | |
| 11065 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11066 | fi |
| 11067 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11068 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11069 | if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 11070 | |
| 11071 | cat >>confdefs.h <<_ACEOF |
| 11072 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 11073 | _ACEOF |
| 11074 | |
| 11075 | |
| 11076 | fi |
| 11077 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11078 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11079 | if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 11080 | |
| 11081 | cat >>confdefs.h <<_ACEOF |
| 11082 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 11083 | _ACEOF |
| 11084 | |
| 11085 | |
| 11086 | fi |
| 11087 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11088 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11089 | if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 11090 | |
| 11091 | cat >>confdefs.h <<_ACEOF |
| 11092 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 11093 | _ACEOF |
| 11094 | |
| 11095 | |
| 11096 | fi |
| 11097 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11098 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11099 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11101 | cat >>confdefs.h <<_ACEOF |
| 11102 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 11103 | _ACEOF |
| 11104 | |
| 11105 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11106 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11107 | |
| 11108 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11109 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11110 | *" fileblocks.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11111 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 11112 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11113 | esac |
| 11114 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 11115 | fi |
| 11116 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11117 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11118 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
| 11120 | $as_echo_n "checking for time.h that defines altzone... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11121 | if ${ac_cv_header_time_altzone+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11122 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11123 | else |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11124 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11126 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11127 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11128 | int |
| 11129 | main () |
| 11130 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11131 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11132 | ; |
| 11133 | return 0; |
| 11134 | } |
| 11135 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11136 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11137 | ac_cv_header_time_altzone=yes |
| 11138 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11139 | ac_cv_header_time_altzone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11140 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11142 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11143 | fi |
| 11144 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
| 11146 | $as_echo "$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11147 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11148 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11149 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11150 | |
| 11151 | fi |
| 11152 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11153 | was_it_defined=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 11155 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } |
| 11156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11157 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11158 | |
| 11159 | #include <sys/types.h> |
| 11160 | #include <sys/select.h> |
| 11161 | #include <sys/time.h> |
| 11162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11163 | int |
| 11164 | main () |
| 11165 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11166 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11167 | ; |
| 11168 | return 0; |
| 11169 | } |
| 11170 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11171 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11172 | |
| 11173 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11174 | $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] | 11175 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11176 | was_it_defined=yes |
| 11177 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11178 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 11181 | $as_echo "$was_it_defined" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11182 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
| 11184 | $as_echo_n "checking for addrinfo... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11185 | if ${ac_cv_struct_addrinfo+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11186 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11187 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11189 | /* end confdefs.h. */ |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11190 | #include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11191 | int |
| 11192 | main () |
| 11193 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11194 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11195 | ; |
| 11196 | return 0; |
| 11197 | } |
| 11198 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11199 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11200 | ac_cv_struct_addrinfo=yes |
| 11201 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11202 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11203 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11205 | fi |
| 11206 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
| 11208 | $as_echo "$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11209 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11210 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11211 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11212 | |
| 11213 | fi |
| 11214 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
| 11216 | $as_echo_n "checking for sockaddr_storage... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11217 | if ${ac_cv_struct_sockaddr_storage+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11218 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11219 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11221 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11222 | |
| 11223 | # include <sys/types.h> |
| 11224 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11225 | int |
| 11226 | main () |
| 11227 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11228 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11229 | ; |
| 11230 | return 0; |
| 11231 | } |
| 11232 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11233 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11234 | ac_cv_struct_sockaddr_storage=yes |
| 11235 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11236 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11237 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11239 | fi |
| 11240 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 11242 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11243 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11244 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11245 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11246 | |
| 11247 | fi |
| 11248 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11249 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11250 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| 11252 | $as_echo_n "checking whether char is unsigned... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11253 | if ${ac_cv_c_char_unsigned+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11254 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11255 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11257 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11258 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11259 | int |
| 11260 | main () |
| 11261 | { |
| 11262 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 11263 | test_array [0] = 0 |
| 11264 | |
| 11265 | ; |
| 11266 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11267 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11268 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11269 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11270 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11271 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11272 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11273 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11275 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
| 11277 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11278 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11279 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11280 | |
| 11281 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11282 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 11284 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11285 | if ${ac_cv_c_const+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11286 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11287 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11289 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11291 | int |
| 11292 | main () |
| 11293 | { |
| 11294 | /* FIXME: Include the comments suggested by Paul. */ |
| 11295 | #ifndef __cplusplus |
| 11296 | /* Ultrix mips cc rejects this. */ |
| 11297 | typedef int charset[2]; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11298 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11299 | /* SunOS 4.1.1 cc rejects this. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11300 | char const *const *pcpcc; |
| 11301 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11302 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 11303 | struct point {int x, y;}; |
| 11304 | static struct point const zero = {0,0}; |
| 11305 | /* AIX XL C 1.02.0.0 rejects this. |
| 11306 | It does not let you subtract one const X* pointer from another in |
| 11307 | an arm of an if-expression whose if-part is not a constant |
| 11308 | expression */ |
| 11309 | const char *g = "string"; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11310 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11311 | /* HPUX 7.0 cc rejects these. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11312 | ++pcpcc; |
| 11313 | ppc = (char**) pcpcc; |
| 11314 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11315 | { /* SCO 3.2v4 cc rejects this. */ |
| 11316 | char *t; |
| 11317 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11318 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11319 | *t++ = 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11320 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11321 | } |
| 11322 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 11323 | int x[] = {25, 17}; |
| 11324 | const int *foo = &x[0]; |
| 11325 | ++foo; |
| 11326 | } |
| 11327 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 11328 | typedef const int *iptr; |
| 11329 | iptr p = 0; |
| 11330 | ++p; |
| 11331 | } |
| 11332 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 11333 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 11334 | struct s { int j; const int *ap[3]; }; |
| 11335 | struct s *b; b->j = 5; |
| 11336 | } |
| 11337 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 11338 | const int foo = 10; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11339 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11340 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11341 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11342 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11343 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11344 | ; |
| 11345 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11346 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11347 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11348 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11349 | ac_cv_c_const=yes |
| 11350 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11351 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11352 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11354 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 11356 | $as_echo "$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11357 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11358 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11359 | $as_echo "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11360 | |
| 11361 | fi |
| 11362 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11363 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11364 | works=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| 11366 | $as_echo_n "checking for working volatile... " >&6; } |
| 11367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11368 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11369 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11370 | int |
| 11371 | main () |
| 11372 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11373 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11374 | ; |
| 11375 | return 0; |
| 11376 | } |
| 11377 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11378 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11379 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11380 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11381 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11382 | $as_echo "#define volatile /**/" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11383 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11384 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11385 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 11388 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11389 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11390 | works=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
| 11392 | $as_echo_n "checking for working signed char... " >&6; } |
| 11393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11394 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11395 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11396 | int |
| 11397 | main () |
| 11398 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11399 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11400 | ; |
| 11401 | return 0; |
| 11402 | } |
| 11403 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11404 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11405 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11406 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11407 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11408 | $as_echo "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11409 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11410 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11411 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 11414 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11415 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11416 | have_prototypes=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
| 11418 | $as_echo_n "checking for prototypes... " >&6; } |
| 11419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11420 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11421 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11422 | int |
| 11423 | main () |
| 11424 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11425 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11426 | ; |
| 11427 | return 0; |
| 11428 | } |
| 11429 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11430 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11431 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11432 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11433 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11434 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11435 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 |
| 11438 | $as_echo "$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11439 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11440 | works=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
| 11442 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } |
| 11443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11444 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11445 | |
| 11446 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11447 | int foo(int x, ...) { |
| 11448 | va_list va; |
| 11449 | va_start(va, x); |
| 11450 | va_arg(va, int); |
| 11451 | va_arg(va, char *); |
| 11452 | va_arg(va, double); |
| 11453 | return 0; |
| 11454 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11456 | int |
| 11457 | main () |
| 11458 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11459 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11460 | ; |
| 11461 | return 0; |
| 11462 | } |
| 11463 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11464 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11465 | |
| 11466 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11467 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11468 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11469 | works=yes |
| 11470 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11471 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 11474 | $as_echo "$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11475 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11476 | # check for socketpair |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
| 11478 | $as_echo_n "checking for socketpair... " >&6; } |
| 11479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11480 | /* end confdefs.h. */ |
| 11481 | |
| 11482 | #include <sys/types.h> |
| 11483 | #include <sys/socket.h> |
| 11484 | |
| 11485 | int |
| 11486 | main () |
| 11487 | { |
| 11488 | void *x=socketpair |
| 11489 | ; |
| 11490 | return 0; |
| 11491 | } |
| 11492 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11493 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11494 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11495 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11496 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11498 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11499 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11501 | $as_echo "no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11502 | |
| 11503 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11504 | 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] | 11505 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11506 | # check if sockaddr has sa_len member |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
| 11508 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } |
| 11509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11510 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11511 | #include <sys/types.h> |
| 11512 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11513 | int |
| 11514 | main () |
| 11515 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11516 | struct sockaddr x; |
| 11517 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11518 | ; |
| 11519 | return 0; |
| 11520 | } |
| 11521 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11522 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11524 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11525 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11526 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11527 | |
| 11528 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11530 | $as_echo "no" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11531 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11532 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11533 | 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] | 11534 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11535 | va_list_is_array=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 |
| 11537 | $as_echo_n "checking whether va_list is an array... " >&6; } |
| 11538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11539 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11540 | |
| 11541 | #ifdef HAVE_STDARG_PROTOTYPES |
| 11542 | #include <stdarg.h> |
| 11543 | #else |
| 11544 | #include <varargs.h> |
| 11545 | #endif |
| 11546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11547 | int |
| 11548 | main () |
| 11549 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11550 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11551 | ; |
| 11552 | return 0; |
| 11553 | } |
| 11554 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11555 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11556 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11557 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11558 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11559 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11560 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11561 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11562 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11563 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11564 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 |
| 11567 | $as_echo "$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11568 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11569 | # 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] | 11570 | |
| 11571 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11572 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11573 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11574 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11575 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 11576 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
| 11578 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11579 | OLD_CFLAGS=$CFLAGS |
| 11580 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11582 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11583 | |
| 11584 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11586 | int |
| 11587 | main () |
| 11588 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11589 | |
| 11590 | char *name; |
| 11591 | struct hostent *he, *res; |
| 11592 | char buffer[2048]; |
| 11593 | int buflen = 2048; |
| 11594 | int h_errnop; |
| 11595 | |
| 11596 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11597 | |
| 11598 | ; |
| 11599 | return 0; |
| 11600 | } |
| 11601 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11602 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11603 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11604 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11605 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11606 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11607 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11608 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11610 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11611 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11612 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11613 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11615 | $as_echo "no" >&6; } |
| 11616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 |
| 11617 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } |
| 11618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11619 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11620 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11621 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11623 | int |
| 11624 | main () |
| 11625 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11626 | |
| 11627 | char *name; |
| 11628 | struct hostent *he; |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11629 | char buffer[2048]; |
| 11630 | int buflen = 2048; |
| 11631 | int h_errnop; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11632 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11633 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11634 | |
| 11635 | ; |
| 11636 | return 0; |
| 11637 | } |
| 11638 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11639 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11640 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11641 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11643 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11644 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11645 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11647 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11648 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11649 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11650 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11652 | $as_echo "no" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 |
| 11654 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } |
| 11655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11656 | /* end confdefs.h. */ |
| 11657 | |
| 11658 | # include <netdb.h> |
| 11659 | |
| 11660 | int |
| 11661 | main () |
| 11662 | { |
| 11663 | |
| 11664 | char *name; |
| 11665 | struct hostent *he; |
| 11666 | struct hostent_data data; |
| 11667 | |
| 11668 | (void) gethostbyname_r(name, he, &data); |
| 11669 | |
| 11670 | ; |
| 11671 | return 0; |
| 11672 | } |
| 11673 | _ACEOF |
| 11674 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11675 | |
| 11676 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
| 11677 | |
| 11678 | |
| 11679 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h |
| 11680 | |
| 11681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11682 | $as_echo "yes" >&6; } |
| 11683 | |
| 11684 | else |
| 11685 | |
| 11686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11687 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11688 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11689 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11690 | 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] | 11691 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11692 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11693 | 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] | 11694 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11695 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11697 | CFLAGS=$OLD_CFLAGS |
| 11698 | |
| 11699 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11700 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11701 | for ac_func in gethostbyname |
| 11702 | do : |
| 11703 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11704 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11705 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11706 | #define HAVE_GETHOSTBYNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11707 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11708 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11709 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11710 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11711 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11712 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11713 | fi |
| 11714 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11715 | |
| 11716 | |
| 11717 | |
| 11718 | |
| 11719 | |
| 11720 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11721 | # checks for system services |
| 11722 | # (none yet) |
| 11723 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11724 | # Linux requires this for correct f.p. operations |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11725 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11726 | if test "x$ac_cv_func___fpu_control" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11727 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11728 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 |
| 11730 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11731 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11732 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11733 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11734 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11735 | LIBS="-lieee $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11737 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11738 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11739 | /* Override any GCC internal prototype to avoid an error. |
| 11740 | Use char because int might match the return type of a GCC |
| 11741 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11742 | #ifdef __cplusplus |
| 11743 | extern "C" |
| 11744 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11745 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11746 | int |
| 11747 | main () |
| 11748 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11749 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11750 | ; |
| 11751 | return 0; |
| 11752 | } |
| 11753 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11754 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11755 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11756 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11757 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11758 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11759 | rm -f core conftest.err conftest.$ac_objext \ |
| 11760 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11761 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11762 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 11764 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11765 | if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11766 | cat >>confdefs.h <<_ACEOF |
| 11767 | #define HAVE_LIBIEEE 1 |
| 11768 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11769 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11770 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11771 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11772 | fi |
| 11773 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11774 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11775 | fi |
| 11776 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11777 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11778 | # Check for --with-fpectl |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 |
| 11780 | $as_echo_n "checking for --with-fpectl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11781 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11782 | # Check whether --with-fpectl was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11783 | if test "${with_fpectl+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11784 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11785 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11786 | then |
| 11787 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11788 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11789 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11791 | $as_echo "yes" >&6; } |
| 11792 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11793 | $as_echo "no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11794 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11795 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11797 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11798 | fi |
| 11799 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11800 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11801 | # check for --with-libm=... |
| 11802 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11803 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 11804 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11805 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11806 | *) LIBM=-lm |
| 11807 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
| 11809 | $as_echo_n "checking for --with-libm=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11810 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11811 | # Check whether --with-libm was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11812 | if test "${with_libm+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11813 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11814 | if test "$withval" = no |
| 11815 | then LIBM= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
| 11817 | $as_echo "force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11818 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11819 | then LIBM=$withval |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
| 11821 | $as_echo "set LIBM=\"$withval\"" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11822 | 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] | 11823 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11824 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 |
| 11826 | $as_echo "default LIBM=\"$LIBM\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11827 | fi |
| 11828 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11829 | |
| 11830 | # check for --with-libc=... |
| 11831 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
| 11833 | $as_echo_n "checking for --with-libc=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11834 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11835 | # Check whether --with-libc was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11836 | if test "${with_libc+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11837 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11838 | if test "$withval" = no |
| 11839 | then LIBC= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
| 11841 | $as_echo "force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11842 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11843 | then LIBC=$withval |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
| 11845 | $as_echo "set LIBC=\"$withval\"" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11846 | 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] | 11847 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11848 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 |
| 11850 | $as_echo "default LIBC=\"$LIBC\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11851 | fi |
| 11852 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11853 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11854 | # ************************************************** |
| 11855 | # * Check for various properties of floating point * |
| 11856 | # ************************************************** |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 11857 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 11859 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11860 | if ${ac_cv_little_endian_double+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11861 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11862 | else |
| 11863 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11864 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11865 | ac_cv_little_endian_double=no |
| 11866 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11868 | /* end confdefs.h. */ |
| 11869 | |
| 11870 | #include <string.h> |
| 11871 | int main() { |
| 11872 | double x = 9006104071832581.0; |
| 11873 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 11874 | return 0; |
| 11875 | else |
| 11876 | return 1; |
| 11877 | } |
| 11878 | |
| 11879 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11880 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11881 | ac_cv_little_endian_double=yes |
| 11882 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11883 | ac_cv_little_endian_double=no |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11884 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11885 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11886 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11887 | fi |
| 11888 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11889 | fi |
| 11890 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 |
| 11892 | $as_echo "$ac_cv_little_endian_double" >&6; } |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11893 | if test "$ac_cv_little_endian_double" = yes |
| 11894 | then |
| 11895 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11896 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11897 | |
| 11898 | fi |
| 11899 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 11901 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11902 | if ${ac_cv_big_endian_double+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11903 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11904 | else |
| 11905 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11906 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11907 | ac_cv_big_endian_double=no |
| 11908 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11910 | /* end confdefs.h. */ |
| 11911 | |
| 11912 | #include <string.h> |
| 11913 | int main() { |
| 11914 | double x = 9006104071832581.0; |
| 11915 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 11916 | return 0; |
| 11917 | else |
| 11918 | return 1; |
| 11919 | } |
| 11920 | |
| 11921 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11922 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11923 | ac_cv_big_endian_double=yes |
| 11924 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11925 | ac_cv_big_endian_double=no |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11926 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11927 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11928 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11929 | fi |
| 11930 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11931 | fi |
| 11932 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 |
| 11934 | $as_echo "$ac_cv_big_endian_double" >&6; } |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11935 | if test "$ac_cv_big_endian_double" = yes |
| 11936 | then |
| 11937 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11938 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11939 | |
| 11940 | fi |
| 11941 | |
| 11942 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 11943 | # While Python doesn't currently have full support for these platforms |
| 11944 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 11945 | # conversions work. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 11947 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 11948 | if ${ac_cv_mixed_endian_double+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11949 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11950 | else |
| 11951 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11952 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11953 | ac_cv_mixed_endian_double=no |
| 11954 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11956 | /* end confdefs.h. */ |
| 11957 | |
| 11958 | #include <string.h> |
| 11959 | int main() { |
| 11960 | double x = 9006104071832581.0; |
| 11961 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 11962 | return 0; |
| 11963 | else |
| 11964 | return 1; |
| 11965 | } |
| 11966 | |
| 11967 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11968 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11969 | ac_cv_mixed_endian_double=yes |
| 11970 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11971 | ac_cv_mixed_endian_double=no |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11972 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11973 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11974 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11975 | fi |
| 11976 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11977 | fi |
| 11978 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 |
| 11980 | $as_echo "$ac_cv_mixed_endian_double" >&6; } |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11981 | if test "$ac_cv_mixed_endian_double" = yes |
| 11982 | then |
| 11983 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11984 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11985 | |
| 11986 | fi |
| 11987 | |
| 11988 | # The short float repr introduced in Python 3.1 requires the |
| 11989 | # correctly-rounded string <-> double conversion functions from |
| 11990 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit |
| 11991 | # 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] | 11992 | # 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] | 11993 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 11994 | |
| 11995 | # This inline assembler syntax may also work for suncc and icc, |
| 11996 | # so we try it on all platforms. |
| 11997 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
| 11999 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } |
| 12000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12001 | /* end confdefs.h. */ |
| 12002 | |
| 12003 | int |
| 12004 | main () |
| 12005 | { |
| 12006 | |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12007 | unsigned short cw; |
| 12008 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 12009 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12010 | |
| 12011 | ; |
| 12012 | return 0; |
| 12013 | } |
| 12014 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12015 | if ac_fn_c_try_compile "$LINENO"; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12016 | have_gcc_asm_for_x87=yes |
| 12017 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12018 | have_gcc_asm_for_x87=no |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12019 | fi |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
| 12022 | $as_echo "$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 12023 | if test "$have_gcc_asm_for_x87" = yes |
| 12024 | then |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12025 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12026 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12027 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12028 | fi |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 12029 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12030 | # Detect whether system arithmetic is subject to x87-style double |
| 12031 | # rounding issues. The result of this test has little meaning on non |
| 12032 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 12033 | # mode is round-to-nearest and double rounding issues are present, and |
| 12034 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
| 12036 | $as_echo_n "checking for x87-style double rounding... " >&6; } |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 12037 | # $BASECFLAGS may affect the result |
| 12038 | ac_save_cc="$CC" |
| 12039 | CC="$CC $BASECFLAGS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12040 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12041 | ac_cv_x87_double_rounding=no |
| 12042 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12044 | /* end confdefs.h. */ |
| 12045 | |
| 12046 | #include <stdlib.h> |
| 12047 | #include <math.h> |
| 12048 | int main() { |
| 12049 | volatile double x, y, z; |
| 12050 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 12051 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 12052 | y = 1./x; |
| 12053 | if (y != 1.) |
| 12054 | exit(0); |
| 12055 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 12056 | x = 1e16; |
| 12057 | y = 2.99999; |
| 12058 | z = x + y; |
| 12059 | if (z != 1e16+4.) |
| 12060 | exit(0); |
| 12061 | /* both tests show evidence of double rounding */ |
| 12062 | exit(1); |
| 12063 | } |
| 12064 | |
| 12065 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12066 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12067 | ac_cv_x87_double_rounding=no |
| 12068 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12069 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12070 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12071 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12072 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12073 | fi |
| 12074 | |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 12075 | CC="$ac_save_cc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
| 12077 | $as_echo "$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12078 | if test "$ac_cv_x87_double_rounding" = yes |
| 12079 | then |
| 12080 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12081 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 12082 | |
| 12083 | fi |
| 12084 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 12085 | # ************************************ |
| 12086 | # * Check for mathematical functions * |
| 12087 | # ************************************ |
| 12088 | |
| 12089 | LIBS_SAVE=$LIBS |
| 12090 | LIBS="$LIBS $LIBM" |
| 12091 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12092 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 12093 | # -0. on some architectures. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 |
| 12095 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12096 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12097 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12098 | else |
| 12099 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12100 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12101 | ac_cv_tanh_preserves_zero_sign=no |
| 12102 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12104 | /* end confdefs.h. */ |
| 12105 | |
| 12106 | #include <math.h> |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 12107 | #include <stdlib.h> |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12108 | int main() { |
| 12109 | /* return 0 if either negative zeros don't exist |
| 12110 | on this platform or if negative zeros exist |
| 12111 | and tanh(-0.) == -0. */ |
| 12112 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 12113 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 12114 | else exit(1); |
| 12115 | } |
| 12116 | |
| 12117 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12118 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12119 | ac_cv_tanh_preserves_zero_sign=yes |
| 12120 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12121 | ac_cv_tanh_preserves_zero_sign=no |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12122 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12123 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12124 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12125 | fi |
| 12126 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12127 | fi |
| 12128 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 12130 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12131 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 12132 | then |
| 12133 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12134 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 12135 | |
| 12136 | fi |
| 12137 | |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12138 | 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] | 12139 | do : |
| 12140 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12141 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12142 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12143 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12144 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12145 | _ACEOF |
| 12146 | |
| 12147 | fi |
| 12148 | done |
| 12149 | |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 12150 | for ac_func in hypot lgamma log1p round tgamma |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12151 | do : |
| 12152 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12153 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12154 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 12155 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12156 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 12157 | _ACEOF |
| 12158 | |
| 12159 | fi |
| 12160 | done |
| 12161 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12162 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> |
| 12163 | " |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12164 | if test "x$ac_cv_have_decl_isinf" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12165 | ac_have_decl=1 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12166 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12167 | ac_have_decl=0 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12168 | fi |
| 12169 | |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12170 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12171 | #define HAVE_DECL_ISINF $ac_have_decl |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12172 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12173 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> |
| 12174 | " |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12175 | if test "x$ac_cv_have_decl_isnan" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12176 | ac_have_decl=1 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12177 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12178 | ac_have_decl=0 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12179 | fi |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12180 | |
| 12181 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12182 | #define HAVE_DECL_ISNAN $ac_have_decl |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12183 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12184 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> |
| 12185 | " |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12186 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12187 | ac_have_decl=1 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12188 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12189 | ac_have_decl=0 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12190 | fi |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12191 | |
| 12192 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12193 | #define HAVE_DECL_ISFINITE $ac_have_decl |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12194 | _ACEOF |
| 12195 | |
| 12196 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 12197 | LIBS=$LIBS_SAVE |
| 12198 | |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12199 | # For multiprocessing module, check that sem_open |
| 12200 | # actually works. For FreeBSD versions <= 7.2, |
| 12201 | # the kernel module that provides POSIX semaphores |
| 12202 | # isn't loaded by default, so an attempt to call |
| 12203 | # sem_open results in a 'Signal 12' error. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
| 12205 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12206 | if ${ac_cv_posix_semaphores_enabled+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12207 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12208 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12209 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12210 | ac_cv_posix_semaphores_enabled=yes |
| 12211 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12213 | /* end confdefs.h. */ |
| 12214 | |
| 12215 | #include <unistd.h> |
| 12216 | #include <fcntl.h> |
| 12217 | #include <stdio.h> |
| 12218 | #include <semaphore.h> |
| 12219 | #include <sys/stat.h> |
| 12220 | |
| 12221 | int main(void) { |
| 12222 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 12223 | if (a == SEM_FAILED) { |
| 12224 | perror("sem_open"); |
| 12225 | return 1; |
| 12226 | } |
| 12227 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12228 | sem_unlink("/autoconf"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12229 | return 0; |
| 12230 | } |
| 12231 | |
| 12232 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12233 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12234 | ac_cv_posix_semaphores_enabled=yes |
| 12235 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12236 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12237 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12238 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12239 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12240 | fi |
| 12241 | |
| 12242 | |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12243 | fi |
| 12244 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 12246 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12247 | if test $ac_cv_posix_semaphores_enabled = no |
| 12248 | then |
| 12249 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12250 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12251 | |
| 12252 | fi |
| 12253 | |
| 12254 | # Multiprocessing check for broken sem_getvalue |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
| 12256 | $as_echo_n "checking for broken sem_getvalue... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12257 | if ${ac_cv_broken_sem_getvalue+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12258 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12259 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12260 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12261 | ac_cv_broken_sem_getvalue=yes |
| 12262 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12264 | /* end confdefs.h. */ |
| 12265 | |
| 12266 | #include <unistd.h> |
| 12267 | #include <fcntl.h> |
| 12268 | #include <stdio.h> |
| 12269 | #include <semaphore.h> |
| 12270 | #include <sys/stat.h> |
| 12271 | |
| 12272 | int main(void){ |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12273 | 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] | 12274 | int count; |
| 12275 | int res; |
| 12276 | if(a==SEM_FAILED){ |
| 12277 | perror("sem_open"); |
| 12278 | return 1; |
| 12279 | |
| 12280 | } |
| 12281 | res = sem_getvalue(a, &count); |
| 12282 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12283 | sem_unlink("/autocftw"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12284 | return res==-1 ? 1 : 0; |
| 12285 | } |
| 12286 | |
| 12287 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12288 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12289 | ac_cv_broken_sem_getvalue=no |
| 12290 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12291 | ac_cv_broken_sem_getvalue=yes |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12292 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12293 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12294 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12295 | fi |
| 12296 | |
| 12297 | |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12298 | fi |
| 12299 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 |
| 12301 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12302 | if test $ac_cv_broken_sem_getvalue = yes |
| 12303 | then |
| 12304 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12305 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12306 | |
| 12307 | fi |
| 12308 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12309 | # determine what size digit to use for Python's longs |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
| 12311 | $as_echo_n "checking digit size for Python's longs... " >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12312 | # Check whether --enable-big-digits was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12313 | if test "${enable_big_digits+set}" = set; then : |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12314 | enableval=$enable_big_digits; case $enable_big_digits in |
| 12315 | yes) |
| 12316 | enable_big_digits=30 ;; |
| 12317 | no) |
| 12318 | enable_big_digits=15 ;; |
| 12319 | 15|30) |
| 12320 | ;; |
| 12321 | *) |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12322 | 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] | 12323 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
| 12325 | $as_echo "$enable_big_digits" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12326 | |
| 12327 | cat >>confdefs.h <<_ACEOF |
| 12328 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 12329 | _ACEOF |
| 12330 | |
| 12331 | |
| 12332 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 12334 | $as_echo "no value specified" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12335 | fi |
| 12336 | |
| 12337 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12338 | # check for wchar.h |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12339 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12340 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12341 | |
| 12342 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12343 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12344 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12345 | wchar_h="yes" |
| 12346 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12347 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12348 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12349 | |
| 12350 | fi |
| 12351 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12353 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12354 | # determine wchar_t size |
| 12355 | if test "$wchar_h" = yes |
| 12356 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12357 | # 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] | 12358 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12359 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12360 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
| 12362 | $as_echo_n "checking size of wchar_t... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12363 | if ${ac_cv_sizeof_wchar_t+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12364 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12365 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12366 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
| 12367 | "; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12369 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12370 | if test "$ac_cv_type_wchar_t" = yes; then |
| 12371 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12372 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12373 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
| 12374 | See \`config.log' for more details" "$LINENO" 5; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12375 | else |
| 12376 | ac_cv_sizeof_wchar_t=0 |
| 12377 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12378 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12380 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
| 12382 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12383 | |
| 12384 | |
| 12385 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12386 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12387 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12388 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12389 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12390 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12391 | fi |
| 12392 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
| 12394 | $as_echo_n "checking for UCS-4 tcl... " >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12395 | have_ucs4_tcl=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12397 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12398 | |
| 12399 | #include <tcl.h> |
| 12400 | #if TCL_UTF_MAX != 6 |
| 12401 | # error "NOT UCS4_TCL" |
| 12402 | #endif |
| 12403 | int |
| 12404 | main () |
| 12405 | { |
| 12406 | |
| 12407 | ; |
| 12408 | return 0; |
| 12409 | } |
| 12410 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12411 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12412 | |
| 12413 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12414 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12415 | |
| 12416 | have_ucs4_tcl=yes |
| 12417 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12418 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 |
| 12421 | $as_echo "$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12422 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12423 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12424 | if test "$wchar_h" = yes |
| 12425 | then |
| 12426 | # check whether wchar_t is signed or not |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
| 12428 | $as_echo_n "checking whether wchar_t is signed... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12429 | if ${ac_cv_wchar_t_signed+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12430 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12431 | else |
| 12432 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12433 | if test "$cross_compiling" = yes; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12434 | ac_cv_wchar_t_signed=yes |
| 12435 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12437 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12438 | |
| 12439 | #include <wchar.h> |
| 12440 | int main() |
| 12441 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 12442 | /* Success: exit code 0 */ |
| 12443 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12444 | } |
| 12445 | |
| 12446 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12447 | if ac_fn_c_try_run "$LINENO"; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12448 | ac_cv_wchar_t_signed=yes |
| 12449 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12450 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12451 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12452 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12453 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12454 | fi |
| 12455 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12456 | fi |
| 12457 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
| 12459 | $as_echo "$ac_cv_wchar_t_signed" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12460 | fi |
| 12461 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5 |
| 12463 | $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] | 12464 | # Check whether --enable-unicode was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12465 | if test "${enable_unicode+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12466 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12467 | else |
| 12468 | enable_unicode=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12469 | fi |
| 12470 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12471 | |
| 12472 | if test $enable_unicode = yes |
| 12473 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 12474 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12475 | case "$have_ucs4_tcl" in |
| 12476 | yes) enable_unicode="ucs4" |
| 12477 | ;; |
| 12478 | *) enable_unicode="ucs2" |
| 12479 | ;; |
| 12480 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12481 | fi |
| 12482 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 12483 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12484 | case "$enable_unicode" in |
| 12485 | ucs2) unicode_size="2" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12486 | $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12487 | |
| 12488 | ;; |
| 12489 | ucs4) unicode_size="4" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12490 | $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12491 | |
| 12492 | ;; |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12493 | *) 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] | 12494 | esac |
| 12495 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12496 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12497 | |
| 12498 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12499 | if test "$enable_unicode" = "no" |
| 12500 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 12501 | UNICODE_OBJS="" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5 |
| 12503 | $as_echo "not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12504 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 12505 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12506 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12507 | $as_echo "#define Py_USING_UNICODE 1" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12508 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12509 | |
| 12510 | # wchar_t is only usable if it maps to an unsigned type |
| 12511 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 12512 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12513 | then |
| 12514 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12515 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12516 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12517 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12518 | $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12519 | |
| 12520 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 12521 | then |
| 12522 | PY_UNICODE_TYPE="unsigned short" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12523 | $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12524 | |
| 12525 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 12526 | then |
| 12527 | PY_UNICODE_TYPE="unsigned long" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12528 | $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12529 | |
| 12530 | else |
| 12531 | PY_UNICODE_TYPE="no type found" |
| 12532 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 |
| 12534 | $as_echo "$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12535 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12536 | |
| 12537 | # check for endianness |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 12539 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12540 | if ${ac_cv_c_bigendian+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12541 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12542 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12543 | ac_cv_c_bigendian=unknown |
| 12544 | # See if we're dealing with a universal compiler. |
| 12545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12546 | /* end confdefs.h. */ |
| 12547 | #ifndef __APPLE_CC__ |
| 12548 | not a universal capable compiler |
| 12549 | #endif |
| 12550 | typedef int dummy; |
| 12551 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12552 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12553 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12554 | |
| 12555 | # Check for potential -arch flags. It is not universal unless |
| 12556 | # there are at least two -arch flags with different values. |
| 12557 | ac_arch= |
| 12558 | ac_prev= |
| 12559 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 12560 | if test -n "$ac_prev"; then |
| 12561 | case $ac_word in |
| 12562 | i?86 | x86_64 | ppc | ppc64) |
| 12563 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 12564 | ac_arch=$ac_word |
| 12565 | else |
| 12566 | ac_cv_c_bigendian=universal |
| 12567 | break |
| 12568 | fi |
| 12569 | ;; |
| 12570 | esac |
| 12571 | ac_prev= |
| 12572 | elif test "x$ac_word" = "x-arch"; then |
| 12573 | ac_prev=arch |
| 12574 | fi |
| 12575 | done |
| 12576 | fi |
| 12577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12578 | if test $ac_cv_c_bigendian = unknown; then |
| 12579 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 12580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12581 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12582 | #include <sys/types.h> |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12583 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12585 | int |
| 12586 | main () |
| 12587 | { |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12588 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 12589 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 12590 | && LITTLE_ENDIAN) |
| 12591 | bogus endian macros |
| 12592 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12593 | |
| 12594 | ; |
| 12595 | return 0; |
| 12596 | } |
| 12597 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12598 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12599 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12601 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12602 | #include <sys/types.h> |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12603 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12605 | int |
| 12606 | main () |
| 12607 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12608 | #if BYTE_ORDER != BIG_ENDIAN |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12609 | not big endian |
| 12610 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12611 | |
| 12612 | ; |
| 12613 | return 0; |
| 12614 | } |
| 12615 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12616 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12617 | ac_cv_c_bigendian=yes |
| 12618 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12619 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12620 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12622 | fi |
| 12623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12624 | fi |
| 12625 | if test $ac_cv_c_bigendian = unknown; then |
| 12626 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 12627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12628 | /* end confdefs.h. */ |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12629 | #include <limits.h> |
| 12630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12631 | int |
| 12632 | main () |
| 12633 | { |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12634 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 12635 | bogus endian macros |
| 12636 | #endif |
| 12637 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12638 | ; |
| 12639 | return 0; |
| 12640 | } |
| 12641 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12642 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12643 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 12644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12645 | /* end confdefs.h. */ |
| 12646 | #include <limits.h> |
| 12647 | |
| 12648 | int |
| 12649 | main () |
| 12650 | { |
| 12651 | #ifndef _BIG_ENDIAN |
| 12652 | not big endian |
| 12653 | #endif |
| 12654 | |
| 12655 | ; |
| 12656 | return 0; |
| 12657 | } |
| 12658 | _ACEOF |
| 12659 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12660 | ac_cv_c_bigendian=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 12661 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12662 | ac_cv_c_bigendian=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12663 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12665 | fi |
| 12666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12667 | fi |
| 12668 | if test $ac_cv_c_bigendian = unknown; then |
| 12669 | # Compile a test program. |
| 12670 | if test "$cross_compiling" = yes; then : |
| 12671 | # Try to guess by grepping values from an object file. |
| 12672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12673 | /* end confdefs.h. */ |
| 12674 | short int ascii_mm[] = |
| 12675 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 12676 | short int ascii_ii[] = |
| 12677 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 12678 | int use_ascii (int i) { |
| 12679 | return ascii_mm[i] + ascii_ii[i]; |
| 12680 | } |
| 12681 | short int ebcdic_ii[] = |
| 12682 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 12683 | short int ebcdic_mm[] = |
| 12684 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 12685 | int use_ebcdic (int i) { |
| 12686 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 12687 | } |
| 12688 | extern int foo; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12689 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12690 | int |
| 12691 | main () |
| 12692 | { |
| 12693 | return use_ascii (foo) == use_ebcdic (foo); |
| 12694 | ; |
| 12695 | return 0; |
| 12696 | } |
| 12697 | _ACEOF |
| 12698 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12699 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 12700 | ac_cv_c_bigendian=yes |
| 12701 | fi |
| 12702 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 12703 | if test "$ac_cv_c_bigendian" = unknown; then |
| 12704 | ac_cv_c_bigendian=no |
| 12705 | else |
| 12706 | # finding both strings is unlikely to happen, but who knows? |
| 12707 | ac_cv_c_bigendian=unknown |
| 12708 | fi |
| 12709 | fi |
| 12710 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12711 | 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] | 12712 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12714 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12715 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12716 | int |
| 12717 | main () |
| 12718 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12719 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12720 | /* Are we little or big endian? From Harbison&Steele. */ |
| 12721 | union |
| 12722 | { |
| 12723 | long int l; |
| 12724 | char c[sizeof (long int)]; |
| 12725 | } u; |
| 12726 | u.l = 1; |
| 12727 | return u.c[sizeof (long int) - 1] == 1; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12728 | |
| 12729 | ; |
| 12730 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12731 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12732 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12733 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12734 | ac_cv_c_bigendian=no |
| 12735 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12736 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12737 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12738 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12739 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12740 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12741 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12742 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12743 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 12745 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 12746 | case $ac_cv_c_bigendian in #( |
| 12747 | yes) |
| 12748 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 12749 | ;; #( |
| 12750 | no) |
| 12751 | ;; #( |
| 12752 | universal) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12753 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12754 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 12755 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12756 | ;; #( |
| 12757 | *) |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12758 | as_fn_error $? "unknown endianness |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12759 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 12760 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12761 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12762 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12763 | # Check whether right shifting a negative integer extends the sign bit |
| 12764 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
| 12766 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12767 | if ${ac_cv_rshift_extends_sign+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12768 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12769 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12770 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12771 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12772 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12773 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12775 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12776 | |
| 12777 | int main() |
| 12778 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12779 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12780 | } |
| 12781 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12782 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12783 | if ac_fn_c_try_run "$LINENO"; then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12784 | ac_cv_rshift_extends_sign=yes |
| 12785 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12786 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12787 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12788 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12789 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12790 | fi |
| 12791 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12792 | fi |
| 12793 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
| 12795 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12796 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12797 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12798 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12799 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12800 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12801 | fi |
| 12802 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12803 | # check for getc_unlocked and related locking functions |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
| 12805 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12806 | if ${ac_cv_have_getc_unlocked+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12807 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12808 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12809 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12811 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12812 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12813 | int |
| 12814 | main () |
| 12815 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12816 | |
| 12817 | FILE *f = fopen("/dev/null", "r"); |
| 12818 | flockfile(f); |
| 12819 | getc_unlocked(f); |
| 12820 | funlockfile(f); |
| 12821 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12822 | ; |
| 12823 | return 0; |
| 12824 | } |
| 12825 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12826 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12827 | ac_cv_have_getc_unlocked=yes |
| 12828 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12829 | ac_cv_have_getc_unlocked=no |
| 12830 | fi |
| 12831 | rm -f core conftest.err conftest.$ac_objext \ |
| 12832 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12833 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12834 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
| 12836 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12837 | if test "$ac_cv_have_getc_unlocked" = yes |
| 12838 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12839 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12840 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12841 | |
| 12842 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12843 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12844 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 12845 | # save the value of LIBS so we don't actually link Python with readline |
| 12846 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12847 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12848 | # On some systems we need to link readline to a termcap compatible |
| 12849 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 12850 | # with setup.py. |
| 12851 | py_cv_lib_readline=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
| 12853 | $as_echo_n "checking how to link readline libs... " >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12854 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 12855 | if test -z "$py_libtermcap"; then |
| 12856 | READLINE_LIBS="-lreadline" |
| 12857 | else |
| 12858 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 12859 | fi |
| 12860 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12862 | /* end confdefs.h. */ |
| 12863 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12864 | /* Override any GCC internal prototype to avoid an error. |
| 12865 | Use char because int might match the return type of a GCC |
| 12866 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12867 | #ifdef __cplusplus |
| 12868 | extern "C" |
| 12869 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12870 | char readline (); |
| 12871 | int |
| 12872 | main () |
| 12873 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12874 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12875 | ; |
| 12876 | return 0; |
| 12877 | } |
| 12878 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12879 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12880 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12881 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12882 | rm -f core conftest.err conftest.$ac_objext \ |
| 12883 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12884 | if test $py_cv_lib_readline = yes; then |
| 12885 | break |
| 12886 | fi |
| 12887 | done |
| 12888 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 12889 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 12890 | if test $py_cv_lib_readline = no; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 12892 | $as_echo "none" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12893 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
| 12895 | $as_echo "$READLINE_LIBS" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12896 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12897 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12898 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12899 | fi |
| 12900 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12901 | # check for readline 2.1 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 |
| 12903 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12904 | if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12905 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12906 | else |
| 12907 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 12908 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12910 | /* end confdefs.h. */ |
| 12911 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12912 | /* Override any GCC internal prototype to avoid an error. |
| 12913 | Use char because int might match the return type of a GCC |
| 12914 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12915 | #ifdef __cplusplus |
| 12916 | extern "C" |
| 12917 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12918 | char rl_callback_handler_install (); |
| 12919 | int |
| 12920 | main () |
| 12921 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12922 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12923 | ; |
| 12924 | return 0; |
| 12925 | } |
| 12926 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12927 | if ac_fn_c_try_link "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12928 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 12929 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12930 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12931 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12932 | rm -f core conftest.err conftest.$ac_objext \ |
| 12933 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12934 | LIBS=$ac_check_lib_save_LIBS |
| 12935 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 12937 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12938 | if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12939 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12940 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12941 | |
| 12942 | fi |
| 12943 | |
| 12944 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12945 | # check for readline 2.2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12947 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12948 | #include <readline/readline.h> |
| 12949 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12950 | if ac_fn_c_try_cpp "$LINENO"; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12951 | have_readline=yes |
| 12952 | else |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12953 | have_readline=no |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12954 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12955 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12956 | rm -f conftest.err conftest.i conftest.$ac_ext |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12957 | if test $have_readline = yes |
| 12958 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12960 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12961 | #include <readline/readline.h> |
| 12962 | |
| 12963 | _ACEOF |
| 12964 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12965 | $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] | 12966 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12967 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12968 | |
| 12969 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 12970 | rm -f conftest* |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 12971 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 12973 | /* end confdefs.h. */ |
| 12974 | #include <readline/readline.h> |
| 12975 | |
| 12976 | _ACEOF |
| 12977 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12978 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 12979 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12980 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 12981 | |
| 12982 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 12983 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12984 | |
| 12985 | fi |
| 12986 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12987 | # check for readline 4.0 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 |
| 12989 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 12990 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12991 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12993 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 12994 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12996 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12997 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12998 | /* Override any GCC internal prototype to avoid an error. |
| 12999 | Use char because int might match the return type of a GCC |
| 13000 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13001 | #ifdef __cplusplus |
| 13002 | extern "C" |
| 13003 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13004 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13005 | int |
| 13006 | main () |
| 13007 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13008 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13009 | ; |
| 13010 | return 0; |
| 13011 | } |
| 13012 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13013 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13014 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13015 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13016 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13017 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13018 | rm -f core conftest.err conftest.$ac_objext \ |
| 13019 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13020 | LIBS=$ac_check_lib_save_LIBS |
| 13021 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 13023 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13024 | if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13025 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13026 | $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] | 13027 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13028 | fi |
| 13029 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13030 | |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13031 | # also in 4.0 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 13033 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13034 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13035 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13036 | else |
| 13037 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13038 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13040 | /* end confdefs.h. */ |
| 13041 | |
| 13042 | /* Override any GCC internal prototype to avoid an error. |
| 13043 | Use char because int might match the return type of a GCC |
| 13044 | builtin and then its argument prototype would still apply. */ |
| 13045 | #ifdef __cplusplus |
| 13046 | extern "C" |
| 13047 | #endif |
| 13048 | char rl_completion_display_matches_hook (); |
| 13049 | int |
| 13050 | main () |
| 13051 | { |
| 13052 | return rl_completion_display_matches_hook (); |
| 13053 | ; |
| 13054 | return 0; |
| 13055 | } |
| 13056 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13057 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13058 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 13059 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13060 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13061 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13062 | rm -f core conftest.err conftest.$ac_objext \ |
| 13063 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13064 | LIBS=$ac_check_lib_save_LIBS |
| 13065 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 13067 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13068 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 13069 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13070 | $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] | 13071 | |
| 13072 | fi |
| 13073 | |
| 13074 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13075 | # check for readline 4.2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 |
| 13077 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13078 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13079 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 13080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13081 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 13082 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13084 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13085 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13086 | /* Override any GCC internal prototype to avoid an error. |
| 13087 | Use char because int might match the return type of a GCC |
| 13088 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13089 | #ifdef __cplusplus |
| 13090 | extern "C" |
| 13091 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13092 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13093 | int |
| 13094 | main () |
| 13095 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13096 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13097 | ; |
| 13098 | return 0; |
| 13099 | } |
| 13100 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13101 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13102 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13103 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13104 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13105 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13106 | rm -f core conftest.err conftest.$ac_objext \ |
| 13107 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13108 | LIBS=$ac_check_lib_save_LIBS |
| 13109 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 13111 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13112 | if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13113 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13114 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13115 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 13116 | fi |
| 13117 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13118 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13119 | # also in readline 4.2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13121 | /* end confdefs.h. */ |
| 13122 | #include <readline/readline.h> |
| 13123 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13124 | if ac_fn_c_try_cpp "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13125 | have_readline=yes |
| 13126 | else |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13127 | have_readline=no |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13128 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13129 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13130 | rm -f conftest.err conftest.i conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13131 | if test $have_readline = yes |
| 13132 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13134 | /* end confdefs.h. */ |
| 13135 | #include <readline/readline.h> |
| 13136 | |
| 13137 | _ACEOF |
| 13138 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13139 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13140 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13141 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13142 | |
| 13143 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 13144 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13145 | |
| 13146 | fi |
| 13147 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 13148 | # End of readline checks: restore LIBS |
| 13149 | LIBS=$LIBS_no_readline |
| 13150 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
| 13152 | $as_echo_n "checking for broken nice()... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13153 | if ${ac_cv_broken_nice+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13154 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13155 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13156 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13157 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13158 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13159 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13161 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13162 | |
| 13163 | int main() |
| 13164 | { |
| 13165 | int val1 = nice(1); |
| 13166 | if (val1 != -1 && val1 == nice(2)) |
| 13167 | exit(0); |
| 13168 | exit(1); |
| 13169 | } |
| 13170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13171 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13172 | if ac_fn_c_try_run "$LINENO"; then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13173 | ac_cv_broken_nice=yes |
| 13174 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13175 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13176 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13177 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13178 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13179 | fi |
| 13180 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13181 | fi |
| 13182 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
| 13184 | $as_echo "$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13185 | if test "$ac_cv_broken_nice" = yes |
| 13186 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13187 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13188 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13189 | |
| 13190 | fi |
| 13191 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
| 13193 | $as_echo_n "checking for broken poll()... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13194 | if ${ac_cv_broken_poll+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13195 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13196 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13197 | if test "$cross_compiling" = yes; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13198 | ac_cv_broken_poll=no |
| 13199 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13201 | /* end confdefs.h. */ |
| 13202 | |
| 13203 | #include <poll.h> |
| 13204 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13205 | int main() |
| 13206 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13207 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13208 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13209 | |
| 13210 | close (42); |
| 13211 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13212 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13213 | if (poll_test < 0) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13214 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13215 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13216 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13217 | else |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13218 | return 1; |
| 13219 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13220 | |
| 13221 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13222 | if ac_fn_c_try_run "$LINENO"; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13223 | ac_cv_broken_poll=yes |
| 13224 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13225 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13226 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13227 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13228 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13229 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13230 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13231 | fi |
| 13232 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
| 13234 | $as_echo "$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13235 | if test "$ac_cv_broken_poll" = yes |
| 13236 | then |
| 13237 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13238 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13239 | |
| 13240 | fi |
| 13241 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13242 | # 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] | 13243 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 13244 | # tzname[] |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13245 | 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] | 13246 | #include <$ac_cv_struct_tm> |
| 13247 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13248 | " |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13249 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13250 | |
| 13251 | cat >>confdefs.h <<_ACEOF |
| 13252 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 13253 | _ACEOF |
| 13254 | |
| 13255 | |
| 13256 | fi |
| 13257 | |
| 13258 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 13259 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13260 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13261 | |
| 13262 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13263 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 13264 | " |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13265 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13266 | ac_have_decl=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13267 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13268 | ac_have_decl=0 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13269 | fi |
| 13270 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13271 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13272 | #define HAVE_DECL_TZNAME $ac_have_decl |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13273 | _ACEOF |
| 13274 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 13276 | $as_echo_n "checking for tzname... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13277 | if ${ac_cv_var_tzname+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13278 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13279 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13281 | /* end confdefs.h. */ |
| 13282 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13283 | #if !HAVE_DECL_TZNAME |
| 13284 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13285 | #endif |
| 13286 | |
| 13287 | int |
| 13288 | main () |
| 13289 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13290 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13291 | ; |
| 13292 | return 0; |
| 13293 | } |
| 13294 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13295 | if ac_fn_c_try_link "$LINENO"; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13296 | ac_cv_var_tzname=yes |
| 13297 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13298 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13299 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13300 | rm -f core conftest.err conftest.$ac_objext \ |
| 13301 | conftest$ac_exeext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13302 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 13304 | $as_echo "$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13305 | if test $ac_cv_var_tzname = yes; then |
| 13306 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13307 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13308 | |
| 13309 | fi |
| 13310 | fi |
| 13311 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13312 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13313 | # check tzset(3) exists and works like we expect it to |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
| 13315 | $as_echo_n "checking for working tzset()... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13316 | if ${ac_cv_working_tzset+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13317 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13318 | else |
| 13319 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13320 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13321 | ac_cv_working_tzset=no |
| 13322 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13324 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13325 | |
| 13326 | #include <stdlib.h> |
| 13327 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13328 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13329 | |
| 13330 | #if HAVE_TZNAME |
| 13331 | extern char *tzname[]; |
| 13332 | #endif |
| 13333 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13334 | int main() |
| 13335 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13336 | /* Note that we need to ensure that not only does tzset(3) |
| 13337 | do 'something' with localtime, but it works as documented |
| 13338 | 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] | 13339 | This includes making sure that tzname is set properly if |
| 13340 | tm->tm_zone does not exist since it is the alternative way |
| 13341 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13342 | |
| 13343 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13344 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13345 | */ |
| 13346 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13347 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13348 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 13349 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13350 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13351 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13352 | if (localtime(&groundhogday)->tm_hour != 0) |
| 13353 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13354 | #if HAVE_TZNAME |
| 13355 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 13356 | if (strcmp(tzname[0], "UTC") || |
| 13357 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 13358 | exit(1); |
| 13359 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13360 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13361 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13362 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13363 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13364 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13365 | #if HAVE_TZNAME |
| 13366 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 13367 | exit(1); |
| 13368 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13369 | |
| 13370 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 13371 | tzset(); |
| 13372 | if (localtime(&groundhogday)->tm_hour != 11) |
| 13373 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13374 | #if HAVE_TZNAME |
| 13375 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 13376 | exit(1); |
| 13377 | #endif |
| 13378 | |
| 13379 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13380 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 13381 | exit(1); |
| 13382 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 13383 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13384 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13385 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13386 | exit(0); |
| 13387 | } |
| 13388 | |
| 13389 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13390 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13391 | ac_cv_working_tzset=yes |
| 13392 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13393 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13394 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13395 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13396 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13397 | fi |
| 13398 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13399 | fi |
| 13400 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
| 13402 | $as_echo "$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13403 | if test "$ac_cv_working_tzset" = yes |
| 13404 | then |
| 13405 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13406 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13407 | |
| 13408 | fi |
| 13409 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13410 | # Look for subsecond timestamps in struct stat |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
| 13412 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13413 | if ${ac_cv_stat_tv_nsec+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13414 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13415 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13417 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13418 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13419 | int |
| 13420 | main () |
| 13421 | { |
| 13422 | |
| 13423 | struct stat st; |
| 13424 | st.st_mtim.tv_nsec = 1; |
| 13425 | |
| 13426 | ; |
| 13427 | return 0; |
| 13428 | } |
| 13429 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13430 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 13431 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13432 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13433 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13434 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13436 | fi |
| 13437 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
| 13439 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13440 | if test "$ac_cv_stat_tv_nsec" = yes |
| 13441 | then |
| 13442 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13443 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13444 | |
| 13445 | fi |
| 13446 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13447 | # Look for BSD style subsecond timestamps in struct stat |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
| 13449 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13450 | if ${ac_cv_stat_tv_nsec2+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13451 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13452 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13454 | /* end confdefs.h. */ |
| 13455 | #include <sys/stat.h> |
| 13456 | int |
| 13457 | main () |
| 13458 | { |
| 13459 | |
| 13460 | struct stat st; |
| 13461 | st.st_mtimespec.tv_nsec = 1; |
| 13462 | |
| 13463 | ; |
| 13464 | return 0; |
| 13465 | } |
| 13466 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13467 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13468 | ac_cv_stat_tv_nsec2=yes |
| 13469 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13470 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13471 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13473 | fi |
| 13474 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
| 13476 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13477 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 13478 | then |
| 13479 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13480 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13481 | |
| 13482 | fi |
| 13483 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13484 | # 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] | 13485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
| 13486 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13487 | if ${ac_cv_mvwdelch_is_expression+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13488 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13489 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13491 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13492 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13493 | int |
| 13494 | main () |
| 13495 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13496 | |
| 13497 | int rtn; |
| 13498 | rtn = mvwdelch(0,0,0); |
| 13499 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13500 | ; |
| 13501 | return 0; |
| 13502 | } |
| 13503 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13504 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13505 | ac_cv_mvwdelch_is_expression=yes |
| 13506 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13507 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13508 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13510 | fi |
| 13511 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 13513 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13514 | |
| 13515 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 13516 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13517 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13518 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13519 | |
| 13520 | fi |
| 13521 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
| 13523 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13524 | if ${ac_cv_window_has_flags+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13525 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13526 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13528 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13529 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13530 | int |
| 13531 | main () |
| 13532 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13533 | |
| 13534 | WINDOW *w; |
| 13535 | w->_flags = 0; |
| 13536 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13542 | ac_cv_window_has_flags=yes |
| 13543 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13544 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13545 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13547 | fi |
| 13548 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
| 13550 | $as_echo "$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13551 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13552 | |
| 13553 | if test "$ac_cv_window_has_flags" = yes |
| 13554 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13555 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13556 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13557 | |
| 13558 | fi |
| 13559 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
| 13561 | $as_echo_n "checking for is_term_resized... " >&6; } |
| 13562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13563 | /* end confdefs.h. */ |
| 13564 | #include <curses.h> |
| 13565 | int |
| 13566 | main () |
| 13567 | { |
| 13568 | void *x=is_term_resized |
| 13569 | ; |
| 13570 | return 0; |
| 13571 | } |
| 13572 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13573 | if ac_fn_c_try_compile "$LINENO"; then : |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13574 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13575 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13576 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13578 | $as_echo "yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +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; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13582 | |
| 13583 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13585 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
| 13587 | $as_echo_n "checking for resize_term... " >&6; } |
| 13588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13589 | /* end confdefs.h. */ |
| 13590 | #include <curses.h> |
| 13591 | int |
| 13592 | main () |
| 13593 | { |
| 13594 | void *x=resize_term |
| 13595 | ; |
| 13596 | return 0; |
| 13597 | } |
| 13598 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13599 | if ac_fn_c_try_compile "$LINENO"; then : |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13600 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13601 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13602 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13604 | $as_echo "yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13605 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13607 | $as_echo "no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13608 | |
| 13609 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13611 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
| 13613 | $as_echo_n "checking for resizeterm... " >&6; } |
| 13614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13615 | /* end confdefs.h. */ |
| 13616 | #include <curses.h> |
| 13617 | int |
| 13618 | main () |
| 13619 | { |
| 13620 | void *x=resizeterm |
| 13621 | ; |
| 13622 | return 0; |
| 13623 | } |
| 13624 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13625 | if ac_fn_c_try_compile "$LINENO"; then : |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13626 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13627 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13628 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13630 | $as_echo "yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13631 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13633 | $as_echo "no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13634 | |
| 13635 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13637 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 13639 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 13640 | |
| 13641 | if test -r /dev/ptmx |
| 13642 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13644 | $as_echo "yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13645 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13646 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13647 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 13648 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13650 | $as_echo "no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13651 | fi |
| 13652 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 13654 | $as_echo_n "checking for /dev/ptc... " >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 13655 | |
| 13656 | if test -r /dev/ptc |
| 13657 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13659 | $as_echo "yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13660 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13661 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13662 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 13663 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13665 | $as_echo "no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13666 | fi |
| 13667 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13668 | if test "$have_long_long" = yes |
| 13669 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 |
| 13671 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13672 | if ${ac_cv_have_long_long_format+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13673 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13674 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13675 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13676 | ac_cv_have_long_long_format=no |
| 13677 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13679 | /* end confdefs.h. */ |
| 13680 | |
| 13681 | #include <stdio.h> |
| 13682 | #include <stddef.h> |
| 13683 | #include <string.h> |
| 13684 | |
| 13685 | #ifdef HAVE_SYS_TYPES_H |
| 13686 | #include <sys/types.h> |
| 13687 | #endif |
| 13688 | |
| 13689 | int main() |
| 13690 | { |
| 13691 | char buffer[256]; |
| 13692 | |
| 13693 | if (sprintf(buffer, "%lld", (long long)123) < 0) |
| 13694 | return 1; |
| 13695 | if (strcmp(buffer, "123")) |
| 13696 | return 1; |
| 13697 | |
| 13698 | if (sprintf(buffer, "%lld", (long long)-123) < 0) |
| 13699 | return 1; |
| 13700 | if (strcmp(buffer, "-123")) |
| 13701 | return 1; |
| 13702 | |
| 13703 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) |
| 13704 | return 1; |
| 13705 | if (strcmp(buffer, "123")) |
| 13706 | return 1; |
| 13707 | |
| 13708 | return 0; |
| 13709 | } |
| 13710 | |
| 13711 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13712 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13713 | ac_cv_have_long_long_format=yes |
| 13714 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13715 | ac_cv_have_long_long_format=no |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13716 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13717 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13718 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13719 | fi |
| 13720 | |
| 13721 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13722 | fi |
| 13723 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 |
| 13725 | $as_echo "$ac_cv_have_long_long_format" >&6; } |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13726 | fi |
| 13727 | |
Mark Dickinson | 5ce8474 | 2009-12-31 20:48:04 +0000 | [diff] [blame] | 13728 | if test "$ac_cv_have_long_long_format" = yes |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13729 | then |
| 13730 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13731 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13732 | |
| 13733 | fi |
| 13734 | |
Ronald Oussoren | 315cd0c | 2009-11-19 16:25:21 +0000 | [diff] [blame] | 13735 | if test $ac_sys_system = Darwin |
| 13736 | then |
| 13737 | LIBS="$LIBS -framework CoreFoundation" |
| 13738 | fi |
| 13739 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13740 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
| 13742 | $as_echo_n "checking for %zd printf() format support... " >&6; } |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13743 | if ${ac_cv_have_size_t_format+:} false; then : |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13744 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13745 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13746 | if test "$cross_compiling" = yes; then : |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 13747 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 13748 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13749 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13751 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13752 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13753 | #include <stdio.h> |
| 13754 | #include <stddef.h> |
| 13755 | #include <string.h> |
| 13756 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 13757 | #ifdef HAVE_SYS_TYPES_H |
| 13758 | #include <sys/types.h> |
| 13759 | #endif |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 13760 | |
| 13761 | #ifdef HAVE_SSIZE_T |
| 13762 | typedef ssize_t Py_ssize_t; |
| 13763 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 13764 | typedef long Py_ssize_t; |
| 13765 | #else |
| 13766 | typedef int Py_ssize_t; |
| 13767 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13768 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 13769 | int main() |
| 13770 | { |
| 13771 | char buffer[256]; |
| 13772 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13773 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 13774 | return 1; |
| 13775 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 13776 | if (strcmp(buffer, "123")) |
| 13777 | return 1; |
| 13778 | |
| 13779 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 13780 | return 1; |
| 13781 | |
| 13782 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13783 | return 1; |
| 13784 | |
| 13785 | return 0; |
| 13786 | } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13787 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13788 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13789 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13790 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13791 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13792 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13793 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13794 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13795 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 13796 | fi |
| 13797 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13798 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 |
| 13800 | $as_echo "$ac_cv_have_size_t_format" >&6; } |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 13801 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13802 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13803 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13804 | |
| 13805 | fi |
| 13806 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13807 | 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] | 13808 | #ifdef HAVE_SYS_TYPES_H |
| 13809 | #include <sys/types.h> |
| 13810 | #endif |
| 13811 | #ifdef HAVE_SYS_SOCKET_H |
| 13812 | #include <sys/socket.h> |
| 13813 | #endif |
| 13814 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13815 | " |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13816 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 13817 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13818 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13819 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13820 | $as_echo "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13821 | |
| 13822 | fi |
| 13823 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13824 | |
Benjamin Peterson | 7497e91 | 2010-10-16 00:53:39 +0000 | [diff] [blame] | 13825 | case $ac_sys_system in |
| 13826 | AIX*) |
| 13827 | |
| 13828 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h |
| 13829 | ;; |
| 13830 | esac |
| 13831 | |
| 13832 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13833 | |
| 13834 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 13835 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 13836 | do |
| 13837 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 13838 | done |
| 13839 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13840 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 13841 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
| 13843 | $as_echo_n "checking for build directories... " >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13844 | for dir in $SRCDIRS; do |
| 13845 | if test ! -d $dir; then |
| 13846 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 13847 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13848 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 13850 | $as_echo "done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 13851 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13852 | # generate output files |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 13853 | 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] | 13854 | |
Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 13855 | ac_config_files="$ac_config_files Modules/ld_so_aix" |
| 13856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13857 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13858 | # This file is a shell script that caches the results of configure |
| 13859 | # 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] | 13860 | # scripts and configure runs, see configure's option --config-cache. |
| 13861 | # It is not useful on other systems. If it contains results you don't |
| 13862 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13863 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13864 | # config.status only pays attention to the cache file if you give it |
| 13865 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13866 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13867 | # `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] | 13868 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13869 | # following values. |
| 13870 | |
| 13871 | _ACEOF |
| 13872 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13873 | # The following way of writing the cache mishandles newlines in values, |
| 13874 | # 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] | 13875 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13876 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13877 | # 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] | 13878 | ( |
| 13879 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13880 | eval ac_val=\$$ac_var |
| 13881 | case $ac_val in #( |
| 13882 | *${as_nl}*) |
| 13883 | case $ac_var in #( |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13884 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 13885 | $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] | 13886 | esac |
| 13887 | case $ac_var in #( |
| 13888 | _ | IFS | as_nl) ;; #( |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13889 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 13890 | *) { eval $ac_var=; unset $ac_var;} ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13891 | esac ;; |
| 13892 | esac |
| 13893 | done |
| 13894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13895 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13896 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13897 | *${as_nl}ac_space=\ *) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13898 | # `set' does not quote correctly, so add quotes: double-quote |
| 13899 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13900 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13901 | "s/'/'\\\\''/g; |
| 13902 | 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] | 13903 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13904 | *) |
| 13905 | # `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] | 13906 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13907 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13908 | esac | |
| 13909 | sort |
| 13910 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13911 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13912 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13913 | t clear |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13914 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13915 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13916 | t end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13917 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13918 | :end' >>confcache |
| 13919 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13920 | if test -w "$cache_file"; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13921 | if test "x$cache_file" != "x/dev/null"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13922 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 13923 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13924 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 13925 | cat confcache >"$cache_file" |
| 13926 | else |
| 13927 | case $cache_file in #( |
| 13928 | */* | ?:*) |
| 13929 | mv -f confcache "$cache_file"$$ && |
| 13930 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 13931 | *) |
| 13932 | mv -f confcache "$cache_file" ;; |
| 13933 | esac |
| 13934 | fi |
| 13935 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13936 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13937 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 13938 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13939 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13940 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13941 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13942 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13943 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13944 | # Let make expand exec_prefix. |
| 13945 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13946 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13947 | DEFS=-DHAVE_CONFIG_H |
| 13948 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13949 | ac_libobjs= |
| 13950 | ac_ltlibobjs= |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13951 | U= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13952 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13953 | # 1. Remove the extension, and $U if already installed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13954 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13955 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13956 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 13957 | # will be set to the directory where LIBOBJS objects are built. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13958 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 13959 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13960 | done |
| 13961 | LIBOBJS=$ac_libobjs |
| 13962 | |
| 13963 | LTLIBOBJS=$ac_ltlibobjs |
| 13964 | |
| 13965 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13966 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13967 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 13968 | : "${CONFIG_STATUS=./config.status}" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13969 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13970 | ac_clean_files_save=$ac_clean_files |
| 13971 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13972 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 13973 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 13974 | as_write_fail=0 |
| 13975 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13976 | #! $SHELL |
| 13977 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13978 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13979 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13980 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13981 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13982 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13983 | ac_cs_recheck=false |
| 13984 | ac_cs_silent=false |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13985 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13986 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 13987 | export SHELL |
| 13988 | _ASEOF |
| 13989 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 13990 | ## -------------------- ## |
| 13991 | ## M4sh Initialization. ## |
| 13992 | ## -------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13993 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13994 | # Be more Bourne compatible |
| 13995 | DUALCASE=1; export DUALCASE # for MKS sh |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13996 | 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] | 13997 | emulate sh |
| 13998 | NULLCMD=: |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13999 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14000 | # is contrary to our usage. Disable this feature. |
| 14001 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14002 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 14003 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14004 | case `(set -o) 2>/dev/null` in #( |
| 14005 | *posix*) : |
| 14006 | set -o posix ;; #( |
| 14007 | *) : |
| 14008 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14009 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14010 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14011 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14012 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14013 | as_nl=' |
| 14014 | ' |
| 14015 | export as_nl |
| 14016 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 14017 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 14018 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 14019 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 14020 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 14021 | # but without wasting forks for bash or zsh. |
| 14022 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 14023 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 14024 | as_echo='print -r --' |
| 14025 | as_echo_n='print -rn --' |
| 14026 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 14027 | as_echo='printf %s\n' |
| 14028 | as_echo_n='printf %s' |
| 14029 | else |
| 14030 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 14031 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 14032 | as_echo_n='/usr/ucb/echo -n' |
| 14033 | else |
| 14034 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 14035 | as_echo_n_body='eval |
| 14036 | arg=$1; |
| 14037 | case $arg in #( |
| 14038 | *"$as_nl"*) |
| 14039 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 14040 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 14041 | esac; |
| 14042 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 14043 | ' |
| 14044 | export as_echo_n_body |
| 14045 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 14046 | fi |
| 14047 | export as_echo_body |
| 14048 | as_echo='sh -c $as_echo_body as_echo' |
| 14049 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14050 | |
| 14051 | # The user is always right. |
| 14052 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14053 | PATH_SEPARATOR=: |
| 14054 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 14055 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 14056 | PATH_SEPARATOR=';' |
| 14057 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14058 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14059 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14060 | |
| 14061 | # IFS |
| 14062 | # We need space, tab and new line, in precisely that order. Quoting is |
| 14063 | # there to prevent editors from complaining about space-tab. |
| 14064 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 14065 | # splitting by setting IFS to empty value.) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14066 | IFS=" "" $as_nl" |
| 14067 | |
| 14068 | # Find who we are. Look in the path if we contain no directory separator. |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14069 | as_myself= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14070 | case $0 in #(( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14071 | *[\\/]* ) as_myself=$0 ;; |
| 14072 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14073 | for as_dir in $PATH |
| 14074 | do |
| 14075 | IFS=$as_save_IFS |
| 14076 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14077 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 14078 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14079 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14080 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14081 | ;; |
| 14082 | esac |
| 14083 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 14084 | # in which case we are not to be found in the path. |
| 14085 | if test "x$as_myself" = x; then |
| 14086 | as_myself=$0 |
| 14087 | fi |
| 14088 | if test ! -f "$as_myself"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14089 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 14090 | exit 1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14091 | fi |
| 14092 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14093 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 14094 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 14095 | # suppresses any "Segmentation fault" message there. '((' could |
| 14096 | # trigger a bug in pdksh 5.2.14. |
| 14097 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 14098 | do eval test x\${$as_var+set} = xset \ |
| 14099 | && ( (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] | 14100 | done |
| 14101 | PS1='$ ' |
| 14102 | PS2='> ' |
| 14103 | PS4='+ ' |
| 14104 | |
| 14105 | # NLS nuisances. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14106 | LC_ALL=C |
| 14107 | export LC_ALL |
| 14108 | LANGUAGE=C |
| 14109 | export LANGUAGE |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14110 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14111 | # CDPATH. |
| 14112 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 14113 | |
| 14114 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14115 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 14116 | # ---------------------------------------- |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14117 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 14118 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14119 | # script with STATUS, using 1 if that was 0. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14120 | as_fn_error () |
| 14121 | { |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14122 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 14123 | if test "$4"; then |
| 14124 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 14125 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14126 | fi |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14127 | $as_echo "$as_me: error: $2" >&2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14128 | as_fn_exit $as_status |
| 14129 | } # as_fn_error |
| 14130 | |
| 14131 | |
| 14132 | # as_fn_set_status STATUS |
| 14133 | # ----------------------- |
| 14134 | # Set $? to STATUS, without forking. |
| 14135 | as_fn_set_status () |
| 14136 | { |
| 14137 | return $1 |
| 14138 | } # as_fn_set_status |
| 14139 | |
| 14140 | # as_fn_exit STATUS |
| 14141 | # ----------------- |
| 14142 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 14143 | as_fn_exit () |
| 14144 | { |
| 14145 | set +e |
| 14146 | as_fn_set_status $1 |
| 14147 | exit $1 |
| 14148 | } # as_fn_exit |
| 14149 | |
| 14150 | # as_fn_unset VAR |
| 14151 | # --------------- |
| 14152 | # Portably unset VAR. |
| 14153 | as_fn_unset () |
| 14154 | { |
| 14155 | { eval $1=; unset $1;} |
| 14156 | } |
| 14157 | as_unset=as_fn_unset |
| 14158 | # as_fn_append VAR VALUE |
| 14159 | # ---------------------- |
| 14160 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 14161 | # advantage of any shell optimizations that allow amortized linear growth over |
| 14162 | # repeated appends, instead of the typical quadratic growth present in naive |
| 14163 | # implementations. |
| 14164 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 14165 | eval 'as_fn_append () |
| 14166 | { |
| 14167 | eval $1+=\$2 |
| 14168 | }' |
| 14169 | else |
| 14170 | as_fn_append () |
| 14171 | { |
| 14172 | eval $1=\$$1\$2 |
| 14173 | } |
| 14174 | fi # as_fn_append |
| 14175 | |
| 14176 | # as_fn_arith ARG... |
| 14177 | # ------------------ |
| 14178 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 14179 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 14180 | # must be portable across $(()) and expr. |
| 14181 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 14182 | eval 'as_fn_arith () |
| 14183 | { |
| 14184 | as_val=$(( $* )) |
| 14185 | }' |
| 14186 | else |
| 14187 | as_fn_arith () |
| 14188 | { |
| 14189 | as_val=`expr "$@" || test $? -eq 1` |
| 14190 | } |
| 14191 | fi # as_fn_arith |
| 14192 | |
| 14193 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14194 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 14195 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 14196 | as_expr=expr |
| 14197 | else |
| 14198 | as_expr=false |
| 14199 | fi |
| 14200 | |
| 14201 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 14202 | as_basename=basename |
| 14203 | else |
| 14204 | as_basename=false |
| 14205 | fi |
| 14206 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14207 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 14208 | as_dirname=dirname |
| 14209 | else |
| 14210 | as_dirname=false |
| 14211 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14212 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14213 | as_me=`$as_basename -- "$0" || |
| 14214 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 14215 | X"$0" : 'X\(//\)$' \| \ |
| 14216 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14217 | $as_echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14218 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 14219 | s//\1/ |
| 14220 | q |
| 14221 | } |
| 14222 | /^X\/\(\/\/\)$/{ |
| 14223 | s//\1/ |
| 14224 | q |
| 14225 | } |
| 14226 | /^X\/\(\/\).*/{ |
| 14227 | s//\1/ |
| 14228 | q |
| 14229 | } |
| 14230 | s/.*/./; q'` |
| 14231 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14232 | # Avoid depending upon Character Ranges. |
| 14233 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 14234 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 14235 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14236 | as_cr_digits='0123456789' |
| 14237 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14238 | |
| 14239 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14240 | case `echo -n x` in #((((( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14241 | -n*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14242 | case `echo 'xy\c'` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14243 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14244 | xy) ECHO_C='\c';; |
| 14245 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 14246 | ECHO_T=' ';; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14247 | esac;; |
| 14248 | *) |
| 14249 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14250 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14252 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14253 | if test -d conf$$.dir; then |
| 14254 | rm -f conf$$.dir/conf$$.file |
| 14255 | else |
| 14256 | rm -f conf$$.dir |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14257 | mkdir conf$$.dir 2>/dev/null |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14258 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14259 | if (echo >conf$$.file) 2>/dev/null; then |
| 14260 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 14261 | as_ln_s='ln -s' |
| 14262 | # ... but there are two gotchas: |
| 14263 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 14264 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 14265 | # In both cases, we have to default to `cp -p'. |
| 14266 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 14267 | as_ln_s='cp -p' |
| 14268 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 14269 | as_ln_s=ln |
| 14270 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14271 | as_ln_s='cp -p' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14272 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14273 | else |
| 14274 | as_ln_s='cp -p' |
| 14275 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14276 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 14277 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14278 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14279 | |
| 14280 | # as_fn_mkdir_p |
| 14281 | # ------------- |
| 14282 | # Create "$as_dir" as a directory, including parents if necessary. |
| 14283 | as_fn_mkdir_p () |
| 14284 | { |
| 14285 | |
| 14286 | case $as_dir in #( |
| 14287 | -*) as_dir=./$as_dir;; |
| 14288 | esac |
| 14289 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 14290 | as_dirs= |
| 14291 | while :; do |
| 14292 | case $as_dir in #( |
| 14293 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 14294 | *) as_qdir=$as_dir;; |
| 14295 | esac |
| 14296 | as_dirs="'$as_qdir' $as_dirs" |
| 14297 | as_dir=`$as_dirname -- "$as_dir" || |
| 14298 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14299 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 14300 | X"$as_dir" : 'X\(//\)$' \| \ |
| 14301 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 14302 | $as_echo X"$as_dir" | |
| 14303 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14304 | s//\1/ |
| 14305 | q |
| 14306 | } |
| 14307 | /^X\(\/\/\)[^/].*/{ |
| 14308 | s//\1/ |
| 14309 | q |
| 14310 | } |
| 14311 | /^X\(\/\/\)$/{ |
| 14312 | s//\1/ |
| 14313 | q |
| 14314 | } |
| 14315 | /^X\(\/\).*/{ |
| 14316 | s//\1/ |
| 14317 | q |
| 14318 | } |
| 14319 | s/.*/./; q'` |
| 14320 | test -d "$as_dir" && break |
| 14321 | done |
| 14322 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14323 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14324 | |
| 14325 | |
| 14326 | } # as_fn_mkdir_p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14327 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14328 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14329 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14330 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14331 | as_mkdir_p=false |
| 14332 | fi |
| 14333 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14334 | if test -x / >/dev/null 2>&1; then |
| 14335 | as_test_x='test -x' |
| 14336 | else |
| 14337 | if ls -dL / >/dev/null 2>&1; then |
| 14338 | as_ls_L_option=L |
| 14339 | else |
| 14340 | as_ls_L_option= |
| 14341 | fi |
| 14342 | as_test_x=' |
| 14343 | eval sh -c '\'' |
| 14344 | if test -d "$1"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14345 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14346 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14347 | case $1 in #( |
| 14348 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14349 | esac; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14350 | 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] | 14351 | ???[sx]*):;;*)false;;esac;fi |
| 14352 | '\'' sh |
| 14353 | ' |
| 14354 | fi |
| 14355 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14356 | |
| 14357 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14358 | 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] | 14359 | |
| 14360 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14361 | 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] | 14362 | |
| 14363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14364 | exec 6>&1 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14365 | ## ----------------------------------- ## |
| 14366 | ## Main body of $CONFIG_STATUS script. ## |
| 14367 | ## ----------------------------------- ## |
| 14368 | _ASEOF |
| 14369 | 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] | 14370 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14371 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14372 | # 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] | 14373 | # 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] | 14374 | # values after options handling. |
| 14375 | ac_log=" |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 14376 | This file was extended by python $as_me 2.7, which was |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14377 | generated by GNU Autoconf 2.68. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14378 | |
| 14379 | CONFIG_FILES = $CONFIG_FILES |
| 14380 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 14381 | CONFIG_LINKS = $CONFIG_LINKS |
| 14382 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 14383 | $ $0 $@ |
| 14384 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14385 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 14386 | " |
| 14387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14388 | _ACEOF |
| 14389 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14390 | case $ac_config_files in *" |
| 14391 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 14392 | esac |
| 14393 | |
| 14394 | case $ac_config_headers in *" |
| 14395 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 14396 | esac |
| 14397 | |
| 14398 | |
| 14399 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14400 | # Files that config.status was made for. |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14401 | config_files="$ac_config_files" |
| 14402 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14403 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14404 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14405 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14406 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14407 | ac_cs_usage="\ |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14408 | \`$as_me' instantiates files and other configuration actions |
| 14409 | from templates according to the current configuration. Unless the files |
| 14410 | 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] | 14411 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14412 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14413 | |
| 14414 | -h, --help print this help, then exit |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14415 | -V, --version print version number and configuration settings, then exit |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14416 | --config print configuration, then exit |
| 14417 | -q, --quiet, --silent |
| 14418 | do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14419 | -d, --debug don't remove temporary files |
| 14420 | --recheck update $as_me by reconfiguring in the same conditions |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14421 | --file=FILE[:TEMPLATE] |
| 14422 | instantiate the configuration file FILE |
| 14423 | --header=FILE[:TEMPLATE] |
| 14424 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14425 | |
| 14426 | Configuration files: |
| 14427 | $config_files |
| 14428 | |
| 14429 | Configuration headers: |
| 14430 | $config_headers |
| 14431 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14432 | Report bugs to <http://bugs.python.org/>." |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 14433 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14434 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14435 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14436 | 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] | 14437 | ac_cs_version="\\ |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 14438 | python config.status 2.7 |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14439 | configured by $0, generated by GNU Autoconf 2.68, |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14440 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14441 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14442 | Copyright (C) 2010 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14443 | This config.status script is free software; the Free Software Foundation |
| 14444 | gives unlimited permission to copy, distribute and modify it." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14445 | |
| 14446 | ac_pwd='$ac_pwd' |
| 14447 | srcdir='$srcdir' |
| 14448 | INSTALL='$INSTALL' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14449 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14450 | _ACEOF |
| 14451 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14452 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14453 | # 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] | 14454 | ac_need_defaults=: |
| 14455 | while test $# != 0 |
| 14456 | do |
| 14457 | case $1 in |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14458 | --*=?*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14459 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14460 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14461 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14462 | ;; |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14463 | --*=) |
| 14464 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14465 | ac_optarg= |
| 14466 | ac_shift=: |
| 14467 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14468 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14469 | ac_option=$1 |
| 14470 | ac_optarg=$2 |
| 14471 | ac_shift=shift |
| 14472 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14473 | esac |
| 14474 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14475 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14476 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14477 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 14478 | ac_cs_recheck=: ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14479 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14480 | $as_echo "$ac_cs_version"; exit ;; |
| 14481 | --config | --confi | --conf | --con | --co | --c ) |
| 14482 | $as_echo "$ac_cs_config"; exit ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14483 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14484 | debug=: ;; |
| 14485 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14486 | $ac_shift |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14487 | case $ac_optarg in |
| 14488 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14489 | '') as_fn_error $? "missing file argument" ;; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14490 | esac |
| 14491 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14492 | ac_need_defaults=false;; |
| 14493 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14494 | $ac_shift |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14495 | case $ac_optarg in |
| 14496 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 14497 | esac |
| 14498 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14499 | ac_need_defaults=false;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14500 | --he | --h) |
| 14501 | # Conflict between --help and --header |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14502 | as_fn_error $? "ambiguous option: \`$1' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14503 | Try \`$0 --help' for more information.";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14504 | --help | --hel | -h ) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14505 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14506 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 14507 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 14508 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14509 | |
| 14510 | # This is an error. |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14511 | -*) as_fn_error $? "unrecognized option: \`$1' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14512 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14513 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14514 | *) as_fn_append ac_config_targets " $1" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14515 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14516 | |
| 14517 | esac |
| 14518 | shift |
| 14519 | done |
| 14520 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14521 | ac_configure_extra_args= |
| 14522 | |
| 14523 | if $ac_cs_silent; then |
| 14524 | exec 6>/dev/null |
| 14525 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 14526 | fi |
| 14527 | |
| 14528 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14529 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14530 | if \$ac_cs_recheck; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14531 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 14532 | shift |
| 14533 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 14534 | CONFIG_SHELL='$SHELL' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14535 | export CONFIG_SHELL |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14536 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14537 | fi |
| 14538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14539 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14540 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14541 | exec 5>>config.log |
| 14542 | { |
| 14543 | echo |
| 14544 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 14545 | ## Running $as_me. ## |
| 14546 | _ASBOX |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14547 | $as_echo "$ac_log" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14548 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14549 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14550 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14551 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14552 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14555 | |
| 14556 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14557 | for ac_config_target in $ac_config_targets |
| 14558 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14559 | case $ac_config_target in |
| 14560 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 14561 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 14562 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 14563 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 14564 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 14565 | "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] | 14566 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 14567 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 14568 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 14569 | "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] | 14570 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14571 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14572 | esac |
| 14573 | done |
| 14574 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14576 | # If the user did not use the arguments to specify the items to instantiate, |
| 14577 | # then the envvar interface is used. Set only those that are not. |
| 14578 | # We use the long form for the default assignment because of an extremely |
| 14579 | # bizarre bug on SunOS 4.1.3. |
| 14580 | if $ac_need_defaults; then |
| 14581 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 14582 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 14583 | fi |
| 14584 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14585 | # 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] | 14586 | # 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] | 14587 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14588 | # Hook for its removal unless debugging. |
| 14589 | # Note that there is a small window in which the directory will not be cleaned: |
| 14590 | # 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] | 14591 | $debug || |
| 14592 | { |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14593 | tmp= ac_tmp= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14594 | trap 'exit_status=$? |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14595 | : "${ac_tmp:=$tmp}" |
| 14596 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14597 | ' 0 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14598 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14599 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14600 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14601 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14602 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14603 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14604 | test -d "$tmp" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14605 | } || |
| 14606 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14607 | tmp=./conf$$-$RANDOM |
| 14608 | (umask 077 && mkdir "$tmp") |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14609 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 14610 | ac_tmp=$tmp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14611 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14612 | # Set up the scripts for CONFIG_FILES section. |
| 14613 | # No need to generate them if there are no CONFIG_FILES. |
| 14614 | # This happens for instance with `./config.status config.h'. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14615 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14616 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14617 | |
| 14618 | ac_cr=`echo X | tr X '\015'` |
| 14619 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 14620 | # But we know of no other shell where ac_cr would be empty at this |
| 14621 | # point, so we can use a bashism as a fallback. |
| 14622 | if test "x$ac_cr" = x; then |
| 14623 | eval ac_cr=\$\'\\r\' |
| 14624 | fi |
| 14625 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 14626 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14627 | ac_cs_awk_cr='\\r' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14628 | else |
| 14629 | ac_cs_awk_cr=$ac_cr |
| 14630 | fi |
| 14631 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14632 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14633 | _ACEOF |
| 14634 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14635 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14636 | { |
| 14637 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 14638 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 14639 | echo "_ACEOF" |
| 14640 | } >conf$$subs.sh || |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14641 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 14642 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14643 | ac_delim='%!_!# ' |
| 14644 | for ac_last_try in false false false false false :; do |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14645 | . ./conf$$subs.sh || |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14646 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14647 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14648 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 14649 | if test $ac_delim_n = $ac_delim_num; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14650 | break |
| 14651 | elif $ac_last_try; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14652 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14653 | else |
| 14654 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14655 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14656 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14657 | rm -f conf$$subs.sh |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14658 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14659 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14660 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14661 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14662 | sed -n ' |
| 14663 | h |
| 14664 | s/^/S["/; s/!.*/"]=/ |
| 14665 | p |
| 14666 | g |
| 14667 | s/^[^!]*!// |
| 14668 | :repl |
| 14669 | t repl |
| 14670 | s/'"$ac_delim"'$// |
| 14671 | t delim |
| 14672 | :nl |
| 14673 | h |
| 14674 | s/\(.\{148\}\)..*/\1/ |
| 14675 | t more1 |
| 14676 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14677 | p |
| 14678 | n |
| 14679 | b repl |
| 14680 | :more1 |
| 14681 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14682 | p |
| 14683 | g |
| 14684 | s/.\{148\}// |
| 14685 | t nl |
| 14686 | :delim |
| 14687 | h |
| 14688 | s/\(.\{148\}\)..*/\1/ |
| 14689 | t more2 |
| 14690 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14691 | p |
| 14692 | b |
| 14693 | :more2 |
| 14694 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14695 | p |
| 14696 | g |
| 14697 | s/.\{148\}// |
| 14698 | t delim |
| 14699 | ' <conf$$subs.awk | sed ' |
| 14700 | /^[^""]/{ |
| 14701 | N |
| 14702 | s/\n// |
| 14703 | } |
| 14704 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14705 | rm -f conf$$subs.awk |
| 14706 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14707 | _ACAWK |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14708 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14709 | for (key in S) S_is_set[key] = 1 |
| 14710 | FS = "" |
| 14711 | |
| 14712 | } |
| 14713 | { |
| 14714 | line = $ 0 |
| 14715 | nfields = split(line, field, "@") |
| 14716 | substed = 0 |
| 14717 | len = length(field[1]) |
| 14718 | for (i = 2; i < nfields; i++) { |
| 14719 | key = field[i] |
| 14720 | keylen = length(key) |
| 14721 | if (S_is_set[key]) { |
| 14722 | value = S[key] |
| 14723 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 14724 | len += length(value) + length(field[++i]) |
| 14725 | substed = 1 |
| 14726 | } else |
| 14727 | len += 1 + keylen |
| 14728 | } |
| 14729 | |
| 14730 | print line |
| 14731 | } |
| 14732 | |
| 14733 | _ACAWK |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14734 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14735 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14736 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 14737 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 14738 | else |
| 14739 | cat |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14740 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 14741 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14742 | _ACEOF |
| 14743 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14744 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 14745 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14746 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14747 | # (actually we leave an empty line to preserve line numbers). |
| 14748 | if test "x$srcdir" = x.; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14749 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 14750 | h |
| 14751 | s/// |
| 14752 | s/^/:/ |
| 14753 | s/[ ]*$/:/ |
| 14754 | s/:\$(srcdir):/:/g |
| 14755 | s/:\${srcdir}:/:/g |
| 14756 | s/:@srcdir@:/:/g |
| 14757 | s/^:*// |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14758 | s/:*$// |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14759 | x |
| 14760 | s/\(=[ ]*\).*/\1/ |
| 14761 | G |
| 14762 | s/\n// |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14763 | s/^[^=]*=[ ]*$// |
| 14764 | }' |
| 14765 | fi |
| 14766 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14767 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14768 | fi # test -n "$CONFIG_FILES" |
| 14769 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14770 | # Set up the scripts for CONFIG_HEADERS section. |
| 14771 | # No need to generate them if there are no CONFIG_HEADERS. |
| 14772 | # This happens for instance with `./config.status Makefile'. |
| 14773 | if test -n "$CONFIG_HEADERS"; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14774 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14775 | BEGIN { |
| 14776 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14777 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14778 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 14779 | # here-document in config.status, that substitutes the proper values into |
| 14780 | # config.h.in to produce config.h. |
| 14781 | |
| 14782 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 14783 | # handling of long lines. |
| 14784 | ac_delim='%!_!# ' |
| 14785 | for ac_last_try in false false :; do |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14786 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 14787 | if test -z "$ac_tt"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14788 | break |
| 14789 | elif $ac_last_try; then |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14790 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14791 | else |
| 14792 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14793 | fi |
| 14794 | done |
| 14795 | |
| 14796 | # For the awk script, D is an array of macro values keyed by name, |
| 14797 | # likewise P contains macro parameters if any. Preserve backslash |
| 14798 | # newline sequences. |
| 14799 | |
| 14800 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14801 | sed -n ' |
| 14802 | s/.\{148\}/&'"$ac_delim"'/g |
| 14803 | t rset |
| 14804 | :rset |
| 14805 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 14806 | t def |
| 14807 | d |
| 14808 | :def |
| 14809 | s/\\$// |
| 14810 | t bsnl |
| 14811 | s/["\\]/\\&/g |
| 14812 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14813 | D["\1"]=" \3"/p |
| 14814 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 14815 | d |
| 14816 | :bsnl |
| 14817 | s/["\\]/\\&/g |
| 14818 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14819 | D["\1"]=" \3\\\\\\n"\\/p |
| 14820 | t cont |
| 14821 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 14822 | t cont |
| 14823 | d |
| 14824 | :cont |
| 14825 | n |
| 14826 | s/.\{148\}/&'"$ac_delim"'/g |
| 14827 | t clear |
| 14828 | :clear |
| 14829 | s/\\$// |
| 14830 | t bsnlc |
| 14831 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 14832 | d |
| 14833 | :bsnlc |
| 14834 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 14835 | b cont |
| 14836 | ' <confdefs.h | sed ' |
| 14837 | s/'"$ac_delim"'/"\\\ |
| 14838 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14839 | |
| 14840 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14841 | for (key in D) D_is_set[key] = 1 |
| 14842 | FS = "" |
| 14843 | } |
| 14844 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 14845 | line = \$ 0 |
| 14846 | split(line, arg, " ") |
| 14847 | if (arg[1] == "#") { |
| 14848 | defundef = arg[2] |
| 14849 | mac1 = arg[3] |
| 14850 | } else { |
| 14851 | defundef = substr(arg[1], 2) |
| 14852 | mac1 = arg[2] |
| 14853 | } |
| 14854 | split(mac1, mac2, "(") #) |
| 14855 | macro = mac2[1] |
| 14856 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 14857 | if (D_is_set[macro]) { |
| 14858 | # Preserve the white space surrounding the "#". |
| 14859 | print prefix "define", macro P[macro] D[macro] |
| 14860 | next |
| 14861 | } else { |
| 14862 | # Replace #undef with comments. This is necessary, for example, |
| 14863 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 14864 | # on some systems where configure will not decide to define it. |
| 14865 | if (defundef == "undef") { |
| 14866 | print "/*", prefix defundef, macro, "*/" |
| 14867 | next |
| 14868 | } |
| 14869 | } |
| 14870 | } |
| 14871 | { print } |
| 14872 | _ACAWK |
| 14873 | _ACEOF |
| 14874 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14875 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14876 | fi # test -n "$CONFIG_HEADERS" |
| 14877 | |
| 14878 | |
| 14879 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 14880 | shift |
| 14881 | for ac_tag |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14882 | do |
| 14883 | case $ac_tag in |
| 14884 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 14885 | esac |
| 14886 | case $ac_mode$ac_tag in |
| 14887 | :[FHL]*:*);; |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14888 | :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] | 14889 | :[FH]-) ac_tag=-:-;; |
| 14890 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 14891 | esac |
| 14892 | ac_save_IFS=$IFS |
| 14893 | IFS=: |
| 14894 | set x $ac_tag |
| 14895 | IFS=$ac_save_IFS |
| 14896 | shift |
| 14897 | ac_file=$1 |
| 14898 | shift |
| 14899 | |
| 14900 | case $ac_mode in |
| 14901 | :L) ac_source=$1;; |
| 14902 | :[FH]) |
| 14903 | ac_file_inputs= |
| 14904 | for ac_f |
| 14905 | do |
| 14906 | case $ac_f in |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14907 | -) ac_f="$ac_tmp/stdin";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14908 | *) # Look for the file first in the build tree, then in the source tree |
| 14909 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 14910 | # because $ac_f cannot contain `:'. |
| 14911 | test -f "$ac_f" || |
| 14912 | case $ac_f in |
| 14913 | [\\/$]*) false;; |
| 14914 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 14915 | esac || |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14916 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14917 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14918 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 14919 | as_fn_append ac_file_inputs " '$ac_f'" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14920 | done |
| 14921 | |
| 14922 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14923 | # use $as_me), people would be surprised to read: |
| 14924 | # /* config.h. Generated by config.status. */ |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14925 | configure_input='Generated from '` |
| 14926 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 14927 | `' by configure.' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14928 | if test x"$ac_file" != x-; then |
| 14929 | configure_input="$ac_file. $configure_input" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14930 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 14931 | $as_echo "$as_me: creating $ac_file" >&6;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14932 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14933 | # Neutralize special characters interpreted by sed in replacement strings. |
| 14934 | case $configure_input in #( |
| 14935 | *\&* | *\|* | *\\* ) |
| 14936 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 14937 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 14938 | *) ac_sed_conf_input=$configure_input;; |
| 14939 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14940 | |
| 14941 | case $ac_tag in |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 14942 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 14943 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14944 | esac |
| 14945 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14946 | esac |
| 14947 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14948 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14949 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14950 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14951 | X"$ac_file" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14952 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14953 | $as_echo X"$ac_file" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14954 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14955 | s//\1/ |
| 14956 | q |
| 14957 | } |
| 14958 | /^X\(\/\/\)[^/].*/{ |
| 14959 | s//\1/ |
| 14960 | q |
| 14961 | } |
| 14962 | /^X\(\/\/\)$/{ |
| 14963 | s//\1/ |
| 14964 | q |
| 14965 | } |
| 14966 | /^X\(\/\).*/{ |
| 14967 | s//\1/ |
| 14968 | q |
| 14969 | } |
| 14970 | s/.*/./; q'` |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14971 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14972 | ac_builddir=. |
| 14973 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14974 | case "$ac_dir" in |
| 14975 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14976 | *) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14977 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14978 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14979 | 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] | 14980 | case $ac_top_builddir_sub in |
| 14981 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14982 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14983 | esac ;; |
| 14984 | esac |
| 14985 | ac_abs_top_builddir=$ac_pwd |
| 14986 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 14987 | # for backward compatibility: |
| 14988 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14989 | |
| 14990 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14991 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14992 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14993 | ac_top_srcdir=$ac_top_builddir_sub |
| 14994 | ac_abs_top_srcdir=$ac_pwd ;; |
| 14995 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14996 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14997 | ac_top_srcdir=$srcdir |
| 14998 | ac_abs_top_srcdir=$srcdir ;; |
| 14999 | *) # Relative name. |
| 15000 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 15001 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 15002 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15003 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15004 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15005 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15006 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15007 | case $ac_mode in |
| 15008 | :F) |
| 15009 | # |
| 15010 | # CONFIG_FILE |
| 15011 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15012 | |
| 15013 | case $INSTALL in |
| 15014 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15015 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15016 | esac |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15017 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15018 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15019 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15020 | # If the template does not know about datarootdir, expand it. |
| 15021 | # FIXME: This hack should be removed a few years after 2.60. |
| 15022 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15023 | ac_sed_dataroot=' |
| 15024 | /datarootdir/ { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15025 | p |
| 15026 | q |
| 15027 | } |
| 15028 | /@datadir@/p |
| 15029 | /@docdir@/p |
| 15030 | /@infodir@/p |
| 15031 | /@localedir@/p |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15032 | /@mandir@/p' |
| 15033 | 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] | 15034 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 15035 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15036 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 15037 | $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] | 15038 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15039 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15040 | ac_datarootdir_hack=' |
| 15041 | s&@datadir@&$datadir&g |
| 15042 | s&@docdir@&$docdir&g |
| 15043 | s&@infodir@&$infodir&g |
| 15044 | s&@localedir@&$localedir&g |
| 15045 | s&@mandir@&$mandir&g |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15046 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15047 | esac |
| 15048 | _ACEOF |
| 15049 | |
| 15050 | # Neutralize VPATH when `$srcdir' = `.'. |
| 15051 | # Shell code in configure.ac might set extrasub. |
| 15052 | # FIXME: do we really want to maintain this feature? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15053 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15054 | ac_sed_extra="$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15055 | $extrasub |
| 15056 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15057 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15058 | :t |
| 15059 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15060 | s|@configure_input@|$ac_sed_conf_input|;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15061 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15062 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15063 | s&@srcdir@&$ac_srcdir&;t t |
| 15064 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 15065 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 15066 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 15067 | s&@builddir@&$ac_builddir&;t t |
| 15068 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 15069 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 15070 | s&@INSTALL@&$ac_INSTALL&;t t |
| 15071 | $ac_datarootdir_hack |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15072 | " |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15073 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 15074 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15075 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15076 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15077 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 15078 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 15079 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15080 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15081 | which seems to be undefined. Please make sure it is defined" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15082 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15083 | 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] | 15084 | |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15085 | rm -f "$ac_tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15086 | case $ac_file in |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15087 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 15088 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15089 | esac \ |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15090 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15091 | ;; |
| 15092 | :H) |
| 15093 | # |
| 15094 | # CONFIG_HEADER |
| 15095 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15096 | if test x"$ac_file" != x-; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15097 | { |
| 15098 | $as_echo "/* $configure_input */" \ |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15099 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 15100 | } >"$ac_tmp/config.h" \ |
| 15101 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 15102 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15103 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 15104 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15105 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15106 | rm -f "$ac_file" |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15107 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 15108 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15109 | fi |
| 15110 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15111 | $as_echo "/* $configure_input */" \ |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15112 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 15113 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15114 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15115 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15116 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15117 | |
| 15118 | esac |
| 15119 | |
Antoine Pitrou | aabdceb | 2010-09-10 20:03:17 +0000 | [diff] [blame] | 15120 | |
| 15121 | case $ac_file$ac_mode in |
| 15122 | "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; |
| 15123 | |
| 15124 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15125 | done # for ac_tag |
| 15126 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15127 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15128 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15129 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15130 | ac_clean_files=$ac_clean_files_save |
| 15131 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15132 | test $ac_write_fail = 0 || |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15133 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15134 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15135 | |
| 15136 | # configure is writing to config.log, and then calls config.status. |
| 15137 | # config.status does its own redirection, appending to config.log. |
| 15138 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 15139 | # by configure, so config.status won't be able to write to it; its |
| 15140 | # output is simply discarded. So we exec the FD to /dev/null, |
| 15141 | # effectively closing config.log, so it can be properly (re)opened and |
| 15142 | # appended to by config.status. When coming back to configure, we |
| 15143 | # need to make the FD available again. |
| 15144 | if test "$no_create" != yes; then |
| 15145 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15146 | ac_config_status_args= |
| 15147 | test "$silent" = yes && |
| 15148 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15149 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15150 | $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] | 15151 | exec 5>>config.log |
| 15152 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15153 | # would make configure fail if this is the last instruction. |
Georg Brandl | 71f4fbb | 2011-02-25 11:04:50 +0000 | [diff] [blame] | 15154 | $ac_cs_success || as_fn_exit 1 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15155 | fi |
| 15156 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 15157 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 15158 | $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] | 15159 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15160 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15161 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 15162 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15163 | if test ! -f Modules/Setup |
| 15164 | then |
| 15165 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 15166 | fi |
| 15167 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 15168 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15169 | if test ! -f Modules/Setup.local |
| 15170 | then |
| 15171 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 15172 | fi |
| 15173 | |
| 15174 | echo "creating Makefile" |
| 15175 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 15176 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 15177 | Modules/Setup.local Modules/Setup |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15178 | |
| 15179 | case $ac_sys_system in |
| 15180 | BeOS) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15181 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15182 | |
| 15183 | Support for BeOS is deprecated as of Python 2.6. |
| 15184 | See PEP 11 for the gory details. |
| 15185 | " >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 15186 | $as_echo "$as_me: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15187 | |
| 15188 | Support for BeOS is deprecated as of Python 2.6. |
| 15189 | See PEP 11 for the gory details. |
| 15190 | " >&2;} |
| 15191 | ;; |
| 15192 | *) ;; |
| 15193 | esac |
| 15194 | |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 15195 | mv config.c Modules |