Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | b41afb5 | 2010-05-28 15:28:47 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 81509 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.65 for python 2.7. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8 | # |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 11 | # Inc. |
| 12 | # |
| 13 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14 | # This configure script is free software; the Free Software Foundation |
| 15 | # gives unlimited permission to copy, distribute and modify it. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 16 | ## -------------------- ## |
| 17 | ## M4sh Initialization. ## |
| 18 | ## -------------------- ## |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20 | # Be more Bourne compatible |
| 21 | DUALCASE=1; export DUALCASE # for MKS sh |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23 | emulate sh |
| 24 | NULLCMD=: |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26 | # is contrary to our usage. Disable this feature. |
| 27 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 30 | case `(set -o) 2>/dev/null` in #( |
| 31 | *posix*) : |
| 32 | set -o posix ;; #( |
| 33 | *) : |
| 34 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 35 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | fi |
| 37 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 38 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 39 | as_nl=' |
| 40 | ' |
| 41 | export as_nl |
| 42 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 43 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 46 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 47 | # but without wasting forks for bash or zsh. |
| 48 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 49 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='print -r --' |
| 51 | as_echo_n='print -rn --' |
| 52 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 53 | as_echo='printf %s\n' |
| 54 | as_echo_n='printf %s' |
| 55 | else |
| 56 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 57 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 58 | as_echo_n='/usr/ucb/echo -n' |
| 59 | else |
| 60 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 61 | as_echo_n_body='eval |
| 62 | arg=$1; |
| 63 | case $arg in #( |
| 64 | *"$as_nl"*) |
| 65 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 66 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 67 | esac; |
| 68 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 69 | ' |
| 70 | export as_echo_n_body |
| 71 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 72 | fi |
| 73 | export as_echo_body |
| 74 | as_echo='sh -c $as_echo_body as_echo' |
| 75 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 76 | |
| 77 | # The user is always right. |
| 78 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 79 | PATH_SEPARATOR=: |
| 80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 82 | PATH_SEPARATOR=';' |
| 83 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 84 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 85 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 86 | |
| 87 | # IFS |
| 88 | # We need space, tab and new line, in precisely that order. Quoting is |
| 89 | # there to prevent editors from complaining about space-tab. |
| 90 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 91 | # splitting by setting IFS to empty value.) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 92 | IFS=" "" $as_nl" |
| 93 | |
| 94 | # Find who we are. Look in the path if we contain no directory separator. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 95 | case $0 in #(( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 96 | *[\\/]* ) as_myself=$0 ;; |
| 97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 98 | for as_dir in $PATH |
| 99 | do |
| 100 | IFS=$as_save_IFS |
| 101 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 103 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 104 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 105 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 106 | ;; |
| 107 | esac |
| 108 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 109 | # in which case we are not to be found in the path. |
| 110 | if test "x$as_myself" = x; then |
| 111 | as_myself=$0 |
| 112 | fi |
| 113 | if test ! -f "$as_myself"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 115 | exit 1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 116 | fi |
| 117 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 118 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 120 | # suppresses any "Segmentation fault" message there. '((' could |
| 121 | # trigger a bug in pdksh 5.2.14. |
| 122 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 123 | do eval test x\${$as_var+set} = xset \ |
| 124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 125 | done |
| 126 | PS1='$ ' |
| 127 | PS2='> ' |
| 128 | PS4='+ ' |
| 129 | |
| 130 | # NLS nuisances. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 131 | LC_ALL=C |
| 132 | export LC_ALL |
| 133 | LANGUAGE=C |
| 134 | export LANGUAGE |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 135 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 136 | # CDPATH. |
| 137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 138 | |
| 139 | if test "x$CONFIG_SHELL" = x; then |
| 140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 141 | emulate sh |
| 142 | NULLCMD=: |
| 143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 144 | # is contrary to our usage. Disable this feature. |
| 145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 146 | setopt NO_GLOB_SUBST |
| 147 | else |
| 148 | case \`(set -o) 2>/dev/null\` in #( |
| 149 | *posix*) : |
| 150 | set -o posix ;; #( |
| 151 | *) : |
| 152 | ;; |
| 153 | esac |
| 154 | fi |
| 155 | " |
| 156 | as_required="as_fn_return () { (exit \$1); } |
| 157 | as_fn_success () { as_fn_return 0; } |
| 158 | as_fn_failure () { as_fn_return 1; } |
| 159 | as_fn_ret_success () { return 0; } |
| 160 | as_fn_ret_failure () { return 1; } |
| 161 | |
| 162 | exitcode=0 |
| 163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 168 | |
| 169 | else |
| 170 | exitcode=1; echo positional parameters were not saved. |
| 171 | fi |
| 172 | test x\$exitcode = x0 || exit 1" |
| 173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 177 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 178 | if (eval "$as_required") 2>/dev/null; then : |
| 179 | as_have_required=yes |
| 180 | else |
| 181 | as_have_required=no |
| 182 | fi |
| 183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 184 | |
| 185 | else |
| 186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 187 | as_found=false |
| 188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 189 | do |
| 190 | IFS=$as_save_IFS |
| 191 | test -z "$as_dir" && as_dir=. |
| 192 | as_found=: |
| 193 | case $as_dir in #( |
| 194 | /*) |
| 195 | for as_base in sh bash ksh sh5; do |
| 196 | # Try only shells that exist, to save several forks. |
| 197 | as_shell=$as_dir/$as_base |
| 198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 200 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 202 | break 2 |
| 203 | fi |
| 204 | fi |
| 205 | done;; |
| 206 | esac |
| 207 | as_found=false |
| 208 | done |
| 209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 211 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 212 | fi; } |
| 213 | IFS=$as_save_IFS |
| 214 | |
| 215 | |
| 216 | if test "x$CONFIG_SHELL" != x; then : |
| 217 | # We cannot yet assume a decent shell, so we have to provide a |
| 218 | # neutralization value for shells without unset; and this also |
| 219 | # works around shells that cannot unset nonexistent variables. |
| 220 | BASH_ENV=/dev/null |
| 221 | ENV=/dev/null |
| 222 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 223 | export CONFIG_SHELL |
| 224 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 225 | fi |
| 226 | |
| 227 | if test x$as_have_required = xno; then : |
| 228 | $as_echo "$0: This script requires a shell more modern than all" |
| 229 | $as_echo "$0: the shells that I found on your system." |
| 230 | if test x${ZSH_VERSION+set} = xset ; then |
| 231 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 232 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 233 | else |
| 234 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 235 | $0: http://bugs.python.org/ about your system, including |
| 236 | $0: any error possibly output before this message. Then |
| 237 | $0: install a modern shell, or manually run the script |
| 238 | $0: under such a shell if you do have one." |
| 239 | fi |
| 240 | exit 1 |
| 241 | fi |
| 242 | fi |
| 243 | fi |
| 244 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 245 | export SHELL |
| 246 | # Unset more variables known to interfere with behavior of common tools. |
| 247 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 248 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 249 | |
| 250 | ## --------------------- ## |
| 251 | ## M4sh Shell Functions. ## |
| 252 | ## --------------------- ## |
| 253 | # as_fn_unset VAR |
| 254 | # --------------- |
| 255 | # Portably unset VAR. |
| 256 | as_fn_unset () |
| 257 | { |
| 258 | { eval $1=; unset $1;} |
| 259 | } |
| 260 | as_unset=as_fn_unset |
| 261 | |
| 262 | # as_fn_set_status STATUS |
| 263 | # ----------------------- |
| 264 | # Set $? to STATUS, without forking. |
| 265 | as_fn_set_status () |
| 266 | { |
| 267 | return $1 |
| 268 | } # as_fn_set_status |
| 269 | |
| 270 | # as_fn_exit STATUS |
| 271 | # ----------------- |
| 272 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 273 | as_fn_exit () |
| 274 | { |
| 275 | set +e |
| 276 | as_fn_set_status $1 |
| 277 | exit $1 |
| 278 | } # as_fn_exit |
| 279 | |
| 280 | # as_fn_mkdir_p |
| 281 | # ------------- |
| 282 | # Create "$as_dir" as a directory, including parents if necessary. |
| 283 | as_fn_mkdir_p () |
| 284 | { |
| 285 | |
| 286 | case $as_dir in #( |
| 287 | -*) as_dir=./$as_dir;; |
| 288 | esac |
| 289 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 290 | as_dirs= |
| 291 | while :; do |
| 292 | case $as_dir in #( |
| 293 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 294 | *) as_qdir=$as_dir;; |
| 295 | esac |
| 296 | as_dirs="'$as_qdir' $as_dirs" |
| 297 | as_dir=`$as_dirname -- "$as_dir" || |
| 298 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 299 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 300 | X"$as_dir" : 'X\(//\)$' \| \ |
| 301 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 302 | $as_echo X"$as_dir" | |
| 303 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 304 | s//\1/ |
| 305 | q |
| 306 | } |
| 307 | /^X\(\/\/\)[^/].*/{ |
| 308 | s//\1/ |
| 309 | q |
| 310 | } |
| 311 | /^X\(\/\/\)$/{ |
| 312 | s//\1/ |
| 313 | q |
| 314 | } |
| 315 | /^X\(\/\).*/{ |
| 316 | s//\1/ |
| 317 | q |
| 318 | } |
| 319 | s/.*/./; q'` |
| 320 | test -d "$as_dir" && break |
| 321 | done |
| 322 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 323 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 324 | |
| 325 | |
| 326 | } # as_fn_mkdir_p |
| 327 | # as_fn_append VAR VALUE |
| 328 | # ---------------------- |
| 329 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 330 | # advantage of any shell optimizations that allow amortized linear growth over |
| 331 | # repeated appends, instead of the typical quadratic growth present in naive |
| 332 | # implementations. |
| 333 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 334 | eval 'as_fn_append () |
| 335 | { |
| 336 | eval $1+=\$2 |
| 337 | }' |
| 338 | else |
| 339 | as_fn_append () |
| 340 | { |
| 341 | eval $1=\$$1\$2 |
| 342 | } |
| 343 | fi # as_fn_append |
| 344 | |
| 345 | # as_fn_arith ARG... |
| 346 | # ------------------ |
| 347 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 348 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 349 | # must be portable across $(()) and expr. |
| 350 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 351 | eval 'as_fn_arith () |
| 352 | { |
| 353 | as_val=$(( $* )) |
| 354 | }' |
| 355 | else |
| 356 | as_fn_arith () |
| 357 | { |
| 358 | as_val=`expr "$@" || test $? -eq 1` |
| 359 | } |
| 360 | fi # as_fn_arith |
| 361 | |
| 362 | |
| 363 | # as_fn_error ERROR [LINENO LOG_FD] |
| 364 | # --------------------------------- |
| 365 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 366 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 367 | # script with status $?, using 1 if that was 0. |
| 368 | as_fn_error () |
| 369 | { |
| 370 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 371 | if test "$3"; then |
| 372 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 373 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 374 | fi |
| 375 | $as_echo "$as_me: error: $1" >&2 |
| 376 | as_fn_exit $as_status |
| 377 | } # as_fn_error |
| 378 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 379 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 380 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 381 | as_expr=expr |
| 382 | else |
| 383 | as_expr=false |
| 384 | fi |
| 385 | |
| 386 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 387 | as_basename=basename |
| 388 | else |
| 389 | as_basename=false |
| 390 | fi |
| 391 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 392 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 393 | as_dirname=dirname |
| 394 | else |
| 395 | as_dirname=false |
| 396 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 397 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 398 | as_me=`$as_basename -- "$0" || |
| 399 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 400 | X"$0" : 'X\(//\)$' \| \ |
| 401 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 402 | $as_echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 403 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 404 | s//\1/ |
| 405 | q |
| 406 | } |
| 407 | /^X\/\(\/\/\)$/{ |
| 408 | s//\1/ |
| 409 | q |
| 410 | } |
| 411 | /^X\/\(\/\).*/{ |
| 412 | s//\1/ |
| 413 | q |
| 414 | } |
| 415 | s/.*/./; q'` |
| 416 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 417 | # Avoid depending upon Character Ranges. |
| 418 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 419 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 420 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 421 | as_cr_digits='0123456789' |
| 422 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 423 | |
| 424 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 425 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 426 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 427 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 428 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 429 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 430 | sed -n ' |
| 431 | p |
| 432 | /[$]LINENO/= |
| 433 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 434 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 435 | s/[$]LINENO.*/&-/ |
| 436 | t lineno |
| 437 | b |
| 438 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 439 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 440 | :loop |
| 441 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 442 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 443 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 444 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 445 | chmod +x "$as_me.lineno" || |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 446 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 447 | |
| 448 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 449 | # (the dirname of $[0] is not the place where we might find the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 450 | # original and so on. Autoconf is especially sensitive to this). |
| 451 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 452 | # Exit status is that of the last command. |
| 453 | exit |
| 454 | } |
| 455 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 456 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 457 | case `echo -n x` in #((((( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 458 | -n*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 459 | case `echo 'xy\c'` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 460 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 461 | xy) ECHO_C='\c';; |
| 462 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 463 | ECHO_T=' ';; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 464 | esac;; |
| 465 | *) |
| 466 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 467 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 468 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 469 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 470 | if test -d conf$$.dir; then |
| 471 | rm -f conf$$.dir/conf$$.file |
| 472 | else |
| 473 | rm -f conf$$.dir |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 474 | mkdir conf$$.dir 2>/dev/null |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 475 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 476 | if (echo >conf$$.file) 2>/dev/null; then |
| 477 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 478 | as_ln_s='ln -s' |
| 479 | # ... but there are two gotchas: |
| 480 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 481 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 482 | # In both cases, we have to default to `cp -p'. |
| 483 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 484 | as_ln_s='cp -p' |
| 485 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 486 | as_ln_s=ln |
| 487 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | as_ln_s='cp -p' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 489 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 490 | else |
| 491 | as_ln_s='cp -p' |
| 492 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 493 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 494 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 495 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 496 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 497 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 498 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 499 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 500 | as_mkdir_p=false |
| 501 | fi |
| 502 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 503 | if test -x / >/dev/null 2>&1; then |
| 504 | as_test_x='test -x' |
| 505 | else |
| 506 | if ls -dL / >/dev/null 2>&1; then |
| 507 | as_ls_L_option=L |
| 508 | else |
| 509 | as_ls_L_option= |
| 510 | fi |
| 511 | as_test_x=' |
| 512 | eval sh -c '\'' |
| 513 | if test -d "$1"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 514 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 515 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 516 | case $1 in #( |
| 517 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 518 | esac; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 519 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 520 | ???[sx]*):;;*)false;;esac;fi |
| 521 | '\'' sh |
| 522 | ' |
| 523 | fi |
| 524 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 525 | |
| 526 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 527 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 528 | |
| 529 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 530 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 531 | |
| 532 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 533 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 534 | exec 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 535 | |
| 536 | # Name of the host. |
| 537 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 538 | # so uname gets run too. |
| 539 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 540 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 541 | # |
| 542 | # Initializations. |
| 543 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 544 | ac_default_prefix=/usr/local |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 545 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 546 | ac_config_libobj_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 547 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 548 | cross_compiling=no |
| 549 | subdirs= |
| 550 | MFLAGS= |
| 551 | MAKEFLAGS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 553 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 554 | PACKAGE_NAME='python' |
| 555 | PACKAGE_TARNAME='python' |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 556 | PACKAGE_VERSION='2.7' |
| 557 | PACKAGE_STRING='python 2.7' |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 558 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 559 | PACKAGE_URL='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 560 | |
| 561 | ac_unique_file="Include/object.h" |
| 562 | # Factoring default headers for most tests. |
| 563 | ac_includes_default="\ |
| 564 | #include <stdio.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 565 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 566 | # include <sys/types.h> |
| 567 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 568 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | # include <sys/stat.h> |
| 570 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 571 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 572 | # include <stdlib.h> |
| 573 | # include <stddef.h> |
| 574 | #else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 575 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | # include <stdlib.h> |
| 577 | # endif |
| 578 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 579 | #ifdef HAVE_STRING_H |
| 580 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | # include <memory.h> |
| 582 | # endif |
| 583 | # include <string.h> |
| 584 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 585 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 586 | # include <strings.h> |
| 587 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 588 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 589 | # include <inttypes.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 591 | #ifdef HAVE_STDINT_H |
| 592 | # include <stdint.h> |
| 593 | #endif |
| 594 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 595 | # include <unistd.h> |
| 596 | #endif" |
| 597 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 598 | ac_subst_vars='LTLIBOBJS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 599 | SRCDIRS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 600 | THREADHEADERS |
| 601 | UNICODE_OBJS |
| 602 | LIBC |
| 603 | LIBM |
| 604 | HAVE_GETHOSTBYNAME |
| 605 | HAVE_GETHOSTBYNAME_R |
| 606 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 607 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 608 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 609 | LIBOBJS |
| 610 | TRUE |
| 611 | MACHDEP_OBJS |
| 612 | DYNLOADFILE |
| 613 | DLINCLDIR |
| 614 | THREADOBJ |
| 615 | LDLAST |
| 616 | USE_THREAD_MODULE |
| 617 | SIGNAL_OBJS |
| 618 | USE_SIGNAL_MODULE |
| 619 | LIBFFI_INCLUDEDIR |
| 620 | PKG_CONFIG |
| 621 | SHLIBS |
| 622 | CFLAGSFORSHARED |
| 623 | LINKFORSHARED |
| 624 | CCSHARED |
| 625 | BLDSHARED |
| 626 | LDCXXSHARED |
| 627 | LDSHARED |
| 628 | SO |
| 629 | LIBTOOL_CRUFT |
| 630 | OTHER_LIBTOOL_OPT |
| 631 | UNIVERSAL_ARCH_FLAGS |
| 632 | BASECFLAGS |
| 633 | OPT |
| 634 | LN |
| 635 | INSTALL_DATA |
| 636 | INSTALL_SCRIPT |
| 637 | INSTALL_PROGRAM |
| 638 | SVNVERSION |
| 639 | ARFLAGS |
| 640 | AR |
| 641 | RANLIB |
| 642 | GNULD |
| 643 | LINKCC |
| 644 | RUNSHARED |
| 645 | INSTSONAME |
| 646 | LDLIBRARYDIR |
| 647 | BLDLIBRARY |
| 648 | DLLLIBRARY |
| 649 | LDLIBRARY |
| 650 | LIBRARY |
| 651 | BUILDEXEEXT |
| 652 | EGREP |
| 653 | GREP |
| 654 | CPP |
| 655 | MAINCC |
| 656 | CXX |
| 657 | OBJEXT |
| 658 | EXEEXT |
| 659 | ac_ct_CC |
| 660 | CPPFLAGS |
| 661 | LDFLAGS |
| 662 | CFLAGS |
| 663 | CC |
| 664 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 665 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 666 | EXTRAMACHDEPPATH |
| 667 | EXTRAPLATDIR |
| 668 | SGI_ABI |
| 669 | MACHDEP |
| 670 | FRAMEWORKINSTALLAPPSPREFIX |
| 671 | FRAMEWORKUNIXTOOLSPREFIX |
| 672 | FRAMEWORKALTINSTALLLAST |
| 673 | FRAMEWORKALTINSTALLFIRST |
| 674 | FRAMEWORKINSTALLLAST |
| 675 | FRAMEWORKINSTALLFIRST |
| 676 | PYTHONFRAMEWORKINSTALLDIR |
| 677 | PYTHONFRAMEWORKPREFIX |
| 678 | PYTHONFRAMEWORKDIR |
| 679 | PYTHONFRAMEWORKIDENTIFIER |
| 680 | PYTHONFRAMEWORK |
| 681 | LIPO_32BIT_FLAGS |
| 682 | ARCH_RUN_32BIT |
| 683 | UNIVERSALSDK |
| 684 | CONFIG_ARGS |
| 685 | SOVERSION |
| 686 | VERSION |
| 687 | target_alias |
| 688 | host_alias |
| 689 | build_alias |
| 690 | LIBS |
| 691 | ECHO_T |
| 692 | ECHO_N |
| 693 | ECHO_C |
| 694 | DEFS |
| 695 | mandir |
| 696 | localedir |
| 697 | libdir |
| 698 | psdir |
| 699 | pdfdir |
| 700 | dvidir |
| 701 | htmldir |
| 702 | infodir |
| 703 | docdir |
| 704 | oldincludedir |
| 705 | includedir |
| 706 | localstatedir |
| 707 | sharedstatedir |
| 708 | sysconfdir |
| 709 | datadir |
| 710 | datarootdir |
| 711 | libexecdir |
| 712 | sbindir |
| 713 | bindir |
| 714 | program_transform_name |
| 715 | prefix |
| 716 | exec_prefix |
| 717 | PACKAGE_URL |
| 718 | PACKAGE_BUGREPORT |
| 719 | PACKAGE_STRING |
| 720 | PACKAGE_VERSION |
| 721 | PACKAGE_TARNAME |
| 722 | PACKAGE_NAME |
| 723 | PATH_SEPARATOR |
| 724 | SHELL' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 725 | ac_subst_files='' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 726 | ac_user_opts=' |
| 727 | enable_option_checking |
| 728 | enable_universalsdk |
| 729 | with_universal_archs |
| 730 | with_framework_name |
| 731 | enable_framework |
| 732 | with_gcc |
| 733 | with_cxx_main |
| 734 | with_suffix |
| 735 | enable_shared |
| 736 | enable_profiling |
| 737 | with_pydebug |
| 738 | enable_toolbox_glue |
| 739 | with_libs |
| 740 | with_system_expat |
| 741 | with_system_ffi |
| 742 | with_dbmliborder |
| 743 | with_signal_module |
| 744 | with_dec_threads |
| 745 | with_threads |
| 746 | with_thread |
| 747 | with_pth |
| 748 | enable_ipv6 |
| 749 | with_doc_strings |
| 750 | with_tsc |
| 751 | with_pymalloc |
| 752 | with_valgrind |
| 753 | with_wctype_functions |
| 754 | with_fpectl |
| 755 | with_libm |
| 756 | with_libc |
| 757 | enable_big_digits |
| 758 | enable_unicode |
| 759 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 760 | ac_precious_vars='build_alias |
| 761 | host_alias |
| 762 | target_alias |
| 763 | CC |
| 764 | CFLAGS |
| 765 | LDFLAGS |
| 766 | LIBS |
| 767 | CPPFLAGS |
| 768 | CPP' |
| 769 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 770 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 771 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 772 | ac_init_help= |
| 773 | ac_init_version=false |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 774 | ac_unrecognized_opts= |
| 775 | ac_unrecognized_sep= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 776 | # The variables have the same names as the options, with |
| 777 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 778 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 779 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 780 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 781 | no_recursion= |
| 782 | prefix=NONE |
| 783 | program_prefix=NONE |
| 784 | program_suffix=NONE |
| 785 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 786 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 787 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 788 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 789 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 790 | x_includes=NONE |
| 791 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 792 | |
| 793 | # Installation directory options. |
| 794 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 795 | # and all the variables that are supposed to be based on exec_prefix |
| 796 | # by default will actually change. |
| 797 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 798 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 799 | bindir='${exec_prefix}/bin' |
| 800 | sbindir='${exec_prefix}/sbin' |
| 801 | libexecdir='${exec_prefix}/libexec' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 802 | datarootdir='${prefix}/share' |
| 803 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 804 | sysconfdir='${prefix}/etc' |
| 805 | sharedstatedir='${prefix}/com' |
| 806 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 807 | includedir='${prefix}/include' |
| 808 | oldincludedir='/usr/include' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 809 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 810 | infodir='${datarootdir}/info' |
| 811 | htmldir='${docdir}' |
| 812 | dvidir='${docdir}' |
| 813 | pdfdir='${docdir}' |
| 814 | psdir='${docdir}' |
| 815 | libdir='${exec_prefix}/lib' |
| 816 | localedir='${datarootdir}/locale' |
| 817 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 818 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 819 | ac_prev= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 820 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 821 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 822 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 823 | # If the previous option needs an argument, assign it. |
| 824 | if test -n "$ac_prev"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 825 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 826 | ac_prev= |
| 827 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 828 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 829 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 830 | case $ac_option in |
| 831 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 832 | *) ac_optarg=yes ;; |
| 833 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 834 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 835 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 836 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 837 | case $ac_dashdash$ac_option in |
| 838 | --) |
| 839 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 840 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 841 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 842 | ac_prev=bindir ;; |
| 843 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 844 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 845 | |
| 846 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 847 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 848 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 849 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 850 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 851 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 852 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 853 | ac_prev=cache_file ;; |
| 854 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 855 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 856 | cache_file=$ac_optarg ;; |
| 857 | |
| 858 | --config-cache | -C) |
| 859 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 860 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 861 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 862 | ac_prev=datadir ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 863 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 864 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 865 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 866 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 867 | | --dataroo | --dataro | --datar) |
| 868 | ac_prev=datarootdir ;; |
| 869 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 870 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 871 | datarootdir=$ac_optarg ;; |
| 872 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 873 | -disable-* | --disable-*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 874 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 875 | # Reject names that are not valid shell variable names. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 876 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 877 | as_fn_error "invalid feature name: $ac_useropt" |
| 878 | ac_useropt_orig=$ac_useropt |
| 879 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 880 | case $ac_user_opts in |
| 881 | *" |
| 882 | "enable_$ac_useropt" |
| 883 | "*) ;; |
| 884 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 885 | ac_unrecognized_sep=', ';; |
| 886 | esac |
| 887 | eval enable_$ac_useropt=no ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 888 | |
| 889 | -docdir | --docdir | --docdi | --doc | --do) |
| 890 | ac_prev=docdir ;; |
| 891 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 892 | docdir=$ac_optarg ;; |
| 893 | |
| 894 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 895 | ac_prev=dvidir ;; |
| 896 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 897 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 898 | |
| 899 | -enable-* | --enable-*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 900 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 901 | # Reject names that are not valid shell variable names. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 902 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 903 | as_fn_error "invalid feature name: $ac_useropt" |
| 904 | ac_useropt_orig=$ac_useropt |
| 905 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 906 | case $ac_user_opts in |
| 907 | *" |
| 908 | "enable_$ac_useropt" |
| 909 | "*) ;; |
| 910 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 911 | ac_unrecognized_sep=', ';; |
| 912 | esac |
| 913 | eval enable_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 914 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 915 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 916 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 917 | | --exec | --exe | --ex) |
| 918 | ac_prev=exec_prefix ;; |
| 919 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 920 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 921 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 922 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 923 | |
| 924 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 925 | # Obsolete; use --with-gas. |
| 926 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 927 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 928 | -help | --help | --hel | --he | -h) |
| 929 | ac_init_help=long ;; |
| 930 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 931 | ac_init_help=recursive ;; |
| 932 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 933 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 934 | |
| 935 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 936 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 937 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 938 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 939 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 940 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 941 | ac_prev=htmldir ;; |
| 942 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 943 | | --ht=*) |
| 944 | htmldir=$ac_optarg ;; |
| 945 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 946 | -includedir | --includedir | --includedi | --included | --include \ |
| 947 | | --includ | --inclu | --incl | --inc) |
| 948 | ac_prev=includedir ;; |
| 949 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 950 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 951 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 952 | |
| 953 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 954 | ac_prev=infodir ;; |
| 955 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 956 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 957 | |
| 958 | -libdir | --libdir | --libdi | --libd) |
| 959 | ac_prev=libdir ;; |
| 960 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 961 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 962 | |
| 963 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 964 | | --libexe | --libex | --libe) |
| 965 | ac_prev=libexecdir ;; |
| 966 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 967 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 968 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 969 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 970 | -localedir | --localedir | --localedi | --localed | --locale) |
| 971 | ac_prev=localedir ;; |
| 972 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 973 | localedir=$ac_optarg ;; |
| 974 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 975 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 976 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 977 | ac_prev=localstatedir ;; |
| 978 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 979 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 980 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 981 | |
| 982 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 983 | ac_prev=mandir ;; |
| 984 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 985 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 986 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 987 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 988 | # Obsolete; use --without-fp. |
| 989 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 990 | |
| 991 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 992 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 993 | no_create=yes ;; |
| 994 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 995 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 996 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 997 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 998 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 999 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1000 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1001 | | --oldin | --oldi | --old | --ol | --o) |
| 1002 | ac_prev=oldincludedir ;; |
| 1003 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1004 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1005 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1006 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1007 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1008 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1009 | ac_prev=prefix ;; |
| 1010 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1011 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1012 | |
| 1013 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1014 | | --program-pre | --program-pr | --program-p) |
| 1015 | ac_prev=program_prefix ;; |
| 1016 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1017 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1018 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1019 | |
| 1020 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1021 | | --program-suf | --program-su | --program-s) |
| 1022 | ac_prev=program_suffix ;; |
| 1023 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1024 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1025 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1026 | |
| 1027 | -program-transform-name | --program-transform-name \ |
| 1028 | | --program-transform-nam | --program-transform-na \ |
| 1029 | | --program-transform-n | --program-transform- \ |
| 1030 | | --program-transform | --program-transfor \ |
| 1031 | | --program-transfo | --program-transf \ |
| 1032 | | --program-trans | --program-tran \ |
| 1033 | | --progr-tra | --program-tr | --program-t) |
| 1034 | ac_prev=program_transform_name ;; |
| 1035 | -program-transform-name=* | --program-transform-name=* \ |
| 1036 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1037 | | --program-transform-n=* | --program-transform-=* \ |
| 1038 | | --program-transform=* | --program-transfor=* \ |
| 1039 | | --program-transfo=* | --program-transf=* \ |
| 1040 | | --program-trans=* | --program-tran=* \ |
| 1041 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1042 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1043 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1044 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1045 | ac_prev=pdfdir ;; |
| 1046 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1047 | pdfdir=$ac_optarg ;; |
| 1048 | |
| 1049 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1050 | ac_prev=psdir ;; |
| 1051 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1052 | psdir=$ac_optarg ;; |
| 1053 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1054 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1055 | | -silent | --silent | --silen | --sile | --sil) |
| 1056 | silent=yes ;; |
| 1057 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1058 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1059 | ac_prev=sbindir ;; |
| 1060 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1061 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1062 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1063 | |
| 1064 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1065 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1066 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1067 | | --sha | --sh) |
| 1068 | ac_prev=sharedstatedir ;; |
| 1069 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1070 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1071 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1072 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1073 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1074 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1075 | -site | --site | --sit) |
| 1076 | ac_prev=site ;; |
| 1077 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1078 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1079 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1080 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1081 | ac_prev=srcdir ;; |
| 1082 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1083 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1084 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1085 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1086 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1087 | ac_prev=sysconfdir ;; |
| 1088 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1089 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1090 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1091 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1092 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1093 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1094 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1095 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1096 | |
| 1097 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1098 | verbose=yes ;; |
| 1099 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1100 | -version | --version | --versio | --versi | --vers | -V) |
| 1101 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1102 | |
| 1103 | -with-* | --with-*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1104 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1105 | # Reject names that are not valid shell variable names. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1106 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1107 | as_fn_error "invalid package name: $ac_useropt" |
| 1108 | ac_useropt_orig=$ac_useropt |
| 1109 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1110 | case $ac_user_opts in |
| 1111 | *" |
| 1112 | "with_$ac_useropt" |
| 1113 | "*) ;; |
| 1114 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1115 | ac_unrecognized_sep=', ';; |
| 1116 | esac |
| 1117 | eval with_$ac_useropt=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1118 | |
| 1119 | -without-* | --without-*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1120 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1121 | # Reject names that are not valid shell variable names. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1122 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1123 | as_fn_error "invalid package name: $ac_useropt" |
| 1124 | ac_useropt_orig=$ac_useropt |
| 1125 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1126 | case $ac_user_opts in |
| 1127 | *" |
| 1128 | "with_$ac_useropt" |
| 1129 | "*) ;; |
| 1130 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1131 | ac_unrecognized_sep=', ';; |
| 1132 | esac |
| 1133 | eval with_$ac_useropt=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1134 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1135 | --x) |
| 1136 | # Obsolete; use --with-x. |
| 1137 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1138 | |
| 1139 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1140 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1141 | ac_prev=x_includes ;; |
| 1142 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1143 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1144 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1145 | |
| 1146 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1147 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1148 | ac_prev=x_libraries ;; |
| 1149 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1150 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1151 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1152 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1153 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1154 | Try \`$0 --help' for more information." |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1155 | ;; |
| 1156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1157 | *=*) |
| 1158 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1159 | # Reject names that are not valid shell variable names. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1160 | case $ac_envvar in #( |
| 1161 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1162 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1163 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1164 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1165 | export $ac_envvar ;; |
| 1166 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1167 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1168 | # FIXME: should be removed in autoconf 3.0. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1169 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1170 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1171 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1172 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1173 | ;; |
| 1174 | |
| 1175 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1176 | done |
| 1177 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1178 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1179 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1180 | as_fn_error "missing argument to $ac_option" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1181 | fi |
| 1182 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1183 | if test -n "$ac_unrecognized_opts"; then |
| 1184 | case $enable_option_checking in |
| 1185 | no) ;; |
| 1186 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1187 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1188 | esac |
| 1189 | fi |
| 1190 | |
| 1191 | # Check all directory arguments for consistency. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1192 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1193 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1194 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1195 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1196 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1197 | eval ac_val=\$$ac_var |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1198 | # Remove trailing slashes. |
| 1199 | case $ac_val in |
| 1200 | */ ) |
| 1201 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1202 | eval $ac_var=\$ac_val;; |
| 1203 | esac |
| 1204 | # Be sure to have absolute directory names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1205 | case $ac_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1206 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1207 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1208 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1209 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1210 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1212 | # There might be people who depend on the old broken behavior: `$host' |
| 1213 | # used to hold the argument of --host etc. |
| 1214 | # FIXME: To remove some day. |
| 1215 | build=$build_alias |
| 1216 | host=$host_alias |
| 1217 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1218 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1219 | # FIXME: To remove some day. |
| 1220 | if test "x$host_alias" != x; then |
| 1221 | if test "x$build_alias" = x; then |
| 1222 | cross_compiling=maybe |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1223 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1224 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1225 | elif test "x$build_alias" != "x$host_alias"; then |
| 1226 | cross_compiling=yes |
| 1227 | fi |
| 1228 | fi |
| 1229 | |
| 1230 | ac_tool_prefix= |
| 1231 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1232 | |
| 1233 | test "$silent" = yes && exec 6>/dev/null |
| 1234 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1235 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1236 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1237 | ac_ls_di=`ls -di .` && |
| 1238 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1239 | as_fn_error "working directory cannot be determined" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1240 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1241 | as_fn_error "pwd does not report name of working directory" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1242 | |
| 1243 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1244 | # Find the source files, if location was not specified. |
| 1245 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1246 | ac_srcdir_defaulted=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1247 | # Try the directory containing this script, then the parent directory. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1248 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1249 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1250 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1251 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1252 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1253 | $as_echo X"$as_myself" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1254 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1255 | s//\1/ |
| 1256 | q |
| 1257 | } |
| 1258 | /^X\(\/\/\)[^/].*/{ |
| 1259 | s//\1/ |
| 1260 | q |
| 1261 | } |
| 1262 | /^X\(\/\/\)$/{ |
| 1263 | s//\1/ |
| 1264 | q |
| 1265 | } |
| 1266 | /^X\(\/\).*/{ |
| 1267 | s//\1/ |
| 1268 | q |
| 1269 | } |
| 1270 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1271 | srcdir=$ac_confdir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1272 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1273 | srcdir=.. |
| 1274 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1275 | else |
| 1276 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1277 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1278 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1279 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1280 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1281 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1282 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1283 | ac_abs_confdir=`( |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1284 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1285 | pwd)` |
| 1286 | # When building in place, set srcdir=. |
| 1287 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1288 | srcdir=. |
| 1289 | fi |
| 1290 | # Remove unnecessary trailing slashes from srcdir. |
| 1291 | # Double slashes in file names in object file debugging info |
| 1292 | # mess up M-x gdb in Emacs. |
| 1293 | case $srcdir in |
| 1294 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1295 | esac |
| 1296 | for ac_var in $ac_precious_vars; do |
| 1297 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1298 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1299 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1300 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1301 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1302 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1303 | # |
| 1304 | # Report the --help message. |
| 1305 | # |
| 1306 | if test "$ac_init_help" = "long"; then |
| 1307 | # Omit some internal or obsolete options to make the list less imposing. |
| 1308 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1309 | cat <<_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1310 | \`configure' configures python 2.7 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1311 | |
| 1312 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1313 | |
| 1314 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1315 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1316 | |
| 1317 | Defaults for the options are specified in brackets. |
| 1318 | |
| 1319 | Configuration: |
| 1320 | -h, --help display this help and exit |
| 1321 | --help=short display options specific to this package |
| 1322 | --help=recursive display the short help of all the included packages |
| 1323 | -V, --version display version information and exit |
| 1324 | -q, --quiet, --silent do not print \`checking...' messages |
| 1325 | --cache-file=FILE cache test results in FILE [disabled] |
| 1326 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1327 | -n, --no-create do not create output files |
| 1328 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1329 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1330 | Installation directories: |
| 1331 | --prefix=PREFIX install architecture-independent files in PREFIX |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1332 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1333 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1334 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1335 | |
| 1336 | By default, \`make install' will install all the files in |
| 1337 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1338 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1339 | for instance \`--prefix=\$HOME'. |
| 1340 | |
| 1341 | For better control, use the options below. |
| 1342 | |
| 1343 | Fine tuning of the installation directories: |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1344 | --bindir=DIR user executables [EPREFIX/bin] |
| 1345 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1346 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1347 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1348 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1349 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1350 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1351 | --includedir=DIR C header files [PREFIX/include] |
| 1352 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1353 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1354 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1355 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1356 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1357 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1358 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1359 | --htmldir=DIR html documentation [DOCDIR] |
| 1360 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1361 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1362 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1363 | _ACEOF |
| 1364 | |
| 1365 | cat <<\_ACEOF |
| 1366 | _ACEOF |
| 1367 | fi |
| 1368 | |
| 1369 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1370 | case $ac_init_help in |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1371 | short | recursive ) echo "Configuration of python 2.7:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1372 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1373 | cat <<\_ACEOF |
| 1374 | |
| 1375 | Optional Features: |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1376 | --disable-option-checking ignore unrecognized --enable/--with options |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1377 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1378 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1379 | --enable-universalsdk[=SDKDIR] |
Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1380 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1381 | --enable-framework[=INSTALLDIR] |
| 1382 | Build (MacOSX|Darwin) framework |
| 1383 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1384 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1385 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 1386 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1387 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1388 | --enable-big-digits[=BITS] |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1389 | use big digits for Python longs [[BITS=30]] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1390 | --enable-unicode[=ucs[24]] |
Benjamin Peterson | 66556b0 | 2010-05-25 02:23:32 +0000 | [diff] [blame] | 1391 | Enable Unicode strings (default is ucs2) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | |
| 1393 | Optional Packages: |
| 1394 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1395 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1396 | --with-universal-archs=ARCH |
| 1397 | select architectures for universal build ("32-bit", |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 1398 | "64-bit", "3-way", "intel" or "all") |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1399 | --with-framework-name=FRAMEWORK |
| 1400 | specify an alternate name of the framework built |
| 1401 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1402 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1403 | --with-cxx-main=<compiler> |
| 1404 | compile main() and link python executable with C++ |
| 1405 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1406 | --with-suffix=.exe set executable suffix |
| 1407 | --with-pydebug build with Py_DEBUG defined |
| 1408 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 1409 | --with-system-expat build pyexpat module using an installed expat |
| 1410 | library |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1411 | --with-system-ffi build _ctypes module using an installed ffi library |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1412 | --with-dbmliborder=db1:db2:... |
| 1413 | order to check db backends for dbm. Valid value is a |
| 1414 | colon separated string with the backend names |
| 1415 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1416 | --with-signal-module disable/enable signal module |
| 1417 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1418 | --with(out)-threads[=DIRECTORY] |
| 1419 | disable/enable thread support |
| 1420 | --with(out)-thread[=DIRECTORY] |
| 1421 | deprecated; use --with(out)-threads |
| 1422 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1423 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1424 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1425 | --with(out)-pymalloc disable/enable specialized mallocs |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 1426 | --with-valgrind Enable Valgrind support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1427 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1428 | --with-fpectl enable SIGFPE catching |
| 1429 | --with-libm=STRING math library |
| 1430 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1431 | |
| 1432 | Some influential environment variables: |
| 1433 | CC C compiler command |
| 1434 | CFLAGS C compiler flags |
| 1435 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1436 | nonstandard directory <lib dir> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1437 | LIBS libraries to pass to the linker, e.g. -l<library> |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1438 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1439 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1440 | CPP C preprocessor |
| 1441 | |
| 1442 | Use these variables to override the choices made by `configure' or to help |
| 1443 | it to find libraries and programs with nonstandard names/locations. |
| 1444 | |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1445 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1447 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1448 | fi |
| 1449 | |
| 1450 | if test "$ac_init_help" = "recursive"; then |
| 1451 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1452 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1453 | test -d "$ac_dir" || |
| 1454 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1455 | continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1456 | ac_builddir=. |
| 1457 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1458 | case "$ac_dir" in |
| 1459 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1460 | *) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1461 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1462 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1463 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1464 | case $ac_top_builddir_sub in |
| 1465 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1466 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1467 | esac ;; |
| 1468 | esac |
| 1469 | ac_abs_top_builddir=$ac_pwd |
| 1470 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1471 | # for backward compatibility: |
| 1472 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1473 | |
| 1474 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1475 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1476 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1477 | ac_top_srcdir=$ac_top_builddir_sub |
| 1478 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1479 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1480 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1481 | ac_top_srcdir=$srcdir |
| 1482 | ac_abs_top_srcdir=$srcdir ;; |
| 1483 | *) # Relative name. |
| 1484 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1485 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1486 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1487 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1488 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1489 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1490 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1491 | # Check for guested configure. |
| 1492 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1493 | echo && |
| 1494 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1495 | elif test -f "$ac_srcdir/configure"; then |
| 1496 | echo && |
| 1497 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1498 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1499 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1500 | fi || ac_status=$? |
| 1501 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1502 | done |
| 1503 | fi |
| 1504 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1505 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1506 | if $ac_init_version; then |
| 1507 | cat <<\_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1508 | python configure 2.7 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1509 | generated by GNU Autoconf 2.65 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1510 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1511 | Copyright (C) 2009 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1512 | This configure script is free software; the Free Software Foundation |
| 1513 | gives unlimited permission to copy, distribute and modify it. |
| 1514 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1515 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1516 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1517 | |
| 1518 | ## ------------------------ ## |
| 1519 | ## Autoconf initialization. ## |
| 1520 | ## ------------------------ ## |
| 1521 | |
| 1522 | # ac_fn_c_try_compile LINENO |
| 1523 | # -------------------------- |
| 1524 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1525 | ac_fn_c_try_compile () |
| 1526 | { |
| 1527 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1528 | rm -f conftest.$ac_objext |
| 1529 | if { { ac_try="$ac_compile" |
| 1530 | case "(($ac_try" in |
| 1531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1532 | *) ac_try_echo=$ac_try;; |
| 1533 | esac |
| 1534 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1535 | $as_echo "$ac_try_echo"; } >&5 |
| 1536 | (eval "$ac_compile") 2>conftest.err |
| 1537 | ac_status=$? |
| 1538 | if test -s conftest.err; then |
| 1539 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1540 | cat conftest.er1 >&5 |
| 1541 | mv -f conftest.er1 conftest.err |
| 1542 | fi |
| 1543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1544 | test $ac_status = 0; } && { |
| 1545 | test -z "$ac_c_werror_flag" || |
| 1546 | test ! -s conftest.err |
| 1547 | } && test -s conftest.$ac_objext; then : |
| 1548 | ac_retval=0 |
| 1549 | else |
| 1550 | $as_echo "$as_me: failed program was:" >&5 |
| 1551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1552 | |
| 1553 | ac_retval=1 |
| 1554 | fi |
| 1555 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1556 | as_fn_set_status $ac_retval |
| 1557 | |
| 1558 | } # ac_fn_c_try_compile |
| 1559 | |
| 1560 | # ac_fn_c_try_cpp LINENO |
| 1561 | # ---------------------- |
| 1562 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1563 | ac_fn_c_try_cpp () |
| 1564 | { |
| 1565 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1566 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1567 | case "(($ac_try" in |
| 1568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1569 | *) ac_try_echo=$ac_try;; |
| 1570 | esac |
| 1571 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1572 | $as_echo "$ac_try_echo"; } >&5 |
| 1573 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1574 | ac_status=$? |
| 1575 | if test -s conftest.err; then |
| 1576 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1577 | cat conftest.er1 >&5 |
| 1578 | mv -f conftest.er1 conftest.err |
| 1579 | fi |
| 1580 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1581 | test $ac_status = 0; } >/dev/null && { |
| 1582 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1583 | test ! -s conftest.err |
| 1584 | }; then : |
| 1585 | ac_retval=0 |
| 1586 | else |
| 1587 | $as_echo "$as_me: failed program was:" >&5 |
| 1588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1589 | |
| 1590 | ac_retval=1 |
| 1591 | fi |
| 1592 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1593 | as_fn_set_status $ac_retval |
| 1594 | |
| 1595 | } # ac_fn_c_try_cpp |
| 1596 | |
| 1597 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1598 | # ------------------------------------------------------- |
| 1599 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1600 | # the include files in INCLUDES and setting the cache variable VAR |
| 1601 | # accordingly. |
| 1602 | ac_fn_c_check_header_mongrel () |
| 1603 | { |
| 1604 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1605 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1607 | $as_echo_n "checking for $2... " >&6; } |
| 1608 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1609 | $as_echo_n "(cached) " >&6 |
| 1610 | fi |
| 1611 | eval ac_res=\$$3 |
| 1612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1613 | $as_echo "$ac_res" >&6; } |
| 1614 | else |
| 1615 | # Is the header compilable? |
| 1616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1617 | $as_echo_n "checking $2 usability... " >&6; } |
| 1618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1619 | /* end confdefs.h. */ |
| 1620 | $4 |
| 1621 | #include <$2> |
| 1622 | _ACEOF |
| 1623 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1624 | ac_header_compiler=yes |
| 1625 | else |
| 1626 | ac_header_compiler=no |
| 1627 | fi |
| 1628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1630 | $as_echo "$ac_header_compiler" >&6; } |
| 1631 | |
| 1632 | # Is the header present? |
| 1633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1634 | $as_echo_n "checking $2 presence... " >&6; } |
| 1635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1636 | /* end confdefs.h. */ |
| 1637 | #include <$2> |
| 1638 | _ACEOF |
| 1639 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1640 | ac_header_preproc=yes |
| 1641 | else |
| 1642 | ac_header_preproc=no |
| 1643 | fi |
| 1644 | rm -f conftest.err conftest.$ac_ext |
| 1645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1646 | $as_echo "$ac_header_preproc" >&6; } |
| 1647 | |
| 1648 | # So? What about this header? |
| 1649 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1650 | yes:no: ) |
| 1651 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1652 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1653 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1654 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1655 | ;; |
| 1656 | no:yes:* ) |
| 1657 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1658 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1659 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1660 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1661 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1662 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1663 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1664 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1665 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1666 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1667 | ( cat <<\_ASBOX |
| 1668 | ## -------------------------------------- ## |
| 1669 | ## Report this to http://bugs.python.org/ ## |
| 1670 | ## -------------------------------------- ## |
| 1671 | _ASBOX |
| 1672 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1673 | ;; |
| 1674 | esac |
| 1675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1676 | $as_echo_n "checking for $2... " >&6; } |
| 1677 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1678 | $as_echo_n "(cached) " >&6 |
| 1679 | else |
| 1680 | eval "$3=\$ac_header_compiler" |
| 1681 | fi |
| 1682 | eval ac_res=\$$3 |
| 1683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1684 | $as_echo "$ac_res" >&6; } |
| 1685 | fi |
| 1686 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1687 | |
| 1688 | } # ac_fn_c_check_header_mongrel |
| 1689 | |
| 1690 | # ac_fn_c_try_run LINENO |
| 1691 | # ---------------------- |
| 1692 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1693 | # that executables *can* be run. |
| 1694 | ac_fn_c_try_run () |
| 1695 | { |
| 1696 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1697 | if { { ac_try="$ac_link" |
| 1698 | case "(($ac_try" in |
| 1699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1700 | *) ac_try_echo=$ac_try;; |
| 1701 | esac |
| 1702 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1703 | $as_echo "$ac_try_echo"; } >&5 |
| 1704 | (eval "$ac_link") 2>&5 |
| 1705 | ac_status=$? |
| 1706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1707 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1708 | { { case "(($ac_try" in |
| 1709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1710 | *) ac_try_echo=$ac_try;; |
| 1711 | esac |
| 1712 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1713 | $as_echo "$ac_try_echo"; } >&5 |
| 1714 | (eval "$ac_try") 2>&5 |
| 1715 | ac_status=$? |
| 1716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1717 | test $ac_status = 0; }; }; then : |
| 1718 | ac_retval=0 |
| 1719 | else |
| 1720 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1721 | $as_echo "$as_me: failed program was:" >&5 |
| 1722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1723 | |
| 1724 | ac_retval=$ac_status |
| 1725 | fi |
| 1726 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1727 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1728 | as_fn_set_status $ac_retval |
| 1729 | |
| 1730 | } # ac_fn_c_try_run |
| 1731 | |
| 1732 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1733 | # ------------------------------------------------------- |
| 1734 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1735 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1736 | ac_fn_c_check_header_compile () |
| 1737 | { |
| 1738 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1740 | $as_echo_n "checking for $2... " >&6; } |
| 1741 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1742 | $as_echo_n "(cached) " >&6 |
| 1743 | else |
| 1744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1745 | /* end confdefs.h. */ |
| 1746 | $4 |
| 1747 | #include <$2> |
| 1748 | _ACEOF |
| 1749 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1750 | eval "$3=yes" |
| 1751 | else |
| 1752 | eval "$3=no" |
| 1753 | fi |
| 1754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1755 | fi |
| 1756 | eval ac_res=\$$3 |
| 1757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1758 | $as_echo "$ac_res" >&6; } |
| 1759 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1760 | |
| 1761 | } # ac_fn_c_check_header_compile |
| 1762 | |
| 1763 | # ac_fn_c_try_link LINENO |
| 1764 | # ----------------------- |
| 1765 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1766 | ac_fn_c_try_link () |
| 1767 | { |
| 1768 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1769 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1770 | if { { ac_try="$ac_link" |
| 1771 | case "(($ac_try" in |
| 1772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1773 | *) ac_try_echo=$ac_try;; |
| 1774 | esac |
| 1775 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1776 | $as_echo "$ac_try_echo"; } >&5 |
| 1777 | (eval "$ac_link") 2>conftest.err |
| 1778 | ac_status=$? |
| 1779 | if test -s conftest.err; then |
| 1780 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1781 | cat conftest.er1 >&5 |
| 1782 | mv -f conftest.er1 conftest.err |
| 1783 | fi |
| 1784 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1785 | test $ac_status = 0; } && { |
| 1786 | test -z "$ac_c_werror_flag" || |
| 1787 | test ! -s conftest.err |
| 1788 | } && test -s conftest$ac_exeext && { |
| 1789 | test "$cross_compiling" = yes || |
| 1790 | $as_test_x conftest$ac_exeext |
| 1791 | }; then : |
| 1792 | ac_retval=0 |
| 1793 | else |
| 1794 | $as_echo "$as_me: failed program was:" >&5 |
| 1795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1796 | |
| 1797 | ac_retval=1 |
| 1798 | fi |
| 1799 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1800 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1801 | # interfere with the next link command; also delete a directory that is |
| 1802 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1803 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1804 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1805 | as_fn_set_status $ac_retval |
| 1806 | |
| 1807 | } # ac_fn_c_try_link |
| 1808 | |
| 1809 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1810 | # ------------------------------------------- |
| 1811 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1812 | # variable VAR accordingly. |
| 1813 | ac_fn_c_check_type () |
| 1814 | { |
| 1815 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1817 | $as_echo_n "checking for $2... " >&6; } |
| 1818 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1819 | $as_echo_n "(cached) " >&6 |
| 1820 | else |
| 1821 | eval "$3=no" |
| 1822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1823 | /* end confdefs.h. */ |
| 1824 | $4 |
| 1825 | int |
| 1826 | main () |
| 1827 | { |
| 1828 | if (sizeof ($2)) |
| 1829 | return 0; |
| 1830 | ; |
| 1831 | return 0; |
| 1832 | } |
| 1833 | _ACEOF |
| 1834 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1836 | /* end confdefs.h. */ |
| 1837 | $4 |
| 1838 | int |
| 1839 | main () |
| 1840 | { |
| 1841 | if (sizeof (($2))) |
| 1842 | return 0; |
| 1843 | ; |
| 1844 | return 0; |
| 1845 | } |
| 1846 | _ACEOF |
| 1847 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1848 | |
| 1849 | else |
| 1850 | eval "$3=yes" |
| 1851 | fi |
| 1852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1853 | fi |
| 1854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1855 | fi |
| 1856 | eval ac_res=\$$3 |
| 1857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1858 | $as_echo "$ac_res" >&6; } |
| 1859 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1860 | |
| 1861 | } # ac_fn_c_check_type |
| 1862 | |
| 1863 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 1864 | # ------------------------------------ |
| 1865 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 1866 | # accordingly. |
| 1867 | ac_fn_c_find_uintX_t () |
| 1868 | { |
| 1869 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 1871 | $as_echo_n "checking for uint$2_t... " >&6; } |
| 1872 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1873 | $as_echo_n "(cached) " >&6 |
| 1874 | else |
| 1875 | eval "$3=no" |
| 1876 | # Order is important - never check a type that is potentially smaller |
| 1877 | # than half of the expected target width. |
| 1878 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 1879 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 1880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1881 | /* end confdefs.h. */ |
| 1882 | $ac_includes_default |
| 1883 | int |
| 1884 | main () |
| 1885 | { |
| 1886 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
| 1887 | test_array [0] = 0 |
| 1888 | |
| 1889 | ; |
| 1890 | return 0; |
| 1891 | } |
| 1892 | _ACEOF |
| 1893 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1894 | case $ac_type in #( |
| 1895 | uint$2_t) : |
| 1896 | eval "$3=yes" ;; #( |
| 1897 | *) : |
| 1898 | eval "$3=\$ac_type" ;; |
| 1899 | esac |
| 1900 | fi |
| 1901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1902 | eval as_val=\$$3 |
| 1903 | if test "x$as_val" = x""no; then : |
| 1904 | |
| 1905 | else |
| 1906 | break |
| 1907 | fi |
| 1908 | done |
| 1909 | fi |
| 1910 | eval ac_res=\$$3 |
| 1911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1912 | $as_echo "$ac_res" >&6; } |
| 1913 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1914 | |
| 1915 | } # ac_fn_c_find_uintX_t |
| 1916 | |
| 1917 | # ac_fn_c_find_intX_t LINENO BITS VAR |
| 1918 | # ----------------------------------- |
| 1919 | # Finds a signed integer type with width BITS, setting cache variable VAR |
| 1920 | # accordingly. |
| 1921 | ac_fn_c_find_intX_t () |
| 1922 | { |
| 1923 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 1925 | $as_echo_n "checking for int$2_t... " >&6; } |
| 1926 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1927 | $as_echo_n "(cached) " >&6 |
| 1928 | else |
| 1929 | eval "$3=no" |
| 1930 | # Order is important - never check a type that is potentially smaller |
| 1931 | # than half of the expected target width. |
| 1932 | for ac_type in int$2_t 'int' 'long int' \ |
| 1933 | 'long long int' 'short int' 'signed char'; do |
| 1934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1935 | /* end confdefs.h. */ |
| 1936 | $ac_includes_default |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1937 | int |
| 1938 | main () |
| 1939 | { |
Benjamin Peterson | 66556b0 | 2010-05-25 02:23:32 +0000 | [diff] [blame] | 1940 | static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 }; |
| 1941 | 0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1942 | test_array [0] = 0 |
| 1943 | |
| 1944 | ; |
| 1945 | return 0; |
| 1946 | } |
| 1947 | _ACEOF |
| 1948 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1950 | /* end confdefs.h. */ |
| 1951 | $ac_includes_default |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1952 | int |
| 1953 | main () |
| 1954 | { |
Benjamin Peterson | 66556b0 | 2010-05-25 02:23:32 +0000 | [diff] [blame] | 1955 | static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 }; |
| 1956 | ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 1957 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
| 1958 | test_array [0] = 0 |
| 1959 | |
| 1960 | ; |
| 1961 | return 0; |
| 1962 | } |
| 1963 | _ACEOF |
| 1964 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1965 | |
| 1966 | else |
| 1967 | case $ac_type in #( |
| 1968 | int$2_t) : |
| 1969 | eval "$3=yes" ;; #( |
| 1970 | *) : |
| 1971 | eval "$3=\$ac_type" ;; |
| 1972 | esac |
| 1973 | fi |
| 1974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1975 | fi |
| 1976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1977 | eval as_val=\$$3 |
| 1978 | if test "x$as_val" = x""no; then : |
| 1979 | |
| 1980 | else |
| 1981 | break |
| 1982 | fi |
| 1983 | done |
| 1984 | fi |
| 1985 | eval ac_res=\$$3 |
| 1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1987 | $as_echo "$ac_res" >&6; } |
| 1988 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1989 | |
| 1990 | } # ac_fn_c_find_intX_t |
| 1991 | |
| 1992 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1993 | # -------------------------------------------- |
| 1994 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1995 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1996 | # computed |
| 1997 | ac_fn_c_compute_int () |
| 1998 | { |
| 1999 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2000 | if test "$cross_compiling" = yes; then |
| 2001 | # Depending upon the size, compute the lo and hi bounds. |
| 2002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2003 | /* end confdefs.h. */ |
| 2004 | $4 |
| 2005 | int |
| 2006 | main () |
| 2007 | { |
| 2008 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2009 | test_array [0] = 0 |
| 2010 | |
| 2011 | ; |
| 2012 | return 0; |
| 2013 | } |
| 2014 | _ACEOF |
| 2015 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2016 | ac_lo=0 ac_mid=0 |
| 2017 | while :; do |
| 2018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2019 | /* end confdefs.h. */ |
| 2020 | $4 |
| 2021 | int |
| 2022 | main () |
| 2023 | { |
| 2024 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2025 | test_array [0] = 0 |
| 2026 | |
| 2027 | ; |
| 2028 | return 0; |
| 2029 | } |
| 2030 | _ACEOF |
| 2031 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2032 | ac_hi=$ac_mid; break |
| 2033 | else |
| 2034 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2035 | if test $ac_lo -le $ac_mid; then |
| 2036 | ac_lo= ac_hi= |
| 2037 | break |
| 2038 | fi |
| 2039 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2040 | fi |
| 2041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2042 | done |
| 2043 | else |
| 2044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2045 | /* end confdefs.h. */ |
| 2046 | $4 |
| 2047 | int |
| 2048 | main () |
| 2049 | { |
| 2050 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2051 | test_array [0] = 0 |
| 2052 | |
| 2053 | ; |
| 2054 | return 0; |
| 2055 | } |
| 2056 | _ACEOF |
| 2057 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2058 | ac_hi=-1 ac_mid=-1 |
| 2059 | while :; do |
| 2060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2061 | /* end confdefs.h. */ |
| 2062 | $4 |
| 2063 | int |
| 2064 | main () |
| 2065 | { |
| 2066 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2067 | test_array [0] = 0 |
| 2068 | |
| 2069 | ; |
| 2070 | return 0; |
| 2071 | } |
| 2072 | _ACEOF |
| 2073 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2074 | ac_lo=$ac_mid; break |
| 2075 | else |
| 2076 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2077 | if test $ac_mid -le $ac_hi; then |
| 2078 | ac_lo= ac_hi= |
| 2079 | break |
| 2080 | fi |
| 2081 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2082 | fi |
| 2083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2084 | done |
| 2085 | else |
| 2086 | ac_lo= ac_hi= |
| 2087 | fi |
| 2088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2089 | fi |
| 2090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2091 | # Binary search between lo and hi bounds. |
| 2092 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2093 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2095 | /* end confdefs.h. */ |
| 2096 | $4 |
| 2097 | int |
| 2098 | main () |
| 2099 | { |
| 2100 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2101 | test_array [0] = 0 |
| 2102 | |
| 2103 | ; |
| 2104 | return 0; |
| 2105 | } |
| 2106 | _ACEOF |
| 2107 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2108 | ac_hi=$ac_mid |
| 2109 | else |
| 2110 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2111 | fi |
| 2112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2113 | done |
| 2114 | case $ac_lo in #(( |
| 2115 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2116 | '') ac_retval=1 ;; |
| 2117 | esac |
| 2118 | else |
| 2119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2120 | /* end confdefs.h. */ |
| 2121 | $4 |
| 2122 | static long int longval () { return $2; } |
| 2123 | static unsigned long int ulongval () { return $2; } |
| 2124 | #include <stdio.h> |
| 2125 | #include <stdlib.h> |
| 2126 | int |
| 2127 | main () |
| 2128 | { |
| 2129 | |
| 2130 | FILE *f = fopen ("conftest.val", "w"); |
| 2131 | if (! f) |
| 2132 | return 1; |
| 2133 | if (($2) < 0) |
| 2134 | { |
| 2135 | long int i = longval (); |
| 2136 | if (i != ($2)) |
| 2137 | return 1; |
| 2138 | fprintf (f, "%ld", i); |
| 2139 | } |
| 2140 | else |
| 2141 | { |
| 2142 | unsigned long int i = ulongval (); |
| 2143 | if (i != ($2)) |
| 2144 | return 1; |
| 2145 | fprintf (f, "%lu", i); |
| 2146 | } |
| 2147 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2148 | on some platforms. */ |
| 2149 | return ferror (f) || fclose (f) != 0; |
| 2150 | |
| 2151 | ; |
| 2152 | return 0; |
| 2153 | } |
| 2154 | _ACEOF |
| 2155 | if ac_fn_c_try_run "$LINENO"; then : |
| 2156 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2157 | else |
| 2158 | ac_retval=1 |
| 2159 | fi |
| 2160 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2161 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2162 | rm -f conftest.val |
| 2163 | |
| 2164 | fi |
| 2165 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2166 | as_fn_set_status $ac_retval |
| 2167 | |
| 2168 | } # ac_fn_c_compute_int |
| 2169 | |
| 2170 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2171 | # ---------------------------------- |
| 2172 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2173 | ac_fn_c_check_func () |
| 2174 | { |
| 2175 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2177 | $as_echo_n "checking for $2... " >&6; } |
| 2178 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2179 | $as_echo_n "(cached) " >&6 |
| 2180 | else |
| 2181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2182 | /* end confdefs.h. */ |
| 2183 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2184 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2185 | #define $2 innocuous_$2 |
| 2186 | |
| 2187 | /* System header to define __stub macros and hopefully few prototypes, |
| 2188 | which can conflict with char $2 (); below. |
| 2189 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2190 | <limits.h> exists even on freestanding compilers. */ |
| 2191 | |
| 2192 | #ifdef __STDC__ |
| 2193 | # include <limits.h> |
| 2194 | #else |
| 2195 | # include <assert.h> |
| 2196 | #endif |
| 2197 | |
| 2198 | #undef $2 |
| 2199 | |
| 2200 | /* Override any GCC internal prototype to avoid an error. |
| 2201 | Use char because int might match the return type of a GCC |
| 2202 | builtin and then its argument prototype would still apply. */ |
| 2203 | #ifdef __cplusplus |
| 2204 | extern "C" |
| 2205 | #endif |
| 2206 | char $2 (); |
| 2207 | /* The GNU C library defines this for functions which it implements |
| 2208 | to always fail with ENOSYS. Some functions are actually named |
| 2209 | something starting with __ and the normal name is an alias. */ |
| 2210 | #if defined __stub_$2 || defined __stub___$2 |
| 2211 | choke me |
| 2212 | #endif |
| 2213 | |
| 2214 | int |
| 2215 | main () |
| 2216 | { |
| 2217 | return $2 (); |
| 2218 | ; |
| 2219 | return 0; |
| 2220 | } |
| 2221 | _ACEOF |
| 2222 | if ac_fn_c_try_link "$LINENO"; then : |
| 2223 | eval "$3=yes" |
| 2224 | else |
| 2225 | eval "$3=no" |
| 2226 | fi |
| 2227 | rm -f core conftest.err conftest.$ac_objext \ |
| 2228 | conftest$ac_exeext conftest.$ac_ext |
| 2229 | fi |
| 2230 | eval ac_res=\$$3 |
| 2231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2232 | $as_echo "$ac_res" >&6; } |
| 2233 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2234 | |
| 2235 | } # ac_fn_c_check_func |
| 2236 | |
| 2237 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2238 | # ---------------------------------------------------- |
| 2239 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2240 | # INCLUDES, setting cache variable VAR accordingly. |
| 2241 | ac_fn_c_check_member () |
| 2242 | { |
| 2243 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2245 | $as_echo_n "checking for $2.$3... " >&6; } |
| 2246 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2247 | $as_echo_n "(cached) " >&6 |
| 2248 | else |
| 2249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2250 | /* end confdefs.h. */ |
| 2251 | $5 |
| 2252 | int |
| 2253 | main () |
| 2254 | { |
| 2255 | static $2 ac_aggr; |
| 2256 | if (ac_aggr.$3) |
| 2257 | return 0; |
| 2258 | ; |
| 2259 | return 0; |
| 2260 | } |
| 2261 | _ACEOF |
| 2262 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2263 | eval "$4=yes" |
| 2264 | else |
| 2265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2266 | /* end confdefs.h. */ |
| 2267 | $5 |
| 2268 | int |
| 2269 | main () |
| 2270 | { |
| 2271 | static $2 ac_aggr; |
| 2272 | if (sizeof ac_aggr.$3) |
| 2273 | return 0; |
| 2274 | ; |
| 2275 | return 0; |
| 2276 | } |
| 2277 | _ACEOF |
| 2278 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2279 | eval "$4=yes" |
| 2280 | else |
| 2281 | eval "$4=no" |
| 2282 | fi |
| 2283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2284 | fi |
| 2285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2286 | fi |
| 2287 | eval ac_res=\$$4 |
| 2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2289 | $as_echo "$ac_res" >&6; } |
| 2290 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2291 | |
| 2292 | } # ac_fn_c_check_member |
| 2293 | |
| 2294 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
| 2295 | # ------------------------------------ |
| 2296 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 2297 | ac_fn_c_check_decl () |
| 2298 | { |
| 2299 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 |
| 2301 | $as_echo_n "checking whether $2 is declared... " >&6; } |
| 2302 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2303 | $as_echo_n "(cached) " >&6 |
| 2304 | else |
| 2305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2306 | /* end confdefs.h. */ |
| 2307 | $4 |
| 2308 | int |
| 2309 | main () |
| 2310 | { |
| 2311 | #ifndef $2 |
| 2312 | (void) $2; |
| 2313 | #endif |
| 2314 | |
| 2315 | ; |
| 2316 | return 0; |
| 2317 | } |
| 2318 | _ACEOF |
| 2319 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2320 | eval "$3=yes" |
| 2321 | else |
| 2322 | eval "$3=no" |
| 2323 | fi |
| 2324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2325 | fi |
| 2326 | eval ac_res=\$$3 |
| 2327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2328 | $as_echo "$ac_res" >&6; } |
| 2329 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2330 | |
| 2331 | } # ac_fn_c_check_decl |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2332 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2333 | This file contains any messages produced by compilers while |
| 2334 | running configure, to aid debugging if configure makes a mistake. |
| 2335 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2336 | It was created by python $as_me 2.7, which was |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2337 | generated by GNU Autoconf 2.65. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2338 | |
| 2339 | $ $0 $@ |
| 2340 | |
| 2341 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2342 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2343 | { |
| 2344 | cat <<_ASUNAME |
| 2345 | ## --------- ## |
| 2346 | ## Platform. ## |
| 2347 | ## --------- ## |
| 2348 | |
| 2349 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2350 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2351 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2352 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2353 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2354 | |
| 2355 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2356 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2357 | |
| 2358 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2359 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2360 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2361 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2362 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2363 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2364 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2365 | |
| 2366 | _ASUNAME |
| 2367 | |
| 2368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2369 | for as_dir in $PATH |
| 2370 | do |
| 2371 | IFS=$as_save_IFS |
| 2372 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2373 | $as_echo "PATH: $as_dir" |
| 2374 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2375 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2376 | |
| 2377 | } >&5 |
| 2378 | |
| 2379 | cat >&5 <<_ACEOF |
| 2380 | |
| 2381 | |
| 2382 | ## ----------- ## |
| 2383 | ## Core tests. ## |
| 2384 | ## ----------- ## |
| 2385 | |
| 2386 | _ACEOF |
| 2387 | |
| 2388 | |
| 2389 | # Keep a trace of the command line. |
| 2390 | # Strip out --no-create and --no-recursion so they do not pile up. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2391 | # Strip out --silent because we don't want to record it for future runs. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2392 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2393 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2394 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2395 | ac_configure_args0= |
| 2396 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2397 | ac_must_keep_next=false |
| 2398 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2399 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2400 | for ac_arg |
| 2401 | do |
| 2402 | case $ac_arg in |
| 2403 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2404 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2405 | | -silent | --silent | --silen | --sile | --sil) |
| 2406 | continue ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2407 | *\'*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2408 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2409 | esac |
| 2410 | case $ac_pass in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2411 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2412 | 2) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2413 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2414 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2415 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2416 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2417 | case $ac_arg in |
| 2418 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2419 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2420 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2421 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2422 | case "$ac_configure_args0 " in |
| 2423 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2424 | esac |
| 2425 | ;; |
| 2426 | -* ) ac_must_keep_next=true ;; |
| 2427 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2428 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2429 | as_fn_append ac_configure_args " '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2430 | ;; |
| 2431 | esac |
| 2432 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2433 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2434 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2435 | { ac_configure_args1=; unset ac_configure_args1;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2436 | |
| 2437 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2438 | # config.log. We remove comments because anyway the quotes in there |
| 2439 | # would cause problems or look ugly. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2440 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2441 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2442 | trap 'exit_status=$? |
| 2443 | # Save into config.log some information that might help in debugging. |
| 2444 | { |
| 2445 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2446 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2447 | cat <<\_ASBOX |
| 2448 | ## ---------------- ## |
| 2449 | ## Cache variables. ## |
| 2450 | ## ---------------- ## |
| 2451 | _ASBOX |
| 2452 | echo |
| 2453 | # The following way of writing the cache mishandles newlines in values, |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2454 | ( |
| 2455 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2456 | eval ac_val=\$$ac_var |
| 2457 | case $ac_val in #( |
| 2458 | *${as_nl}*) |
| 2459 | case $ac_var in #( |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2460 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2461 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2462 | esac |
| 2463 | case $ac_var in #( |
| 2464 | _ | IFS | as_nl) ;; #( |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2465 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2466 | *) { eval $ac_var=; unset $ac_var;} ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2467 | esac ;; |
| 2468 | esac |
| 2469 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2470 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2471 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2472 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2473 | sed -n \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2474 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2475 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2476 | ;; #( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2477 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2478 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 2479 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2480 | esac | |
| 2481 | sort |
| 2482 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2483 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2484 | |
| 2485 | cat <<\_ASBOX |
| 2486 | ## ----------------- ## |
| 2487 | ## Output variables. ## |
| 2488 | ## ----------------- ## |
| 2489 | _ASBOX |
| 2490 | echo |
| 2491 | for ac_var in $ac_subst_vars |
| 2492 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2493 | eval ac_val=\$$ac_var |
| 2494 | case $ac_val in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2495 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2496 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2497 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2498 | done | sort |
| 2499 | echo |
| 2500 | |
| 2501 | if test -n "$ac_subst_files"; then |
| 2502 | cat <<\_ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2503 | ## ------------------- ## |
| 2504 | ## File substitutions. ## |
| 2505 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2506 | _ASBOX |
| 2507 | echo |
| 2508 | for ac_var in $ac_subst_files |
| 2509 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2510 | eval ac_val=\$$ac_var |
| 2511 | case $ac_val in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2512 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2513 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2514 | $as_echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2515 | done | sort |
| 2516 | echo |
| 2517 | fi |
| 2518 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2519 | if test -s confdefs.h; then |
| 2520 | cat <<\_ASBOX |
| 2521 | ## ----------- ## |
| 2522 | ## confdefs.h. ## |
| 2523 | ## ----------- ## |
| 2524 | _ASBOX |
| 2525 | echo |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2526 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2527 | echo |
| 2528 | fi |
| 2529 | test "$ac_signal" != 0 && |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2530 | $as_echo "$as_me: caught signal $ac_signal" |
| 2531 | $as_echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2532 | } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2533 | rm -f core *.core core.conftest.* && |
| 2534 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 | exit $exit_status |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2536 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2537 | for ac_signal in 1 2 13 15; do |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2538 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2539 | done |
| 2540 | ac_signal=0 |
| 2541 | |
| 2542 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2543 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2544 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2545 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2547 | # Predefined preprocessor variables. |
| 2548 | |
| 2549 | cat >>confdefs.h <<_ACEOF |
| 2550 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2551 | _ACEOF |
| 2552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2553 | cat >>confdefs.h <<_ACEOF |
| 2554 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2555 | _ACEOF |
| 2556 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2557 | cat >>confdefs.h <<_ACEOF |
| 2558 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2559 | _ACEOF |
| 2560 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2561 | cat >>confdefs.h <<_ACEOF |
| 2562 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2563 | _ACEOF |
| 2564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2565 | cat >>confdefs.h <<_ACEOF |
| 2566 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2567 | _ACEOF |
| 2568 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2569 | cat >>confdefs.h <<_ACEOF |
| 2570 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2571 | _ACEOF |
| 2572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2573 | |
| 2574 | # Let the site file select an alternate cache file if it wants to. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2575 | # Prefer an explicitly selected file to automatically selected ones. |
| 2576 | ac_site_file1=NONE |
| 2577 | ac_site_file2=NONE |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2578 | if test -n "$CONFIG_SITE"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2579 | ac_site_file1=$CONFIG_SITE |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2580 | elif test "x$prefix" != xNONE; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2581 | ac_site_file1=$prefix/share/config.site |
| 2582 | ac_site_file2=$prefix/etc/config.site |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2583 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2584 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2585 | ac_site_file2=$ac_default_prefix/etc/config.site |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2586 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2587 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2588 | do |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2589 | test "x$ac_site_file" = xNONE && continue |
| 2590 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2592 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2593 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2594 | . "$ac_site_file" |
| 2595 | fi |
| 2596 | done |
| 2597 | |
| 2598 | if test -r "$cache_file"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2599 | # Some versions of bash will fail to source /dev/null (special files |
| 2600 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2601 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2603 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2604 | case $cache_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2605 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2606 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2607 | esac |
| 2608 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2609 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2611 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2612 | >$cache_file |
| 2613 | fi |
| 2614 | |
| 2615 | # Check that the precious variables saved in the cache have kept the same |
| 2616 | # value. |
| 2617 | ac_cache_corrupted=false |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2618 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2619 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2620 | eval ac_new_set=\$ac_env_${ac_var}_set |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2621 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2622 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2623 | case $ac_old_set,$ac_new_set in |
| 2624 | set,) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2626 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2627 | ac_cache_corrupted=: ;; |
| 2628 | ,set) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2630 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2631 | ac_cache_corrupted=: ;; |
| 2632 | ,);; |
| 2633 | *) |
| 2634 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2635 | # differences in whitespace do not lead to failure. |
| 2636 | ac_old_val_w=`echo x $ac_old_val` |
| 2637 | ac_new_val_w=`echo x $ac_new_val` |
| 2638 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2639 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2640 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2641 | ac_cache_corrupted=: |
| 2642 | else |
| 2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2644 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2645 | eval $ac_var=\$ac_old_val |
| 2646 | fi |
| 2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2648 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2650 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2651 | fi;; |
| 2652 | esac |
| 2653 | # Pass precious variables to config.status. |
| 2654 | if test "$ac_new_set" = set; then |
| 2655 | case $ac_new_val in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2656 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2657 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2658 | esac |
| 2659 | case " $ac_configure_args " in |
| 2660 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2661 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2662 | esac |
| 2663 | fi |
| 2664 | done |
| 2665 | if $ac_cache_corrupted; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2667 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2669 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2670 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2671 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2672 | ## -------------------- ## |
| 2673 | ## Main body of script. ## |
| 2674 | ## -------------------- ## |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2675 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2676 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2677 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2681 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2682 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2683 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2684 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2685 | |
| 2686 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2687 | |
Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 2688 | if test "$prefix" != "/"; then |
| 2689 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 2690 | fi |
| 2691 | |
| 2692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2693 | |
| 2694 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2695 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 2696 | # with other autoconf-based packages that include Python.h |
| 2697 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 2698 | rm confdefs.h |
| 2699 | mv confdefs.h.new confdefs.h |
| 2700 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2701 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 2702 | VERSION=2.7 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2703 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2704 | |
| 2705 | SOVERSION=1.0 |
| 2706 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2707 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 2708 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 2709 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2710 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2711 | |
| 2712 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2713 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2714 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 2715 | # them. |
| 2716 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2717 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2718 | |
| 2719 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2720 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2721 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 2722 | # them. |
| 2723 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2724 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2725 | |
| 2726 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2727 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2728 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 2729 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2730 | $as_echo "#define _BSD_TYPES 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2731 | |
| 2732 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2733 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 2734 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 2735 | # them. |
| 2736 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2737 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2738 | |
| 2739 | |
| 2740 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2741 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2742 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2743 | # Arguments passed to configure. |
| 2744 | |
| 2745 | CONFIG_ARGS="$ac_configure_args" |
| 2746 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 |
| 2748 | $as_echo_n "checking for --enable-universalsdk... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2749 | # Check whether --enable-universalsdk was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2750 | if test "${enable_universalsdk+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2751 | enableval=$enable_universalsdk; |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2752 | case $enableval in |
| 2753 | yes) |
| 2754 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2755 | if test ! -d "${enableval}" |
| 2756 | then |
| 2757 | enableval=/ |
| 2758 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2759 | ;; |
| 2760 | esac |
| 2761 | case $enableval in |
| 2762 | no) |
| 2763 | UNIVERSALSDK= |
| 2764 | enable_universalsdk= |
| 2765 | ;; |
| 2766 | *) |
| 2767 | UNIVERSALSDK=$enableval |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2768 | if test ! -d "${UNIVERSALSDK}" |
| 2769 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2770 | as_fn_error "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2771 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2772 | ;; |
| 2773 | esac |
| 2774 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2775 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2776 | else |
| 2777 | |
| 2778 | UNIVERSALSDK= |
| 2779 | enable_universalsdk= |
| 2780 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2781 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2782 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2783 | if test -n "${UNIVERSALSDK}" |
| 2784 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 |
| 2786 | $as_echo "${UNIVERSALSDK}" >&6; } |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2787 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2789 | $as_echo "no" >&6; } |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 2790 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2791 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2792 | |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 2793 | |
| 2794 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2795 | UNIVERSAL_ARCHS="32-bit" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 2796 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 |
| 2798 | $as_echo_n "checking for --with-universal-archs... " >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2799 | |
| 2800 | # Check whether --with-universal-archs was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2801 | if test "${with_universal_archs+set}" = set; then : |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2802 | withval=$with_universal_archs; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 2804 | $as_echo "$withval" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2805 | UNIVERSAL_ARCHS="$withval" |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 2806 | if test "${enable_universalsdk}" ; then |
| 2807 | : |
| 2808 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2809 | as_fn_error "--with-universal-archs without --enable-universalsdk. See Mac/README" "$LINENO" 5 |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 2810 | fi |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2811 | |
| 2812 | else |
| 2813 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 |
| 2815 | $as_echo "32-bit" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2816 | |
| 2817 | fi |
| 2818 | |
| 2819 | |
| 2820 | |
| 2821 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2822 | |
| 2823 | # Check whether --with-framework-name was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2824 | if test "${with_framework_name+set}" = set; then : |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2825 | withval=$with_framework_name; |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 2826 | if test "${enable_framework}"; then |
| 2827 | : |
| 2828 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2829 | as_fn_error "--with-framework-name without --enable-framework. See Mac/README" "$LINENO" 5 |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 2830 | fi |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2831 | PYTHONFRAMEWORK=${withval} |
| 2832 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 2833 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 2834 | |
| 2835 | else |
| 2836 | |
| 2837 | PYTHONFRAMEWORK=Python |
| 2838 | PYTHONFRAMEWORKDIR=Python.framework |
| 2839 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 2840 | |
| 2841 | fi |
| 2842 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2843 | # Check whether --enable-framework was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2844 | if test "${enable_framework+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2845 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2846 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2847 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2848 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2849 | esac |
| 2850 | case $enableval in |
| 2851 | no) |
| 2852 | PYTHONFRAMEWORK= |
| 2853 | PYTHONFRAMEWORKDIR=no-framework |
| 2854 | PYTHONFRAMEWORKPREFIX= |
| 2855 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2856 | FRAMEWORKINSTALLFIRST= |
| 2857 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2858 | FRAMEWORKALTINSTALLFIRST= |
| 2859 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2860 | if test "x${prefix}" = "xNONE"; then |
| 2861 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2862 | else |
| 2863 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2864 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2865 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2866 | ;; |
| 2867 | *) |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2868 | PYTHONFRAMEWORKPREFIX="${enableval}" |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2869 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2870 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2871 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 2872 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
| 2873 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2874 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2875 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2876 | if test "x${prefix}" = "xNONE" ; then |
| 2877 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2878 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2879 | else |
| 2880 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2881 | fi |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2882 | |
| 2883 | case "${enableval}" in |
| 2884 | /System*) |
| 2885 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 2886 | if test "${prefix}" = "NONE" ; then |
| 2887 | # See below |
| 2888 | FRAMEWORKUNIXTOOLSPREFIX="/usr" |
| 2889 | fi |
| 2890 | ;; |
| 2891 | |
| 2892 | /Library*) |
| 2893 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 2894 | ;; |
| 2895 | |
| 2896 | */Library/Frameworks) |
| 2897 | MDIR="`dirname "${enableval}"`" |
| 2898 | MDIR="`dirname "${MDIR}"`" |
| 2899 | FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" |
| 2900 | |
| 2901 | if test "${prefix}" = "NONE"; then |
| 2902 | # User hasn't specified the |
| 2903 | # --prefix option, but wants to install |
| 2904 | # the framework in a non-default location, |
| 2905 | # ensure that the compatibility links get |
| 2906 | # installed relative to that prefix as well |
| 2907 | # instead of in /usr/local. |
| 2908 | FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" |
| 2909 | fi |
| 2910 | ;; |
| 2911 | |
| 2912 | *) |
| 2913 | FRAMEWORKINSTALLAPPSPREFIX="/Applications" |
| 2914 | ;; |
| 2915 | esac |
| 2916 | |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2917 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2918 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2919 | # Add files for Mac specific code to the list of output |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2920 | # files: |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2921 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2922 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2923 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2924 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2925 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2926 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2927 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2928 | |
| 2929 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2930 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2931 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2932 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2933 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2934 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2935 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2936 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2937 | PYTHONFRAMEWORKPREFIX= |
| 2938 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2939 | FRAMEWORKINSTALLFIRST= |
| 2940 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2941 | FRAMEWORKALTINSTALLFIRST= |
| 2942 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2943 | if test "x${prefix}" = "xNONE" ; then |
| 2944 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2945 | else |
| 2946 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2947 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2948 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2949 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2950 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2951 | fi |
| 2952 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2953 | |
| 2954 | |
| 2955 | |
| 2956 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2957 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2958 | |
| 2959 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2960 | |
| 2961 | |
| 2962 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2963 | |
Ronald Oussoren | 01d149f | 2010-04-30 11:20:14 +0000 | [diff] [blame] | 2964 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2965 | ##AC_ARG_WITH(dyld, |
Matthias Klose | 22520ea | 2010-05-08 10:14:46 +0000 | [diff] [blame] | 2966 | ## AS_HELP_STRING([--with-dyld], |
| 2967 | ## [Use (OpenStep|Rhapsody) dynamic linker])) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2968 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2969 | # Set name for machine-dependent library files |
| 2970 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 2971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 |
| 2972 | $as_echo_n "checking MACHDEP... " >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2973 | if test -z "$MACHDEP" |
| 2974 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2975 | ac_sys_system=`uname -s` |
Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 2976 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2977 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2978 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2979 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2980 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2981 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2982 | ac_md_system=`echo $ac_sys_system | |
| 2983 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2984 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2985 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2986 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2987 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2988 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2989 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2990 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2991 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2992 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2993 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2994 | esac |
| 2995 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2996 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2997 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2998 | # disable features if it is defined, without any means to access these |
| 2999 | # features as extensions. For these systems, we skip the definition of |
| 3000 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 3001 | # some feature, make sure there is no alternative way to access this |
| 3002 | # feature. Also, when using wildcards, make sure you have verified the |
| 3003 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 3004 | # wildcard, and that the wildcard does not include future systems |
| 3005 | # (which may remove their limitations). |
| 3006 | case $ac_sys_system/$ac_sys_release in |
| 3007 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 3008 | # even though select is a POSIX function. Reported by J. Ribbens. |
Martin v. Löwis | 76bafc6 | 2003-10-03 13:47:44 +0000 | [diff] [blame] | 3009 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Martin v. Löwis | 7875ef6 | 2010-02-15 21:41:12 +0000 | [diff] [blame] | 3010 | # In addition, Stefan Krah confirms that issue #1244610 exists through |
| 3011 | # OpenBSD 4.6, but is fixed in 4.7. |
| 3012 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456]) |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3013 | define_xopen_source=no |
| 3014 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3015 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3016 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3017 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3018 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 3019 | |
| 3020 | ;; |
Martin v. Löwis | 7875ef6 | 2010-02-15 21:41:12 +0000 | [diff] [blame] | 3021 | OpenBSD/4.[789]) |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3022 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 3023 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 3024 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 3025 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3026 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame] | 3027 | |
| 3028 | ;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 3029 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 3030 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 3031 | # Marc Recht |
Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 3032 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 3033 | define_xopen_source=no;; |
Martin v. Löwis | b41afb5 | 2010-05-28 15:28:47 +0000 | [diff] [blame^] | 3034 | # From the perspective of Solaris, _XOPEN_SOURCE is not so much a |
| 3035 | # request to enable features supported by the standard as a request |
| 3036 | # to disable features not supported by the standard. The best way |
| 3037 | # for Python to use Solaris is simply to leave _XOPEN_SOURCE out |
| 3038 | # entirely and define __EXTENSIONS__ instead. |
| 3039 | SunOS/*) |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3040 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3041 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 3042 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3043 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3044 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3045 | define_xopen_source=no;; |
| 3046 | # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3047 | # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3048 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3049 | define_xopen_source=no;; |
Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 3050 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 3051 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 3052 | FreeBSD/4.*) |
| 3053 | define_xopen_source=no;; |
| 3054 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 3055 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 3056 | # identifies itself as Darwin/7.* |
| 3057 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3058 | # disables platform specific features beyond repair. |
| 3059 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 3060 | # has no effect, don't bother defining them |
| 3061 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3062 | define_xopen_source=no;; |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 3063 | Darwin/1[0-9].*) |
| 3064 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3065 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 3066 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 3067 | # or has another value. By not (re)defining it, the defaults come in place. |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 3068 | AIX/4) |
| 3069 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3070 | AIX/5) |
| 3071 | if test `uname -r` -eq 1; then |
| 3072 | define_xopen_source=no |
| 3073 | fi |
| 3074 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 3075 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 3076 | # defining NI_NUMERICHOST. |
| 3077 | QNX/6.3.2) |
| 3078 | define_xopen_source=no |
| 3079 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 3080 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3081 | esac |
| 3082 | |
| 3083 | if test $define_xopen_source = yes |
| 3084 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3085 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3086 | $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3087 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3088 | |
| 3089 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 3090 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 3091 | # several APIs are not declared. Since this is also needed in some |
| 3092 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3093 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3094 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3095 | |
| 3096 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3097 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3098 | $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3099 | |
| 3100 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3101 | fi |
| 3102 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3103 | # |
| 3104 | # SGI compilers allow the specification of the both the ABI and the |
| 3105 | # ISA on the command line. Depending on the values of these switches, |
| 3106 | # different and often incompatable code will be generated. |
| 3107 | # |
| 3108 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 3109 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 3110 | # variable is also adjusted. |
| 3111 | # |
| 3112 | |
| 3113 | if test ! -z "$SGI_ABI" |
| 3114 | then |
| 3115 | CC="cc $SGI_ABI" |
| 3116 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 3117 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 3118 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 |
| 3120 | $as_echo "$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3121 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3122 | # And add extra plat-mac for darwin |
| 3123 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3124 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5 |
| 3126 | $as_echo_n "checking EXTRAPLATDIR... " >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3127 | if test -z "$EXTRAPLATDIR" |
| 3128 | then |
| 3129 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 3130 | darwin) |
| 3131 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 3132 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 3133 | ;; |
| 3134 | *) |
| 3135 | EXTRAPLATDIR="" |
| 3136 | EXTRAMACHDEPPATH="" |
| 3137 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3138 | esac |
| 3139 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5 |
| 3141 | $as_echo "$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 3142 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3143 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 3144 | # it may influence the way we can build extensions, so distutils |
| 3145 | # needs to check it |
| 3146 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3147 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3148 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3149 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3150 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking machine type as reported by uname -m" >&5 |
| 3152 | $as_echo_n "checking machine type as reported by uname -m... " >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 3153 | ac_sys_machine=`uname -m` |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sys_machine" >&5 |
| 3155 | $as_echo "$ac_sys_machine" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 3156 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3157 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3158 | |
| 3159 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 3160 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 3161 | # just to get things to compile and link. Users are free to override OPT |
| 3162 | # when running configure or make. The build should not break if they do. |
| 3163 | # BASECFLAGS should generally not be messed with, however. |
| 3164 | |
| 3165 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 3166 | # on that fiddles with OPT and BASECFLAGS? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 |
| 3168 | $as_echo_n "checking for --without-gcc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3169 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3170 | # Check whether --with-gcc was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3171 | if test "${with_gcc+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3172 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3173 | case $withval in |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 3174 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3175 | without_gcc=yes;; |
| 3176 | yes) CC=gcc |
| 3177 | without_gcc=no;; |
| 3178 | *) CC=$withval |
| 3179 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3180 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3181 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3182 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3183 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3184 | AIX*) CC=cc_r |
| 3185 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3186 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3187 | case $BE_HOST_CPU in |
| 3188 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3189 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3190 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3191 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 3192 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3193 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3194 | ;; |
| 3195 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3196 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3197 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3198 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3199 | ;; |
| 3200 | *) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3201 | as_fn_error "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5 |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3202 | ;; |
| 3203 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3204 | AR="\$(srcdir)/Modules/ar_beos" |
| 3205 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 3206 | ;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3207 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3208 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3209 | fi |
| 3210 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 |
| 3212 | $as_echo "$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3213 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3214 | # If the user switches compilers, we can't believe the cache |
| 3215 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 3216 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3217 | as_fn_error "cached CC is different -- throw away $cache_file |
| 3218 | (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3219 | fi |
| 3220 | |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 3221 | # If the user set CFLAGS, use this instead of the automatically |
| 3222 | # determined setting |
| 3223 | preset_cflags="$CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3224 | ac_ext=c |
| 3225 | ac_cpp='$CPP $CPPFLAGS' |
| 3226 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3227 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3228 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3229 | if test -n "$ac_tool_prefix"; then |
| 3230 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3231 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3233 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3234 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3235 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3236 | else |
| 3237 | if test -n "$CC"; then |
| 3238 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3239 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3241 | for as_dir in $PATH |
| 3242 | do |
| 3243 | IFS=$as_save_IFS |
| 3244 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3245 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3246 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3247 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3249 | break 2 |
| 3250 | fi |
| 3251 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3252 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3253 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3254 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3255 | fi |
| 3256 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3257 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3258 | if test -n "$CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3260 | $as_echo "$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3261 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3263 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3264 | fi |
| 3265 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3267 | fi |
| 3268 | if test -z "$ac_cv_prog_CC"; then |
| 3269 | ac_ct_CC=$CC |
| 3270 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3271 | set dummy gcc; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3273 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3274 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3275 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3276 | else |
| 3277 | if test -n "$ac_ct_CC"; then |
| 3278 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3279 | else |
| 3280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3281 | for as_dir in $PATH |
| 3282 | do |
| 3283 | IFS=$as_save_IFS |
| 3284 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3285 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3287 | ac_cv_prog_ac_ct_CC="gcc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3289 | break 2 |
| 3290 | fi |
| 3291 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3292 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3293 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3294 | |
| 3295 | fi |
| 3296 | fi |
| 3297 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3298 | if test -n "$ac_ct_CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3300 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3301 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3303 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3304 | fi |
| 3305 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3306 | if test "x$ac_ct_CC" = x; then |
| 3307 | CC="" |
| 3308 | else |
| 3309 | case $cross_compiling:$ac_tool_warned in |
| 3310 | yes:) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3312 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3313 | ac_tool_warned=yes ;; |
| 3314 | esac |
| 3315 | CC=$ac_ct_CC |
| 3316 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3317 | else |
| 3318 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3319 | fi |
| 3320 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3321 | if test -z "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3322 | if test -n "$ac_tool_prefix"; then |
| 3323 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3324 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3326 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3327 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3328 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3329 | else |
| 3330 | if test -n "$CC"; then |
| 3331 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3332 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3334 | for as_dir in $PATH |
| 3335 | do |
| 3336 | IFS=$as_save_IFS |
| 3337 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3338 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3339 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3340 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3342 | break 2 |
| 3343 | fi |
| 3344 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3345 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3346 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3347 | |
| 3348 | fi |
| 3349 | fi |
| 3350 | CC=$ac_cv_prog_CC |
| 3351 | if test -n "$CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3353 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3354 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3356 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3357 | fi |
| 3358 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3359 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3360 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3361 | fi |
| 3362 | if test -z "$CC"; then |
| 3363 | # Extract the first word of "cc", so it can be a program name with args. |
| 3364 | set dummy cc; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3366 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3367 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3368 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3369 | else |
| 3370 | if test -n "$CC"; then |
| 3371 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3372 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3373 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3375 | for as_dir in $PATH |
| 3376 | do |
| 3377 | IFS=$as_save_IFS |
| 3378 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3379 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3380 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3381 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3382 | ac_prog_rejected=yes |
| 3383 | continue |
| 3384 | fi |
| 3385 | ac_cv_prog_CC="cc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3386 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3387 | break 2 |
| 3388 | fi |
| 3389 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3390 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3391 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3392 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3393 | if test $ac_prog_rejected = yes; then |
| 3394 | # We found a bogon in the path, so make sure we never use it. |
| 3395 | set dummy $ac_cv_prog_CC |
| 3396 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3397 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3398 | # We chose a different compiler from the bogus one. |
| 3399 | # However, it has the same basename, so the bogon will be chosen |
| 3400 | # first if we set CC to just the basename; use the full file name. |
| 3401 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3402 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3403 | fi |
| 3404 | fi |
| 3405 | fi |
| 3406 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3407 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3408 | if test -n "$CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3410 | $as_echo "$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3411 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3413 | $as_echo "no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3414 | fi |
| 3415 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3416 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3417 | fi |
| 3418 | if test -z "$CC"; then |
| 3419 | if test -n "$ac_tool_prefix"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3420 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3421 | do |
| 3422 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3423 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3425 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3426 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3427 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3428 | else |
| 3429 | if test -n "$CC"; then |
| 3430 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3433 | for as_dir in $PATH |
| 3434 | do |
| 3435 | IFS=$as_save_IFS |
| 3436 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3437 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3438 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3439 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3440 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3441 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3442 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3443 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3444 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3445 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3446 | |
| 3447 | fi |
| 3448 | fi |
| 3449 | CC=$ac_cv_prog_CC |
| 3450 | if test -n "$CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3452 | $as_echo "$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3453 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3455 | $as_echo "no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3456 | fi |
| 3457 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3458 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3459 | test -n "$CC" && break |
| 3460 | done |
| 3461 | fi |
| 3462 | if test -z "$CC"; then |
| 3463 | ac_ct_CC=$CC |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3464 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3465 | do |
| 3466 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3467 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3469 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3470 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3471 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3472 | else |
| 3473 | if test -n "$ac_ct_CC"; then |
| 3474 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3475 | else |
| 3476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3477 | for as_dir in $PATH |
| 3478 | do |
| 3479 | IFS=$as_save_IFS |
| 3480 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3481 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3482 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3483 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3484 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3485 | break 2 |
| 3486 | fi |
| 3487 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3488 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3489 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3491 | fi |
| 3492 | fi |
| 3493 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3494 | if test -n "$ac_ct_CC"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3496 | $as_echo "$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3497 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3499 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3500 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3501 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3502 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3503 | test -n "$ac_ct_CC" && break |
| 3504 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3505 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3506 | if test "x$ac_ct_CC" = x; then |
| 3507 | CC="" |
| 3508 | else |
| 3509 | case $cross_compiling:$ac_tool_warned in |
| 3510 | yes:) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3511 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3512 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3513 | ac_tool_warned=yes ;; |
| 3514 | esac |
| 3515 | CC=$ac_ct_CC |
| 3516 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3517 | fi |
| 3518 | |
| 3519 | fi |
| 3520 | |
| 3521 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3522 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3523 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3524 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3525 | See \`config.log' for more details." "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3526 | |
| 3527 | # Provide some information about the compiler. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3528 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3529 | set X $ac_compile |
| 3530 | ac_compiler=$2 |
| 3531 | for ac_option in --version -v -V -qversion; do |
| 3532 | { { ac_try="$ac_compiler $ac_option >&5" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3533 | case "(($ac_try" in |
| 3534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3535 | *) ac_try_echo=$ac_try;; |
| 3536 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3537 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3538 | $as_echo "$ac_try_echo"; } >&5 |
| 3539 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3540 | ac_status=$? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3541 | if test -s conftest.err; then |
| 3542 | sed '10a\ |
| 3543 | ... rest of stderr output deleted ... |
| 3544 | 10q' conftest.err >conftest.er1 |
| 3545 | cat conftest.er1 >&5 |
| 3546 | fi |
| 3547 | rm -f conftest.er1 conftest.err |
| 3548 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3549 | test $ac_status = 0; } |
| 3550 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3551 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3553 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3554 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3555 | int |
| 3556 | main () |
| 3557 | { |
| 3558 | |
| 3559 | ; |
| 3560 | return 0; |
| 3561 | } |
| 3562 | _ACEOF |
| 3563 | ac_clean_files_save=$ac_clean_files |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3564 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3565 | # Try to create an executable without -o first, disregard a.out. |
| 3566 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3567 | # of exeext. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3569 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3570 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3571 | |
| 3572 | # The possible output files: |
| 3573 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3574 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3575 | ac_rmfiles= |
| 3576 | for ac_file in $ac_files |
| 3577 | do |
| 3578 | case $ac_file in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3579 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3580 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3581 | esac |
| 3582 | done |
| 3583 | rm -f $ac_rmfiles |
| 3584 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3585 | if { { ac_try="$ac_link_default" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3586 | case "(($ac_try" in |
| 3587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3588 | *) ac_try_echo=$ac_try;; |
| 3589 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3590 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3591 | $as_echo "$ac_try_echo"; } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3592 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3593 | ac_status=$? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3594 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3595 | test $ac_status = 0; }; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3596 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3597 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3598 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3599 | # so that the user can short-circuit this test for compilers unknown to |
| 3600 | # Autoconf. |
| 3601 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3602 | do |
| 3603 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3604 | case $ac_file in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3605 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3606 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3607 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3608 | # We found the default executable, but exeext='' is most |
| 3609 | # certainly right. |
| 3610 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3611 | *.* ) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3612 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3613 | then :; else |
| 3614 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3615 | fi |
| 3616 | # We set ac_cv_exeext here because the later test for it is not |
| 3617 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3618 | # argument, so we may need to know it at that point already. |
| 3619 | # Even if this section looks crufty: it has the advantage of |
| 3620 | # actually working. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3621 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3622 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3623 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3624 | esac |
| 3625 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3626 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3627 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3628 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3629 | ac_file='' |
| 3630 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3631 | if test -z "$ac_file"; then : |
| 3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3633 | $as_echo "no" >&6; } |
| 3634 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3636 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3637 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3638 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3639 | { as_fn_set_status 77 |
| 3640 | as_fn_error "C compiler cannot create executables |
| 3641 | See \`config.log' for more details." "$LINENO" 5; }; } |
| 3642 | else |
| 3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3644 | $as_echo "yes" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3645 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3647 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3649 | $as_echo "$ac_file" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3650 | ac_exeext=$ac_cv_exeext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3651 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3652 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3653 | ac_clean_files=$ac_clean_files_save |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3655 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3656 | if { { ac_try="$ac_link" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3657 | case "(($ac_try" in |
| 3658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3659 | *) ac_try_echo=$ac_try;; |
| 3660 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3661 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3662 | $as_echo "$ac_try_echo"; } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3663 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3664 | ac_status=$? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3665 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3666 | test $ac_status = 0; }; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3667 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3668 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3669 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3670 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3671 | for ac_file in conftest.exe conftest conftest.*; do |
| 3672 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3673 | case $ac_file in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3674 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3675 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3676 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3677 | * ) break;; |
| 3678 | esac |
| 3679 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3680 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3681 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3682 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3683 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3684 | See \`config.log' for more details." "$LINENO" 5; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3685 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3686 | rm -f conftest conftest$ac_cv_exeext |
| 3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3688 | $as_echo "$ac_cv_exeext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3689 | |
| 3690 | rm -f conftest.$ac_ext |
| 3691 | EXEEXT=$ac_cv_exeext |
| 3692 | ac_exeext=$EXEEXT |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3694 | /* end confdefs.h. */ |
| 3695 | #include <stdio.h> |
| 3696 | int |
| 3697 | main () |
| 3698 | { |
| 3699 | FILE *f = fopen ("conftest.out", "w"); |
| 3700 | return ferror (f) || fclose (f) != 0; |
| 3701 | |
| 3702 | ; |
| 3703 | return 0; |
| 3704 | } |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3705 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3706 | ac_clean_files="$ac_clean_files conftest.out" |
| 3707 | # Check that the compiler produces executables we can run. If not, either |
| 3708 | # the compiler is broken, or we cross compile. |
| 3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3710 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3711 | if test "$cross_compiling" != yes; then |
| 3712 | { { ac_try="$ac_link" |
| 3713 | case "(($ac_try" in |
| 3714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3715 | *) ac_try_echo=$ac_try;; |
| 3716 | esac |
| 3717 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3718 | $as_echo "$ac_try_echo"; } >&5 |
| 3719 | (eval "$ac_link") 2>&5 |
| 3720 | ac_status=$? |
| 3721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3722 | test $ac_status = 0; } |
| 3723 | if { ac_try='./conftest$ac_cv_exeext' |
| 3724 | { { case "(($ac_try" in |
| 3725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3726 | *) ac_try_echo=$ac_try;; |
| 3727 | esac |
| 3728 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3729 | $as_echo "$ac_try_echo"; } >&5 |
| 3730 | (eval "$ac_try") 2>&5 |
| 3731 | ac_status=$? |
| 3732 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3733 | test $ac_status = 0; }; }; then |
| 3734 | cross_compiling=no |
| 3735 | else |
| 3736 | if test "$cross_compiling" = maybe; then |
| 3737 | cross_compiling=yes |
| 3738 | else |
| 3739 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3740 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3741 | as_fn_error "cannot run C compiled programs. |
| 3742 | If you meant to cross compile, use \`--host'. |
| 3743 | See \`config.log' for more details." "$LINENO" 5; } |
| 3744 | fi |
| 3745 | fi |
| 3746 | fi |
| 3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3748 | $as_echo "$cross_compiling" >&6; } |
| 3749 | |
| 3750 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3751 | ac_clean_files=$ac_clean_files_save |
| 3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3753 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3754 | if test "${ac_cv_objext+set}" = set; then : |
| 3755 | $as_echo_n "(cached) " >&6 |
| 3756 | else |
| 3757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3758 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3759 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3760 | int |
| 3761 | main () |
| 3762 | { |
| 3763 | |
| 3764 | ; |
| 3765 | return 0; |
| 3766 | } |
| 3767 | _ACEOF |
| 3768 | rm -f conftest.o conftest.obj |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3769 | if { { ac_try="$ac_compile" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3770 | case "(($ac_try" in |
| 3771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3772 | *) ac_try_echo=$ac_try;; |
| 3773 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3774 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3775 | $as_echo "$ac_try_echo"; } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3776 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3777 | ac_status=$? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3779 | test $ac_status = 0; }; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3780 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3781 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3782 | case $ac_file in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3783 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3784 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3785 | break;; |
| 3786 | esac |
| 3787 | done |
| 3788 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3789 | $as_echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3791 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3792 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3793 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3794 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 3795 | See \`config.log' for more details." "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3796 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3797 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3798 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3800 | $as_echo "$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3801 | OBJEXT=$ac_cv_objext |
| 3802 | ac_objext=$OBJEXT |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3804 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3805 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 3806 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3807 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3809 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3810 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3811 | int |
| 3812 | main () |
| 3813 | { |
| 3814 | #ifndef __GNUC__ |
| 3815 | choke me |
| 3816 | #endif |
| 3817 | |
| 3818 | ; |
| 3819 | return 0; |
| 3820 | } |
| 3821 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3822 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3823 | ac_compiler_gnu=yes |
| 3824 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3825 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3826 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3828 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3829 | |
| 3830 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3832 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3833 | if test $ac_compiler_gnu = yes; then |
| 3834 | GCC=yes |
| 3835 | else |
| 3836 | GCC= |
| 3837 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3838 | ac_test_CFLAGS=${CFLAGS+set} |
| 3839 | ac_save_CFLAGS=$CFLAGS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3841 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3842 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 3843 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3844 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3845 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3846 | ac_c_werror_flag=yes |
| 3847 | ac_cv_prog_cc_g=no |
| 3848 | CFLAGS="-g" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3850 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3851 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3852 | int |
| 3853 | main () |
| 3854 | { |
| 3855 | |
| 3856 | ; |
| 3857 | return 0; |
| 3858 | } |
| 3859 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3860 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3861 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3862 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3863 | CFLAGS="" |
| 3864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3865 | /* end confdefs.h. */ |
| 3866 | |
| 3867 | int |
| 3868 | main () |
| 3869 | { |
| 3870 | |
| 3871 | ; |
| 3872 | return 0; |
| 3873 | } |
| 3874 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3875 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3876 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3877 | else |
| 3878 | ac_c_werror_flag=$ac_save_c_werror_flag |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3879 | CFLAGS="-g" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3881 | /* end confdefs.h. */ |
| 3882 | |
| 3883 | int |
| 3884 | main () |
| 3885 | { |
| 3886 | |
| 3887 | ; |
| 3888 | return 0; |
| 3889 | } |
| 3890 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3891 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3892 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3893 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3895 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3897 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3899 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3900 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3902 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3903 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3904 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3905 | elif test $ac_cv_prog_cc_g = yes; then |
| 3906 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3907 | CFLAGS="-g -O2" |
| 3908 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3909 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3910 | fi |
| 3911 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3912 | if test "$GCC" = yes; then |
| 3913 | CFLAGS="-O2" |
| 3914 | else |
| 3915 | CFLAGS= |
| 3916 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3917 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3919 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3920 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 3921 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3922 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3923 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3924 | ac_save_CC=$CC |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3926 | /* end confdefs.h. */ |
| 3927 | #include <stdarg.h> |
| 3928 | #include <stdio.h> |
| 3929 | #include <sys/types.h> |
| 3930 | #include <sys/stat.h> |
| 3931 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3932 | struct buf { int x; }; |
| 3933 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3934 | static char *e (p, i) |
| 3935 | char **p; |
| 3936 | int i; |
| 3937 | { |
| 3938 | return p[i]; |
| 3939 | } |
| 3940 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3941 | { |
| 3942 | char *s; |
| 3943 | va_list v; |
| 3944 | va_start (v,p); |
| 3945 | s = g (p, va_arg (v,int)); |
| 3946 | va_end (v); |
| 3947 | return s; |
| 3948 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3949 | |
| 3950 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3951 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3952 | These don't provoke an error unfortunately, instead are silently treated |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3953 | as 'x'. The following induces an error, until -std is added to get |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3954 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3955 | array size at least. It's necessary to write '\x00'==0 to get something |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3956 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3957 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3958 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3959 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3960 | inside strings and character constants. */ |
| 3961 | #define FOO(x) 'x' |
| 3962 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3963 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3964 | int test (int i, double x); |
| 3965 | struct s1 {int (*f) (int a);}; |
| 3966 | struct s2 {int (*f) (double a);}; |
| 3967 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3968 | int argc; |
| 3969 | char **argv; |
| 3970 | int |
| 3971 | main () |
| 3972 | { |
| 3973 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3974 | ; |
| 3975 | return 0; |
| 3976 | } |
| 3977 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3978 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3979 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3980 | do |
| 3981 | CC="$ac_save_CC $ac_arg" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3982 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3983 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3984 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3985 | rm -f core conftest.err conftest.$ac_objext |
| 3986 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3987 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3988 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3989 | CC=$ac_save_CC |
| 3990 | |
| 3991 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3992 | # AC_CACHE_VAL |
| 3993 | case "x$ac_cv_prog_cc_c89" in |
| 3994 | x) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3996 | $as_echo "none needed" >&6; } ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3997 | xno) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 3998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3999 | $as_echo "unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4000 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4001 | CC="$CC $ac_cv_prog_cc_c89" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4003 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4004 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4005 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4006 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4007 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4009 | ac_ext=c |
| 4010 | ac_cpp='$CPP $CPPFLAGS' |
| 4011 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4012 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4013 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4014 | |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 4015 | if test ! -z "$preset_cflags" |
| 4016 | then |
| 4017 | CFLAGS=$preset_cflags |
| 4018 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4019 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4020 | |
| 4021 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 |
| 4023 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4024 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4025 | # Check whether --with-cxx_main was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4026 | if test "${with_cxx_main+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4027 | withval=$with_cxx_main; |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4028 | |
| 4029 | case $withval in |
| 4030 | no) with_cxx_main=no |
| 4031 | MAINCC='$(CC)';; |
| 4032 | yes) with_cxx_main=yes |
| 4033 | MAINCC='$(CXX)';; |
| 4034 | *) with_cxx_main=yes |
| 4035 | MAINCC=$withval |
| 4036 | if test -z "$CXX" |
| 4037 | then |
| 4038 | CXX=$withval |
| 4039 | fi;; |
| 4040 | esac |
| 4041 | else |
| 4042 | |
| 4043 | with_cxx_main=no |
| 4044 | MAINCC='$(CC)' |
| 4045 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4046 | fi |
| 4047 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 |
| 4049 | $as_echo "$with_cxx_main" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4050 | |
| 4051 | preset_cxx="$CXX" |
| 4052 | if test -z "$CXX" |
| 4053 | then |
| 4054 | case "$CC" in |
| 4055 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 4056 | set dummy g++; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4058 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4059 | if test "${ac_cv_path_CXX+set}" = set; then : |
| 4060 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4061 | else |
| 4062 | case $CXX in |
| 4063 | [\\/]* | ?:[\\/]*) |
| 4064 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4065 | ;; |
| 4066 | *) |
| 4067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4068 | for as_dir in notfound |
| 4069 | do |
| 4070 | IFS=$as_save_IFS |
| 4071 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4072 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4073 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4074 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4076 | break 2 |
| 4077 | fi |
| 4078 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4079 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4080 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4081 | |
| 4082 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 4083 | ;; |
| 4084 | esac |
| 4085 | fi |
| 4086 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4087 | if test -n "$CXX"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4089 | $as_echo "$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4090 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4092 | $as_echo "no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4093 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4094 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4095 | ;; |
| 4096 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 4097 | set dummy c++; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4099 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4100 | if test "${ac_cv_path_CXX+set}" = set; then : |
| 4101 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4102 | else |
| 4103 | case $CXX in |
| 4104 | [\\/]* | ?:[\\/]*) |
| 4105 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 4106 | ;; |
| 4107 | *) |
| 4108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4109 | for as_dir in notfound |
| 4110 | do |
| 4111 | IFS=$as_save_IFS |
| 4112 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4113 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4114 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4115 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4117 | break 2 |
| 4118 | fi |
| 4119 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4120 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4121 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4122 | |
| 4123 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 4124 | ;; |
| 4125 | esac |
| 4126 | fi |
| 4127 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4128 | if test -n "$CXX"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4130 | $as_echo "$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4131 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4133 | $as_echo "no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 4134 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4135 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4136 | ;; |
| 4137 | esac |
| 4138 | if test "$CXX" = "notfound" |
| 4139 | then |
| 4140 | CXX="" |
| 4141 | fi |
| 4142 | fi |
| 4143 | if test -z "$CXX" |
| 4144 | then |
| 4145 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 4146 | do |
| 4147 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4148 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4150 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4151 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 4152 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4153 | else |
| 4154 | if test -n "$CXX"; then |
| 4155 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4156 | else |
| 4157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4158 | for as_dir in $PATH |
| 4159 | do |
| 4160 | IFS=$as_save_IFS |
| 4161 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4162 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4163 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4164 | ac_cv_prog_CXX="$ac_prog" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4165 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4166 | break 2 |
| 4167 | fi |
| 4168 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4169 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4170 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4171 | |
| 4172 | fi |
| 4173 | fi |
| 4174 | CXX=$ac_cv_prog_CXX |
| 4175 | if test -n "$CXX"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4177 | $as_echo "$CXX" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4178 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4180 | $as_echo "no" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4181 | fi |
| 4182 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4183 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4184 | test -n "$CXX" && break |
| 4185 | done |
| 4186 | test -n "$CXX" || CXX="notfound" |
| 4187 | |
| 4188 | if test "$CXX" = "notfound" |
| 4189 | then |
| 4190 | CXX="" |
| 4191 | fi |
| 4192 | fi |
| 4193 | if test "$preset_cxx" != "$CXX" |
| 4194 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4196 | |
| 4197 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 4198 | If this is not intended, then set CXX on the configure command line. |
| 4199 | " >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4200 | $as_echo "$as_me: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 4201 | |
| 4202 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 4203 | If this is not intended, then set CXX on the configure command line. |
| 4204 | " >&2;} |
| 4205 | fi |
| 4206 | |
| 4207 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4208 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4209 | |
| 4210 | ac_ext=c |
| 4211 | ac_cpp='$CPP $CPPFLAGS' |
| 4212 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4213 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4214 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4216 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4217 | # On Suns, sometimes $CPP names a directory. |
| 4218 | if test -n "$CPP" && test -d "$CPP"; then |
| 4219 | CPP= |
| 4220 | fi |
| 4221 | if test -z "$CPP"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4222 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 4223 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4224 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4225 | # Double quotes because CPP needs to be expanded |
| 4226 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4227 | do |
| 4228 | ac_preproc_ok=false |
| 4229 | for ac_c_preproc_warn_flag in '' yes |
| 4230 | do |
| 4231 | # Use a header file that comes with gcc, so configuring glibc |
| 4232 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4233 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4234 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4235 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4236 | # not just through cpp. "Syntax error" is here to catch this case. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4238 | /* end confdefs.h. */ |
| 4239 | #ifdef __STDC__ |
| 4240 | # include <limits.h> |
| 4241 | #else |
| 4242 | # include <assert.h> |
| 4243 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4244 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4245 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4246 | if ac_fn_c_try_cpp "$LINENO"; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4247 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4248 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4249 | # Broken: fails on valid input. |
| 4250 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4251 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4252 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4253 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4254 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4255 | # can be detected and how. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4257 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4258 | #include <ac_nonexistent.h> |
| 4259 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4260 | if ac_fn_c_try_cpp "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4261 | # Broken: success on invalid input. |
| 4262 | continue |
| 4263 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4264 | # Passes both tests. |
| 4265 | ac_preproc_ok=: |
| 4266 | break |
| 4267 | fi |
| 4268 | rm -f conftest.err conftest.$ac_ext |
| 4269 | |
| 4270 | done |
| 4271 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4272 | rm -f conftest.err conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4273 | if $ac_preproc_ok; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4274 | break |
| 4275 | fi |
| 4276 | |
| 4277 | done |
| 4278 | ac_cv_prog_CPP=$CPP |
| 4279 | |
| 4280 | fi |
| 4281 | CPP=$ac_cv_prog_CPP |
| 4282 | else |
| 4283 | ac_cv_prog_CPP=$CPP |
| 4284 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4286 | $as_echo "$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4287 | ac_preproc_ok=false |
| 4288 | for ac_c_preproc_warn_flag in '' yes |
| 4289 | do |
| 4290 | # Use a header file that comes with gcc, so configuring glibc |
| 4291 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4292 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4293 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4294 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4295 | # not just through cpp. "Syntax error" is here to catch this case. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4297 | /* end confdefs.h. */ |
| 4298 | #ifdef __STDC__ |
| 4299 | # include <limits.h> |
| 4300 | #else |
| 4301 | # include <assert.h> |
| 4302 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4303 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4304 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4305 | if ac_fn_c_try_cpp "$LINENO"; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4306 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4307 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4308 | # Broken: fails on valid input. |
| 4309 | continue |
| 4310 | fi |
| 4311 | rm -f conftest.err conftest.$ac_ext |
| 4312 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4313 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4314 | # can be detected and how. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4316 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4317 | #include <ac_nonexistent.h> |
| 4318 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4319 | if ac_fn_c_try_cpp "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4320 | # Broken: success on invalid input. |
| 4321 | continue |
| 4322 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4323 | # Passes both tests. |
| 4324 | ac_preproc_ok=: |
| 4325 | break |
| 4326 | fi |
| 4327 | rm -f conftest.err conftest.$ac_ext |
| 4328 | |
| 4329 | done |
| 4330 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4331 | rm -f conftest.err conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4332 | if $ac_preproc_ok; then : |
| 4333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4334 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4335 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4336 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4337 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4338 | See \`config.log' for more details." "$LINENO" 5; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4339 | fi |
| 4340 | |
| 4341 | ac_ext=c |
| 4342 | ac_cpp='$CPP $CPPFLAGS' |
| 4343 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4344 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4345 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4346 | |
| 4347 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4349 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4350 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 4351 | $as_echo_n "(cached) " >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4352 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4353 | if test -z "$GREP"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4354 | ac_path_GREP_found=false |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4355 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4357 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4358 | do |
| 4359 | IFS=$as_save_IFS |
| 4360 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4361 | for ac_prog in grep ggrep; do |
| 4362 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4363 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4364 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4365 | # Check for GNU ac_path_GREP and select it if it is found. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4366 | # Check for GNU $ac_path_GREP |
| 4367 | case `"$ac_path_GREP" --version 2>&1` in |
| 4368 | *GNU*) |
| 4369 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4370 | *) |
| 4371 | ac_count=0 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4372 | $as_echo_n 0123456789 >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4373 | while : |
| 4374 | do |
| 4375 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4376 | mv "conftest.tmp" "conftest.in" |
| 4377 | cp "conftest.in" "conftest.nl" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4378 | $as_echo 'GREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4379 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4380 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4381 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4382 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4383 | # Best one so far, save it but keep looking for a better one |
| 4384 | ac_cv_path_GREP="$ac_path_GREP" |
| 4385 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4386 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4387 | # 10*(2^10) chars as input seems more than enough |
| 4388 | test $ac_count -gt 10 && break |
| 4389 | done |
| 4390 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4391 | esac |
| 4392 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4393 | $ac_path_GREP_found && break 3 |
| 4394 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4395 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4396 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4397 | IFS=$as_save_IFS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4398 | if test -z "$ac_cv_path_GREP"; then |
| 4399 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4400 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4401 | else |
| 4402 | ac_cv_path_GREP=$GREP |
| 4403 | fi |
| 4404 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4405 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4407 | $as_echo "$ac_cv_path_GREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4408 | GREP="$ac_cv_path_GREP" |
| 4409 | |
| 4410 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4412 | $as_echo_n "checking for egrep... " >&6; } |
| 4413 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 4414 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4415 | else |
| 4416 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4417 | then ac_cv_path_EGREP="$GREP -E" |
| 4418 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4419 | if test -z "$EGREP"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4420 | ac_path_EGREP_found=false |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4421 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4423 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4424 | do |
| 4425 | IFS=$as_save_IFS |
| 4426 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4427 | for ac_prog in egrep; do |
| 4428 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4429 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4430 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4431 | # Check for GNU ac_path_EGREP and select it if it is found. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4432 | # Check for GNU $ac_path_EGREP |
| 4433 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4434 | *GNU*) |
| 4435 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4436 | *) |
| 4437 | ac_count=0 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4438 | $as_echo_n 0123456789 >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4439 | while : |
| 4440 | do |
| 4441 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4442 | mv "conftest.tmp" "conftest.in" |
| 4443 | cp "conftest.in" "conftest.nl" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4444 | $as_echo 'EGREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4445 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4446 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4447 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4448 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4449 | # Best one so far, save it but keep looking for a better one |
| 4450 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4451 | ac_path_EGREP_max=$ac_count |
| 4452 | fi |
| 4453 | # 10*(2^10) chars as input seems more than enough |
| 4454 | test $ac_count -gt 10 && break |
| 4455 | done |
| 4456 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4457 | esac |
| 4458 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4459 | $ac_path_EGREP_found && break 3 |
| 4460 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4461 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4462 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4463 | IFS=$as_save_IFS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4464 | if test -z "$ac_cv_path_EGREP"; then |
| 4465 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4466 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4467 | else |
| 4468 | ac_cv_path_EGREP=$EGREP |
| 4469 | fi |
| 4470 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4471 | fi |
| 4472 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4474 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4475 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4476 | |
| 4477 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4479 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4480 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 4481 | $as_echo_n "(cached) " >&6 |
| 4482 | else |
| 4483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4484 | /* end confdefs.h. */ |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4485 | #include <stdlib.h> |
| 4486 | #include <stdarg.h> |
| 4487 | #include <string.h> |
| 4488 | #include <float.h> |
| 4489 | |
| 4490 | int |
| 4491 | main () |
| 4492 | { |
| 4493 | |
| 4494 | ; |
| 4495 | return 0; |
| 4496 | } |
| 4497 | _ACEOF |
| 4498 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4499 | ac_cv_header_stdc=yes |
| 4500 | else |
| 4501 | ac_cv_header_stdc=no |
| 4502 | fi |
| 4503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4504 | |
| 4505 | if test $ac_cv_header_stdc = yes; then |
| 4506 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4508 | /* end confdefs.h. */ |
| 4509 | #include <string.h> |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4510 | |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 4511 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4512 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4513 | $EGREP "memchr" >/dev/null 2>&1; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4514 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4515 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4516 | ac_cv_header_stdc=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4517 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 4518 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4519 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4520 | fi |
| 4521 | |
| 4522 | if test $ac_cv_header_stdc = yes; then |
| 4523 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4525 | /* end confdefs.h. */ |
| 4526 | #include <stdlib.h> |
| 4527 | |
| 4528 | _ACEOF |
| 4529 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4530 | $EGREP "free" >/dev/null 2>&1; then : |
| 4531 | |
| 4532 | else |
| 4533 | ac_cv_header_stdc=no |
| 4534 | fi |
| 4535 | rm -f conftest* |
| 4536 | |
| 4537 | fi |
| 4538 | |
| 4539 | if test $ac_cv_header_stdc = yes; then |
| 4540 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4541 | if test "$cross_compiling" = yes; then : |
| 4542 | : |
| 4543 | else |
| 4544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4545 | /* end confdefs.h. */ |
| 4546 | #include <ctype.h> |
| 4547 | #include <stdlib.h> |
| 4548 | #if ((' ' & 0x0FF) == 0x020) |
| 4549 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4550 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4551 | #else |
| 4552 | # define ISLOWER(c) \ |
| 4553 | (('a' <= (c) && (c) <= 'i') \ |
| 4554 | || ('j' <= (c) && (c) <= 'r') \ |
| 4555 | || ('s' <= (c) && (c) <= 'z')) |
| 4556 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4557 | #endif |
| 4558 | |
| 4559 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4560 | int |
| 4561 | main () |
| 4562 | { |
| 4563 | int i; |
| 4564 | for (i = 0; i < 256; i++) |
| 4565 | if (XOR (islower (i), ISLOWER (i)) |
| 4566 | || toupper (i) != TOUPPER (i)) |
| 4567 | return 2; |
| 4568 | return 0; |
| 4569 | } |
| 4570 | _ACEOF |
| 4571 | if ac_fn_c_try_run "$LINENO"; then : |
| 4572 | |
| 4573 | else |
| 4574 | ac_cv_header_stdc=no |
| 4575 | fi |
| 4576 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4577 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4578 | fi |
| 4579 | |
| 4580 | fi |
| 4581 | fi |
| 4582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4583 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4584 | if test $ac_cv_header_stdc = yes; then |
| 4585 | |
| 4586 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4587 | |
| 4588 | fi |
| 4589 | |
| 4590 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4591 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4592 | inttypes.h stdint.h unistd.h |
| 4593 | do : |
| 4594 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4595 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4596 | " |
| 4597 | eval as_val=\$$as_ac_Header |
| 4598 | if test "x$as_val" = x""yes; then : |
| 4599 | cat >>confdefs.h <<_ACEOF |
| 4600 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4601 | _ACEOF |
| 4602 | |
| 4603 | fi |
| 4604 | |
| 4605 | done |
| 4606 | |
| 4607 | |
| 4608 | |
| 4609 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 4610 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : |
| 4611 | MINIX=yes |
| 4612 | else |
| 4613 | MINIX= |
| 4614 | fi |
| 4615 | |
| 4616 | |
| 4617 | if test "$MINIX" = yes; then |
| 4618 | |
| 4619 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 4620 | |
| 4621 | |
| 4622 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 4623 | |
| 4624 | |
| 4625 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 4626 | |
| 4627 | fi |
| 4628 | |
| 4629 | |
| 4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 4631 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 4632 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : |
| 4633 | $as_echo_n "(cached) " >&6 |
| 4634 | else |
| 4635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4636 | /* end confdefs.h. */ |
| 4637 | |
| 4638 | # define __EXTENSIONS__ 1 |
| 4639 | $ac_includes_default |
| 4640 | int |
| 4641 | main () |
| 4642 | { |
| 4643 | |
| 4644 | ; |
| 4645 | return 0; |
| 4646 | } |
| 4647 | _ACEOF |
| 4648 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4649 | ac_cv_safe_to_define___extensions__=yes |
| 4650 | else |
| 4651 | ac_cv_safe_to_define___extensions__=no |
| 4652 | fi |
| 4653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4654 | fi |
| 4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 4656 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4657 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 4658 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 4659 | |
| 4660 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 4661 | |
| 4662 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 4663 | |
| 4664 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 4665 | |
| 4666 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 4667 | |
| 4668 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4669 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4670 | # Check for unsupported systems |
| 4671 | case $ac_sys_system/$ac_sys_release in |
| 4672 | atheos*|Linux*/1*) |
| 4673 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 4674 | echo See README for details. |
| 4675 | exit 1;; |
| 4676 | esac |
| 4677 | |
| 4678 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 |
| 4680 | $as_echo_n "checking for --with-suffix... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4681 | |
| 4682 | # Check whether --with-suffix was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4683 | if test "${with_suffix+set}" = set; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4684 | withval=$with_suffix; |
| 4685 | case $withval in |
| 4686 | no) EXEEXT=;; |
| 4687 | yes) EXEEXT=.exe;; |
| 4688 | *) EXEEXT=$withval;; |
| 4689 | esac |
| 4690 | fi |
| 4691 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
| 4693 | $as_echo "$EXEEXT" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4694 | |
| 4695 | # Test whether we're running on a non-case-sensitive system, in which |
| 4696 | # case we give a warning if no ext is given |
| 4697 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 |
| 4699 | $as_echo_n "checking for case-insensitive build directory... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4700 | if test ! -d CaseSensitiveTestDir; then |
| 4701 | mkdir CaseSensitiveTestDir |
| 4702 | fi |
| 4703 | |
| 4704 | if test -d casesensitivetestdir |
| 4705 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4707 | $as_echo "yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4708 | BUILDEXEEXT=.exe |
| 4709 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4711 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4712 | BUILDEXEEXT=$EXEEXT |
| 4713 | fi |
| 4714 | rmdir CaseSensitiveTestDir |
| 4715 | |
| 4716 | case $MACHDEP in |
| 4717 | bsdos*) |
| 4718 | case $CC in |
| 4719 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 4720 | esac;; |
| 4721 | esac |
| 4722 | |
| 4723 | case $ac_sys_system in |
| 4724 | hp*|HP*) |
| 4725 | case $CC in |
| 4726 | cc|*/cc) CC="$CC -Ae";; |
| 4727 | esac;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4728 | SunOS*) |
| 4729 | # Some functions have a prototype only with that define, e.g. confstr |
| 4730 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4731 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4732 | |
| 4733 | ;; |
| 4734 | esac |
| 4735 | |
| 4736 | |
| 4737 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 |
| 4739 | $as_echo_n "checking LIBRARY... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4740 | if test -z "$LIBRARY" |
| 4741 | then |
| 4742 | LIBRARY='libpython$(VERSION).a' |
| 4743 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 |
| 4745 | $as_echo "$LIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4746 | |
| 4747 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 4748 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 4749 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 4750 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 4751 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 4752 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 4753 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 4754 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 4755 | # |
| 4756 | # RUNSHARED is used to run shared python without installed libraries |
| 4757 | # |
| 4758 | # INSTSONAME is the name of the shared library that will be use to install |
| 4759 | # on the system - some systems like version suffix, others don't |
| 4760 | |
| 4761 | |
| 4762 | |
| 4763 | |
| 4764 | |
| 4765 | |
| 4766 | LDLIBRARY="$LIBRARY" |
| 4767 | BLDLIBRARY='$(LDLIBRARY)' |
| 4768 | INSTSONAME='$(LDLIBRARY)' |
| 4769 | DLLLIBRARY='' |
| 4770 | LDLIBRARYDIR='' |
| 4771 | RUNSHARED='' |
| 4772 | |
| 4773 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 4774 | # If CXX is set, and if it is needed to link a main function that was |
| 4775 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 4776 | # python might then depend on the C++ runtime |
| 4777 | # This is altered for AIX in order to build the export list before |
| 4778 | # linking. |
| 4779 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 |
| 4781 | $as_echo_n "checking LINKCC... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4782 | if test -z "$LINKCC" |
| 4783 | then |
| 4784 | LINKCC='$(PURIFY) $(MAINCC)' |
| 4785 | case $ac_sys_system in |
| 4786 | AIX*) |
| 4787 | exp_extra="\"\"" |
| 4788 | if test $ac_sys_release -ge 5 -o \ |
| 4789 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 4790 | exp_extra="." |
| 4791 | fi |
| 4792 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4793 | QNX*) |
| 4794 | # qcc must be used because the other compilers do not |
| 4795 | # support -N. |
| 4796 | LINKCC=qcc;; |
| 4797 | esac |
| 4798 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 |
| 4800 | $as_echo "$LINKCC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4801 | |
| 4802 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4803 | # make sure we default having it set to "no": this is used by |
| 4804 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4805 | # to linker command lines, and failing to detect GNU ld simply results |
| 4806 | # in the same bahaviour as before. |
| 4807 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4809 | $as_echo_n "checking for GNU ld... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4810 | ac_prog=ld |
| 4811 | if test "$GCC" = yes; then |
| 4812 | ac_prog=`$CC -print-prog-name=ld` |
| 4813 | fi |
| 4814 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4815 | *GNU*) |
| 4816 | GNULD=yes;; |
| 4817 | *) |
| 4818 | GNULD=no;; |
| 4819 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 |
| 4821 | $as_echo "$GNULD" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4822 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 |
| 4824 | $as_echo_n "checking for --enable-shared... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4825 | # Check whether --enable-shared was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4826 | if test "${enable_shared+set}" = set; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4827 | enableval=$enable_shared; |
| 4828 | fi |
| 4829 | |
| 4830 | |
| 4831 | if test -z "$enable_shared" |
| 4832 | then |
| 4833 | case $ac_sys_system in |
| 4834 | CYGWIN* | atheos*) |
| 4835 | enable_shared="yes";; |
| 4836 | *) |
| 4837 | enable_shared="no";; |
| 4838 | esac |
| 4839 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 4841 | $as_echo "$enable_shared" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4842 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 |
| 4844 | $as_echo_n "checking for --enable-profiling... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4845 | # Check whether --enable-profiling was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4846 | if test "${enable_profiling+set}" = set; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4847 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4848 | CC="$CC -pg" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4849 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4850 | ac_enable_profiling="no" |
| 4851 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4853 | /* end confdefs.h. */ |
| 4854 | int main() { return 0; } |
| 4855 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4856 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4857 | ac_enable_profiling="yes" |
| 4858 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4859 | ac_enable_profiling="no" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4860 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4861 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4862 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4863 | fi |
| 4864 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4865 | CC="$ac_save_cc" |
| 4866 | fi |
| 4867 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5 |
| 4869 | $as_echo "$ac_enable_profiling" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4870 | |
| 4871 | case "$ac_enable_profiling" in |
| 4872 | "yes") |
| 4873 | BASECFLAGS="-pg $BASECFLAGS" |
| 4874 | LDFLAGS="-pg $LDFLAGS" |
| 4875 | ;; |
| 4876 | esac |
| 4877 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 |
| 4879 | $as_echo_n "checking LDLIBRARY... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4880 | |
| 4881 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4882 | # library that we build, but we do not want to link against it (we |
| 4883 | # will find it with a -framework option). For this reason there is an |
| 4884 | # extra variable BLDLIBRARY against which Python and the extension |
| 4885 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4886 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4887 | if test "$enable_framework" |
| 4888 | then |
| 4889 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4890 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4891 | BLDLIBRARY='' |
| 4892 | else |
| 4893 | BLDLIBRARY='$(LDLIBRARY)' |
| 4894 | fi |
| 4895 | |
| 4896 | # Other platforms follow |
| 4897 | if test $enable_shared = "yes"; then |
| 4898 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4899 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4900 | |
| 4901 | case $ac_sys_system in |
| 4902 | BeOS*) |
| 4903 | LDLIBRARY='libpython$(VERSION).so' |
| 4904 | ;; |
| 4905 | CYGWIN*) |
| 4906 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4907 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4908 | ;; |
| 4909 | SunOS*) |
| 4910 | LDLIBRARY='libpython$(VERSION).so' |
| 4911 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4912 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4913 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4914 | ;; |
| 4915 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4916 | LDLIBRARY='libpython$(VERSION).so' |
| 4917 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4918 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4919 | case $ac_sys_system in |
| 4920 | FreeBSD*) |
| 4921 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4922 | ;; |
| 4923 | esac |
| 4924 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4925 | ;; |
| 4926 | hp*|HP*) |
| 4927 | case `uname -m` in |
| 4928 | ia64) |
| 4929 | LDLIBRARY='libpython$(VERSION).so' |
| 4930 | ;; |
| 4931 | *) |
| 4932 | LDLIBRARY='libpython$(VERSION).sl' |
| 4933 | ;; |
| 4934 | esac |
| 4935 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4936 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4937 | ;; |
| 4938 | OSF*) |
| 4939 | LDLIBRARY='libpython$(VERSION).so' |
| 4940 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4941 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4942 | ;; |
| 4943 | atheos*) |
| 4944 | LDLIBRARY='libpython$(VERSION).so' |
| 4945 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4946 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4947 | ;; |
| 4948 | Darwin*) |
| 4949 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4950 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4951 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4952 | ;; |
| 4953 | |
| 4954 | esac |
| 4955 | else # shared is disabled |
| 4956 | case $ac_sys_system in |
| 4957 | CYGWIN*) |
| 4958 | BLDLIBRARY='$(LIBRARY)' |
| 4959 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4960 | ;; |
| 4961 | esac |
| 4962 | fi |
| 4963 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 |
| 4965 | $as_echo "$LDLIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4966 | |
| 4967 | if test -n "$ac_tool_prefix"; then |
| 4968 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4969 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4971 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4972 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| 4973 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4974 | else |
| 4975 | if test -n "$RANLIB"; then |
| 4976 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4977 | else |
| 4978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4979 | for as_dir in $PATH |
| 4980 | do |
| 4981 | IFS=$as_save_IFS |
| 4982 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4983 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4985 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4986 | $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] | 4987 | break 2 |
| 4988 | fi |
| 4989 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4990 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4991 | IFS=$as_save_IFS |
| 4992 | |
| 4993 | fi |
| 4994 | fi |
| 4995 | RANLIB=$ac_cv_prog_RANLIB |
| 4996 | if test -n "$RANLIB"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 4998 | $as_echo "$RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4999 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5001 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5002 | fi |
| 5003 | |
| 5004 | |
| 5005 | fi |
| 5006 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5007 | ac_ct_RANLIB=$RANLIB |
| 5008 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5009 | set dummy ranlib; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5011 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5012 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 5013 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5014 | else |
| 5015 | if test -n "$ac_ct_RANLIB"; then |
| 5016 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5017 | else |
| 5018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5019 | for as_dir in $PATH |
| 5020 | do |
| 5021 | IFS=$as_save_IFS |
| 5022 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5023 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5024 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5025 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5026 | $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] | 5027 | break 2 |
| 5028 | fi |
| 5029 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5030 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5031 | IFS=$as_save_IFS |
| 5032 | |
| 5033 | fi |
| 5034 | fi |
| 5035 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5036 | if test -n "$ac_ct_RANLIB"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5038 | $as_echo "$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5039 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5041 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5042 | fi |
| 5043 | |
| 5044 | if test "x$ac_ct_RANLIB" = x; then |
| 5045 | RANLIB=":" |
| 5046 | else |
| 5047 | case $cross_compiling:$ac_tool_warned in |
| 5048 | yes:) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5050 | $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] | 5051 | ac_tool_warned=yes ;; |
| 5052 | esac |
| 5053 | RANLIB=$ac_ct_RANLIB |
| 5054 | fi |
| 5055 | else |
| 5056 | RANLIB="$ac_cv_prog_RANLIB" |
| 5057 | fi |
| 5058 | |
| 5059 | |
| 5060 | for ac_prog in ar aal |
| 5061 | do |
| 5062 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5063 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5065 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5066 | if test "${ac_cv_prog_AR+set}" = set; then : |
| 5067 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5068 | else |
| 5069 | if test -n "$AR"; then |
| 5070 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5071 | else |
| 5072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5073 | for as_dir in $PATH |
| 5074 | do |
| 5075 | IFS=$as_save_IFS |
| 5076 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5077 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5078 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5079 | ac_cv_prog_AR="$ac_prog" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5080 | $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] | 5081 | break 2 |
| 5082 | fi |
| 5083 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5084 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5085 | IFS=$as_save_IFS |
| 5086 | |
| 5087 | fi |
| 5088 | fi |
| 5089 | AR=$ac_cv_prog_AR |
| 5090 | if test -n "$AR"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5092 | $as_echo "$AR" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5093 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5095 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5096 | fi |
| 5097 | |
| 5098 | |
| 5099 | test -n "$AR" && break |
| 5100 | done |
| 5101 | test -n "$AR" || AR="ar" |
| 5102 | |
| 5103 | |
| 5104 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 5105 | |
| 5106 | if test -z "$ARFLAGS" |
| 5107 | then |
| 5108 | ARFLAGS="rc" |
| 5109 | fi |
| 5110 | |
| 5111 | |
| 5112 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 5113 | set dummy svnversion; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5115 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5116 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then : |
| 5117 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5118 | else |
| 5119 | if test -n "$SVNVERSION"; then |
| 5120 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 5121 | else |
| 5122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5123 | for as_dir in $PATH |
| 5124 | do |
| 5125 | IFS=$as_save_IFS |
| 5126 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5127 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5128 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5129 | ac_cv_prog_SVNVERSION="found" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5130 | $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] | 5131 | break 2 |
| 5132 | fi |
| 5133 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5134 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5135 | IFS=$as_save_IFS |
| 5136 | |
| 5137 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 5138 | fi |
| 5139 | fi |
| 5140 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 5141 | if test -n "$SVNVERSION"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 |
| 5143 | $as_echo "$SVNVERSION" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5144 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5146 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5147 | fi |
| 5148 | |
| 5149 | |
| 5150 | if test $SVNVERSION = found |
| 5151 | then |
| 5152 | SVNVERSION="svnversion \$(srcdir)" |
| 5153 | else |
| 5154 | SVNVERSION="echo Unversioned directory" |
| 5155 | fi |
| 5156 | |
| 5157 | case $MACHDEP in |
| 5158 | bsdos*|hp*|HP*) |
| 5159 | # install -d does not work on BSDI or HP-UX |
| 5160 | if test -z "$INSTALL" |
| 5161 | then |
| 5162 | INSTALL="${srcdir}/install-sh -c" |
| 5163 | fi |
| 5164 | esac |
| 5165 | ac_aux_dir= |
| 5166 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5167 | for ac_t in install-sh install.sh shtool; do |
| 5168 | if test -f "$ac_dir/$ac_t"; then |
| 5169 | ac_aux_dir=$ac_dir |
| 5170 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 5171 | break 2 |
| 5172 | fi |
| 5173 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5174 | done |
| 5175 | if test -z "$ac_aux_dir"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5176 | 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] | 5177 | fi |
| 5178 | |
| 5179 | # These three variables are undocumented and unsupported, |
| 5180 | # and are intended to be withdrawn in a future Autoconf release. |
| 5181 | # They can cause serious problems if a builder's source tree is in a directory |
| 5182 | # whose full name contains unusual characters. |
| 5183 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 5184 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 5185 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 5186 | |
| 5187 | |
| 5188 | # Find a good install program. We prefer a C program (faster), |
| 5189 | # so one script is as good as another. But avoid the broken or |
| 5190 | # incompatible versions: |
| 5191 | # SysV /etc/install, /usr/sbin/install |
| 5192 | # SunOS /usr/etc/install |
| 5193 | # IRIX /sbin/install |
| 5194 | # AIX /bin/install |
| 5195 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5196 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5197 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5198 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5199 | # OS/2's system install, which has a completely different semantic |
| 5200 | # ./install, which can be erroneously created by make from ./install.sh. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5201 | # Reject install programs that cannot install multiple files. |
| 5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 5203 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5204 | if test -z "$INSTALL"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5205 | if test "${ac_cv_path_install+set}" = set; then : |
| 5206 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5207 | else |
| 5208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5209 | for as_dir in $PATH |
| 5210 | do |
| 5211 | IFS=$as_save_IFS |
| 5212 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5213 | # Account for people who put trailing slashes in PATH elements. |
| 5214 | case $as_dir/ in #(( |
| 5215 | ./ | .// | /[cC]/* | \ |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5216 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5217 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5218 | /usr/ucb/* ) ;; |
| 5219 | *) |
| 5220 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5221 | # Don't use installbsd from OSF since it installs stuff as root |
| 5222 | # by default. |
| 5223 | for ac_prog in ginstall scoinst install; do |
| 5224 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5225 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 5226 | if test $ac_prog = install && |
| 5227 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5228 | # AIX install. It has an incompatible calling convention. |
| 5229 | : |
| 5230 | elif test $ac_prog = install && |
| 5231 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5232 | # program-specific install script used by HP pwplus--don't use. |
| 5233 | : |
| 5234 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5235 | rm -rf conftest.one conftest.two conftest.dir |
| 5236 | echo one > conftest.one |
| 5237 | echo two > conftest.two |
| 5238 | mkdir conftest.dir |
| 5239 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5240 | test -s conftest.one && test -s conftest.two && |
| 5241 | test -s conftest.dir/conftest.one && |
| 5242 | test -s conftest.dir/conftest.two |
| 5243 | then |
| 5244 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5245 | break 3 |
| 5246 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5247 | fi |
| 5248 | fi |
| 5249 | done |
| 5250 | done |
| 5251 | ;; |
| 5252 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5253 | |
| 5254 | done |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5255 | IFS=$as_save_IFS |
| 5256 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5257 | rm -rf conftest.one conftest.two conftest.dir |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5258 | |
| 5259 | fi |
| 5260 | if test "${ac_cv_path_install+set}" = set; then |
| 5261 | INSTALL=$ac_cv_path_install |
| 5262 | else |
| 5263 | # As a last resort, use the slow shell script. Don't cache a |
| 5264 | # value for INSTALL within a source directory, because that will |
| 5265 | # break other packages using the cache if that directory is |
| 5266 | # removed, or if the value is a relative name. |
| 5267 | INSTALL=$ac_install_sh |
| 5268 | fi |
| 5269 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 5271 | $as_echo "$INSTALL" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5272 | |
| 5273 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5274 | # It thinks the first close brace ends the variable substitution. |
| 5275 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5276 | |
| 5277 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5278 | |
| 5279 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5280 | |
| 5281 | |
| 5282 | # Not every filesystem supports hard links |
| 5283 | |
| 5284 | if test -z "$LN" ; then |
| 5285 | case $ac_sys_system in |
| 5286 | BeOS*) LN="ln -s";; |
| 5287 | CYGWIN*) LN="ln -s";; |
| 5288 | atheos*) LN="ln -s";; |
| 5289 | *) LN=ln;; |
| 5290 | esac |
| 5291 | fi |
| 5292 | |
| 5293 | # Check for --with-pydebug |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 |
| 5295 | $as_echo_n "checking for --with-pydebug... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5296 | |
| 5297 | # Check whether --with-pydebug was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5298 | if test "${with_pydebug+set}" = set; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5299 | withval=$with_pydebug; |
| 5300 | if test "$withval" != no |
| 5301 | then |
| 5302 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5303 | $as_echo "#define Py_DEBUG 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5304 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5306 | $as_echo "yes" >&6; }; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5307 | Py_DEBUG='true' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5308 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5309 | $as_echo "no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5310 | fi |
| 5311 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5313 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5314 | fi |
| 5315 | |
| 5316 | |
| 5317 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 5318 | # merged with this chunk of code? |
| 5319 | |
| 5320 | # Optimizer/debugger flags |
| 5321 | # ------------------------ |
| 5322 | # (The following bit of code is complicated enough - please keep things |
| 5323 | # indented properly. Just pretend you're editing Python code. ;-) |
| 5324 | |
| 5325 | # There are two parallel sets of case statements below, one that checks to |
| 5326 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 5327 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 5328 | # user set OPT. |
| 5329 | |
| 5330 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 5331 | # it on the command line |
| 5332 | |
Benjamin Peterson | d4b721b | 2010-03-23 20:58:37 +0000 | [diff] [blame] | 5333 | if test "${OPT-unset}" = "unset" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5334 | then |
| 5335 | case $GCC in |
| 5336 | yes) |
| 5337 | if test "$CC" != 'g++' ; then |
| 5338 | STRICT_PROTO="-Wstrict-prototypes" |
| 5339 | fi |
| 5340 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 5341 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 5342 | WRAP="-fwrapv" |
| 5343 | fi |
| 5344 | case $ac_cv_prog_cc_g in |
| 5345 | yes) |
| 5346 | if test "$Py_DEBUG" = 'true' ; then |
| 5347 | # Optimization messes up debuggers, so turn it off for |
| 5348 | # debug builds. |
Mark Dickinson | d2f3e3f | 2010-05-05 22:23:58 +0000 | [diff] [blame] | 5349 | OPT="-g -O0 -Wall $STRICT_PROTO" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5350 | else |
| 5351 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 5352 | fi |
| 5353 | ;; |
| 5354 | *) |
| 5355 | OPT="-O3 -Wall $STRICT_PROTO" |
| 5356 | ;; |
| 5357 | esac |
| 5358 | case $ac_sys_system in |
| 5359 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 5360 | ;; |
| 5361 | esac |
| 5362 | ;; |
| 5363 | |
| 5364 | *) |
| 5365 | OPT="-O" |
| 5366 | ;; |
| 5367 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5368 | fi |
| 5369 | |
| 5370 | |
| 5371 | |
| 5372 | # The -arch flags for universal builds on OSX |
| 5373 | UNIVERSAL_ARCH_FLAGS= |
| 5374 | |
| 5375 | |
| 5376 | # tweak BASECFLAGS based on compiler and platform |
| 5377 | case $GCC in |
| 5378 | yes) |
| 5379 | # Python violates C99 rules, by casting between incompatible |
| 5380 | # pointer types. GCC may generate bad code as a result of that, |
| 5381 | # so use -fno-strict-aliasing if supported. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 5383 | $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5384 | ac_save_cc="$CC" |
| 5385 | CC="$CC -fno-strict-aliasing" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5386 | if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then : |
| 5387 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 5388 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5390 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5391 | |
| 5392 | int |
| 5393 | main () |
| 5394 | { |
Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 5395 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5396 | ; |
| 5397 | return 0; |
| 5398 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5399 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5400 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5401 | ac_cv_no_strict_aliasing_ok=yes |
| 5402 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5403 | ac_cv_no_strict_aliasing_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5404 | fi |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 5406 | fi |
| 5407 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5408 | CC="$ac_save_cc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 5410 | $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5411 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 5412 | then |
| 5413 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 5414 | fi |
| 5415 | |
| 5416 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 5417 | # support. Without this, treatment of subnormals doesn't follow |
| 5418 | # the standard. |
| 5419 | case $ac_sys_machine in |
| 5420 | alpha*) |
| 5421 | BASECFLAGS="$BASECFLAGS -mieee" |
| 5422 | ;; |
| 5423 | esac |
| 5424 | |
| 5425 | case $ac_sys_system in |
| 5426 | SCO_SV*) |
| 5427 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 5428 | ;; |
| 5429 | # is there any other compiler on Darwin besides gcc? |
| 5430 | Darwin*) |
| 5431 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 5432 | # used to be here, but non-Apple gcc doesn't accept them. |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5433 | if test "${CC}" = gcc |
| 5434 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 |
| 5436 | $as_echo_n "checking which compiler should be used... " >&6; } |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5437 | case "${UNIVERSALSDK}" in |
| 5438 | */MacOSX10.4u.sdk) |
| 5439 | # Build using 10.4 SDK, force usage of gcc when the |
| 5440 | # compiler is gcc, otherwise the user will get very |
| 5441 | # confusing error messages when building on OSX 10.6 |
| 5442 | CC=gcc-4.0 |
| 5443 | CPP=cpp-4.0 |
| 5444 | ;; |
| 5445 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5447 | $as_echo "$CC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5448 | fi |
| 5449 | |
| 5450 | # Calculate the right deployment target for this build. |
| 5451 | # |
| 5452 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 5453 | if test ${cur_target} '>' 10.2; then |
| 5454 | cur_target=10.3 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 5455 | if test ${enable_universalsdk}; then |
| 5456 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 5457 | # Ensure that the default platform for a |
| 5458 | # 4-way universal build is OSX 10.5, |
| 5459 | # that's the first OS release where |
| 5460 | # 4-way builds make sense. |
| 5461 | cur_target='10.5' |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 5462 | |
| 5463 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then |
| 5464 | cur_target='10.5' |
| 5465 | |
| 5466 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then |
| 5467 | cur_target='10.5' |
| 5468 | |
| 5469 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then |
| 5470 | cur_target='10.5' |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 5471 | fi |
| 5472 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 5473 | if test `/usr/bin/arch` = "i386"; then |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 5474 | # On Intel macs default to a deployment |
| 5475 | # target of 10.4, that's the first OSX |
| 5476 | # release with Intel support. |
| 5477 | cur_target="10.4" |
| 5478 | fi |
| 5479 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5480 | fi |
| 5481 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 5482 | |
| 5483 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 5484 | # environment with a value that is the same as what we'll use |
| 5485 | # in the Makefile to ensure that we'll get the same compiler |
| 5486 | # environment during configure and build time. |
| 5487 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 5488 | export MACOSX_DEPLOYMENT_TARGET |
| 5489 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 5490 | |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5491 | if test "${enable_universalsdk}"; then |
| 5492 | UNIVERSAL_ARCH_FLAGS="" |
| 5493 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 5494 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 5495 | ARCH_RUN_32BIT="" |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 5496 | LIPO_32BIT_FLAGS="" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5497 | |
| 5498 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 5499 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 5500 | LIPO_32BIT_FLAGS="" |
| 5501 | ARCH_RUN_32BIT="true" |
| 5502 | |
| 5503 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 5504 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 5505 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 5506 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5507 | |
| 5508 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then |
| 5509 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 5510 | LIPO_32BIT_FLAGS="-extract i386" |
Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 5511 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5512 | |
| 5513 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then |
| 5514 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 5515 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 9922f17 | 2010-02-11 13:19:34 +0000 | [diff] [blame] | 5516 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5517 | |
| 5518 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5519 | 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] | 5520 | |
| 5521 | fi |
| 5522 | |
| 5523 | |
Ronald Oussoren | 974eb5e | 2010-04-18 17:59:37 +0000 | [diff] [blame] | 5524 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" |
| 5525 | if test "${UNIVERSALSDK}" != "/" |
| 5526 | then |
| 5527 | CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" |
| 5528 | LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| 5529 | CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5530 | fi |
| 5531 | |
| 5532 | fi |
| 5533 | |
| 5534 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5535 | ;; |
| 5536 | OSF*) |
| 5537 | BASECFLAGS="$BASECFLAGS -mieee" |
| 5538 | ;; |
| 5539 | esac |
| 5540 | ;; |
| 5541 | |
| 5542 | *) |
| 5543 | case $ac_sys_system in |
| 5544 | OpenUNIX*|UnixWare*) |
| 5545 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 5546 | ;; |
| 5547 | OSF*) |
| 5548 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 5549 | ;; |
| 5550 | SCO_SV*) |
| 5551 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 5552 | ;; |
| 5553 | esac |
| 5554 | ;; |
| 5555 | esac |
| 5556 | |
| 5557 | if test "$Py_DEBUG" = 'true'; then |
| 5558 | : |
| 5559 | else |
| 5560 | OPT="-DNDEBUG $OPT" |
| 5561 | fi |
| 5562 | |
| 5563 | if test "$ac_arch_flags" |
| 5564 | then |
| 5565 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 5566 | fi |
| 5567 | |
| 5568 | # disable check for icc since it seems to pass, but generates a warning |
| 5569 | if test "$CC" = icc |
| 5570 | then |
| 5571 | ac_cv_opt_olimit_ok=no |
| 5572 | fi |
| 5573 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 5575 | $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; } |
| 5576 | if test "${ac_cv_opt_olimit_ok+set}" = set; then : |
| 5577 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5578 | else |
| 5579 | ac_save_cc="$CC" |
| 5580 | CC="$CC -OPT:Olimit=0" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5582 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5583 | |
| 5584 | int |
| 5585 | main () |
| 5586 | { |
Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 5587 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5588 | ; |
| 5589 | return 0; |
| 5590 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5591 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5592 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5593 | ac_cv_opt_olimit_ok=yes |
| 5594 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5595 | ac_cv_opt_olimit_ok=no |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5596 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5597 | fi |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5599 | CC="$ac_save_cc" |
| 5600 | fi |
| 5601 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5 |
| 5603 | $as_echo "$ac_cv_opt_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5604 | if test $ac_cv_opt_olimit_ok = yes; then |
| 5605 | case $ac_sys_system in |
| 5606 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 5607 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 5608 | # environment? |
| 5609 | Darwin*) |
| 5610 | ;; |
| 5611 | *) |
| 5612 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 5613 | ;; |
| 5614 | esac |
| 5615 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5 |
| 5617 | $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; } |
| 5618 | if test "${ac_cv_olimit_ok+set}" = set; then : |
| 5619 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5620 | else |
| 5621 | ac_save_cc="$CC" |
| 5622 | CC="$CC -Olimit 1500" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5624 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5625 | |
| 5626 | int |
| 5627 | main () |
| 5628 | { |
Mark Dickinson | 5e13e29 | 2010-05-11 08:55:06 +0000 | [diff] [blame] | 5629 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5630 | ; |
| 5631 | return 0; |
| 5632 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5633 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5634 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5635 | ac_cv_olimit_ok=yes |
| 5636 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5637 | ac_cv_olimit_ok=no |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5638 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5639 | fi |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5641 | CC="$ac_save_cc" |
| 5642 | fi |
| 5643 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5 |
| 5645 | $as_echo "$ac_cv_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5646 | if test $ac_cv_olimit_ok = yes; then |
| 5647 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 5648 | fi |
| 5649 | fi |
| 5650 | |
| 5651 | # Check whether GCC supports PyArg_ParseTuple format |
| 5652 | if test "$GCC" = "yes" |
| 5653 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 |
| 5655 | $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5656 | save_CFLAGS=$CFLAGS |
| 5657 | CFLAGS="$CFLAGS -Werror" |
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. */ |
| 5660 | |
| 5661 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5662 | int |
| 5663 | main () |
| 5664 | { |
| 5665 | |
| 5666 | ; |
| 5667 | return 0; |
| 5668 | } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5669 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5670 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5671 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5672 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5673 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5674 | $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5675 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5677 | $as_echo "yes" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5678 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5679 | else |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 5680 | |
| 5681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5682 | $as_echo "no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5683 | |
| 5684 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5686 | CFLAGS=$save_CFLAGS |
| 5687 | fi |
| 5688 | |
| 5689 | # On some compilers, pthreads are available without further options |
| 5690 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 5691 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 5692 | # So we have to see first whether pthreads are available without |
| 5693 | # options before we can check whether -Kpthread improves anything. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 |
| 5695 | $as_echo_n "checking whether pthreads are available without options... " >&6; } |
| 5696 | if test "${ac_cv_pthread_is_default+set}" = set; then : |
| 5697 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5698 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5699 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5700 | ac_cv_pthread_is_default=no |
| 5701 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5703 | /* end confdefs.h. */ |
| 5704 | |
| 5705 | #include <pthread.h> |
| 5706 | |
| 5707 | void* routine(void* p){return NULL;} |
| 5708 | |
| 5709 | int main(){ |
| 5710 | pthread_t p; |
| 5711 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5712 | return 1; |
| 5713 | (void)pthread_detach(p); |
| 5714 | return 0; |
| 5715 | } |
| 5716 | |
| 5717 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5718 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5719 | |
| 5720 | ac_cv_pthread_is_default=yes |
| 5721 | ac_cv_kthread=no |
| 5722 | ac_cv_pthread=no |
| 5723 | |
| 5724 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5725 | ac_cv_pthread_is_default=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5726 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5727 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5728 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5729 | fi |
| 5730 | |
| 5731 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5732 | fi |
| 5733 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 |
| 5735 | $as_echo "$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5736 | |
| 5737 | |
| 5738 | if test $ac_cv_pthread_is_default = yes |
| 5739 | then |
| 5740 | ac_cv_kpthread=no |
| 5741 | else |
| 5742 | # -Kpthread, if available, provides the right #defines |
| 5743 | # and linker options to make pthread_create available |
| 5744 | # Some compilers won't report that they do not support -Kpthread, |
| 5745 | # so we need to run a program to see whether it really made the |
| 5746 | # function available. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 |
| 5748 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } |
| 5749 | if test "${ac_cv_kpthread+set}" = set; then : |
| 5750 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5751 | else |
| 5752 | ac_save_cc="$CC" |
| 5753 | CC="$CC -Kpthread" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5754 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5755 | ac_cv_kpthread=no |
| 5756 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5758 | /* end confdefs.h. */ |
| 5759 | |
| 5760 | #include <pthread.h> |
| 5761 | |
| 5762 | void* routine(void* p){return NULL;} |
| 5763 | |
| 5764 | int main(){ |
| 5765 | pthread_t p; |
| 5766 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5767 | return 1; |
| 5768 | (void)pthread_detach(p); |
| 5769 | return 0; |
| 5770 | } |
| 5771 | |
| 5772 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5773 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5774 | ac_cv_kpthread=yes |
| 5775 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5776 | ac_cv_kpthread=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5777 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5778 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5779 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5780 | fi |
| 5781 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5782 | CC="$ac_save_cc" |
| 5783 | fi |
| 5784 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 |
| 5786 | $as_echo "$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5787 | fi |
| 5788 | |
| 5789 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5790 | then |
| 5791 | # -Kthread, if available, provides the right #defines |
| 5792 | # and linker options to make pthread_create available |
| 5793 | # Some compilers won't report that they do not support -Kthread, |
| 5794 | # so we need to run a program to see whether it really made the |
| 5795 | # function available. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 |
| 5797 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } |
| 5798 | if test "${ac_cv_kthread+set}" = set; then : |
| 5799 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5800 | else |
| 5801 | ac_save_cc="$CC" |
| 5802 | CC="$CC -Kthread" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5803 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5804 | ac_cv_kthread=no |
| 5805 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5807 | /* end confdefs.h. */ |
| 5808 | |
| 5809 | #include <pthread.h> |
| 5810 | |
| 5811 | void* routine(void* p){return NULL;} |
| 5812 | |
| 5813 | int main(){ |
| 5814 | pthread_t p; |
| 5815 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5816 | return 1; |
| 5817 | (void)pthread_detach(p); |
| 5818 | return 0; |
| 5819 | } |
| 5820 | |
| 5821 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5822 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5823 | ac_cv_kthread=yes |
| 5824 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5825 | ac_cv_kthread=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5826 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5827 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5828 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5829 | fi |
| 5830 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5831 | CC="$ac_save_cc" |
| 5832 | fi |
| 5833 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 |
| 5835 | $as_echo "$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5836 | fi |
| 5837 | |
| 5838 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5839 | then |
| 5840 | # -pthread, if available, provides the right #defines |
| 5841 | # and linker options to make pthread_create available |
| 5842 | # Some compilers won't report that they do not support -pthread, |
| 5843 | # so we need to run a program to see whether it really made the |
| 5844 | # function available. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 |
| 5846 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } |
| 5847 | if test "${ac_cv_thread+set}" = set; then : |
| 5848 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5849 | else |
| 5850 | ac_save_cc="$CC" |
| 5851 | CC="$CC -pthread" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5852 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5853 | ac_cv_pthread=no |
| 5854 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5856 | /* end confdefs.h. */ |
| 5857 | |
| 5858 | #include <pthread.h> |
| 5859 | |
| 5860 | void* routine(void* p){return NULL;} |
| 5861 | |
| 5862 | int main(){ |
| 5863 | pthread_t p; |
| 5864 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5865 | return 1; |
| 5866 | (void)pthread_detach(p); |
| 5867 | return 0; |
| 5868 | } |
| 5869 | |
| 5870 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5871 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5872 | ac_cv_pthread=yes |
| 5873 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5874 | ac_cv_pthread=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5875 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5876 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5877 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5878 | fi |
| 5879 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5880 | CC="$ac_save_cc" |
| 5881 | fi |
| 5882 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 |
| 5884 | $as_echo "$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5885 | fi |
| 5886 | |
| 5887 | # If we have set a CC compiler flag for thread support then |
| 5888 | # check if it works for CXX, too. |
| 5889 | ac_cv_cxx_thread=no |
| 5890 | if test ! -z "$CXX" |
| 5891 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 |
| 5893 | $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] | 5894 | ac_save_cxx="$CXX" |
| 5895 | |
| 5896 | if test "$ac_cv_kpthread" = "yes" |
| 5897 | then |
| 5898 | CXX="$CXX -Kpthread" |
| 5899 | ac_cv_cxx_thread=yes |
| 5900 | elif test "$ac_cv_kthread" = "yes" |
| 5901 | then |
| 5902 | CXX="$CXX -Kthread" |
| 5903 | ac_cv_cxx_thread=yes |
| 5904 | elif test "$ac_cv_pthread" = "yes" |
| 5905 | then |
| 5906 | CXX="$CXX -pthread" |
| 5907 | ac_cv_cxx_thread=yes |
| 5908 | fi |
| 5909 | |
| 5910 | if test $ac_cv_cxx_thread = yes |
| 5911 | then |
| 5912 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5913 | $CXX -c conftest.$ac_ext 2>&5 |
| 5914 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5915 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5916 | then |
| 5917 | ac_cv_cxx_thread=yes |
| 5918 | else |
| 5919 | ac_cv_cxx_thread=no |
| 5920 | fi |
| 5921 | rm -fr conftest* |
| 5922 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 |
| 5924 | $as_echo "$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5925 | fi |
| 5926 | CXX="$ac_save_cxx" |
| 5927 | |
| 5928 | |
| 5929 | # checks for header files |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 5931 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 5932 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 5933 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5934 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5936 | /* end confdefs.h. */ |
| 5937 | #include <stdlib.h> |
| 5938 | #include <stdarg.h> |
| 5939 | #include <string.h> |
| 5940 | #include <float.h> |
| 5941 | |
| 5942 | int |
| 5943 | main () |
| 5944 | { |
| 5945 | |
| 5946 | ; |
| 5947 | return 0; |
| 5948 | } |
| 5949 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5950 | if ac_fn_c_try_compile "$LINENO"; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5951 | ac_cv_header_stdc=yes |
| 5952 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5953 | ac_cv_header_stdc=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5954 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5956 | |
| 5957 | if test $ac_cv_header_stdc = yes; then |
| 5958 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5960 | /* end confdefs.h. */ |
| 5961 | #include <string.h> |
| 5962 | |
| 5963 | _ACEOF |
| 5964 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5965 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 5966 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5967 | else |
| 5968 | ac_cv_header_stdc=no |
| 5969 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 5970 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5971 | |
| 5972 | fi |
| 5973 | |
| 5974 | if test $ac_cv_header_stdc = yes; then |
| 5975 | # 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] | 5976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5977 | /* end confdefs.h. */ |
| 5978 | #include <stdlib.h> |
| 5979 | |
| 5980 | _ACEOF |
| 5981 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5982 | $EGREP "free" >/dev/null 2>&1; then : |
| 5983 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5984 | else |
| 5985 | ac_cv_header_stdc=no |
| 5986 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 5987 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5988 | |
| 5989 | fi |
| 5990 | |
| 5991 | if test $ac_cv_header_stdc = yes; then |
| 5992 | # /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] | 5993 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5994 | : |
| 5995 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 5996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5997 | /* end confdefs.h. */ |
| 5998 | #include <ctype.h> |
| 5999 | #include <stdlib.h> |
| 6000 | #if ((' ' & 0x0FF) == 0x020) |
| 6001 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6002 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6003 | #else |
| 6004 | # define ISLOWER(c) \ |
| 6005 | (('a' <= (c) && (c) <= 'i') \ |
| 6006 | || ('j' <= (c) && (c) <= 'r') \ |
| 6007 | || ('s' <= (c) && (c) <= 'z')) |
| 6008 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6009 | #endif |
| 6010 | |
| 6011 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6012 | int |
| 6013 | main () |
| 6014 | { |
| 6015 | int i; |
| 6016 | for (i = 0; i < 256; i++) |
| 6017 | if (XOR (islower (i), ISLOWER (i)) |
| 6018 | || toupper (i) != TOUPPER (i)) |
| 6019 | return 2; |
| 6020 | return 0; |
| 6021 | } |
| 6022 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6023 | if ac_fn_c_try_run "$LINENO"; then : |
| 6024 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6025 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6026 | ac_cv_header_stdc=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6027 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6028 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6029 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6030 | fi |
| 6031 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6032 | fi |
| 6033 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 6035 | $as_echo "$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6036 | if test $ac_cv_header_stdc = yes; then |
| 6037 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6038 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6039 | |
| 6040 | fi |
| 6041 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6042 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 6043 | fcntl.h grp.h \ |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 6044 | 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] | 6045 | 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] | 6046 | unistd.h utime.h \ |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 6047 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 6048 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6049 | 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] | 6050 | sys/termio.h sys/time.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 6051 | 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] | 6052 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 6053 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6054 | do : |
| 6055 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6056 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 6057 | eval as_val=\$$as_ac_Header |
| 6058 | if test "x$as_val" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6059 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6060 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6061 | _ACEOF |
| 6062 | |
| 6063 | fi |
| 6064 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6065 | done |
| 6066 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6067 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6068 | 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] | 6069 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 6070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 6071 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
| 6072 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 6073 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6074 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6076 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6077 | #include <sys/types.h> |
| 6078 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6080 | int |
| 6081 | main () |
| 6082 | { |
| 6083 | if ((DIR *) 0) |
| 6084 | return 0; |
| 6085 | ; |
| 6086 | return 0; |
| 6087 | } |
| 6088 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6089 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6090 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6091 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6092 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6093 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6095 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6096 | eval ac_res=\$$as_ac_Header |
| 6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6098 | $as_echo "$ac_res" >&6; } |
| 6099 | eval as_val=\$$as_ac_Header |
| 6100 | if test "x$as_val" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6101 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6102 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6103 | _ACEOF |
| 6104 | |
| 6105 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6106 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6107 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6108 | done |
| 6109 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 6110 | if test $ac_header_dirent = dirent.h; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 6112 | $as_echo_n "checking for library containing opendir... " >&6; } |
| 6113 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 6114 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6115 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6116 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6118 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6119 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6120 | /* Override any GCC internal prototype to avoid an error. |
| 6121 | Use char because int might match the return type of a GCC |
| 6122 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6123 | #ifdef __cplusplus |
| 6124 | extern "C" |
| 6125 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6126 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6127 | int |
| 6128 | main () |
| 6129 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6130 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6131 | ; |
| 6132 | return 0; |
| 6133 | } |
| 6134 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6135 | for ac_lib in '' dir; do |
| 6136 | if test -z "$ac_lib"; then |
| 6137 | ac_res="none required" |
| 6138 | else |
| 6139 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6140 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6141 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6142 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6143 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6144 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6145 | rm -f core conftest.err conftest.$ac_objext \ |
| 6146 | conftest$ac_exeext |
| 6147 | if test "${ac_cv_search_opendir+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6148 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6149 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6150 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6151 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 6152 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6153 | else |
| 6154 | ac_cv_search_opendir=no |
| 6155 | fi |
| 6156 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6157 | LIBS=$ac_func_search_save_LIBS |
| 6158 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 6160 | $as_echo "$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6161 | ac_res=$ac_cv_search_opendir |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6162 | if test "$ac_res" != no; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6163 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6164 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6165 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6166 | |
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 6169 | $as_echo_n "checking for library containing opendir... " >&6; } |
| 6170 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 6171 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6172 | else |
| 6173 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6175 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6176 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6177 | /* Override any GCC internal prototype to avoid an error. |
| 6178 | Use char because int might match the return type of a GCC |
| 6179 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6180 | #ifdef __cplusplus |
| 6181 | extern "C" |
| 6182 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6183 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6184 | int |
| 6185 | main () |
| 6186 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6187 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6188 | ; |
| 6189 | return 0; |
| 6190 | } |
| 6191 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6192 | for ac_lib in '' x; do |
| 6193 | if test -z "$ac_lib"; then |
| 6194 | ac_res="none required" |
| 6195 | else |
| 6196 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6197 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6198 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6199 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6200 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6201 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6202 | rm -f core conftest.err conftest.$ac_objext \ |
| 6203 | conftest$ac_exeext |
| 6204 | if test "${ac_cv_search_opendir+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6205 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6206 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6207 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6208 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 6209 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6210 | else |
| 6211 | ac_cv_search_opendir=no |
| 6212 | fi |
| 6213 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6214 | LIBS=$ac_func_search_save_LIBS |
| 6215 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 6217 | $as_echo "$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6218 | ac_res=$ac_cv_search_opendir |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6219 | if test "$ac_res" != no; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6220 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6221 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6222 | fi |
| 6223 | |
| 6224 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6225 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 |
| 6227 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } |
| 6228 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : |
| 6229 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6230 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6232 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6233 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6234 | int |
| 6235 | main () |
| 6236 | { |
| 6237 | return makedev(0, 0); |
| 6238 | ; |
| 6239 | return 0; |
| 6240 | } |
| 6241 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6242 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6243 | ac_cv_header_sys_types_h_makedev=yes |
| 6244 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6245 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6246 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6247 | rm -f core conftest.err conftest.$ac_objext \ |
| 6248 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6249 | |
| 6250 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6252 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6253 | |
| 6254 | if test $ac_cv_header_sys_types_h_makedev = no; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6255 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
| 6256 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6257 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6258 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6259 | |
| 6260 | fi |
| 6261 | |
| 6262 | |
| 6263 | |
| 6264 | if test $ac_cv_header_sys_mkdev_h = no; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6265 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
| 6266 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6267 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6268 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6269 | |
| 6270 | fi |
| 6271 | |
| 6272 | |
| 6273 | fi |
| 6274 | fi |
| 6275 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6276 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6277 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6278 | for ac_header in term.h |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6279 | do : |
| 6280 | 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] | 6281 | #ifdef HAVE_CURSES_H |
| 6282 | #include <curses.h> |
| 6283 | #endif |
| 6284 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6285 | " |
| 6286 | if test "x$ac_cv_header_term_h" = x""yes; then : |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6287 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6288 | #define HAVE_TERM_H 1 |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6289 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6290 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6291 | fi |
| 6292 | |
| 6293 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6294 | |
| 6295 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6296 | # On Linux, netlink.h requires asm/types.h |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6297 | for ac_header in linux/netlink.h |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6298 | do : |
| 6299 | 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] | 6300 | #ifdef HAVE_ASM_TYPES_H |
| 6301 | #include <asm/types.h> |
| 6302 | #endif |
| 6303 | #ifdef HAVE_SYS_SOCKET_H |
| 6304 | #include <sys/socket.h> |
| 6305 | #endif |
| 6306 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6307 | " |
| 6308 | if test "x$ac_cv_header_linux_netlink_h" = x""yes; then : |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6309 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6310 | #define HAVE_LINUX_NETLINK_H 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6311 | _ACEOF |
| 6312 | |
| 6313 | fi |
| 6314 | |
| 6315 | done |
| 6316 | |
| 6317 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6318 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6319 | was_it_defined=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 |
| 6321 | $as_echo_n "checking for clock_t in time.h... " >&6; } |
| 6322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6323 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6324 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6325 | |
| 6326 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6327 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6328 | $EGREP "clock_t" >/dev/null 2>&1; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6329 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6330 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6331 | |
| 6332 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6333 | $as_echo "#define clock_t long" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6334 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6335 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6336 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6337 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6338 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 6340 | $as_echo "$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6341 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6342 | # Check whether using makedev requires defining _OSF_SOURCE |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 |
| 6344 | $as_echo_n "checking for makedev... " >&6; } |
| 6345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6346 | /* end confdefs.h. */ |
Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6347 | |
| 6348 | #if defined(MAJOR_IN_MKDEV) |
| 6349 | #include <sys/mkdev.h> |
| 6350 | #elif defined(MAJOR_IN_SYSMACROS) |
| 6351 | #include <sys/sysmacros.h> |
| 6352 | #else |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6353 | #include <sys/types.h> |
Jesus Cea | 616de77 | 2010-04-28 10:32:30 +0000 | [diff] [blame] | 6354 | #endif |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6355 | int |
| 6356 | main () |
| 6357 | { |
| 6358 | makedev(0, 0) |
| 6359 | ; |
| 6360 | return 0; |
| 6361 | } |
| 6362 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6363 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6364 | ac_cv_has_makedev=yes |
| 6365 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6366 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6367 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6368 | rm -f core conftest.err conftest.$ac_objext \ |
| 6369 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6370 | if test "$ac_cv_has_makedev" = "no"; then |
| 6371 | # 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] | 6372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6373 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6374 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6375 | #define _OSF_SOURCE 1 |
| 6376 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6377 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6378 | int |
| 6379 | main () |
| 6380 | { |
| 6381 | makedev(0, 0) |
| 6382 | ; |
| 6383 | return 0; |
| 6384 | } |
| 6385 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6386 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6387 | ac_cv_has_makedev=yes |
| 6388 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6389 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6390 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6391 | rm -f core conftest.err conftest.$ac_objext \ |
| 6392 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6393 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6394 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6395 | $as_echo "#define _OSF_SOURCE 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6396 | |
| 6397 | fi |
| 6398 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 |
| 6400 | $as_echo "$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6401 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6402 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6403 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6404 | |
| 6405 | fi |
| 6406 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6407 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6408 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6409 | # defined, but the compiler does not support pragma redefine_extname, |
| 6410 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6411 | # structures (such as rlimit64) without declaring them. As a |
| 6412 | # work-around, disable LFS on such configurations |
| 6413 | |
| 6414 | use_lfs=yes |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 |
| 6416 | $as_echo_n "checking Solaris LFS bug... " >&6; } |
| 6417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6418 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6419 | |
| 6420 | #define _LARGEFILE_SOURCE 1 |
| 6421 | #define _FILE_OFFSET_BITS 64 |
| 6422 | #include <sys/resource.h> |
| 6423 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6424 | int |
| 6425 | main () |
| 6426 | { |
| 6427 | struct rlimit foo; |
| 6428 | ; |
| 6429 | return 0; |
| 6430 | } |
| 6431 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6432 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6433 | sol_lfs_bug=no |
| 6434 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6435 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6436 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 |
| 6439 | $as_echo "$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6440 | if test "$sol_lfs_bug" = "yes"; then |
| 6441 | use_lfs=no |
| 6442 | fi |
| 6443 | |
| 6444 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6445 | # Two defines needed to enable largefile support on various platforms |
| 6446 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6447 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6448 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6449 | |
| 6450 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6451 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6452 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6453 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6454 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6455 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6456 | cat >> confdefs.h <<\EOF |
| 6457 | #if defined(SCO_DS) |
| 6458 | #undef _OFF_T |
| 6459 | #endif |
| 6460 | EOF |
| 6461 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6462 | # Type availability checks |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6463 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 6464 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6465 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6466 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6467 | |
| 6468 | cat >>confdefs.h <<_ACEOF |
| 6469 | #define mode_t int |
| 6470 | _ACEOF |
| 6471 | |
| 6472 | fi |
| 6473 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6474 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 6475 | if test "x$ac_cv_type_off_t" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6476 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6477 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6478 | |
| 6479 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6480 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6481 | _ACEOF |
| 6482 | |
| 6483 | fi |
| 6484 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6485 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
| 6486 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6487 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6488 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6489 | |
| 6490 | cat >>confdefs.h <<_ACEOF |
| 6491 | #define pid_t int |
| 6492 | _ACEOF |
| 6493 | |
| 6494 | fi |
| 6495 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6496 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6497 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | cbf54b1 | 2010-05-08 11:04:18 +0000 | [diff] [blame] | 6498 | #define RETSIGTYPE void |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6499 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6500 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6501 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 6502 | if test "x$ac_cv_type_size_t" = x""yes; then : |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6503 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6504 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6505 | |
| 6506 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6507 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6508 | _ACEOF |
| 6509 | |
| 6510 | fi |
| 6511 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 6513 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
| 6514 | if test "${ac_cv_type_uid_t+set}" = set; then : |
| 6515 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6516 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6518 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6519 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6520 | |
| 6521 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6522 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6523 | $EGREP "uid_t" >/dev/null 2>&1; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6524 | ac_cv_type_uid_t=yes |
| 6525 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6526 | ac_cv_type_uid_t=no |
| 6527 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 6528 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6529 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6530 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 6532 | $as_echo "$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6533 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6534 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6535 | $as_echo "#define uid_t int" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6536 | |
| 6537 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6538 | $as_echo "#define gid_t int" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6539 | |
| 6540 | fi |
| 6541 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6542 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 6543 | case $ac_cv_c_uint32_t in #( |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6544 | no|yes) ;; #( |
| 6545 | *) |
| 6546 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6547 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6548 | |
| 6549 | |
| 6550 | cat >>confdefs.h <<_ACEOF |
| 6551 | #define uint32_t $ac_cv_c_uint32_t |
| 6552 | _ACEOF |
| 6553 | ;; |
| 6554 | esac |
| 6555 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6556 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 6557 | case $ac_cv_c_uint64_t in #( |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6558 | no|yes) ;; #( |
| 6559 | *) |
| 6560 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6561 | $as_echo "#define _UINT64_T 1" >>confdefs.h |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6562 | |
| 6563 | |
| 6564 | cat >>confdefs.h <<_ACEOF |
| 6565 | #define uint64_t $ac_cv_c_uint64_t |
| 6566 | _ACEOF |
| 6567 | ;; |
| 6568 | esac |
| 6569 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6570 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
| 6571 | case $ac_cv_c_int32_t in #( |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6572 | no|yes) ;; #( |
| 6573 | *) |
| 6574 | |
| 6575 | cat >>confdefs.h <<_ACEOF |
| 6576 | #define int32_t $ac_cv_c_int32_t |
| 6577 | _ACEOF |
| 6578 | ;; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6579 | esac |
| 6580 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6581 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
| 6582 | case $ac_cv_c_int64_t in #( |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 6583 | no|yes) ;; #( |
| 6584 | *) |
| 6585 | |
| 6586 | cat >>confdefs.h <<_ACEOF |
| 6587 | #define int64_t $ac_cv_c_int64_t |
| 6588 | _ACEOF |
| 6589 | ;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6590 | esac |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6591 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6592 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
| 6593 | if test "x$ac_cv_type_ssize_t" = x""yes; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6594 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6595 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6596 | |
| 6597 | fi |
| 6598 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6599 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6600 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6601 | # 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] | 6602 | # The cast to long int works around a bug in the HP C Compiler |
| 6603 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6604 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6605 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 6607 | $as_echo_n "checking size of int... " >&6; } |
| 6608 | if test "${ac_cv_sizeof_int+set}" = set; then : |
| 6609 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6610 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6611 | 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] | 6612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6613 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6614 | if test "$ac_cv_type_int" = yes; then |
| 6615 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6616 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6617 | { as_fn_set_status 77 |
| 6618 | as_fn_error "cannot compute sizeof (int) |
| 6619 | See \`config.log' for more details." "$LINENO" 5; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6620 | else |
| 6621 | ac_cv_sizeof_int=0 |
| 6622 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6623 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6624 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6625 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 6627 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6628 | |
| 6629 | |
| 6630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6631 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6632 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6633 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6634 | |
| 6635 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6636 | # The cast to long int works around a bug in the HP C Compiler |
| 6637 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6638 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6639 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 6641 | $as_echo_n "checking size of long... " >&6; } |
| 6642 | if test "${ac_cv_sizeof_long+set}" = set; then : |
| 6643 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6644 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6645 | 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] | 6646 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6647 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6648 | if test "$ac_cv_type_long" = yes; then |
| 6649 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6650 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6651 | { as_fn_set_status 77 |
| 6652 | as_fn_error "cannot compute sizeof (long) |
| 6653 | See \`config.log' for more details." "$LINENO" 5; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6654 | else |
| 6655 | ac_cv_sizeof_long=0 |
| 6656 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6657 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6659 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 6661 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6662 | |
| 6663 | |
| 6664 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6665 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6666 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6667 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6668 | |
| 6669 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6670 | # The cast to long int works around a bug in the HP C Compiler |
| 6671 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6672 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6673 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
| 6675 | $as_echo_n "checking size of void *... " >&6; } |
| 6676 | if test "${ac_cv_sizeof_void_p+set}" = set; then : |
| 6677 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6678 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6679 | 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] | 6680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6681 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6682 | if test "$ac_cv_type_void_p" = yes; then |
| 6683 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6684 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6685 | { as_fn_set_status 77 |
| 6686 | as_fn_error "cannot compute sizeof (void *) |
| 6687 | See \`config.log' for more details." "$LINENO" 5; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6688 | else |
| 6689 | ac_cv_sizeof_void_p=0 |
| 6690 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6691 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6693 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
| 6695 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6696 | |
| 6697 | |
| 6698 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6699 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6700 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6701 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6702 | |
| 6703 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6704 | # The cast to long int works around a bug in the HP C Compiler |
| 6705 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6706 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6707 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
| 6709 | $as_echo_n "checking size of short... " >&6; } |
| 6710 | if test "${ac_cv_sizeof_short+set}" = set; then : |
| 6711 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6712 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6713 | 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] | 6714 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6715 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6716 | if test "$ac_cv_type_short" = yes; then |
| 6717 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6718 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6719 | { as_fn_set_status 77 |
| 6720 | as_fn_error "cannot compute sizeof (short) |
| 6721 | See \`config.log' for more details." "$LINENO" 5; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6722 | else |
| 6723 | ac_cv_sizeof_short=0 |
| 6724 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6725 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6726 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6727 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
| 6729 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6730 | |
| 6731 | |
| 6732 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6733 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6734 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6735 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6736 | |
| 6737 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6738 | # The cast to long int works around a bug in the HP C Compiler |
| 6739 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6740 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6741 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
| 6743 | $as_echo_n "checking size of float... " >&6; } |
| 6744 | if test "${ac_cv_sizeof_float+set}" = set; then : |
| 6745 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6746 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6747 | 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] | 6748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6749 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6750 | if test "$ac_cv_type_float" = yes; then |
| 6751 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6752 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6753 | { as_fn_set_status 77 |
| 6754 | as_fn_error "cannot compute sizeof (float) |
| 6755 | See \`config.log' for more details." "$LINENO" 5; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6756 | else |
| 6757 | ac_cv_sizeof_float=0 |
| 6758 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6759 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6761 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
| 6763 | $as_echo "$ac_cv_sizeof_float" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6764 | |
| 6765 | |
| 6766 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6767 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6768 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6769 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6770 | |
| 6771 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6772 | # The cast to long int works around a bug in the HP C Compiler |
| 6773 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6774 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6775 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
| 6777 | $as_echo_n "checking size of double... " >&6; } |
| 6778 | if test "${ac_cv_sizeof_double+set}" = set; then : |
| 6779 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6780 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6781 | 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] | 6782 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6783 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6784 | if test "$ac_cv_type_double" = yes; then |
| 6785 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6786 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6787 | { as_fn_set_status 77 |
| 6788 | as_fn_error "cannot compute sizeof (double) |
| 6789 | See \`config.log' for more details." "$LINENO" 5; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6790 | else |
| 6791 | ac_cv_sizeof_double=0 |
| 6792 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6793 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6794 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6795 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
| 6797 | $as_echo "$ac_cv_sizeof_double" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6798 | |
| 6799 | |
| 6800 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6801 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6802 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6803 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6804 | |
| 6805 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6806 | # The cast to long int works around a bug in the HP C Compiler |
| 6807 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6808 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6809 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 |
| 6811 | $as_echo_n "checking size of fpos_t... " >&6; } |
| 6812 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then : |
| 6813 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6814 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6815 | 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] | 6816 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6817 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6818 | if test "$ac_cv_type_fpos_t" = yes; then |
| 6819 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6820 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6821 | { as_fn_set_status 77 |
| 6822 | as_fn_error "cannot compute sizeof (fpos_t) |
| 6823 | See \`config.log' for more details." "$LINENO" 5; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6824 | else |
| 6825 | ac_cv_sizeof_fpos_t=0 |
| 6826 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6827 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6828 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6829 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 |
| 6831 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6832 | |
| 6833 | |
| 6834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6835 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6836 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6837 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 6838 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6839 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6840 | # The cast to long int works around a bug in the HP C Compiler |
| 6841 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6842 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6843 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 6845 | $as_echo_n "checking size of size_t... " >&6; } |
| 6846 | if test "${ac_cv_sizeof_size_t+set}" = set; then : |
| 6847 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6848 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6849 | 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] | 6850 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6851 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6852 | if test "$ac_cv_type_size_t" = yes; then |
| 6853 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6854 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6855 | { as_fn_set_status 77 |
| 6856 | as_fn_error "cannot compute sizeof (size_t) |
| 6857 | See \`config.log' for more details." "$LINENO" 5; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6858 | else |
| 6859 | ac_cv_sizeof_size_t=0 |
| 6860 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6861 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6862 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6863 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 6865 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6866 | |
| 6867 | |
| 6868 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6869 | cat >>confdefs.h <<_ACEOF |
| 6870 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 6871 | _ACEOF |
| 6872 | |
| 6873 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6874 | # The cast to long int works around a bug in the HP C Compiler |
| 6875 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6876 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6877 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 |
| 6879 | $as_echo_n "checking size of pid_t... " >&6; } |
| 6880 | if test "${ac_cv_sizeof_pid_t+set}" = set; then : |
| 6881 | $as_echo_n "(cached) " >&6 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6882 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6883 | 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] | 6884 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6885 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6886 | if test "$ac_cv_type_pid_t" = yes; then |
| 6887 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6888 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6889 | { as_fn_set_status 77 |
| 6890 | as_fn_error "cannot compute sizeof (pid_t) |
| 6891 | See \`config.log' for more details." "$LINENO" 5; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6892 | else |
| 6893 | ac_cv_sizeof_pid_t=0 |
| 6894 | fi |
| 6895 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6896 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6897 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 |
| 6899 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 6900 | |
| 6901 | |
| 6902 | |
| 6903 | cat >>confdefs.h <<_ACEOF |
| 6904 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 6905 | _ACEOF |
| 6906 | |
| 6907 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6908 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 |
| 6910 | $as_echo_n "checking for long long support... " >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6911 | have_long_long=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6913 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6914 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6915 | int |
| 6916 | main () |
| 6917 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6918 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6919 | ; |
| 6920 | return 0; |
| 6921 | } |
| 6922 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6923 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6924 | |
| 6925 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6926 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6927 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6928 | have_long_long=yes |
| 6929 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6930 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 |
| 6933 | $as_echo "$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 6934 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6935 | # The cast to long int works around a bug in the HP C Compiler |
| 6936 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6937 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6938 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
| 6940 | $as_echo_n "checking size of long long... " >&6; } |
| 6941 | if test "${ac_cv_sizeof_long_long+set}" = set; then : |
| 6942 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6943 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6944 | 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] | 6945 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6946 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6947 | if test "$ac_cv_type_long_long" = yes; then |
| 6948 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6949 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6950 | { as_fn_set_status 77 |
| 6951 | as_fn_error "cannot compute sizeof (long long) |
| 6952 | See \`config.log' for more details." "$LINENO" 5; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6953 | else |
| 6954 | ac_cv_sizeof_long_long=0 |
| 6955 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6956 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6958 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
| 6960 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6961 | |
| 6962 | |
| 6963 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6964 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6965 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6966 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6967 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6968 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6969 | fi |
| 6970 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 |
| 6972 | $as_echo_n "checking for long double support... " >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 6973 | have_long_double=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 6975 | /* end confdefs.h. */ |
| 6976 | |
| 6977 | int |
| 6978 | main () |
| 6979 | { |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 6980 | long double x; x = (long double)0; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 6981 | ; |
| 6982 | return 0; |
| 6983 | } |
| 6984 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6985 | if ac_fn_c_try_compile "$LINENO"; then : |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 6986 | |
| 6987 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6988 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 6989 | |
| 6990 | have_long_double=yes |
| 6991 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 6992 | fi |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 6993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 6994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 |
| 6995 | $as_echo "$have_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 6996 | if test "$have_long_double" = yes ; then |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 6997 | # The cast to long int works around a bug in the HP C Compiler |
| 6998 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6999 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7000 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
| 7002 | $as_echo_n "checking size of long double... " >&6; } |
| 7003 | if test "${ac_cv_sizeof_long_double+set}" = set; then : |
| 7004 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7005 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7006 | 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] | 7007 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7008 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7009 | if test "$ac_cv_type_long_double" = yes; then |
| 7010 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7011 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7012 | { as_fn_set_status 77 |
| 7013 | as_fn_error "cannot compute sizeof (long double) |
| 7014 | See \`config.log' for more details." "$LINENO" 5; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7015 | else |
| 7016 | ac_cv_sizeof_long_double=0 |
| 7017 | fi |
| 7018 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7019 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7020 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
| 7022 | $as_echo "$ac_cv_sizeof_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 7023 | |
| 7024 | |
| 7025 | |
| 7026 | cat >>confdefs.h <<_ACEOF |
| 7027 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 7028 | _ACEOF |
| 7029 | |
| 7030 | |
| 7031 | fi |
| 7032 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 |
| 7034 | $as_echo_n "checking for _Bool support... " >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7035 | have_c99_bool=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7037 | /* end confdefs.h. */ |
| 7038 | |
| 7039 | int |
| 7040 | main () |
| 7041 | { |
| 7042 | _Bool x; x = (_Bool)0; |
| 7043 | ; |
| 7044 | return 0; |
| 7045 | } |
| 7046 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7047 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7048 | |
| 7049 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7050 | $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7051 | |
| 7052 | have_c99_bool=yes |
| 7053 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7054 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 |
| 7057 | $as_echo "$have_c99_bool" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7058 | if test "$have_c99_bool" = yes ; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7059 | # The cast to long int works around a bug in the HP C Compiler |
| 7060 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7061 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7062 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 |
| 7064 | $as_echo_n "checking size of _Bool... " >&6; } |
| 7065 | if test "${ac_cv_sizeof__Bool+set}" = set; then : |
| 7066 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7067 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7068 | 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] | 7069 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7070 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7071 | if test "$ac_cv_type__Bool" = yes; then |
| 7072 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7073 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7074 | { as_fn_set_status 77 |
| 7075 | as_fn_error "cannot compute sizeof (_Bool) |
| 7076 | See \`config.log' for more details." "$LINENO" 5; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7077 | else |
| 7078 | ac_cv_sizeof__Bool=0 |
| 7079 | fi |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7080 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7081 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7082 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 |
| 7084 | $as_echo "$ac_cv_sizeof__Bool" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7085 | |
| 7086 | |
| 7087 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 7088 | cat >>confdefs.h <<_ACEOF |
| 7089 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 7090 | _ACEOF |
| 7091 | |
| 7092 | |
| 7093 | fi |
| 7094 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7095 | 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] | 7096 | #include <stdint.h> |
| 7097 | #endif |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7098 | " |
| 7099 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7100 | |
| 7101 | cat >>confdefs.h <<_ACEOF |
| 7102 | #define HAVE_UINTPTR_T 1 |
| 7103 | _ACEOF |
| 7104 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7105 | # The cast to long int works around a bug in the HP C Compiler |
| 7106 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7107 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7108 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 |
| 7110 | $as_echo_n "checking size of uintptr_t... " >&6; } |
| 7111 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then : |
| 7112 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7113 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7114 | 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] | 7115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7116 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7117 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 7118 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7119 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7120 | { as_fn_set_status 77 |
| 7121 | as_fn_error "cannot compute sizeof (uintptr_t) |
| 7122 | See \`config.log' for more details." "$LINENO" 5; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7123 | else |
| 7124 | ac_cv_sizeof_uintptr_t=0 |
| 7125 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7126 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7128 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 7130 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7131 | |
| 7132 | |
| 7133 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7134 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7135 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7136 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7137 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7138 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7139 | fi |
| 7140 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 7141 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7142 | # The cast to long int works around a bug in the HP C Compiler |
| 7143 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7144 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7145 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 7147 | $as_echo_n "checking size of off_t... " >&6; } |
| 7148 | if test "${ac_cv_sizeof_off_t+set}" = set; then : |
| 7149 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7150 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7151 | 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] | 7152 | #ifdef HAVE_SYS_TYPES_H |
| 7153 | #include <sys/types.h> |
| 7154 | #endif |
| 7155 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7156 | "; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7157 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7158 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7159 | if test "$ac_cv_type_off_t" = yes; then |
| 7160 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7161 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7162 | { as_fn_set_status 77 |
| 7163 | as_fn_error "cannot compute sizeof (off_t) |
| 7164 | See \`config.log' for more details." "$LINENO" 5; }; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7165 | else |
| 7166 | ac_cv_sizeof_off_t=0 |
| 7167 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7168 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7169 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7170 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 7172 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7173 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7174 | |
| 7175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7176 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7177 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7178 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7179 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7180 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7181 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 |
| 7183 | $as_echo_n "checking whether to enable large file support... " >&6; } |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7184 | if test "$have_long_long" = yes |
| 7185 | then |
| 7186 | 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] | 7187 | "$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] | 7188 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7189 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7190 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7192 | $as_echo "yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7193 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7195 | $as_echo "no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7196 | fi |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7197 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7199 | $as_echo "no" >&6; } |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 7200 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 7201 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7202 | # The cast to long int works around a bug in the HP C Compiler |
| 7203 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7204 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7205 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 7207 | $as_echo_n "checking size of time_t... " >&6; } |
| 7208 | if test "${ac_cv_sizeof_time_t+set}" = set; then : |
| 7209 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7210 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7211 | 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] | 7212 | #ifdef HAVE_SYS_TYPES_H |
| 7213 | #include <sys/types.h> |
| 7214 | #endif |
| 7215 | #ifdef HAVE_TIME_H |
| 7216 | #include <time.h> |
| 7217 | #endif |
| 7218 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7219 | "; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7220 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7221 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7222 | if test "$ac_cv_type_time_t" = yes; then |
| 7223 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7224 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7225 | { as_fn_set_status 77 |
| 7226 | as_fn_error "cannot compute sizeof (time_t) |
| 7227 | See \`config.log' for more details." "$LINENO" 5; }; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7228 | else |
| 7229 | ac_cv_sizeof_time_t=0 |
| 7230 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7231 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7232 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7233 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 7235 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7236 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7237 | |
| 7238 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7239 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7240 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7241 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7242 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7243 | |
| 7244 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7245 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7246 | ac_save_cc="$CC" |
| 7247 | if test "$ac_cv_kpthread" = "yes" |
| 7248 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 7249 | elif test "$ac_cv_kthread" = "yes" |
| 7250 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 7251 | elif test "$ac_cv_pthread" = "yes" |
| 7252 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7253 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 |
| 7255 | $as_echo_n "checking for pthread_t... " >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7256 | have_pthread_t=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7258 | /* end confdefs.h. */ |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7259 | |
| 7260 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7261 | int |
| 7262 | main () |
| 7263 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 7264 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7265 | ; |
| 7266 | return 0; |
| 7267 | } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 7268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7269 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7270 | if ac_fn_c_try_compile "$LINENO"; then : |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7271 | have_pthread_t=yes |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7272 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 |
| 7275 | $as_echo "$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7276 | if test "$have_pthread_t" = yes ; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7277 | # 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] | 7278 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7279 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7280 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 |
| 7282 | $as_echo_n "checking size of pthread_t... " >&6; } |
| 7283 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then : |
| 7284 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7285 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7286 | 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] | 7287 | #ifdef HAVE_PTHREAD_H |
| 7288 | #include <pthread.h> |
| 7289 | #endif |
| 7290 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7291 | "; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7292 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7293 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7294 | if test "$ac_cv_type_pthread_t" = yes; then |
| 7295 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7296 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7297 | { as_fn_set_status 77 |
| 7298 | as_fn_error "cannot compute sizeof (pthread_t) |
| 7299 | See \`config.log' for more details." "$LINENO" 5; }; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7300 | else |
| 7301 | ac_cv_sizeof_pthread_t=0 |
| 7302 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7303 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7304 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7305 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 |
| 7307 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7308 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7309 | |
| 7310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7311 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7312 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7313 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7314 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 7315 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7316 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 7317 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 7318 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5 |
| 7320 | $as_echo_n "checking for --enable-toolbox-glue... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7321 | # Check whether --enable-toolbox-glue was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7322 | if test "${enable_toolbox_glue+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7323 | enableval=$enable_toolbox_glue; |
| 7324 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7325 | |
| 7326 | |
| 7327 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7328 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7329 | case $ac_sys_system/$ac_sys_release in |
| 7330 | Darwin/*) |
| 7331 | enable_toolbox_glue="yes";; |
| 7332 | *) |
| 7333 | enable_toolbox_glue="no";; |
| 7334 | esac |
| 7335 | fi |
| 7336 | case "$enable_toolbox_glue" in |
| 7337 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7338 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7339 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7340 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7341 | $as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7342 | |
| 7343 | ;; |
| 7344 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7345 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 7346 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7347 | ;; |
| 7348 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5 |
| 7350 | $as_echo "$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7351 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7352 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 7353 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7354 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 7355 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7356 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 7357 | ;; |
| 7358 | Darwin/*) |
| 7359 | OTHER_LIBTOOL_OPT="" |
| 7360 | ;; |
| 7361 | esac |
| 7362 | |
| 7363 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7364 | ARCH_RUN_32BIT="" |
| 7365 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7366 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 7367 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 7368 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 7369 | if test "${enable_universalsdk}"; then |
| 7370 | : |
| 7371 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 7372 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 7373 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7374 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7375 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 7376 | Darwin/*) |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 7377 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 7378 | if test ${gcc_version} '<' 4.0 |
| 7379 | then |
| 7380 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 7381 | else |
| 7382 | LIBTOOL_CRUFT="" |
| 7383 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7384 | if test "$cross_compiling" = yes; then : |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 7385 | ac_osx_32bit=yes |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7386 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7388 | /* end confdefs.h. */ |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 7389 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7390 | #include <unistd.h> |
| 7391 | int main(int argc, char*argv[]) |
| 7392 | { |
| 7393 | if (sizeof(long) == 4) { |
| 7394 | return 0; |
| 7395 | } else { |
| 7396 | return 1; |
| 7397 | } |
Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 7398 | } |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 7399 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7400 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7401 | if ac_fn_c_try_run "$LINENO"; then : |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7402 | ac_osx_32bit=yes |
| 7403 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7404 | ac_osx_32bit=no |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7405 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7406 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7407 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7408 | fi |
| 7409 | |
| 7410 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7411 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 7412 | case `/usr/bin/arch` in |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7413 | i386) |
| 7414 | MACOSX_DEFAULT_ARCH="i386" |
| 7415 | ;; |
| 7416 | ppc) |
| 7417 | MACOSX_DEFAULT_ARCH="ppc" |
| 7418 | ;; |
| 7419 | *) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7420 | as_fn_error "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7421 | ;; |
| 7422 | esac |
| 7423 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 7424 | case `/usr/bin/arch` in |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7425 | i386) |
| 7426 | MACOSX_DEFAULT_ARCH="x86_64" |
| 7427 | ;; |
| 7428 | ppc) |
| 7429 | MACOSX_DEFAULT_ARCH="ppc64" |
| 7430 | ;; |
| 7431 | *) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7432 | as_fn_error "Unexpected output of 'arch' on OSX" "$LINENO" 5 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 7433 | ;; |
| 7434 | esac |
| 7435 | |
| 7436 | #ARCH_RUN_32BIT="true" |
| 7437 | fi |
| 7438 | |
| 7439 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 7440 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7441 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7442 | esac |
| 7443 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 |
| 7445 | $as_echo_n "checking for --enable-framework... " >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7446 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7447 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 7448 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7449 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7450 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7451 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7452 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7453 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7455 | $as_echo "yes" >&6; } |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 7456 | if test $enable_shared = "yes" |
| 7457 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7458 | 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] | 7459 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7460 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7462 | $as_echo "no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7463 | fi |
| 7464 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 |
| 7466 | $as_echo_n "checking for dyld... " >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7467 | case $ac_sys_system/$ac_sys_release in |
| 7468 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7469 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7470 | $as_echo "#define WITH_DYLD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7471 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 |
| 7473 | $as_echo "always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7474 | ;; |
| 7475 | *) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7477 | $as_echo "no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7478 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 7479 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7480 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7481 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7482 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7483 | |
| 7484 | |
| 7485 | |
| 7486 | |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7487 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7488 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 7489 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 |
| 7491 | $as_echo_n "checking SO... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7492 | if test -z "$SO" |
| 7493 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7494 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 7495 | hp*|HP*) |
| 7496 | case `uname -m` in |
| 7497 | ia64) SO=.so;; |
| 7498 | *) SO=.sl;; |
| 7499 | esac |
| 7500 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 7501 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 7502 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7503 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 7504 | else |
| 7505 | # this might also be a termcap variable, see #610332 |
| 7506 | echo |
| 7507 | echo '=====================================================================' |
| 7508 | echo '+ +' |
| 7509 | echo '+ WARNING: You have set SO in your environment. +' |
| 7510 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 7511 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 7512 | echo '+ +' |
| 7513 | echo '=====================================================================' |
| 7514 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7515 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 |
| 7517 | $as_echo "$SO" >&6; } |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 7518 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 7519 | |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 7520 | cat >>confdefs.h <<_ACEOF |
| 7521 | #define SHLIB_EXT "$SO" |
| 7522 | _ACEOF |
| 7523 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7524 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 7525 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7526 | # (Shared libraries in this instance are shared modules to be loaded into |
| 7527 | # Python, as opposed to building Python itself as a shared library.) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 |
| 7529 | $as_echo_n "checking LDSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7530 | if test -z "$LDSHARED" |
| 7531 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7532 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7533 | AIX*) |
| 7534 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 7535 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7536 | ;; |
| 7537 | BeOS*) |
| 7538 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 7539 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7540 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7541 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7542 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7543 | SunOS/5*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7544 | if test "$GCC" = "yes" ; then |
| 7545 | LDSHARED='$(CC) -shared' |
| 7546 | LDCXXSHARED='$(CXX) -shared' |
| 7547 | else |
| 7548 | LDSHARED='$(CC) -G' |
| 7549 | LDCXXSHARED='$(CXX) -G' |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 7550 | fi ;; |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 7551 | hp*|HP*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7552 | if test "$GCC" = "yes" ; then |
| 7553 | LDSHARED='$(CC) -shared' |
| 7554 | LDCXXSHARED='$(CXX) -shared' |
| 7555 | else |
| 7556 | LDSHARED='ld -b' |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 7557 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7558 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7559 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7560 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7561 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7562 | if test "$enable_framework" ; then |
| 7563 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7564 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7565 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7566 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7567 | else |
| 7568 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 7569 | LDSHARED="$LDSHARED -undefined suppress" |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7570 | LDCXXSHARED="$LDCXXSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 7571 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7572 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7573 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7574 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7575 | if test "$enable_framework" ; then |
| 7576 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7577 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7578 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7579 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7580 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 7581 | # No framework, use the Python app as bundle-loader |
| 7582 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 7583 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7584 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7585 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7586 | Darwin/*) |
| 7587 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 7588 | # This allows an extension to be used in any Python |
Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 7589 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 7590 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7591 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 7592 | if test "${enable_universalsdk}"; then |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 7593 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 7594 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7595 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7596 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7597 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7598 | else |
| 7599 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7600 | LDCXXSHARED='$(CXX) $(LDFLAGS) -bundle' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7601 | if test "$enable_framework" ; then |
| 7602 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7603 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 7604 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7605 | LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7606 | else |
| 7607 | # No framework, use the Python app as bundle-loader |
| 7608 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 7609 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7610 | LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 7611 | fi |
| 7612 | fi |
| 7613 | ;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7614 | Linux*|GNU*|QNX*) |
| 7615 | LDSHARED='$(CC) -shared' |
| 7616 | LDCXXSHARED='$(CXX) -shared';; |
| 7617 | BSD/OS*/4*) |
| 7618 | LDSHARED="gcc -shared" |
| 7619 | LDCXXSHARED="g++ -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 7620 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 7621 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7622 | then |
Benjamin Peterson | 3b2abe9 | 2010-03-14 15:06:14 +0000 | [diff] [blame] | 7623 | LDSHARED='$(CC) -shared ${LDFLAGS}' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7624 | LDCXXSHARED='$(CXX) -shared ${LDFLAGS}' |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 7625 | else |
| 7626 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 7627 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 7628 | OpenBSD*) |
| 7629 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 7630 | then |
| 7631 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7632 | LDCXXSHARED='$(CXX) -shared $(CCSHARED) ${LDFLAGS}' |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 7633 | else |
| 7634 | case `uname -r` in |
| 7635 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 7636 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 7637 | ;; |
| 7638 | *) |
| 7639 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7640 | LDCXXSHARED='$(CXX) -shared $(CCSHARED) ${LDFLAGS}' |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 7641 | ;; |
| 7642 | esac |
| 7643 | fi;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7644 | NetBSD*|DragonFly*) |
| 7645 | LDSHARED="cc -shared ${LDFLAGS}" |
| 7646 | LDCXXSHARED="c++ -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7647 | OpenUNIX*|UnixWare*) |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7648 | if test "$GCC" = "yes" ; then |
| 7649 | LDSHARED='$(CC) -shared' |
| 7650 | LDCXXSHARED='$(CXX) -shared' |
| 7651 | else |
| 7652 | LDSHARED='$(CC) -G' |
| 7653 | LDCXXSHARED='$(CXX) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7654 | fi;; |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7655 | SCO_SV*) |
| 7656 | LDSHARED='$(CC) -Wl,-G,-Bexport' |
| 7657 | LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; |
| 7658 | CYGWIN*) |
| 7659 | LDSHARED="gcc -shared -Wl,--enable-auto-image-base" |
| 7660 | LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; |
| 7661 | atheos*) |
| 7662 | LDSHARED="gcc -shared" |
| 7663 | LDCXXSHARED="g++ -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7664 | *) LDSHARED="ld";; |
| 7665 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7666 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 |
| 7668 | $as_echo "$LDSHARED" >&6; } |
Ronald Oussoren | 7591285 | 2010-04-08 08:13:31 +0000 | [diff] [blame] | 7669 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7670 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7671 | # 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] | 7672 | # library (module) -- this is only needed for a few systems |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 |
| 7674 | $as_echo_n "checking CCSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7675 | if test -z "$CCSHARED" |
| 7676 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7677 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7678 | SunOS*) if test "$GCC" = yes; |
Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 7679 | then CCSHARED="-fPIC"; |
| 7680 | elif test `uname -p` = sparc; |
| 7681 | then CCSHARED="-xcode=pic32"; |
| 7682 | else CCSHARED="-Kpic"; |
| 7683 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7684 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 7685 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 7686 | else CCSHARED="+z"; |
| 7687 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7688 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7689 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7690 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7691 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7692 | if test "$GCC" = "yes" |
| 7693 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 7694 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 7695 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7696 | SCO_SV*) |
| 7697 | if test "$GCC" = "yes" |
| 7698 | then CCSHARED="-fPIC" |
| 7699 | else CCSHARED="-Kpic -belf" |
| 7700 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7701 | IRIX*/6*) case $CC in |
| 7702 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 7703 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7704 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7705 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7706 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7707 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 |
| 7709 | $as_echo "$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7710 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7711 | # the python executable -- this is only needed for a few systems |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 |
| 7713 | $as_echo_n "checking LINKFORSHARED... " >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7714 | if test -z "$LINKFORSHARED" |
| 7715 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 7716 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7717 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7718 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 7719 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 7720 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 7721 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 7722 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7723 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7724 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7725 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 7726 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7727 | # not used by the core itself but which needs to be in the core so |
| 7728 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 7729 | # -prebind is no longer used, because it actually seems to give a |
| 7730 | # slowdown in stead of a speedup, maybe due to the large number of |
| 7731 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7732 | |
| 7733 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7734 | if test "$enable_framework" |
| 7735 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 7736 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7737 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 7738 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 7739 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 7740 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 7741 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 7742 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 7743 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 7744 | then |
| 7745 | LINKFORSHARED="-Wl,--export-dynamic" |
| 7746 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7747 | SunOS/5*) case $CC in |
| 7748 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 7749 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 7750 | then |
| 7751 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 7752 | fi;; |
| 7753 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 7754 | CYGWIN*) |
| 7755 | if test $enable_shared = "no" |
| 7756 | then |
| 7757 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 7758 | fi;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 7759 | QNX*) |
| 7760 | # -Wl,-E causes the symbols to be added to the dynamic |
| 7761 | # symbol table so that they can be found when a module |
| 7762 | # is loaded. -N 2048K causes the stack size to be set |
| 7763 | # to 2048 kilobytes so that the stack doesn't overflow |
| 7764 | # when running test_compile.py. |
| 7765 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7766 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7767 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 |
| 7769 | $as_echo "$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7770 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7771 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 7772 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 |
| 7774 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7775 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 7776 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 7777 | case $ac_sys_system in |
| 7778 | CYGWIN*) |
| 7779 | # Cygwin needs CCSHARED when building extension DLLs |
| 7780 | # but not when building the interpreter DLL. |
| 7781 | CFLAGSFORSHARED='';; |
| 7782 | *) |
| 7783 | CFLAGSFORSHARED='$(CCSHARED)' |
| 7784 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7785 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 |
| 7787 | $as_echo "$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7788 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7789 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 7790 | # library (with --enable-shared). |
| 7791 | # 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] | 7792 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 7793 | # if it is not required, since it creates a dependency of the shared library |
| 7794 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 7795 | # don't need to link LIBS explicitly. The default should be only changed |
| 7796 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7797 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 |
| 7799 | $as_echo_n "checking SHLIBS... " >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7800 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7801 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 7802 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7803 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 |
| 7805 | $as_echo "$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 7806 | |
| 7807 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7808 | # checks for libraries |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 7810 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 7811 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 7812 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7814 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7815 | LIBS="-ldl $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7817 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7818 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7819 | /* Override any GCC internal prototype to avoid an error. |
| 7820 | Use char because int might match the return type of a GCC |
| 7821 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7822 | #ifdef __cplusplus |
| 7823 | extern "C" |
| 7824 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7825 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7826 | int |
| 7827 | main () |
| 7828 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7829 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7830 | ; |
| 7831 | return 0; |
| 7832 | } |
| 7833 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7834 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7835 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7836 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7837 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7838 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7839 | rm -f core conftest.err conftest.$ac_objext \ |
| 7840 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7841 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7842 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 7844 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 7845 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7846 | cat >>confdefs.h <<_ACEOF |
| 7847 | #define HAVE_LIBDL 1 |
| 7848 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7849 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7850 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7851 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7852 | fi |
| 7853 | # Dynamic linking for SunOS/Solaris and SYSV |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 7855 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 7856 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
| 7857 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7858 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7859 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7860 | LIBS="-ldld $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7862 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7863 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7864 | /* Override any GCC internal prototype to avoid an error. |
| 7865 | Use char because int might match the return type of a GCC |
| 7866 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7867 | #ifdef __cplusplus |
| 7868 | extern "C" |
| 7869 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7870 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7871 | int |
| 7872 | main () |
| 7873 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7874 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7875 | ; |
| 7876 | return 0; |
| 7877 | } |
| 7878 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7879 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7880 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7881 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7882 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7883 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7884 | rm -f core conftest.err conftest.$ac_objext \ |
| 7885 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7886 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7887 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 7889 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 7890 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7891 | cat >>confdefs.h <<_ACEOF |
| 7892 | #define HAVE_LIBDLD 1 |
| 7893 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7894 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7895 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7896 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7897 | fi |
| 7898 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7899 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 7900 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7901 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
| 7903 | $as_echo_n "checking for library containing sem_init... " >&6; } |
| 7904 | if test "${ac_cv_search_sem_init+set}" = set; then : |
| 7905 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7906 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7907 | ac_func_search_save_LIBS=$LIBS |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7909 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7910 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7911 | /* Override any GCC internal prototype to avoid an error. |
| 7912 | Use char because int might match the return type of a GCC |
| 7913 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7914 | #ifdef __cplusplus |
| 7915 | extern "C" |
| 7916 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7917 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7918 | int |
| 7919 | main () |
| 7920 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7921 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7922 | ; |
| 7923 | return 0; |
| 7924 | } |
| 7925 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7926 | for ac_lib in '' pthread rt posix4; do |
| 7927 | if test -z "$ac_lib"; then |
| 7928 | ac_res="none required" |
| 7929 | else |
| 7930 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 7931 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7932 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7933 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7934 | ac_cv_search_sem_init=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 7935 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7936 | rm -f core conftest.err conftest.$ac_objext \ |
| 7937 | conftest$ac_exeext |
| 7938 | if test "${ac_cv_search_sem_init+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7939 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 7940 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7941 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7942 | if test "${ac_cv_search_sem_init+set}" = set; then : |
| 7943 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7944 | else |
| 7945 | ac_cv_search_sem_init=no |
| 7946 | fi |
| 7947 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 7948 | LIBS=$ac_func_search_save_LIBS |
| 7949 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 |
| 7951 | $as_echo "$ac_cv_search_sem_init" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7952 | ac_res=$ac_cv_search_sem_init |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7953 | if test "$ac_res" != no; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7954 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7955 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 7956 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 7957 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 7958 | # posix4 on Solaris 2.6 |
| 7959 | # pthread (first!) on Linux |
| 7960 | fi |
| 7961 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7962 | # check if we need libintl for locale functions |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 |
| 7964 | $as_echo_n "checking for textdomain in -lintl... " >&6; } |
| 7965 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then : |
| 7966 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7967 | else |
| 7968 | ac_check_lib_save_LIBS=$LIBS |
| 7969 | LIBS="-lintl $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7971 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7972 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7973 | /* Override any GCC internal prototype to avoid an error. |
| 7974 | Use char because int might match the return type of a GCC |
| 7975 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7976 | #ifdef __cplusplus |
| 7977 | extern "C" |
| 7978 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7979 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7980 | int |
| 7981 | main () |
| 7982 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7983 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7984 | ; |
| 7985 | return 0; |
| 7986 | } |
| 7987 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7988 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7989 | ac_cv_lib_intl_textdomain=yes |
| 7990 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7991 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7992 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7993 | rm -f core conftest.err conftest.$ac_objext \ |
| 7994 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 7995 | LIBS=$ac_check_lib_save_LIBS |
| 7996 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 7997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 |
| 7998 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } |
| 7999 | if test "x$ac_cv_lib_intl_textdomain" = x""yes; then : |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8000 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8001 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 8002 | |
| 8003 | fi |
| 8004 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8005 | |
| 8006 | # checks for system dependent C++ extensions support |
| 8007 | case "$ac_sys_system" in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8008 | AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 |
| 8009 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } |
| 8010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8011 | /* end confdefs.h. */ |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8012 | |
| 8013 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8014 | int |
| 8015 | main () |
| 8016 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8017 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8018 | ; |
| 8019 | return 0; |
| 8020 | } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8022 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8023 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8024 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8025 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8026 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8027 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8029 | $as_echo "yes" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8030 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8031 | else |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8032 | |
| 8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8034 | $as_echo "no" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 8035 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8036 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8037 | rm -f core conftest.err conftest.$ac_objext \ |
| 8038 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 8039 | *) ;; |
| 8040 | esac |
| 8041 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8042 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8043 | # BeOS' sockets are stashed in libnet. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 |
| 8045 | $as_echo_n "checking for t_open in -lnsl... " >&6; } |
| 8046 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then : |
| 8047 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8048 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8049 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8050 | LIBS="-lnsl $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8052 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8053 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8054 | /* Override any GCC internal prototype to avoid an error. |
| 8055 | Use char because int might match the return type of a GCC |
| 8056 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8057 | #ifdef __cplusplus |
| 8058 | extern "C" |
| 8059 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8060 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8061 | int |
| 8062 | main () |
| 8063 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8064 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8065 | ; |
| 8066 | return 0; |
| 8067 | } |
| 8068 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8069 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8070 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8071 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8072 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8073 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8074 | rm -f core conftest.err conftest.$ac_objext \ |
| 8075 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8076 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8077 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 |
| 8079 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } |
| 8080 | if test "x$ac_cv_lib_nsl_t_open" = x""yes; then : |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8081 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 8082 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 8083 | # SVR4 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
| 8085 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
| 8086 | if test "${ac_cv_lib_socket_socket+set}" = set; then : |
| 8087 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8088 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8089 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8090 | LIBS="-lsocket $LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8092 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8093 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8094 | /* Override any GCC internal prototype to avoid an error. |
| 8095 | Use char because int might match the return type of a GCC |
| 8096 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8097 | #ifdef __cplusplus |
| 8098 | extern "C" |
| 8099 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8100 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8101 | int |
| 8102 | main () |
| 8103 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8104 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8105 | ; |
| 8106 | return 0; |
| 8107 | } |
| 8108 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8109 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8110 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8111 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8112 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8113 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8114 | rm -f core conftest.err conftest.$ac_objext \ |
| 8115 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8116 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8117 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
| 8119 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
| 8120 | if test "x$ac_cv_lib_socket_socket" = x""yes; then : |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8121 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8122 | fi |
| 8123 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 8124 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 8125 | case "$ac_sys_system" in |
| 8126 | BeOS*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5 |
| 8128 | $as_echo_n "checking for socket in -lnet... " >&6; } |
| 8129 | if test "${ac_cv_lib_net_socket+set}" = set; then : |
| 8130 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8131 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8132 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8133 | LIBS="-lnet $LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8135 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8136 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8137 | /* Override any GCC internal prototype to avoid an error. |
| 8138 | Use char because int might match the return type of a GCC |
| 8139 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8140 | #ifdef __cplusplus |
| 8141 | extern "C" |
| 8142 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8143 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8144 | int |
| 8145 | main () |
| 8146 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8147 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8148 | ; |
| 8149 | return 0; |
| 8150 | } |
| 8151 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8152 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8153 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8154 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8155 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8156 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8157 | rm -f core conftest.err conftest.$ac_objext \ |
| 8158 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8159 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8160 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5 |
| 8162 | $as_echo "$ac_cv_lib_net_socket" >&6; } |
| 8163 | if test "x$ac_cv_lib_net_socket" = x""yes; then : |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8164 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8165 | fi |
| 8166 | # BeOS |
| 8167 | ;; |
| 8168 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 8169 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 |
| 8171 | $as_echo_n "checking for --with-libs... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8172 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8173 | # Check whether --with-libs was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8174 | if test "${with_libs+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8175 | withval=$with_libs; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 8177 | $as_echo "$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 8178 | LIBS="$withval $LIBS" |
| 8179 | |
| 8180 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8182 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8183 | fi |
| 8184 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8185 | |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8186 | if test -n "$ac_tool_prefix"; then |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8187 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 8188 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8190 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8191 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
| 8192 | $as_echo_n "(cached) " >&6 |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8193 | else |
| 8194 | case $PKG_CONFIG in |
| 8195 | [\\/]* | ?:[\\/]*) |
| 8196 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 8197 | ;; |
| 8198 | *) |
| 8199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8200 | for as_dir in $PATH |
| 8201 | do |
| 8202 | IFS=$as_save_IFS |
| 8203 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8204 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8205 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8206 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8207 | $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] | 8208 | break 2 |
| 8209 | fi |
| 8210 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8211 | done |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8212 | IFS=$as_save_IFS |
| 8213 | |
| 8214 | ;; |
| 8215 | esac |
| 8216 | fi |
| 8217 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 8218 | if test -n "$PKG_CONFIG"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 8220 | $as_echo "$PKG_CONFIG" >&6; } |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8221 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8223 | $as_echo "no" >&6; } |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8224 | fi |
| 8225 | |
| 8226 | |
| 8227 | fi |
| 8228 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 8229 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 8230 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8231 | set dummy pkg-config; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8233 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8234 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
| 8235 | $as_echo_n "(cached) " >&6 |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8236 | else |
| 8237 | case $ac_pt_PKG_CONFIG in |
| 8238 | [\\/]* | ?:[\\/]*) |
| 8239 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 8240 | ;; |
| 8241 | *) |
| 8242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8243 | for as_dir in $PATH |
| 8244 | do |
| 8245 | IFS=$as_save_IFS |
| 8246 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8247 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8248 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8249 | 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] | 8250 | $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] | 8251 | break 2 |
| 8252 | fi |
| 8253 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8254 | done |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8255 | IFS=$as_save_IFS |
| 8256 | |
| 8257 | ;; |
| 8258 | esac |
| 8259 | fi |
| 8260 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 8261 | if test -n "$ac_pt_PKG_CONFIG"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 8263 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8264 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8266 | $as_echo "no" >&6; } |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8267 | fi |
| 8268 | |
| 8269 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 8270 | PKG_CONFIG="" |
| 8271 | else |
| 8272 | case $cross_compiling:$ac_tool_warned in |
| 8273 | yes:) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8274 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8275 | $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] | 8276 | ac_tool_warned=yes ;; |
| 8277 | esac |
| 8278 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 8279 | fi |
| 8280 | else |
| 8281 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 8282 | fi |
| 8283 | |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8284 | |
| 8285 | # Check for use of the system expat library |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 |
| 8287 | $as_echo_n "checking for --with-system-expat... " >&6; } |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8288 | |
| 8289 | # Check whether --with-system_expat was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8290 | if test "${with_system_expat+set}" = set; then : |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8291 | withval=$with_system_expat; |
| 8292 | fi |
| 8293 | |
| 8294 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 |
| 8296 | $as_echo "$with_system_expat" >&6; } |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8297 | |
| 8298 | # Check for use of the system libffi library |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 |
| 8300 | $as_echo_n "checking for --with-system-ffi... " >&6; } |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8301 | |
| 8302 | # Check whether --with-system_ffi was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8303 | if test "${with_system_ffi+set}" = set; then : |
Benjamin Peterson | e9e07bf | 2010-03-09 21:46:54 +0000 | [diff] [blame] | 8304 | withval=$with_system_ffi; |
| 8305 | fi |
| 8306 | |
| 8307 | |
| 8308 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 8309 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
| 8310 | else |
| 8311 | LIBFFI_INCLUDEDIR="" |
| 8312 | fi |
| 8313 | |
| 8314 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 |
| 8316 | $as_echo "$with_system_ffi" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 8317 | |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8318 | # Check for --with-dbmliborder |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 |
| 8320 | $as_echo_n "checking for --with-dbmliborder... " >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8321 | |
| 8322 | # Check whether --with-dbmliborder was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8323 | if test "${with_dbmliborder+set}" = set; then : |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8324 | withval=$with_dbmliborder; |
| 8325 | if test x$with_dbmliborder = xyes |
| 8326 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8327 | as_fn_error "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8328 | else |
| 8329 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 8330 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 8331 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8332 | as_fn_error "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8333 | fi |
| 8334 | done |
| 8335 | fi |
| 8336 | fi |
| 8337 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 |
| 8339 | $as_echo "$with_dbmliborder" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 8340 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8341 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8342 | |
| 8343 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 |
| 8345 | $as_echo_n "checking for --with-signal-module... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8346 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8347 | # Check whether --with-signal-module was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8348 | if test "${with_signal_module+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8349 | withval=$with_signal_module; |
| 8350 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8351 | |
| 8352 | |
| 8353 | if test -z "$with_signal_module" |
| 8354 | then with_signal_module="yes" |
| 8355 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 |
| 8357 | $as_echo "$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 8358 | |
| 8359 | if test "${with_signal_module}" = "yes"; then |
| 8360 | USE_SIGNAL_MODULE="" |
| 8361 | SIGNAL_OBJS="" |
| 8362 | else |
| 8363 | USE_SIGNAL_MODULE="#" |
| 8364 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 8365 | fi |
| 8366 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 8367 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8368 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8369 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 8370 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5 |
| 8372 | $as_echo_n "checking for --with-dec-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8373 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8374 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8375 | # Check whether --with-dec-threads was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8376 | if test "${with_dec_threads+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8377 | withval=$with_dec_threads; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 8379 | $as_echo "$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8380 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8381 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8382 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8383 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8384 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8386 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8387 | fi |
| 8388 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8389 | |
| 8390 | # Templates for things AC_DEFINEd more than once. |
| 8391 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8392 | |
| 8393 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8394 | |
| 8395 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 |
| 8397 | $as_echo_n "checking for --with-threads... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8398 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8399 | # Check whether --with-threads was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8400 | if test "${with_threads+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8401 | withval=$with_threads; |
| 8402 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 8403 | |
| 8404 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8405 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8406 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8407 | # Check whether --with-thread was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8408 | if test "${with_thread+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8409 | withval=$with_thread; with_threads=$with_thread |
| 8410 | fi |
| 8411 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8412 | |
| 8413 | if test -z "$with_threads" |
| 8414 | then with_threads="yes" |
| 8415 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 |
| 8417 | $as_echo "$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8418 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8419 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 8420 | if test "$with_threads" = "no" |
| 8421 | then |
| 8422 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8423 | elif test "$ac_cv_pthread_is_default" = yes |
| 8424 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8425 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8426 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8427 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8428 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 8429 | |
| 8430 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8431 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8432 | elif test "$ac_cv_kpthread" = "yes" |
| 8433 | then |
| 8434 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8435 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8436 | CXX="$CXX -Kpthread" |
| 8437 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8438 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 8439 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8440 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8441 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8442 | elif test "$ac_cv_kthread" = "yes" |
| 8443 | then |
| 8444 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8445 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8446 | CXX="$CXX -Kthread" |
| 8447 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8448 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8449 | |
| 8450 | posix_threads=yes |
| 8451 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8452 | elif test "$ac_cv_pthread" = "yes" |
| 8453 | then |
| 8454 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 8455 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 8456 | CXX="$CXX -pthread" |
| 8457 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8458 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8459 | |
| 8460 | posix_threads=yes |
| 8461 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8462 | else |
| 8463 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 8464 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 8465 | fi |
| 8466 | if test ! -z "$withval" -a -d "$withval" |
| 8467 | then LDFLAGS="$LDFLAGS -L$withval" |
| 8468 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8469 | |
| 8470 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 8471 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 8472 | # (e.g. gnu pth with pthread emulation) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 |
| 8474 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } |
| 8475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8476 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8477 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8478 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 8479 | #ifdef _POSIX_THREADS |
| 8480 | yes |
| 8481 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8482 | |
| 8483 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8484 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8485 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8486 | unistd_defines_pthreads=yes |
| 8487 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8488 | unistd_defines_pthreads=no |
| 8489 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 8490 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8491 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 |
| 8493 | $as_echo "$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8494 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8495 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 8496 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8497 | ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default" |
| 8498 | if test "x$ac_cv_header_cthreads_h" = x""yes; then : |
| 8499 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8500 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8501 | $as_echo "#define C_THREADS 1" >>confdefs.h |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8502 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8503 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8504 | $as_echo "#define HURD_C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8505 | |
| 8506 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8507 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8508 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8509 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8510 | ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" |
| 8511 | if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then : |
| 8512 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8513 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8514 | $as_echo "#define C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8516 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8517 | $as_echo "#define MACH_C_THREADS 1" >>confdefs.h |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8518 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8519 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8520 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8521 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5 |
| 8523 | $as_echo_n "checking for --with-pth... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8524 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8525 | # Check whether --with-pth was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8526 | if test "${with_pth+set}" = set; then : |
| 8527 | withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 |
| 8528 | $as_echo "$withval" >&6; } |
| 8529 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8530 | |
| 8531 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8532 | $as_echo "#define HAVE_PTH 1" >>confdefs.h |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 8533 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 8534 | LIBS="-lpth $LIBS" |
| 8535 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 8536 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8538 | $as_echo "no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8539 | |
| 8540 | # Just looking for pthread_create in libpthread is not enough: |
| 8541 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 8542 | # So we really have to include pthread.h, and then link. |
| 8543 | _libs=$LIBS |
| 8544 | LIBS="$LIBS -lpthread" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 8546 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
| 8547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8548 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8549 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8550 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8551 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8552 | int |
| 8553 | main () |
| 8554 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8555 | |
| 8556 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8557 | ; |
| 8558 | return 0; |
| 8559 | } |
| 8560 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8561 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8562 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8564 | $as_echo "yes" >&6; } |
| 8565 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8566 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8567 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8568 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 8569 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8570 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 8571 | LIBS=$_libs |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8572 | ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" |
| 8573 | if test "x$ac_cv_func_pthread_detach" = x""yes; then : |
| 8574 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8575 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 8576 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8577 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8578 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8579 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8580 | ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default" |
| 8581 | if test "x$ac_cv_header_atheos_threads_h" = x""yes; then : |
| 8582 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8583 | |
| 8584 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8585 | $as_echo "#define ATHEOS_THREADS 1" >>confdefs.h |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8586 | |
| 8587 | THREADOBJ="Python/thread.o" |
| 8588 | else |
| 8589 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8590 | ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default" |
| 8591 | if test "x$ac_cv_header_kernel_OS_h" = x""yes; then : |
| 8592 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8593 | |
| 8594 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8595 | $as_echo "#define BEOS_THREADS 1" >>confdefs.h |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8596 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8597 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8598 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8599 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
| 8601 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } |
| 8602 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then : |
| 8603 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8604 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8606 | LIBS="-lpthreads $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8608 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8609 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8610 | /* Override any GCC internal prototype to avoid an error. |
| 8611 | Use char because int might match the return type of a GCC |
| 8612 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8613 | #ifdef __cplusplus |
| 8614 | extern "C" |
| 8615 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8616 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8617 | int |
| 8618 | main () |
| 8619 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8620 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8621 | ; |
| 8622 | return 0; |
| 8623 | } |
| 8624 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8625 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8626 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8627 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8628 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8629 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8630 | rm -f core conftest.err conftest.$ac_objext \ |
| 8631 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8632 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8633 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 8635 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 8636 | if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then : |
| 8637 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8638 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8639 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8640 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8641 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8642 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8643 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
| 8645 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } |
| 8646 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then : |
| 8647 | $as_echo_n "(cached) " >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8648 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8649 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 8650 | LIBS="-lc_r $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8652 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8653 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8654 | /* Override any GCC internal prototype to avoid an error. |
| 8655 | Use char because int might match the return type of a GCC |
| 8656 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8657 | #ifdef __cplusplus |
| 8658 | extern "C" |
| 8659 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8660 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8661 | int |
| 8662 | main () |
| 8663 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8664 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8665 | ; |
| 8666 | return 0; |
| 8667 | } |
| 8668 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8669 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8670 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8671 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8672 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8673 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8674 | rm -f core conftest.err conftest.$ac_objext \ |
| 8675 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8676 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8677 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 8679 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } |
| 8680 | if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then : |
| 8681 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8682 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8683 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8684 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8685 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8686 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8687 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 |
| 8689 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } |
| 8690 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then : |
| 8691 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8692 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8693 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8694 | LIBS="-lpthread $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8696 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8697 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8698 | /* Override any GCC internal prototype to avoid an error. |
| 8699 | Use char because int might match the return type of a GCC |
| 8700 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8701 | #ifdef __cplusplus |
| 8702 | extern "C" |
| 8703 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8704 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8705 | int |
| 8706 | main () |
| 8707 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8708 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8709 | ; |
| 8710 | return 0; |
| 8711 | } |
| 8712 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8713 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8714 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8715 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8716 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8717 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8718 | rm -f core conftest.err conftest.$ac_objext \ |
| 8719 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8720 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8721 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 8723 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 8724 | if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then : |
| 8725 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8726 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8727 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8728 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8729 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8730 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 8731 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 |
| 8733 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } |
| 8734 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then : |
| 8735 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8736 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8737 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8738 | LIBS="-lcma $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8740 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8741 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8742 | /* Override any GCC internal prototype to avoid an error. |
| 8743 | Use char because int might match the return type of a GCC |
| 8744 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8745 | #ifdef __cplusplus |
| 8746 | extern "C" |
| 8747 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8748 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8749 | int |
| 8750 | main () |
| 8751 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8752 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8753 | ; |
| 8754 | return 0; |
| 8755 | } |
| 8756 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8757 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8758 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8759 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8760 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8761 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8762 | rm -f core conftest.err conftest.$ac_objext \ |
| 8763 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8764 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8765 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 8767 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } |
| 8768 | if test "x$ac_cv_lib_cma_pthread_create" = x""yes; then : |
| 8769 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8770 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 8771 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8772 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8773 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8774 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 8775 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8776 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 8777 | fi |
| 8778 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8779 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 8780 | fi |
| 8781 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 8782 | fi |
| 8783 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 8784 | fi |
| 8785 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 8786 | fi |
| 8787 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 8788 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8789 | fi |
| 8790 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8791 | |
| 8792 | fi |
| 8793 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8794 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8795 | rm -f core conftest.err conftest.$ac_objext \ |
| 8796 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8797 | fi |
| 8798 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8799 | fi |
| 8800 | |
| 8801 | |
| 8802 | fi |
| 8803 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8804 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8805 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 |
| 8807 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } |
| 8808 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then : |
| 8809 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8810 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8811 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8812 | LIBS="-lmpc $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8814 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8815 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8816 | /* Override any GCC internal prototype to avoid an error. |
| 8817 | Use char because int might match the return type of a GCC |
| 8818 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8819 | #ifdef __cplusplus |
| 8820 | extern "C" |
| 8821 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8822 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8823 | int |
| 8824 | main () |
| 8825 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8826 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8827 | ; |
| 8828 | return 0; |
| 8829 | } |
| 8830 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8831 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8832 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8833 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8834 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8835 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8836 | rm -f core conftest.err conftest.$ac_objext \ |
| 8837 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8838 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8839 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 8841 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } |
| 8842 | if test "x$ac_cv_lib_mpc_usconfig" = x""yes; then : |
| 8843 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8844 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8845 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8846 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8847 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8848 | fi |
| 8849 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8850 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 8851 | if test "$posix_threads" != "yes"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 |
| 8853 | $as_echo_n "checking for thr_create in -lthread... " >&6; } |
| 8854 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then : |
| 8855 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8856 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8857 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8858 | LIBS="-lthread $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8860 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8861 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8862 | /* Override any GCC internal prototype to avoid an error. |
| 8863 | Use char because int might match the return type of a GCC |
| 8864 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8865 | #ifdef __cplusplus |
| 8866 | extern "C" |
| 8867 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8868 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8869 | int |
| 8870 | main () |
| 8871 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8872 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8873 | ; |
| 8874 | return 0; |
| 8875 | } |
| 8876 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8877 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8878 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8879 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8880 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8881 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8882 | rm -f core conftest.err conftest.$ac_objext \ |
| 8883 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8884 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8885 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 |
| 8887 | $as_echo "$ac_cv_lib_thread_thr_create" >&6; } |
| 8888 | if test "x$ac_cv_lib_thread_thr_create" = x""yes; then : |
| 8889 | $as_echo "#define WITH_THREAD 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8890 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8891 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 8892 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8893 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8894 | fi |
| 8895 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 8896 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8897 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8898 | if test "$USE_THREAD_MODULE" != "#" |
| 8899 | then |
| 8900 | # If the above checks didn't disable threads, (at least) OSF1 |
| 8901 | # needs this '-threads' argument during linking. |
| 8902 | case $ac_sys_system in |
| 8903 | OSF1) LDLAST=-threads;; |
| 8904 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 8905 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8906 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8907 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8908 | if test "$posix_threads" = "yes"; then |
| 8909 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8910 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8911 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8912 | |
| 8913 | fi |
| 8914 | |
| 8915 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 8916 | case $ac_sys_system/$ac_sys_release in |
| 8917 | SunOS/5.6) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8918 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8919 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8920 | ;; |
| 8921 | SunOS/5.8) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8922 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8923 | |
| 8924 | ;; |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 8925 | AIX/5) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8926 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 8927 | |
| 8928 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8929 | esac |
| 8930 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 8932 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } |
| 8933 | if test "${ac_cv_pthread_system_supported+set}" = set; then : |
| 8934 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8935 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8936 | if test "$cross_compiling" = yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8937 | ac_cv_pthread_system_supported=no |
| 8938 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8940 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8941 | #include <pthread.h> |
| 8942 | void *foo(void *parm) { |
| 8943 | return NULL; |
| 8944 | } |
| 8945 | main() { |
| 8946 | pthread_attr_t attr; |
| 8947 | pthread_t id; |
| 8948 | if (pthread_attr_init(&attr)) exit(-1); |
| 8949 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 8950 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 8951 | exit(0); |
| 8952 | } |
| 8953 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8954 | if ac_fn_c_try_run "$LINENO"; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8955 | ac_cv_pthread_system_supported=yes |
| 8956 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8957 | ac_cv_pthread_system_supported=no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8958 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8959 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8960 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8961 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 8962 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8963 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8964 | fi |
| 8965 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 |
| 8967 | $as_echo "$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8968 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 8969 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8970 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8971 | |
| 8972 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8973 | for ac_func in pthread_sigmask |
| 8974 | do : |
| 8975 | ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" |
| 8976 | if test "x$ac_cv_func_pthread_sigmask" = x""yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8977 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8978 | #define HAVE_PTHREAD_SIGMASK 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8979 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8980 | case $ac_sys_system in |
| 8981 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8982 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8983 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 8984 | |
| 8985 | ;; |
| 8986 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8987 | fi |
| 8988 | done |
| 8989 | |
| 8990 | fi |
| 8991 | |
| 8992 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 8993 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8994 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |
| 8996 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8997 | # Check whether --enable-ipv6 was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 8998 | if test "${enable_ipv6+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8999 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9000 | no) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9002 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9003 | ipv6=no |
| 9004 | ;; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9005 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9006 | $as_echo "yes" >&6; } |
| 9007 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9008 | |
| 9009 | ipv6=yes |
| 9010 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9011 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9012 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9013 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9014 | if test "$cross_compiling" = yes; then : |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9015 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9017 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9018 | ipv6=no |
| 9019 | |
| 9020 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9022 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9023 | /* AF_INET6 available check */ |
| 9024 | #include <sys/types.h> |
| 9025 | #include <sys/socket.h> |
| 9026 | main() |
| 9027 | { |
| 9028 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 9029 | exit(1); |
| 9030 | else |
| 9031 | exit(0); |
| 9032 | } |
| 9033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9034 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9035 | if ac_fn_c_try_run "$LINENO"; then : |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9036 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9038 | $as_echo "yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9039 | ipv6=yes |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9040 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9041 | else |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9042 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9044 | $as_echo "no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9045 | ipv6=no |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9046 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9047 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9048 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9049 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9050 | fi |
| 9051 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9052 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9053 | if test "$ipv6" = "yes"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 |
| 9055 | $as_echo_n "checking if RFC2553 API is available... " >&6; } |
| 9056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9057 | /* end confdefs.h. */ |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9058 | |
| 9059 | #include <sys/types.h> |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9060 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9061 | int |
| 9062 | main () |
| 9063 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9064 | struct sockaddr_in6 x; |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9065 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9066 | ; |
| 9067 | return 0; |
| 9068 | } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9069 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9070 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9071 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9072 | |
| 9073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9074 | $as_echo "yes" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9075 | ipv6=yes |
| 9076 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9077 | else |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9078 | |
| 9079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9080 | $as_echo "no" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9081 | ipv6=no |
| 9082 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9083 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9084 | 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] | 9085 | fi |
| 9086 | |
| 9087 | if test "$ipv6" = "yes"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9088 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 9089 | |
| 9090 | fi |
| 9091 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9092 | fi |
| 9093 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9094 | |
| 9095 | ipv6type=unknown |
| 9096 | ipv6lib=none |
| 9097 | ipv6trylibc=no |
| 9098 | |
| 9099 | if test "$ipv6" = "yes"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 |
| 9101 | $as_echo_n "checking ipv6 stack type... " >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 9102 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 9103 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9104 | case $i in |
| 9105 | inria) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9107 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9108 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9109 | #include <netinet/in.h> |
| 9110 | #ifdef IPV6_INRIA_VERSION |
| 9111 | yes |
| 9112 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9113 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9114 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9115 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9116 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9117 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9118 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9119 | |
| 9120 | ;; |
| 9121 | kame) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9123 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9124 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9125 | #include <netinet/in.h> |
| 9126 | #ifdef __KAME__ |
| 9127 | yes |
| 9128 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9129 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9130 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9131 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9132 | ipv6type=$i; |
| 9133 | ipv6lib=inet6 |
| 9134 | ipv6libdir=/usr/local/v6/lib |
| 9135 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9136 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9137 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9138 | |
| 9139 | ;; |
| 9140 | linux-glibc) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9142 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9143 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9144 | #include <features.h> |
| 9145 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 9146 | yes |
| 9147 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9148 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9149 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9150 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9151 | ipv6type=$i; |
| 9152 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9153 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9154 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9155 | |
| 9156 | ;; |
| 9157 | linux-inet6) |
| 9158 | if test -d /usr/inet6; then |
| 9159 | ipv6type=$i |
| 9160 | ipv6lib=inet6 |
| 9161 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9162 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9163 | fi |
| 9164 | ;; |
| 9165 | solaris) |
| 9166 | if test -f /etc/netconfig; then |
| 9167 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 9168 | ipv6type=$i |
| 9169 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9170 | fi |
| 9171 | fi |
| 9172 | ;; |
| 9173 | toshiba) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9175 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9176 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9177 | #include <sys/param.h> |
| 9178 | #ifdef _TOSHIBA_INET6 |
| 9179 | yes |
| 9180 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9181 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9182 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9183 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9184 | ipv6type=$i; |
| 9185 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9186 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9187 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9188 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9189 | |
| 9190 | ;; |
| 9191 | v6d) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9193 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9194 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9195 | #include </usr/local/v6/include/sys/v6config.h> |
| 9196 | #ifdef __V6D__ |
| 9197 | yes |
| 9198 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9199 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9200 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9201 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9202 | ipv6type=$i; |
| 9203 | ipv6lib=v6; |
| 9204 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9205 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9206 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9207 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9208 | |
| 9209 | ;; |
| 9210 | zeta) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9212 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9213 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9214 | #include <sys/param.h> |
| 9215 | #ifdef _ZETA_MINAMI_INET6 |
| 9216 | yes |
| 9217 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9218 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9219 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9220 | $EGREP "yes" >/dev/null 2>&1; then : |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9221 | ipv6type=$i; |
| 9222 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 9223 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9224 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 9225 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9226 | |
| 9227 | ;; |
| 9228 | esac |
| 9229 | if test "$ipv6type" != "unknown"; then |
| 9230 | break |
| 9231 | fi |
| 9232 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 |
| 9234 | $as_echo "$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 9235 | fi |
| 9236 | |
| 9237 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 9238 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 9239 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 9240 | echo "using lib$ipv6lib" |
| 9241 | else |
| 9242 | if test $ipv6trylibc = "yes"; then |
| 9243 | echo "using libc" |
| 9244 | else |
| 9245 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 9246 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 9247 | echo 'ipv6 kit and compile beforehand.' |
| 9248 | exit 1 |
| 9249 | fi |
| 9250 | fi |
| 9251 | fi |
| 9252 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 |
| 9254 | $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } |
| 9255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9256 | /* end confdefs.h. */ |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9257 | |
| 9258 | #include <Carbon/Carbon.h> |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9259 | int |
| 9260 | main () |
| 9261 | { |
| 9262 | FSIORefNum fRef = 0 |
| 9263 | ; |
| 9264 | return 0; |
| 9265 | } |
Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 9266 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9267 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9268 | if ac_fn_c_try_compile "$LINENO"; then : |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9269 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9270 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9271 | $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9272 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9274 | $as_echo "yes" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9275 | |
Mark Dickinson | 0712b56 | 2010-05-08 19:13:21 +0000 | [diff] [blame] | 9276 | else |
| 9277 | |
| 9278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9279 | $as_echo "no" >&6; } |
| 9280 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9281 | fi |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 9282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9283 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9284 | # Check for --with-doc-strings |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 |
| 9286 | $as_echo_n "checking for --with-doc-strings... " >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9287 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9288 | # Check whether --with-doc-strings was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9289 | if test "${with_doc_strings+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9290 | withval=$with_doc_strings; |
| 9291 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9292 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9293 | |
| 9294 | if test -z "$with_doc_strings" |
| 9295 | then with_doc_strings="yes" |
| 9296 | fi |
| 9297 | if test "$with_doc_strings" != "no" |
| 9298 | then |
| 9299 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9300 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9301 | |
| 9302 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 |
| 9304 | $as_echo "$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 9305 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9306 | # Check for Python-specific malloc support |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 |
| 9308 | $as_echo_n "checking for --with-tsc... " >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9309 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9310 | # Check whether --with-tsc was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9311 | if test "${with_tsc+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9312 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9313 | if test "$withval" != no |
| 9314 | then |
| 9315 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9316 | $as_echo "#define WITH_TSC 1" >>confdefs.h |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9317 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9319 | $as_echo "yes" >&6; } |
| 9320 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9321 | $as_echo "no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9322 | fi |
| 9323 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9325 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9326 | fi |
| 9327 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 9328 | |
| 9329 | # Check for Python-specific malloc support |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 |
| 9331 | $as_echo_n "checking for --with-pymalloc... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9332 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9333 | # Check whether --with-pymalloc was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9334 | if test "${with_pymalloc+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9335 | withval=$with_pymalloc; |
| 9336 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9337 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 9338 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9339 | if test -z "$with_pymalloc" |
| 9340 | then with_pymalloc="yes" |
| 9341 | fi |
| 9342 | if test "$with_pymalloc" != "no" |
| 9343 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9344 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9345 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9346 | |
| 9347 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 |
| 9349 | $as_echo "$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 9350 | |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9351 | # Check for Valgrind support |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 |
| 9353 | $as_echo_n "checking for --with-valgrind... " >&6; } |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9354 | |
| 9355 | # Check whether --with-valgrind was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9356 | if test "${with_valgrind+set}" = set; then : |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9357 | withval=$with_valgrind; |
| 9358 | else |
| 9359 | with_valgrind=no |
| 9360 | fi |
| 9361 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 |
| 9363 | $as_echo "$with_valgrind" >&6; } |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9364 | if test "$with_valgrind" != no; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9365 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" |
| 9366 | if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then : |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9367 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9368 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9369 | |
| 9370 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9371 | as_fn_error "Valgrind support requested but headers not available" "$LINENO" 5 |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 9372 | |
| 9373 | fi |
| 9374 | |
| 9375 | |
| 9376 | fi |
| 9377 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9378 | # Check for --with-wctype-functions |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5 |
| 9380 | $as_echo_n "checking for --with-wctype-functions... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9381 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9382 | # Check whether --with-wctype-functions was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9383 | if test "${with_wctype_functions+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9384 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9385 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9386 | then |
| 9387 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9388 | $as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9389 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9391 | $as_echo "yes" >&6; } |
| 9392 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9393 | $as_echo "no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9394 | fi |
| 9395 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9397 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9398 | fi |
| 9399 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 9400 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9401 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9402 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 9403 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9404 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9405 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 9406 | # 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] | 9407 | for ac_func in dlopen |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9408 | do : |
| 9409 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 9410 | if test "x$ac_cv_func_dlopen" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9411 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9412 | #define HAVE_DLOPEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9413 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9414 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9415 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 9416 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9417 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9418 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9419 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 9420 | # loading of modules. |
| 9421 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 |
| 9423 | $as_echo_n "checking DYNLOADFILE... " >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9424 | if test -z "$DYNLOADFILE" |
| 9425 | then |
| 9426 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 9427 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 9428 | if test "$ac_cv_func_dlopen" = yes |
| 9429 | then DYNLOADFILE="dynload_shlib.o" |
| 9430 | else DYNLOADFILE="dynload_aix.o" |
| 9431 | fi |
| 9432 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9433 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 9434 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 9435 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 9436 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9437 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9438 | *) |
| 9439 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 9440 | # out any dynamic loading |
| 9441 | if test "$ac_cv_func_dlopen" = yes |
| 9442 | then DYNLOADFILE="dynload_shlib.o" |
| 9443 | else DYNLOADFILE="dynload_stub.o" |
| 9444 | fi |
| 9445 | ;; |
| 9446 | esac |
| 9447 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 |
| 9449 | $as_echo "$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9450 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 9451 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9452 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9453 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 9454 | |
| 9455 | fi |
| 9456 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9457 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 9458 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9459 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 |
| 9461 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9462 | if test -z "$MACHDEP_OBJS" |
| 9463 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9464 | MACHDEP_OBJS=$extra_machdep_objs |
| 9465 | else |
| 9466 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9467 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 |
| 9469 | $as_echo "MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 9470 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9471 | # checks for library functions |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 9472 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 9473 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 9474 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 9475 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 9476 | initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 9477 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 9478 | putenv readlink realpath \ |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 9479 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 9480 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 9481 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 9482 | setlocale setregid setreuid setresuid setresgid \ |
| 9483 | setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 9484 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 9485 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 9486 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9487 | do : |
| 9488 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9489 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9490 | eval as_val=\$$as_ac_var |
| 9491 | if test "x$as_val" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9492 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9493 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9494 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 9495 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9496 | fi |
| 9497 | done |
| 9498 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9499 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9500 | # For some functions, having a definition is not sufficient, since |
| 9501 | # we want to take their address. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 |
| 9503 | $as_echo_n "checking for chroot... " >&6; } |
| 9504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9505 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9506 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9507 | int |
| 9508 | main () |
| 9509 | { |
| 9510 | void *x=chroot |
| 9511 | ; |
| 9512 | return 0; |
| 9513 | } |
| 9514 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9515 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9516 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9517 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9518 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9520 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9521 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9523 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9524 | |
| 9525 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 |
| 9528 | $as_echo_n "checking for link... " >&6; } |
| 9529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9530 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9531 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9532 | int |
| 9533 | main () |
| 9534 | { |
| 9535 | void *x=link |
| 9536 | ; |
| 9537 | return 0; |
| 9538 | } |
| 9539 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9540 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9541 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9542 | $as_echo "#define HAVE_LINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9543 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9545 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9546 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9548 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9549 | |
| 9550 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 |
| 9553 | $as_echo_n "checking for symlink... " >&6; } |
| 9554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9555 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9556 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9557 | int |
| 9558 | main () |
| 9559 | { |
| 9560 | void *x=symlink |
| 9561 | ; |
| 9562 | return 0; |
| 9563 | } |
| 9564 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9565 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9566 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9567 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9568 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9570 | $as_echo "yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9571 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9573 | $as_echo "no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9574 | |
| 9575 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 |
| 9578 | $as_echo_n "checking for fchdir... " >&6; } |
| 9579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9580 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9581 | #include <unistd.h> |
| 9582 | int |
| 9583 | main () |
| 9584 | { |
| 9585 | void *x=fchdir |
| 9586 | ; |
| 9587 | return 0; |
| 9588 | } |
| 9589 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9590 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9591 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9592 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9593 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9595 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9596 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9598 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9599 | |
| 9600 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 |
| 9603 | $as_echo_n "checking for fsync... " >&6; } |
| 9604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9605 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9606 | #include <unistd.h> |
| 9607 | int |
| 9608 | main () |
| 9609 | { |
| 9610 | void *x=fsync |
| 9611 | ; |
| 9612 | return 0; |
| 9613 | } |
| 9614 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9615 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9616 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9617 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9618 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9620 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9621 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9623 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9624 | |
| 9625 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
| 9628 | $as_echo_n "checking for fdatasync... " >&6; } |
| 9629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9630 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9631 | #include <unistd.h> |
| 9632 | int |
| 9633 | main () |
| 9634 | { |
| 9635 | void *x=fdatasync |
| 9636 | ; |
| 9637 | return 0; |
| 9638 | } |
| 9639 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9640 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9641 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9642 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9643 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9645 | $as_echo "yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9646 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9648 | $as_echo "no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 9649 | |
| 9650 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 |
| 9653 | $as_echo_n "checking for epoll... " >&6; } |
| 9654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9655 | /* end confdefs.h. */ |
| 9656 | #include <sys/epoll.h> |
| 9657 | int |
| 9658 | main () |
| 9659 | { |
| 9660 | void *x=epoll_create |
| 9661 | ; |
| 9662 | return 0; |
| 9663 | } |
| 9664 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9665 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 9666 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9667 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9668 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9670 | $as_echo "yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9671 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9673 | $as_echo "no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9674 | |
| 9675 | fi |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 |
| 9678 | $as_echo_n "checking for kqueue... " >&6; } |
| 9679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9680 | /* end confdefs.h. */ |
| 9681 | |
| 9682 | #include <sys/types.h> |
| 9683 | #include <sys/event.h> |
| 9684 | |
| 9685 | int |
| 9686 | main () |
| 9687 | { |
| 9688 | int x=kqueue() |
| 9689 | ; |
| 9690 | return 0; |
| 9691 | } |
| 9692 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9693 | if ac_fn_c_try_compile "$LINENO"; then : |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9694 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9695 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9696 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9698 | $as_echo "yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9699 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9701 | $as_echo "no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9702 | |
| 9703 | fi |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 9704 | 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] | 9705 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 9706 | # functions ctermid_r, setgroups in the library, but no prototype |
| 9707 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 9708 | # address to avoid compiler warnings and potential miscompilations |
| 9709 | # because of the missing prototypes. |
| 9710 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 |
| 9712 | $as_echo_n "checking for ctermid_r... " >&6; } |
| 9713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9714 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9715 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9716 | #include <stdio.h> |
| 9717 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9718 | int |
| 9719 | main () |
| 9720 | { |
| 9721 | void* p = ctermid_r |
| 9722 | ; |
| 9723 | return 0; |
| 9724 | } |
| 9725 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9726 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9727 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9728 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9729 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9731 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9732 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9734 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 9735 | |
| 9736 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9738 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5 |
| 9740 | $as_echo_n "checking for flock... " >&6; } |
| 9741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9742 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9743 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9744 | #include <sys/file.h> |
| 9745 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9746 | int |
| 9747 | main () |
| 9748 | { |
| 9749 | void* p = flock |
| 9750 | ; |
| 9751 | return 0; |
| 9752 | } |
| 9753 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9754 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9755 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9756 | $as_echo "#define HAVE_FLOCK 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9757 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9759 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9760 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9762 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9763 | |
| 9764 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9766 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
| 9768 | $as_echo_n "checking for getpagesize... " >&6; } |
| 9769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9770 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9771 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9772 | #include <unistd.h> |
| 9773 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9774 | int |
| 9775 | main () |
| 9776 | { |
| 9777 | void* p = getpagesize |
| 9778 | ; |
| 9779 | return 0; |
| 9780 | } |
| 9781 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9782 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9783 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9784 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9785 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 9786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9787 | $as_echo "yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9788 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9790 | $as_echo "no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 9791 | |
| 9792 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9793 | 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] | 9794 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9795 | for ac_prog in true |
| 9796 | do |
| 9797 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9798 | set dummy $ac_prog; ac_word=$2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9800 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9801 | if test "${ac_cv_prog_TRUE+set}" = set; then : |
| 9802 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9803 | else |
| 9804 | if test -n "$TRUE"; then |
| 9805 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 9806 | else |
| 9807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9808 | for as_dir in $PATH |
| 9809 | do |
| 9810 | IFS=$as_save_IFS |
| 9811 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9812 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9813 | 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] | 9814 | ac_cv_prog_TRUE="$ac_prog" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9815 | $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] | 9816 | break 2 |
| 9817 | fi |
| 9818 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9819 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9820 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9821 | |
| 9822 | fi |
| 9823 | fi |
| 9824 | TRUE=$ac_cv_prog_TRUE |
| 9825 | if test -n "$TRUE"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 |
| 9827 | $as_echo "$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9828 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9830 | $as_echo "no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9831 | fi |
| 9832 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9833 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9834 | test -n "$TRUE" && break |
| 9835 | done |
| 9836 | test -n "$TRUE" || TRUE="/bin/true" |
| 9837 | |
| 9838 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 |
| 9840 | $as_echo_n "checking for inet_aton in -lc... " >&6; } |
| 9841 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then : |
| 9842 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9843 | else |
| 9844 | ac_check_lib_save_LIBS=$LIBS |
| 9845 | LIBS="-lc $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9847 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9848 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9849 | /* Override any GCC internal prototype to avoid an error. |
| 9850 | Use char because int might match the return type of a GCC |
| 9851 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9852 | #ifdef __cplusplus |
| 9853 | extern "C" |
| 9854 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9855 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9856 | int |
| 9857 | main () |
| 9858 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9859 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9860 | ; |
| 9861 | return 0; |
| 9862 | } |
| 9863 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9864 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9865 | ac_cv_lib_c_inet_aton=yes |
| 9866 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9867 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9868 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9869 | rm -f core conftest.err conftest.$ac_objext \ |
| 9870 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9871 | LIBS=$ac_check_lib_save_LIBS |
| 9872 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 |
| 9874 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } |
| 9875 | if test "x$ac_cv_lib_c_inet_aton" = x""yes; then : |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9876 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9877 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
| 9879 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } |
| 9880 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then : |
| 9881 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9882 | else |
| 9883 | ac_check_lib_save_LIBS=$LIBS |
| 9884 | LIBS="-lresolv $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9886 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9887 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9888 | /* Override any GCC internal prototype to avoid an error. |
| 9889 | Use char because int might match the return type of a GCC |
| 9890 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9891 | #ifdef __cplusplus |
| 9892 | extern "C" |
| 9893 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9894 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9895 | int |
| 9896 | main () |
| 9897 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9898 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9899 | ; |
| 9900 | return 0; |
| 9901 | } |
| 9902 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9903 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9904 | ac_cv_lib_resolv_inet_aton=yes |
| 9905 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9906 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9907 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9908 | rm -f core conftest.err conftest.$ac_objext \ |
| 9909 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9910 | LIBS=$ac_check_lib_save_LIBS |
| 9911 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 9913 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } |
| 9914 | if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then : |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 9915 | cat >>confdefs.h <<_ACEOF |
| 9916 | #define HAVE_LIBRESOLV 1 |
| 9917 | _ACEOF |
| 9918 | |
| 9919 | LIBS="-lresolv $LIBS" |
| 9920 | |
| 9921 | fi |
| 9922 | |
| 9923 | |
| 9924 | fi |
| 9925 | |
| 9926 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 9927 | # On Tru64, chflags seems to be present, but calling it will |
| 9928 | # exit Python |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 |
| 9930 | $as_echo_n "checking for chflags... " >&6; } |
| 9931 | if test "${ac_cv_have_chflags+set}" = set; then : |
| 9932 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 9933 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9934 | if test "$cross_compiling" = yes; then : |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 9935 | ac_cv_have_chflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 9936 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 9938 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 9939 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 9940 | #include <sys/stat.h> |
| 9941 | #include <unistd.h> |
| 9942 | int main(int argc, char*argv[]) |
| 9943 | { |
| 9944 | if(chflags(argv[0], 0) != 0) |
| 9945 | return 1; |
| 9946 | return 0; |
| 9947 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 9948 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 9949 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9950 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 9951 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9952 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9953 | ac_cv_have_chflags=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9954 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9955 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9956 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 9957 | fi |
| 9958 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9959 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 9960 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 |
| 9962 | $as_echo "$ac_cv_have_chflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 9963 | if test "$ac_cv_have_chflags" = cross ; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9964 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
| 9965 | if test "x$ac_cv_func_chflags" = x""yes; then : |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 9966 | ac_cv_have_chflags="yes" |
| 9967 | else |
| 9968 | ac_cv_have_chflags="no" |
| 9969 | fi |
| 9970 | |
| 9971 | fi |
| 9972 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 9973 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9974 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 9975 | |
| 9976 | fi |
| 9977 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 |
| 9979 | $as_echo_n "checking for lchflags... " >&6; } |
| 9980 | if test "${ac_cv_have_lchflags+set}" = set; then : |
| 9981 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 9982 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9983 | if test "$cross_compiling" = yes; then : |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 9984 | ac_cv_have_lchflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 9985 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 9987 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 9988 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 9989 | #include <sys/stat.h> |
| 9990 | #include <unistd.h> |
| 9991 | int main(int argc, char*argv[]) |
| 9992 | { |
| 9993 | if(lchflags(argv[0], 0) != 0) |
| 9994 | return 1; |
| 9995 | return 0; |
| 9996 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 9997 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 9998 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 9999 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10000 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10001 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10002 | ac_cv_have_lchflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 10003 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10004 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10005 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10006 | fi |
| 10007 | |
| 10008 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 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_have_lchflags" >&5 |
| 10011 | $as_echo "$ac_cv_have_lchflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10012 | if test "$ac_cv_have_lchflags" = cross ; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10013 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
| 10014 | if test "x$ac_cv_func_lchflags" = x""yes; then : |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 10015 | ac_cv_have_lchflags="yes" |
| 10016 | else |
| 10017 | ac_cv_have_lchflags="no" |
| 10018 | fi |
| 10019 | |
| 10020 | fi |
| 10021 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10022 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10023 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10024 | |
| 10025 | fi |
| 10026 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 10027 | case $ac_sys_system/$ac_sys_release in |
| 10028 | Darwin/*) |
| 10029 | _CUR_CFLAGS="${CFLAGS}" |
| 10030 | _CUR_LDFLAGS="${LDFLAGS}" |
| 10031 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 10032 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 10033 | ;; |
| 10034 | esac |
| 10035 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 |
| 10037 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } |
| 10038 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then : |
| 10039 | $as_echo_n "(cached) " >&6 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10040 | else |
| 10041 | ac_check_lib_save_LIBS=$LIBS |
| 10042 | LIBS="-lz $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10044 | /* end confdefs.h. */ |
| 10045 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10046 | /* Override any GCC internal prototype to avoid an error. |
| 10047 | Use char because int might match the return type of a GCC |
| 10048 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10049 | #ifdef __cplusplus |
| 10050 | extern "C" |
| 10051 | #endif |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10052 | char inflateCopy (); |
| 10053 | int |
| 10054 | main () |
| 10055 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10056 | return inflateCopy (); |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10057 | ; |
| 10058 | return 0; |
| 10059 | } |
| 10060 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10061 | if ac_fn_c_try_link "$LINENO"; then : |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10062 | ac_cv_lib_z_inflateCopy=yes |
| 10063 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10064 | ac_cv_lib_z_inflateCopy=no |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10065 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10066 | rm -f core conftest.err conftest.$ac_objext \ |
| 10067 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10068 | LIBS=$ac_check_lib_save_LIBS |
| 10069 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 10071 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } |
| 10072 | if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then : |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10073 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10074 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 10075 | |
| 10076 | fi |
| 10077 | |
| 10078 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 10079 | case $ac_sys_system/$ac_sys_release in |
| 10080 | Darwin/*) |
| 10081 | CFLAGS="${_CUR_CFLAGS}" |
| 10082 | LDFLAGS="${_CUR_LDFLAGS}" |
| 10083 | ;; |
| 10084 | esac |
| 10085 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 |
| 10087 | $as_echo_n "checking for hstrerror... " >&6; } |
| 10088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10089 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10090 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10091 | #include <netdb.h> |
| 10092 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10093 | int |
| 10094 | main () |
| 10095 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10096 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10097 | ; |
| 10098 | return 0; |
| 10099 | } |
| 10100 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10101 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10102 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10103 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10104 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10106 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10107 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10109 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10110 | |
| 10111 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10112 | rm -f core conftest.err conftest.$ac_objext \ |
| 10113 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10114 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 |
| 10116 | $as_echo_n "checking for inet_aton... " >&6; } |
| 10117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10118 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10119 | |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10120 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10121 | #include <sys/socket.h> |
| 10122 | #include <netinet/in.h> |
| 10123 | #include <arpa/inet.h> |
| 10124 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10125 | int |
| 10126 | main () |
| 10127 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 10128 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10129 | ; |
| 10130 | return 0; |
| 10131 | } |
| 10132 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10133 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10134 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10135 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10136 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10138 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10139 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10141 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10142 | |
| 10143 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10144 | rm -f core conftest.err conftest.$ac_objext \ |
| 10145 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10146 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 |
| 10148 | $as_echo_n "checking for inet_pton... " >&6; } |
| 10149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10150 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10151 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10152 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10153 | #include <sys/socket.h> |
| 10154 | #include <netinet/in.h> |
| 10155 | #include <arpa/inet.h> |
| 10156 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10157 | int |
| 10158 | main () |
| 10159 | { |
| 10160 | void* p = inet_pton |
| 10161 | ; |
| 10162 | return 0; |
| 10163 | } |
| 10164 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10165 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10166 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10167 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10168 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10170 | $as_echo "yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10171 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10173 | $as_echo "no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 10174 | |
| 10175 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10176 | 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] | 10177 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10178 | # 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] | 10179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 |
| 10180 | $as_echo_n "checking for setgroups... " >&6; } |
| 10181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10182 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10183 | |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 10184 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 10185 | #ifdef HAVE_GRP_H |
| 10186 | #include <grp.h> |
| 10187 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10188 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10189 | int |
| 10190 | main () |
| 10191 | { |
| 10192 | void* p = setgroups |
| 10193 | ; |
| 10194 | return 0; |
| 10195 | } |
| 10196 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10197 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10198 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10199 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10200 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10202 | $as_echo "yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10203 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10205 | $as_echo "no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 10206 | |
| 10207 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10208 | 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] | 10209 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10210 | # check for openpty and forkpty |
| 10211 | |
| 10212 | for ac_func in openpty |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10213 | do : |
| 10214 | ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" |
| 10215 | if test "x$ac_cv_func_openpty" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10216 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10217 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10218 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10219 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10220 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 |
| 10222 | $as_echo_n "checking for openpty in -lutil... " >&6; } |
| 10223 | if test "${ac_cv_lib_util_openpty+set}" = set; then : |
| 10224 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10225 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10226 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10227 | LIBS="-lutil $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10229 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10230 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10231 | /* Override any GCC internal prototype to avoid an error. |
| 10232 | Use char because int might match the return type of a GCC |
| 10233 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10234 | #ifdef __cplusplus |
| 10235 | extern "C" |
| 10236 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10237 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10238 | int |
| 10239 | main () |
| 10240 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10241 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10242 | ; |
| 10243 | return 0; |
| 10244 | } |
| 10245 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10246 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10247 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10248 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10249 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10250 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10251 | rm -f core conftest.err conftest.$ac_objext \ |
| 10252 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10253 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10254 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 |
| 10256 | $as_echo "$ac_cv_lib_util_openpty" >&6; } |
| 10257 | if test "x$ac_cv_lib_util_openpty" = x""yes; then : |
| 10258 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10259 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10260 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 |
| 10262 | $as_echo_n "checking for openpty in -lbsd... " >&6; } |
| 10263 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then : |
| 10264 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10265 | else |
| 10266 | ac_check_lib_save_LIBS=$LIBS |
| 10267 | LIBS="-lbsd $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10269 | /* end confdefs.h. */ |
| 10270 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10271 | /* Override any GCC internal prototype to avoid an error. |
| 10272 | Use char because int might match the return type of a GCC |
| 10273 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10274 | #ifdef __cplusplus |
| 10275 | extern "C" |
| 10276 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10277 | char openpty (); |
| 10278 | int |
| 10279 | main () |
| 10280 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10281 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10282 | ; |
| 10283 | return 0; |
| 10284 | } |
| 10285 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10286 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10287 | ac_cv_lib_bsd_openpty=yes |
| 10288 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10289 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10290 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10291 | rm -f core conftest.err conftest.$ac_objext \ |
| 10292 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10293 | LIBS=$ac_check_lib_save_LIBS |
| 10294 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 |
| 10296 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } |
| 10297 | if test "x$ac_cv_lib_bsd_openpty" = x""yes; then : |
| 10298 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10299 | LIBS="$LIBS -lbsd" |
| 10300 | fi |
| 10301 | |
| 10302 | |
| 10303 | fi |
| 10304 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10305 | |
| 10306 | fi |
| 10307 | done |
| 10308 | |
| 10309 | for ac_func in forkpty |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10310 | do : |
| 10311 | ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" |
| 10312 | if test "x$ac_cv_func_forkpty" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10313 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10314 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10315 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10316 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10317 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 |
| 10319 | $as_echo_n "checking for forkpty in -lutil... " >&6; } |
| 10320 | if test "${ac_cv_lib_util_forkpty+set}" = set; then : |
| 10321 | $as_echo_n "(cached) " >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10322 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10323 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10324 | LIBS="-lutil $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10326 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10327 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10328 | /* Override any GCC internal prototype to avoid an error. |
| 10329 | Use char because int might match the return type of a GCC |
| 10330 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10331 | #ifdef __cplusplus |
| 10332 | extern "C" |
| 10333 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10334 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10335 | int |
| 10336 | main () |
| 10337 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10338 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10339 | ; |
| 10340 | return 0; |
| 10341 | } |
| 10342 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10343 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10344 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10345 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10346 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10347 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10348 | rm -f core conftest.err conftest.$ac_objext \ |
| 10349 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10350 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10351 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 |
| 10353 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } |
| 10354 | if test "x$ac_cv_lib_util_forkpty" = x""yes; then : |
| 10355 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10356 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +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 forkpty in -lbsd" >&5 |
| 10359 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } |
| 10360 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then : |
| 10361 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10362 | else |
| 10363 | ac_check_lib_save_LIBS=$LIBS |
| 10364 | LIBS="-lbsd $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10366 | /* end confdefs.h. */ |
| 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 | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10371 | #ifdef __cplusplus |
| 10372 | extern "C" |
| 10373 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10374 | char forkpty (); |
| 10375 | int |
| 10376 | main () |
| 10377 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10378 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +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 | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10384 | ac_cv_lib_bsd_forkpty=yes |
| 10385 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10386 | ac_cv_lib_bsd_forkpty=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 | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10390 | LIBS=$ac_check_lib_save_LIBS |
| 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_bsd_forkpty" >&5 |
| 10393 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } |
| 10394 | if test "x$ac_cv_lib_bsd_forkpty" = x""yes; then : |
| 10395 | $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 10396 | LIBS="$LIBS -lbsd" |
| 10397 | fi |
| 10398 | |
| 10399 | |
| 10400 | fi |
| 10401 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10402 | |
| 10403 | fi |
| 10404 | done |
| 10405 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10406 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10407 | # Stuff for expat. |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10408 | for ac_func in memmove |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10409 | do : |
| 10410 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" |
| 10411 | if test "x$ac_cv_func_memmove" = x""yes; then : |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10412 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10413 | #define HAVE_MEMMOVE 1 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10414 | _ACEOF |
| 10415 | |
| 10416 | fi |
| 10417 | done |
| 10418 | |
| 10419 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10420 | # check for long file support functions |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 10421 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10422 | do : |
| 10423 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10424 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10425 | eval as_val=\$$as_ac_var |
| 10426 | if test "x$as_val" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10427 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10428 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10429 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10430 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10431 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10432 | done |
| 10433 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10434 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 10435 | for ac_func in dup2 getcwd strdup |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10436 | do : |
| 10437 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10438 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10439 | eval as_val=\$$as_ac_var |
| 10440 | if test "x$as_val" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10441 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10442 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10443 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10444 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10445 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10446 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10447 | *" $ac_func.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10448 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 10449 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10450 | esac |
| 10451 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10452 | fi |
| 10453 | done |
| 10454 | |
| 10455 | |
| 10456 | for ac_func in getpgrp |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10457 | do : |
| 10458 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
| 10459 | if test "x$ac_cv_func_getpgrp" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10460 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10461 | #define HAVE_GETPGRP 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10462 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10464 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10465 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10466 | int |
| 10467 | main () |
| 10468 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10469 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10470 | ; |
| 10471 | return 0; |
| 10472 | } |
| 10473 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10474 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10475 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10476 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10477 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10478 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10479 | 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] | 10480 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10481 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10482 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10483 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10484 | for ac_func in setpgrp |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10485 | do : |
| 10486 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" |
| 10487 | if test "x$ac_cv_func_setpgrp" = x""yes; then : |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10488 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10489 | #define HAVE_SETPGRP 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10490 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10492 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10493 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10494 | int |
| 10495 | main () |
| 10496 | { |
| 10497 | setpgrp(0,0); |
| 10498 | ; |
| 10499 | return 0; |
| 10500 | } |
| 10501 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10502 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10503 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10504 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10505 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10506 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 10508 | |
| 10509 | fi |
| 10510 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 10511 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10512 | for ac_func in gettimeofday |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10513 | do : |
| 10514 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
| 10515 | if test "x$ac_cv_func_gettimeofday" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10516 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10517 | #define HAVE_GETTIMEOFDAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10518 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10520 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10521 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10522 | int |
| 10523 | main () |
| 10524 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10525 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10526 | ; |
| 10527 | return 0; |
| 10528 | } |
| 10529 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10530 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10531 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10532 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10533 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10534 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10536 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10537 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10538 | 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] | 10539 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10540 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 10541 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10542 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10543 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 |
| 10545 | $as_echo_n "checking for major... " >&6; } |
| 10546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10547 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10548 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10549 | #if defined(MAJOR_IN_MKDEV) |
| 10550 | #include <sys/mkdev.h> |
| 10551 | #elif defined(MAJOR_IN_SYSMACROS) |
| 10552 | #include <sys/sysmacros.h> |
| 10553 | #else |
| 10554 | #include <sys/types.h> |
| 10555 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10556 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10557 | int |
| 10558 | main () |
| 10559 | { |
| 10560 | |
| 10561 | makedev(major(0),minor(0)); |
| 10562 | |
| 10563 | ; |
| 10564 | return 0; |
| 10565 | } |
| 10566 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10567 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10568 | |
| 10569 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10570 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10571 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10573 | $as_echo "yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10574 | |
| 10575 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10576 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10578 | $as_echo "no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 10579 | |
| 10580 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10581 | rm -f core conftest.err conftest.$ac_objext \ |
| 10582 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10583 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10584 | # 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] | 10585 | # for [no]getaddrinfo in netdb.h. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 |
| 10587 | $as_echo_n "checking for getaddrinfo... " >&6; } |
| 10588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10589 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10590 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10591 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10592 | #include <sys/socket.h> |
| 10593 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 10594 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10595 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10596 | int |
| 10597 | main () |
| 10598 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10599 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10600 | ; |
| 10601 | return 0; |
| 10602 | } |
| 10603 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10604 | if ac_fn_c_try_link "$LINENO"; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10605 | have_getaddrinfo=yes |
| 10606 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10607 | have_getaddrinfo=no |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10608 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10609 | rm -f core conftest.err conftest.$ac_objext \ |
| 10610 | conftest$ac_exeext conftest.$ac_ext |
| 10611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 |
| 10612 | $as_echo "$have_getaddrinfo" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10613 | if test $have_getaddrinfo = yes |
| 10614 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 |
| 10616 | $as_echo_n "checking getaddrinfo bug... " >&6; } |
| 10617 | if test "${ac_cv_buggy_getaddrinfo+set}" = set; then : |
| 10618 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10619 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10620 | if test "$cross_compiling" = yes; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10621 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10622 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10624 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10625 | |
| 10626 | #include <sys/types.h> |
| 10627 | #include <netdb.h> |
| 10628 | #include <string.h> |
| 10629 | #include <sys/socket.h> |
| 10630 | #include <netinet/in.h> |
| 10631 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10632 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10633 | { |
| 10634 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 10635 | struct addrinfo hints, *ai, *aitop; |
| 10636 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 10637 | |
| 10638 | for (passive = 0; passive <= 1; passive++) { |
| 10639 | memset(&hints, 0, sizeof(hints)); |
| 10640 | hints.ai_family = AF_UNSPEC; |
| 10641 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 10642 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 10643 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10644 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 10645 | (void)gai_strerror(gaierr); |
| 10646 | goto bad; |
| 10647 | } |
| 10648 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 10649 | if (ai->ai_addr == NULL || |
| 10650 | ai->ai_addrlen == 0 || |
| 10651 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 10652 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 10653 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 10654 | goto bad; |
| 10655 | } |
| 10656 | switch (ai->ai_family) { |
| 10657 | case AF_INET: |
| 10658 | if (strcmp(strport, "54321") != 0) { |
| 10659 | goto bad; |
| 10660 | } |
| 10661 | if (passive) { |
| 10662 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 10663 | goto bad; |
| 10664 | } |
| 10665 | } else { |
| 10666 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 10667 | goto bad; |
| 10668 | } |
| 10669 | } |
| 10670 | inet4++; |
| 10671 | break; |
| 10672 | case AF_INET6: |
| 10673 | if (strcmp(strport, "54321") != 0) { |
| 10674 | goto bad; |
| 10675 | } |
| 10676 | if (passive) { |
| 10677 | if (strcmp(straddr, "::") != 0) { |
| 10678 | goto bad; |
| 10679 | } |
| 10680 | } else { |
| 10681 | if (strcmp(straddr, "::1") != 0) { |
| 10682 | goto bad; |
| 10683 | } |
| 10684 | } |
| 10685 | inet6++; |
| 10686 | break; |
| 10687 | case AF_UNSPEC: |
| 10688 | goto bad; |
| 10689 | break; |
| 10690 | default: |
| 10691 | /* another family support? */ |
| 10692 | break; |
| 10693 | } |
| 10694 | } |
| 10695 | } |
| 10696 | |
| 10697 | if (!(inet4 == 0 || inet4 == 2)) |
| 10698 | goto bad; |
| 10699 | if (!(inet6 == 0 || inet6 == 2)) |
| 10700 | goto bad; |
| 10701 | |
| 10702 | if (aitop) |
| 10703 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10704 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10705 | |
| 10706 | bad: |
| 10707 | if (aitop) |
| 10708 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10709 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10710 | } |
| 10711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10712 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10713 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10714 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10715 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10716 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10717 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10718 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10719 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10720 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10721 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10722 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10723 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10724 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10725 | |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 10726 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 10727 | then |
| 10728 | if test $ipv6 = yes |
| 10729 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10730 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 10731 | echo ' or you can specify "--disable-ipv6"'. |
| 10732 | exit 1 |
| 10733 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10735 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10736 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 10737 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10738 | fi |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10739 | for ac_func in getnameinfo |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10740 | do : |
| 10741 | ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
| 10742 | if test "x$ac_cv_func_getnameinfo" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10743 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10744 | #define HAVE_GETNAMEINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10745 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10746 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 10747 | fi |
| 10748 | done |
| 10749 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10750 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10751 | # checks for structures |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 10753 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
| 10754 | if test "${ac_cv_header_time+set}" = set; then : |
| 10755 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10756 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10758 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10759 | #include <sys/types.h> |
| 10760 | #include <sys/time.h> |
| 10761 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10762 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10763 | int |
| 10764 | main () |
| 10765 | { |
| 10766 | if ((struct tm *) 0) |
| 10767 | return 0; |
| 10768 | ; |
| 10769 | return 0; |
| 10770 | } |
| 10771 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10772 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10773 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10774 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10775 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10776 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10778 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 10780 | $as_echo "$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10781 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10782 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10783 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10784 | |
| 10785 | fi |
| 10786 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 10788 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
| 10789 | if test "${ac_cv_struct_tm+set}" = set; then : |
| 10790 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10791 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10793 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10794 | #include <sys/types.h> |
| 10795 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10796 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10797 | int |
| 10798 | main () |
| 10799 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10800 | struct tm tm; |
| 10801 | int *p = &tm.tm_sec; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10802 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10803 | ; |
| 10804 | return 0; |
| 10805 | } |
| 10806 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10807 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10808 | ac_cv_struct_tm=time.h |
| 10809 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10810 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10811 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10813 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| 10815 | $as_echo "$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10816 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10817 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10818 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10819 | |
| 10820 | fi |
| 10821 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10822 | 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] | 10823 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10824 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10825 | " |
| 10826 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10827 | |
| 10828 | cat >>confdefs.h <<_ACEOF |
| 10829 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 10830 | _ACEOF |
| 10831 | |
| 10832 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10833 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10835 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 10836 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10837 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10838 | |
| 10839 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10840 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 10841 | " |
| 10842 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : |
| 10843 | ac_have_decl=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10844 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10845 | ac_have_decl=0 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10846 | fi |
| 10847 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10848 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10849 | #define HAVE_DECL_TZNAME $ac_have_decl |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10850 | _ACEOF |
| 10851 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 10853 | $as_echo_n "checking for tzname... " >&6; } |
| 10854 | if test "${ac_cv_var_tzname+set}" = set; then : |
| 10855 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10856 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10858 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10859 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10860 | #if !HAVE_DECL_TZNAME |
| 10861 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10862 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10864 | int |
| 10865 | main () |
| 10866 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10867 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10868 | ; |
| 10869 | return 0; |
| 10870 | } |
| 10871 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10872 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10873 | ac_cv_var_tzname=yes |
| 10874 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10875 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10876 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10877 | rm -f core conftest.err conftest.$ac_objext \ |
| 10878 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10879 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 10881 | $as_echo "$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10882 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10883 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10884 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10885 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10886 | fi |
| 10887 | fi |
| 10888 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10889 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
| 10890 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10891 | |
| 10892 | cat >>confdefs.h <<_ACEOF |
| 10893 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 10894 | _ACEOF |
| 10895 | |
| 10896 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10897 | fi |
| 10898 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10899 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
| 10900 | if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10901 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10902 | cat >>confdefs.h <<_ACEOF |
| 10903 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 10904 | _ACEOF |
| 10905 | |
| 10906 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10907 | fi |
| 10908 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10909 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" |
| 10910 | if test "x$ac_cv_member_struct_stat_st_flags" = x""yes; then : |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 10911 | |
| 10912 | cat >>confdefs.h <<_ACEOF |
| 10913 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 10914 | _ACEOF |
| 10915 | |
| 10916 | |
| 10917 | fi |
| 10918 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10919 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" |
| 10920 | if test "x$ac_cv_member_struct_stat_st_gen" = x""yes; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 10921 | |
| 10922 | cat >>confdefs.h <<_ACEOF |
| 10923 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 10924 | _ACEOF |
| 10925 | |
| 10926 | |
| 10927 | fi |
| 10928 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10929 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" |
| 10930 | if test "x$ac_cv_member_struct_stat_st_birthtime" = x""yes; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 10931 | |
| 10932 | cat >>confdefs.h <<_ACEOF |
| 10933 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 10934 | _ACEOF |
| 10935 | |
| 10936 | |
| 10937 | fi |
| 10938 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10939 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
| 10940 | if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 10941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10942 | cat >>confdefs.h <<_ACEOF |
| 10943 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 10944 | _ACEOF |
| 10945 | |
| 10946 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10947 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10948 | |
| 10949 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10950 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10951 | *" fileblocks.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10952 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 10953 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10954 | esac |
| 10955 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 10956 | fi |
| 10957 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10958 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10959 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 |
| 10961 | $as_echo_n "checking for time.h that defines altzone... " >&6; } |
| 10962 | if test "${ac_cv_header_time_altzone+set}" = set; then : |
| 10963 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10964 | else |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10965 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10967 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10968 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10969 | int |
| 10970 | main () |
| 10971 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10972 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10973 | ; |
| 10974 | return 0; |
| 10975 | } |
| 10976 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10977 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10978 | ac_cv_header_time_altzone=yes |
| 10979 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10980 | ac_cv_header_time_altzone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10981 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 10983 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10984 | fi |
| 10985 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 |
| 10987 | $as_echo "$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10988 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10989 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10990 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10991 | |
| 10992 | fi |
| 10993 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10994 | was_it_defined=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 10995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 10996 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } |
| 10997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10998 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10999 | |
| 11000 | #include <sys/types.h> |
| 11001 | #include <sys/select.h> |
| 11002 | #include <sys/time.h> |
| 11003 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11004 | int |
| 11005 | main () |
| 11006 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11007 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11008 | ; |
| 11009 | return 0; |
| 11010 | } |
| 11011 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11012 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11013 | |
| 11014 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11015 | $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] | 11016 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11017 | was_it_defined=yes |
| 11018 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11019 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 |
| 11022 | $as_echo "$was_it_defined" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11023 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 |
| 11025 | $as_echo_n "checking for addrinfo... " >&6; } |
| 11026 | if test "${ac_cv_struct_addrinfo+set}" = set; then : |
| 11027 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11028 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11030 | /* end confdefs.h. */ |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11031 | #include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11032 | int |
| 11033 | main () |
| 11034 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11035 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11036 | ; |
| 11037 | return 0; |
| 11038 | } |
| 11039 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11040 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11041 | ac_cv_struct_addrinfo=yes |
| 11042 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11043 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11044 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11046 | fi |
| 11047 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
| 11049 | $as_echo "$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11050 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11051 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11052 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11053 | |
| 11054 | fi |
| 11055 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 |
| 11057 | $as_echo_n "checking for sockaddr_storage... " >&6; } |
| 11058 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then : |
| 11059 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11060 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11062 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11063 | |
| 11064 | # include <sys/types.h> |
| 11065 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11066 | int |
| 11067 | main () |
| 11068 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11069 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11070 | ; |
| 11071 | return 0; |
| 11072 | } |
| 11073 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11074 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11075 | ac_cv_struct_sockaddr_storage=yes |
| 11076 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11077 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11078 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11080 | fi |
| 11081 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 11083 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11084 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11085 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11086 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11087 | |
| 11088 | fi |
| 11089 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11090 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11091 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| 11093 | $as_echo_n "checking whether char is unsigned... " >&6; } |
| 11094 | if test "${ac_cv_c_char_unsigned+set}" = set; then : |
| 11095 | $as_echo_n "(cached) " >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11096 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11098 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11099 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11100 | int |
| 11101 | main () |
| 11102 | { |
| 11103 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 11104 | test_array [0] = 0 |
| 11105 | |
| 11106 | ; |
| 11107 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11108 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11109 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11110 | if ac_fn_c_try_compile "$LINENO"; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11111 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11112 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11113 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11114 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11116 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
| 11118 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11119 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11120 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11121 | |
| 11122 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11123 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 11125 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
| 11126 | if test "${ac_cv_c_const+set}" = set; then : |
| 11127 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11128 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11130 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11132 | int |
| 11133 | main () |
| 11134 | { |
| 11135 | /* FIXME: Include the comments suggested by Paul. */ |
| 11136 | #ifndef __cplusplus |
| 11137 | /* Ultrix mips cc rejects this. */ |
| 11138 | typedef int charset[2]; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11139 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11140 | /* SunOS 4.1.1 cc rejects this. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11141 | char const *const *pcpcc; |
| 11142 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11143 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 11144 | struct point {int x, y;}; |
| 11145 | static struct point const zero = {0,0}; |
| 11146 | /* AIX XL C 1.02.0.0 rejects this. |
| 11147 | It does not let you subtract one const X* pointer from another in |
| 11148 | an arm of an if-expression whose if-part is not a constant |
| 11149 | expression */ |
| 11150 | const char *g = "string"; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11151 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11152 | /* HPUX 7.0 cc rejects these. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11153 | ++pcpcc; |
| 11154 | ppc = (char**) pcpcc; |
| 11155 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11156 | { /* SCO 3.2v4 cc rejects this. */ |
| 11157 | char *t; |
| 11158 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11160 | *t++ = 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11161 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11162 | } |
| 11163 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 11164 | int x[] = {25, 17}; |
| 11165 | const int *foo = &x[0]; |
| 11166 | ++foo; |
| 11167 | } |
| 11168 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 11169 | typedef const int *iptr; |
| 11170 | iptr p = 0; |
| 11171 | ++p; |
| 11172 | } |
| 11173 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 11174 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 11175 | struct s { int j; const int *ap[3]; }; |
| 11176 | struct s *b; b->j = 5; |
| 11177 | } |
| 11178 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 11179 | const int foo = 10; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11180 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11181 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11182 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11183 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11185 | ; |
| 11186 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11187 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11188 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11189 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11190 | ac_cv_c_const=yes |
| 11191 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11192 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11193 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11195 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 11197 | $as_echo "$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11198 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11199 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11200 | $as_echo "#define const /**/" >>confdefs.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11201 | |
| 11202 | fi |
| 11203 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11204 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11205 | works=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| 11207 | $as_echo_n "checking for working volatile... " >&6; } |
| 11208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11209 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11211 | int |
| 11212 | main () |
| 11213 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11214 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11215 | ; |
| 11216 | return 0; |
| 11217 | } |
| 11218 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11219 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11220 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11221 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11222 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11223 | $as_echo "#define volatile /**/" >>confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11224 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11225 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11226 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 11229 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11230 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11231 | works=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 |
| 11233 | $as_echo_n "checking for working signed char... " >&6; } |
| 11234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11235 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11236 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11237 | int |
| 11238 | main () |
| 11239 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11240 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11241 | ; |
| 11242 | return 0; |
| 11243 | } |
| 11244 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11245 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11246 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 11247 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11248 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11249 | $as_echo "#define signed /**/" >>confdefs.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11250 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11251 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11252 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 11255 | $as_echo "$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11256 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11257 | have_prototypes=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 |
| 11259 | $as_echo_n "checking for prototypes... " >&6; } |
| 11260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11261 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11262 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11263 | int |
| 11264 | main () |
| 11265 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11266 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11267 | ; |
| 11268 | return 0; |
| 11269 | } |
| 11270 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11271 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11272 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11273 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11274 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11275 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11276 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 |
| 11279 | $as_echo "$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11280 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11281 | works=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 |
| 11283 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } |
| 11284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11285 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11286 | |
| 11287 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11288 | int foo(int x, ...) { |
| 11289 | va_list va; |
| 11290 | va_start(va, x); |
| 11291 | va_arg(va, int); |
| 11292 | va_arg(va, char *); |
| 11293 | va_arg(va, double); |
| 11294 | return 0; |
| 11295 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11296 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11297 | int |
| 11298 | main () |
| 11299 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 11300 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11301 | ; |
| 11302 | return 0; |
| 11303 | } |
| 11304 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11305 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11306 | |
| 11307 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11308 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11309 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11310 | works=yes |
| 11311 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11312 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 |
| 11315 | $as_echo "$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11316 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11317 | # check for socketpair |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 |
| 11319 | $as_echo_n "checking for socketpair... " >&6; } |
| 11320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11321 | /* end confdefs.h. */ |
| 11322 | |
| 11323 | #include <sys/types.h> |
| 11324 | #include <sys/socket.h> |
| 11325 | |
| 11326 | int |
| 11327 | main () |
| 11328 | { |
| 11329 | void *x=socketpair |
| 11330 | ; |
| 11331 | return 0; |
| 11332 | } |
| 11333 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11334 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11335 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11336 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11337 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11339 | $as_echo "yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11340 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11342 | $as_echo "no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 11343 | |
| 11344 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11345 | 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] | 11346 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11347 | # check if sockaddr has sa_len member |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 |
| 11349 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } |
| 11350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11351 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11352 | #include <sys/types.h> |
| 11353 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11354 | int |
| 11355 | main () |
| 11356 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11357 | struct sockaddr x; |
| 11358 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11359 | ; |
| 11360 | return 0; |
| 11361 | } |
| 11362 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11363 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11365 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11366 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11367 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11368 | |
| 11369 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11371 | $as_echo "no" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11372 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 11373 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11374 | 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] | 11375 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11376 | va_list_is_array=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 |
| 11378 | $as_echo_n "checking whether va_list is an array... " >&6; } |
| 11379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11380 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11381 | |
| 11382 | #ifdef HAVE_STDARG_PROTOTYPES |
| 11383 | #include <stdarg.h> |
| 11384 | #else |
| 11385 | #include <varargs.h> |
| 11386 | #endif |
| 11387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11388 | int |
| 11389 | main () |
| 11390 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11391 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11392 | ; |
| 11393 | return 0; |
| 11394 | } |
| 11395 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11396 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11397 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11398 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11399 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11400 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11401 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11402 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11403 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11404 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11405 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 |
| 11408 | $as_echo "$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11409 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11410 | # 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] | 11411 | |
| 11412 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11413 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" |
| 11414 | if test "x$ac_cv_func_gethostbyname_r" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11415 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11416 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 11417 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 |
| 11419 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11420 | OLD_CFLAGS=$CFLAGS |
| 11421 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11423 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11424 | |
| 11425 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11426 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11427 | int |
| 11428 | main () |
| 11429 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11430 | |
| 11431 | char *name; |
| 11432 | struct hostent *he, *res; |
| 11433 | char buffer[2048]; |
| 11434 | int buflen = 2048; |
| 11435 | int h_errnop; |
| 11436 | |
| 11437 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11438 | |
| 11439 | ; |
| 11440 | return 0; |
| 11441 | } |
| 11442 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11443 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11444 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11445 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11446 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11447 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11448 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11449 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11451 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11452 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11453 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11454 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11456 | $as_echo "no" >&6; } |
| 11457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 |
| 11458 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } |
| 11459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11460 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11461 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11462 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11464 | int |
| 11465 | main () |
| 11466 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11467 | |
| 11468 | char *name; |
| 11469 | struct hostent *he; |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11470 | char buffer[2048]; |
| 11471 | int buflen = 2048; |
| 11472 | int h_errnop; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11473 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11474 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11475 | |
| 11476 | ; |
| 11477 | return 0; |
| 11478 | } |
| 11479 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11480 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11481 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11482 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 11483 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11484 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11485 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11486 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11488 | $as_echo "yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11489 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11490 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11491 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11493 | $as_echo "no" >&6; } |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 11494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 |
| 11495 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } |
| 11496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11497 | /* end confdefs.h. */ |
| 11498 | |
| 11499 | # include <netdb.h> |
| 11500 | |
| 11501 | int |
| 11502 | main () |
| 11503 | { |
| 11504 | |
| 11505 | char *name; |
| 11506 | struct hostent *he; |
| 11507 | struct hostent_data data; |
| 11508 | |
| 11509 | (void) gethostbyname_r(name, he, &data); |
| 11510 | |
| 11511 | ; |
| 11512 | return 0; |
| 11513 | } |
| 11514 | _ACEOF |
| 11515 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11516 | |
| 11517 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
| 11518 | |
| 11519 | |
| 11520 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h |
| 11521 | |
| 11522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11523 | $as_echo "yes" >&6; } |
| 11524 | |
| 11525 | else |
| 11526 | |
| 11527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11528 | $as_echo "no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11529 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11530 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11531 | 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] | 11532 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11533 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11534 | 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] | 11535 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11536 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11538 | CFLAGS=$OLD_CFLAGS |
| 11539 | |
| 11540 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11541 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11542 | for ac_func in gethostbyname |
| 11543 | do : |
| 11544 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
| 11545 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11546 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11547 | #define HAVE_GETHOSTBYNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11548 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11549 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11550 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11551 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11552 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11553 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 11554 | fi |
| 11555 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11556 | |
| 11557 | |
| 11558 | |
| 11559 | |
| 11560 | |
| 11561 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11562 | # checks for system services |
| 11563 | # (none yet) |
| 11564 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11565 | # Linux requires this for correct f.p. operations |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11566 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" |
| 11567 | if test "x$ac_cv_func___fpu_control" = x""yes; then : |
| 11568 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11569 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 |
| 11571 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } |
| 11572 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then : |
| 11573 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11574 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11575 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11576 | LIBS="-lieee $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11578 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11579 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11580 | /* Override any GCC internal prototype to avoid an error. |
| 11581 | Use char because int might match the return type of a GCC |
| 11582 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11583 | #ifdef __cplusplus |
| 11584 | extern "C" |
| 11585 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11586 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11587 | int |
| 11588 | main () |
| 11589 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11590 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11591 | ; |
| 11592 | return 0; |
| 11593 | } |
| 11594 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11595 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11596 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11597 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11598 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11599 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11600 | rm -f core conftest.err conftest.$ac_objext \ |
| 11601 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11602 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11603 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 11605 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } |
| 11606 | if test "x$ac_cv_lib_ieee___fpu_control" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11607 | cat >>confdefs.h <<_ACEOF |
| 11608 | #define HAVE_LIBIEEE 1 |
| 11609 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11610 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11611 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11612 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11613 | fi |
| 11614 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11615 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 11616 | fi |
| 11617 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11618 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11619 | # Check for --with-fpectl |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 |
| 11621 | $as_echo_n "checking for --with-fpectl... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11622 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11623 | # Check whether --with-fpectl was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11624 | if test "${with_fpectl+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11625 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11626 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11627 | then |
| 11628 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11629 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11630 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11632 | $as_echo "yes" >&6; } |
| 11633 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11634 | $as_echo "no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11635 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 11636 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11638 | $as_echo "no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11639 | fi |
| 11640 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11641 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11642 | # check for --with-libm=... |
| 11643 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11644 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 11645 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11646 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11647 | *) LIBM=-lm |
| 11648 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 |
| 11650 | $as_echo_n "checking for --with-libm=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11651 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11652 | # Check whether --with-libm was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11653 | if test "${with_libm+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11654 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11655 | if test "$withval" = no |
| 11656 | then LIBM= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 |
| 11658 | $as_echo "force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11659 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11660 | then LIBM=$withval |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 |
| 11662 | $as_echo "set LIBM=\"$withval\"" >&6; } |
| 11663 | 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] | 11664 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11665 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 |
| 11667 | $as_echo "default LIBM=\"$LIBM\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11668 | fi |
| 11669 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11670 | |
| 11671 | # check for --with-libc=... |
| 11672 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 |
| 11674 | $as_echo_n "checking for --with-libc=STRING... " >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11675 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11676 | # Check whether --with-libc was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11677 | if test "${with_libc+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11678 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11679 | if test "$withval" = no |
| 11680 | then LIBC= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 |
| 11682 | $as_echo "force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11683 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11684 | then LIBC=$withval |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 |
| 11686 | $as_echo "set LIBC=\"$withval\"" >&6; } |
| 11687 | 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] | 11688 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 11689 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 |
| 11691 | $as_echo "default LIBC=\"$LIBC\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11692 | fi |
| 11693 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11694 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11695 | # ************************************************** |
| 11696 | # * Check for various properties of floating point * |
| 11697 | # ************************************************** |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 11698 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 11700 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } |
| 11701 | if test "${ac_cv_little_endian_double+set}" = set; then : |
| 11702 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11703 | else |
| 11704 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11705 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11706 | ac_cv_little_endian_double=no |
| 11707 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11709 | /* end confdefs.h. */ |
| 11710 | |
| 11711 | #include <string.h> |
| 11712 | int main() { |
| 11713 | double x = 9006104071832581.0; |
| 11714 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 11715 | return 0; |
| 11716 | else |
| 11717 | return 1; |
| 11718 | } |
| 11719 | |
| 11720 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11721 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11722 | ac_cv_little_endian_double=yes |
| 11723 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11724 | ac_cv_little_endian_double=no |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11725 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11726 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11727 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11728 | fi |
| 11729 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11730 | fi |
| 11731 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 |
| 11733 | $as_echo "$ac_cv_little_endian_double" >&6; } |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11734 | if test "$ac_cv_little_endian_double" = yes |
| 11735 | then |
| 11736 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11737 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11738 | |
| 11739 | fi |
| 11740 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 11742 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } |
| 11743 | if test "${ac_cv_big_endian_double+set}" = set; then : |
| 11744 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11745 | else |
| 11746 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11747 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11748 | ac_cv_big_endian_double=no |
| 11749 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11751 | /* end confdefs.h. */ |
| 11752 | |
| 11753 | #include <string.h> |
| 11754 | int main() { |
| 11755 | double x = 9006104071832581.0; |
| 11756 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 11757 | return 0; |
| 11758 | else |
| 11759 | return 1; |
| 11760 | } |
| 11761 | |
| 11762 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11763 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11764 | ac_cv_big_endian_double=yes |
| 11765 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11766 | ac_cv_big_endian_double=no |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11767 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11768 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11769 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11770 | fi |
| 11771 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11772 | fi |
| 11773 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 |
| 11775 | $as_echo "$ac_cv_big_endian_double" >&6; } |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11776 | if test "$ac_cv_big_endian_double" = yes |
| 11777 | then |
| 11778 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11779 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11780 | |
| 11781 | fi |
| 11782 | |
| 11783 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 11784 | # While Python doesn't currently have full support for these platforms |
| 11785 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 11786 | # conversions work. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 11788 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } |
| 11789 | if test "${ac_cv_mixed_endian_double+set}" = set; then : |
| 11790 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11791 | else |
| 11792 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11793 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11794 | ac_cv_mixed_endian_double=no |
| 11795 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11797 | /* end confdefs.h. */ |
| 11798 | |
| 11799 | #include <string.h> |
| 11800 | int main() { |
| 11801 | double x = 9006104071832581.0; |
| 11802 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 11803 | return 0; |
| 11804 | else |
| 11805 | return 1; |
| 11806 | } |
| 11807 | |
| 11808 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11809 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11810 | ac_cv_mixed_endian_double=yes |
| 11811 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11812 | ac_cv_mixed_endian_double=no |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11813 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11814 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11815 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11816 | fi |
| 11817 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11818 | fi |
| 11819 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 |
| 11821 | $as_echo "$ac_cv_mixed_endian_double" >&6; } |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11822 | if test "$ac_cv_mixed_endian_double" = yes |
| 11823 | then |
| 11824 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11825 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11826 | |
| 11827 | fi |
| 11828 | |
| 11829 | # The short float repr introduced in Python 3.1 requires the |
| 11830 | # correctly-rounded string <-> double conversion functions from |
| 11831 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit |
| 11832 | # 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] | 11833 | # 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] | 11834 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 11835 | |
| 11836 | # This inline assembler syntax may also work for suncc and icc, |
| 11837 | # so we try it on all platforms. |
| 11838 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
| 11840 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } |
| 11841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11842 | /* end confdefs.h. */ |
| 11843 | |
| 11844 | int |
| 11845 | main () |
| 11846 | { |
| 11847 | |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 11848 | unsigned short cw; |
| 11849 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 11850 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11851 | |
| 11852 | ; |
| 11853 | return 0; |
| 11854 | } |
| 11855 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11856 | if ac_fn_c_try_compile "$LINENO"; then : |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11857 | have_gcc_asm_for_x87=yes |
| 11858 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11859 | have_gcc_asm_for_x87=no |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11860 | fi |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 |
| 11863 | $as_echo "$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 11864 | if test "$have_gcc_asm_for_x87" = yes |
| 11865 | then |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11866 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11867 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11868 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11869 | fi |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 11870 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 11871 | # Detect whether system arithmetic is subject to x87-style double |
| 11872 | # rounding issues. The result of this test has little meaning on non |
| 11873 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 11874 | # mode is round-to-nearest and double rounding issues are present, and |
| 11875 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 |
| 11877 | $as_echo_n "checking for x87-style double rounding... " >&6; } |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 11878 | # $BASECFLAGS may affect the result |
| 11879 | ac_save_cc="$CC" |
| 11880 | CC="$CC $BASECFLAGS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11881 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 11882 | ac_cv_x87_double_rounding=no |
| 11883 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 11885 | /* end confdefs.h. */ |
| 11886 | |
| 11887 | #include <stdlib.h> |
| 11888 | #include <math.h> |
| 11889 | int main() { |
| 11890 | volatile double x, y, z; |
| 11891 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 11892 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 11893 | y = 1./x; |
| 11894 | if (y != 1.) |
| 11895 | exit(0); |
| 11896 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 11897 | x = 1e16; |
| 11898 | y = 2.99999; |
| 11899 | z = x + y; |
| 11900 | if (z != 1e16+4.) |
| 11901 | exit(0); |
| 11902 | /* both tests show evidence of double rounding */ |
| 11903 | exit(1); |
| 11904 | } |
| 11905 | |
| 11906 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11907 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 11908 | ac_cv_x87_double_rounding=no |
| 11909 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11910 | ac_cv_x87_double_rounding=yes |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 11911 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11912 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11913 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 11914 | fi |
| 11915 | |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 11916 | CC="$ac_save_cc" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 |
| 11918 | $as_echo "$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 11919 | if test "$ac_cv_x87_double_rounding" = yes |
| 11920 | then |
| 11921 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11922 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 11923 | |
| 11924 | fi |
| 11925 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 11926 | # ************************************ |
| 11927 | # * Check for mathematical functions * |
| 11928 | # ************************************ |
| 11929 | |
| 11930 | LIBS_SAVE=$LIBS |
| 11931 | LIBS="$LIBS $LIBM" |
| 11932 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 11933 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 11934 | # -0. on some architectures. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 |
| 11936 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } |
| 11937 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then : |
| 11938 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 11939 | else |
| 11940 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11941 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 11942 | ac_cv_tanh_preserves_zero_sign=no |
| 11943 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 11945 | /* end confdefs.h. */ |
| 11946 | |
| 11947 | #include <math.h> |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 11948 | #include <stdlib.h> |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 11949 | int main() { |
| 11950 | /* return 0 if either negative zeros don't exist |
| 11951 | on this platform or if negative zeros exist |
| 11952 | and tanh(-0.) == -0. */ |
| 11953 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 11954 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 11955 | else exit(1); |
| 11956 | } |
| 11957 | |
| 11958 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11959 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 11960 | ac_cv_tanh_preserves_zero_sign=yes |
| 11961 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11962 | ac_cv_tanh_preserves_zero_sign=no |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 11963 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11964 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11965 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 11966 | fi |
| 11967 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 11968 | fi |
| 11969 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 11971 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 11972 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 11973 | then |
| 11974 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11975 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 11976 | |
| 11977 | fi |
| 11978 | |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 11979 | 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] | 11980 | do : |
| 11981 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11982 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11983 | eval as_val=\$$as_ac_var |
| 11984 | if test "x$as_val" = x""yes; then : |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 11985 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11986 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 11987 | _ACEOF |
| 11988 | |
| 11989 | fi |
| 11990 | done |
| 11991 | |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 11992 | for ac_func in hypot lgamma log1p round tgamma |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11993 | do : |
| 11994 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11995 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11996 | eval as_val=\$$as_ac_var |
| 11997 | if test "x$as_val" = x""yes; then : |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 11998 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 11999 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 12000 | _ACEOF |
| 12001 | |
| 12002 | fi |
| 12003 | done |
| 12004 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12005 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> |
| 12006 | " |
| 12007 | if test "x$ac_cv_have_decl_isinf" = x""yes; then : |
| 12008 | ac_have_decl=1 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12009 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12010 | ac_have_decl=0 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12011 | fi |
| 12012 | |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12013 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12014 | #define HAVE_DECL_ISINF $ac_have_decl |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12015 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12016 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> |
| 12017 | " |
| 12018 | if test "x$ac_cv_have_decl_isnan" = x""yes; then : |
| 12019 | ac_have_decl=1 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12020 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12021 | ac_have_decl=0 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12022 | fi |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12023 | |
| 12024 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12025 | #define HAVE_DECL_ISNAN $ac_have_decl |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12026 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12027 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> |
| 12028 | " |
| 12029 | if test "x$ac_cv_have_decl_isfinite" = x""yes; then : |
| 12030 | ac_have_decl=1 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12031 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12032 | ac_have_decl=0 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12033 | fi |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12034 | |
| 12035 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12036 | #define HAVE_DECL_ISFINITE $ac_have_decl |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 12037 | _ACEOF |
| 12038 | |
| 12039 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 12040 | LIBS=$LIBS_SAVE |
| 12041 | |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12042 | # For multiprocessing module, check that sem_open |
| 12043 | # actually works. For FreeBSD versions <= 7.2, |
| 12044 | # the kernel module that provides POSIX semaphores |
| 12045 | # isn't loaded by default, so an attempt to call |
| 12046 | # sem_open results in a 'Signal 12' error. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 |
| 12048 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } |
| 12049 | if test "${ac_cv_posix_semaphores_enabled+set}" = set; then : |
| 12050 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12051 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12052 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12053 | ac_cv_posix_semaphores_enabled=yes |
| 12054 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12056 | /* end confdefs.h. */ |
| 12057 | |
| 12058 | #include <unistd.h> |
| 12059 | #include <fcntl.h> |
| 12060 | #include <stdio.h> |
| 12061 | #include <semaphore.h> |
| 12062 | #include <sys/stat.h> |
| 12063 | |
| 12064 | int main(void) { |
| 12065 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 12066 | if (a == SEM_FAILED) { |
| 12067 | perror("sem_open"); |
| 12068 | return 1; |
| 12069 | } |
| 12070 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12071 | sem_unlink("/autoconf"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12072 | return 0; |
| 12073 | } |
| 12074 | |
| 12075 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12076 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12077 | ac_cv_posix_semaphores_enabled=yes |
| 12078 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12079 | ac_cv_posix_semaphores_enabled=no |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12080 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12081 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12082 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12083 | fi |
| 12084 | |
| 12085 | |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12086 | fi |
| 12087 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 12089 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12090 | if test $ac_cv_posix_semaphores_enabled = no |
| 12091 | then |
| 12092 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12093 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12094 | |
| 12095 | fi |
| 12096 | |
| 12097 | # Multiprocessing check for broken sem_getvalue |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 |
| 12099 | $as_echo_n "checking for broken sem_getvalue... " >&6; } |
| 12100 | if test "${ac_cv_broken_sem_getvalue+set}" = set; then : |
| 12101 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12102 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12103 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12104 | ac_cv_broken_sem_getvalue=yes |
| 12105 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12107 | /* end confdefs.h. */ |
| 12108 | |
| 12109 | #include <unistd.h> |
| 12110 | #include <fcntl.h> |
| 12111 | #include <stdio.h> |
| 12112 | #include <semaphore.h> |
| 12113 | #include <sys/stat.h> |
| 12114 | |
| 12115 | int main(void){ |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12116 | 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] | 12117 | int count; |
| 12118 | int res; |
| 12119 | if(a==SEM_FAILED){ |
| 12120 | perror("sem_open"); |
| 12121 | return 1; |
| 12122 | |
| 12123 | } |
| 12124 | res = sem_getvalue(a, &count); |
| 12125 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 12126 | sem_unlink("/autocftw"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12127 | return res==-1 ? 1 : 0; |
| 12128 | } |
| 12129 | |
| 12130 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12131 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12132 | ac_cv_broken_sem_getvalue=no |
| 12133 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12134 | ac_cv_broken_sem_getvalue=yes |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12135 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12136 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12137 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12138 | fi |
| 12139 | |
| 12140 | |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12141 | fi |
| 12142 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 |
| 12144 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12145 | if test $ac_cv_broken_sem_getvalue = yes |
| 12146 | then |
| 12147 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12148 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 12149 | |
| 12150 | fi |
| 12151 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12152 | # determine what size digit to use for Python's longs |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 |
| 12154 | $as_echo_n "checking digit size for Python's longs... " >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12155 | # Check whether --enable-big-digits was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12156 | if test "${enable_big_digits+set}" = set; then : |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12157 | enableval=$enable_big_digits; case $enable_big_digits in |
| 12158 | yes) |
| 12159 | enable_big_digits=30 ;; |
| 12160 | no) |
| 12161 | enable_big_digits=15 ;; |
| 12162 | 15|30) |
| 12163 | ;; |
| 12164 | *) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12165 | 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] | 12166 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 |
| 12168 | $as_echo "$enable_big_digits" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12169 | |
| 12170 | cat >>confdefs.h <<_ACEOF |
| 12171 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 12172 | _ACEOF |
| 12173 | |
| 12174 | |
| 12175 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 |
| 12177 | $as_echo "no value specified" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 12178 | fi |
| 12179 | |
| 12180 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12181 | # check for wchar.h |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12182 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
| 12183 | if test "x$ac_cv_header_wchar_h" = x""yes; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12184 | |
| 12185 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12186 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12187 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12188 | wchar_h="yes" |
| 12189 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12190 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12191 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12192 | |
| 12193 | fi |
| 12194 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12195 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12196 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12197 | # determine wchar_t size |
| 12198 | if test "$wchar_h" = yes |
| 12199 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12200 | # 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] | 12201 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12202 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12203 | # This bug is HP SR number 8606223364. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
| 12205 | $as_echo_n "checking size of wchar_t... " >&6; } |
| 12206 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then : |
| 12207 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12208 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12209 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> |
| 12210 | "; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12212 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12213 | if test "$ac_cv_type_wchar_t" = yes; then |
| 12214 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12215 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12216 | { as_fn_set_status 77 |
| 12217 | as_fn_error "cannot compute sizeof (wchar_t) |
| 12218 | See \`config.log' for more details." "$LINENO" 5; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12219 | else |
| 12220 | ac_cv_sizeof_wchar_t=0 |
| 12221 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12222 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12224 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
| 12226 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12227 | |
| 12228 | |
| 12229 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12230 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12231 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12232 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12233 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12234 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12235 | fi |
| 12236 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 |
| 12238 | $as_echo_n "checking for UCS-4 tcl... " >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12239 | have_ucs4_tcl=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12241 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12242 | |
| 12243 | #include <tcl.h> |
| 12244 | #if TCL_UTF_MAX != 6 |
| 12245 | # error "NOT UCS4_TCL" |
| 12246 | #endif |
| 12247 | int |
| 12248 | main () |
| 12249 | { |
| 12250 | |
| 12251 | ; |
| 12252 | return 0; |
| 12253 | } |
| 12254 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12255 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12256 | |
| 12257 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12258 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12259 | |
| 12260 | have_ucs4_tcl=yes |
| 12261 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12262 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 |
| 12265 | $as_echo "$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12266 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12267 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12268 | if test "$wchar_h" = yes |
| 12269 | then |
| 12270 | # check whether wchar_t is signed or not |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 |
| 12272 | $as_echo_n "checking whether wchar_t is signed... " >&6; } |
| 12273 | if test "${ac_cv_wchar_t_signed+set}" = set; then : |
| 12274 | $as_echo_n "(cached) " >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12275 | else |
| 12276 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12277 | if test "$cross_compiling" = yes; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12278 | ac_cv_wchar_t_signed=yes |
| 12279 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12281 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12282 | |
| 12283 | #include <wchar.h> |
| 12284 | int main() |
| 12285 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 12286 | /* Success: exit code 0 */ |
| 12287 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12288 | } |
| 12289 | |
| 12290 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12291 | if ac_fn_c_try_run "$LINENO"; then : |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12292 | ac_cv_wchar_t_signed=yes |
| 12293 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12294 | ac_cv_wchar_t_signed=no |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12295 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12296 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12297 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12298 | fi |
| 12299 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12300 | fi |
| 12301 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 |
| 12303 | $as_echo "$ac_cv_wchar_t_signed" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12304 | fi |
| 12305 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5 |
| 12307 | $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] | 12308 | # Check whether --enable-unicode was given. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12309 | if test "${enable_unicode+set}" = set; then : |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12310 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12311 | else |
| 12312 | enable_unicode=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12313 | fi |
| 12314 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12315 | |
| 12316 | if test $enable_unicode = yes |
| 12317 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 12318 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 12319 | case "$have_ucs4_tcl" in |
| 12320 | yes) enable_unicode="ucs4" |
| 12321 | ;; |
| 12322 | *) enable_unicode="ucs2" |
| 12323 | ;; |
| 12324 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12325 | fi |
| 12326 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 12327 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12328 | case "$enable_unicode" in |
| 12329 | ucs2) unicode_size="2" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12330 | $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12331 | |
| 12332 | ;; |
| 12333 | ucs4) unicode_size="4" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12334 | $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12335 | |
| 12336 | ;; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12337 | *) 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] | 12338 | esac |
| 12339 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12340 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12341 | |
| 12342 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12343 | if test "$enable_unicode" = "no" |
| 12344 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 12345 | UNICODE_OBJS="" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5 |
| 12347 | $as_echo "not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12348 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 12349 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12350 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12351 | $as_echo "#define Py_USING_UNICODE 1" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12352 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 12353 | |
| 12354 | # wchar_t is only usable if it maps to an unsigned type |
| 12355 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 12356 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12357 | then |
| 12358 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12359 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12360 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12361 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12362 | $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12363 | |
| 12364 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 12365 | then |
| 12366 | PY_UNICODE_TYPE="unsigned short" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12367 | $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12368 | |
| 12369 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 12370 | then |
| 12371 | PY_UNICODE_TYPE="unsigned long" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12372 | $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12373 | |
| 12374 | else |
| 12375 | PY_UNICODE_TYPE="no type found" |
| 12376 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 |
| 12378 | $as_echo "$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 12379 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12380 | |
| 12381 | # check for endianness |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 12383 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 12384 | if test "${ac_cv_c_bigendian+set}" = set; then : |
| 12385 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12386 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12387 | ac_cv_c_bigendian=unknown |
| 12388 | # See if we're dealing with a universal compiler. |
| 12389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12390 | /* end confdefs.h. */ |
| 12391 | #ifndef __APPLE_CC__ |
| 12392 | not a universal capable compiler |
| 12393 | #endif |
| 12394 | typedef int dummy; |
| 12395 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12396 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12397 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12398 | |
| 12399 | # Check for potential -arch flags. It is not universal unless |
| 12400 | # there are at least two -arch flags with different values. |
| 12401 | ac_arch= |
| 12402 | ac_prev= |
| 12403 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 12404 | if test -n "$ac_prev"; then |
| 12405 | case $ac_word in |
| 12406 | i?86 | x86_64 | ppc | ppc64) |
| 12407 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 12408 | ac_arch=$ac_word |
| 12409 | else |
| 12410 | ac_cv_c_bigendian=universal |
| 12411 | break |
| 12412 | fi |
| 12413 | ;; |
| 12414 | esac |
| 12415 | ac_prev= |
| 12416 | elif test "x$ac_word" = "x-arch"; then |
| 12417 | ac_prev=arch |
| 12418 | fi |
| 12419 | done |
| 12420 | fi |
| 12421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12422 | if test $ac_cv_c_bigendian = unknown; then |
| 12423 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 12424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12425 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12426 | #include <sys/types.h> |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12427 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12428 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12429 | int |
| 12430 | main () |
| 12431 | { |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12432 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 12433 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 12434 | && LITTLE_ENDIAN) |
| 12435 | bogus endian macros |
| 12436 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12437 | |
| 12438 | ; |
| 12439 | return 0; |
| 12440 | } |
| 12441 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12442 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12443 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12445 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12446 | #include <sys/types.h> |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12447 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12448 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12449 | int |
| 12450 | main () |
| 12451 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12452 | #if BYTE_ORDER != BIG_ENDIAN |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12453 | not big endian |
| 12454 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12455 | |
| 12456 | ; |
| 12457 | return 0; |
| 12458 | } |
| 12459 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12460 | if ac_fn_c_try_compile "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12461 | ac_cv_c_bigendian=yes |
| 12462 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12463 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12464 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12466 | fi |
| 12467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12468 | fi |
| 12469 | if test $ac_cv_c_bigendian = unknown; then |
| 12470 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 12471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12472 | /* end confdefs.h. */ |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12473 | #include <limits.h> |
| 12474 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12475 | int |
| 12476 | main () |
| 12477 | { |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12478 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 12479 | bogus endian macros |
| 12480 | #endif |
| 12481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12482 | ; |
| 12483 | return 0; |
| 12484 | } |
| 12485 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12486 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12487 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 12488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12489 | /* end confdefs.h. */ |
| 12490 | #include <limits.h> |
| 12491 | |
| 12492 | int |
| 12493 | main () |
| 12494 | { |
| 12495 | #ifndef _BIG_ENDIAN |
| 12496 | not big endian |
| 12497 | #endif |
| 12498 | |
| 12499 | ; |
| 12500 | return 0; |
| 12501 | } |
| 12502 | _ACEOF |
| 12503 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12504 | ac_cv_c_bigendian=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 12505 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12506 | ac_cv_c_bigendian=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12507 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12509 | fi |
| 12510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12511 | fi |
| 12512 | if test $ac_cv_c_bigendian = unknown; then |
| 12513 | # Compile a test program. |
| 12514 | if test "$cross_compiling" = yes; then : |
| 12515 | # Try to guess by grepping values from an object file. |
| 12516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12517 | /* end confdefs.h. */ |
| 12518 | short int ascii_mm[] = |
| 12519 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 12520 | short int ascii_ii[] = |
| 12521 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 12522 | int use_ascii (int i) { |
| 12523 | return ascii_mm[i] + ascii_ii[i]; |
| 12524 | } |
| 12525 | short int ebcdic_ii[] = |
| 12526 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 12527 | short int ebcdic_mm[] = |
| 12528 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 12529 | int use_ebcdic (int i) { |
| 12530 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 12531 | } |
| 12532 | extern int foo; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12533 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12534 | int |
| 12535 | main () |
| 12536 | { |
| 12537 | return use_ascii (foo) == use_ebcdic (foo); |
| 12538 | ; |
| 12539 | return 0; |
| 12540 | } |
| 12541 | _ACEOF |
| 12542 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12543 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 12544 | ac_cv_c_bigendian=yes |
| 12545 | fi |
| 12546 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 12547 | if test "$ac_cv_c_bigendian" = unknown; then |
| 12548 | ac_cv_c_bigendian=no |
| 12549 | else |
| 12550 | # finding both strings is unlikely to happen, but who knows? |
| 12551 | ac_cv_c_bigendian=unknown |
| 12552 | fi |
| 12553 | fi |
| 12554 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12555 | 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] | 12556 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12558 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12559 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12560 | int |
| 12561 | main () |
| 12562 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12563 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12564 | /* Are we little or big endian? From Harbison&Steele. */ |
| 12565 | union |
| 12566 | { |
| 12567 | long int l; |
| 12568 | char c[sizeof (long int)]; |
| 12569 | } u; |
| 12570 | u.l = 1; |
| 12571 | return u.c[sizeof (long int) - 1] == 1; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12572 | |
| 12573 | ; |
| 12574 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12575 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12576 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12577 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12578 | ac_cv_c_bigendian=no |
| 12579 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12580 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12581 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12582 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12583 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12584 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12585 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12586 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12587 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 12589 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 12590 | case $ac_cv_c_bigendian in #( |
| 12591 | yes) |
| 12592 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 12593 | ;; #( |
| 12594 | no) |
| 12595 | ;; #( |
| 12596 | universal) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12597 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12598 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 12599 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12600 | ;; #( |
| 12601 | *) |
| 12602 | as_fn_error "unknown endianness |
| 12603 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 12604 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 12605 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12606 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12607 | # Check whether right shifting a negative integer extends the sign bit |
| 12608 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 |
| 12610 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } |
| 12611 | if test "${ac_cv_rshift_extends_sign+set}" = set; then : |
| 12612 | $as_echo_n "(cached) " >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12613 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12614 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12615 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12616 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12617 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12619 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12620 | |
| 12621 | int main() |
| 12622 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12623 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12624 | } |
| 12625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12626 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12627 | if ac_fn_c_try_run "$LINENO"; then : |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12628 | ac_cv_rshift_extends_sign=yes |
| 12629 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12630 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12631 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12632 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12633 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12634 | fi |
| 12635 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12636 | fi |
| 12637 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 |
| 12639 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 12640 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12641 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12642 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12643 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12644 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12645 | fi |
| 12646 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12647 | # check for getc_unlocked and related locking functions |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 |
| 12649 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } |
| 12650 | if test "${ac_cv_have_getc_unlocked+set}" = set; then : |
| 12651 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12652 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12653 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12655 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12656 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12657 | int |
| 12658 | main () |
| 12659 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12660 | |
| 12661 | FILE *f = fopen("/dev/null", "r"); |
| 12662 | flockfile(f); |
| 12663 | getc_unlocked(f); |
| 12664 | funlockfile(f); |
| 12665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12666 | ; |
| 12667 | return 0; |
| 12668 | } |
| 12669 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12670 | if ac_fn_c_try_link "$LINENO"; then : |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12671 | ac_cv_have_getc_unlocked=yes |
| 12672 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12673 | ac_cv_have_getc_unlocked=no |
| 12674 | fi |
| 12675 | rm -f core conftest.err conftest.$ac_objext \ |
| 12676 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12677 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12678 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 |
| 12680 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12681 | if test "$ac_cv_have_getc_unlocked" = yes |
| 12682 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12683 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12684 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 12685 | |
| 12686 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 12687 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12688 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 12689 | # save the value of LIBS so we don't actually link Python with readline |
| 12690 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12691 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12692 | # On some systems we need to link readline to a termcap compatible |
| 12693 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 12694 | # with setup.py. |
| 12695 | py_cv_lib_readline=no |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 |
| 12697 | $as_echo_n "checking how to link readline libs... " >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12698 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 12699 | if test -z "$py_libtermcap"; then |
| 12700 | READLINE_LIBS="-lreadline" |
| 12701 | else |
| 12702 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 12703 | fi |
| 12704 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12706 | /* end confdefs.h. */ |
| 12707 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12708 | /* Override any GCC internal prototype to avoid an error. |
| 12709 | Use char because int might match the return type of a GCC |
| 12710 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12711 | #ifdef __cplusplus |
| 12712 | extern "C" |
| 12713 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12714 | char readline (); |
| 12715 | int |
| 12716 | main () |
| 12717 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12718 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12719 | ; |
| 12720 | return 0; |
| 12721 | } |
| 12722 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12723 | if ac_fn_c_try_link "$LINENO"; then : |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12724 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12725 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12726 | rm -f core conftest.err conftest.$ac_objext \ |
| 12727 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12728 | if test $py_cv_lib_readline = yes; then |
| 12729 | break |
| 12730 | fi |
| 12731 | done |
| 12732 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 12733 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 12734 | if test $py_cv_lib_readline = no; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 12736 | $as_echo "none" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12737 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 |
| 12739 | $as_echo "$READLINE_LIBS" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 12740 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12741 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12742 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 12743 | fi |
| 12744 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12745 | # check for readline 2.1 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 |
| 12747 | $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } |
| 12748 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then : |
| 12749 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12750 | else |
| 12751 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 12752 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12754 | /* end confdefs.h. */ |
| 12755 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12756 | /* Override any GCC internal prototype to avoid an error. |
| 12757 | Use char because int might match the return type of a GCC |
| 12758 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12759 | #ifdef __cplusplus |
| 12760 | extern "C" |
| 12761 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12762 | char rl_callback_handler_install (); |
| 12763 | int |
| 12764 | main () |
| 12765 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12766 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12767 | ; |
| 12768 | return 0; |
| 12769 | } |
| 12770 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12771 | if ac_fn_c_try_link "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12772 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 12773 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12774 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12775 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12776 | rm -f core conftest.err conftest.$ac_objext \ |
| 12777 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12778 | LIBS=$ac_check_lib_save_LIBS |
| 12779 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 12781 | $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
| 12782 | if test "x$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12783 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12784 | $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12785 | |
| 12786 | fi |
| 12787 | |
| 12788 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12789 | # check for readline 2.2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12791 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12792 | #include <readline/readline.h> |
| 12793 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12794 | if ac_fn_c_try_cpp "$LINENO"; then : |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12795 | have_readline=yes |
| 12796 | else |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12797 | have_readline=no |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12798 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12799 | fi |
| 12800 | rm -f conftest.err conftest.$ac_ext |
| 12801 | if test $have_readline = yes |
| 12802 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12804 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12805 | #include <readline/readline.h> |
| 12806 | |
| 12807 | _ACEOF |
| 12808 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12809 | $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] | 12810 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12811 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12812 | |
| 12813 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 12814 | rm -f conftest* |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 12815 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 12817 | /* end confdefs.h. */ |
| 12818 | #include <readline/readline.h> |
| 12819 | |
| 12820 | _ACEOF |
| 12821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12822 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 12823 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12824 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 12825 | |
| 12826 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 12827 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 12828 | |
| 12829 | fi |
| 12830 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12831 | # check for readline 4.0 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 |
| 12833 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } |
| 12834 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then : |
| 12835 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12836 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12837 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 12838 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12840 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12841 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12842 | /* Override any GCC internal prototype to avoid an error. |
| 12843 | Use char because int might match the return type of a GCC |
| 12844 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12845 | #ifdef __cplusplus |
| 12846 | extern "C" |
| 12847 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12848 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12849 | int |
| 12850 | main () |
| 12851 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12852 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12853 | ; |
| 12854 | return 0; |
| 12855 | } |
| 12856 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12857 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12858 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12859 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12860 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12861 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12862 | rm -f core conftest.err conftest.$ac_objext \ |
| 12863 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12864 | LIBS=$ac_check_lib_save_LIBS |
| 12865 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 12867 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
| 12868 | if test "x$ac_cv_lib_readline_rl_pre_input_hook" = x""yes; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12869 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12870 | $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] | 12871 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12872 | fi |
| 12873 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12874 | |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 12875 | # also in 4.0 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 12877 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } |
| 12878 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then : |
| 12879 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 12880 | else |
| 12881 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 12882 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 12884 | /* end confdefs.h. */ |
| 12885 | |
| 12886 | /* Override any GCC internal prototype to avoid an error. |
| 12887 | Use char because int might match the return type of a GCC |
| 12888 | builtin and then its argument prototype would still apply. */ |
| 12889 | #ifdef __cplusplus |
| 12890 | extern "C" |
| 12891 | #endif |
| 12892 | char rl_completion_display_matches_hook (); |
| 12893 | int |
| 12894 | main () |
| 12895 | { |
| 12896 | return rl_completion_display_matches_hook (); |
| 12897 | ; |
| 12898 | return 0; |
| 12899 | } |
| 12900 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12901 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 12902 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 12903 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12904 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 12905 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12906 | rm -f core conftest.err conftest.$ac_objext \ |
| 12907 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 12908 | LIBS=$ac_check_lib_save_LIBS |
| 12909 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 12911 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 12912 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = x""yes; then : |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 12913 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12914 | $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] | 12915 | |
| 12916 | fi |
| 12917 | |
| 12918 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12919 | # check for readline 4.2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 |
| 12921 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } |
| 12922 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then : |
| 12923 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 12924 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12925 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 12926 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12928 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12929 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12930 | /* Override any GCC internal prototype to avoid an error. |
| 12931 | Use char because int might match the return type of a GCC |
| 12932 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12933 | #ifdef __cplusplus |
| 12934 | extern "C" |
| 12935 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12936 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12937 | int |
| 12938 | main () |
| 12939 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12940 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12941 | ; |
| 12942 | return 0; |
| 12943 | } |
| 12944 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12945 | if ac_fn_c_try_link "$LINENO"; then : |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12946 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12947 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12948 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12949 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12950 | rm -f core conftest.err conftest.$ac_objext \ |
| 12951 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12952 | LIBS=$ac_check_lib_save_LIBS |
| 12953 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 12955 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } |
| 12956 | if test "x$ac_cv_lib_readline_rl_completion_matches" = x""yes; then : |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12957 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12958 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12959 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 12960 | fi |
| 12961 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12962 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12963 | # also in readline 4.2 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12965 | /* end confdefs.h. */ |
| 12966 | #include <readline/readline.h> |
| 12967 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12968 | if ac_fn_c_try_cpp "$LINENO"; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12969 | have_readline=yes |
| 12970 | else |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12971 | have_readline=no |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 12972 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12973 | fi |
| 12974 | rm -f conftest.err conftest.$ac_ext |
| 12975 | if test $have_readline = yes |
| 12976 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12978 | /* end confdefs.h. */ |
| 12979 | #include <readline/readline.h> |
| 12980 | |
| 12981 | _ACEOF |
| 12982 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12983 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12984 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12985 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12986 | |
| 12987 | fi |
Marc-André Lemburg | 6d5e579 | 2010-04-30 17:20:14 +0000 | [diff] [blame] | 12988 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12989 | |
| 12990 | fi |
| 12991 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 12992 | # End of readline checks: restore LIBS |
| 12993 | LIBS=$LIBS_no_readline |
| 12994 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 12995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 |
| 12996 | $as_echo_n "checking for broken nice()... " >&6; } |
| 12997 | if test "${ac_cv_broken_nice+set}" = set; then : |
| 12998 | $as_echo_n "(cached) " >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12999 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13000 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13001 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13002 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13003 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13005 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13006 | |
| 13007 | int main() |
| 13008 | { |
| 13009 | int val1 = nice(1); |
| 13010 | if (val1 != -1 && val1 == nice(2)) |
| 13011 | exit(0); |
| 13012 | exit(1); |
| 13013 | } |
| 13014 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13015 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13016 | if ac_fn_c_try_run "$LINENO"; then : |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13017 | ac_cv_broken_nice=yes |
| 13018 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13019 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13020 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13021 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13022 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13023 | fi |
| 13024 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13025 | fi |
| 13026 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 |
| 13028 | $as_echo "$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13029 | if test "$ac_cv_broken_nice" = yes |
| 13030 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13031 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13032 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 13033 | |
| 13034 | fi |
| 13035 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 |
| 13037 | $as_echo_n "checking for broken poll()... " >&6; } |
| 13038 | if test "${ac_cv_broken_poll+set}" = set; then : |
| 13039 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13040 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13041 | if test "$cross_compiling" = yes; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13042 | ac_cv_broken_poll=no |
| 13043 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13045 | /* end confdefs.h. */ |
| 13046 | |
| 13047 | #include <poll.h> |
| 13048 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13049 | int main() |
| 13050 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13051 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13052 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13053 | |
| 13054 | close (42); |
| 13055 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13056 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13057 | if (poll_test < 0) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13058 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13059 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13060 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13061 | else |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13062 | return 1; |
| 13063 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13064 | |
| 13065 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13066 | if ac_fn_c_try_run "$LINENO"; then : |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13067 | ac_cv_broken_poll=yes |
| 13068 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13069 | ac_cv_broken_poll=no |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13070 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13071 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13072 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13073 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13074 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13075 | fi |
| 13076 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 |
| 13078 | $as_echo "$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13079 | if test "$ac_cv_broken_poll" = yes |
| 13080 | then |
| 13081 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13082 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13083 | |
| 13084 | fi |
| 13085 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13086 | # 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] | 13087 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 13088 | # tzname[] |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13089 | 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] | 13090 | #include <$ac_cv_struct_tm> |
| 13091 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13092 | " |
| 13093 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13094 | |
| 13095 | cat >>confdefs.h <<_ACEOF |
| 13096 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 13097 | _ACEOF |
| 13098 | |
| 13099 | |
| 13100 | fi |
| 13101 | |
| 13102 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 13103 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13104 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13105 | |
| 13106 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13107 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 13108 | " |
| 13109 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : |
| 13110 | ac_have_decl=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13111 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13112 | ac_have_decl=0 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13113 | fi |
| 13114 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13115 | cat >>confdefs.h <<_ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13116 | #define HAVE_DECL_TZNAME $ac_have_decl |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13117 | _ACEOF |
| 13118 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 13120 | $as_echo_n "checking for tzname... " >&6; } |
| 13121 | if test "${ac_cv_var_tzname+set}" = set; then : |
| 13122 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13123 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13125 | /* end confdefs.h. */ |
| 13126 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13127 | #if !HAVE_DECL_TZNAME |
| 13128 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13129 | #endif |
| 13130 | |
| 13131 | int |
| 13132 | main () |
| 13133 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13134 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13135 | ; |
| 13136 | return 0; |
| 13137 | } |
| 13138 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13139 | if ac_fn_c_try_link "$LINENO"; then : |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13140 | ac_cv_var_tzname=yes |
| 13141 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13142 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13143 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13144 | rm -f core conftest.err conftest.$ac_objext \ |
| 13145 | conftest$ac_exeext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13146 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 13148 | $as_echo "$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13149 | if test $ac_cv_var_tzname = yes; then |
| 13150 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13151 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13152 | |
| 13153 | fi |
| 13154 | fi |
| 13155 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 13156 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13157 | # check tzset(3) exists and works like we expect it to |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 |
| 13159 | $as_echo_n "checking for working tzset()... " >&6; } |
| 13160 | if test "${ac_cv_working_tzset+set}" = set; then : |
| 13161 | $as_echo_n "(cached) " >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13162 | else |
| 13163 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13164 | if test "$cross_compiling" = yes; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13165 | ac_cv_working_tzset=no |
| 13166 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13168 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13169 | |
| 13170 | #include <stdlib.h> |
| 13171 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13172 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13173 | |
| 13174 | #if HAVE_TZNAME |
| 13175 | extern char *tzname[]; |
| 13176 | #endif |
| 13177 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13178 | int main() |
| 13179 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13180 | /* Note that we need to ensure that not only does tzset(3) |
| 13181 | do 'something' with localtime, but it works as documented |
| 13182 | 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] | 13183 | This includes making sure that tzname is set properly if |
| 13184 | tm->tm_zone does not exist since it is the alternative way |
| 13185 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13186 | |
| 13187 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13188 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13189 | */ |
| 13190 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13191 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13192 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 13193 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13194 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13195 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13196 | if (localtime(&groundhogday)->tm_hour != 0) |
| 13197 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13198 | #if HAVE_TZNAME |
| 13199 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 13200 | if (strcmp(tzname[0], "UTC") || |
| 13201 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 13202 | exit(1); |
| 13203 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13204 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 13205 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13206 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13207 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13208 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13209 | #if HAVE_TZNAME |
| 13210 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 13211 | exit(1); |
| 13212 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13213 | |
| 13214 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 13215 | tzset(); |
| 13216 | if (localtime(&groundhogday)->tm_hour != 11) |
| 13217 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13218 | #if HAVE_TZNAME |
| 13219 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 13220 | exit(1); |
| 13221 | #endif |
| 13222 | |
| 13223 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13224 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 13225 | exit(1); |
| 13226 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 13227 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13228 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 13229 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13230 | exit(0); |
| 13231 | } |
| 13232 | |
| 13233 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13234 | if ac_fn_c_try_run "$LINENO"; then : |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13235 | ac_cv_working_tzset=yes |
| 13236 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13237 | ac_cv_working_tzset=no |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13238 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13239 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13240 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13241 | fi |
| 13242 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13243 | fi |
| 13244 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 |
| 13246 | $as_echo "$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13247 | if test "$ac_cv_working_tzset" = yes |
| 13248 | then |
| 13249 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13250 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 13251 | |
| 13252 | fi |
| 13253 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13254 | # Look for subsecond timestamps in struct stat |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 |
| 13256 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } |
| 13257 | if test "${ac_cv_stat_tv_nsec+set}" = set; then : |
| 13258 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13259 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13261 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13262 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13263 | int |
| 13264 | main () |
| 13265 | { |
| 13266 | |
| 13267 | struct stat st; |
| 13268 | st.st_mtim.tv_nsec = 1; |
| 13269 | |
| 13270 | ; |
| 13271 | return 0; |
| 13272 | } |
| 13273 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13274 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 13275 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13276 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13277 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13278 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13280 | fi |
| 13281 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 |
| 13283 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13284 | if test "$ac_cv_stat_tv_nsec" = yes |
| 13285 | then |
| 13286 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13287 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 13288 | |
| 13289 | fi |
| 13290 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13291 | # Look for BSD style subsecond timestamps in struct stat |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 |
| 13293 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } |
| 13294 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then : |
| 13295 | $as_echo_n "(cached) " >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13296 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13298 | /* end confdefs.h. */ |
| 13299 | #include <sys/stat.h> |
| 13300 | int |
| 13301 | main () |
| 13302 | { |
| 13303 | |
| 13304 | struct stat st; |
| 13305 | st.st_mtimespec.tv_nsec = 1; |
| 13306 | |
| 13307 | ; |
| 13308 | return 0; |
| 13309 | } |
| 13310 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13311 | if ac_fn_c_try_compile "$LINENO"; then : |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13312 | ac_cv_stat_tv_nsec2=yes |
| 13313 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13314 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13315 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13317 | fi |
| 13318 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 |
| 13320 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13321 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 13322 | then |
| 13323 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13324 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13325 | |
| 13326 | fi |
| 13327 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13328 | # 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] | 13329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 |
| 13330 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } |
| 13331 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then : |
| 13332 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13333 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13335 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13336 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13337 | int |
| 13338 | main () |
| 13339 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13340 | |
| 13341 | int rtn; |
| 13342 | rtn = mvwdelch(0,0,0); |
| 13343 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13344 | ; |
| 13345 | return 0; |
| 13346 | } |
| 13347 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13348 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13349 | ac_cv_mvwdelch_is_expression=yes |
| 13350 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13351 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13352 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13354 | fi |
| 13355 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 13357 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13358 | |
| 13359 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 13360 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13361 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13362 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13363 | |
| 13364 | fi |
| 13365 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 |
| 13367 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } |
| 13368 | if test "${ac_cv_window_has_flags+set}" = set; then : |
| 13369 | $as_echo_n "(cached) " >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13370 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13372 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13373 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13374 | int |
| 13375 | main () |
| 13376 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13377 | |
| 13378 | WINDOW *w; |
| 13379 | w->_flags = 0; |
| 13380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13381 | ; |
| 13382 | return 0; |
| 13383 | } |
| 13384 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13385 | if ac_fn_c_try_compile "$LINENO"; then : |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13386 | ac_cv_window_has_flags=yes |
| 13387 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13388 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13389 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13391 | fi |
| 13392 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 |
| 13394 | $as_echo "$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13395 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13396 | |
| 13397 | if test "$ac_cv_window_has_flags" = yes |
| 13398 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13399 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13400 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 13401 | |
| 13402 | fi |
| 13403 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 |
| 13405 | $as_echo_n "checking for is_term_resized... " >&6; } |
| 13406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13407 | /* end confdefs.h. */ |
| 13408 | #include <curses.h> |
| 13409 | int |
| 13410 | main () |
| 13411 | { |
| 13412 | void *x=is_term_resized |
| 13413 | ; |
| 13414 | return 0; |
| 13415 | } |
| 13416 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13417 | if ac_fn_c_try_compile "$LINENO"; then : |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13418 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13419 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13420 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13422 | $as_echo "yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13423 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13425 | $as_echo "no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13426 | |
| 13427 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13429 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 |
| 13431 | $as_echo_n "checking for resize_term... " >&6; } |
| 13432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13433 | /* end confdefs.h. */ |
| 13434 | #include <curses.h> |
| 13435 | int |
| 13436 | main () |
| 13437 | { |
| 13438 | void *x=resize_term |
| 13439 | ; |
| 13440 | return 0; |
| 13441 | } |
| 13442 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13443 | if ac_fn_c_try_compile "$LINENO"; then : |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13444 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13445 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13446 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13448 | $as_echo "yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13449 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13451 | $as_echo "no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13452 | |
| 13453 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13455 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 |
| 13457 | $as_echo_n "checking for resizeterm... " >&6; } |
| 13458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13459 | /* end confdefs.h. */ |
| 13460 | #include <curses.h> |
| 13461 | int |
| 13462 | main () |
| 13463 | { |
| 13464 | void *x=resizeterm |
| 13465 | ; |
| 13466 | return 0; |
| 13467 | } |
| 13468 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13469 | if ac_fn_c_try_compile "$LINENO"; then : |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13470 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13471 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13472 | |
Matthias Klose | c511b47 | 2010-05-08 11:01:39 +0000 | [diff] [blame] | 13473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13474 | $as_echo "yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13475 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13477 | $as_echo "no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 13478 | |
| 13479 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13481 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 |
| 13483 | $as_echo_n "checking for /dev/ptmx... " >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 13484 | |
| 13485 | if test -r /dev/ptmx |
| 13486 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13488 | $as_echo "yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13489 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13490 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13491 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 13492 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13494 | $as_echo "no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 13495 | fi |
| 13496 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 |
| 13498 | $as_echo_n "checking for /dev/ptc... " >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 13499 | |
| 13500 | if test -r /dev/ptc |
| 13501 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13503 | $as_echo "yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13504 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13505 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13506 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 13507 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13509 | $as_echo "no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 13510 | fi |
| 13511 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13512 | if test "$have_long_long" = yes |
| 13513 | then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 |
| 13515 | $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } |
| 13516 | if test "${ac_cv_have_long_long_format+set}" = set; then : |
| 13517 | $as_echo_n "(cached) " >&6 |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13518 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13519 | if test "$cross_compiling" = yes; then : |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13520 | ac_cv_have_long_long_format=no |
| 13521 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13523 | /* end confdefs.h. */ |
| 13524 | |
| 13525 | #include <stdio.h> |
| 13526 | #include <stddef.h> |
| 13527 | #include <string.h> |
| 13528 | |
| 13529 | #ifdef HAVE_SYS_TYPES_H |
| 13530 | #include <sys/types.h> |
| 13531 | #endif |
| 13532 | |
| 13533 | int main() |
| 13534 | { |
| 13535 | char buffer[256]; |
| 13536 | |
| 13537 | if (sprintf(buffer, "%lld", (long long)123) < 0) |
| 13538 | return 1; |
| 13539 | if (strcmp(buffer, "123")) |
| 13540 | return 1; |
| 13541 | |
| 13542 | if (sprintf(buffer, "%lld", (long long)-123) < 0) |
| 13543 | return 1; |
| 13544 | if (strcmp(buffer, "-123")) |
| 13545 | return 1; |
| 13546 | |
| 13547 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) |
| 13548 | return 1; |
| 13549 | if (strcmp(buffer, "123")) |
| 13550 | return 1; |
| 13551 | |
| 13552 | return 0; |
| 13553 | } |
| 13554 | |
| 13555 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13556 | if ac_fn_c_try_run "$LINENO"; then : |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13557 | ac_cv_have_long_long_format=yes |
| 13558 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13559 | ac_cv_have_long_long_format=no |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13560 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13561 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13562 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13563 | fi |
| 13564 | |
| 13565 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13566 | fi |
| 13567 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 |
| 13569 | $as_echo "$ac_cv_have_long_long_format" >&6; } |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13570 | fi |
| 13571 | |
Mark Dickinson | 5ce8474 | 2009-12-31 20:48:04 +0000 | [diff] [blame] | 13572 | if test "$ac_cv_have_long_long_format" = yes |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13573 | then |
| 13574 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13575 | $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13576 | |
| 13577 | fi |
| 13578 | |
Ronald Oussoren | 315cd0c | 2009-11-19 16:25:21 +0000 | [diff] [blame] | 13579 | if test $ac_sys_system = Darwin |
| 13580 | then |
| 13581 | LIBS="$LIBS -framework CoreFoundation" |
| 13582 | fi |
| 13583 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 13584 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 |
| 13586 | $as_echo_n "checking for %zd printf() format support... " >&6; } |
| 13587 | if test "${ac_cv_have_size_t_format+set}" = set; then : |
| 13588 | $as_echo_n "(cached) " >&6 |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13589 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13590 | if test "$cross_compiling" = yes; then : |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 13591 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 13592 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13593 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13595 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13596 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13597 | #include <stdio.h> |
| 13598 | #include <stddef.h> |
| 13599 | #include <string.h> |
| 13600 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 13601 | #ifdef HAVE_SYS_TYPES_H |
| 13602 | #include <sys/types.h> |
| 13603 | #endif |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 13604 | |
| 13605 | #ifdef HAVE_SSIZE_T |
| 13606 | typedef ssize_t Py_ssize_t; |
| 13607 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 13608 | typedef long Py_ssize_t; |
| 13609 | #else |
| 13610 | typedef int Py_ssize_t; |
| 13611 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13612 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 13613 | int main() |
| 13614 | { |
| 13615 | char buffer[256]; |
| 13616 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13617 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 13618 | return 1; |
| 13619 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 13620 | if (strcmp(buffer, "123")) |
| 13621 | return 1; |
| 13622 | |
| 13623 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 13624 | return 1; |
| 13625 | |
| 13626 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13627 | return 1; |
| 13628 | |
| 13629 | return 0; |
| 13630 | } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13631 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 13632 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13633 | if ac_fn_c_try_run "$LINENO"; then : |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13634 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13635 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13636 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13637 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13638 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13639 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 13640 | fi |
| 13641 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13642 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 |
| 13644 | $as_echo "$ac_cv_have_size_t_format" >&6; } |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 13645 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13646 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13647 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13648 | |
| 13649 | fi |
| 13650 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13651 | 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] | 13652 | #ifdef HAVE_SYS_TYPES_H |
| 13653 | #include <sys/types.h> |
| 13654 | #endif |
| 13655 | #ifdef HAVE_SYS_SOCKET_H |
| 13656 | #include <sys/socket.h> |
| 13657 | #endif |
| 13658 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13659 | " |
| 13660 | if test "x$ac_cv_type_socklen_t" = x""yes; then : |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 13661 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13662 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13663 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13664 | $as_echo "#define socklen_t int" >>confdefs.h |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 13665 | |
| 13666 | fi |
| 13667 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13668 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13669 | |
| 13670 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 13671 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 13672 | do |
| 13673 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 13674 | done |
| 13675 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13676 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 13677 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 |
| 13679 | $as_echo_n "checking for build directories... " >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13680 | for dir in $SRCDIRS; do |
| 13681 | if test ! -d $dir; then |
| 13682 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 13683 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13684 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 13686 | $as_echo "done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 13687 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13688 | # generate output files |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 13689 | 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] | 13690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13691 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13692 | # This file is a shell script that caches the results of configure |
| 13693 | # 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] | 13694 | # scripts and configure runs, see configure's option --config-cache. |
| 13695 | # It is not useful on other systems. If it contains results you don't |
| 13696 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13697 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13698 | # config.status only pays attention to the cache file if you give it |
| 13699 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13700 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13701 | # `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] | 13702 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13703 | # following values. |
| 13704 | |
| 13705 | _ACEOF |
| 13706 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13707 | # The following way of writing the cache mishandles newlines in values, |
| 13708 | # 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] | 13709 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13710 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13711 | # 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] | 13712 | ( |
| 13713 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13714 | eval ac_val=\$$ac_var |
| 13715 | case $ac_val in #( |
| 13716 | *${as_nl}*) |
| 13717 | case $ac_var in #( |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13718 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 13719 | $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] | 13720 | esac |
| 13721 | case $ac_var in #( |
| 13722 | _ | IFS | as_nl) ;; #( |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13723 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 13724 | *) { eval $ac_var=; unset $ac_var;} ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13725 | esac ;; |
| 13726 | esac |
| 13727 | done |
| 13728 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13729 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13730 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13731 | *${as_nl}ac_space=\ *) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13732 | # `set' does not quote correctly, so add quotes: double-quote |
| 13733 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13734 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13735 | "s/'/'\\\\''/g; |
| 13736 | 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] | 13737 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13738 | *) |
| 13739 | # `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] | 13740 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13741 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13742 | esac | |
| 13743 | sort |
| 13744 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13745 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13746 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13747 | t clear |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13748 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13749 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13750 | t end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13751 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13752 | :end' >>confcache |
| 13753 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13754 | if test -w "$cache_file"; then |
| 13755 | test "x$cache_file" != "x/dev/null" && |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13756 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 13757 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13758 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13759 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13760 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 13761 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13762 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13763 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13764 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13765 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13766 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13767 | # Let make expand exec_prefix. |
| 13768 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13769 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13770 | DEFS=-DHAVE_CONFIG_H |
| 13771 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13772 | ac_libobjs= |
| 13773 | ac_ltlibobjs= |
| 13774 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13775 | # 1. Remove the extension, and $U if already installed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13776 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13777 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13778 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 13779 | # will be set to the directory where LIBOBJS objects are built. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13780 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 13781 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13782 | done |
| 13783 | LIBOBJS=$ac_libobjs |
| 13784 | |
| 13785 | LTLIBOBJS=$ac_ltlibobjs |
| 13786 | |
| 13787 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13788 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13789 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13790 | : ${CONFIG_STATUS=./config.status} |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13791 | ac_write_fail=0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13792 | ac_clean_files_save=$ac_clean_files |
| 13793 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13794 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 13795 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 13796 | as_write_fail=0 |
| 13797 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13798 | #! $SHELL |
| 13799 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13800 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13801 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13802 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13804 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13805 | ac_cs_recheck=false |
| 13806 | ac_cs_silent=false |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13807 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13808 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 13809 | export SHELL |
| 13810 | _ASEOF |
| 13811 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 13812 | ## -------------------- ## |
| 13813 | ## M4sh Initialization. ## |
| 13814 | ## -------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13815 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13816 | # Be more Bourne compatible |
| 13817 | DUALCASE=1; export DUALCASE # for MKS sh |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13818 | 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] | 13819 | emulate sh |
| 13820 | NULLCMD=: |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13821 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13822 | # is contrary to our usage. Disable this feature. |
| 13823 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13824 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 13825 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13826 | case `(set -o) 2>/dev/null` in #( |
| 13827 | *posix*) : |
| 13828 | set -o posix ;; #( |
| 13829 | *) : |
| 13830 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13831 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13832 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13833 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13834 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13835 | as_nl=' |
| 13836 | ' |
| 13837 | export as_nl |
| 13838 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 13839 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 13840 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 13841 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 13842 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 13843 | # but without wasting forks for bash or zsh. |
| 13844 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 13845 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 13846 | as_echo='print -r --' |
| 13847 | as_echo_n='print -rn --' |
| 13848 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 13849 | as_echo='printf %s\n' |
| 13850 | as_echo_n='printf %s' |
| 13851 | else |
| 13852 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 13853 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 13854 | as_echo_n='/usr/ucb/echo -n' |
| 13855 | else |
| 13856 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 13857 | as_echo_n_body='eval |
| 13858 | arg=$1; |
| 13859 | case $arg in #( |
| 13860 | *"$as_nl"*) |
| 13861 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 13862 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 13863 | esac; |
| 13864 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 13865 | ' |
| 13866 | export as_echo_n_body |
| 13867 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 13868 | fi |
| 13869 | export as_echo_body |
| 13870 | as_echo='sh -c $as_echo_body as_echo' |
| 13871 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13872 | |
| 13873 | # The user is always right. |
| 13874 | if test "${PATH_SEPARATOR+set}" != set; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13875 | PATH_SEPARATOR=: |
| 13876 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 13877 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 13878 | PATH_SEPARATOR=';' |
| 13879 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13880 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13881 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13882 | |
| 13883 | # IFS |
| 13884 | # We need space, tab and new line, in precisely that order. Quoting is |
| 13885 | # there to prevent editors from complaining about space-tab. |
| 13886 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 13887 | # splitting by setting IFS to empty value.) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13888 | IFS=" "" $as_nl" |
| 13889 | |
| 13890 | # Find who we are. Look in the path if we contain no directory separator. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13891 | case $0 in #(( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13892 | *[\\/]* ) as_myself=$0 ;; |
| 13893 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13894 | for as_dir in $PATH |
| 13895 | do |
| 13896 | IFS=$as_save_IFS |
| 13897 | test -z "$as_dir" && as_dir=. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13898 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 13899 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13900 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13901 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13902 | ;; |
| 13903 | esac |
| 13904 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 13905 | # in which case we are not to be found in the path. |
| 13906 | if test "x$as_myself" = x; then |
| 13907 | as_myself=$0 |
| 13908 | fi |
| 13909 | if test ! -f "$as_myself"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13910 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 13911 | exit 1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13912 | fi |
| 13913 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13914 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 13915 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 13916 | # suppresses any "Segmentation fault" message there. '((' could |
| 13917 | # trigger a bug in pdksh 5.2.14. |
| 13918 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 13919 | do eval test x\${$as_var+set} = xset \ |
| 13920 | && ( (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] | 13921 | done |
| 13922 | PS1='$ ' |
| 13923 | PS2='> ' |
| 13924 | PS4='+ ' |
| 13925 | |
| 13926 | # NLS nuisances. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13927 | LC_ALL=C |
| 13928 | export LC_ALL |
| 13929 | LANGUAGE=C |
| 13930 | export LANGUAGE |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13931 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 13932 | # CDPATH. |
| 13933 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 13934 | |
| 13935 | |
| 13936 | # as_fn_error ERROR [LINENO LOG_FD] |
| 13937 | # --------------------------------- |
| 13938 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 13939 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 13940 | # script with status $?, using 1 if that was 0. |
| 13941 | as_fn_error () |
| 13942 | { |
| 13943 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 13944 | if test "$3"; then |
| 13945 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 13946 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 13947 | fi |
| 13948 | $as_echo "$as_me: error: $1" >&2 |
| 13949 | as_fn_exit $as_status |
| 13950 | } # as_fn_error |
| 13951 | |
| 13952 | |
| 13953 | # as_fn_set_status STATUS |
| 13954 | # ----------------------- |
| 13955 | # Set $? to STATUS, without forking. |
| 13956 | as_fn_set_status () |
| 13957 | { |
| 13958 | return $1 |
| 13959 | } # as_fn_set_status |
| 13960 | |
| 13961 | # as_fn_exit STATUS |
| 13962 | # ----------------- |
| 13963 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 13964 | as_fn_exit () |
| 13965 | { |
| 13966 | set +e |
| 13967 | as_fn_set_status $1 |
| 13968 | exit $1 |
| 13969 | } # as_fn_exit |
| 13970 | |
| 13971 | # as_fn_unset VAR |
| 13972 | # --------------- |
| 13973 | # Portably unset VAR. |
| 13974 | as_fn_unset () |
| 13975 | { |
| 13976 | { eval $1=; unset $1;} |
| 13977 | } |
| 13978 | as_unset=as_fn_unset |
| 13979 | # as_fn_append VAR VALUE |
| 13980 | # ---------------------- |
| 13981 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 13982 | # advantage of any shell optimizations that allow amortized linear growth over |
| 13983 | # repeated appends, instead of the typical quadratic growth present in naive |
| 13984 | # implementations. |
| 13985 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 13986 | eval 'as_fn_append () |
| 13987 | { |
| 13988 | eval $1+=\$2 |
| 13989 | }' |
| 13990 | else |
| 13991 | as_fn_append () |
| 13992 | { |
| 13993 | eval $1=\$$1\$2 |
| 13994 | } |
| 13995 | fi # as_fn_append |
| 13996 | |
| 13997 | # as_fn_arith ARG... |
| 13998 | # ------------------ |
| 13999 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 14000 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 14001 | # must be portable across $(()) and expr. |
| 14002 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 14003 | eval 'as_fn_arith () |
| 14004 | { |
| 14005 | as_val=$(( $* )) |
| 14006 | }' |
| 14007 | else |
| 14008 | as_fn_arith () |
| 14009 | { |
| 14010 | as_val=`expr "$@" || test $? -eq 1` |
| 14011 | } |
| 14012 | fi # as_fn_arith |
| 14013 | |
| 14014 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14015 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 14016 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 14017 | as_expr=expr |
| 14018 | else |
| 14019 | as_expr=false |
| 14020 | fi |
| 14021 | |
| 14022 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 14023 | as_basename=basename |
| 14024 | else |
| 14025 | as_basename=false |
| 14026 | fi |
| 14027 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14028 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 14029 | as_dirname=dirname |
| 14030 | else |
| 14031 | as_dirname=false |
| 14032 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14033 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14034 | as_me=`$as_basename -- "$0" || |
| 14035 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 14036 | X"$0" : 'X\(//\)$' \| \ |
| 14037 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14038 | $as_echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14039 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 14040 | s//\1/ |
| 14041 | q |
| 14042 | } |
| 14043 | /^X\/\(\/\/\)$/{ |
| 14044 | s//\1/ |
| 14045 | q |
| 14046 | } |
| 14047 | /^X\/\(\/\).*/{ |
| 14048 | s//\1/ |
| 14049 | q |
| 14050 | } |
| 14051 | s/.*/./; q'` |
| 14052 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14053 | # Avoid depending upon Character Ranges. |
| 14054 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 14055 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 14056 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14057 | as_cr_digits='0123456789' |
| 14058 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14059 | |
| 14060 | ECHO_C= ECHO_N= ECHO_T= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14061 | case `echo -n x` in #((((( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14062 | -n*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14063 | case `echo 'xy\c'` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14064 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14065 | xy) ECHO_C='\c';; |
| 14066 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 14067 | ECHO_T=' ';; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14068 | esac;; |
| 14069 | *) |
| 14070 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14071 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14072 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14073 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14074 | if test -d conf$$.dir; then |
| 14075 | rm -f conf$$.dir/conf$$.file |
| 14076 | else |
| 14077 | rm -f conf$$.dir |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14078 | mkdir conf$$.dir 2>/dev/null |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14079 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14080 | if (echo >conf$$.file) 2>/dev/null; then |
| 14081 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 14082 | as_ln_s='ln -s' |
| 14083 | # ... but there are two gotchas: |
| 14084 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 14085 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 14086 | # In both cases, we have to default to `cp -p'. |
| 14087 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 14088 | as_ln_s='cp -p' |
| 14089 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 14090 | as_ln_s=ln |
| 14091 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14092 | as_ln_s='cp -p' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14093 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14094 | else |
| 14095 | as_ln_s='cp -p' |
| 14096 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14097 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 14098 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14099 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14100 | |
| 14101 | # as_fn_mkdir_p |
| 14102 | # ------------- |
| 14103 | # Create "$as_dir" as a directory, including parents if necessary. |
| 14104 | as_fn_mkdir_p () |
| 14105 | { |
| 14106 | |
| 14107 | case $as_dir in #( |
| 14108 | -*) as_dir=./$as_dir;; |
| 14109 | esac |
| 14110 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 14111 | as_dirs= |
| 14112 | while :; do |
| 14113 | case $as_dir in #( |
| 14114 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 14115 | *) as_qdir=$as_dir;; |
| 14116 | esac |
| 14117 | as_dirs="'$as_qdir' $as_dirs" |
| 14118 | as_dir=`$as_dirname -- "$as_dir" || |
| 14119 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14120 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 14121 | X"$as_dir" : 'X\(//\)$' \| \ |
| 14122 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 14123 | $as_echo X"$as_dir" | |
| 14124 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14125 | s//\1/ |
| 14126 | q |
| 14127 | } |
| 14128 | /^X\(\/\/\)[^/].*/{ |
| 14129 | s//\1/ |
| 14130 | q |
| 14131 | } |
| 14132 | /^X\(\/\/\)$/{ |
| 14133 | s//\1/ |
| 14134 | q |
| 14135 | } |
| 14136 | /^X\(\/\).*/{ |
| 14137 | s//\1/ |
| 14138 | q |
| 14139 | } |
| 14140 | s/.*/./; q'` |
| 14141 | test -d "$as_dir" && break |
| 14142 | done |
| 14143 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 14144 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 14145 | |
| 14146 | |
| 14147 | } # as_fn_mkdir_p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14148 | if mkdir -p . 2>/dev/null; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14149 | as_mkdir_p='mkdir -p "$as_dir"' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14150 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14151 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14152 | as_mkdir_p=false |
| 14153 | fi |
| 14154 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14155 | if test -x / >/dev/null 2>&1; then |
| 14156 | as_test_x='test -x' |
| 14157 | else |
| 14158 | if ls -dL / >/dev/null 2>&1; then |
| 14159 | as_ls_L_option=L |
| 14160 | else |
| 14161 | as_ls_L_option= |
| 14162 | fi |
| 14163 | as_test_x=' |
| 14164 | eval sh -c '\'' |
| 14165 | if test -d "$1"; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14166 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14167 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14168 | case $1 in #( |
| 14169 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14170 | esac; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14171 | 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] | 14172 | ???[sx]*):;;*)false;;esac;fi |
| 14173 | '\'' sh |
| 14174 | ' |
| 14175 | fi |
| 14176 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14177 | |
| 14178 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14179 | 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] | 14180 | |
| 14181 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14182 | 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] | 14183 | |
| 14184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14185 | exec 6>&1 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14186 | ## ----------------------------------- ## |
| 14187 | ## Main body of $CONFIG_STATUS script. ## |
| 14188 | ## ----------------------------------- ## |
| 14189 | _ASEOF |
| 14190 | 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] | 14191 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14192 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14193 | # 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] | 14194 | # 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] | 14195 | # values after options handling. |
| 14196 | ac_log=" |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 14197 | This file was extended by python $as_me 2.7, which was |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14198 | generated by GNU Autoconf 2.65. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14199 | |
| 14200 | CONFIG_FILES = $CONFIG_FILES |
| 14201 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 14202 | CONFIG_LINKS = $CONFIG_LINKS |
| 14203 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 14204 | $ $0 $@ |
| 14205 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14206 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 14207 | " |
| 14208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14209 | _ACEOF |
| 14210 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14211 | case $ac_config_files in *" |
| 14212 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 14213 | esac |
| 14214 | |
| 14215 | case $ac_config_headers in *" |
| 14216 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 14217 | esac |
| 14218 | |
| 14219 | |
| 14220 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14221 | # Files that config.status was made for. |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 14222 | config_files="$ac_config_files" |
| 14223 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14224 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14225 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14226 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14227 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14228 | ac_cs_usage="\ |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14229 | \`$as_me' instantiates files and other configuration actions |
| 14230 | from templates according to the current configuration. Unless the files |
| 14231 | 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] | 14232 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14233 | Usage: $0 [OPTION]... [TAG]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14234 | |
| 14235 | -h, --help print this help, then exit |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14236 | -V, --version print version number and configuration settings, then exit |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14237 | --config print configuration, then exit |
| 14238 | -q, --quiet, --silent |
| 14239 | do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14240 | -d, --debug don't remove temporary files |
| 14241 | --recheck update $as_me by reconfiguring in the same conditions |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14242 | --file=FILE[:TEMPLATE] |
| 14243 | instantiate the configuration file FILE |
| 14244 | --header=FILE[:TEMPLATE] |
| 14245 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14246 | |
| 14247 | Configuration files: |
| 14248 | $config_files |
| 14249 | |
| 14250 | Configuration headers: |
| 14251 | $config_headers |
| 14252 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14253 | Report bugs to <http://bugs.python.org/>." |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 14254 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14255 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14256 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14257 | 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] | 14258 | ac_cs_version="\\ |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 14259 | python config.status 2.7 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14260 | configured by $0, generated by GNU Autoconf 2.65, |
| 14261 | with options \\"\$ac_cs_config\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14262 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14263 | Copyright (C) 2009 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14264 | This config.status script is free software; the Free Software Foundation |
| 14265 | gives unlimited permission to copy, distribute and modify it." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14266 | |
| 14267 | ac_pwd='$ac_pwd' |
| 14268 | srcdir='$srcdir' |
| 14269 | INSTALL='$INSTALL' |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14270 | test -n "\$AWK" || AWK=awk |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14271 | _ACEOF |
| 14272 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14273 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14274 | # 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] | 14275 | ac_need_defaults=: |
| 14276 | while test $# != 0 |
| 14277 | do |
| 14278 | case $1 in |
| 14279 | --*=*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14280 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14281 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14282 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14283 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14284 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14285 | ac_option=$1 |
| 14286 | ac_optarg=$2 |
| 14287 | ac_shift=shift |
| 14288 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14289 | esac |
| 14290 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14291 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14292 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14293 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 14294 | ac_cs_recheck=: ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14295 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14296 | $as_echo "$ac_cs_version"; exit ;; |
| 14297 | --config | --confi | --conf | --con | --co | --c ) |
| 14298 | $as_echo "$ac_cs_config"; exit ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14299 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14300 | debug=: ;; |
| 14301 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14302 | $ac_shift |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14303 | case $ac_optarg in |
| 14304 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 14305 | esac |
| 14306 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14307 | ac_need_defaults=false;; |
| 14308 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14309 | $ac_shift |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14310 | case $ac_optarg in |
| 14311 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 14312 | esac |
| 14313 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14314 | ac_need_defaults=false;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14315 | --he | --h) |
| 14316 | # Conflict between --help and --header |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14317 | as_fn_error "ambiguous option: \`$1' |
| 14318 | Try \`$0 --help' for more information.";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14319 | --help | --hel | -h ) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14320 | $as_echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14321 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 14322 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 14323 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14324 | |
| 14325 | # This is an error. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14326 | -*) as_fn_error "unrecognized option: \`$1' |
| 14327 | Try \`$0 --help' for more information." ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14328 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14329 | *) as_fn_append ac_config_targets " $1" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14330 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14331 | |
| 14332 | esac |
| 14333 | shift |
| 14334 | done |
| 14335 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14336 | ac_configure_extra_args= |
| 14337 | |
| 14338 | if $ac_cs_silent; then |
| 14339 | exec 6>/dev/null |
| 14340 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 14341 | fi |
| 14342 | |
| 14343 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14344 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14345 | if \$ac_cs_recheck; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14346 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 14347 | shift |
| 14348 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 14349 | CONFIG_SHELL='$SHELL' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14350 | export CONFIG_SHELL |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14351 | exec "\$@" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14352 | fi |
| 14353 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14354 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14355 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14356 | exec 5>>config.log |
| 14357 | { |
| 14358 | echo |
| 14359 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 14360 | ## Running $as_me. ## |
| 14361 | _ASBOX |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14362 | $as_echo "$ac_log" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14363 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14364 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14365 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14366 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14367 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14368 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14369 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14370 | |
| 14371 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14372 | for ac_config_target in $ac_config_targets |
| 14373 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14374 | case $ac_config_target in |
| 14375 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 14376 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 14377 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 14378 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 14379 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 14380 | "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] | 14381 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 14382 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 14383 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14384 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14385 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14386 | esac |
| 14387 | done |
| 14388 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14390 | # If the user did not use the arguments to specify the items to instantiate, |
| 14391 | # then the envvar interface is used. Set only those that are not. |
| 14392 | # We use the long form for the default assignment because of an extremely |
| 14393 | # bizarre bug on SunOS 4.1.3. |
| 14394 | if $ac_need_defaults; then |
| 14395 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 14396 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 14397 | fi |
| 14398 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14399 | # 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] | 14400 | # 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] | 14401 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14402 | # Hook for its removal unless debugging. |
| 14403 | # Note that there is a small window in which the directory will not be cleaned: |
| 14404 | # 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] | 14405 | $debug || |
| 14406 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14407 | tmp= |
| 14408 | trap 'exit_status=$? |
| 14409 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 14410 | ' 0 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14411 | trap 'as_fn_exit 1' 1 2 13 15 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14412 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14413 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14414 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14415 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14416 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14417 | test -n "$tmp" && test -d "$tmp" |
| 14418 | } || |
| 14419 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14420 | tmp=./conf$$-$RANDOM |
| 14421 | (umask 077 && mkdir "$tmp") |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14422 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14423 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14424 | # Set up the scripts for CONFIG_FILES section. |
| 14425 | # No need to generate them if there are no CONFIG_FILES. |
| 14426 | # This happens for instance with `./config.status config.h'. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14427 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14428 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14429 | |
| 14430 | ac_cr=`echo X | tr X '\015'` |
| 14431 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 14432 | # But we know of no other shell where ac_cr would be empty at this |
| 14433 | # point, so we can use a bashism as a fallback. |
| 14434 | if test "x$ac_cr" = x; then |
| 14435 | eval ac_cr=\$\'\\r\' |
| 14436 | fi |
| 14437 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 14438 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 14439 | ac_cs_awk_cr='\r' |
| 14440 | else |
| 14441 | ac_cs_awk_cr=$ac_cr |
| 14442 | fi |
| 14443 | |
| 14444 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14445 | _ACEOF |
| 14446 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14447 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14448 | { |
| 14449 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 14450 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 14451 | echo "_ACEOF" |
| 14452 | } >conf$$subs.sh || |
| 14453 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 14454 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14455 | ac_delim='%!_!# ' |
| 14456 | for ac_last_try in false false false false false :; do |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14457 | . ./conf$$subs.sh || |
| 14458 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14459 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14460 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 14461 | if test $ac_delim_n = $ac_delim_num; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14462 | break |
| 14463 | elif $ac_last_try; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14464 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14465 | else |
| 14466 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14467 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14468 | done |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14469 | rm -f conf$$subs.sh |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14470 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14471 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14472 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14473 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14474 | sed -n ' |
| 14475 | h |
| 14476 | s/^/S["/; s/!.*/"]=/ |
| 14477 | p |
| 14478 | g |
| 14479 | s/^[^!]*!// |
| 14480 | :repl |
| 14481 | t repl |
| 14482 | s/'"$ac_delim"'$// |
| 14483 | t delim |
| 14484 | :nl |
| 14485 | h |
| 14486 | s/\(.\{148\}\)..*/\1/ |
| 14487 | t more1 |
| 14488 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14489 | p |
| 14490 | n |
| 14491 | b repl |
| 14492 | :more1 |
| 14493 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14494 | p |
| 14495 | g |
| 14496 | s/.\{148\}// |
| 14497 | t nl |
| 14498 | :delim |
| 14499 | h |
| 14500 | s/\(.\{148\}\)..*/\1/ |
| 14501 | t more2 |
| 14502 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14503 | p |
| 14504 | b |
| 14505 | :more2 |
| 14506 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14507 | p |
| 14508 | g |
| 14509 | s/.\{148\}// |
| 14510 | t delim |
| 14511 | ' <conf$$subs.awk | sed ' |
| 14512 | /^[^""]/{ |
| 14513 | N |
| 14514 | s/\n// |
| 14515 | } |
| 14516 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14517 | rm -f conf$$subs.awk |
| 14518 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14519 | _ACAWK |
| 14520 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 14521 | for (key in S) S_is_set[key] = 1 |
| 14522 | FS = "" |
| 14523 | |
| 14524 | } |
| 14525 | { |
| 14526 | line = $ 0 |
| 14527 | nfields = split(line, field, "@") |
| 14528 | substed = 0 |
| 14529 | len = length(field[1]) |
| 14530 | for (i = 2; i < nfields; i++) { |
| 14531 | key = field[i] |
| 14532 | keylen = length(key) |
| 14533 | if (S_is_set[key]) { |
| 14534 | value = S[key] |
| 14535 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 14536 | len += length(value) + length(field[++i]) |
| 14537 | substed = 1 |
| 14538 | } else |
| 14539 | len += 1 + keylen |
| 14540 | } |
| 14541 | |
| 14542 | print line |
| 14543 | } |
| 14544 | |
| 14545 | _ACAWK |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14546 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14547 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14548 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 14549 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 14550 | else |
| 14551 | cat |
| 14552 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 14553 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14554 | _ACEOF |
| 14555 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14556 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 14557 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 14558 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14559 | # (actually we leave an empty line to preserve line numbers). |
| 14560 | if test "x$srcdir" = x.; then |
| 14561 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 14562 | s/:*\$(srcdir):*/:/ |
| 14563 | s/:*\${srcdir}:*/:/ |
| 14564 | s/:*@srcdir@:*/:/ |
| 14565 | s/^\([^=]*=[ ]*\):*/\1/ |
| 14566 | s/:*$// |
| 14567 | s/^[^=]*=[ ]*$// |
| 14568 | }' |
| 14569 | fi |
| 14570 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14571 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14572 | fi # test -n "$CONFIG_FILES" |
| 14573 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14574 | # Set up the scripts for CONFIG_HEADERS section. |
| 14575 | # No need to generate them if there are no CONFIG_HEADERS. |
| 14576 | # This happens for instance with `./config.status Makefile'. |
| 14577 | if test -n "$CONFIG_HEADERS"; then |
| 14578 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 14579 | BEGIN { |
| 14580 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14581 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14582 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 14583 | # here-document in config.status, that substitutes the proper values into |
| 14584 | # config.h.in to produce config.h. |
| 14585 | |
| 14586 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 14587 | # handling of long lines. |
| 14588 | ac_delim='%!_!# ' |
| 14589 | for ac_last_try in false false :; do |
| 14590 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 14591 | if test -z "$ac_t"; then |
| 14592 | break |
| 14593 | elif $ac_last_try; then |
| 14594 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 14595 | else |
| 14596 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14597 | fi |
| 14598 | done |
| 14599 | |
| 14600 | # For the awk script, D is an array of macro values keyed by name, |
| 14601 | # likewise P contains macro parameters if any. Preserve backslash |
| 14602 | # newline sequences. |
| 14603 | |
| 14604 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14605 | sed -n ' |
| 14606 | s/.\{148\}/&'"$ac_delim"'/g |
| 14607 | t rset |
| 14608 | :rset |
| 14609 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 14610 | t def |
| 14611 | d |
| 14612 | :def |
| 14613 | s/\\$// |
| 14614 | t bsnl |
| 14615 | s/["\\]/\\&/g |
| 14616 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14617 | D["\1"]=" \3"/p |
| 14618 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 14619 | d |
| 14620 | :bsnl |
| 14621 | s/["\\]/\\&/g |
| 14622 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14623 | D["\1"]=" \3\\\\\\n"\\/p |
| 14624 | t cont |
| 14625 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 14626 | t cont |
| 14627 | d |
| 14628 | :cont |
| 14629 | n |
| 14630 | s/.\{148\}/&'"$ac_delim"'/g |
| 14631 | t clear |
| 14632 | :clear |
| 14633 | s/\\$// |
| 14634 | t bsnlc |
| 14635 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 14636 | d |
| 14637 | :bsnlc |
| 14638 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 14639 | b cont |
| 14640 | ' <confdefs.h | sed ' |
| 14641 | s/'"$ac_delim"'/"\\\ |
| 14642 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14643 | |
| 14644 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14645 | for (key in D) D_is_set[key] = 1 |
| 14646 | FS = "" |
| 14647 | } |
| 14648 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 14649 | line = \$ 0 |
| 14650 | split(line, arg, " ") |
| 14651 | if (arg[1] == "#") { |
| 14652 | defundef = arg[2] |
| 14653 | mac1 = arg[3] |
| 14654 | } else { |
| 14655 | defundef = substr(arg[1], 2) |
| 14656 | mac1 = arg[2] |
| 14657 | } |
| 14658 | split(mac1, mac2, "(") #) |
| 14659 | macro = mac2[1] |
| 14660 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 14661 | if (D_is_set[macro]) { |
| 14662 | # Preserve the white space surrounding the "#". |
| 14663 | print prefix "define", macro P[macro] D[macro] |
| 14664 | next |
| 14665 | } else { |
| 14666 | # Replace #undef with comments. This is necessary, for example, |
| 14667 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 14668 | # on some systems where configure will not decide to define it. |
| 14669 | if (defundef == "undef") { |
| 14670 | print "/*", prefix defundef, macro, "*/" |
| 14671 | next |
| 14672 | } |
| 14673 | } |
| 14674 | } |
| 14675 | { print } |
| 14676 | _ACAWK |
| 14677 | _ACEOF |
| 14678 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14679 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 14680 | fi # test -n "$CONFIG_HEADERS" |
| 14681 | |
| 14682 | |
| 14683 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 14684 | shift |
| 14685 | for ac_tag |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14686 | do |
| 14687 | case $ac_tag in |
| 14688 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 14689 | esac |
| 14690 | case $ac_mode$ac_tag in |
| 14691 | :[FHL]*:*);; |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14692 | :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] | 14693 | :[FH]-) ac_tag=-:-;; |
| 14694 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 14695 | esac |
| 14696 | ac_save_IFS=$IFS |
| 14697 | IFS=: |
| 14698 | set x $ac_tag |
| 14699 | IFS=$ac_save_IFS |
| 14700 | shift |
| 14701 | ac_file=$1 |
| 14702 | shift |
| 14703 | |
| 14704 | case $ac_mode in |
| 14705 | :L) ac_source=$1;; |
| 14706 | :[FH]) |
| 14707 | ac_file_inputs= |
| 14708 | for ac_f |
| 14709 | do |
| 14710 | case $ac_f in |
| 14711 | -) ac_f="$tmp/stdin";; |
| 14712 | *) # Look for the file first in the build tree, then in the source tree |
| 14713 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 14714 | # because $ac_f cannot contain `:'. |
| 14715 | test -f "$ac_f" || |
| 14716 | case $ac_f in |
| 14717 | [\\/$]*) false;; |
| 14718 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 14719 | esac || |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14720 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14721 | esac |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14722 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 14723 | as_fn_append ac_file_inputs " '$ac_f'" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14724 | done |
| 14725 | |
| 14726 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14727 | # use $as_me), people would be surprised to read: |
| 14728 | # /* config.h. Generated by config.status. */ |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14729 | configure_input='Generated from '` |
| 14730 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 14731 | `' by configure.' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14732 | if test x"$ac_file" != x-; then |
| 14733 | configure_input="$ac_file. $configure_input" |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14734 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 14735 | $as_echo "$as_me: creating $ac_file" >&6;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14736 | fi |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14737 | # Neutralize special characters interpreted by sed in replacement strings. |
| 14738 | case $configure_input in #( |
| 14739 | *\&* | *\|* | *\\* ) |
| 14740 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 14741 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 14742 | *) ac_sed_conf_input=$configure_input;; |
| 14743 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14744 | |
| 14745 | case $ac_tag in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14746 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 14747 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14748 | esac |
| 14749 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14750 | esac |
| 14751 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14752 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14753 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14754 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14755 | X"$ac_file" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14756 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14757 | $as_echo X"$ac_file" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14758 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14759 | s//\1/ |
| 14760 | q |
| 14761 | } |
| 14762 | /^X\(\/\/\)[^/].*/{ |
| 14763 | s//\1/ |
| 14764 | q |
| 14765 | } |
| 14766 | /^X\(\/\/\)$/{ |
| 14767 | s//\1/ |
| 14768 | q |
| 14769 | } |
| 14770 | /^X\(\/\).*/{ |
| 14771 | s//\1/ |
| 14772 | q |
| 14773 | } |
| 14774 | s/.*/./; q'` |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14775 | as_dir="$ac_dir"; as_fn_mkdir_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14776 | ac_builddir=. |
| 14777 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14778 | case "$ac_dir" in |
| 14779 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14780 | *) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14781 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14782 | # A ".." for each directory in $ac_dir_suffix. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14783 | 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] | 14784 | case $ac_top_builddir_sub in |
| 14785 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14786 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14787 | esac ;; |
| 14788 | esac |
| 14789 | ac_abs_top_builddir=$ac_pwd |
| 14790 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 14791 | # for backward compatibility: |
| 14792 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14793 | |
| 14794 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14795 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14796 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14797 | ac_top_srcdir=$ac_top_builddir_sub |
| 14798 | ac_abs_top_srcdir=$ac_pwd ;; |
| 14799 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14800 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14801 | ac_top_srcdir=$srcdir |
| 14802 | ac_abs_top_srcdir=$srcdir ;; |
| 14803 | *) # Relative name. |
| 14804 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 14805 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 14806 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14807 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14808 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14809 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14810 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14811 | case $ac_mode in |
| 14812 | :F) |
| 14813 | # |
| 14814 | # CONFIG_FILE |
| 14815 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14816 | |
| 14817 | case $INSTALL in |
| 14818 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14819 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14820 | esac |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 14821 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14822 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14823 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14824 | # If the template does not know about datarootdir, expand it. |
| 14825 | # FIXME: This hack should be removed a few years after 2.60. |
| 14826 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14827 | ac_sed_dataroot=' |
| 14828 | /datarootdir/ { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14829 | p |
| 14830 | q |
| 14831 | } |
| 14832 | /@datadir@/p |
| 14833 | /@docdir@/p |
| 14834 | /@infodir@/p |
| 14835 | /@localedir@/p |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14836 | /@mandir@/p' |
| 14837 | 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] | 14838 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 14839 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14840 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 14841 | $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] | 14842 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14843 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14844 | ac_datarootdir_hack=' |
| 14845 | s&@datadir@&$datadir&g |
| 14846 | s&@docdir@&$docdir&g |
| 14847 | s&@infodir@&$infodir&g |
| 14848 | s&@localedir@&$localedir&g |
| 14849 | s&@mandir@&$mandir&g |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14850 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14851 | esac |
| 14852 | _ACEOF |
| 14853 | |
| 14854 | # Neutralize VPATH when `$srcdir' = `.'. |
| 14855 | # Shell code in configure.ac might set extrasub. |
| 14856 | # FIXME: do we really want to maintain this feature? |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14857 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14858 | ac_sed_extra="$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14859 | $extrasub |
| 14860 | _ACEOF |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14861 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14862 | :t |
| 14863 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14864 | s|@configure_input@|$ac_sed_conf_input|;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14865 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14866 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14867 | s&@srcdir@&$ac_srcdir&;t t |
| 14868 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 14869 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 14870 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 14871 | s&@builddir@&$ac_builddir&;t t |
| 14872 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 14873 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 14874 | s&@INSTALL@&$ac_INSTALL&;t t |
| 14875 | $ac_datarootdir_hack |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14876 | " |
| 14877 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 14878 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14879 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14880 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 14881 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 14882 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14883 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14884 | which seems to be undefined. Please make sure it is defined." >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14885 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14886 | 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] | 14887 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14888 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14889 | case $ac_file in |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14890 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 14891 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 14892 | esac \ |
| 14893 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14894 | ;; |
| 14895 | :H) |
| 14896 | # |
| 14897 | # CONFIG_HEADER |
| 14898 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14899 | if test x"$ac_file" != x-; then |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14900 | { |
| 14901 | $as_echo "/* $configure_input */" \ |
| 14902 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 14903 | } >"$tmp/config.h" \ |
| 14904 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 14905 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 14906 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 14907 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14908 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14909 | rm -f "$ac_file" |
| 14910 | mv "$tmp/config.h" "$ac_file" \ |
| 14911 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14912 | fi |
| 14913 | else |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14914 | $as_echo "/* $configure_input */" \ |
| 14915 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 14916 | || as_fn_error "could not create -" "$LINENO" 5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14917 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14918 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14919 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14920 | |
| 14921 | esac |
| 14922 | |
| 14923 | done # for ac_tag |
| 14924 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14925 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14926 | as_fn_exit 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14927 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14928 | ac_clean_files=$ac_clean_files_save |
| 14929 | |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14930 | test $ac_write_fail = 0 || |
| 14931 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 14932 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14933 | |
| 14934 | # configure is writing to config.log, and then calls config.status. |
| 14935 | # config.status does its own redirection, appending to config.log. |
| 14936 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 14937 | # by configure, so config.status won't be able to write to it; its |
| 14938 | # output is simply discarded. So we exec the FD to /dev/null, |
| 14939 | # effectively closing config.log, so it can be properly (re)opened and |
| 14940 | # appended to by config.status. When coming back to configure, we |
| 14941 | # need to make the FD available again. |
| 14942 | if test "$no_create" != yes; then |
| 14943 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14944 | ac_config_status_args= |
| 14945 | test "$silent" = yes && |
| 14946 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14947 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14948 | $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] | 14949 | exec 5>>config.log |
| 14950 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 14951 | # would make configure fail if this is the last instruction. |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14952 | $ac_cs_success || as_fn_exit $? |
| 14953 | fi |
| 14954 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 14955 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 14956 | $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] | 14957 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14958 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14959 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 14960 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14961 | if test ! -f Modules/Setup |
| 14962 | then |
| 14963 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 14964 | fi |
| 14965 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 14966 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14967 | if test ! -f Modules/Setup.local |
| 14968 | then |
| 14969 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 14970 | fi |
| 14971 | |
| 14972 | echo "creating Makefile" |
| 14973 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 14974 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 14975 | Modules/Setup.local Modules/Setup |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 14976 | |
| 14977 | case $ac_sys_system in |
| 14978 | BeOS) |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14979 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 14980 | |
| 14981 | Support for BeOS is deprecated as of Python 2.6. |
| 14982 | See PEP 11 for the gory details. |
| 14983 | " >&5 |
Matthias Klose | a0bea5d | 2010-05-08 10:00:28 +0000 | [diff] [blame] | 14984 | $as_echo "$as_me: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 14985 | |
| 14986 | Support for BeOS is deprecated as of Python 2.6. |
| 14987 | See PEP 11 for the gory details. |
| 14988 | " >&2;} |
| 14989 | ;; |
| 14990 | *) ;; |
| 14991 | esac |
| 14992 | |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 14993 | mv config.c Modules |