Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Alexandre Julliard | 390aa83 | 2002-07-11 01:30:53 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.53 for Wine 20020710. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4 | # |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6 | # Free Software Foundation, Inc. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 11 | as_expr=expr |
| 12 | else |
| 13 | as_expr=false |
| 14 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17 | ## --------------------- ## |
| 18 | ## M4sh Initialization. ## |
| 19 | ## --------------------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20 | |
| 21 | # Be Bourne compatible |
| 22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 23 | emulate sh |
| 24 | NULLCMD=: |
| 25 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 26 | set -o posix |
| 27 | fi |
| 28 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 29 | # NLS nuisances. |
| 30 | # Support unset when possible. |
| 31 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 32 | as_unset=unset |
| 33 | else |
| 34 | as_unset=false |
| 35 | fi |
| 36 | |
| 37 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 38 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 39 | { LANG=C; export LANG; } |
| 40 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 41 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 42 | { LC_ALL=C; export LC_ALL; } |
| 43 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 44 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 45 | { LC_TIME=C; export LC_TIME; } |
| 46 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 47 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 48 | { LC_CTYPE=C; export LC_CTYPE; } |
| 49 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 50 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 51 | { LANGUAGE=C; export LANGUAGE; } |
| 52 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 53 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 54 | { LC_COLLATE=C; export LC_COLLATE; } |
| 55 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 56 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 57 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 58 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 59 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 60 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 61 | |
| 62 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 63 | # Name of the executable. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 64 | as_me=`(basename "$0") 2>/dev/null || |
| 65 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 66 | X"$0" : 'X\(//\)$' \| \ |
| 67 | X"$0" : 'X\(/\)$' \| \ |
| 68 | . : '\(.\)' 2>/dev/null || |
| 69 | echo X/"$0" | |
| 70 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 71 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 72 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 73 | s/.*/./; q'` |
| 74 | |
| 75 | # PATH needs CR, and LINENO needs CR and PATH. |
| 76 | # Avoid depending upon Character Ranges. |
| 77 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 78 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 79 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 80 | as_cr_digits='0123456789' |
| 81 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 82 | |
| 83 | # The user is always right. |
| 84 | if test "${PATH_SEPARATOR+set}" != set; then |
| 85 | echo "#! /bin/sh" >conftest.sh |
| 86 | echo "exit 0" >>conftest.sh |
| 87 | chmod +x conftest.sh |
| 88 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 89 | PATH_SEPARATOR=';' |
| 90 | else |
| 91 | PATH_SEPARATOR=: |
| 92 | fi |
| 93 | rm -f conftest.sh |
| 94 | fi |
| 95 | |
| 96 | |
| 97 | as_lineno_1=$LINENO |
| 98 | as_lineno_2=$LINENO |
| 99 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 100 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 101 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 102 | # Find who we are. Look in the path if we contain no path at all |
| 103 | # relative or not. |
| 104 | case $0 in |
| 105 | *[\\/]* ) as_myself=$0 ;; |
| 106 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 107 | for as_dir in $PATH |
| 108 | do |
| 109 | IFS=$as_save_IFS |
| 110 | test -z "$as_dir" && as_dir=. |
| 111 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 112 | done |
| 113 | |
| 114 | ;; |
| 115 | esac |
| 116 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 117 | # in which case we are not to be found in the path. |
| 118 | if test "x$as_myself" = x; then |
| 119 | as_myself=$0 |
| 120 | fi |
| 121 | if test ! -f "$as_myself"; then |
| 122 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 123 | { (exit 1); exit 1; }; } |
| 124 | fi |
| 125 | case $CONFIG_SHELL in |
| 126 | '') |
| 127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 128 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 129 | do |
| 130 | IFS=$as_save_IFS |
| 131 | test -z "$as_dir" && as_dir=. |
| 132 | for as_base in sh bash ksh sh5; do |
| 133 | case $as_dir in |
| 134 | /*) |
| 135 | if ("$as_dir/$as_base" -c ' |
| 136 | as_lineno_1=$LINENO |
| 137 | as_lineno_2=$LINENO |
| 138 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 139 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 140 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 141 | CONFIG_SHELL=$as_dir/$as_base |
| 142 | export CONFIG_SHELL |
| 143 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 144 | fi;; |
| 145 | esac |
| 146 | done |
| 147 | done |
| 148 | ;; |
| 149 | esac |
| 150 | |
| 151 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 152 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 153 | # line-number line before each line; the second 'sed' does the real |
| 154 | # work. The second script uses 'N' to pair each line-number line |
| 155 | # with the numbered line, and appends trailing '-' during |
| 156 | # substitution so that $LINENO is not a special case at line end. |
| 157 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 158 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 159 | sed '=' <$as_myself | |
| 160 | sed ' |
| 161 | N |
| 162 | s,$,-, |
| 163 | : loop |
| 164 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 165 | t loop |
| 166 | s,-$,, |
| 167 | s,^['$as_cr_digits']*\n,, |
| 168 | ' >$as_me.lineno && |
| 169 | chmod +x $as_me.lineno || |
| 170 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 171 | { (exit 1); exit 1; }; } |
| 172 | |
| 173 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 174 | # (the dirname of $[0] is not the place where we might find the |
| 175 | # original and so on. Autoconf is especially sensible to this). |
| 176 | . ./$as_me.lineno |
| 177 | # Exit status is that of the last command. |
| 178 | exit |
| 179 | } |
| 180 | |
| 181 | |
| 182 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 183 | *c*,-n*) ECHO_N= ECHO_C=' |
| 184 | ' ECHO_T=' ' ;; |
| 185 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 186 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 187 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 188 | |
| 189 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 190 | as_expr=expr |
| 191 | else |
| 192 | as_expr=false |
| 193 | fi |
| 194 | |
| 195 | rm -f conf$$ conf$$.exe conf$$.file |
| 196 | echo >conf$$.file |
| 197 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 198 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 199 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 200 | if test -f conf$$.exe; then |
| 201 | # Don't use ln at all; we don't have any links |
| 202 | as_ln_s='cp -p' |
| 203 | else |
| 204 | as_ln_s='ln -s' |
| 205 | fi |
| 206 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 207 | as_ln_s=ln |
| 208 | else |
| 209 | as_ln_s='cp -p' |
| 210 | fi |
| 211 | rm -f conf$$ conf$$.exe conf$$.file |
| 212 | |
| 213 | as_executable_p="test -f" |
| 214 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 215 | # Sed expression to map a string onto a valid CPP name. |
| 216 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 217 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 218 | # Sed expression to map a string onto a valid variable name. |
| 219 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 220 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 221 | |
| 222 | # IFS |
| 223 | # We need space, tab and new line, in precisely that order. |
| 224 | as_nl=' |
| 225 | ' |
| 226 | IFS=" $as_nl" |
| 227 | |
| 228 | # CDPATH. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 229 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 230 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 231 | |
| 232 | # Name of the host. |
| 233 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 234 | # so uname gets run too. |
| 235 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 236 | |
| 237 | exec 6>&1 |
| 238 | |
| 239 | # |
| 240 | # Initializations. |
| 241 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 242 | ac_default_prefix=/usr/local |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 243 | cross_compiling=no |
| 244 | subdirs= |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 245 | MFLAGS= |
| 246 | MAKEFLAGS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 247 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 248 | |
| 249 | # Maximum number of lines to put in a shell here document. |
| 250 | # This variable seems obsolete. It should probably be removed, and |
| 251 | # only ac_max_sed_lines should be used. |
| 252 | : ${ac_max_here_lines=38} |
| 253 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 254 | # Identity of this package. |
| 255 | PACKAGE_NAME='Wine' |
| 256 | PACKAGE_TARNAME='wine' |
Alexandre Julliard | 390aa83 | 2002-07-11 01:30:53 +0000 | [diff] [blame] | 257 | PACKAGE_VERSION='20020710' |
| 258 | PACKAGE_STRING='Wine 20020710' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 259 | PACKAGE_BUGREPORT='' |
| 260 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 261 | ac_unique_file="server/atom.c" |
| 262 | # Factoring default headers for most tests. |
| 263 | ac_includes_default="\ |
| 264 | #include <stdio.h> |
| 265 | #if HAVE_SYS_TYPES_H |
| 266 | # include <sys/types.h> |
| 267 | #endif |
| 268 | #if HAVE_SYS_STAT_H |
| 269 | # include <sys/stat.h> |
| 270 | #endif |
| 271 | #if STDC_HEADERS |
| 272 | # include <stdlib.h> |
| 273 | # include <stddef.h> |
| 274 | #else |
| 275 | # if HAVE_STDLIB_H |
| 276 | # include <stdlib.h> |
| 277 | # endif |
| 278 | #endif |
| 279 | #if HAVE_STRING_H |
| 280 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 281 | # include <memory.h> |
| 282 | # endif |
| 283 | # include <string.h> |
| 284 | #endif |
| 285 | #if HAVE_STRINGS_H |
| 286 | # include <strings.h> |
| 287 | #endif |
| 288 | #if HAVE_INTTYPES_H |
| 289 | # include <inttypes.h> |
| 290 | #else |
| 291 | # if HAVE_STDINT_H |
| 292 | # include <stdint.h> |
| 293 | # endif |
| 294 | #endif |
| 295 | #if HAVE_UNISTD_H |
| 296 | # include <unistd.h> |
| 297 | #endif" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 298 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 299 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 300 | # Initialize some variables set by options. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 301 | ac_init_help= |
| 302 | ac_init_version=false |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 303 | # The variables have the same names as the options, with |
| 304 | # dashes changed to underlines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 305 | cache_file=/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 306 | exec_prefix=NONE |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 307 | no_create= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 308 | no_recursion= |
| 309 | prefix=NONE |
| 310 | program_prefix=NONE |
| 311 | program_suffix=NONE |
| 312 | program_transform_name=s,x,x, |
| 313 | silent= |
| 314 | site= |
| 315 | srcdir= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 316 | verbose= |
| 317 | x_includes=NONE |
| 318 | x_libraries=NONE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 319 | |
| 320 | # Installation directory options. |
| 321 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 322 | # and all the variables that are supposed to be based on exec_prefix |
| 323 | # by default will actually change. |
| 324 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 325 | bindir='${exec_prefix}/bin' |
| 326 | sbindir='${exec_prefix}/sbin' |
| 327 | libexecdir='${exec_prefix}/libexec' |
| 328 | datadir='${prefix}/share' |
| 329 | sysconfdir='${prefix}/etc' |
| 330 | sharedstatedir='${prefix}/com' |
| 331 | localstatedir='${prefix}/var' |
| 332 | libdir='${exec_prefix}/lib' |
| 333 | includedir='${prefix}/include' |
| 334 | oldincludedir='/usr/include' |
| 335 | infodir='${prefix}/info' |
| 336 | mandir='${prefix}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 337 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 338 | ac_prev= |
| 339 | for ac_option |
| 340 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 341 | # If the previous option needs an argument, assign it. |
| 342 | if test -n "$ac_prev"; then |
| 343 | eval "$ac_prev=\$ac_option" |
| 344 | ac_prev= |
| 345 | continue |
| 346 | fi |
| 347 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 348 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 349 | |
| 350 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 351 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 352 | case $ac_option in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 353 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 354 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 355 | ac_prev=bindir ;; |
| 356 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 357 | bindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 358 | |
| 359 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 360 | ac_prev=build_alias ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 361 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 362 | build_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 363 | |
| 364 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 365 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 366 | ac_prev=cache_file ;; |
| 367 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 368 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 369 | cache_file=$ac_optarg ;; |
| 370 | |
| 371 | --config-cache | -C) |
| 372 | cache_file=config.cache ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 373 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 374 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 375 | ac_prev=datadir ;; |
| 376 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 377 | | --da=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 378 | datadir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 379 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 380 | -disable-* | --disable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 381 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 382 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 383 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 384 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 385 | { (exit 1); exit 1; }; } |
| 386 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 387 | eval "enable_$ac_feature=no" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 388 | |
| 389 | -enable-* | --enable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 390 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 391 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 392 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 393 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 394 | { (exit 1); exit 1; }; } |
| 395 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 396 | case $ac_option in |
| 397 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 398 | *) ac_optarg=yes ;; |
| 399 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 400 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 401 | |
| 402 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 403 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 404 | | --exec | --exe | --ex) |
| 405 | ac_prev=exec_prefix ;; |
| 406 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 407 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 408 | | --exec=* | --exe=* | --ex=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 409 | exec_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 410 | |
| 411 | -gas | --gas | --ga | --g) |
| 412 | # Obsolete; use --with-gas. |
| 413 | with_gas=yes ;; |
| 414 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 415 | -help | --help | --hel | --he | -h) |
| 416 | ac_init_help=long ;; |
| 417 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 418 | ac_init_help=recursive ;; |
| 419 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 420 | ac_init_help=short ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 421 | |
| 422 | -host | --host | --hos | --ho) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 423 | ac_prev=host_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 424 | -host=* | --host=* | --hos=* | --ho=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 425 | host_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 426 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 427 | -includedir | --includedir | --includedi | --included | --include \ |
| 428 | | --includ | --inclu | --incl | --inc) |
| 429 | ac_prev=includedir ;; |
| 430 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 431 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 432 | includedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 433 | |
| 434 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 435 | ac_prev=infodir ;; |
| 436 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 437 | infodir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 438 | |
| 439 | -libdir | --libdir | --libdi | --libd) |
| 440 | ac_prev=libdir ;; |
| 441 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 442 | libdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 443 | |
| 444 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 445 | | --libexe | --libex | --libe) |
| 446 | ac_prev=libexecdir ;; |
| 447 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 448 | | --libexe=* | --libex=* | --libe=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 449 | libexecdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 450 | |
| 451 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 452 | | --localstate | --localstat | --localsta | --localst \ |
| 453 | | --locals | --local | --loca | --loc | --lo) |
| 454 | ac_prev=localstatedir ;; |
| 455 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 456 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 457 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 458 | localstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 459 | |
| 460 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 461 | ac_prev=mandir ;; |
| 462 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 463 | mandir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 464 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 465 | -nfp | --nfp | --nf) |
| 466 | # Obsolete; use --without-fp. |
| 467 | with_fp=no ;; |
| 468 | |
| 469 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 470 | | --no-cr | --no-c | -n) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 471 | no_create=yes ;; |
| 472 | |
| 473 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 474 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 475 | no_recursion=yes ;; |
| 476 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 477 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 478 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 479 | | --oldin | --oldi | --old | --ol | --o) |
| 480 | ac_prev=oldincludedir ;; |
| 481 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 482 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 483 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 484 | oldincludedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 485 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 486 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 487 | ac_prev=prefix ;; |
| 488 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 489 | prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 490 | |
| 491 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 492 | | --program-pre | --program-pr | --program-p) |
| 493 | ac_prev=program_prefix ;; |
| 494 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 495 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 496 | program_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 497 | |
| 498 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 499 | | --program-suf | --program-su | --program-s) |
| 500 | ac_prev=program_suffix ;; |
| 501 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 502 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 503 | program_suffix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 504 | |
| 505 | -program-transform-name | --program-transform-name \ |
| 506 | | --program-transform-nam | --program-transform-na \ |
| 507 | | --program-transform-n | --program-transform- \ |
| 508 | | --program-transform | --program-transfor \ |
| 509 | | --program-transfo | --program-transf \ |
| 510 | | --program-trans | --program-tran \ |
| 511 | | --progr-tra | --program-tr | --program-t) |
| 512 | ac_prev=program_transform_name ;; |
| 513 | -program-transform-name=* | --program-transform-name=* \ |
| 514 | | --program-transform-nam=* | --program-transform-na=* \ |
| 515 | | --program-transform-n=* | --program-transform-=* \ |
| 516 | | --program-transform=* | --program-transfor=* \ |
| 517 | | --program-transfo=* | --program-transf=* \ |
| 518 | | --program-trans=* | --program-tran=* \ |
| 519 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 520 | program_transform_name=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 521 | |
| 522 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 523 | | -silent | --silent | --silen | --sile | --sil) |
| 524 | silent=yes ;; |
| 525 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 526 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 527 | ac_prev=sbindir ;; |
| 528 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 529 | | --sbi=* | --sb=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 530 | sbindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 531 | |
| 532 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 533 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 534 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 535 | | --sha | --sh) |
| 536 | ac_prev=sharedstatedir ;; |
| 537 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 538 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 539 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 540 | | --sha=* | --sh=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 541 | sharedstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 542 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 543 | -site | --site | --sit) |
| 544 | ac_prev=site ;; |
| 545 | -site=* | --site=* | --sit=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 546 | site=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 547 | |
| 548 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 549 | ac_prev=srcdir ;; |
| 550 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 551 | srcdir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 552 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 553 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 554 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 555 | ac_prev=sysconfdir ;; |
| 556 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 557 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 558 | sysconfdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 559 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 560 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 561 | ac_prev=target_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 562 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 563 | target_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 564 | |
| 565 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 566 | verbose=yes ;; |
| 567 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 568 | -version | --version | --versio | --versi | --vers | -V) |
| 569 | ac_init_version=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 570 | |
| 571 | -with-* | --with-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 572 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 573 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 574 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 575 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 576 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 577 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 578 | case $ac_option in |
| 579 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 580 | *) ac_optarg=yes ;; |
| 581 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 582 | eval "with_$ac_package='$ac_optarg'" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 583 | |
| 584 | -without-* | --without-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 585 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 586 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 587 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 588 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 589 | { (exit 1); exit 1; }; } |
| 590 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 591 | eval "with_$ac_package=no" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 592 | |
| 593 | --x) |
| 594 | # Obsolete; use --with-x. |
| 595 | with_x=yes ;; |
| 596 | |
| 597 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 598 | | --x-incl | --x-inc | --x-in | --x-i) |
| 599 | ac_prev=x_includes ;; |
| 600 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 601 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 602 | x_includes=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 603 | |
| 604 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 605 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 606 | ac_prev=x_libraries ;; |
| 607 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 608 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 609 | x_libraries=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 610 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 611 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 612 | Try \`$0 --help' for more information." >&2 |
| 613 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 614 | ;; |
| 615 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 616 | *=*) |
| 617 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 618 | # Reject names that are not valid shell variable names. |
| 619 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 620 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 621 | { (exit 1); exit 1; }; } |
| 622 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 623 | eval "$ac_envvar='$ac_optarg'" |
| 624 | export $ac_envvar ;; |
| 625 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 626 | *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 627 | # FIXME: should be removed in autoconf 3.0. |
| 628 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 629 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 630 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 631 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 632 | ;; |
| 633 | |
| 634 | esac |
| 635 | done |
| 636 | |
| 637 | if test -n "$ac_prev"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 638 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 639 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 640 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 641 | fi |
| 642 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 643 | # Be sure to have absolute paths. |
| 644 | for ac_var in exec_prefix prefix |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 645 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 646 | eval ac_val=$`echo $ac_var` |
| 647 | case $ac_val in |
| 648 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 649 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 650 | { (exit 1); exit 1; }; };; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 651 | esac |
| 652 | done |
| 653 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 654 | # Be sure to have absolute paths. |
| 655 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 656 | localstatedir libdir includedir oldincludedir infodir mandir |
| 657 | do |
| 658 | eval ac_val=$`echo $ac_var` |
| 659 | case $ac_val in |
| 660 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 661 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 662 | { (exit 1); exit 1; }; };; |
| 663 | esac |
| 664 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 665 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 666 | # There might be people who depend on the old broken behavior: `$host' |
| 667 | # used to hold the argument of --host etc. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 668 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 669 | build=$build_alias |
| 670 | host=$host_alias |
| 671 | target=$target_alias |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 672 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 673 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 674 | if test "x$host_alias" != x; then |
| 675 | if test "x$build_alias" = x; then |
| 676 | cross_compiling=maybe |
| 677 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 678 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 679 | elif test "x$build_alias" != "x$host_alias"; then |
| 680 | cross_compiling=yes |
| 681 | fi |
| 682 | fi |
| 683 | |
| 684 | ac_tool_prefix= |
| 685 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 686 | |
| 687 | test "$silent" = yes && exec 6>/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 688 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 689 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 690 | # Find the source files, if location was not specified. |
| 691 | if test -z "$srcdir"; then |
| 692 | ac_srcdir_defaulted=yes |
| 693 | # Try the directory containing this script, then its parent. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 694 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 695 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 696 | X"$0" : 'X\(//\)[^/]' \| \ |
| 697 | X"$0" : 'X\(//\)$' \| \ |
| 698 | X"$0" : 'X\(/\)' \| \ |
| 699 | . : '\(.\)' 2>/dev/null || |
| 700 | echo X"$0" | |
| 701 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 702 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 703 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 704 | /^X\(\/\).*/{ s//\1/; q; } |
| 705 | s/.*/./; q'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 706 | srcdir=$ac_confdir |
| 707 | if test ! -r $srcdir/$ac_unique_file; then |
| 708 | srcdir=.. |
| 709 | fi |
| 710 | else |
| 711 | ac_srcdir_defaulted=no |
| 712 | fi |
| 713 | if test ! -r $srcdir/$ac_unique_file; then |
| 714 | if test "$ac_srcdir_defaulted" = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 715 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 716 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 717 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 718 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 719 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 720 | fi |
| 721 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 722 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 723 | ac_env_build_alias_set=${build_alias+set} |
| 724 | ac_env_build_alias_value=$build_alias |
| 725 | ac_cv_env_build_alias_set=${build_alias+set} |
| 726 | ac_cv_env_build_alias_value=$build_alias |
| 727 | ac_env_host_alias_set=${host_alias+set} |
| 728 | ac_env_host_alias_value=$host_alias |
| 729 | ac_cv_env_host_alias_set=${host_alias+set} |
| 730 | ac_cv_env_host_alias_value=$host_alias |
| 731 | ac_env_target_alias_set=${target_alias+set} |
| 732 | ac_env_target_alias_value=$target_alias |
| 733 | ac_cv_env_target_alias_set=${target_alias+set} |
| 734 | ac_cv_env_target_alias_value=$target_alias |
| 735 | ac_env_CC_set=${CC+set} |
| 736 | ac_env_CC_value=$CC |
| 737 | ac_cv_env_CC_set=${CC+set} |
| 738 | ac_cv_env_CC_value=$CC |
| 739 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 740 | ac_env_CFLAGS_value=$CFLAGS |
| 741 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 742 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 743 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 744 | ac_env_LDFLAGS_value=$LDFLAGS |
| 745 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 746 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 747 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 748 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 749 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 750 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 751 | ac_env_CPP_set=${CPP+set} |
| 752 | ac_env_CPP_value=$CPP |
| 753 | ac_cv_env_CPP_set=${CPP+set} |
| 754 | ac_cv_env_CPP_value=$CPP |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 755 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 756 | # |
| 757 | # Report the --help message. |
| 758 | # |
| 759 | if test "$ac_init_help" = "long"; then |
| 760 | # Omit some internal or obsolete options to make the list less imposing. |
| 761 | # This message is too long to be a string in the A/UX 3.1 sh. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 762 | cat <<_ACEOF |
Alexandre Julliard | 390aa83 | 2002-07-11 01:30:53 +0000 | [diff] [blame] | 763 | \`configure' configures Wine 20020710 to adapt to many kinds of systems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 764 | |
| 765 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 766 | |
| 767 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 768 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 769 | |
| 770 | Defaults for the options are specified in brackets. |
| 771 | |
| 772 | Configuration: |
| 773 | -h, --help display this help and exit |
| 774 | --help=short display options specific to this package |
| 775 | --help=recursive display the short help of all the included packages |
| 776 | -V, --version display version information and exit |
| 777 | -q, --quiet, --silent do not print \`checking...' messages |
| 778 | --cache-file=FILE cache test results in FILE [disabled] |
| 779 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 780 | -n, --no-create do not create output files |
| 781 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 782 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 783 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 784 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 785 | cat <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 786 | Installation directories: |
| 787 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 788 | [$ac_default_prefix] |
| 789 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 790 | [PREFIX] |
| 791 | |
| 792 | By default, \`make install' will install all the files in |
| 793 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 794 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 795 | for instance \`--prefix=\$HOME'. |
| 796 | |
| 797 | For better control, use the options below. |
| 798 | |
| 799 | Fine tuning of the installation directories: |
| 800 | --bindir=DIR user executables [EPREFIX/bin] |
| 801 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 802 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 803 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 804 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 805 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 806 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 807 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 808 | --includedir=DIR C header files [PREFIX/include] |
| 809 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 810 | --infodir=DIR info documentation [PREFIX/info] |
| 811 | --mandir=DIR man documentation [PREFIX/man] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 812 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 813 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 814 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 815 | |
| 816 | X features: |
| 817 | --x-includes=DIR X include files are in DIR |
| 818 | --x-libraries=DIR X library files are in DIR |
| 819 | |
| 820 | System types: |
| 821 | --build=BUILD configure for building on BUILD [guessed] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 822 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 823 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 824 | fi |
| 825 | |
| 826 | if test -n "$ac_init_help"; then |
| 827 | case $ac_init_help in |
Alexandre Julliard | 390aa83 | 2002-07-11 01:30:53 +0000 | [diff] [blame] | 828 | short | recursive ) echo "Configuration of Wine 20020710:";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 829 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 830 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 831 | |
| 832 | Optional Features: |
| 833 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 834 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 835 | --disable-debug compile out all debugging messages |
| 836 | --disable-trace compile out TRACE messages |
| 837 | --enable-opengl force usage of OpenGL even if the latter is |
| 838 | thread-safe via pthread |
| 839 | |
| 840 | Optional Packages: |
| 841 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 842 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 843 | --without-curses do not use curses |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 844 | --with-wine-tools=<dir> use Wine tools from directory <dir> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 845 | --with-x use the X Window System |
| 846 | |
| 847 | Some influential environment variables: |
| 848 | CC C compiler command |
| 849 | CFLAGS C compiler flags |
| 850 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 851 | nonstandard directory <lib dir> |
| 852 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 853 | headers in a nonstandard directory <include dir> |
| 854 | CPP C preprocessor |
| 855 | |
| 856 | Use these variables to override the choices made by `configure' or to help |
| 857 | it to find libraries and programs with nonstandard names/locations. |
| 858 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 859 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 860 | fi |
| 861 | |
| 862 | if test "$ac_init_help" = "recursive"; then |
| 863 | # If there are subdirs, report their specific --help. |
| 864 | ac_popdir=`pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 865 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 866 | test -d $ac_dir || continue |
| 867 | ac_builddir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 868 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 869 | if test "$ac_dir" != .; then |
| 870 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 871 | # A "../" for each directory in $ac_dir_suffix. |
| 872 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 873 | else |
| 874 | ac_dir_suffix= ac_top_builddir= |
| 875 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 876 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 877 | case $srcdir in |
| 878 | .) # No --srcdir option. We are building in place. |
| 879 | ac_srcdir=. |
| 880 | if test -z "$ac_top_builddir"; then |
| 881 | ac_top_srcdir=. |
| 882 | else |
| 883 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 884 | fi ;; |
| 885 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 886 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 887 | ac_top_srcdir=$srcdir ;; |
| 888 | *) # Relative path. |
| 889 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 890 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 891 | esac |
| 892 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 893 | # absolute. |
| 894 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 895 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 896 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 897 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 898 | |
| 899 | cd $ac_dir |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 900 | # Check for guested configure; otherwise get Cygnus style configure. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 901 | if test -f $ac_srcdir/configure.gnu; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 902 | echo |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 903 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 904 | elif test -f $ac_srcdir/configure; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 905 | echo |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 906 | $SHELL $ac_srcdir/configure --help=recursive |
| 907 | elif test -f $ac_srcdir/configure.ac || |
| 908 | test -f $ac_srcdir/configure.in; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 909 | echo |
| 910 | $ac_configure --help |
| 911 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 912 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 913 | fi |
| 914 | cd $ac_popdir |
| 915 | done |
| 916 | fi |
| 917 | |
| 918 | test -n "$ac_init_help" && exit 0 |
| 919 | if $ac_init_version; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 920 | cat <<\_ACEOF |
Alexandre Julliard | 390aa83 | 2002-07-11 01:30:53 +0000 | [diff] [blame] | 921 | Wine configure 20020710 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 922 | generated by GNU Autoconf 2.53 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 923 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 924 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 925 | Free Software Foundation, Inc. |
| 926 | This configure script is free software; the Free Software Foundation |
| 927 | gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 928 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 929 | exit 0 |
| 930 | fi |
| 931 | exec 5>config.log |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 932 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 933 | This file contains any messages produced by compilers while |
| 934 | running configure, to aid debugging if configure makes a mistake. |
| 935 | |
Alexandre Julliard | 390aa83 | 2002-07-11 01:30:53 +0000 | [diff] [blame] | 936 | It was created by Wine $as_me 20020710, which was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 937 | generated by GNU Autoconf 2.53. Invocation command line was |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 938 | |
| 939 | $ $0 $@ |
| 940 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 941 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 942 | { |
| 943 | cat <<_ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 944 | ## --------- ## |
| 945 | ## Platform. ## |
| 946 | ## --------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 947 | |
| 948 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 949 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 950 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 951 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 952 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 953 | |
| 954 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 955 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 956 | |
| 957 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 958 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 959 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 960 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 961 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 962 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 963 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 964 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 965 | _ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 966 | |
| 967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 968 | for as_dir in $PATH |
| 969 | do |
| 970 | IFS=$as_save_IFS |
| 971 | test -z "$as_dir" && as_dir=. |
| 972 | echo "PATH: $as_dir" |
| 973 | done |
| 974 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 975 | } >&5 |
| 976 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 977 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 978 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 979 | |
| 980 | ## ----------- ## |
| 981 | ## Core tests. ## |
| 982 | ## ----------- ## |
| 983 | |
| 984 | _ACEOF |
| 985 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 986 | |
| 987 | # Keep a trace of the command line. |
| 988 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 989 | # Also quote any args containing shell meta-characters. |
| 990 | ac_configure_args= |
| 991 | ac_sep= |
| 992 | for ac_arg |
| 993 | do |
| 994 | case $ac_arg in |
| 995 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 996 | | --no-cr | --no-c | -n ) continue ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 997 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 998 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 999 | continue ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1000 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1001 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1002 | esac |
| 1003 | case " $ac_configure_args " in |
| 1004 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1005 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1006 | ac_sep=" " ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1007 | esac |
| 1008 | # Get rid of the leading space. |
| 1009 | done |
| 1010 | |
| 1011 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1012 | # config.log. We remove comments because anyway the quotes in there |
| 1013 | # would cause problems or look ugly. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1014 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1015 | # such as our DU 5.0 friend, will then `close' the trap. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1016 | trap 'exit_status=$? |
| 1017 | # Save into config.log some information that might help in debugging. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1018 | { |
| 1019 | echo |
| 1020 | cat <<\_ASBOX |
| 1021 | ## ---------------- ## |
| 1022 | ## Cache variables. ## |
| 1023 | ## ---------------- ## |
| 1024 | _ASBOX |
| 1025 | echo |
| 1026 | # The following way of writing the cache mishandles newlines in values, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1027 | { |
| 1028 | (set) 2>&1 | |
| 1029 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1030 | *ac_space=\ *) |
| 1031 | sed -n \ |
| 1032 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1033 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1034 | ;; |
| 1035 | *) |
| 1036 | sed -n \ |
| 1037 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1038 | ;; |
| 1039 | esac; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1040 | } |
| 1041 | echo |
| 1042 | if test -s confdefs.h; then |
| 1043 | cat <<\_ASBOX |
| 1044 | ## ----------- ## |
| 1045 | ## confdefs.h. ## |
| 1046 | ## ----------- ## |
| 1047 | _ASBOX |
| 1048 | echo |
| 1049 | sed "/^$/d" confdefs.h |
| 1050 | echo |
| 1051 | fi |
| 1052 | test "$ac_signal" != 0 && |
| 1053 | echo "$as_me: caught signal $ac_signal" |
| 1054 | echo "$as_me: exit $exit_status" |
| 1055 | } >&5 |
| 1056 | rm -f core core.* *.core && |
| 1057 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1058 | exit $exit_status |
| 1059 | ' 0 |
| 1060 | for ac_signal in 1 2 13 15; do |
| 1061 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1062 | done |
| 1063 | ac_signal=0 |
| 1064 | |
| 1065 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1066 | rm -rf conftest* confdefs.h |
| 1067 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1068 | echo >confdefs.h |
| 1069 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1070 | # Predefined preprocessor variables. |
| 1071 | |
| 1072 | cat >>confdefs.h <<_ACEOF |
| 1073 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1074 | _ACEOF |
| 1075 | |
| 1076 | |
| 1077 | cat >>confdefs.h <<_ACEOF |
| 1078 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1079 | _ACEOF |
| 1080 | |
| 1081 | |
| 1082 | cat >>confdefs.h <<_ACEOF |
| 1083 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1084 | _ACEOF |
| 1085 | |
| 1086 | |
| 1087 | cat >>confdefs.h <<_ACEOF |
| 1088 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1089 | _ACEOF |
| 1090 | |
| 1091 | |
| 1092 | cat >>confdefs.h <<_ACEOF |
| 1093 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1094 | _ACEOF |
| 1095 | |
| 1096 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1097 | # Let the site file select an alternate cache file if it wants to. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1098 | # Prefer explicitly selected file to automatically selected ones. |
| 1099 | if test -z "$CONFIG_SITE"; then |
| 1100 | if test "x$prefix" != xNONE; then |
| 1101 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1102 | else |
| 1103 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1104 | fi |
| 1105 | fi |
| 1106 | for ac_site_file in $CONFIG_SITE; do |
| 1107 | if test -r "$ac_site_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1108 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1109 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1110 | sed 's/^/| /' "$ac_site_file" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1111 | . "$ac_site_file" |
| 1112 | fi |
| 1113 | done |
| 1114 | |
| 1115 | if test -r "$cache_file"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1116 | # Some versions of bash will fail to source /dev/null (special |
| 1117 | # files actually), so we avoid doing that. |
| 1118 | if test -f "$cache_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1119 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1120 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1121 | case $cache_file in |
| 1122 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1123 | *) . ./$cache_file;; |
| 1124 | esac |
| 1125 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1126 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1127 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1128 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1129 | >$cache_file |
| 1130 | fi |
| 1131 | |
| 1132 | # Check that the precious variables saved in the cache have kept the same |
| 1133 | # value. |
| 1134 | ac_cache_corrupted=false |
| 1135 | for ac_var in `(set) 2>&1 | |
| 1136 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1137 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1138 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1139 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1140 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1141 | case $ac_old_set,$ac_new_set in |
| 1142 | set,) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1143 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1144 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1145 | ac_cache_corrupted=: ;; |
| 1146 | ,set) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1147 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1148 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1149 | ac_cache_corrupted=: ;; |
| 1150 | ,);; |
| 1151 | *) |
| 1152 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1153 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1154 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1155 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1156 | echo "$as_me: former value: $ac_old_val" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1157 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1158 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1159 | ac_cache_corrupted=: |
| 1160 | fi;; |
| 1161 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1162 | # Pass precious variables to config.status. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1163 | if test "$ac_new_set" = set; then |
| 1164 | case $ac_new_val in |
| 1165 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1166 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1167 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1168 | esac |
| 1169 | case " $ac_configure_args " in |
| 1170 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1171 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1172 | esac |
| 1173 | fi |
| 1174 | done |
| 1175 | if $ac_cache_corrupted; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1176 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1177 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1178 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1179 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1180 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1181 | fi |
| 1182 | |
| 1183 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1184 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1188 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1189 | |
| 1190 | |
| 1191 | |
| 1192 | |
| 1193 | |
| 1194 | |
| 1195 | |
| 1196 | |
| 1197 | |
| 1198 | |
| 1199 | |
| 1200 | |
| 1201 | |
| 1202 | |
| 1203 | |
| 1204 | |
| 1205 | |
| 1206 | |
| 1207 | |
| 1208 | |
| 1209 | |
| 1210 | |
| 1211 | |
| 1212 | |
| 1213 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1214 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1215 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1216 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1217 | ac_aux_dir= |
| 1218 | for ac_dir in tools $srcdir/tools; do |
| 1219 | if test -f $ac_dir/install-sh; then |
| 1220 | ac_aux_dir=$ac_dir |
| 1221 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1222 | break |
| 1223 | elif test -f $ac_dir/install.sh; then |
| 1224 | ac_aux_dir=$ac_dir |
| 1225 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1226 | break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1227 | elif test -f $ac_dir/shtool; then |
| 1228 | ac_aux_dir=$ac_dir |
| 1229 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1230 | break |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1231 | fi |
| 1232 | done |
| 1233 | if test -z "$ac_aux_dir"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1234 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1235 | echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;} |
| 1236 | { (exit 1); exit 1; }; } |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1237 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1238 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1239 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1240 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 1241 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1242 | |
| 1243 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame^] | 1244 | LIBEXT="so" |
| 1245 | |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 1246 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1247 | # Check whether --enable-debug or --disable-debug was given. |
| 1248 | if test "${enable_debug+set}" = set; then |
| 1249 | enableval="$enable_debug" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1250 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1251 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1252 | # Check whether --enable-trace or --disable-trace was given. |
| 1253 | if test "${enable_trace+set}" = set; then |
| 1254 | enableval="$enable_trace" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1255 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1256 | fi; |
| 1257 | # Check whether --enable-opengl or --disable-opengl was given. |
| 1258 | if test "${enable_opengl+set}" = set; then |
| 1259 | enableval="$enable_opengl" |
| 1260 | |
| 1261 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1262 | |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1263 | # Check whether --with-curses or --without-curses was given. |
| 1264 | if test "${with_curses+set}" = set; then |
| 1265 | withval="$with_curses" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1266 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1267 | fi; |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1268 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1269 | # Check whether --with-wine-tools or --without-wine-tools was given. |
| 1270 | if test "${with_wine_tools+set}" = set; then |
| 1271 | withval="$with_wine_tools" |
| 1272 | |
| 1273 | fi; |
| 1274 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1275 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1276 | if test "x$enable_debug" = "xno" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1277 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1278 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1279 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1280 | #define NO_DEBUG_MSGS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1281 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1282 | |
| 1283 | fi |
| 1284 | if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1285 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1286 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1287 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1288 | #define NO_TRACE_MSGS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1289 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1290 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1291 | fi |
| 1292 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1293 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1294 | # Make sure we can run config.sub. |
| 1295 | $ac_config_sub sun4 >/dev/null 2>&1 || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1296 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1297 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1298 | { (exit 1); exit 1; }; } |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 1299 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1300 | echo "$as_me:$LINENO: checking build system type" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1301 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1302 | if test "${ac_cv_build+set}" = set; then |
| 1303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1304 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1305 | ac_cv_build_alias=$build_alias |
| 1306 | test -z "$ac_cv_build_alias" && |
| 1307 | ac_cv_build_alias=`$ac_config_guess` |
| 1308 | test -z "$ac_cv_build_alias" && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1309 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1310 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1311 | { (exit 1); exit 1; }; } |
| 1312 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1313 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1314 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1315 | { (exit 1); exit 1; }; } |
| 1316 | |
| 1317 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1318 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1319 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1320 | build=$ac_cv_build |
| 1321 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1322 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1323 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1324 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1325 | |
| 1326 | echo "$as_me:$LINENO: checking host system type" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1327 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1328 | if test "${ac_cv_host+set}" = set; then |
| 1329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1330 | else |
| 1331 | ac_cv_host_alias=$host_alias |
| 1332 | test -z "$ac_cv_host_alias" && |
| 1333 | ac_cv_host_alias=$ac_cv_build_alias |
| 1334 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1335 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1336 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1337 | { (exit 1); exit 1; }; } |
| 1338 | |
| 1339 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1340 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1341 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1342 | host=$ac_cv_host |
| 1343 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1344 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1345 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1346 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1347 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1348 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1349 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
| 1350 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 1351 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1353 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1354 | cat >conftest.make <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1355 | all: |
| 1356 | @echo 'ac_maketemp="${MAKE}"' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1357 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1358 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1359 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1360 | if test -n "$ac_maketemp"; then |
| 1361 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1362 | else |
| 1363 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1364 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1365 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1366 | fi |
| 1367 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1368 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1369 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1370 | SET_MAKE= |
| 1371 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1372 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1373 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1374 | SET_MAKE="MAKE=${MAKE-make}" |
| 1375 | fi |
| 1376 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1377 | ac_ext=c |
| 1378 | ac_cpp='$CPP $CPPFLAGS' |
| 1379 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1380 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1381 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1382 | if test -n "$ac_tool_prefix"; then |
| 1383 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1384 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1385 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1387 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1389 | else |
| 1390 | if test -n "$CC"; then |
| 1391 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1392 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1394 | for as_dir in $PATH |
| 1395 | do |
| 1396 | IFS=$as_save_IFS |
| 1397 | test -z "$as_dir" && as_dir=. |
| 1398 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1399 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1400 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1402 | break 2 |
| 1403 | fi |
| 1404 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1405 | done |
| 1406 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1407 | fi |
| 1408 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1409 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1410 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1411 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1412 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1413 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1414 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1415 | echo "${ECHO_T}no" >&6 |
| 1416 | fi |
| 1417 | |
| 1418 | fi |
| 1419 | if test -z "$ac_cv_prog_CC"; then |
| 1420 | ac_ct_CC=$CC |
| 1421 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1422 | set dummy gcc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1423 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1425 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1427 | else |
| 1428 | if test -n "$ac_ct_CC"; then |
| 1429 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1430 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1432 | for as_dir in $PATH |
| 1433 | do |
| 1434 | IFS=$as_save_IFS |
| 1435 | test -z "$as_dir" && as_dir=. |
| 1436 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1437 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1438 | ac_cv_prog_ac_ct_CC="gcc" |
| 1439 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1440 | break 2 |
| 1441 | fi |
| 1442 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1443 | done |
| 1444 | |
| 1445 | fi |
| 1446 | fi |
| 1447 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1448 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1449 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1450 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1451 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1452 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1453 | echo "${ECHO_T}no" >&6 |
| 1454 | fi |
| 1455 | |
| 1456 | CC=$ac_ct_CC |
| 1457 | else |
| 1458 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1459 | fi |
| 1460 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1461 | if test -z "$CC"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1462 | if test -n "$ac_tool_prefix"; then |
| 1463 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1464 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1465 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1467 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1469 | else |
| 1470 | if test -n "$CC"; then |
| 1471 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1472 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1474 | for as_dir in $PATH |
| 1475 | do |
| 1476 | IFS=$as_save_IFS |
| 1477 | test -z "$as_dir" && as_dir=. |
| 1478 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1479 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1480 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1481 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1482 | break 2 |
| 1483 | fi |
| 1484 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1485 | done |
| 1486 | |
| 1487 | fi |
| 1488 | fi |
| 1489 | CC=$ac_cv_prog_CC |
| 1490 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1491 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1492 | echo "${ECHO_T}$CC" >&6 |
| 1493 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1494 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1495 | echo "${ECHO_T}no" >&6 |
| 1496 | fi |
| 1497 | |
| 1498 | fi |
| 1499 | if test -z "$ac_cv_prog_CC"; then |
| 1500 | ac_ct_CC=$CC |
| 1501 | # Extract the first word of "cc", so it can be a program name with args. |
| 1502 | set dummy cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1503 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1504 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1505 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1507 | else |
| 1508 | if test -n "$ac_ct_CC"; then |
| 1509 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1510 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1512 | for as_dir in $PATH |
| 1513 | do |
| 1514 | IFS=$as_save_IFS |
| 1515 | test -z "$as_dir" && as_dir=. |
| 1516 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1517 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1518 | ac_cv_prog_ac_ct_CC="cc" |
| 1519 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1520 | break 2 |
| 1521 | fi |
| 1522 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1523 | done |
| 1524 | |
| 1525 | fi |
| 1526 | fi |
| 1527 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1528 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1529 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1530 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1531 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1532 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1533 | echo "${ECHO_T}no" >&6 |
| 1534 | fi |
| 1535 | |
| 1536 | CC=$ac_ct_CC |
| 1537 | else |
| 1538 | CC="$ac_cv_prog_CC" |
| 1539 | fi |
| 1540 | |
| 1541 | fi |
| 1542 | if test -z "$CC"; then |
| 1543 | # Extract the first word of "cc", so it can be a program name with args. |
| 1544 | set dummy cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1545 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1546 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1547 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1549 | else |
| 1550 | if test -n "$CC"; then |
| 1551 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1552 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1553 | ac_prog_rejected=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1555 | for as_dir in $PATH |
| 1556 | do |
| 1557 | IFS=$as_save_IFS |
| 1558 | test -z "$as_dir" && as_dir=. |
| 1559 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1560 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1561 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1562 | ac_prog_rejected=yes |
| 1563 | continue |
| 1564 | fi |
| 1565 | ac_cv_prog_CC="cc" |
| 1566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1567 | break 2 |
| 1568 | fi |
| 1569 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1570 | done |
| 1571 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1572 | if test $ac_prog_rejected = yes; then |
| 1573 | # We found a bogon in the path, so make sure we never use it. |
| 1574 | set dummy $ac_cv_prog_CC |
| 1575 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1576 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1577 | # We chose a different compiler from the bogus one. |
| 1578 | # However, it has the same basename, so the bogon will be chosen |
| 1579 | # first if we set CC to just the basename; use the full file name. |
| 1580 | shift |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1581 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1582 | shift |
| 1583 | ac_cv_prog_CC="$@" |
| 1584 | fi |
| 1585 | fi |
| 1586 | fi |
| 1587 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1588 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1589 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1590 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1591 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1592 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1593 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1594 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1595 | fi |
| 1596 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1597 | fi |
| 1598 | if test -z "$CC"; then |
| 1599 | if test -n "$ac_tool_prefix"; then |
| 1600 | for ac_prog in cl |
| 1601 | do |
| 1602 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1603 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1604 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1606 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1608 | else |
| 1609 | if test -n "$CC"; then |
| 1610 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1611 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1613 | for as_dir in $PATH |
| 1614 | do |
| 1615 | IFS=$as_save_IFS |
| 1616 | test -z "$as_dir" && as_dir=. |
| 1617 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1618 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1619 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1621 | break 2 |
| 1622 | fi |
| 1623 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1624 | done |
| 1625 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1626 | fi |
| 1627 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1628 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1629 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1630 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1631 | echo "${ECHO_T}$CC" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1632 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1633 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1634 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1635 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1636 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1637 | test -n "$CC" && break |
| 1638 | done |
| 1639 | fi |
| 1640 | if test -z "$CC"; then |
| 1641 | ac_ct_CC=$CC |
| 1642 | for ac_prog in cl |
| 1643 | do |
| 1644 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1645 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1646 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1647 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1648 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1650 | else |
| 1651 | if test -n "$ac_ct_CC"; then |
| 1652 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1653 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1655 | for as_dir in $PATH |
| 1656 | do |
| 1657 | IFS=$as_save_IFS |
| 1658 | test -z "$as_dir" && as_dir=. |
| 1659 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1660 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1661 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1662 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1663 | break 2 |
| 1664 | fi |
| 1665 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1666 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1667 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1668 | fi |
| 1669 | fi |
| 1670 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1671 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1672 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1673 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1674 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1675 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1676 | echo "${ECHO_T}no" >&6 |
| 1677 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1678 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1679 | test -n "$ac_ct_CC" && break |
| 1680 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1681 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1682 | CC=$ac_ct_CC |
| 1683 | fi |
| 1684 | |
| 1685 | fi |
| 1686 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1687 | |
| 1688 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 1689 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1690 | { (exit 1); exit 1; }; } |
| 1691 | |
| 1692 | # Provide some information about the compiler. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1693 | echo "$as_me:$LINENO:" \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1694 | "checking for C compiler version" >&5 |
| 1695 | ac_compiler=`set X $ac_compile; echo $2` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1696 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1697 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1698 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1700 | (exit $ac_status); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1701 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1702 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1703 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1705 | (exit $ac_status); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1706 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1707 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1708 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1710 | (exit $ac_status); } |
| 1711 | |
| 1712 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1713 | #line $LINENO "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1714 | #include "confdefs.h" |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1715 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1716 | #ifdef F77_DUMMY_MAIN |
| 1717 | # ifdef __cplusplus |
| 1718 | extern "C" |
| 1719 | # endif |
| 1720 | int F77_DUMMY_MAIN() { return 1; } |
| 1721 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1722 | int |
| 1723 | main () |
| 1724 | { |
| 1725 | |
| 1726 | ; |
| 1727 | return 0; |
| 1728 | } |
| 1729 | _ACEOF |
| 1730 | ac_clean_files_save=$ac_clean_files |
| 1731 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1732 | # Try to create an executable without -o first, disregard a.out. |
| 1733 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1734 | # of exeext. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1735 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1736 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1737 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1738 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1739 | (eval $ac_link_default) 2>&5 |
| 1740 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1742 | (exit $ac_status); }; then |
| 1743 | # Find the output, starting from the most likely. This scheme is |
| 1744 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1745 | # resort. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1746 | |
| 1747 | # Be careful to initialize this variable, since it used to be cached. |
| 1748 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1749 | ac_cv_exeext= |
| 1750 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1751 | ls a.out conftest 2>/dev/null; |
| 1752 | ls a.* conftest.* 2>/dev/null`; do |
| 1753 | case $ac_file in |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1754 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1755 | a.out ) # We found the default executable, but exeext='' is most |
| 1756 | # certainly right. |
| 1757 | break;; |
| 1758 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1759 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1760 | export ac_cv_exeext |
| 1761 | break;; |
| 1762 | * ) break;; |
| 1763 | esac |
| 1764 | done |
| 1765 | else |
| 1766 | echo "$as_me: failed program was:" >&5 |
| 1767 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1768 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1769 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 1770 | { (exit 77); exit 77; }; } |
| 1771 | fi |
| 1772 | |
| 1773 | ac_exeext=$ac_cv_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1774 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1775 | echo "${ECHO_T}$ac_file" >&6 |
| 1776 | |
| 1777 | # Check the compiler produces executables we can run. If not, either |
| 1778 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1779 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1780 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1781 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1782 | # If not cross compiling, check that we can run a simple program. |
| 1783 | if test "$cross_compiling" != yes; then |
| 1784 | if { ac_try='./$ac_file' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1786 | (eval $ac_try) 2>&5 |
| 1787 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1789 | (exit $ac_status); }; }; then |
| 1790 | cross_compiling=no |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1791 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1792 | if test "$cross_compiling" = maybe; then |
| 1793 | cross_compiling=yes |
| 1794 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1795 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1796 | If you meant to cross compile, use \`--host'." >&5 |
| 1797 | echo "$as_me: error: cannot run C compiled programs. |
| 1798 | If you meant to cross compile, use \`--host'." >&2;} |
| 1799 | { (exit 1); exit 1; }; } |
| 1800 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1801 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1802 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1803 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1804 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1805 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1806 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1807 | ac_clean_files=$ac_clean_files_save |
| 1808 | # Check the compiler produces executables we can run. If not, either |
| 1809 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1810 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1811 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1812 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1813 | echo "${ECHO_T}$cross_compiling" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1814 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1815 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1816 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1818 | (eval $ac_link) 2>&5 |
| 1819 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1821 | (exit $ac_status); }; then |
| 1822 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1823 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1824 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1825 | # `rm'. |
| 1826 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 1827 | case $ac_file in |
| 1828 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1829 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1830 | export ac_cv_exeext |
| 1831 | break;; |
| 1832 | * ) break;; |
| 1833 | esac |
| 1834 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1835 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1836 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1837 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1838 | { (exit 1); exit 1; }; } |
| 1839 | fi |
| 1840 | |
| 1841 | rm -f conftest$ac_cv_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1842 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1843 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1844 | |
| 1845 | rm -f conftest.$ac_ext |
| 1846 | EXEEXT=$ac_cv_exeext |
| 1847 | ac_exeext=$EXEEXT |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1848 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1849 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1850 | if test "${ac_cv_objext+set}" = set; then |
| 1851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1852 | else |
| 1853 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1854 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1855 | #include "confdefs.h" |
| 1856 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1857 | #ifdef F77_DUMMY_MAIN |
| 1858 | # ifdef __cplusplus |
| 1859 | extern "C" |
| 1860 | # endif |
| 1861 | int F77_DUMMY_MAIN() { return 1; } |
| 1862 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1863 | int |
| 1864 | main () |
| 1865 | { |
| 1866 | |
| 1867 | ; |
| 1868 | return 0; |
| 1869 | } |
| 1870 | _ACEOF |
| 1871 | rm -f conftest.o conftest.obj |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1873 | (eval $ac_compile) 2>&5 |
| 1874 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1876 | (exit $ac_status); }; then |
| 1877 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1878 | case $ac_file in |
| 1879 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1880 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1881 | break;; |
| 1882 | esac |
| 1883 | done |
| 1884 | else |
| 1885 | echo "$as_me: failed program was:" >&5 |
| 1886 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1887 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 1888 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1889 | { (exit 1); exit 1; }; } |
| 1890 | fi |
| 1891 | |
| 1892 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1893 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1894 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1895 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1896 | OBJEXT=$ac_cv_objext |
| 1897 | ac_objext=$OBJEXT |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1898 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1899 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1900 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1902 | else |
| 1903 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1904 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1905 | #include "confdefs.h" |
| 1906 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1907 | #ifdef F77_DUMMY_MAIN |
| 1908 | # ifdef __cplusplus |
| 1909 | extern "C" |
| 1910 | # endif |
| 1911 | int F77_DUMMY_MAIN() { return 1; } |
| 1912 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1913 | int |
| 1914 | main () |
| 1915 | { |
| 1916 | #ifndef __GNUC__ |
| 1917 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1918 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1919 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1920 | ; |
| 1921 | return 0; |
| 1922 | } |
| 1923 | _ACEOF |
| 1924 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1926 | (eval $ac_compile) 2>&5 |
| 1927 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1929 | (exit $ac_status); } && |
| 1930 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1932 | (eval $ac_try) 2>&5 |
| 1933 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1935 | (exit $ac_status); }; }; then |
| 1936 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1937 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1938 | echo "$as_me: failed program was:" >&5 |
| 1939 | cat conftest.$ac_ext >&5 |
| 1940 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1941 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1942 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 1943 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1944 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1945 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1946 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1947 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1948 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1949 | ac_test_CFLAGS=${CFLAGS+set} |
| 1950 | ac_save_CFLAGS=$CFLAGS |
| 1951 | CFLAGS="-g" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1952 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1953 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1954 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1956 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1957 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1958 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1959 | #include "confdefs.h" |
| 1960 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1961 | #ifdef F77_DUMMY_MAIN |
| 1962 | # ifdef __cplusplus |
| 1963 | extern "C" |
| 1964 | # endif |
| 1965 | int F77_DUMMY_MAIN() { return 1; } |
| 1966 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1967 | int |
| 1968 | main () |
| 1969 | { |
| 1970 | |
| 1971 | ; |
| 1972 | return 0; |
| 1973 | } |
| 1974 | _ACEOF |
| 1975 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1977 | (eval $ac_compile) 2>&5 |
| 1978 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1980 | (exit $ac_status); } && |
| 1981 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1983 | (eval $ac_try) 2>&5 |
| 1984 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1986 | (exit $ac_status); }; }; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1987 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1988 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1989 | echo "$as_me: failed program was:" >&5 |
| 1990 | cat conftest.$ac_ext >&5 |
| 1991 | ac_cv_prog_cc_g=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1992 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1993 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1994 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1995 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1996 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1997 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1998 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1999 | elif test $ac_cv_prog_cc_g = yes; then |
| 2000 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2001 | CFLAGS="-g -O2" |
| 2002 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2003 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2004 | fi |
| 2005 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2006 | if test "$GCC" = yes; then |
| 2007 | CFLAGS="-O2" |
| 2008 | else |
| 2009 | CFLAGS= |
| 2010 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2011 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2012 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2013 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2014 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2015 | # the declaration of exit, since it's the most demanding environment. |
| 2016 | cat >conftest.$ac_ext <<_ACEOF |
| 2017 | #ifndef __cplusplus |
| 2018 | choke me |
| 2019 | #endif |
| 2020 | _ACEOF |
| 2021 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2023 | (eval $ac_compile) 2>&5 |
| 2024 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2026 | (exit $ac_status); } && |
| 2027 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2029 | (eval $ac_try) 2>&5 |
| 2030 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2032 | (exit $ac_status); }; }; then |
| 2033 | for ac_declaration in \ |
| 2034 | ''\ |
| 2035 | '#include <stdlib.h>' \ |
| 2036 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2037 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2038 | 'extern "C" void exit (int) throw ();' \ |
| 2039 | 'extern "C" void exit (int);' \ |
| 2040 | 'void exit (int);' |
| 2041 | do |
| 2042 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2043 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2044 | #include "confdefs.h" |
| 2045 | #include <stdlib.h> |
| 2046 | $ac_declaration |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2047 | #ifdef F77_DUMMY_MAIN |
| 2048 | # ifdef __cplusplus |
| 2049 | extern "C" |
| 2050 | # endif |
| 2051 | int F77_DUMMY_MAIN() { return 1; } |
| 2052 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2053 | int |
| 2054 | main () |
| 2055 | { |
| 2056 | exit (42); |
| 2057 | ; |
| 2058 | return 0; |
| 2059 | } |
| 2060 | _ACEOF |
| 2061 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2063 | (eval $ac_compile) 2>&5 |
| 2064 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2066 | (exit $ac_status); } && |
| 2067 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2069 | (eval $ac_try) 2>&5 |
| 2070 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2072 | (exit $ac_status); }; }; then |
| 2073 | : |
| 2074 | else |
| 2075 | echo "$as_me: failed program was:" >&5 |
| 2076 | cat conftest.$ac_ext >&5 |
| 2077 | continue |
| 2078 | fi |
| 2079 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2080 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2081 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2082 | #include "confdefs.h" |
| 2083 | $ac_declaration |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2084 | #ifdef F77_DUMMY_MAIN |
| 2085 | # ifdef __cplusplus |
| 2086 | extern "C" |
| 2087 | # endif |
| 2088 | int F77_DUMMY_MAIN() { return 1; } |
| 2089 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2090 | int |
| 2091 | main () |
| 2092 | { |
| 2093 | exit (42); |
| 2094 | ; |
| 2095 | return 0; |
| 2096 | } |
| 2097 | _ACEOF |
| 2098 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2100 | (eval $ac_compile) 2>&5 |
| 2101 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2103 | (exit $ac_status); } && |
| 2104 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2106 | (eval $ac_try) 2>&5 |
| 2107 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2109 | (exit $ac_status); }; }; then |
| 2110 | break |
| 2111 | else |
| 2112 | echo "$as_me: failed program was:" >&5 |
| 2113 | cat conftest.$ac_ext >&5 |
| 2114 | fi |
| 2115 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2116 | done |
| 2117 | rm -f conftest* |
| 2118 | if test -n "$ac_declaration"; then |
| 2119 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2120 | echo $ac_declaration >>confdefs.h |
| 2121 | echo '#endif' >>confdefs.h |
| 2122 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2123 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2124 | else |
| 2125 | echo "$as_me: failed program was:" >&5 |
| 2126 | cat conftest.$ac_ext >&5 |
| 2127 | fi |
| 2128 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2129 | ac_ext=c |
| 2130 | ac_cpp='$CPP $CPPFLAGS' |
| 2131 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2132 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2133 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2134 | |
| 2135 | ac_ext=c |
| 2136 | ac_cpp='$CPP $CPPFLAGS' |
| 2137 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2138 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2139 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2140 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2141 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2142 | # On Suns, sometimes $CPP names a directory. |
| 2143 | if test -n "$CPP" && test -d "$CPP"; then |
| 2144 | CPP= |
| 2145 | fi |
| 2146 | if test -z "$CPP"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2147 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2149 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2150 | # Double quotes because CPP needs to be expanded |
| 2151 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2152 | do |
| 2153 | ac_preproc_ok=false |
| 2154 | for ac_c_preproc_warn_flag in '' yes |
| 2155 | do |
| 2156 | # Use a header file that comes with gcc, so configuring glibc |
| 2157 | # with a fresh cross-compiler works. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2158 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2159 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2160 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2161 | #line $LINENO "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2162 | #include "confdefs.h" |
| 2163 | #include <assert.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2164 | Syntax error |
| 2165 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2166 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2167 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2168 | ac_status=$? |
| 2169 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2170 | rm -f conftest.er1 |
| 2171 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2173 | (exit $ac_status); } >/dev/null; then |
| 2174 | if test -s conftest.err; then |
| 2175 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2176 | else |
| 2177 | ac_cpp_err= |
| 2178 | fi |
| 2179 | else |
| 2180 | ac_cpp_err=yes |
| 2181 | fi |
| 2182 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2183 | : |
| 2184 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2185 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2186 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2187 | # Broken: fails on valid input. |
| 2188 | continue |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2189 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2190 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2191 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2192 | # OK, works on sane cases. Now check whether non-existent headers |
| 2193 | # can be detected and how. |
| 2194 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2195 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2196 | #include "confdefs.h" |
| 2197 | #include <ac_nonexistent.h> |
| 2198 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2199 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2200 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2201 | ac_status=$? |
| 2202 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2203 | rm -f conftest.er1 |
| 2204 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2206 | (exit $ac_status); } >/dev/null; then |
| 2207 | if test -s conftest.err; then |
| 2208 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2209 | else |
| 2210 | ac_cpp_err= |
| 2211 | fi |
| 2212 | else |
| 2213 | ac_cpp_err=yes |
| 2214 | fi |
| 2215 | if test -z "$ac_cpp_err"; then |
| 2216 | # Broken: success on invalid input. |
| 2217 | continue |
| 2218 | else |
| 2219 | echo "$as_me: failed program was:" >&5 |
| 2220 | cat conftest.$ac_ext >&5 |
| 2221 | # Passes both tests. |
| 2222 | ac_preproc_ok=: |
| 2223 | break |
| 2224 | fi |
| 2225 | rm -f conftest.err conftest.$ac_ext |
| 2226 | |
| 2227 | done |
| 2228 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2229 | rm -f conftest.err conftest.$ac_ext |
| 2230 | if $ac_preproc_ok; then |
| 2231 | break |
| 2232 | fi |
| 2233 | |
| 2234 | done |
| 2235 | ac_cv_prog_CPP=$CPP |
| 2236 | |
| 2237 | fi |
| 2238 | CPP=$ac_cv_prog_CPP |
| 2239 | else |
| 2240 | ac_cv_prog_CPP=$CPP |
| 2241 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2242 | echo "$as_me:$LINENO: result: $CPP" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2243 | echo "${ECHO_T}$CPP" >&6 |
| 2244 | ac_preproc_ok=false |
| 2245 | for ac_c_preproc_warn_flag in '' yes |
| 2246 | do |
| 2247 | # Use a header file that comes with gcc, so configuring glibc |
| 2248 | # with a fresh cross-compiler works. |
| 2249 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2250 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2251 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2252 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2253 | #include "confdefs.h" |
| 2254 | #include <assert.h> |
| 2255 | Syntax error |
| 2256 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2257 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2258 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2259 | ac_status=$? |
| 2260 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2261 | rm -f conftest.er1 |
| 2262 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2264 | (exit $ac_status); } >/dev/null; then |
| 2265 | if test -s conftest.err; then |
| 2266 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2267 | else |
| 2268 | ac_cpp_err= |
| 2269 | fi |
| 2270 | else |
| 2271 | ac_cpp_err=yes |
| 2272 | fi |
| 2273 | if test -z "$ac_cpp_err"; then |
| 2274 | : |
| 2275 | else |
| 2276 | echo "$as_me: failed program was:" >&5 |
| 2277 | cat conftest.$ac_ext >&5 |
| 2278 | # Broken: fails on valid input. |
| 2279 | continue |
| 2280 | fi |
| 2281 | rm -f conftest.err conftest.$ac_ext |
| 2282 | |
| 2283 | # OK, works on sane cases. Now check whether non-existent headers |
| 2284 | # can be detected and how. |
| 2285 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2286 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2287 | #include "confdefs.h" |
| 2288 | #include <ac_nonexistent.h> |
| 2289 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2290 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2291 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2292 | ac_status=$? |
| 2293 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2294 | rm -f conftest.er1 |
| 2295 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2297 | (exit $ac_status); } >/dev/null; then |
| 2298 | if test -s conftest.err; then |
| 2299 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2300 | else |
| 2301 | ac_cpp_err= |
| 2302 | fi |
| 2303 | else |
| 2304 | ac_cpp_err=yes |
| 2305 | fi |
| 2306 | if test -z "$ac_cpp_err"; then |
| 2307 | # Broken: success on invalid input. |
| 2308 | continue |
| 2309 | else |
| 2310 | echo "$as_me: failed program was:" >&5 |
| 2311 | cat conftest.$ac_ext >&5 |
| 2312 | # Passes both tests. |
| 2313 | ac_preproc_ok=: |
| 2314 | break |
| 2315 | fi |
| 2316 | rm -f conftest.err conftest.$ac_ext |
| 2317 | |
| 2318 | done |
| 2319 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2320 | rm -f conftest.err conftest.$ac_ext |
| 2321 | if $ac_preproc_ok; then |
| 2322 | : |
| 2323 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2324 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2325 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2326 | { (exit 1); exit 1; }; } |
| 2327 | fi |
| 2328 | |
| 2329 | ac_ext=c |
| 2330 | ac_cpp='$CPP $CPPFLAGS' |
| 2331 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2332 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2333 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2334 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2335 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 2336 | echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5 |
| 2337 | echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6 |
| 2338 | if test "${wine_cv_toolsdir+set}" = set; then |
| 2339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2340 | else |
| 2341 | if test -z "$with_wine_tools"; then |
| 2342 | if test "$cross_compiling" = "yes"; then |
| 2343 | { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5 |
| 2344 | echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;} |
| 2345 | { (exit 1); exit 1; }; } |
| 2346 | else |
| 2347 | wine_cv_toolsdir="\$(TOPOBJDIR)" |
| 2348 | fi |
| 2349 | elif test -d "$with_wine_tools/tools/winebuild"; then |
| 2350 | case $with_wine_tools in |
| 2351 | /*) wine_cv_toolsdir="$with_wine_tools" ;; |
| 2352 | *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;; |
| 2353 | esac |
| 2354 | else |
| 2355 | { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5 |
| 2356 | echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;} |
| 2357 | { (exit 1); exit 1; }; } |
| 2358 | fi |
| 2359 | fi |
| 2360 | echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5 |
| 2361 | echo "${ECHO_T}$wine_cv_toolsdir" >&6 |
| 2362 | TOOLSDIR=$wine_cv_toolsdir |
| 2363 | |
| 2364 | |
| 2365 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2366 | |
| 2367 | echo "$as_me:$LINENO: checking for X" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2368 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2369 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2370 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2371 | # Check whether --with-x or --without-x was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2372 | if test "${with_x+set}" = set; then |
| 2373 | withval="$with_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2374 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2375 | fi; |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2376 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2377 | if test "x$with_x" = xno; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2378 | # The user explicitly disabled X. |
| 2379 | have_x=disabled |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2380 | else |
| 2381 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2382 | # Both variables are already set. |
| 2383 | have_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2384 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2385 | if test "${ac_cv_have_x+set}" = set; then |
| 2386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2387 | else |
| 2388 | # One or both of the vars are not set, and there is no cached value. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2389 | ac_x_includes=no ac_x_libraries=no |
| 2390 | rm -fr conftest.dir |
| 2391 | if mkdir conftest.dir; then |
| 2392 | cd conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2393 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2394 | cat >Imakefile <<'_ACEOF' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2395 | acfindx: |
| 2396 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2397 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2398 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2399 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2400 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2401 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 2402 | for ac_extension in a so sl; do |
| 2403 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2404 | test -f $ac_im_libdir/libX11.$ac_extension; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2405 | ac_im_usrlibdir=$ac_im_libdir; break |
| 2406 | fi |
| 2407 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2408 | # Screen out bogus values from the imake configuration. They are |
| 2409 | # bogus both because they are the default anyway, and because |
| 2410 | # using them would break gcc on systems where it needs fixed includes. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2411 | case $ac_im_incroot in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2412 | /usr/include) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2413 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2414 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2415 | case $ac_im_usrlibdir in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2416 | /usr/lib | /lib) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2417 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2418 | esac |
| 2419 | fi |
| 2420 | cd .. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2421 | rm -fr conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2422 | fi |
| 2423 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2424 | # Standard set of common directories for X headers. |
| 2425 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 2426 | ac_x_header_dirs=' |
| 2427 | /usr/X11/include |
| 2428 | /usr/X11R6/include |
| 2429 | /usr/X11R5/include |
| 2430 | /usr/X11R4/include |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2431 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2432 | /usr/include/X11 |
| 2433 | /usr/include/X11R6 |
| 2434 | /usr/include/X11R5 |
| 2435 | /usr/include/X11R4 |
| 2436 | |
| 2437 | /usr/local/X11/include |
| 2438 | /usr/local/X11R6/include |
| 2439 | /usr/local/X11R5/include |
| 2440 | /usr/local/X11R4/include |
| 2441 | |
| 2442 | /usr/local/include/X11 |
| 2443 | /usr/local/include/X11R6 |
| 2444 | /usr/local/include/X11R5 |
| 2445 | /usr/local/include/X11R4 |
| 2446 | |
| 2447 | /usr/X386/include |
| 2448 | /usr/x386/include |
| 2449 | /usr/XFree86/include/X11 |
| 2450 | |
| 2451 | /usr/include |
| 2452 | /usr/local/include |
| 2453 | /usr/unsupported/include |
| 2454 | /usr/athena/include |
| 2455 | /usr/local/x11r5/include |
| 2456 | /usr/lpp/Xamples/include |
| 2457 | |
| 2458 | /usr/openwin/include |
| 2459 | /usr/openwin/share/include' |
| 2460 | |
| 2461 | if test "$ac_x_includes" = no; then |
| 2462 | # Guess where to find include files, by looking for Intrinsic.h. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2463 | # First, try using that file with no special directory specified. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2464 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2465 | #line $LINENO "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2466 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2467 | #include <X11/Intrinsic.h> |
| 2468 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2469 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2470 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2471 | ac_status=$? |
| 2472 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2473 | rm -f conftest.er1 |
| 2474 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2476 | (exit $ac_status); } >/dev/null; then |
| 2477 | if test -s conftest.err; then |
| 2478 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2479 | else |
| 2480 | ac_cpp_err= |
| 2481 | fi |
| 2482 | else |
| 2483 | ac_cpp_err=yes |
| 2484 | fi |
| 2485 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2486 | # We can compile using X headers with no special include directory. |
| 2487 | ac_x_includes= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2488 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2489 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2490 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2491 | for ac_dir in $ac_x_header_dirs; do |
| 2492 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 2493 | ac_x_includes=$ac_dir |
| 2494 | break |
| 2495 | fi |
| 2496 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2497 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2498 | rm -f conftest.err conftest.$ac_ext |
| 2499 | fi # $ac_x_includes = no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2500 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2501 | if test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2502 | # Check for the libraries. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2503 | # See if we find them without any special options. |
| 2504 | # Don't add to $LIBS permanently. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2505 | ac_save_LIBS=$LIBS |
| 2506 | LIBS="-lXt $LIBS" |
| 2507 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2508 | #line $LINENO "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2509 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2510 | #include <X11/Intrinsic.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2511 | #ifdef F77_DUMMY_MAIN |
| 2512 | # ifdef __cplusplus |
| 2513 | extern "C" |
| 2514 | # endif |
| 2515 | int F77_DUMMY_MAIN() { return 1; } |
| 2516 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2517 | int |
| 2518 | main () |
| 2519 | { |
| 2520 | XtMalloc (0) |
| 2521 | ; |
| 2522 | return 0; |
| 2523 | } |
| 2524 | _ACEOF |
| 2525 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2527 | (eval $ac_link) 2>&5 |
| 2528 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2530 | (exit $ac_status); } && |
| 2531 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2533 | (eval $ac_try) 2>&5 |
| 2534 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2536 | (exit $ac_status); }; }; then |
| 2537 | LIBS=$ac_save_LIBS |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2538 | # We can link X programs with no special library path. |
| 2539 | ac_x_libraries= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2540 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2541 | echo "$as_me: failed program was:" >&5 |
| 2542 | cat conftest.$ac_ext >&5 |
| 2543 | LIBS=$ac_save_LIBS |
| 2544 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2545 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2546 | # Don't even attempt the hair of trying to link an X program! |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2547 | for ac_extension in a so sl; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2548 | if test -r $ac_dir/libXt.$ac_extension; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2549 | ac_x_libraries=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2550 | break 2 |
| 2551 | fi |
| 2552 | done |
| 2553 | done |
| 2554 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2555 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2556 | fi # $ac_x_libraries = no |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2557 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2558 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2559 | # Didn't find X anywhere. Cache the known absence of X. |
| 2560 | ac_cv_have_x="have_x=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2561 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2562 | # Record where we found X for the cache. |
| 2563 | ac_cv_have_x="have_x=yes \ |
| 2564 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2565 | fi |
| 2566 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2567 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2568 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2569 | eval "$ac_cv_have_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2570 | fi # $with_x != no |
| 2571 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2572 | if test "$have_x" != yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2573 | echo "$as_me:$LINENO: result: $have_x" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2574 | echo "${ECHO_T}$have_x" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2575 | no_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2576 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2577 | # If each of the values was on the command line, it overrides each guess. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2578 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 2579 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2580 | # Update the cache value to reflect the command line values. |
| 2581 | ac_cv_have_x="have_x=yes \ |
| 2582 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2583 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2584 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2585 | fi |
| 2586 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2587 | if test "$no_x" = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2588 | # Not all programs may use this symbol, but it does not hurt to define it. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2589 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2590 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2591 | #define X_DISPLAY_MISSING 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2592 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2593 | |
| 2594 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2595 | else |
| 2596 | if test -n "$x_includes"; then |
| 2597 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 2598 | fi |
| 2599 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2600 | # It would also be nice to do this for all -L options, not just this one. |
| 2601 | if test -n "$x_libraries"; then |
| 2602 | X_LIBS="$X_LIBS -L$x_libraries" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2603 | # For Solaris; some versions of Sun CC require a space after -R and |
| 2604 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2605 | case `(uname -sr) 2>/dev/null` in |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2606 | "SunOS 5"*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2607 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2608 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 2609 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 2610 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2611 | #line $LINENO "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2612 | #include "confdefs.h" |
| 2613 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2614 | #ifdef F77_DUMMY_MAIN |
| 2615 | # ifdef __cplusplus |
| 2616 | extern "C" |
| 2617 | # endif |
| 2618 | int F77_DUMMY_MAIN() { return 1; } |
| 2619 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2620 | int |
| 2621 | main () |
| 2622 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2623 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2624 | ; |
| 2625 | return 0; |
| 2626 | } |
| 2627 | _ACEOF |
| 2628 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2630 | (eval $ac_link) 2>&5 |
| 2631 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2633 | (exit $ac_status); } && |
| 2634 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2636 | (eval $ac_try) 2>&5 |
| 2637 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2639 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2640 | ac_R_nospace=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2641 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2642 | echo "$as_me: failed program was:" >&5 |
| 2643 | cat conftest.$ac_ext >&5 |
| 2644 | ac_R_nospace=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2645 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2646 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2647 | if test $ac_R_nospace = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2648 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2649 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2650 | X_LIBS="$X_LIBS -R$x_libraries" |
| 2651 | else |
| 2652 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2653 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2654 | #line $LINENO "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2655 | #include "confdefs.h" |
| 2656 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2657 | #ifdef F77_DUMMY_MAIN |
| 2658 | # ifdef __cplusplus |
| 2659 | extern "C" |
| 2660 | # endif |
| 2661 | int F77_DUMMY_MAIN() { return 1; } |
| 2662 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2663 | int |
| 2664 | main () |
| 2665 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2666 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2667 | ; |
| 2668 | return 0; |
| 2669 | } |
| 2670 | _ACEOF |
| 2671 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2673 | (eval $ac_link) 2>&5 |
| 2674 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2676 | (exit $ac_status); } && |
| 2677 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2679 | (eval $ac_try) 2>&5 |
| 2680 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2682 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2683 | ac_R_space=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2684 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2685 | echo "$as_me: failed program was:" >&5 |
| 2686 | cat conftest.$ac_ext >&5 |
| 2687 | ac_R_space=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2688 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2689 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2690 | if test $ac_R_space = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2691 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2692 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2693 | X_LIBS="$X_LIBS -R $x_libraries" |
| 2694 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2695 | echo "$as_me:$LINENO: result: neither works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2696 | echo "${ECHO_T}neither works" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2697 | fi |
| 2698 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2699 | LIBS=$ac_xsave_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2700 | esac |
| 2701 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2702 | |
| 2703 | # Check for system-dependent libraries X programs must link with. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2704 | # Do this before checking for the system-independent R6 libraries |
| 2705 | # (-lICE), since we may need -lsocket or whatever for X linking. |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2706 | |
| 2707 | if test "$ISC" = yes; then |
| 2708 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 2709 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2710 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 2711 | # libraries were built with DECnet support. And Karl Berry says |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2712 | # the Alpha needs dnet_stub (dnet does not exist). |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2713 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 2714 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2715 | #line $LINENO "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2716 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2717 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 2718 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2719 | #ifdef __cplusplus |
| 2720 | extern "C" |
| 2721 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2722 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2723 | builtin and then its argument prototype would still apply. */ |
| 2724 | char XOpenDisplay (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2725 | #ifdef F77_DUMMY_MAIN |
| 2726 | # ifdef __cplusplus |
| 2727 | extern "C" |
| 2728 | # endif |
| 2729 | int F77_DUMMY_MAIN() { return 1; } |
| 2730 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2731 | int |
| 2732 | main () |
| 2733 | { |
| 2734 | XOpenDisplay (); |
| 2735 | ; |
| 2736 | return 0; |
| 2737 | } |
| 2738 | _ACEOF |
| 2739 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2741 | (eval $ac_link) 2>&5 |
| 2742 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2744 | (exit $ac_status); } && |
| 2745 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2747 | (eval $ac_try) 2>&5 |
| 2748 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2750 | (exit $ac_status); }; }; then |
| 2751 | : |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2752 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2753 | echo "$as_me: failed program was:" >&5 |
| 2754 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2755 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2756 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 2757 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 2758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2759 | else |
| 2760 | ac_check_lib_save_LIBS=$LIBS |
| 2761 | LIBS="-ldnet $LIBS" |
| 2762 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2763 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2764 | #include "confdefs.h" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2765 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2766 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2767 | #ifdef __cplusplus |
| 2768 | extern "C" |
| 2769 | #endif |
| 2770 | /* We use char because int might match the return type of a gcc2 |
| 2771 | builtin and then its argument prototype would still apply. */ |
| 2772 | char dnet_ntoa (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2773 | #ifdef F77_DUMMY_MAIN |
| 2774 | # ifdef __cplusplus |
| 2775 | extern "C" |
| 2776 | # endif |
| 2777 | int F77_DUMMY_MAIN() { return 1; } |
| 2778 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2779 | int |
| 2780 | main () |
| 2781 | { |
| 2782 | dnet_ntoa (); |
| 2783 | ; |
| 2784 | return 0; |
| 2785 | } |
| 2786 | _ACEOF |
| 2787 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2789 | (eval $ac_link) 2>&5 |
| 2790 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2792 | (exit $ac_status); } && |
| 2793 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2795 | (eval $ac_try) 2>&5 |
| 2796 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2798 | (exit $ac_status); }; }; then |
| 2799 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 2800 | else |
| 2801 | echo "$as_me: failed program was:" >&5 |
| 2802 | cat conftest.$ac_ext >&5 |
| 2803 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2804 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2805 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2806 | LIBS=$ac_check_lib_save_LIBS |
| 2807 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2808 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2809 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 2810 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2811 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2812 | fi |
| 2813 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 2814 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2815 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2816 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 2817 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 2818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2819 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2820 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2821 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2822 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2823 | #line $LINENO "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2824 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2825 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 2826 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2827 | #ifdef __cplusplus |
| 2828 | extern "C" |
| 2829 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2830 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2831 | builtin and then its argument prototype would still apply. */ |
| 2832 | char dnet_ntoa (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2833 | #ifdef F77_DUMMY_MAIN |
| 2834 | # ifdef __cplusplus |
| 2835 | extern "C" |
| 2836 | # endif |
| 2837 | int F77_DUMMY_MAIN() { return 1; } |
| 2838 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2839 | int |
| 2840 | main () |
| 2841 | { |
| 2842 | dnet_ntoa (); |
| 2843 | ; |
| 2844 | return 0; |
| 2845 | } |
| 2846 | _ACEOF |
| 2847 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2849 | (eval $ac_link) 2>&5 |
| 2850 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2852 | (exit $ac_status); } && |
| 2853 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2855 | (eval $ac_try) 2>&5 |
| 2856 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2858 | (exit $ac_status); }; }; then |
| 2859 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2860 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2861 | echo "$as_me: failed program was:" >&5 |
| 2862 | cat conftest.$ac_ext >&5 |
| 2863 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2864 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2865 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2866 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2867 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2868 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2869 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 2870 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2871 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2872 | fi |
| 2873 | |
| 2874 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2875 | fi |
| 2876 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2877 | LIBS="$ac_xsave_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2878 | |
| 2879 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 2880 | # to get the SysV transport functions. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2881 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2882 | # needs -lnsl. |
| 2883 | # The nsl library prevents programs from opening the X display |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2884 | # on Irix 5.2, according to T.E. Dickey. |
| 2885 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 2886 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2887 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2888 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 2889 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 2890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2891 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2892 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2893 | #line $LINENO "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2894 | #include "confdefs.h" |
| 2895 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2896 | which can conflict with char gethostbyname (); below. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2897 | #include <assert.h> |
| 2898 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2899 | #ifdef __cplusplus |
| 2900 | extern "C" |
| 2901 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2902 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2903 | builtin and then its argument prototype would still apply. */ |
| 2904 | char gethostbyname (); |
| 2905 | char (*f) (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2906 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2907 | #ifdef F77_DUMMY_MAIN |
| 2908 | # ifdef __cplusplus |
| 2909 | extern "C" |
| 2910 | # endif |
| 2911 | int F77_DUMMY_MAIN() { return 1; } |
| 2912 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2913 | int |
| 2914 | main () |
| 2915 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2916 | /* The GNU C library defines this for functions which it implements |
| 2917 | to always fail with ENOSYS. Some functions are actually named |
| 2918 | something starting with __ and the normal name is an alias. */ |
| 2919 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 2920 | choke me |
| 2921 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2922 | f = gethostbyname; |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2923 | #endif |
| 2924 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2925 | ; |
| 2926 | return 0; |
| 2927 | } |
| 2928 | _ACEOF |
| 2929 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2931 | (eval $ac_link) 2>&5 |
| 2932 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2934 | (exit $ac_status); } && |
| 2935 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2937 | (eval $ac_try) 2>&5 |
| 2938 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2940 | (exit $ac_status); }; }; then |
| 2941 | ac_cv_func_gethostbyname=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2942 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2943 | echo "$as_me: failed program was:" >&5 |
| 2944 | cat conftest.$ac_ext >&5 |
| 2945 | ac_cv_func_gethostbyname=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2946 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2947 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2948 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2949 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2950 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2951 | |
| 2952 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2953 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2954 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 2955 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 2956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2957 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2958 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2959 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2960 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2961 | #line $LINENO "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2962 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2963 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 2964 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2965 | #ifdef __cplusplus |
| 2966 | extern "C" |
| 2967 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2968 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2969 | builtin and then its argument prototype would still apply. */ |
| 2970 | char gethostbyname (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2971 | #ifdef F77_DUMMY_MAIN |
| 2972 | # ifdef __cplusplus |
| 2973 | extern "C" |
| 2974 | # endif |
| 2975 | int F77_DUMMY_MAIN() { return 1; } |
| 2976 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2977 | int |
| 2978 | main () |
| 2979 | { |
| 2980 | gethostbyname (); |
| 2981 | ; |
| 2982 | return 0; |
| 2983 | } |
| 2984 | _ACEOF |
| 2985 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2987 | (eval $ac_link) 2>&5 |
| 2988 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2990 | (exit $ac_status); } && |
| 2991 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2993 | (eval $ac_try) 2>&5 |
| 2994 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2996 | (exit $ac_status); }; }; then |
| 2997 | ac_cv_lib_nsl_gethostbyname=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2998 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2999 | echo "$as_me: failed program was:" >&5 |
| 3000 | cat conftest.$ac_ext >&5 |
| 3001 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3002 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3003 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3004 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3005 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3006 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3007 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 3008 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3009 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3010 | fi |
| 3011 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3012 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3013 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3014 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 3015 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 3016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3017 | else |
| 3018 | ac_check_lib_save_LIBS=$LIBS |
| 3019 | LIBS="-lbsd $LIBS" |
| 3020 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3021 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3022 | #include "confdefs.h" |
| 3023 | |
| 3024 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3025 | #ifdef __cplusplus |
| 3026 | extern "C" |
| 3027 | #endif |
| 3028 | /* We use char because int might match the return type of a gcc2 |
| 3029 | builtin and then its argument prototype would still apply. */ |
| 3030 | char gethostbyname (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3031 | #ifdef F77_DUMMY_MAIN |
| 3032 | # ifdef __cplusplus |
| 3033 | extern "C" |
| 3034 | # endif |
| 3035 | int F77_DUMMY_MAIN() { return 1; } |
| 3036 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3037 | int |
| 3038 | main () |
| 3039 | { |
| 3040 | gethostbyname (); |
| 3041 | ; |
| 3042 | return 0; |
| 3043 | } |
| 3044 | _ACEOF |
| 3045 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3047 | (eval $ac_link) 2>&5 |
| 3048 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3050 | (exit $ac_status); } && |
| 3051 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3053 | (eval $ac_try) 2>&5 |
| 3054 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3056 | (exit $ac_status); }; }; then |
| 3057 | ac_cv_lib_bsd_gethostbyname=yes |
| 3058 | else |
| 3059 | echo "$as_me: failed program was:" >&5 |
| 3060 | cat conftest.$ac_ext >&5 |
| 3061 | ac_cv_lib_bsd_gethostbyname=no |
| 3062 | fi |
| 3063 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3064 | LIBS=$ac_check_lib_save_LIBS |
| 3065 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3066 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3067 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 3068 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 3069 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 3070 | fi |
| 3071 | |
| 3072 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3073 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3074 | |
| 3075 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3076 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 3077 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3078 | # on later versions), says Simon Leinen: it contains gethostby* |
| 3079 | # variants that don't use the nameserver (or something). -lsocket |
| 3080 | # must be given before -lnsl if both are needed. We assume that |
| 3081 | # if connect needs -lnsl, so does gethostbyname. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3082 | echo "$as_me:$LINENO: checking for connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3083 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 3084 | if test "${ac_cv_func_connect+set}" = set; then |
| 3085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3086 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3087 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3088 | #line $LINENO "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3089 | #include "confdefs.h" |
| 3090 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3091 | which can conflict with char connect (); below. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3092 | #include <assert.h> |
| 3093 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3094 | #ifdef __cplusplus |
| 3095 | extern "C" |
| 3096 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3097 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3098 | builtin and then its argument prototype would still apply. */ |
| 3099 | char connect (); |
| 3100 | char (*f) (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3101 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3102 | #ifdef F77_DUMMY_MAIN |
| 3103 | # ifdef __cplusplus |
| 3104 | extern "C" |
| 3105 | # endif |
| 3106 | int F77_DUMMY_MAIN() { return 1; } |
| 3107 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3108 | int |
| 3109 | main () |
| 3110 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3111 | /* The GNU C library defines this for functions which it implements |
| 3112 | to always fail with ENOSYS. Some functions are actually named |
| 3113 | something starting with __ and the normal name is an alias. */ |
| 3114 | #if defined (__stub_connect) || defined (__stub___connect) |
| 3115 | choke me |
| 3116 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3117 | f = connect; |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3118 | #endif |
| 3119 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3120 | ; |
| 3121 | return 0; |
| 3122 | } |
| 3123 | _ACEOF |
| 3124 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3126 | (eval $ac_link) 2>&5 |
| 3127 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3129 | (exit $ac_status); } && |
| 3130 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3132 | (eval $ac_try) 2>&5 |
| 3133 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3135 | (exit $ac_status); }; }; then |
| 3136 | ac_cv_func_connect=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3137 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3138 | echo "$as_me: failed program was:" >&5 |
| 3139 | cat conftest.$ac_ext >&5 |
| 3140 | ac_cv_func_connect=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3141 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3142 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3143 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3144 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3145 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3146 | |
| 3147 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3148 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3149 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 3150 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 3151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3152 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3153 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3154 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3155 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3156 | #line $LINENO "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3157 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3158 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3159 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3160 | #ifdef __cplusplus |
| 3161 | extern "C" |
| 3162 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3163 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3164 | builtin and then its argument prototype would still apply. */ |
| 3165 | char connect (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3166 | #ifdef F77_DUMMY_MAIN |
| 3167 | # ifdef __cplusplus |
| 3168 | extern "C" |
| 3169 | # endif |
| 3170 | int F77_DUMMY_MAIN() { return 1; } |
| 3171 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3172 | int |
| 3173 | main () |
| 3174 | { |
| 3175 | connect (); |
| 3176 | ; |
| 3177 | return 0; |
| 3178 | } |
| 3179 | _ACEOF |
| 3180 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3182 | (eval $ac_link) 2>&5 |
| 3183 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3185 | (exit $ac_status); } && |
| 3186 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3188 | (eval $ac_try) 2>&5 |
| 3189 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3191 | (exit $ac_status); }; }; then |
| 3192 | ac_cv_lib_socket_connect=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3193 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3194 | echo "$as_me: failed program was:" >&5 |
| 3195 | cat conftest.$ac_ext >&5 |
| 3196 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3197 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3198 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3199 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3200 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3201 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3202 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 3203 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3204 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3205 | fi |
| 3206 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3207 | fi |
| 3208 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3209 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3210 | echo "$as_me:$LINENO: checking for remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3211 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 3212 | if test "${ac_cv_func_remove+set}" = set; then |
| 3213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3214 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3215 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3216 | #line $LINENO "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3217 | #include "confdefs.h" |
| 3218 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3219 | which can conflict with char remove (); below. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3220 | #include <assert.h> |
| 3221 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3222 | #ifdef __cplusplus |
| 3223 | extern "C" |
| 3224 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3225 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3226 | builtin and then its argument prototype would still apply. */ |
| 3227 | char remove (); |
| 3228 | char (*f) (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3229 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3230 | #ifdef F77_DUMMY_MAIN |
| 3231 | # ifdef __cplusplus |
| 3232 | extern "C" |
| 3233 | # endif |
| 3234 | int F77_DUMMY_MAIN() { return 1; } |
| 3235 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3236 | int |
| 3237 | main () |
| 3238 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3239 | /* The GNU C library defines this for functions which it implements |
| 3240 | to always fail with ENOSYS. Some functions are actually named |
| 3241 | something starting with __ and the normal name is an alias. */ |
| 3242 | #if defined (__stub_remove) || defined (__stub___remove) |
| 3243 | choke me |
| 3244 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3245 | f = remove; |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3246 | #endif |
| 3247 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3248 | ; |
| 3249 | return 0; |
| 3250 | } |
| 3251 | _ACEOF |
| 3252 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3254 | (eval $ac_link) 2>&5 |
| 3255 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3257 | (exit $ac_status); } && |
| 3258 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3260 | (eval $ac_try) 2>&5 |
| 3261 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3263 | (exit $ac_status); }; }; then |
| 3264 | ac_cv_func_remove=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3265 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3266 | echo "$as_me: failed program was:" >&5 |
| 3267 | cat conftest.$ac_ext >&5 |
| 3268 | ac_cv_func_remove=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3269 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3270 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3271 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3272 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3273 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3274 | |
| 3275 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3276 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3277 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 3278 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 3279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3280 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3281 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3282 | LIBS="-lposix $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3283 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3284 | #line $LINENO "configure" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3285 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3286 | |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3287 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3288 | #ifdef __cplusplus |
| 3289 | extern "C" |
| 3290 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3291 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3292 | builtin and then its argument prototype would still apply. */ |
| 3293 | char remove (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3294 | #ifdef F77_DUMMY_MAIN |
| 3295 | # ifdef __cplusplus |
| 3296 | extern "C" |
| 3297 | # endif |
| 3298 | int F77_DUMMY_MAIN() { return 1; } |
| 3299 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3300 | int |
| 3301 | main () |
| 3302 | { |
| 3303 | remove (); |
| 3304 | ; |
| 3305 | return 0; |
| 3306 | } |
| 3307 | _ACEOF |
| 3308 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3310 | (eval $ac_link) 2>&5 |
| 3311 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3313 | (exit $ac_status); } && |
| 3314 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3316 | (eval $ac_try) 2>&5 |
| 3317 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3319 | (exit $ac_status); }; }; then |
| 3320 | ac_cv_lib_posix_remove=yes |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3321 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3322 | echo "$as_me: failed program was:" >&5 |
| 3323 | cat conftest.$ac_ext >&5 |
| 3324 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3325 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3326 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3327 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3328 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3329 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3330 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 3331 | if test $ac_cv_lib_posix_remove = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3332 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3333 | fi |
| 3334 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3335 | fi |
| 3336 | |
| 3337 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3338 | echo "$as_me:$LINENO: checking for shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3339 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 3340 | if test "${ac_cv_func_shmat+set}" = set; then |
| 3341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3342 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3343 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3344 | #line $LINENO "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3345 | #include "confdefs.h" |
| 3346 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3347 | which can conflict with char shmat (); below. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3348 | #include <assert.h> |
| 3349 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3350 | #ifdef __cplusplus |
| 3351 | extern "C" |
| 3352 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3353 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3354 | builtin and then its argument prototype would still apply. */ |
| 3355 | char shmat (); |
| 3356 | char (*f) (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3357 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3358 | #ifdef F77_DUMMY_MAIN |
| 3359 | # ifdef __cplusplus |
| 3360 | extern "C" |
| 3361 | # endif |
| 3362 | int F77_DUMMY_MAIN() { return 1; } |
| 3363 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3364 | int |
| 3365 | main () |
| 3366 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3367 | /* The GNU C library defines this for functions which it implements |
| 3368 | to always fail with ENOSYS. Some functions are actually named |
| 3369 | something starting with __ and the normal name is an alias. */ |
| 3370 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 3371 | choke me |
| 3372 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3373 | f = shmat; |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3374 | #endif |
| 3375 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3376 | ; |
| 3377 | return 0; |
| 3378 | } |
| 3379 | _ACEOF |
| 3380 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3382 | (eval $ac_link) 2>&5 |
| 3383 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3385 | (exit $ac_status); } && |
| 3386 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3388 | (eval $ac_try) 2>&5 |
| 3389 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3391 | (exit $ac_status); }; }; then |
| 3392 | ac_cv_func_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3393 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3394 | echo "$as_me: failed program was:" >&5 |
| 3395 | cat conftest.$ac_ext >&5 |
| 3396 | ac_cv_func_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3397 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3398 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3399 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3400 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3401 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3402 | |
| 3403 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3404 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3405 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 3406 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 3407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3408 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3409 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3410 | LIBS="-lipc $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3411 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3412 | #line $LINENO "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3413 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3414 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3415 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3416 | #ifdef __cplusplus |
| 3417 | extern "C" |
| 3418 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3419 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3420 | builtin and then its argument prototype would still apply. */ |
| 3421 | char shmat (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3422 | #ifdef F77_DUMMY_MAIN |
| 3423 | # ifdef __cplusplus |
| 3424 | extern "C" |
| 3425 | # endif |
| 3426 | int F77_DUMMY_MAIN() { return 1; } |
| 3427 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3428 | int |
| 3429 | main () |
| 3430 | { |
| 3431 | shmat (); |
| 3432 | ; |
| 3433 | return 0; |
| 3434 | } |
| 3435 | _ACEOF |
| 3436 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3438 | (eval $ac_link) 2>&5 |
| 3439 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3441 | (exit $ac_status); } && |
| 3442 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3444 | (eval $ac_try) 2>&5 |
| 3445 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3447 | (exit $ac_status); }; }; then |
| 3448 | ac_cv_lib_ipc_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3449 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3450 | echo "$as_me: failed program was:" >&5 |
| 3451 | cat conftest.$ac_ext >&5 |
| 3452 | ac_cv_lib_ipc_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3453 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3454 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3455 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3456 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3457 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3458 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 3459 | if test $ac_cv_lib_ipc_shmat = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3460 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3461 | fi |
| 3462 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3463 | fi |
| 3464 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3465 | |
| 3466 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3467 | ac_save_LDFLAGS=$LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3468 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 3469 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 3470 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 3471 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 3472 | # These have to be linked with before -lX11, unlike the other |
| 3473 | # libraries we check for below, so use a different variable. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3474 | # John Interrante, Karl Berry |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3475 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3476 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 3477 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 3478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3479 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3480 | ac_check_lib_save_LIBS=$LIBS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3481 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3482 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3483 | #line $LINENO "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3484 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3485 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3486 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3487 | #ifdef __cplusplus |
| 3488 | extern "C" |
| 3489 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3490 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3491 | builtin and then its argument prototype would still apply. */ |
| 3492 | char IceConnectionNumber (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3493 | #ifdef F77_DUMMY_MAIN |
| 3494 | # ifdef __cplusplus |
| 3495 | extern "C" |
| 3496 | # endif |
| 3497 | int F77_DUMMY_MAIN() { return 1; } |
| 3498 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3499 | int |
| 3500 | main () |
| 3501 | { |
| 3502 | IceConnectionNumber (); |
| 3503 | ; |
| 3504 | return 0; |
| 3505 | } |
| 3506 | _ACEOF |
| 3507 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3509 | (eval $ac_link) 2>&5 |
| 3510 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3512 | (exit $ac_status); } && |
| 3513 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3515 | (eval $ac_try) 2>&5 |
| 3516 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3518 | (exit $ac_status); }; }; then |
| 3519 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3520 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3521 | echo "$as_me: failed program was:" >&5 |
| 3522 | cat conftest.$ac_ext >&5 |
| 3523 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3524 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3525 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3526 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3527 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3528 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3529 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 3530 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3531 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3532 | fi |
| 3533 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3534 | LDFLAGS=$ac_save_LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3535 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3536 | fi |
| 3537 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3538 | for ac_prog in 'bison -y' byacc |
| 3539 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3540 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3541 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3542 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3543 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3544 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 3545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3546 | else |
| 3547 | if test -n "$YACC"; then |
| 3548 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 3549 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3551 | for as_dir in $PATH |
| 3552 | do |
| 3553 | IFS=$as_save_IFS |
| 3554 | test -z "$as_dir" && as_dir=. |
| 3555 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3556 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3557 | ac_cv_prog_YACC="$ac_prog" |
| 3558 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3559 | break 2 |
| 3560 | fi |
| 3561 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3562 | done |
| 3563 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3564 | fi |
| 3565 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3566 | YACC=$ac_cv_prog_YACC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3567 | if test -n "$YACC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3568 | echo "$as_me:$LINENO: result: $YACC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3569 | echo "${ECHO_T}$YACC" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3570 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3571 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3572 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3573 | fi |
| 3574 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3575 | test -n "$YACC" && break |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3576 | done |
| 3577 | test -n "$YACC" || YACC="yacc" |
| 3578 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3579 | for ac_prog in flex lex |
| 3580 | do |
| 3581 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3582 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3583 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3584 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3585 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 3586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3587 | else |
| 3588 | if test -n "$LEX"; then |
| 3589 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 3590 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3592 | for as_dir in $PATH |
| 3593 | do |
| 3594 | IFS=$as_save_IFS |
| 3595 | test -z "$as_dir" && as_dir=. |
| 3596 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3597 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3598 | ac_cv_prog_LEX="$ac_prog" |
| 3599 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3600 | break 2 |
| 3601 | fi |
| 3602 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3603 | done |
| 3604 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3605 | fi |
| 3606 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3607 | LEX=$ac_cv_prog_LEX |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3608 | if test -n "$LEX"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3609 | echo "$as_me:$LINENO: result: $LEX" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3610 | echo "${ECHO_T}$LEX" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3611 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3612 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3613 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3614 | fi |
| 3615 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3616 | test -n "$LEX" && break |
| 3617 | done |
| 3618 | test -n "$LEX" || LEX=":" |
| 3619 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3620 | if test -z "$LEXLIB" |
| 3621 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3622 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3623 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 3624 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 3625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3626 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3627 | ac_check_lib_save_LIBS=$LIBS |
| 3628 | LIBS="-lfl $LIBS" |
| 3629 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3630 | #line $LINENO "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3631 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3632 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3633 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3634 | #ifdef __cplusplus |
| 3635 | extern "C" |
| 3636 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3637 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3638 | builtin and then its argument prototype would still apply. */ |
| 3639 | char yywrap (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3640 | #ifdef F77_DUMMY_MAIN |
| 3641 | # ifdef __cplusplus |
| 3642 | extern "C" |
| 3643 | # endif |
| 3644 | int F77_DUMMY_MAIN() { return 1; } |
| 3645 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3646 | int |
| 3647 | main () |
| 3648 | { |
| 3649 | yywrap (); |
| 3650 | ; |
| 3651 | return 0; |
| 3652 | } |
| 3653 | _ACEOF |
| 3654 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3655 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3656 | (eval $ac_link) 2>&5 |
| 3657 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3659 | (exit $ac_status); } && |
| 3660 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3662 | (eval $ac_try) 2>&5 |
| 3663 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3665 | (exit $ac_status); }; }; then |
| 3666 | ac_cv_lib_fl_yywrap=yes |
| 3667 | else |
| 3668 | echo "$as_me: failed program was:" >&5 |
| 3669 | cat conftest.$ac_ext >&5 |
| 3670 | ac_cv_lib_fl_yywrap=no |
| 3671 | fi |
| 3672 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3673 | LIBS=$ac_check_lib_save_LIBS |
| 3674 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3675 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3676 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 3677 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 3678 | LEXLIB="-lfl" |
| 3679 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3680 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3681 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 3682 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 3683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3684 | else |
| 3685 | ac_check_lib_save_LIBS=$LIBS |
| 3686 | LIBS="-ll $LIBS" |
| 3687 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3688 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3689 | #include "confdefs.h" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3690 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3691 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3692 | #ifdef __cplusplus |
| 3693 | extern "C" |
| 3694 | #endif |
| 3695 | /* We use char because int might match the return type of a gcc2 |
| 3696 | builtin and then its argument prototype would still apply. */ |
| 3697 | char yywrap (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3698 | #ifdef F77_DUMMY_MAIN |
| 3699 | # ifdef __cplusplus |
| 3700 | extern "C" |
| 3701 | # endif |
| 3702 | int F77_DUMMY_MAIN() { return 1; } |
| 3703 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3704 | int |
| 3705 | main () |
| 3706 | { |
| 3707 | yywrap (); |
| 3708 | ; |
| 3709 | return 0; |
| 3710 | } |
| 3711 | _ACEOF |
| 3712 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3714 | (eval $ac_link) 2>&5 |
| 3715 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3717 | (exit $ac_status); } && |
| 3718 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3720 | (eval $ac_try) 2>&5 |
| 3721 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3723 | (exit $ac_status); }; }; then |
| 3724 | ac_cv_lib_l_yywrap=yes |
| 3725 | else |
| 3726 | echo "$as_me: failed program was:" >&5 |
| 3727 | cat conftest.$ac_ext >&5 |
| 3728 | ac_cv_lib_l_yywrap=no |
| 3729 | fi |
| 3730 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3731 | LIBS=$ac_check_lib_save_LIBS |
| 3732 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3733 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3734 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 3735 | if test $ac_cv_lib_l_yywrap = yes; then |
| 3736 | LEXLIB="-ll" |
| 3737 | fi |
| 3738 | |
| 3739 | fi |
| 3740 | |
| 3741 | fi |
| 3742 | |
| 3743 | if test "x$LEX" != "x:"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3744 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3745 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 3746 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 3747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3748 | else |
| 3749 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 3750 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3751 | cat >conftest.l <<_ACEOF |
| 3752 | %% |
| 3753 | %% |
| 3754 | _ACEOF |
| 3755 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 3756 | (eval $LEX conftest.l) 2>&5 |
| 3757 | ac_status=$? |
| 3758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3759 | (exit $ac_status); } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3760 | if test -f lex.yy.c; then |
| 3761 | ac_cv_prog_lex_root=lex.yy |
| 3762 | elif test -f lexyy.c; then |
| 3763 | ac_cv_prog_lex_root=lexyy |
| 3764 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3765 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3766 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 3767 | { (exit 1); exit 1; }; } |
| 3768 | fi |
| 3769 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3770 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3771 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3772 | rm -f conftest.l |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3773 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 3774 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3775 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3776 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 3777 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 3778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3779 | else |
| 3780 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 3781 | # default is implementation-dependent. Figure out which it is, since |
| 3782 | # not all implementations provide the %pointer and %array declarations. |
| 3783 | ac_cv_prog_lex_yytext_pointer=no |
| 3784 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 3785 | ac_save_LIBS=$LIBS |
| 3786 | LIBS="$LIBS $LEXLIB" |
| 3787 | cat >conftest.$ac_ext <<_ACEOF |
| 3788 | `cat $LEX_OUTPUT_ROOT.c` |
| 3789 | _ACEOF |
| 3790 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3792 | (eval $ac_link) 2>&5 |
| 3793 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3795 | (exit $ac_status); } && |
| 3796 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3798 | (eval $ac_try) 2>&5 |
| 3799 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3801 | (exit $ac_status); }; }; then |
| 3802 | ac_cv_prog_lex_yytext_pointer=yes |
| 3803 | else |
| 3804 | echo "$as_me: failed program was:" >&5 |
| 3805 | cat conftest.$ac_ext >&5 |
| 3806 | fi |
| 3807 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3808 | LIBS=$ac_save_LIBS |
| 3809 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 3810 | |
| 3811 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3812 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3813 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 3814 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 3815 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3816 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3817 | #define YYTEXT_POINTER 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3818 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3819 | |
| 3820 | fi |
| 3821 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3822 | fi |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3823 | |
| 3824 | for ac_prog in $YACC bison yacc |
| 3825 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3826 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3827 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3828 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3830 | if test "${ac_cv_prog_XYACC+set}" = set; then |
| 3831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3832 | else |
| 3833 | if test -n "$XYACC"; then |
| 3834 | ac_cv_prog_XYACC="$XYACC" # Let the user override the test. |
| 3835 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3837 | for as_dir in $PATH |
| 3838 | do |
| 3839 | IFS=$as_save_IFS |
| 3840 | test -z "$as_dir" && as_dir=. |
| 3841 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3842 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3843 | ac_cv_prog_XYACC="$ac_prog" |
| 3844 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3845 | break 2 |
| 3846 | fi |
| 3847 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3848 | done |
| 3849 | |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3850 | fi |
| 3851 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3852 | XYACC=$ac_cv_prog_XYACC |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3853 | if test -n "$XYACC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3854 | echo "$as_me:$LINENO: result: $XYACC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3855 | echo "${ECHO_T}$XYACC" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3856 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3857 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3858 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3859 | fi |
| 3860 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3861 | test -n "$XYACC" && break |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3862 | done |
| 3863 | test -n "$XYACC" || XYACC="none" |
| 3864 | |
| 3865 | if test "$XYACC" = "none" |
| 3866 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3867 | { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3868 | echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;} |
| 3869 | { (exit 1); exit 1; }; } |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3870 | fi |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3871 | for ac_prog in $LEX flex lex |
| 3872 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3873 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3874 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3875 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3876 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3877 | if test "${ac_cv_prog_XLEX+set}" = set; then |
| 3878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3879 | else |
| 3880 | if test -n "$XLEX"; then |
| 3881 | ac_cv_prog_XLEX="$XLEX" # Let the user override the test. |
| 3882 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3884 | for as_dir in $PATH |
| 3885 | do |
| 3886 | IFS=$as_save_IFS |
| 3887 | test -z "$as_dir" && as_dir=. |
| 3888 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3889 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3890 | ac_cv_prog_XLEX="$ac_prog" |
| 3891 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3892 | break 2 |
| 3893 | fi |
| 3894 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3895 | done |
| 3896 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3897 | fi |
| 3898 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3899 | XLEX=$ac_cv_prog_XLEX |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3900 | if test -n "$XLEX"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3901 | echo "$as_me:$LINENO: result: $XLEX" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3902 | echo "${ECHO_T}$XLEX" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3903 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3904 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3905 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3906 | fi |
| 3907 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3908 | test -n "$XLEX" && break |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3909 | done |
| 3910 | test -n "$XLEX" || XLEX="none" |
| 3911 | |
| 3912 | if test "$XLEX" = "none" |
| 3913 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3914 | { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3915 | echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;} |
| 3916 | { (exit 1); exit 1; }; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3917 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 3918 | |
| 3919 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 3920 | # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. |
| 3921 | set dummy ${ac_tool_prefix}ld; ac_word=$2 |
| 3922 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3924 | if test "${ac_cv_prog_LD+set}" = set; then |
| 3925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3926 | else |
| 3927 | if test -n "$LD"; then |
| 3928 | ac_cv_prog_LD="$LD" # Let the user override the test. |
| 3929 | else |
| 3930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3931 | for as_dir in $PATH |
| 3932 | do |
| 3933 | IFS=$as_save_IFS |
| 3934 | test -z "$as_dir" && as_dir=. |
| 3935 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3936 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3937 | ac_cv_prog_LD="${ac_tool_prefix}ld" |
| 3938 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3939 | break 2 |
| 3940 | fi |
| 3941 | done |
| 3942 | done |
| 3943 | |
| 3944 | fi |
| 3945 | fi |
| 3946 | LD=$ac_cv_prog_LD |
| 3947 | if test -n "$LD"; then |
| 3948 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 3949 | echo "${ECHO_T}$LD" >&6 |
| 3950 | else |
| 3951 | echo "$as_me:$LINENO: result: no" >&5 |
| 3952 | echo "${ECHO_T}no" >&6 |
| 3953 | fi |
| 3954 | |
| 3955 | fi |
| 3956 | if test -z "$ac_cv_prog_LD"; then |
| 3957 | ac_ct_LD=$LD |
| 3958 | # Extract the first word of "ld", so it can be a program name with args. |
| 3959 | set dummy ld; ac_word=$2 |
| 3960 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3961 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3962 | if test "${ac_cv_prog_ac_ct_LD+set}" = set; then |
| 3963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3964 | else |
| 3965 | if test -n "$ac_ct_LD"; then |
| 3966 | ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. |
| 3967 | else |
| 3968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3969 | for as_dir in $PATH |
| 3970 | do |
| 3971 | IFS=$as_save_IFS |
| 3972 | test -z "$as_dir" && as_dir=. |
| 3973 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3974 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3975 | ac_cv_prog_ac_ct_LD="ld" |
| 3976 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3977 | break 2 |
| 3978 | fi |
| 3979 | done |
| 3980 | done |
| 3981 | |
| 3982 | test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld" |
| 3983 | fi |
| 3984 | fi |
| 3985 | ac_ct_LD=$ac_cv_prog_ac_ct_LD |
| 3986 | if test -n "$ac_ct_LD"; then |
| 3987 | echo "$as_me:$LINENO: result: $ac_ct_LD" >&5 |
| 3988 | echo "${ECHO_T}$ac_ct_LD" >&6 |
| 3989 | else |
| 3990 | echo "$as_me:$LINENO: result: no" >&5 |
| 3991 | echo "${ECHO_T}no" >&6 |
| 3992 | fi |
| 3993 | |
| 3994 | LD=$ac_ct_LD |
| 3995 | else |
| 3996 | LD="$ac_cv_prog_LD" |
| 3997 | fi |
| 3998 | |
| 3999 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4000 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 4001 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 4002 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4003 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4004 | if test "${ac_cv_prog_AR+set}" = set; then |
| 4005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4006 | else |
| 4007 | if test -n "$AR"; then |
| 4008 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4009 | else |
| 4010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4011 | for as_dir in $PATH |
| 4012 | do |
| 4013 | IFS=$as_save_IFS |
| 4014 | test -z "$as_dir" && as_dir=. |
| 4015 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4016 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4017 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 4018 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4019 | break 2 |
| 4020 | fi |
| 4021 | done |
| 4022 | done |
| 4023 | |
| 4024 | fi |
| 4025 | fi |
| 4026 | AR=$ac_cv_prog_AR |
| 4027 | if test -n "$AR"; then |
| 4028 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 4029 | echo "${ECHO_T}$AR" >&6 |
| 4030 | else |
| 4031 | echo "$as_me:$LINENO: result: no" >&5 |
| 4032 | echo "${ECHO_T}no" >&6 |
| 4033 | fi |
| 4034 | |
| 4035 | fi |
| 4036 | if test -z "$ac_cv_prog_AR"; then |
| 4037 | ac_ct_AR=$AR |
| 4038 | # Extract the first word of "ar", so it can be a program name with args. |
| 4039 | set dummy ar; ac_word=$2 |
| 4040 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4041 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4042 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 4043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4044 | else |
| 4045 | if test -n "$ac_ct_AR"; then |
| 4046 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4047 | else |
| 4048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4049 | for as_dir in $PATH |
| 4050 | do |
| 4051 | IFS=$as_save_IFS |
| 4052 | test -z "$as_dir" && as_dir=. |
| 4053 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4054 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4055 | ac_cv_prog_ac_ct_AR="ar" |
| 4056 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4057 | break 2 |
| 4058 | fi |
| 4059 | done |
| 4060 | done |
| 4061 | |
| 4062 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" |
| 4063 | fi |
| 4064 | fi |
| 4065 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4066 | if test -n "$ac_ct_AR"; then |
| 4067 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 4068 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 4069 | else |
| 4070 | echo "$as_me:$LINENO: result: no" >&5 |
| 4071 | echo "${ECHO_T}no" >&6 |
| 4072 | fi |
| 4073 | |
| 4074 | AR=$ac_ct_AR |
| 4075 | else |
| 4076 | AR="$ac_cv_prog_AR" |
| 4077 | fi |
| 4078 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4079 | if test -n "$ac_tool_prefix"; then |
| 4080 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4081 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4082 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4084 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4086 | else |
| 4087 | if test -n "$RANLIB"; then |
| 4088 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4089 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4091 | for as_dir in $PATH |
| 4092 | do |
| 4093 | IFS=$as_save_IFS |
| 4094 | test -z "$as_dir" && as_dir=. |
| 4095 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4096 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4097 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4099 | break 2 |
| 4100 | fi |
| 4101 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4102 | done |
| 4103 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4104 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4105 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4106 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4107 | if test -n "$RANLIB"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4108 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4109 | echo "${ECHO_T}$RANLIB" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4110 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4111 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4112 | echo "${ECHO_T}no" >&6 |
| 4113 | fi |
| 4114 | |
| 4115 | fi |
| 4116 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4117 | ac_ct_RANLIB=$RANLIB |
| 4118 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4119 | set dummy ranlib; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4120 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4121 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4122 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4124 | else |
| 4125 | if test -n "$ac_ct_RANLIB"; then |
| 4126 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4127 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4129 | for as_dir in $PATH |
| 4130 | do |
| 4131 | IFS=$as_save_IFS |
| 4132 | test -z "$as_dir" && as_dir=. |
| 4133 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4134 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4135 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4137 | break 2 |
| 4138 | fi |
| 4139 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4140 | done |
| 4141 | |
| 4142 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 4143 | fi |
| 4144 | fi |
| 4145 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4146 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4147 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4148 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 4149 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4150 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4151 | echo "${ECHO_T}no" >&6 |
| 4152 | fi |
| 4153 | |
| 4154 | RANLIB=$ac_ct_RANLIB |
| 4155 | else |
| 4156 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4157 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4158 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4159 | if test -n "$ac_tool_prefix"; then |
| 4160 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4161 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 4162 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4164 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 4165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4166 | else |
| 4167 | if test -n "$STRIP"; then |
| 4168 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4169 | else |
| 4170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4171 | for as_dir in $PATH |
| 4172 | do |
| 4173 | IFS=$as_save_IFS |
| 4174 | test -z "$as_dir" && as_dir=. |
| 4175 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4176 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4177 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 4178 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4179 | break 2 |
| 4180 | fi |
| 4181 | done |
| 4182 | done |
| 4183 | |
| 4184 | fi |
| 4185 | fi |
| 4186 | STRIP=$ac_cv_prog_STRIP |
| 4187 | if test -n "$STRIP"; then |
| 4188 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 4189 | echo "${ECHO_T}$STRIP" >&6 |
| 4190 | else |
| 4191 | echo "$as_me:$LINENO: result: no" >&5 |
| 4192 | echo "${ECHO_T}no" >&6 |
| 4193 | fi |
| 4194 | |
| 4195 | fi |
| 4196 | if test -z "$ac_cv_prog_STRIP"; then |
| 4197 | ac_ct_STRIP=$STRIP |
| 4198 | # Extract the first word of "strip", so it can be a program name with args. |
| 4199 | set dummy strip; ac_word=$2 |
| 4200 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4201 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4202 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 4203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4204 | else |
| 4205 | if test -n "$ac_ct_STRIP"; then |
| 4206 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4207 | else |
| 4208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4209 | for as_dir in $PATH |
| 4210 | do |
| 4211 | IFS=$as_save_IFS |
| 4212 | test -z "$as_dir" && as_dir=. |
| 4213 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4214 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4215 | ac_cv_prog_ac_ct_STRIP="strip" |
| 4216 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4217 | break 2 |
| 4218 | fi |
| 4219 | done |
| 4220 | done |
| 4221 | |
| 4222 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip" |
| 4223 | fi |
| 4224 | fi |
| 4225 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4226 | if test -n "$ac_ct_STRIP"; then |
| 4227 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 4228 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 4229 | else |
| 4230 | echo "$as_me:$LINENO: result: no" >&5 |
| 4231 | echo "${ECHO_T}no" >&6 |
| 4232 | fi |
| 4233 | |
| 4234 | STRIP=$ac_ct_STRIP |
| 4235 | else |
| 4236 | STRIP="$ac_cv_prog_STRIP" |
| 4237 | fi |
| 4238 | |
| 4239 | if test -n "$ac_tool_prefix"; then |
| 4240 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 4241 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 4242 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4243 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4244 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
| 4245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4246 | else |
| 4247 | if test -n "$WINDRES"; then |
| 4248 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 4249 | else |
| 4250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4251 | for as_dir in $PATH |
| 4252 | do |
| 4253 | IFS=$as_save_IFS |
| 4254 | test -z "$as_dir" && as_dir=. |
| 4255 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4256 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4257 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 4258 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4259 | break 2 |
| 4260 | fi |
| 4261 | done |
| 4262 | done |
| 4263 | |
| 4264 | fi |
| 4265 | fi |
| 4266 | WINDRES=$ac_cv_prog_WINDRES |
| 4267 | if test -n "$WINDRES"; then |
| 4268 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
| 4269 | echo "${ECHO_T}$WINDRES" >&6 |
| 4270 | else |
| 4271 | echo "$as_me:$LINENO: result: no" >&5 |
| 4272 | echo "${ECHO_T}no" >&6 |
| 4273 | fi |
| 4274 | |
| 4275 | fi |
| 4276 | if test -z "$ac_cv_prog_WINDRES"; then |
| 4277 | ac_ct_WINDRES=$WINDRES |
| 4278 | # Extract the first word of "windres", so it can be a program name with args. |
| 4279 | set dummy windres; ac_word=$2 |
| 4280 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4281 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4282 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
| 4283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4284 | else |
| 4285 | if test -n "$ac_ct_WINDRES"; then |
| 4286 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 4287 | else |
| 4288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4289 | for as_dir in $PATH |
| 4290 | do |
| 4291 | IFS=$as_save_IFS |
| 4292 | test -z "$as_dir" && as_dir=. |
| 4293 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4294 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4295 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 4296 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4297 | break 2 |
| 4298 | fi |
| 4299 | done |
| 4300 | done |
| 4301 | |
| 4302 | test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false" |
| 4303 | fi |
| 4304 | fi |
| 4305 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 4306 | if test -n "$ac_ct_WINDRES"; then |
| 4307 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
| 4308 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 |
| 4309 | else |
| 4310 | echo "$as_me:$LINENO: result: no" >&5 |
| 4311 | echo "${ECHO_T}no" >&6 |
| 4312 | fi |
| 4313 | |
| 4314 | WINDRES=$ac_ct_WINDRES |
| 4315 | else |
| 4316 | WINDRES="$ac_cv_prog_WINDRES" |
| 4317 | fi |
| 4318 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4319 | # Find a good install program. We prefer a C program (faster), |
| 4320 | # so one script is as good as another. But avoid the broken or |
| 4321 | # incompatible versions: |
| 4322 | # SysV /etc/install, /usr/sbin/install |
| 4323 | # SunOS /usr/etc/install |
| 4324 | # IRIX /sbin/install |
| 4325 | # AIX /bin/install |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4326 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 4327 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4328 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4329 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4330 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4331 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4332 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4333 | if test -z "$INSTALL"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4334 | if test "${ac_cv_path_install+set}" = set; then |
| 4335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4336 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4338 | for as_dir in $PATH |
| 4339 | do |
| 4340 | IFS=$as_save_IFS |
| 4341 | test -z "$as_dir" && as_dir=. |
| 4342 | # Account for people who put trailing slashes in PATH elements. |
| 4343 | case $as_dir/ in |
| 4344 | ./ | .// | /cC/* | \ |
| 4345 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4346 | /usr/ucb/* ) ;; |
| 4347 | *) |
| 4348 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4349 | # Don't use installbsd from OSF since it installs stuff as root |
| 4350 | # by default. |
| 4351 | for ac_prog in ginstall scoinst install; do |
| 4352 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4353 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 4354 | if test $ac_prog = install && |
| 4355 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4356 | # AIX install. It has an incompatible calling convention. |
| 4357 | : |
| 4358 | elif test $ac_prog = install && |
| 4359 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4360 | # program-specific install script used by HP pwplus--don't use. |
| 4361 | : |
| 4362 | else |
| 4363 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4364 | break 3 |
| 4365 | fi |
| 4366 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4367 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4368 | done |
| 4369 | ;; |
| 4370 | esac |
| 4371 | done |
| 4372 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4373 | |
| 4374 | fi |
| 4375 | if test "${ac_cv_path_install+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4376 | INSTALL=$ac_cv_path_install |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4377 | else |
| 4378 | # As a last resort, use the slow shell script. We don't cache a |
| 4379 | # path for INSTALL within a source directory, because that will |
| 4380 | # break other packages using the cache if that directory is |
| 4381 | # removed, or if the path is relative. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4382 | INSTALL=$ac_install_sh |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4383 | fi |
| 4384 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4385 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4386 | echo "${ECHO_T}$INSTALL" >&6 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4387 | |
| 4388 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4389 | # It thinks the first close brace ends the variable substitution. |
| 4390 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4391 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4392 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 4393 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4394 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4395 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4396 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4397 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4398 | LN_S=$as_ln_s |
| 4399 | if test "$LN_S" = "ln -s"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4400 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4401 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4402 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4403 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4404 | echo "${ECHO_T}no, using $LN_S" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4405 | fi |
| 4406 | |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 4407 | echo "$as_me:$LINENO: checking whether ln works" >&5 |
| 4408 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6 |
| 4409 | rm -f conf$$ conf$$.file |
| 4410 | echo >conf$$.file |
| 4411 | if ln conf$$.file conf$$ 2>/dev/null; then |
| 4412 | LN=ln |
| 4413 | |
| 4414 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4415 | echo "${ECHO_T}yes" >&6 |
| 4416 | else |
| 4417 | LN="cp -p" |
| 4418 | |
| 4419 | echo "$as_me:$LINENO: result: no, using $LN" >&5 |
| 4420 | echo "${ECHO_T}no, using $LN" >&6 |
| 4421 | fi |
| 4422 | rm -f conf$$ conf$$.file |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4423 | # Extract the first word of "c2man", so it can be a program name with args. |
| 4424 | set dummy c2man; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4425 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4427 | if test "${ac_cv_prog_C2MAN+set}" = set; then |
| 4428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4429 | else |
| 4430 | if test -n "$C2MAN"; then |
| 4431 | ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test. |
| 4432 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4434 | for as_dir in $PATH |
| 4435 | do |
| 4436 | IFS=$as_save_IFS |
| 4437 | test -z "$as_dir" && as_dir=. |
| 4438 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4439 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4440 | ac_cv_prog_C2MAN="c2man" |
| 4441 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4442 | break 2 |
| 4443 | fi |
| 4444 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4445 | done |
| 4446 | |
Mike McCormack | e0df32f | 2000-08-11 21:15:21 +0000 | [diff] [blame] | 4447 | test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4448 | fi |
| 4449 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4450 | C2MAN=$ac_cv_prog_C2MAN |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4451 | if test -n "$C2MAN"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4452 | echo "$as_me:$LINENO: result: $C2MAN" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4453 | echo "${ECHO_T}$C2MAN" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4454 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4455 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4456 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4457 | fi |
| 4458 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4459 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 4460 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4461 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4463 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 4464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4465 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4466 | case $LDCONFIG in |
| 4467 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4468 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 4469 | ;; |
| 4470 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bill Medland | 91372b3 | 2002-04-20 21:00:42 +0000 | [diff] [blame] | 4472 | for as_dir in /sbin /usr/sbin $PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4473 | do |
| 4474 | IFS=$as_save_IFS |
| 4475 | test -z "$as_dir" && as_dir=. |
| 4476 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4477 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4478 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4479 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4480 | break 2 |
| 4481 | fi |
| 4482 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4483 | done |
| 4484 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 4485 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4486 | ;; |
| 4487 | esac |
| 4488 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4489 | LDCONFIG=$ac_cv_path_LDCONFIG |
| 4490 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4491 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4492 | echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4493 | echo "${ECHO_T}$LDCONFIG" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4494 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4495 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4496 | echo "${ECHO_T}no" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4497 | fi |
| 4498 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4499 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4500 | for ac_prog in lclint lint |
| 4501 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4502 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4503 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4504 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4506 | if test "${ac_cv_prog_LINT+set}" = set; then |
| 4507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4508 | else |
| 4509 | if test -n "$LINT"; then |
| 4510 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 4511 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4513 | for as_dir in $PATH |
| 4514 | do |
| 4515 | IFS=$as_save_IFS |
| 4516 | test -z "$as_dir" && as_dir=. |
| 4517 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4519 | ac_cv_prog_LINT="$ac_prog" |
| 4520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4521 | break 2 |
| 4522 | fi |
| 4523 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4524 | done |
| 4525 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4526 | fi |
| 4527 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4528 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4529 | if test -n "$LINT"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4530 | echo "$as_me:$LINENO: result: $LINT" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4531 | echo "${ECHO_T}$LINT" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4532 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4533 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4534 | echo "${ECHO_T}no" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4535 | fi |
| 4536 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4537 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4538 | done |
| 4539 | |
| 4540 | if test "$LINT" = "lint" |
| 4541 | then |
| 4542 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 4543 | fi |
| 4544 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4545 | |
| 4546 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4547 | |
| 4548 | |
| 4549 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4550 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
| 4551 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
| 4552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | 79e44ab | 2000-12-05 04:13:36 +0000 | [diff] [blame] | 4553 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4554 | ac_check_lib_save_LIBS=$LIBS |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4555 | LIBS="-lm $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4556 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4557 | #line $LINENO "configure" |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4558 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4559 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4560 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4561 | #ifdef __cplusplus |
| 4562 | extern "C" |
| 4563 | #endif |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4564 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4565 | builtin and then its argument prototype would still apply. */ |
| 4566 | char sqrt (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4567 | #ifdef F77_DUMMY_MAIN |
| 4568 | # ifdef __cplusplus |
| 4569 | extern "C" |
| 4570 | # endif |
| 4571 | int F77_DUMMY_MAIN() { return 1; } |
| 4572 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4573 | int |
| 4574 | main () |
| 4575 | { |
| 4576 | sqrt (); |
| 4577 | ; |
| 4578 | return 0; |
| 4579 | } |
| 4580 | _ACEOF |
| 4581 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4583 | (eval $ac_link) 2>&5 |
| 4584 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4586 | (exit $ac_status); } && |
| 4587 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4589 | (eval $ac_try) 2>&5 |
| 4590 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4592 | (exit $ac_status); }; }; then |
| 4593 | ac_cv_lib_m_sqrt=yes |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4594 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4595 | echo "$as_me: failed program was:" >&5 |
| 4596 | cat conftest.$ac_ext >&5 |
| 4597 | ac_cv_lib_m_sqrt=no |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4598 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4599 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4600 | LIBS=$ac_check_lib_save_LIBS |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4601 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4602 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4603 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
| 4604 | if test $ac_cv_lib_m_sqrt = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4605 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4606 | #define HAVE_LIBM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4607 | _ACEOF |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4608 | |
| 4609 | LIBS="-lm $LIBS" |
| 4610 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4611 | fi |
| 4612 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4613 | |
| 4614 | echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4615 | echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6 |
| 4616 | if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then |
| 4617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 4618 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4619 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 4620 | LIBS="-li386 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4621 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4622 | #line $LINENO "configure" |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 4623 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4624 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 4625 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4626 | #ifdef __cplusplus |
| 4627 | extern "C" |
| 4628 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4629 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4630 | builtin and then its argument prototype would still apply. */ |
| 4631 | char i386_set_ldt (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4632 | #ifdef F77_DUMMY_MAIN |
| 4633 | # ifdef __cplusplus |
| 4634 | extern "C" |
| 4635 | # endif |
| 4636 | int F77_DUMMY_MAIN() { return 1; } |
| 4637 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4638 | int |
| 4639 | main () |
| 4640 | { |
| 4641 | i386_set_ldt (); |
| 4642 | ; |
| 4643 | return 0; |
| 4644 | } |
| 4645 | _ACEOF |
| 4646 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4648 | (eval $ac_link) 2>&5 |
| 4649 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4651 | (exit $ac_status); } && |
| 4652 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4654 | (eval $ac_try) 2>&5 |
| 4655 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4657 | (exit $ac_status); }; }; then |
| 4658 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 4659 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4660 | echo "$as_me: failed program was:" >&5 |
| 4661 | cat conftest.$ac_ext >&5 |
| 4662 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 4663 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4664 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4665 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 4666 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4667 | echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4668 | echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6 |
| 4669 | if test $ac_cv_lib_i386_i386_set_ldt = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4670 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4671 | #define HAVE_LIBI386 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4672 | _ACEOF |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 4673 | |
| 4674 | LIBS="-li386 $LIBS" |
| 4675 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 4676 | fi |
| 4677 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4678 | |
| 4679 | echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4680 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
| 4681 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
| 4682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4683 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4684 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4685 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4686 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4687 | #line $LINENO "configure" |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4688 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4689 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4690 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4691 | #ifdef __cplusplus |
| 4692 | extern "C" |
| 4693 | #endif |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4694 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4695 | builtin and then its argument prototype would still apply. */ |
| 4696 | char _oss_ioctl (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4697 | #ifdef F77_DUMMY_MAIN |
| 4698 | # ifdef __cplusplus |
| 4699 | extern "C" |
| 4700 | # endif |
| 4701 | int F77_DUMMY_MAIN() { return 1; } |
| 4702 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4703 | int |
| 4704 | main () |
| 4705 | { |
| 4706 | _oss_ioctl (); |
| 4707 | ; |
| 4708 | return 0; |
| 4709 | } |
| 4710 | _ACEOF |
| 4711 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4712 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4713 | (eval $ac_link) 2>&5 |
| 4714 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4716 | (exit $ac_status); } && |
| 4717 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4719 | (eval $ac_try) 2>&5 |
| 4720 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4722 | (exit $ac_status); }; }; then |
| 4723 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4724 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4725 | echo "$as_me: failed program was:" >&5 |
| 4726 | cat conftest.$ac_ext >&5 |
| 4727 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4728 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4729 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4730 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4731 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4732 | echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4733 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
| 4734 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4735 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4736 | #define HAVE_LIBOSSAUDIO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4737 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4738 | |
| 4739 | LIBS="-lossaudio $LIBS" |
| 4740 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4741 | fi |
| 4742 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4743 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4744 | for ac_func in iswalnum |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4745 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4746 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4747 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4748 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4749 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4751 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4752 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4753 | #line $LINENO "configure" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4754 | #include "confdefs.h" |
| 4755 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4756 | which can conflict with char $ac_func (); below. */ |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4757 | #include <assert.h> |
| 4758 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4759 | #ifdef __cplusplus |
| 4760 | extern "C" |
| 4761 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4762 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4763 | builtin and then its argument prototype would still apply. */ |
| 4764 | char $ac_func (); |
| 4765 | char (*f) (); |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4766 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4767 | #ifdef F77_DUMMY_MAIN |
| 4768 | # ifdef __cplusplus |
| 4769 | extern "C" |
| 4770 | # endif |
| 4771 | int F77_DUMMY_MAIN() { return 1; } |
| 4772 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4773 | int |
| 4774 | main () |
| 4775 | { |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4776 | /* The GNU C library defines this for functions which it implements |
| 4777 | to always fail with ENOSYS. Some functions are actually named |
| 4778 | something starting with __ and the normal name is an alias. */ |
| 4779 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4780 | choke me |
| 4781 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4782 | f = $ac_func; |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4783 | #endif |
| 4784 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4785 | ; |
| 4786 | return 0; |
| 4787 | } |
| 4788 | _ACEOF |
| 4789 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4791 | (eval $ac_link) 2>&5 |
| 4792 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4794 | (exit $ac_status); } && |
| 4795 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4797 | (eval $ac_try) 2>&5 |
| 4798 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4800 | (exit $ac_status); }; }; then |
| 4801 | eval "$as_ac_var=yes" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4802 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4803 | echo "$as_me: failed program was:" >&5 |
| 4804 | cat conftest.$ac_ext >&5 |
| 4805 | eval "$as_ac_var=no" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4806 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4807 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4808 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4809 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4810 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4811 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4812 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4813 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4814 | _ACEOF |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4815 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4816 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4817 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4818 | echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4819 | echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6 |
| 4820 | if test "${ac_cv_lib_w_iswalnum+set}" = set; then |
| 4821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4822 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4823 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4824 | LIBS="-lw $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4825 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4826 | #line $LINENO "configure" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4827 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4828 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4829 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4830 | #ifdef __cplusplus |
| 4831 | extern "C" |
| 4832 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4833 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4834 | builtin and then its argument prototype would still apply. */ |
| 4835 | char iswalnum (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4836 | #ifdef F77_DUMMY_MAIN |
| 4837 | # ifdef __cplusplus |
| 4838 | extern "C" |
| 4839 | # endif |
| 4840 | int F77_DUMMY_MAIN() { return 1; } |
| 4841 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4842 | int |
| 4843 | main () |
| 4844 | { |
| 4845 | iswalnum (); |
| 4846 | ; |
| 4847 | return 0; |
| 4848 | } |
| 4849 | _ACEOF |
| 4850 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4852 | (eval $ac_link) 2>&5 |
| 4853 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4855 | (exit $ac_status); } && |
| 4856 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4858 | (eval $ac_try) 2>&5 |
| 4859 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4861 | (exit $ac_status); }; }; then |
| 4862 | ac_cv_lib_w_iswalnum=yes |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4863 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4864 | echo "$as_me: failed program was:" >&5 |
| 4865 | cat conftest.$ac_ext >&5 |
| 4866 | ac_cv_lib_w_iswalnum=no |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4867 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4868 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4869 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4870 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4871 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4872 | echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6 |
| 4873 | if test $ac_cv_lib_w_iswalnum = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4874 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4875 | #define HAVE_LIBW 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4876 | _ACEOF |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4877 | |
| 4878 | LIBS="-lw $LIBS" |
| 4879 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4880 | fi |
| 4881 | |
| 4882 | fi |
| 4883 | done |
| 4884 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4885 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4886 | for ac_func in gethostbyname |
| 4887 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4888 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4889 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4890 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4891 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4893 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4894 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4895 | #line $LINENO "configure" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4896 | #include "confdefs.h" |
| 4897 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4898 | which can conflict with char $ac_func (); below. */ |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4899 | #include <assert.h> |
| 4900 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4901 | #ifdef __cplusplus |
| 4902 | extern "C" |
| 4903 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4904 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4905 | builtin and then its argument prototype would still apply. */ |
| 4906 | char $ac_func (); |
| 4907 | char (*f) (); |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4908 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4909 | #ifdef F77_DUMMY_MAIN |
| 4910 | # ifdef __cplusplus |
| 4911 | extern "C" |
| 4912 | # endif |
| 4913 | int F77_DUMMY_MAIN() { return 1; } |
| 4914 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4915 | int |
| 4916 | main () |
| 4917 | { |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4918 | /* The GNU C library defines this for functions which it implements |
| 4919 | to always fail with ENOSYS. Some functions are actually named |
| 4920 | something starting with __ and the normal name is an alias. */ |
| 4921 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4922 | choke me |
| 4923 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4924 | f = $ac_func; |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4925 | #endif |
| 4926 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4927 | ; |
| 4928 | return 0; |
| 4929 | } |
| 4930 | _ACEOF |
| 4931 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4933 | (eval $ac_link) 2>&5 |
| 4934 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4936 | (exit $ac_status); } && |
| 4937 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4939 | (eval $ac_try) 2>&5 |
| 4940 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4942 | (exit $ac_status); }; }; then |
| 4943 | eval "$as_ac_var=yes" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4944 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4945 | echo "$as_me: failed program was:" >&5 |
| 4946 | cat conftest.$ac_ext >&5 |
| 4947 | eval "$as_ac_var=no" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4948 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4949 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4950 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4951 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4952 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4953 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4954 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4955 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4956 | _ACEOF |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4957 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4958 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4959 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4960 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4961 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 4962 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 4963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4964 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4965 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4966 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4967 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4968 | #line $LINENO "configure" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4969 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4970 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4971 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4972 | #ifdef __cplusplus |
| 4973 | extern "C" |
| 4974 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4975 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4976 | builtin and then its argument prototype would still apply. */ |
| 4977 | char gethostbyname (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4978 | #ifdef F77_DUMMY_MAIN |
| 4979 | # ifdef __cplusplus |
| 4980 | extern "C" |
| 4981 | # endif |
| 4982 | int F77_DUMMY_MAIN() { return 1; } |
| 4983 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4984 | int |
| 4985 | main () |
| 4986 | { |
| 4987 | gethostbyname (); |
| 4988 | ; |
| 4989 | return 0; |
| 4990 | } |
| 4991 | _ACEOF |
| 4992 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4994 | (eval $ac_link) 2>&5 |
| 4995 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4997 | (exit $ac_status); } && |
| 4998 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5000 | (eval $ac_try) 2>&5 |
| 5001 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5003 | (exit $ac_status); }; }; then |
| 5004 | ac_cv_lib_nsl_gethostbyname=yes |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5005 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5006 | echo "$as_me: failed program was:" >&5 |
| 5007 | cat conftest.$ac_ext >&5 |
| 5008 | ac_cv_lib_nsl_gethostbyname=no |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5009 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5010 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5011 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5012 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5013 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5014 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 5015 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5016 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5017 | #define HAVE_LIBNSL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5018 | _ACEOF |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5019 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5020 | LIBS="-lnsl $LIBS" |
| 5021 | |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5022 | fi |
| 5023 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5024 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 5025 | done |
| 5026 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5027 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5028 | for ac_func in connect |
| 5029 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5030 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5031 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5032 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5033 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5035 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5036 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5037 | #line $LINENO "configure" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5038 | #include "confdefs.h" |
| 5039 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5040 | which can conflict with char $ac_func (); below. */ |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5041 | #include <assert.h> |
| 5042 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5043 | #ifdef __cplusplus |
| 5044 | extern "C" |
| 5045 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5046 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5047 | builtin and then its argument prototype would still apply. */ |
| 5048 | char $ac_func (); |
| 5049 | char (*f) (); |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5050 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5051 | #ifdef F77_DUMMY_MAIN |
| 5052 | # ifdef __cplusplus |
| 5053 | extern "C" |
| 5054 | # endif |
| 5055 | int F77_DUMMY_MAIN() { return 1; } |
| 5056 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5057 | int |
| 5058 | main () |
| 5059 | { |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5060 | /* The GNU C library defines this for functions which it implements |
| 5061 | to always fail with ENOSYS. Some functions are actually named |
| 5062 | something starting with __ and the normal name is an alias. */ |
| 5063 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5064 | choke me |
| 5065 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5066 | f = $ac_func; |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5067 | #endif |
| 5068 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5069 | ; |
| 5070 | return 0; |
| 5071 | } |
| 5072 | _ACEOF |
| 5073 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5075 | (eval $ac_link) 2>&5 |
| 5076 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5078 | (exit $ac_status); } && |
| 5079 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5081 | (eval $ac_try) 2>&5 |
| 5082 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5084 | (exit $ac_status); }; }; then |
| 5085 | eval "$as_ac_var=yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5086 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5087 | echo "$as_me: failed program was:" >&5 |
| 5088 | cat conftest.$ac_ext >&5 |
| 5089 | eval "$as_ac_var=no" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5090 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5091 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5092 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5093 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5094 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5095 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5096 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5097 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5098 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5099 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5100 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5101 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5102 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5103 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 5104 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 5105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5106 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5107 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5108 | LIBS="-lsocket $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5109 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5110 | #line $LINENO "configure" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5111 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5112 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5113 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5114 | #ifdef __cplusplus |
| 5115 | extern "C" |
| 5116 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5117 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5118 | builtin and then its argument prototype would still apply. */ |
| 5119 | char connect (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5120 | #ifdef F77_DUMMY_MAIN |
| 5121 | # ifdef __cplusplus |
| 5122 | extern "C" |
| 5123 | # endif |
| 5124 | int F77_DUMMY_MAIN() { return 1; } |
| 5125 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5126 | int |
| 5127 | main () |
| 5128 | { |
| 5129 | connect (); |
| 5130 | ; |
| 5131 | return 0; |
| 5132 | } |
| 5133 | _ACEOF |
| 5134 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5136 | (eval $ac_link) 2>&5 |
| 5137 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5139 | (exit $ac_status); } && |
| 5140 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5142 | (eval $ac_try) 2>&5 |
| 5143 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5145 | (exit $ac_status); }; }; then |
| 5146 | ac_cv_lib_socket_connect=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5147 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5148 | echo "$as_me: failed program was:" >&5 |
| 5149 | cat conftest.$ac_ext >&5 |
| 5150 | ac_cv_lib_socket_connect=no |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5151 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5152 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5153 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5154 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5155 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5156 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 5157 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5158 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5159 | #define HAVE_LIBSOCKET 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5160 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5161 | |
| 5162 | LIBS="-lsocket $LIBS" |
| 5163 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5164 | fi |
| 5165 | |
| 5166 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 5167 | done |
| 5168 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5169 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5170 | for ac_func in inet_aton |
| 5171 | do |
| 5172 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5173 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5174 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5175 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5177 | else |
| 5178 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5179 | #line $LINENO "configure" |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5180 | #include "confdefs.h" |
| 5181 | /* System header to define __stub macros and hopefully few prototypes, |
| 5182 | which can conflict with char $ac_func (); below. */ |
| 5183 | #include <assert.h> |
| 5184 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5185 | #ifdef __cplusplus |
| 5186 | extern "C" |
| 5187 | #endif |
| 5188 | /* We use char because int might match the return type of a gcc2 |
| 5189 | builtin and then its argument prototype would still apply. */ |
| 5190 | char $ac_func (); |
| 5191 | char (*f) (); |
| 5192 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5193 | #ifdef F77_DUMMY_MAIN |
| 5194 | # ifdef __cplusplus |
| 5195 | extern "C" |
| 5196 | # endif |
| 5197 | int F77_DUMMY_MAIN() { return 1; } |
| 5198 | #endif |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5199 | int |
| 5200 | main () |
| 5201 | { |
| 5202 | /* The GNU C library defines this for functions which it implements |
| 5203 | to always fail with ENOSYS. Some functions are actually named |
| 5204 | something starting with __ and the normal name is an alias. */ |
| 5205 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5206 | choke me |
| 5207 | #else |
| 5208 | f = $ac_func; |
| 5209 | #endif |
| 5210 | |
| 5211 | ; |
| 5212 | return 0; |
| 5213 | } |
| 5214 | _ACEOF |
| 5215 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5217 | (eval $ac_link) 2>&5 |
| 5218 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5220 | (exit $ac_status); } && |
| 5221 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5223 | (eval $ac_try) 2>&5 |
| 5224 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5226 | (exit $ac_status); }; }; then |
| 5227 | eval "$as_ac_var=yes" |
| 5228 | else |
| 5229 | echo "$as_me: failed program was:" >&5 |
| 5230 | cat conftest.$ac_ext >&5 |
| 5231 | eval "$as_ac_var=no" |
| 5232 | fi |
| 5233 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5234 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5235 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5236 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5237 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5238 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5239 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5240 | _ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5241 | |
| 5242 | else |
| 5243 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5244 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5245 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 5246 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 5247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5248 | else |
| 5249 | ac_check_lib_save_LIBS=$LIBS |
| 5250 | LIBS="-lresolv $LIBS" |
| 5251 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5252 | #line $LINENO "configure" |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5253 | #include "confdefs.h" |
| 5254 | |
| 5255 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5256 | #ifdef __cplusplus |
| 5257 | extern "C" |
| 5258 | #endif |
| 5259 | /* We use char because int might match the return type of a gcc2 |
| 5260 | builtin and then its argument prototype would still apply. */ |
| 5261 | char inet_aton (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5262 | #ifdef F77_DUMMY_MAIN |
| 5263 | # ifdef __cplusplus |
| 5264 | extern "C" |
| 5265 | # endif |
| 5266 | int F77_DUMMY_MAIN() { return 1; } |
| 5267 | #endif |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5268 | int |
| 5269 | main () |
| 5270 | { |
| 5271 | inet_aton (); |
| 5272 | ; |
| 5273 | return 0; |
| 5274 | } |
| 5275 | _ACEOF |
| 5276 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5277 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5278 | (eval $ac_link) 2>&5 |
| 5279 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5281 | (exit $ac_status); } && |
| 5282 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5284 | (eval $ac_try) 2>&5 |
| 5285 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5287 | (exit $ac_status); }; }; then |
| 5288 | ac_cv_lib_resolv_inet_aton=yes |
| 5289 | else |
| 5290 | echo "$as_me: failed program was:" >&5 |
| 5291 | cat conftest.$ac_ext >&5 |
| 5292 | ac_cv_lib_resolv_inet_aton=no |
| 5293 | fi |
| 5294 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5295 | LIBS=$ac_check_lib_save_LIBS |
| 5296 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5297 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5298 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 5299 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5300 | cat >>confdefs.h <<_ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5301 | #define HAVE_LIBRESOLV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5302 | _ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5303 | |
| 5304 | LIBS="-lresolv $LIBS" |
| 5305 | |
| 5306 | fi |
| 5307 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5308 | fi |
| 5309 | done |
| 5310 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5311 | |
| 5312 | echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5313 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
| 5314 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 5315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5316 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5317 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5318 | LIBS="-lxpg4 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5319 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5320 | #line $LINENO "configure" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5321 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5322 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5323 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5324 | #ifdef __cplusplus |
| 5325 | extern "C" |
| 5326 | #endif |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5327 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5328 | builtin and then its argument prototype would still apply. */ |
| 5329 | char _xpg4_setrunelocale (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5330 | #ifdef F77_DUMMY_MAIN |
| 5331 | # ifdef __cplusplus |
| 5332 | extern "C" |
| 5333 | # endif |
| 5334 | int F77_DUMMY_MAIN() { return 1; } |
| 5335 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5336 | int |
| 5337 | main () |
| 5338 | { |
| 5339 | _xpg4_setrunelocale (); |
| 5340 | ; |
| 5341 | return 0; |
| 5342 | } |
| 5343 | _ACEOF |
| 5344 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5346 | (eval $ac_link) 2>&5 |
| 5347 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5349 | (exit $ac_status); } && |
| 5350 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5352 | (eval $ac_try) 2>&5 |
| 5353 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5355 | (exit $ac_status); }; }; then |
| 5356 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5357 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5358 | echo "$as_me: failed program was:" >&5 |
| 5359 | cat conftest.$ac_ext >&5 |
| 5360 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5361 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5362 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5363 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5364 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5365 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5366 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 |
| 5367 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5368 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5369 | #define HAVE_LIBXPG4 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5370 | _ACEOF |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5371 | |
| 5372 | LIBS="-lxpg4 $LIBS" |
| 5373 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5374 | fi |
| 5375 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5376 | |
| 5377 | echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5378 | echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6 |
| 5379 | if test "${ac_cv_lib_mmap_mmap+set}" = set; then |
| 5380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5381 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5382 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5383 | LIBS="-lmmap $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5384 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5385 | #line $LINENO "configure" |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5386 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5387 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5388 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5389 | #ifdef __cplusplus |
| 5390 | extern "C" |
| 5391 | #endif |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5392 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5393 | builtin and then its argument prototype would still apply. */ |
| 5394 | char mmap (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5395 | #ifdef F77_DUMMY_MAIN |
| 5396 | # ifdef __cplusplus |
| 5397 | extern "C" |
| 5398 | # endif |
| 5399 | int F77_DUMMY_MAIN() { return 1; } |
| 5400 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5401 | int |
| 5402 | main () |
| 5403 | { |
| 5404 | mmap (); |
| 5405 | ; |
| 5406 | return 0; |
| 5407 | } |
| 5408 | _ACEOF |
| 5409 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5411 | (eval $ac_link) 2>&5 |
| 5412 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5414 | (exit $ac_status); } && |
| 5415 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5417 | (eval $ac_try) 2>&5 |
| 5418 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5420 | (exit $ac_status); }; }; then |
| 5421 | ac_cv_lib_mmap_mmap=yes |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5422 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5423 | echo "$as_me: failed program was:" >&5 |
| 5424 | cat conftest.$ac_ext >&5 |
| 5425 | ac_cv_lib_mmap_mmap=no |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5426 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5427 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5428 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5429 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5430 | echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5431 | echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6 |
| 5432 | if test $ac_cv_lib_mmap_mmap = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5433 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5434 | #define HAVE_LIBMMAP 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5435 | _ACEOF |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5436 | |
| 5437 | LIBS="-lmmap $LIBS" |
| 5438 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5439 | fi |
| 5440 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5441 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 5442 | JPEGLIB="" |
Alexandre Julliard | 562089b | 2001-12-31 22:28:35 +0000 | [diff] [blame] | 5443 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5444 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5445 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 5446 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5448 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5449 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5450 | #line $LINENO "configure" |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5451 | #include "confdefs.h" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5452 | #include <stdlib.h> |
| 5453 | #include <stdarg.h> |
| 5454 | #include <string.h> |
| 5455 | #include <float.h> |
| 5456 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5457 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5459 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5460 | ac_status=$? |
| 5461 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 5462 | rm -f conftest.er1 |
| 5463 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5465 | (exit $ac_status); } >/dev/null; then |
| 5466 | if test -s conftest.err; then |
| 5467 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5468 | else |
| 5469 | ac_cpp_err= |
| 5470 | fi |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5471 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5472 | ac_cpp_err=yes |
| 5473 | fi |
| 5474 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5475 | ac_cv_header_stdc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5476 | else |
| 5477 | echo "$as_me: failed program was:" >&5 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5478 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5479 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5480 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5481 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5482 | |
| 5483 | if test $ac_cv_header_stdc = yes; then |
| 5484 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5485 | cat >conftest.$ac_ext <<_ACEOF |
| 5486 | #line $LINENO "configure" |
| 5487 | #include "confdefs.h" |
| 5488 | #include <string.h> |
| 5489 | |
| 5490 | _ACEOF |
| 5491 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5492 | egrep "memchr" >/dev/null 2>&1; then |
| 5493 | : |
| 5494 | else |
| 5495 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5496 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5497 | rm -f conftest* |
| 5498 | |
| 5499 | fi |
| 5500 | |
| 5501 | if test $ac_cv_header_stdc = yes; then |
| 5502 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5503 | cat >conftest.$ac_ext <<_ACEOF |
| 5504 | #line $LINENO "configure" |
| 5505 | #include "confdefs.h" |
| 5506 | #include <stdlib.h> |
| 5507 | |
| 5508 | _ACEOF |
| 5509 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5510 | egrep "free" >/dev/null 2>&1; then |
| 5511 | : |
| 5512 | else |
| 5513 | ac_cv_header_stdc=no |
| 5514 | fi |
| 5515 | rm -f conftest* |
| 5516 | |
| 5517 | fi |
| 5518 | |
| 5519 | if test $ac_cv_header_stdc = yes; then |
| 5520 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5521 | if test "$cross_compiling" = yes; then |
| 5522 | : |
| 5523 | else |
| 5524 | cat >conftest.$ac_ext <<_ACEOF |
| 5525 | #line $LINENO "configure" |
| 5526 | #include "confdefs.h" |
| 5527 | #include <ctype.h> |
| 5528 | #if ((' ' & 0x0FF) == 0x020) |
| 5529 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5530 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5531 | #else |
| 5532 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 5533 | || ('j' <= (c) && (c) <= 'r') \ |
| 5534 | || ('s' <= (c) && (c) <= 'z')) |
| 5535 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5536 | #endif |
| 5537 | |
| 5538 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5539 | int |
| 5540 | main () |
| 5541 | { |
| 5542 | int i; |
| 5543 | for (i = 0; i < 256; i++) |
| 5544 | if (XOR (islower (i), ISLOWER (i)) |
| 5545 | || toupper (i) != TOUPPER (i)) |
| 5546 | exit(2); |
| 5547 | exit (0); |
| 5548 | } |
| 5549 | _ACEOF |
| 5550 | rm -f conftest$ac_exeext |
| 5551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5552 | (eval $ac_link) 2>&5 |
| 5553 | ac_status=$? |
| 5554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5555 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5557 | (eval $ac_try) 2>&5 |
| 5558 | ac_status=$? |
| 5559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5560 | (exit $ac_status); }; }; then |
| 5561 | : |
| 5562 | else |
| 5563 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5564 | echo "$as_me: failed program was:" >&5 |
| 5565 | cat conftest.$ac_ext >&5 |
| 5566 | ( exit $ac_status ) |
| 5567 | ac_cv_header_stdc=no |
| 5568 | fi |
| 5569 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5570 | fi |
| 5571 | fi |
| 5572 | fi |
| 5573 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5574 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 5575 | if test $ac_cv_header_stdc = yes; then |
| 5576 | |
| 5577 | cat >>confdefs.h <<\_ACEOF |
| 5578 | #define STDC_HEADERS 1 |
| 5579 | _ACEOF |
| 5580 | |
| 5581 | fi |
| 5582 | |
| 5583 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5584 | |
| 5585 | |
| 5586 | |
| 5587 | |
| 5588 | |
| 5589 | |
| 5590 | |
| 5591 | |
| 5592 | |
| 5593 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5594 | inttypes.h stdint.h unistd.h |
| 5595 | do |
| 5596 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5597 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5598 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5599 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5601 | else |
| 5602 | cat >conftest.$ac_ext <<_ACEOF |
| 5603 | #line $LINENO "configure" |
| 5604 | #include "confdefs.h" |
| 5605 | $ac_includes_default |
| 5606 | |
| 5607 | #include <$ac_header> |
| 5608 | _ACEOF |
| 5609 | rm -f conftest.$ac_objext |
| 5610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5611 | (eval $ac_compile) 2>&5 |
| 5612 | ac_status=$? |
| 5613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5614 | (exit $ac_status); } && |
| 5615 | { ac_try='test -s conftest.$ac_objext' |
| 5616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5617 | (eval $ac_try) 2>&5 |
| 5618 | ac_status=$? |
| 5619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5620 | (exit $ac_status); }; }; then |
| 5621 | eval "$as_ac_Header=yes" |
| 5622 | else |
| 5623 | echo "$as_me: failed program was:" >&5 |
| 5624 | cat conftest.$ac_ext >&5 |
| 5625 | eval "$as_ac_Header=no" |
| 5626 | fi |
| 5627 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5628 | fi |
| 5629 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5630 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5631 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5632 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5633 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5634 | _ACEOF |
| 5635 | |
| 5636 | fi |
| 5637 | |
| 5638 | done |
| 5639 | |
| 5640 | |
| 5641 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5642 | for ac_header in jpeglib.h |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5643 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5644 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5645 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5646 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5647 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5648 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5650 | fi |
| 5651 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5652 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5653 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5654 | # Is the header compilable? |
| 5655 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5656 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5657 | cat >conftest.$ac_ext <<_ACEOF |
| 5658 | #line $LINENO "configure" |
| 5659 | #include "confdefs.h" |
| 5660 | $ac_includes_default |
| 5661 | #include <$ac_header> |
| 5662 | _ACEOF |
| 5663 | rm -f conftest.$ac_objext |
| 5664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5665 | (eval $ac_compile) 2>&5 |
| 5666 | ac_status=$? |
| 5667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5668 | (exit $ac_status); } && |
| 5669 | { ac_try='test -s conftest.$ac_objext' |
| 5670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5671 | (eval $ac_try) 2>&5 |
| 5672 | ac_status=$? |
| 5673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5674 | (exit $ac_status); }; }; then |
| 5675 | ac_header_compiler=yes |
| 5676 | else |
| 5677 | echo "$as_me: failed program was:" >&5 |
| 5678 | cat conftest.$ac_ext >&5 |
| 5679 | ac_header_compiler=no |
| 5680 | fi |
| 5681 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5682 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5683 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5684 | |
| 5685 | # Is the header present? |
| 5686 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5687 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5688 | cat >conftest.$ac_ext <<_ACEOF |
| 5689 | #line $LINENO "configure" |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5690 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5691 | #include <$ac_header> |
| 5692 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5693 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5694 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5695 | ac_status=$? |
| 5696 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 5697 | rm -f conftest.er1 |
| 5698 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5700 | (exit $ac_status); } >/dev/null; then |
| 5701 | if test -s conftest.err; then |
| 5702 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5703 | else |
| 5704 | ac_cpp_err= |
| 5705 | fi |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5706 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5707 | ac_cpp_err=yes |
| 5708 | fi |
| 5709 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5710 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5711 | else |
| 5712 | echo "$as_me: failed program was:" >&5 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5713 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5714 | ac_header_preproc=no |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5715 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5716 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5717 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5718 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5719 | |
| 5720 | # So? What about this header? |
| 5721 | case $ac_header_compiler:$ac_header_preproc in |
| 5722 | yes:no ) |
| 5723 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5724 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5725 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5726 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 5727 | no:yes ) |
| 5728 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5729 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5730 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5731 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5732 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5733 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 5734 | esac |
| 5735 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5736 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5737 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5739 | else |
| 5740 | eval "$as_ac_Header=$ac_header_preproc" |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5741 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5742 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5743 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5744 | |
| 5745 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5746 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5747 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5748 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5749 | _ACEOF |
| 5750 | echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5751 | echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6 |
| 5752 | if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then |
| 5753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5754 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5755 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5756 | LIBS="-ljpeg $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5757 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5758 | #line $LINENO "configure" |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5759 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5760 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5761 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5762 | #ifdef __cplusplus |
| 5763 | extern "C" |
| 5764 | #endif |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5765 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5766 | builtin and then its argument prototype would still apply. */ |
| 5767 | char jpeg_start_decompress (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5768 | #ifdef F77_DUMMY_MAIN |
| 5769 | # ifdef __cplusplus |
| 5770 | extern "C" |
| 5771 | # endif |
| 5772 | int F77_DUMMY_MAIN() { return 1; } |
| 5773 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5774 | int |
| 5775 | main () |
| 5776 | { |
| 5777 | jpeg_start_decompress (); |
| 5778 | ; |
| 5779 | return 0; |
| 5780 | } |
| 5781 | _ACEOF |
| 5782 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5784 | (eval $ac_link) 2>&5 |
| 5785 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5787 | (exit $ac_status); } && |
| 5788 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5790 | (eval $ac_try) 2>&5 |
| 5791 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5793 | (exit $ac_status); }; }; then |
| 5794 | ac_cv_lib_jpeg_jpeg_start_decompress=yes |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5795 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5796 | echo "$as_me: failed program was:" >&5 |
| 5797 | cat conftest.$ac_ext >&5 |
| 5798 | ac_cv_lib_jpeg_jpeg_start_decompress=no |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5799 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5800 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5801 | LIBS=$ac_check_lib_save_LIBS |
| 5802 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5803 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5804 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6 |
| 5805 | if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5806 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5807 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5808 | #define HAVE_LIBJPEG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5809 | _ACEOF |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5810 | |
| 5811 | JPEGLIB="-ljpeg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5812 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5813 | fi |
| 5814 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5815 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5816 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5817 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5818 | done |
| 5819 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5820 | |
| 5821 | |
| 5822 | |
| 5823 | |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 5824 | XFILES="" |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 5825 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 5826 | OPENGLFILES="" |
| 5827 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 5828 | GLU32FILES="" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5829 | if test "$have_x" = "yes" |
| 5830 | then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5831 | XLIB="-lXext -lX11" |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 5832 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 5833 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5834 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5835 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5836 | for ac_header in X11/Xlib.h |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 5837 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5838 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5839 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5840 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5841 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5842 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5844 | fi |
| 5845 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5846 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 5847 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5848 | # Is the header compilable? |
| 5849 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5850 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5851 | cat >conftest.$ac_ext <<_ACEOF |
| 5852 | #line $LINENO "configure" |
| 5853 | #include "confdefs.h" |
| 5854 | $ac_includes_default |
| 5855 | #include <$ac_header> |
| 5856 | _ACEOF |
| 5857 | rm -f conftest.$ac_objext |
| 5858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5859 | (eval $ac_compile) 2>&5 |
| 5860 | ac_status=$? |
| 5861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5862 | (exit $ac_status); } && |
| 5863 | { ac_try='test -s conftest.$ac_objext' |
| 5864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5865 | (eval $ac_try) 2>&5 |
| 5866 | ac_status=$? |
| 5867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5868 | (exit $ac_status); }; }; then |
| 5869 | ac_header_compiler=yes |
| 5870 | else |
| 5871 | echo "$as_me: failed program was:" >&5 |
| 5872 | cat conftest.$ac_ext >&5 |
| 5873 | ac_header_compiler=no |
| 5874 | fi |
| 5875 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5876 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5877 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5878 | |
| 5879 | # Is the header present? |
| 5880 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5881 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5882 | cat >conftest.$ac_ext <<_ACEOF |
| 5883 | #line $LINENO "configure" |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 5884 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5885 | #include <$ac_header> |
| 5886 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5887 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5888 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5889 | ac_status=$? |
| 5890 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 5891 | rm -f conftest.er1 |
| 5892 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5894 | (exit $ac_status); } >/dev/null; then |
| 5895 | if test -s conftest.err; then |
| 5896 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5897 | else |
| 5898 | ac_cpp_err= |
| 5899 | fi |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 5900 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5901 | ac_cpp_err=yes |
| 5902 | fi |
| 5903 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5904 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5905 | else |
| 5906 | echo "$as_me: failed program was:" >&5 |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 5907 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5908 | ac_header_preproc=no |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 5909 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5910 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5911 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5912 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5913 | |
| 5914 | # So? What about this header? |
| 5915 | case $ac_header_compiler:$ac_header_preproc in |
| 5916 | yes:no ) |
| 5917 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5918 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5919 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5920 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 5921 | no:yes ) |
| 5922 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5923 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5924 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5925 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5926 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5927 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 5928 | esac |
| 5929 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5930 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5931 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5933 | else |
| 5934 | eval "$as_ac_Header=$ac_header_preproc" |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 5935 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5936 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5937 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5938 | |
| 5939 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5940 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5941 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5942 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5943 | _ACEOF |
| 5944 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5945 | |
| 5946 | for ac_header in X11/XKBlib.h |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 5947 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5948 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 5949 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5950 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5951 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5953 | else |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 5954 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5955 | #line $LINENO "configure" |
| 5956 | #include "confdefs.h" |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 5957 | #include <X11/Xlib.h> |
| 5958 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5959 | #include <$ac_header> |
| 5960 | _ACEOF |
| 5961 | rm -f conftest.$ac_objext |
| 5962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5963 | (eval $ac_compile) 2>&5 |
| 5964 | ac_status=$? |
| 5965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5966 | (exit $ac_status); } && |
| 5967 | { ac_try='test -s conftest.$ac_objext' |
| 5968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5969 | (eval $ac_try) 2>&5 |
| 5970 | ac_status=$? |
| 5971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5972 | (exit $ac_status); }; }; then |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 5973 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5974 | else |
| 5975 | echo "$as_me: failed program was:" >&5 |
| 5976 | cat conftest.$ac_ext >&5 |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 5977 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5978 | fi |
| 5979 | rm -f conftest.$ac_objext conftest.$ac_ext |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 5980 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5981 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5982 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5983 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5984 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5985 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5986 | _ACEOF |
| 5987 | echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5988 | echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6 |
| 5989 | if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then |
| 5990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5991 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5992 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 5993 | LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5994 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5995 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5996 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5997 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5998 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5999 | #ifdef __cplusplus |
| 6000 | extern "C" |
| 6001 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6002 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6003 | builtin and then its argument prototype would still apply. */ |
| 6004 | char XkbQueryExtension (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6005 | #ifdef F77_DUMMY_MAIN |
| 6006 | # ifdef __cplusplus |
| 6007 | extern "C" |
| 6008 | # endif |
| 6009 | int F77_DUMMY_MAIN() { return 1; } |
| 6010 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6011 | int |
| 6012 | main () |
| 6013 | { |
| 6014 | XkbQueryExtension (); |
| 6015 | ; |
| 6016 | return 0; |
| 6017 | } |
| 6018 | _ACEOF |
| 6019 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6021 | (eval $ac_link) 2>&5 |
| 6022 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6024 | (exit $ac_status); } && |
| 6025 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6027 | (eval $ac_try) 2>&5 |
| 6028 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6030 | (exit $ac_status); }; }; then |
| 6031 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6032 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6033 | echo "$as_me: failed program was:" >&5 |
| 6034 | cat conftest.$ac_ext >&5 |
| 6035 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6036 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6037 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6038 | LIBS=$ac_check_lib_save_LIBS |
| 6039 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6040 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6041 | echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6 |
| 6042 | if test $ac_cv_lib_X11_XkbQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6043 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6044 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6045 | #define HAVE_XKB 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6046 | _ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6047 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6048 | fi |
| 6049 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6050 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6051 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6052 | { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6053 | echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;} |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6054 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6055 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6056 | done |
| 6057 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6058 | |
| 6059 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6060 | for ac_header in X11/extensions/XShm.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6061 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6062 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6063 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6064 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6065 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6067 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6068 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6069 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6070 | #include "confdefs.h" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6071 | #include <X11/Xlib.h> |
| 6072 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6073 | #include <$ac_header> |
| 6074 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6075 | rm -f conftest.$ac_objext |
| 6076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6077 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6078 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6080 | (exit $ac_status); } && |
| 6081 | { ac_try='test -s conftest.$ac_objext' |
| 6082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6083 | (eval $ac_try) 2>&5 |
| 6084 | ac_status=$? |
| 6085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6086 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6087 | eval "$as_ac_Header=yes" |
| 6088 | else |
| 6089 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6090 | cat conftest.$ac_ext >&5 |
| 6091 | eval "$as_ac_Header=no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6092 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6093 | rm -f conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6094 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6095 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6096 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6097 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6098 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6099 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6100 | _ACEOF |
| 6101 | echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6102 | echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6 |
| 6103 | if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then |
| 6104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6105 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6106 | ac_check_lib_save_LIBS=$LIBS |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6107 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6108 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6109 | #line $LINENO "configure" |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6110 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6111 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6112 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6113 | #ifdef __cplusplus |
| 6114 | extern "C" |
| 6115 | #endif |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6116 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6117 | builtin and then its argument prototype would still apply. */ |
| 6118 | char XShmQueryExtension (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6119 | #ifdef F77_DUMMY_MAIN |
| 6120 | # ifdef __cplusplus |
| 6121 | extern "C" |
| 6122 | # endif |
| 6123 | int F77_DUMMY_MAIN() { return 1; } |
| 6124 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6125 | int |
| 6126 | main () |
| 6127 | { |
| 6128 | XShmQueryExtension (); |
| 6129 | ; |
| 6130 | return 0; |
| 6131 | } |
| 6132 | _ACEOF |
| 6133 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6135 | (eval $ac_link) 2>&5 |
| 6136 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6138 | (exit $ac_status); } && |
| 6139 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6141 | (eval $ac_try) 2>&5 |
| 6142 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6144 | (exit $ac_status); }; }; then |
| 6145 | ac_cv_lib_Xext_XShmQueryExtension=yes |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6146 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6147 | echo "$as_me: failed program was:" >&5 |
| 6148 | cat conftest.$ac_ext >&5 |
| 6149 | ac_cv_lib_Xext_XShmQueryExtension=no |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6150 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6151 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6152 | LIBS=$ac_check_lib_save_LIBS |
| 6153 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6154 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6155 | echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6 |
| 6156 | if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6157 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6158 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6159 | #define HAVE_LIBXXSHM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6160 | _ACEOF |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6161 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6162 | fi |
| 6163 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6164 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6165 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6166 | { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6167 | echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;} |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6168 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6169 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6170 | done |
| 6171 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6172 | |
| 6173 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6174 | for ac_header in X11/Xutil.h |
| 6175 | do |
| 6176 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6177 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6178 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6179 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6181 | else |
| 6182 | cat >conftest.$ac_ext <<_ACEOF |
| 6183 | #line $LINENO "configure" |
| 6184 | #include "confdefs.h" |
| 6185 | #include <X11/Xlib.h> |
| 6186 | |
| 6187 | #include <$ac_header> |
| 6188 | _ACEOF |
| 6189 | rm -f conftest.$ac_objext |
| 6190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6191 | (eval $ac_compile) 2>&5 |
| 6192 | ac_status=$? |
| 6193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6194 | (exit $ac_status); } && |
| 6195 | { ac_try='test -s conftest.$ac_objext' |
| 6196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6197 | (eval $ac_try) 2>&5 |
| 6198 | ac_status=$? |
| 6199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6200 | (exit $ac_status); }; }; then |
| 6201 | eval "$as_ac_Header=yes" |
| 6202 | else |
| 6203 | echo "$as_me: failed program was:" >&5 |
| 6204 | cat conftest.$ac_ext >&5 |
| 6205 | eval "$as_ac_Header=no" |
| 6206 | fi |
| 6207 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6208 | fi |
| 6209 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6210 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6211 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6212 | cat >>confdefs.h <<_ACEOF |
| 6213 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6214 | _ACEOF |
| 6215 | |
| 6216 | fi |
| 6217 | |
| 6218 | done |
| 6219 | |
| 6220 | |
| 6221 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6222 | for ac_header in X11/extensions/shape.h |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6223 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6224 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6225 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6226 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6227 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6229 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6230 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6231 | #line $LINENO "configure" |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6232 | #include "confdefs.h" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6233 | #include <X11/Xlib.h> |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6234 | #ifdef HAVE_X11_XUTIL_H |
| 6235 | # include <X11/Xutil.h> |
| 6236 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6237 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6238 | #include <$ac_header> |
| 6239 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6240 | rm -f conftest.$ac_objext |
| 6241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6242 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6243 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6245 | (exit $ac_status); } && |
| 6246 | { ac_try='test -s conftest.$ac_objext' |
| 6247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6248 | (eval $ac_try) 2>&5 |
| 6249 | ac_status=$? |
| 6250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6251 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6252 | eval "$as_ac_Header=yes" |
| 6253 | else |
| 6254 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6255 | cat conftest.$ac_ext >&5 |
| 6256 | eval "$as_ac_Header=no" |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6257 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6258 | rm -f conftest.$ac_objext conftest.$ac_ext |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6259 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6260 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6261 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6262 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6263 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6264 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6265 | _ACEOF |
| 6266 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6267 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 6268 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 6269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6270 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6271 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6272 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6273 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6274 | #line $LINENO "configure" |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6275 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6276 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6277 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6278 | #ifdef __cplusplus |
| 6279 | extern "C" |
| 6280 | #endif |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6281 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6282 | builtin and then its argument prototype would still apply. */ |
| 6283 | char XShapeQueryExtension (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6284 | #ifdef F77_DUMMY_MAIN |
| 6285 | # ifdef __cplusplus |
| 6286 | extern "C" |
| 6287 | # endif |
| 6288 | int F77_DUMMY_MAIN() { return 1; } |
| 6289 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6290 | int |
| 6291 | main () |
| 6292 | { |
| 6293 | XShapeQueryExtension (); |
| 6294 | ; |
| 6295 | return 0; |
| 6296 | } |
| 6297 | _ACEOF |
| 6298 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6300 | (eval $ac_link) 2>&5 |
| 6301 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6303 | (exit $ac_status); } && |
| 6304 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6306 | (eval $ac_try) 2>&5 |
| 6307 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6309 | (exit $ac_status); }; }; then |
| 6310 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6311 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6312 | echo "$as_me: failed program was:" >&5 |
| 6313 | cat conftest.$ac_ext >&5 |
| 6314 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6315 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6316 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6317 | LIBS=$ac_check_lib_save_LIBS |
| 6318 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6319 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6320 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 6321 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6322 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6323 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6324 | #define HAVE_LIBXSHAPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6325 | _ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6326 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6327 | fi |
| 6328 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6329 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6330 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6331 | { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6332 | echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;} |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6333 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6334 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6335 | done |
| 6336 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6337 | |
| 6338 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6339 | for ac_header in X11/extensions/xf86dga.h |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6340 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6341 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6342 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6343 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6344 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6346 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6347 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6348 | #line $LINENO "configure" |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6349 | #include "confdefs.h" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6350 | #include <X11/Xlib.h> |
| 6351 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6352 | #include <$ac_header> |
| 6353 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6354 | rm -f conftest.$ac_objext |
| 6355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6356 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6357 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6359 | (exit $ac_status); } && |
| 6360 | { ac_try='test -s conftest.$ac_objext' |
| 6361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6362 | (eval $ac_try) 2>&5 |
| 6363 | ac_status=$? |
| 6364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6365 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6366 | eval "$as_ac_Header=yes" |
| 6367 | else |
| 6368 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6369 | cat conftest.$ac_ext >&5 |
| 6370 | eval "$as_ac_Header=no" |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6371 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6372 | rm -f conftest.$ac_objext conftest.$ac_ext |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6373 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6374 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6375 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6376 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6377 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6378 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6379 | _ACEOF |
| 6380 | echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6381 | echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
| 6382 | if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then |
| 6383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6384 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6385 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 6386 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6387 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6388 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6389 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6390 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6391 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6392 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6393 | #ifdef __cplusplus |
| 6394 | extern "C" |
| 6395 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6396 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6397 | builtin and then its argument prototype would still apply. */ |
| 6398 | char XDGAQueryExtension (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6399 | #ifdef F77_DUMMY_MAIN |
| 6400 | # ifdef __cplusplus |
| 6401 | extern "C" |
| 6402 | # endif |
| 6403 | int F77_DUMMY_MAIN() { return 1; } |
| 6404 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6405 | int |
| 6406 | main () |
| 6407 | { |
| 6408 | XDGAQueryExtension (); |
| 6409 | ; |
| 6410 | return 0; |
| 6411 | } |
| 6412 | _ACEOF |
| 6413 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6415 | (eval $ac_link) 2>&5 |
| 6416 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6418 | (exit $ac_status); } && |
| 6419 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6421 | (eval $ac_try) 2>&5 |
| 6422 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6424 | (exit $ac_status); }; }; then |
| 6425 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6426 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6427 | echo "$as_me: failed program was:" >&5 |
| 6428 | cat conftest.$ac_ext >&5 |
| 6429 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=no |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6430 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6431 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6432 | LIBS=$ac_check_lib_save_LIBS |
| 6433 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6434 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6435 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6 |
| 6436 | if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6437 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6438 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6439 | #define HAVE_LIBXXF86DGA2 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6440 | _ACEOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 6441 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6442 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6443 | |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6444 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6445 | echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6446 | echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
| 6447 | if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then |
| 6448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6449 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6450 | ac_check_lib_save_LIBS=$LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6451 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 6452 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6453 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6454 | #line $LINENO "configure" |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6455 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6456 | |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6457 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6458 | #ifdef __cplusplus |
| 6459 | extern "C" |
| 6460 | #endif |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6461 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6462 | builtin and then its argument prototype would still apply. */ |
| 6463 | char XF86DGAQueryExtension (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6464 | #ifdef F77_DUMMY_MAIN |
| 6465 | # ifdef __cplusplus |
| 6466 | extern "C" |
| 6467 | # endif |
| 6468 | int F77_DUMMY_MAIN() { return 1; } |
| 6469 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6470 | int |
| 6471 | main () |
| 6472 | { |
| 6473 | XF86DGAQueryExtension (); |
| 6474 | ; |
| 6475 | return 0; |
| 6476 | } |
| 6477 | _ACEOF |
| 6478 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6480 | (eval $ac_link) 2>&5 |
| 6481 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6483 | (exit $ac_status); } && |
| 6484 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6486 | (eval $ac_try) 2>&5 |
| 6487 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6489 | (exit $ac_status); }; }; then |
| 6490 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6491 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6492 | echo "$as_me: failed program was:" >&5 |
| 6493 | cat conftest.$ac_ext >&5 |
| 6494 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6495 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6496 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6497 | LIBS=$ac_check_lib_save_LIBS |
| 6498 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6499 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6500 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6 |
| 6501 | if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6502 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6503 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6504 | #define HAVE_LIBXXF86DGA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6505 | _ACEOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 6506 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6507 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6508 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6509 | fi |
| 6510 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6511 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6512 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6513 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6514 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6515 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6516 | { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6517 | echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;} |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6518 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6519 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6520 | done |
| 6521 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6522 | |
| 6523 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6524 | for ac_header in X11/extensions/xf86vmode.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6525 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6526 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6527 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6528 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6529 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6531 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6532 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6533 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6534 | #include "confdefs.h" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6535 | #include <X11/Xlib.h> |
| 6536 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6537 | #include <$ac_header> |
| 6538 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6539 | rm -f conftest.$ac_objext |
| 6540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6541 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6542 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6544 | (exit $ac_status); } && |
| 6545 | { ac_try='test -s conftest.$ac_objext' |
| 6546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6547 | (eval $ac_try) 2>&5 |
| 6548 | ac_status=$? |
| 6549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6550 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6551 | eval "$as_ac_Header=yes" |
| 6552 | else |
| 6553 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6554 | cat conftest.$ac_ext >&5 |
| 6555 | eval "$as_ac_Header=no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6556 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6557 | rm -f conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6558 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6559 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6560 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6561 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6562 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6563 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6564 | _ACEOF |
| 6565 | echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6566 | echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6 |
| 6567 | if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then |
| 6568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6569 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6570 | ac_check_lib_save_LIBS=$LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6571 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 6572 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6573 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6574 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6575 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6576 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6577 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6578 | #ifdef __cplusplus |
| 6579 | extern "C" |
| 6580 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6581 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6582 | builtin and then its argument prototype would still apply. */ |
| 6583 | char XF86VidModeQueryExtension (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6584 | #ifdef F77_DUMMY_MAIN |
| 6585 | # ifdef __cplusplus |
| 6586 | extern "C" |
| 6587 | # endif |
| 6588 | int F77_DUMMY_MAIN() { return 1; } |
| 6589 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6590 | int |
| 6591 | main () |
| 6592 | { |
| 6593 | XF86VidModeQueryExtension (); |
| 6594 | ; |
| 6595 | return 0; |
| 6596 | } |
| 6597 | _ACEOF |
| 6598 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6600 | (eval $ac_link) 2>&5 |
| 6601 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6603 | (exit $ac_status); } && |
| 6604 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6606 | (eval $ac_try) 2>&5 |
| 6607 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6609 | (exit $ac_status); }; }; then |
| 6610 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6611 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6612 | echo "$as_me: failed program was:" >&5 |
| 6613 | cat conftest.$ac_ext >&5 |
| 6614 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6615 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6616 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6617 | LIBS=$ac_check_lib_save_LIBS |
| 6618 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6619 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6620 | echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6 |
| 6621 | if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6622 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6623 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6624 | #define HAVE_LIBXXF86VM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6625 | _ACEOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6626 | |
| 6627 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6628 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6629 | fi |
| 6630 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6631 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6632 | else |
| 6633 | { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5 |
| 6634 | echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;} |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6635 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6636 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6637 | done |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 6638 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6639 | |
| 6640 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6641 | for ac_header in X11/extensions/Xvlib.h |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6642 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6643 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6644 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6645 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6646 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6648 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6649 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6650 | #line $LINENO "configure" |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6651 | #include "confdefs.h" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6652 | #include <X11/Xlib.h> |
| 6653 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6654 | #include <$ac_header> |
| 6655 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6656 | rm -f conftest.$ac_objext |
| 6657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6658 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6659 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6661 | (exit $ac_status); } && |
| 6662 | { ac_try='test -s conftest.$ac_objext' |
| 6663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6664 | (eval $ac_try) 2>&5 |
| 6665 | ac_status=$? |
| 6666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6667 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6668 | eval "$as_ac_Header=yes" |
| 6669 | else |
| 6670 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6671 | cat conftest.$ac_ext >&5 |
| 6672 | eval "$as_ac_Header=no" |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6673 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6674 | rm -f conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6675 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6676 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6677 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6678 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6679 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6680 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6681 | _ACEOF |
| 6682 | echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6683 | echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6 |
| 6684 | if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then |
| 6685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6686 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6687 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6688 | LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 6689 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6690 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6691 | #line $LINENO "configure" |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6692 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6693 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6694 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6695 | #ifdef __cplusplus |
| 6696 | extern "C" |
| 6697 | #endif |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6698 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6699 | builtin and then its argument prototype would still apply. */ |
| 6700 | char XvShmCreateImage (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6701 | #ifdef F77_DUMMY_MAIN |
| 6702 | # ifdef __cplusplus |
| 6703 | extern "C" |
| 6704 | # endif |
| 6705 | int F77_DUMMY_MAIN() { return 1; } |
| 6706 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6707 | int |
| 6708 | main () |
| 6709 | { |
| 6710 | XvShmCreateImage (); |
| 6711 | ; |
| 6712 | return 0; |
| 6713 | } |
| 6714 | _ACEOF |
| 6715 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6717 | (eval $ac_link) 2>&5 |
| 6718 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6720 | (exit $ac_status); } && |
| 6721 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6723 | (eval $ac_try) 2>&5 |
| 6724 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6726 | (exit $ac_status); }; }; then |
| 6727 | ac_cv_lib_Xv_XvShmCreateImage=yes |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6728 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6729 | echo "$as_me: failed program was:" >&5 |
| 6730 | cat conftest.$ac_ext >&5 |
| 6731 | ac_cv_lib_Xv_XvShmCreateImage=no |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6732 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6733 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6734 | LIBS=$ac_check_lib_save_LIBS |
| 6735 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6736 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6737 | echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6 |
| 6738 | if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6739 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6740 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6741 | #define HAVE_XVIDEO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6742 | _ACEOF |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6743 | |
| 6744 | X_PRE_LIBS="$X_PRE_LIBS -lXv" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6745 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6746 | fi |
| 6747 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6748 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6749 | else |
| 6750 | { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5 |
| 6751 | echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;} |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6752 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6753 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6754 | done |
| 6755 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6756 | |
| 6757 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6758 | for ac_header in X11/extensions/Xrender.h |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 6759 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6760 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6761 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6762 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6763 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 6765 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6766 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6767 | #line $LINENO "configure" |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 6768 | #include "confdefs.h" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6769 | #include <X11/Xlib.h> |
| 6770 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6771 | #include <$ac_header> |
| 6772 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6773 | rm -f conftest.$ac_objext |
| 6774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6775 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6776 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6778 | (exit $ac_status); } && |
| 6779 | { ac_try='test -s conftest.$ac_objext' |
| 6780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6781 | (eval $ac_try) 2>&5 |
| 6782 | ac_status=$? |
| 6783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6784 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6785 | eval "$as_ac_Header=yes" |
| 6786 | else |
| 6787 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6788 | cat conftest.$ac_ext >&5 |
| 6789 | eval "$as_ac_Header=no" |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 6790 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6791 | rm -f conftest.$ac_objext conftest.$ac_ext |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 6792 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6793 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6794 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6795 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6796 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6797 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6798 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6799 | |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 6800 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6801 | |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 6802 | done |
| 6803 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6804 | |
| 6805 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6806 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6807 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6808 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6809 | |
| 6810 | if test "x$enable_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 6811 | then |
Francois Gouget | 42dcd97 | 2002-01-29 17:52:28 +0000 | [diff] [blame] | 6812 | if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 6813 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6814 | { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6815 | This prevents linking to OpenGL. Delete the file and restart configure." >&5 |
| 6816 | echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 6817 | This prevents linking to OpenGL. Delete the file and restart configure." >&2;} |
| 6818 | { (exit 1); exit 1; }; } |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 6819 | fi |
| 6820 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6821 | |
| 6822 | |
| 6823 | for ac_header in GL/gl.h GL/glx.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6824 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6825 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6826 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6827 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6828 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6829 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6831 | fi |
| 6832 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6833 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6834 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6835 | # Is the header compilable? |
| 6836 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6837 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6838 | cat >conftest.$ac_ext <<_ACEOF |
| 6839 | #line $LINENO "configure" |
| 6840 | #include "confdefs.h" |
| 6841 | $ac_includes_default |
| 6842 | #include <$ac_header> |
| 6843 | _ACEOF |
| 6844 | rm -f conftest.$ac_objext |
| 6845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6846 | (eval $ac_compile) 2>&5 |
| 6847 | ac_status=$? |
| 6848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6849 | (exit $ac_status); } && |
| 6850 | { ac_try='test -s conftest.$ac_objext' |
| 6851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6852 | (eval $ac_try) 2>&5 |
| 6853 | ac_status=$? |
| 6854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6855 | (exit $ac_status); }; }; then |
| 6856 | ac_header_compiler=yes |
| 6857 | else |
| 6858 | echo "$as_me: failed program was:" >&5 |
| 6859 | cat conftest.$ac_ext >&5 |
| 6860 | ac_header_compiler=no |
| 6861 | fi |
| 6862 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6863 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6864 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6865 | |
| 6866 | # Is the header present? |
| 6867 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6868 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6869 | cat >conftest.$ac_ext <<_ACEOF |
| 6870 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6871 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6872 | #include <$ac_header> |
| 6873 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6874 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6875 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6876 | ac_status=$? |
| 6877 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 6878 | rm -f conftest.er1 |
| 6879 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6881 | (exit $ac_status); } >/dev/null; then |
| 6882 | if test -s conftest.err; then |
| 6883 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6884 | else |
| 6885 | ac_cpp_err= |
| 6886 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6887 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6888 | ac_cpp_err=yes |
| 6889 | fi |
| 6890 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6891 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6892 | else |
| 6893 | echo "$as_me: failed program was:" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6894 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6895 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6896 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6897 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6898 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6899 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6900 | |
| 6901 | # So? What about this header? |
| 6902 | case $ac_header_compiler:$ac_header_preproc in |
| 6903 | yes:no ) |
| 6904 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6905 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6906 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6907 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 6908 | no:yes ) |
| 6909 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6910 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6911 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6912 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6913 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6914 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 6915 | esac |
| 6916 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6917 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6918 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6920 | else |
| 6921 | eval "$as_ac_Header=$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6922 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6924 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6925 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6926 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6927 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6928 | cat >>confdefs.h <<_ACEOF |
| 6929 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6930 | _ACEOF |
| 6931 | |
| 6932 | fi |
| 6933 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6934 | done |
| 6935 | |
Marcus Meissner | 22a969b | 2000-08-08 20:46:50 +0000 | [diff] [blame] | 6936 | if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 6937 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6938 | |
| 6939 | for ac_header in GL/glext.h |
| 6940 | do |
| 6941 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6942 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6943 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6944 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6946 | else |
| 6947 | cat >conftest.$ac_ext <<_ACEOF |
| 6948 | #line $LINENO "configure" |
| 6949 | #include "confdefs.h" |
| 6950 | #include <GL/glx.h> |
| 6951 | |
| 6952 | #include <$ac_header> |
| 6953 | _ACEOF |
| 6954 | rm -f conftest.$ac_objext |
| 6955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6956 | (eval $ac_compile) 2>&5 |
| 6957 | ac_status=$? |
| 6958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6959 | (exit $ac_status); } && |
| 6960 | { ac_try='test -s conftest.$ac_objext' |
| 6961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6962 | (eval $ac_try) 2>&5 |
| 6963 | ac_status=$? |
| 6964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6965 | (exit $ac_status); }; }; then |
| 6966 | eval "$as_ac_Header=yes" |
| 6967 | else |
| 6968 | echo "$as_me: failed program was:" >&5 |
| 6969 | cat conftest.$ac_ext >&5 |
| 6970 | eval "$as_ac_Header=no" |
| 6971 | fi |
| 6972 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6973 | fi |
| 6974 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6975 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6976 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6977 | cat >>confdefs.h <<_ACEOF |
| 6978 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6979 | _ACEOF |
| 6980 | |
| 6981 | fi |
| 6982 | |
| 6983 | done |
| 6984 | |
| 6985 | echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6986 | echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6 |
| 6987 | if test "${wine_cv_opengl_version_OK+set}" = set; then |
| 6988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 6989 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6990 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6991 | #line $LINENO "configure" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 6992 | #include "confdefs.h" |
| 6993 | #include <GL/gl.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6994 | #ifdef F77_DUMMY_MAIN |
| 6995 | # ifdef __cplusplus |
| 6996 | extern "C" |
| 6997 | # endif |
| 6998 | int F77_DUMMY_MAIN() { return 1; } |
| 6999 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7000 | int |
| 7001 | main () |
| 7002 | { |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7003 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7004 | ; |
| 7005 | return 0; |
| 7006 | } |
| 7007 | _ACEOF |
| 7008 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7010 | (eval $ac_compile) 2>&5 |
| 7011 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7013 | (exit $ac_status); } && |
| 7014 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7016 | (eval $ac_try) 2>&5 |
| 7017 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7019 | (exit $ac_status); }; }; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7020 | wine_cv_opengl_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7021 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7022 | echo "$as_me: failed program was:" >&5 |
| 7023 | cat conftest.$ac_ext >&5 |
| 7024 | wine_cv_opengl_version_OK="no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7025 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7026 | fi |
| 7027 | rm -f conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7028 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7029 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7030 | echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7031 | echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6 |
| 7032 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7033 | echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7034 | echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6 |
| 7035 | if test "${wine_cv_opengl_version_threadsafe+set}" = set; then |
| 7036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 7037 | else |
| 7038 | saved_libs=$LIBS |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7039 | LIBS="$X_LIBS -lGL" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7040 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7041 | #line $LINENO "configure" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 7042 | #include "confdefs.h" |
| 7043 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7044 | #ifdef F77_DUMMY_MAIN |
| 7045 | # ifdef __cplusplus |
| 7046 | extern "C" |
| 7047 | # endif |
| 7048 | int F77_DUMMY_MAIN() { return 1; } |
| 7049 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7050 | int |
| 7051 | main () |
| 7052 | { |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 7053 | pthread_getspecific(); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7054 | ; |
| 7055 | return 0; |
| 7056 | } |
| 7057 | _ACEOF |
| 7058 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7060 | (eval $ac_link) 2>&5 |
| 7061 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7063 | (exit $ac_status); } && |
| 7064 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7066 | (eval $ac_try) 2>&5 |
| 7067 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7069 | (exit $ac_status); }; }; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7070 | wine_cv_opengl_version_threadsafe="yes" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 7071 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7072 | echo "$as_me: failed program was:" >&5 |
| 7073 | cat conftest.$ac_ext >&5 |
| 7074 | wine_cv_opengl_version_threadsafe="no" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 7075 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7076 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7077 | LIBS=$saved_libs |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7078 | |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 7079 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7080 | echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7081 | echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6 |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 7082 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7083 | if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \) |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7084 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7085 | echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7086 | echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6 |
| 7087 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then |
| 7088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7089 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7090 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 376ec88 | 2000-01-05 03:24:52 +0000 | [diff] [blame] | 7091 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7092 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7093 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7094 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7095 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7096 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7097 | #ifdef __cplusplus |
| 7098 | extern "C" |
| 7099 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7100 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7101 | builtin and then its argument prototype would still apply. */ |
| 7102 | char glXCreateContext (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7103 | #ifdef F77_DUMMY_MAIN |
| 7104 | # ifdef __cplusplus |
| 7105 | extern "C" |
| 7106 | # endif |
| 7107 | int F77_DUMMY_MAIN() { return 1; } |
| 7108 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7109 | int |
| 7110 | main () |
| 7111 | { |
| 7112 | glXCreateContext (); |
| 7113 | ; |
| 7114 | return 0; |
| 7115 | } |
| 7116 | _ACEOF |
| 7117 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7119 | (eval $ac_link) 2>&5 |
| 7120 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7122 | (exit $ac_status); } && |
| 7123 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7125 | (eval $ac_try) 2>&5 |
| 7126 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7128 | (exit $ac_status); }; }; then |
| 7129 | ac_cv_lib_GL_glXCreateContext=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7130 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7131 | echo "$as_me: failed program was:" >&5 |
| 7132 | cat conftest.$ac_ext >&5 |
| 7133 | ac_cv_lib_GL_glXCreateContext=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7134 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7135 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7136 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7137 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7138 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7139 | echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6 |
| 7140 | if test $ac_cv_lib_GL_glXCreateContext = yes; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7141 | X_PRE_LIBS="$X_PRE_LIBS -lGL" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7142 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7143 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7144 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7145 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 7146 | if test "$ac_cv_lib_GL_glXCreateContext" = "yes" |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 7147 | then |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 7148 | OPENGLFILES='$(OPENGLFILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7149 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7150 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 7151 | #define HAVE_OPENGL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7152 | _ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 7153 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7154 | |
| 7155 | echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7156 | echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6 |
| 7157 | if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then |
| 7158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7159 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7160 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7161 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7162 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7163 | #line $LINENO "configure" |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7164 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7165 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7166 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7167 | #ifdef __cplusplus |
| 7168 | extern "C" |
| 7169 | #endif |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7170 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7171 | builtin and then its argument prototype would still apply. */ |
| 7172 | char glXGetProcAddressARB (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7173 | #ifdef F77_DUMMY_MAIN |
| 7174 | # ifdef __cplusplus |
| 7175 | extern "C" |
| 7176 | # endif |
| 7177 | int F77_DUMMY_MAIN() { return 1; } |
| 7178 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7179 | int |
| 7180 | main () |
| 7181 | { |
| 7182 | glXGetProcAddressARB (); |
| 7183 | ; |
| 7184 | return 0; |
| 7185 | } |
| 7186 | _ACEOF |
| 7187 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7189 | (eval $ac_link) 2>&5 |
| 7190 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7192 | (exit $ac_status); } && |
| 7193 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7195 | (eval $ac_try) 2>&5 |
| 7196 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7198 | (exit $ac_status); }; }; then |
| 7199 | ac_cv_lib_GL_glXGetProcAddressARB=yes |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7200 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7201 | echo "$as_me: failed program was:" >&5 |
| 7202 | cat conftest.$ac_ext >&5 |
| 7203 | ac_cv_lib_GL_glXGetProcAddressARB=no |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7204 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7205 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7206 | LIBS=$ac_check_lib_save_LIBS |
| 7207 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7208 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7209 | echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6 |
| 7210 | if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7211 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7212 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7213 | #define HAVE_GLX_GETPROCADDRESS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7214 | _ACEOF |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7215 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7216 | fi |
| 7217 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7218 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 7219 | if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes" |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7220 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7221 | echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7222 | echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6 |
| 7223 | if test "${wine_cv_extension_prototypes+set}" = set; then |
| 7224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 7225 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7226 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7227 | #line $LINENO "configure" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 7228 | #include "confdefs.h" |
| 7229 | #include <GL/gl.h> |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 7230 | #ifdef HAVE_GL_GLEXT_H |
| 7231 | # include <GL/glext.h> |
| 7232 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7233 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7234 | #ifdef F77_DUMMY_MAIN |
| 7235 | # ifdef __cplusplus |
| 7236 | extern "C" |
| 7237 | # endif |
| 7238 | int F77_DUMMY_MAIN() { return 1; } |
| 7239 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7240 | int |
| 7241 | main () |
| 7242 | { |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 7243 | PFNGLCOLORTABLEEXTPROC test_proc; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7244 | ; |
| 7245 | return 0; |
| 7246 | } |
| 7247 | _ACEOF |
| 7248 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7250 | (eval $ac_compile) 2>&5 |
| 7251 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7253 | (exit $ac_status); } && |
| 7254 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7256 | (eval $ac_try) 2>&5 |
| 7257 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7259 | (exit $ac_status); }; }; then |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 7260 | wine_cv_extension_prototypes="yes" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 7261 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7262 | echo "$as_me: failed program was:" >&5 |
| 7263 | cat conftest.$ac_ext >&5 |
| 7264 | wine_cv_extension_prototypes="no" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 7265 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7266 | fi |
| 7267 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7268 | |
| 7269 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7270 | echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7271 | echo "${ECHO_T}$wine_cv_extension_prototypes" >&6 |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 7272 | if test "$wine_cv_extension_prototypes" = "yes" |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 7273 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7274 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7275 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 7276 | #define HAVE_GLEXT_PROTOTYPES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7277 | _ACEOF |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 7278 | |
| 7279 | fi |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7280 | fi |
Alexandre Julliard | d6c0f9f | 2001-01-04 22:44:55 +0000 | [diff] [blame] | 7281 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7282 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7283 | echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7284 | echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6 |
| 7285 | if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then |
| 7286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7287 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7288 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7289 | LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS |
| 7290 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7291 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7292 | #line $LINENO "configure" |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7293 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7294 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7295 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7296 | #ifdef __cplusplus |
| 7297 | extern "C" |
| 7298 | #endif |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7299 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7300 | builtin and then its argument prototype would still apply. */ |
| 7301 | char gluLookAt (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7302 | #ifdef F77_DUMMY_MAIN |
| 7303 | # ifdef __cplusplus |
| 7304 | extern "C" |
| 7305 | # endif |
| 7306 | int F77_DUMMY_MAIN() { return 1; } |
| 7307 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7308 | int |
| 7309 | main () |
| 7310 | { |
| 7311 | gluLookAt (); |
| 7312 | ; |
| 7313 | return 0; |
| 7314 | } |
| 7315 | _ACEOF |
| 7316 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7318 | (eval $ac_link) 2>&5 |
| 7319 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7321 | (exit $ac_status); } && |
| 7322 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7324 | (eval $ac_try) 2>&5 |
| 7325 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7327 | (exit $ac_status); }; }; then |
| 7328 | ac_cv_lib_GLU_gluLookAt=yes |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7329 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7330 | echo "$as_me: failed program was:" >&5 |
| 7331 | cat conftest.$ac_ext >&5 |
| 7332 | ac_cv_lib_GLU_gluLookAt=no |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7333 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7334 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7335 | LIBS=$ac_check_lib_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7336 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7337 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7338 | echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6 |
| 7339 | if test $ac_cv_lib_GLU_gluLookAt = yes; then |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7340 | X_PRE_LIBS="$X_PRE_LIBS -lGLU" |
| 7341 | GLU32FILES='$(GLU32FILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7342 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7343 | fi |
| 7344 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7345 | fi |
| 7346 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7347 | fi |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 7348 | |
| 7349 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 7350 | XFILES='$(XFILES)' |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7351 | else |
| 7352 | XLIB="" |
| 7353 | X_CFLAGS="" |
| 7354 | X_LIBS="" |
| 7355 | fi |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 7356 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7357 | CURSESLIBS="" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7358 | if test "x$with_curses" != "xno" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 7359 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7360 | |
| 7361 | for ac_header in ncurses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7362 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7363 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7364 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7365 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7366 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7367 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7369 | fi |
| 7370 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7371 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7372 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7373 | # Is the header compilable? |
| 7374 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7375 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7376 | cat >conftest.$ac_ext <<_ACEOF |
| 7377 | #line $LINENO "configure" |
| 7378 | #include "confdefs.h" |
| 7379 | $ac_includes_default |
| 7380 | #include <$ac_header> |
| 7381 | _ACEOF |
| 7382 | rm -f conftest.$ac_objext |
| 7383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7384 | (eval $ac_compile) 2>&5 |
| 7385 | ac_status=$? |
| 7386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7387 | (exit $ac_status); } && |
| 7388 | { ac_try='test -s conftest.$ac_objext' |
| 7389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7390 | (eval $ac_try) 2>&5 |
| 7391 | ac_status=$? |
| 7392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7393 | (exit $ac_status); }; }; then |
| 7394 | ac_header_compiler=yes |
| 7395 | else |
| 7396 | echo "$as_me: failed program was:" >&5 |
| 7397 | cat conftest.$ac_ext >&5 |
| 7398 | ac_header_compiler=no |
| 7399 | fi |
| 7400 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7401 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7402 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7403 | |
| 7404 | # Is the header present? |
| 7405 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7406 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7407 | cat >conftest.$ac_ext <<_ACEOF |
| 7408 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7409 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7410 | #include <$ac_header> |
| 7411 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7412 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7413 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7414 | ac_status=$? |
| 7415 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 7416 | rm -f conftest.er1 |
| 7417 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7419 | (exit $ac_status); } >/dev/null; then |
| 7420 | if test -s conftest.err; then |
| 7421 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7422 | else |
| 7423 | ac_cpp_err= |
| 7424 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7425 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7426 | ac_cpp_err=yes |
| 7427 | fi |
| 7428 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7429 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7430 | else |
| 7431 | echo "$as_me: failed program was:" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7432 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7433 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7434 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7435 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7436 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7437 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7438 | |
| 7439 | # So? What about this header? |
| 7440 | case $ac_header_compiler:$ac_header_preproc in |
| 7441 | yes:no ) |
| 7442 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7443 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7444 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7445 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 7446 | no:yes ) |
| 7447 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7448 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7449 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7450 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7451 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7452 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 7453 | esac |
| 7454 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7455 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7456 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7458 | else |
| 7459 | eval "$as_ac_Header=$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7460 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7461 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7462 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7463 | |
| 7464 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7465 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7466 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7467 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7468 | _ACEOF |
| 7469 | echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7470 | echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6 |
| 7471 | if test "${ac_cv_lib_ncurses_waddch+set}" = set; then |
| 7472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7473 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7474 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7475 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7476 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7477 | #line $LINENO "configure" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7478 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7479 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7480 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7481 | #ifdef __cplusplus |
| 7482 | extern "C" |
| 7483 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7484 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7485 | builtin and then its argument prototype would still apply. */ |
| 7486 | char waddch (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7487 | #ifdef F77_DUMMY_MAIN |
| 7488 | # ifdef __cplusplus |
| 7489 | extern "C" |
| 7490 | # endif |
| 7491 | int F77_DUMMY_MAIN() { return 1; } |
| 7492 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7493 | int |
| 7494 | main () |
| 7495 | { |
| 7496 | waddch (); |
| 7497 | ; |
| 7498 | return 0; |
| 7499 | } |
| 7500 | _ACEOF |
| 7501 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7502 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7503 | (eval $ac_link) 2>&5 |
| 7504 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7506 | (exit $ac_status); } && |
| 7507 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7509 | (eval $ac_try) 2>&5 |
| 7510 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7512 | (exit $ac_status); }; }; then |
| 7513 | ac_cv_lib_ncurses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7514 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7515 | echo "$as_me: failed program was:" >&5 |
| 7516 | cat conftest.$ac_ext >&5 |
| 7517 | ac_cv_lib_ncurses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7518 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7519 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7520 | LIBS=$ac_check_lib_save_LIBS |
| 7521 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7522 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7523 | echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6 |
| 7524 | if test $ac_cv_lib_ncurses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7525 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7526 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7527 | #define HAVE_LIBNCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7528 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7529 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7530 | CURSESLIBS="-lncurses" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7531 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7532 | |
| 7533 | for ac_header in curses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7534 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7535 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7536 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7537 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7538 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7539 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7541 | fi |
| 7542 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7543 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7544 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7545 | # Is the header compilable? |
| 7546 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7547 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7548 | cat >conftest.$ac_ext <<_ACEOF |
| 7549 | #line $LINENO "configure" |
| 7550 | #include "confdefs.h" |
| 7551 | $ac_includes_default |
| 7552 | #include <$ac_header> |
| 7553 | _ACEOF |
| 7554 | rm -f conftest.$ac_objext |
| 7555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7556 | (eval $ac_compile) 2>&5 |
| 7557 | ac_status=$? |
| 7558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7559 | (exit $ac_status); } && |
| 7560 | { ac_try='test -s conftest.$ac_objext' |
| 7561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7562 | (eval $ac_try) 2>&5 |
| 7563 | ac_status=$? |
| 7564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7565 | (exit $ac_status); }; }; then |
| 7566 | ac_header_compiler=yes |
| 7567 | else |
| 7568 | echo "$as_me: failed program was:" >&5 |
| 7569 | cat conftest.$ac_ext >&5 |
| 7570 | ac_header_compiler=no |
| 7571 | fi |
| 7572 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7573 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7574 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7575 | |
| 7576 | # Is the header present? |
| 7577 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7578 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7579 | cat >conftest.$ac_ext <<_ACEOF |
| 7580 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7581 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7582 | #include <$ac_header> |
| 7583 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7584 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7585 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7586 | ac_status=$? |
| 7587 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 7588 | rm -f conftest.er1 |
| 7589 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7591 | (exit $ac_status); } >/dev/null; then |
| 7592 | if test -s conftest.err; then |
| 7593 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7594 | else |
| 7595 | ac_cpp_err= |
| 7596 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7597 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7598 | ac_cpp_err=yes |
| 7599 | fi |
| 7600 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7601 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7602 | else |
| 7603 | echo "$as_me: failed program was:" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7604 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7605 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7606 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7607 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7608 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7609 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7610 | |
| 7611 | # So? What about this header? |
| 7612 | case $ac_header_compiler:$ac_header_preproc in |
| 7613 | yes:no ) |
| 7614 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7615 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7616 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7617 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 7618 | no:yes ) |
| 7619 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7620 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7621 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7622 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7623 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7624 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 7625 | esac |
| 7626 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7627 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7628 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7630 | else |
| 7631 | eval "$as_ac_Header=$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7632 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7633 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7634 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7635 | |
| 7636 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7637 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7638 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7639 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7640 | _ACEOF |
| 7641 | echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7642 | echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6 |
| 7643 | if test "${ac_cv_lib_curses_waddch+set}" = set; then |
| 7644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7645 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7646 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7647 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7648 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7649 | #line $LINENO "configure" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7650 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7651 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7652 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7653 | #ifdef __cplusplus |
| 7654 | extern "C" |
| 7655 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7656 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7657 | builtin and then its argument prototype would still apply. */ |
| 7658 | char waddch (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7659 | #ifdef F77_DUMMY_MAIN |
| 7660 | # ifdef __cplusplus |
| 7661 | extern "C" |
| 7662 | # endif |
| 7663 | int F77_DUMMY_MAIN() { return 1; } |
| 7664 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7665 | int |
| 7666 | main () |
| 7667 | { |
| 7668 | waddch (); |
| 7669 | ; |
| 7670 | return 0; |
| 7671 | } |
| 7672 | _ACEOF |
| 7673 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7675 | (eval $ac_link) 2>&5 |
| 7676 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7678 | (exit $ac_status); } && |
| 7679 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7681 | (eval $ac_try) 2>&5 |
| 7682 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7684 | (exit $ac_status); }; }; then |
| 7685 | ac_cv_lib_curses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7686 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7687 | echo "$as_me: failed program was:" >&5 |
| 7688 | cat conftest.$ac_ext >&5 |
| 7689 | ac_cv_lib_curses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7690 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7691 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7692 | LIBS=$ac_check_lib_save_LIBS |
| 7693 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7694 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7695 | echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6 |
| 7696 | if test $ac_cv_lib_curses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7697 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7698 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7699 | #define HAVE_LIBCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7700 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7701 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7702 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7703 | fi |
| 7704 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7705 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7706 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7707 | done |
| 7708 | |
| 7709 | fi |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7710 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7711 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7712 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7713 | done |
| 7714 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7715 | saved_libs="$LIBS" |
| 7716 | LIBS="$CURSESLIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7717 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7718 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7719 | for ac_func in getbkgd resizeterm |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7720 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7721 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7722 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7723 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 7724 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 7725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7726 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7727 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7728 | #line $LINENO "configure" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7729 | #include "confdefs.h" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7730 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7731 | which can conflict with char $ac_func (); below. */ |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7732 | #include <assert.h> |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7733 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7734 | #ifdef __cplusplus |
| 7735 | extern "C" |
| 7736 | #endif |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7737 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7738 | builtin and then its argument prototype would still apply. */ |
| 7739 | char $ac_func (); |
| 7740 | char (*f) (); |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7741 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7742 | #ifdef F77_DUMMY_MAIN |
| 7743 | # ifdef __cplusplus |
| 7744 | extern "C" |
| 7745 | # endif |
| 7746 | int F77_DUMMY_MAIN() { return 1; } |
| 7747 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7748 | int |
| 7749 | main () |
| 7750 | { |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7751 | /* The GNU C library defines this for functions which it implements |
| 7752 | to always fail with ENOSYS. Some functions are actually named |
| 7753 | something starting with __ and the normal name is an alias. */ |
| 7754 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 7755 | choke me |
| 7756 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7757 | f = $ac_func; |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7758 | #endif |
| 7759 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7760 | ; |
| 7761 | return 0; |
| 7762 | } |
| 7763 | _ACEOF |
| 7764 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7766 | (eval $ac_link) 2>&5 |
| 7767 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7769 | (exit $ac_status); } && |
| 7770 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7772 | (eval $ac_try) 2>&5 |
| 7773 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7775 | (exit $ac_status); }; }; then |
| 7776 | eval "$as_ac_var=yes" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7777 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7778 | echo "$as_me: failed program was:" >&5 |
| 7779 | cat conftest.$ac_ext >&5 |
| 7780 | eval "$as_ac_var=no" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7781 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7782 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7783 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7784 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7785 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 7786 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7787 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7788 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7789 | _ACEOF |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7790 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7791 | fi |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7792 | done |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7793 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7794 | LIBS="$saved_libs" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7795 | fi |
| 7796 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7797 | |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 7798 | CUPSLIBS="" |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 7799 | wine_cv_warn_cups_h=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7800 | echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7801 | echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6 |
| 7802 | if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then |
| 7803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 7804 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7805 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 7806 | LIBS="-lcups $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7807 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7808 | #line $LINENO "configure" |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 7809 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7810 | |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 7811 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7812 | #ifdef __cplusplus |
| 7813 | extern "C" |
| 7814 | #endif |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 7815 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7816 | builtin and then its argument prototype would still apply. */ |
| 7817 | char cupsGetPPD (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7818 | #ifdef F77_DUMMY_MAIN |
| 7819 | # ifdef __cplusplus |
| 7820 | extern "C" |
| 7821 | # endif |
| 7822 | int F77_DUMMY_MAIN() { return 1; } |
| 7823 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7824 | int |
| 7825 | main () |
| 7826 | { |
| 7827 | cupsGetPPD (); |
| 7828 | ; |
| 7829 | return 0; |
| 7830 | } |
| 7831 | _ACEOF |
| 7832 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7834 | (eval $ac_link) 2>&5 |
| 7835 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7837 | (exit $ac_status); } && |
| 7838 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7840 | (eval $ac_try) 2>&5 |
| 7841 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7843 | (exit $ac_status); }; }; then |
| 7844 | ac_cv_lib_cups_cupsGetPPD=yes |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 7845 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7846 | echo "$as_me: failed program was:" >&5 |
| 7847 | cat conftest.$ac_ext >&5 |
| 7848 | ac_cv_lib_cups_cupsGetPPD=no |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 7849 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7850 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7851 | LIBS=$ac_check_lib_save_LIBS |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 7852 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7853 | echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7854 | echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6 |
| 7855 | if test $ac_cv_lib_cups_cupsGetPPD = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7856 | if test "${ac_cv_header_cups_cups_h+set}" = set; then |
| 7857 | echo "$as_me:$LINENO: checking for cups/cups.h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7858 | echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6 |
| 7859 | if test "${ac_cv_header_cups_cups_h+set}" = set; then |
| 7860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7861 | fi |
| 7862 | echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5 |
| 7863 | echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6 |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 7864 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7865 | # Is the header compilable? |
| 7866 | echo "$as_me:$LINENO: checking cups/cups.h usability" >&5 |
| 7867 | echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6 |
| 7868 | cat >conftest.$ac_ext <<_ACEOF |
| 7869 | #line $LINENO "configure" |
| 7870 | #include "confdefs.h" |
| 7871 | $ac_includes_default |
| 7872 | #include <cups/cups.h> |
| 7873 | _ACEOF |
| 7874 | rm -f conftest.$ac_objext |
| 7875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7876 | (eval $ac_compile) 2>&5 |
| 7877 | ac_status=$? |
| 7878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7879 | (exit $ac_status); } && |
| 7880 | { ac_try='test -s conftest.$ac_objext' |
| 7881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7882 | (eval $ac_try) 2>&5 |
| 7883 | ac_status=$? |
| 7884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7885 | (exit $ac_status); }; }; then |
| 7886 | ac_header_compiler=yes |
| 7887 | else |
| 7888 | echo "$as_me: failed program was:" >&5 |
| 7889 | cat conftest.$ac_ext >&5 |
| 7890 | ac_header_compiler=no |
| 7891 | fi |
| 7892 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7893 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7894 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7895 | |
| 7896 | # Is the header present? |
| 7897 | echo "$as_me:$LINENO: checking cups/cups.h presence" >&5 |
| 7898 | echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6 |
| 7899 | cat >conftest.$ac_ext <<_ACEOF |
| 7900 | #line $LINENO "configure" |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 7901 | #include "confdefs.h" |
| 7902 | #include <cups/cups.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7903 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7904 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7905 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7906 | ac_status=$? |
| 7907 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 7908 | rm -f conftest.er1 |
| 7909 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7911 | (exit $ac_status); } >/dev/null; then |
| 7912 | if test -s conftest.err; then |
| 7913 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7914 | else |
| 7915 | ac_cpp_err= |
| 7916 | fi |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 7917 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7918 | ac_cpp_err=yes |
| 7919 | fi |
| 7920 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7921 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7922 | else |
| 7923 | echo "$as_me: failed program was:" >&5 |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 7924 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7925 | ac_header_preproc=no |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 7926 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7927 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7928 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7929 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7930 | |
| 7931 | # So? What about this header? |
| 7932 | case $ac_header_compiler:$ac_header_preproc in |
| 7933 | yes:no ) |
| 7934 | { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7935 | echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7936 | { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5 |
| 7937 | echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};; |
| 7938 | no:yes ) |
| 7939 | { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5 |
| 7940 | echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;} |
| 7941 | { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5 |
| 7942 | echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;} |
| 7943 | { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5 |
| 7944 | echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};; |
| 7945 | esac |
| 7946 | echo "$as_me:$LINENO: checking for cups/cups.h" >&5 |
| 7947 | echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6 |
| 7948 | if test "${ac_cv_header_cups_cups_h+set}" = set; then |
| 7949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7950 | else |
| 7951 | ac_cv_header_cups_cups_h=$ac_header_preproc |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 7952 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7953 | echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7954 | echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7955 | |
| 7956 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7957 | if test $ac_cv_header_cups_cups_h = yes; then |
| 7958 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7959 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 7960 | #define HAVE_CUPS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7961 | _ACEOF |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 7962 | |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 7963 | CUPSLIBS="-lcups" |
| 7964 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7965 | wine_cv_warn_cups_h=yes |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 7966 | fi |
| 7967 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7968 | |
| 7969 | |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 7970 | fi |
| 7971 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7972 | |
| 7973 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 7974 | # Extract the first word of "sane-config", so it can be a program name with args. |
| 7975 | set dummy sane-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7976 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 7977 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7978 | if test "${ac_cv_prog_sane_devel+set}" = set; then |
| 7979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7980 | else |
| 7981 | if test -n "$sane_devel"; then |
| 7982 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. |
| 7983 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7985 | for as_dir in $PATH |
| 7986 | do |
| 7987 | IFS=$as_save_IFS |
| 7988 | test -z "$as_dir" && as_dir=. |
| 7989 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7990 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7991 | ac_cv_prog_sane_devel="sane-config" |
| 7992 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7993 | break 2 |
| 7994 | fi |
| 7995 | done |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 7996 | done |
| 7997 | |
| 7998 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" |
| 7999 | fi |
| 8000 | fi |
| 8001 | sane_devel=$ac_cv_prog_sane_devel |
| 8002 | if test -n "$sane_devel"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8003 | echo "$as_me:$LINENO: result: $sane_devel" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8004 | echo "${ECHO_T}$sane_devel" >&6 |
| 8005 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8006 | echo "$as_me:$LINENO: result: no" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8007 | echo "${ECHO_T}no" >&6 |
| 8008 | fi |
| 8009 | |
| 8010 | if test "$sane_devel" = "no" |
| 8011 | then |
| 8012 | SANELIBS="" |
| 8013 | SANEINCL="" |
| 8014 | else |
| 8015 | SANELIBS="`$sane_devel --libs`" |
| 8016 | SANEINCL="`$sane_devel --cflags`" |
| 8017 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 8018 | ac_save_LIBS="$LIBS" |
| 8019 | CPPFLAGS="$CPPFLAGS $SANEINCL" |
| 8020 | LIBS="$LIBS $SANELIBS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8021 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 8022 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8023 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 |
| 8024 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 8025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8026 | fi |
| 8027 | echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
| 8028 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8029 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8030 | # Is the header compilable? |
| 8031 | echo "$as_me:$LINENO: checking sane/sane.h usability" >&5 |
| 8032 | echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6 |
| 8033 | cat >conftest.$ac_ext <<_ACEOF |
| 8034 | #line $LINENO "configure" |
| 8035 | #include "confdefs.h" |
| 8036 | $ac_includes_default |
| 8037 | #include <sane/sane.h> |
| 8038 | _ACEOF |
| 8039 | rm -f conftest.$ac_objext |
| 8040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8041 | (eval $ac_compile) 2>&5 |
| 8042 | ac_status=$? |
| 8043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8044 | (exit $ac_status); } && |
| 8045 | { ac_try='test -s conftest.$ac_objext' |
| 8046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8047 | (eval $ac_try) 2>&5 |
| 8048 | ac_status=$? |
| 8049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8050 | (exit $ac_status); }; }; then |
| 8051 | ac_header_compiler=yes |
| 8052 | else |
| 8053 | echo "$as_me: failed program was:" >&5 |
| 8054 | cat conftest.$ac_ext >&5 |
| 8055 | ac_header_compiler=no |
| 8056 | fi |
| 8057 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8058 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8059 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8060 | |
| 8061 | # Is the header present? |
| 8062 | echo "$as_me:$LINENO: checking sane/sane.h presence" >&5 |
| 8063 | echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6 |
| 8064 | cat >conftest.$ac_ext <<_ACEOF |
| 8065 | #line $LINENO "configure" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8066 | #include "confdefs.h" |
| 8067 | #include <sane/sane.h> |
| 8068 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8069 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8070 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8071 | ac_status=$? |
| 8072 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 8073 | rm -f conftest.er1 |
| 8074 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8076 | (exit $ac_status); } >/dev/null; then |
| 8077 | if test -s conftest.err; then |
| 8078 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8079 | else |
| 8080 | ac_cpp_err= |
| 8081 | fi |
| 8082 | else |
| 8083 | ac_cpp_err=yes |
| 8084 | fi |
| 8085 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8086 | ac_header_preproc=yes |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8087 | else |
| 8088 | echo "$as_me: failed program was:" >&5 |
| 8089 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8090 | ac_header_preproc=no |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8091 | fi |
| 8092 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8093 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8094 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8095 | |
| 8096 | # So? What about this header? |
| 8097 | case $ac_header_compiler:$ac_header_preproc in |
| 8098 | yes:no ) |
| 8099 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8100 | echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8101 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5 |
| 8102 | echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};; |
| 8103 | no:yes ) |
| 8104 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5 |
| 8105 | echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;} |
| 8106 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5 |
| 8107 | echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;} |
| 8108 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5 |
| 8109 | echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};; |
| 8110 | esac |
| 8111 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
| 8112 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 |
| 8113 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 8114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8115 | else |
| 8116 | ac_cv_header_sane_sane_h=$ac_header_preproc |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8117 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8118 | echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8119 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8120 | |
| 8121 | fi |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8122 | if test $ac_cv_header_sane_sane_h = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8123 | echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8124 | echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6 |
| 8125 | if test "${ac_cv_lib_sane_sane_open+set}" = set; then |
| 8126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8127 | else |
| 8128 | ac_check_lib_save_LIBS=$LIBS |
| 8129 | LIBS="-lsane $LIBS" |
| 8130 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8131 | #line $LINENO "configure" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8132 | #include "confdefs.h" |
| 8133 | |
| 8134 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8135 | #ifdef __cplusplus |
| 8136 | extern "C" |
| 8137 | #endif |
| 8138 | /* We use char because int might match the return type of a gcc2 |
| 8139 | builtin and then its argument prototype would still apply. */ |
| 8140 | char sane_open (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8141 | #ifdef F77_DUMMY_MAIN |
| 8142 | # ifdef __cplusplus |
| 8143 | extern "C" |
| 8144 | # endif |
| 8145 | int F77_DUMMY_MAIN() { return 1; } |
| 8146 | #endif |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8147 | int |
| 8148 | main () |
| 8149 | { |
| 8150 | sane_open (); |
| 8151 | ; |
| 8152 | return 0; |
| 8153 | } |
| 8154 | _ACEOF |
| 8155 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8156 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8157 | (eval $ac_link) 2>&5 |
| 8158 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8160 | (exit $ac_status); } && |
| 8161 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8163 | (eval $ac_try) 2>&5 |
| 8164 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8166 | (exit $ac_status); }; }; then |
| 8167 | ac_cv_lib_sane_sane_open=yes |
| 8168 | else |
| 8169 | echo "$as_me: failed program was:" >&5 |
| 8170 | cat conftest.$ac_ext >&5 |
| 8171 | ac_cv_lib_sane_sane_open=no |
| 8172 | fi |
| 8173 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8174 | LIBS=$ac_check_lib_save_LIBS |
| 8175 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8176 | echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8177 | echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6 |
| 8178 | if test $ac_cv_lib_sane_sane_open = yes; then |
| 8179 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8180 | cat >>confdefs.h <<\_ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8181 | #define HAVE_SANE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8182 | _ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8183 | |
| 8184 | else |
| 8185 | SANELIBS="" |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 8186 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8187 | fi |
| 8188 | |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 8189 | else |
| 8190 | SANELIBS="" |
| 8191 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8192 | fi |
| 8193 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8194 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8195 | LIBS="$ac_save_LIBS" |
| 8196 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 8197 | fi |
| 8198 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8199 | |
| 8200 | |
| 8201 | echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8202 | echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6 |
| 8203 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then |
| 8204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8205 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8206 | ac_check_lib_save_LIBS=$LIBS |
Dmitry Timoshkov | 8871a11 | 2001-11-06 22:26:53 +0000 | [diff] [blame] | 8207 | LIBS="-lfreetype $X_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8208 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8209 | #line $LINENO "configure" |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8210 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8211 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8212 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8213 | #ifdef __cplusplus |
| 8214 | extern "C" |
| 8215 | #endif |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8216 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8217 | builtin and then its argument prototype would still apply. */ |
| 8218 | char FT_Init_FreeType (); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8219 | #ifdef F77_DUMMY_MAIN |
| 8220 | # ifdef __cplusplus |
| 8221 | extern "C" |
| 8222 | # endif |
| 8223 | int F77_DUMMY_MAIN() { return 1; } |
| 8224 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8225 | int |
| 8226 | main () |
| 8227 | { |
| 8228 | FT_Init_FreeType (); |
| 8229 | ; |
| 8230 | return 0; |
| 8231 | } |
| 8232 | _ACEOF |
| 8233 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8235 | (eval $ac_link) 2>&5 |
| 8236 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8238 | (exit $ac_status); } && |
| 8239 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8241 | (eval $ac_try) 2>&5 |
| 8242 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8244 | (exit $ac_status); }; }; then |
| 8245 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8246 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8247 | echo "$as_me: failed program was:" >&5 |
| 8248 | cat conftest.$ac_ext >&5 |
| 8249 | ac_cv_lib_freetype_FT_Init_FreeType=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8250 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8251 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8252 | LIBS=$ac_check_lib_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8253 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8254 | echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8255 | echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6 |
| 8256 | if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8257 | ft_lib=yes |
| 8258 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8259 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8260 | fi |
| 8261 | |
| 8262 | if test "$ft_lib" = "no" |
| 8263 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8264 | FREETYPEINCL="" |
| 8265 | wine_cv_msg_freetype=no |
| 8266 | else |
| 8267 | # Extract the first word of "freetype-config", so it can be a program name with args. |
| 8268 | set dummy freetype-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8269 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8270 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8271 | if test "${ac_cv_prog_ft_devel+set}" = set; then |
| 8272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8273 | else |
| 8274 | if test -n "$ft_devel"; then |
| 8275 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 8276 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8278 | for as_dir in $PATH |
| 8279 | do |
| 8280 | IFS=$as_save_IFS |
| 8281 | test -z "$as_dir" && as_dir=. |
| 8282 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8283 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8284 | ac_cv_prog_ft_devel="freetype-config" |
| 8285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8286 | break 2 |
| 8287 | fi |
| 8288 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8289 | done |
| 8290 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8291 | test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no" |
| 8292 | fi |
| 8293 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8294 | ft_devel=$ac_cv_prog_ft_devel |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8295 | if test -n "$ft_devel"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8296 | echo "$as_me:$LINENO: result: $ft_devel" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8297 | echo "${ECHO_T}$ft_devel" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8298 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8299 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8300 | echo "${ECHO_T}no" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8301 | fi |
| 8302 | |
| 8303 | if test "$ft_devel" = "no" |
| 8304 | then |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 8305 | # Extract the first word of "freetype2-config", so it can be a program name with args. |
| 8306 | set dummy freetype2-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8307 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8309 | if test "${ac_cv_prog_ft_devel2+set}" = set; then |
| 8310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 8311 | else |
| 8312 | if test -n "$ft_devel2"; then |
| 8313 | ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test. |
| 8314 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8316 | for as_dir in $PATH |
| 8317 | do |
| 8318 | IFS=$as_save_IFS |
| 8319 | test -z "$as_dir" && as_dir=. |
| 8320 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8321 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8322 | ac_cv_prog_ft_devel2="freetype2-config" |
| 8323 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8324 | break 2 |
| 8325 | fi |
| 8326 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8327 | done |
| 8328 | |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 8329 | test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no" |
| 8330 | fi |
| 8331 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8332 | ft_devel2=$ac_cv_prog_ft_devel2 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 8333 | if test -n "$ft_devel2"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8334 | echo "$as_me:$LINENO: result: $ft_devel2" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8335 | echo "${ECHO_T}$ft_devel2" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 8336 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8337 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8338 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 8339 | fi |
| 8340 | |
| 8341 | if test "$ft_devel2" = "freetype2-config" |
| 8342 | then |
| 8343 | ft_devel=$ft_devel2 |
| 8344 | fi |
| 8345 | fi |
| 8346 | if test "$ft_devel" = "no" |
| 8347 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8348 | FREETYPEINCL="" |
| 8349 | wine_cv_msg_freetype=yes |
| 8350 | else |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 8351 | FREETYPEINCL=`$ft_devel --cflags` |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 8352 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 8353 | CPPFLAGS="$FREETYPEINCL $CPPFLAGS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8354 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8355 | |
| 8356 | |
| 8357 | |
| 8358 | |
| 8359 | |
| 8360 | |
| 8361 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8362 | for ac_header in freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 8363 | freetype/ftglyph.h \ |
| 8364 | freetype/tttables.h \ |
| 8365 | freetype/ftnames.h \ |
| 8366 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 8367 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 8368 | freetype/ftoutln.h \ |
| 8369 | freetype/internal/sfnt.h |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 8370 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8371 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8372 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8373 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8374 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8375 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8377 | fi |
| 8378 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8379 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8380 | else |
| 8381 | # Is the header compilable? |
| 8382 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8383 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8384 | cat >conftest.$ac_ext <<_ACEOF |
| 8385 | #line $LINENO "configure" |
| 8386 | #include "confdefs.h" |
| 8387 | $ac_includes_default |
| 8388 | #include <$ac_header> |
| 8389 | _ACEOF |
| 8390 | rm -f conftest.$ac_objext |
| 8391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8392 | (eval $ac_compile) 2>&5 |
| 8393 | ac_status=$? |
| 8394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8395 | (exit $ac_status); } && |
| 8396 | { ac_try='test -s conftest.$ac_objext' |
| 8397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8398 | (eval $ac_try) 2>&5 |
| 8399 | ac_status=$? |
| 8400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8401 | (exit $ac_status); }; }; then |
| 8402 | ac_header_compiler=yes |
| 8403 | else |
| 8404 | echo "$as_me: failed program was:" >&5 |
| 8405 | cat conftest.$ac_ext >&5 |
| 8406 | ac_header_compiler=no |
| 8407 | fi |
| 8408 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8409 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8410 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8411 | |
| 8412 | # Is the header present? |
| 8413 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8414 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8415 | cat >conftest.$ac_ext <<_ACEOF |
| 8416 | #line $LINENO "configure" |
| 8417 | #include "confdefs.h" |
| 8418 | #include <$ac_header> |
| 8419 | _ACEOF |
| 8420 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8421 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8422 | ac_status=$? |
| 8423 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 8424 | rm -f conftest.er1 |
| 8425 | cat conftest.err >&5 |
| 8426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8427 | (exit $ac_status); } >/dev/null; then |
| 8428 | if test -s conftest.err; then |
| 8429 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8430 | else |
| 8431 | ac_cpp_err= |
| 8432 | fi |
| 8433 | else |
| 8434 | ac_cpp_err=yes |
| 8435 | fi |
| 8436 | if test -z "$ac_cpp_err"; then |
| 8437 | ac_header_preproc=yes |
| 8438 | else |
| 8439 | echo "$as_me: failed program was:" >&5 |
| 8440 | cat conftest.$ac_ext >&5 |
| 8441 | ac_header_preproc=no |
| 8442 | fi |
| 8443 | rm -f conftest.err conftest.$ac_ext |
| 8444 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8445 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8446 | |
| 8447 | # So? What about this header? |
| 8448 | case $ac_header_compiler:$ac_header_preproc in |
| 8449 | yes:no ) |
| 8450 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8451 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8452 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8453 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 8454 | no:yes ) |
| 8455 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8456 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8457 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8458 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8459 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8460 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 8461 | esac |
| 8462 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8463 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8464 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 8466 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8467 | eval "$as_ac_Header=$ac_header_preproc" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8468 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8469 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8470 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8471 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 8472 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8473 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8474 | cat >>confdefs.h <<_ACEOF |
| 8475 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8476 | _ACEOF |
| 8477 | |
| 8478 | fi |
| 8479 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 8480 | done |
| 8481 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8482 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8483 | #line $LINENO "configure" |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 8484 | #include "confdefs.h" |
| 8485 | #include <ft2build.h> |
| 8486 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8487 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8488 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8489 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8490 | ac_status=$? |
| 8491 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 8492 | rm -f conftest.er1 |
| 8493 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8495 | (exit $ac_status); } >/dev/null; then |
| 8496 | if test -s conftest.err; then |
| 8497 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8498 | else |
| 8499 | ac_cpp_err= |
| 8500 | fi |
| 8501 | else |
| 8502 | ac_cpp_err=yes |
| 8503 | fi |
| 8504 | if test -z "$ac_cpp_err"; then |
| 8505 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8506 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 8507 | #define HAVE_FREETYPE_FTTRIGON_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8508 | _ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 8509 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 8510 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 8511 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8512 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 8513 | cat conftest.$ac_ext >&5 |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 8514 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 8515 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8516 | rm -f conftest.err conftest.$ac_ext |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 8517 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 8518 | if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes" |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 8519 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8520 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8521 | cat >>confdefs.h <<\_ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 8522 | #define HAVE_FREETYPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8523 | _ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 8524 | |
| 8525 | wine_cv_msg_freetype=no |
| 8526 | else |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 8527 | FREETYPEINCL="" |
| 8528 | wine_cv_msg_freetype=yes |
| 8529 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8530 | fi |
| 8531 | fi |
| 8532 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8533 | |
| 8534 | echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8535 | echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6 |
| 8536 | if test "${ac_cv_c_ppdev+set}" = set; then |
| 8537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8538 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8539 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8540 | #line $LINENO "configure" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8541 | #include "confdefs.h" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8542 | #include <linux/ppdev.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8543 | #ifdef F77_DUMMY_MAIN |
| 8544 | # ifdef __cplusplus |
| 8545 | extern "C" |
| 8546 | # endif |
| 8547 | int F77_DUMMY_MAIN() { return 1; } |
| 8548 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8549 | int |
| 8550 | main () |
| 8551 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8552 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8553 | ; |
| 8554 | return 0; |
| 8555 | } |
| 8556 | _ACEOF |
| 8557 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8559 | (eval $ac_compile) 2>&5 |
| 8560 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8562 | (exit $ac_status); } && |
| 8563 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8565 | (eval $ac_try) 2>&5 |
| 8566 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8568 | (exit $ac_status); }; }; then |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8569 | ac_cv_c_ppdev="yes" |
| 8570 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8571 | echo "$as_me: failed program was:" >&5 |
| 8572 | cat conftest.$ac_ext >&5 |
| 8573 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8574 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8575 | rm -f conftest.$ac_objext conftest.$ac_ext |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8576 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8577 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8578 | echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8579 | echo "${ECHO_T}$ac_cv_c_ppdev" >&6 |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8580 | if test "$ac_cv_c_ppdev" = "yes" |
| 8581 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8582 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8583 | cat >>confdefs.h <<\_ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8584 | #define HAVE_PPDEV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8585 | _ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8586 | |
| 8587 | fi |
| 8588 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8589 | echo "$as_me:$LINENO: checking for GNU style IPX support" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8590 | echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6 |
| 8591 | if test "${ac_cv_c_ipx_gnu+set}" = set; then |
| 8592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8593 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8594 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8595 | #line $LINENO "configure" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8596 | #include "confdefs.h" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8597 | #include <sys/socket.h> |
| 8598 | #include <netipx/ipx.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8599 | #ifdef F77_DUMMY_MAIN |
| 8600 | # ifdef __cplusplus |
| 8601 | extern "C" |
| 8602 | # endif |
| 8603 | int F77_DUMMY_MAIN() { return 1; } |
| 8604 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8605 | int |
| 8606 | main () |
| 8607 | { |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8608 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8609 | ; |
| 8610 | return 0; |
| 8611 | } |
| 8612 | _ACEOF |
| 8613 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8615 | (eval $ac_compile) 2>&5 |
| 8616 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8618 | (exit $ac_status); } && |
| 8619 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8621 | (eval $ac_try) 2>&5 |
| 8622 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8624 | (exit $ac_status); }; }; then |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 8625 | ac_cv_c_ipx_gnu="yes" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8626 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8627 | echo "$as_me: failed program was:" >&5 |
| 8628 | cat conftest.$ac_ext >&5 |
| 8629 | ac_cv_c_ipx_gnu="no" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8630 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8631 | rm -f conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8632 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8633 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8634 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8635 | echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6 |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 8636 | if test "$ac_cv_c_ipx_gnu" = "yes" |
| 8637 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8638 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8639 | cat >>confdefs.h <<\_ACEOF |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 8640 | #define HAVE_IPX_GNU 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8641 | _ACEOF |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 8642 | |
| 8643 | fi |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8644 | |
| 8645 | if test "$ac_cv_c_ipx_gnu" = "no" |
| 8646 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8647 | echo "$as_me:$LINENO: checking for linux style IPX support" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8648 | echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6 |
| 8649 | if test "${ac_cv_c_ipx_linux+set}" = set; then |
| 8650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8651 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8652 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8653 | #line $LINENO "configure" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8654 | #include "confdefs.h" |
| 8655 | #include <sys/socket.h> |
| 8656 | #include <asm/types.h> |
| 8657 | #include <linux/ipx.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8658 | #ifdef F77_DUMMY_MAIN |
| 8659 | # ifdef __cplusplus |
| 8660 | extern "C" |
| 8661 | # endif |
| 8662 | int F77_DUMMY_MAIN() { return 1; } |
| 8663 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8664 | int |
| 8665 | main () |
| 8666 | { |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8667 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8668 | ; |
| 8669 | return 0; |
| 8670 | } |
| 8671 | _ACEOF |
| 8672 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8674 | (eval $ac_compile) 2>&5 |
| 8675 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8677 | (exit $ac_status); } && |
| 8678 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8680 | (eval $ac_try) 2>&5 |
| 8681 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8683 | (exit $ac_status); }; }; then |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 8684 | ac_cv_c_ipx_linux="yes" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8685 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8686 | echo "$as_me: failed program was:" >&5 |
| 8687 | cat conftest.$ac_ext >&5 |
| 8688 | ac_cv_c_ipx_linux="no" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8689 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8690 | rm -f conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8691 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8692 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8693 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8694 | echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6 |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 8695 | if test "$ac_cv_c_ipx_linux" = "yes" |
| 8696 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8697 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8698 | cat >>confdefs.h <<\_ACEOF |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 8699 | #define HAVE_IPX_LINUX 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8700 | _ACEOF |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 8701 | |
| 8702 | fi |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8703 | fi |
| 8704 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8705 | |
| 8706 | |
| 8707 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8708 | for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8709 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8710 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8711 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8712 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8714 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8716 | fi |
| 8717 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8718 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8719 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8720 | # Is the header compilable? |
| 8721 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8722 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8723 | cat >conftest.$ac_ext <<_ACEOF |
| 8724 | #line $LINENO "configure" |
| 8725 | #include "confdefs.h" |
| 8726 | $ac_includes_default |
| 8727 | #include <$ac_header> |
| 8728 | _ACEOF |
| 8729 | rm -f conftest.$ac_objext |
| 8730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8731 | (eval $ac_compile) 2>&5 |
| 8732 | ac_status=$? |
| 8733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8734 | (exit $ac_status); } && |
| 8735 | { ac_try='test -s conftest.$ac_objext' |
| 8736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8737 | (eval $ac_try) 2>&5 |
| 8738 | ac_status=$? |
| 8739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8740 | (exit $ac_status); }; }; then |
| 8741 | ac_header_compiler=yes |
| 8742 | else |
| 8743 | echo "$as_me: failed program was:" >&5 |
| 8744 | cat conftest.$ac_ext >&5 |
| 8745 | ac_header_compiler=no |
| 8746 | fi |
| 8747 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8748 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8749 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8750 | |
| 8751 | # Is the header present? |
| 8752 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8753 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8754 | cat >conftest.$ac_ext <<_ACEOF |
| 8755 | #line $LINENO "configure" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8756 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8757 | #include <$ac_header> |
| 8758 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8759 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8760 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8761 | ac_status=$? |
| 8762 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 8763 | rm -f conftest.er1 |
| 8764 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8766 | (exit $ac_status); } >/dev/null; then |
| 8767 | if test -s conftest.err; then |
| 8768 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8769 | else |
| 8770 | ac_cpp_err= |
| 8771 | fi |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8772 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8773 | ac_cpp_err=yes |
| 8774 | fi |
| 8775 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8776 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8777 | else |
| 8778 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8779 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8780 | ac_header_preproc=no |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8781 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8782 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8783 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8784 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8785 | |
| 8786 | # So? What about this header? |
| 8787 | case $ac_header_compiler:$ac_header_preproc in |
| 8788 | yes:no ) |
| 8789 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8790 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8791 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8792 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 8793 | no:yes ) |
| 8794 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8795 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8796 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8797 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8798 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8799 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 8800 | esac |
| 8801 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8802 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8803 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8805 | else |
| 8806 | eval "$as_ac_Header=$ac_header_preproc" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8807 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8808 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8809 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8810 | |
| 8811 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8812 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8813 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8814 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8815 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 8816 | break |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8817 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8818 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8819 | done |
| 8820 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8821 | |
| 8822 | echo "$as_me:$LINENO: checking for Open Sound System" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8823 | echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6 |
| 8824 | if test "${ac_cv_c_opensoundsystem+set}" = set; then |
| 8825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 8826 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8827 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8828 | #line $LINENO "configure" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 8829 | #include "confdefs.h" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8830 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 8831 | #if defined(HAVE_SYS_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8832 | #include <sys/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 8833 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8834 | #include <machine/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 8835 | #elif defined(HAVE_SOUNDCARD_H) |
| 8836 | #include <soundcard.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8837 | #endif |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 8838 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8839 | #ifdef F77_DUMMY_MAIN |
| 8840 | # ifdef __cplusplus |
| 8841 | extern "C" |
| 8842 | # endif |
| 8843 | int F77_DUMMY_MAIN() { return 1; } |
| 8844 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8845 | int |
| 8846 | main () |
| 8847 | { |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8848 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8849 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 8850 | /* check for one of the Open Sound System specific SNDCTL_ defines */ |
| 8851 | #if !defined(SNDCTL_DSP_STEREO) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 8852 | #error No open sound system |
| 8853 | #endif |
| 8854 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8855 | ; |
| 8856 | return 0; |
| 8857 | } |
| 8858 | _ACEOF |
| 8859 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8861 | (eval $ac_compile) 2>&5 |
| 8862 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8864 | (exit $ac_status); } && |
| 8865 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8867 | (eval $ac_try) 2>&5 |
| 8868 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8870 | (exit $ac_status); }; }; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 8871 | ac_cv_c_opensoundsystem="yes" |
| 8872 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8873 | echo "$as_me: failed program was:" >&5 |
| 8874 | cat conftest.$ac_ext >&5 |
| 8875 | ac_cv_c_opensoundsystem="no" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 8876 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8877 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 8878 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8879 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8880 | echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 8881 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 8882 | if test "$ac_cv_c_opensoundsystem" = "yes" |
| 8883 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8884 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8885 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 8886 | #define HAVE_OSS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8887 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 8888 | |
| 8889 | fi |
| 8890 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8891 | echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8892 | echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6 |
| 8893 | if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then |
| 8894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8895 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8896 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8897 | #line $LINENO "configure" |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8898 | #include "confdefs.h" |
| 8899 | |
| 8900 | #if defined(HAVE_SYS_SOUNDCARD_H) |
| 8901 | #include <sys/soundcard.h> |
| 8902 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
| 8903 | #include <machine/soundcard.h> |
| 8904 | #elif defined(HAVE_SOUNDCARD_H) |
| 8905 | #include <soundcard.h> |
| 8906 | #endif |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8907 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8908 | #ifdef F77_DUMMY_MAIN |
| 8909 | # ifdef __cplusplus |
| 8910 | extern "C" |
| 8911 | # endif |
| 8912 | int F77_DUMMY_MAIN() { return 1; } |
| 8913 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8914 | int |
| 8915 | main () |
| 8916 | { |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8917 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8918 | |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8919 | /* check for one of the Open Sound System specific SNDCTL_SEQ defines */ |
| 8920 | #if !defined(SNDCTL_SEQ_SYNC) |
| 8921 | #error No open sound system MIDI interface |
| 8922 | #endif |
| 8923 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8924 | ; |
| 8925 | return 0; |
| 8926 | } |
| 8927 | _ACEOF |
| 8928 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8930 | (eval $ac_compile) 2>&5 |
| 8931 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8933 | (exit $ac_status); } && |
| 8934 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8936 | (eval $ac_try) 2>&5 |
| 8937 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8939 | (exit $ac_status); }; }; then |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8940 | ac_cv_c_opensoundsystem_midi="yes" |
| 8941 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8942 | echo "$as_me: failed program was:" >&5 |
| 8943 | cat conftest.$ac_ext >&5 |
| 8944 | ac_cv_c_opensoundsystem_midi="no" |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8945 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8946 | rm -f conftest.$ac_objext conftest.$ac_ext |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8947 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8948 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8949 | echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8950 | |
| 8951 | if test "$ac_cv_c_opensoundsystem_midi" = "yes" |
| 8952 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8953 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8954 | cat >>confdefs.h <<\_ACEOF |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8955 | #define HAVE_OSS_MIDI 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8956 | _ACEOF |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8957 | |
| 8958 | fi |
| 8959 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 8960 | # Extract the first word of "artsc-config", so it can be a program name with args. |
| 8961 | set dummy artsc-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8962 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 8963 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8964 | if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then |
| 8965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8966 | else |
| 8967 | case $ARTSCCONFIG in |
| 8968 | [\\/]* | ?:[\\/]*) |
| 8969 | ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path. |
| 8970 | ;; |
| 8971 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8973 | for as_dir in $PATH |
| 8974 | do |
| 8975 | IFS=$as_save_IFS |
| 8976 | test -z "$as_dir" && as_dir=. |
| 8977 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8978 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8979 | ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 8980 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8981 | break 2 |
| 8982 | fi |
| 8983 | done |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 8984 | done |
| 8985 | |
| 8986 | ;; |
| 8987 | esac |
| 8988 | fi |
| 8989 | ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG |
| 8990 | |
| 8991 | if test -n "$ARTSCCONFIG"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8992 | echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 8993 | echo "${ECHO_T}$ARTSCCONFIG" >&6 |
| 8994 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8995 | echo "$as_me:$LINENO: result: no" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 8996 | echo "${ECHO_T}no" >&6 |
| 8997 | fi |
| 8998 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8999 | echo "$as_me:$LINENO: checking for aRts Sound server" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9000 | echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6 |
| 9001 | if test "${ac_cv_c_artsserver+set}" = set; then |
| 9002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9003 | else |
| 9004 | if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"'; |
| 9005 | then |
| 9006 | ac_cv_c_artsserver=no |
| 9007 | else |
| 9008 | ARTSC_CFLAGS=`$ARTSCCONFIG --cflags` |
| 9009 | ARTSC_LIBS=`$ARTSCCONFIG --libs` |
| 9010 | ac_cv_c_artsserver=no |
| 9011 | save_CFLAGS="$CFLAGS" |
| 9012 | CFLAGS="$CFLAGS $ARTSC_CFLAGS" |
| 9013 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9014 | #line $LINENO "configure" |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9015 | #include "confdefs.h" |
| 9016 | |
| 9017 | #include <artsc.h> |
| 9018 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9019 | #ifdef F77_DUMMY_MAIN |
| 9020 | # ifdef __cplusplus |
| 9021 | extern "C" |
| 9022 | # endif |
| 9023 | int F77_DUMMY_MAIN() { return 1; } |
| 9024 | #endif |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9025 | int |
| 9026 | main () |
| 9027 | { |
| 9028 | |
| 9029 | arts_stream_t stream; |
| 9030 | |
| 9031 | ; |
| 9032 | return 0; |
| 9033 | } |
| 9034 | _ACEOF |
| 9035 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9037 | (eval $ac_compile) 2>&5 |
| 9038 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9040 | (exit $ac_status); } && |
| 9041 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9043 | (eval $ac_try) 2>&5 |
| 9044 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9046 | (exit $ac_status); }; }; then |
| 9047 | |
| 9048 | ac_cv_c_artsserver=yes |
| 9049 | |
| 9050 | else |
| 9051 | echo "$as_me: failed program was:" >&5 |
| 9052 | cat conftest.$ac_ext >&5 |
| 9053 | fi |
| 9054 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9055 | CFLAGS="$save_CFLAGS" |
| 9056 | fi |
| 9057 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9058 | echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9059 | echo "${ECHO_T}$ac_cv_c_artsserver" >&6 |
| 9060 | |
| 9061 | if test "$ac_cv_c_artsserver" = "yes" |
| 9062 | then |
| 9063 | ARTSLIBS=$ARTSC_LIBS |
| 9064 | |
| 9065 | ARTSINCL=$ARTSC_CFLAGS |
| 9066 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9067 | |
| 9068 | |
| 9069 | cat >>confdefs.h <<\_ACEOF |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9070 | #define HAVE_ARTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9071 | _ACEOF |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9072 | |
| 9073 | fi |
| 9074 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 9075 | ALSALIBS="" |
| 9076 | |
| 9077 | |
| 9078 | for ac_header in sys/asoundlib.h |
| 9079 | do |
| 9080 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9082 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9083 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9084 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9086 | fi |
| 9087 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9088 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9089 | else |
| 9090 | # Is the header compilable? |
| 9091 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9092 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9093 | cat >conftest.$ac_ext <<_ACEOF |
| 9094 | #line $LINENO "configure" |
| 9095 | #include "confdefs.h" |
| 9096 | $ac_includes_default |
| 9097 | #include <$ac_header> |
| 9098 | _ACEOF |
| 9099 | rm -f conftest.$ac_objext |
| 9100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9101 | (eval $ac_compile) 2>&5 |
| 9102 | ac_status=$? |
| 9103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9104 | (exit $ac_status); } && |
| 9105 | { ac_try='test -s conftest.$ac_objext' |
| 9106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9107 | (eval $ac_try) 2>&5 |
| 9108 | ac_status=$? |
| 9109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9110 | (exit $ac_status); }; }; then |
| 9111 | ac_header_compiler=yes |
| 9112 | else |
| 9113 | echo "$as_me: failed program was:" >&5 |
| 9114 | cat conftest.$ac_ext >&5 |
| 9115 | ac_header_compiler=no |
| 9116 | fi |
| 9117 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9118 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9119 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9120 | |
| 9121 | # Is the header present? |
| 9122 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9123 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9124 | cat >conftest.$ac_ext <<_ACEOF |
| 9125 | #line $LINENO "configure" |
| 9126 | #include "confdefs.h" |
| 9127 | #include <$ac_header> |
| 9128 | _ACEOF |
| 9129 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9130 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9131 | ac_status=$? |
| 9132 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9133 | rm -f conftest.er1 |
| 9134 | cat conftest.err >&5 |
| 9135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9136 | (exit $ac_status); } >/dev/null; then |
| 9137 | if test -s conftest.err; then |
| 9138 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9139 | else |
| 9140 | ac_cpp_err= |
| 9141 | fi |
| 9142 | else |
| 9143 | ac_cpp_err=yes |
| 9144 | fi |
| 9145 | if test -z "$ac_cpp_err"; then |
| 9146 | ac_header_preproc=yes |
| 9147 | else |
| 9148 | echo "$as_me: failed program was:" >&5 |
| 9149 | cat conftest.$ac_ext >&5 |
| 9150 | ac_header_preproc=no |
| 9151 | fi |
| 9152 | rm -f conftest.err conftest.$ac_ext |
| 9153 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9154 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9155 | |
| 9156 | # So? What about this header? |
| 9157 | case $ac_header_compiler:$ac_header_preproc in |
| 9158 | yes:no ) |
| 9159 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9160 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9161 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9162 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 9163 | no:yes ) |
| 9164 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9165 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9166 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9167 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9168 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9169 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 9170 | esac |
| 9171 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9172 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9173 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9175 | else |
| 9176 | eval "$as_ac_Header=$ac_header_preproc" |
| 9177 | fi |
| 9178 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9179 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9180 | |
| 9181 | fi |
| 9182 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9183 | cat >>confdefs.h <<_ACEOF |
| 9184 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9185 | _ACEOF |
| 9186 | |
| 9187 | fi |
| 9188 | |
| 9189 | done |
| 9190 | |
| 9191 | if test "$ac_cv_header_sys_asoundlib_h" = "yes" |
| 9192 | then |
| 9193 | echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5 |
| 9194 | echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6 |
| 9195 | if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then |
| 9196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9197 | else |
| 9198 | ac_check_lib_save_LIBS=$LIBS |
| 9199 | LIBS="-lasound $LIBS" |
| 9200 | cat >conftest.$ac_ext <<_ACEOF |
| 9201 | #line $LINENO "configure" |
| 9202 | #include "confdefs.h" |
| 9203 | |
| 9204 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9205 | #ifdef __cplusplus |
| 9206 | extern "C" |
| 9207 | #endif |
| 9208 | /* We use char because int might match the return type of a gcc2 |
| 9209 | builtin and then its argument prototype would still apply. */ |
| 9210 | char snd_pcm_open (); |
| 9211 | #ifdef F77_DUMMY_MAIN |
| 9212 | # ifdef __cplusplus |
| 9213 | extern "C" |
| 9214 | # endif |
| 9215 | int F77_DUMMY_MAIN() { return 1; } |
| 9216 | #endif |
| 9217 | int |
| 9218 | main () |
| 9219 | { |
| 9220 | snd_pcm_open (); |
| 9221 | ; |
| 9222 | return 0; |
| 9223 | } |
| 9224 | _ACEOF |
| 9225 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9227 | (eval $ac_link) 2>&5 |
| 9228 | ac_status=$? |
| 9229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9230 | (exit $ac_status); } && |
| 9231 | { ac_try='test -s conftest$ac_exeext' |
| 9232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9233 | (eval $ac_try) 2>&5 |
| 9234 | ac_status=$? |
| 9235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9236 | (exit $ac_status); }; }; then |
| 9237 | ac_cv_lib_asound_snd_pcm_open=yes |
| 9238 | else |
| 9239 | echo "$as_me: failed program was:" >&5 |
| 9240 | cat conftest.$ac_ext >&5 |
| 9241 | ac_cv_lib_asound_snd_pcm_open=no |
| 9242 | fi |
| 9243 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9244 | LIBS=$ac_check_lib_save_LIBS |
| 9245 | fi |
| 9246 | echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5 |
| 9247 | echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6 |
| 9248 | if test $ac_cv_lib_asound_snd_pcm_open = yes; then |
| 9249 | |
| 9250 | cat >>confdefs.h <<\_ACEOF |
| 9251 | #define HAVE_ALSA 1 |
| 9252 | _ACEOF |
| 9253 | |
| 9254 | ALSALIBS="-lasound" |
| 9255 | fi |
| 9256 | |
| 9257 | fi |
| 9258 | |
Alexandre Julliard | 04b5a86 | 2002-07-30 02:44:19 +0000 | [diff] [blame] | 9259 | NASLIBS="" |
| 9260 | |
| 9261 | |
| 9262 | for ac_header in audio/audiolib.h |
| 9263 | do |
| 9264 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9265 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9266 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9267 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9268 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9270 | fi |
| 9271 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9272 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9273 | else |
| 9274 | # Is the header compilable? |
| 9275 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9276 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9277 | cat >conftest.$ac_ext <<_ACEOF |
| 9278 | #line $LINENO "configure" |
| 9279 | #include "confdefs.h" |
| 9280 | $ac_includes_default |
| 9281 | #include <$ac_header> |
| 9282 | _ACEOF |
| 9283 | rm -f conftest.$ac_objext |
| 9284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9285 | (eval $ac_compile) 2>&5 |
| 9286 | ac_status=$? |
| 9287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9288 | (exit $ac_status); } && |
| 9289 | { ac_try='test -s conftest.$ac_objext' |
| 9290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9291 | (eval $ac_try) 2>&5 |
| 9292 | ac_status=$? |
| 9293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9294 | (exit $ac_status); }; }; then |
| 9295 | ac_header_compiler=yes |
| 9296 | else |
| 9297 | echo "$as_me: failed program was:" >&5 |
| 9298 | cat conftest.$ac_ext >&5 |
| 9299 | ac_header_compiler=no |
| 9300 | fi |
| 9301 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9302 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9303 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9304 | |
| 9305 | # Is the header present? |
| 9306 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9307 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9308 | cat >conftest.$ac_ext <<_ACEOF |
| 9309 | #line $LINENO "configure" |
| 9310 | #include "confdefs.h" |
| 9311 | #include <$ac_header> |
| 9312 | _ACEOF |
| 9313 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9314 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9315 | ac_status=$? |
| 9316 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9317 | rm -f conftest.er1 |
| 9318 | cat conftest.err >&5 |
| 9319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9320 | (exit $ac_status); } >/dev/null; then |
| 9321 | if test -s conftest.err; then |
| 9322 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9323 | else |
| 9324 | ac_cpp_err= |
| 9325 | fi |
| 9326 | else |
| 9327 | ac_cpp_err=yes |
| 9328 | fi |
| 9329 | if test -z "$ac_cpp_err"; then |
| 9330 | ac_header_preproc=yes |
| 9331 | else |
| 9332 | echo "$as_me: failed program was:" >&5 |
| 9333 | cat conftest.$ac_ext >&5 |
| 9334 | ac_header_preproc=no |
| 9335 | fi |
| 9336 | rm -f conftest.err conftest.$ac_ext |
| 9337 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9338 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9339 | |
| 9340 | # So? What about this header? |
| 9341 | case $ac_header_compiler:$ac_header_preproc in |
| 9342 | yes:no ) |
| 9343 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9344 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9345 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9346 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 9347 | no:yes ) |
| 9348 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9349 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9350 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9351 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9352 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9353 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 9354 | esac |
| 9355 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9356 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9357 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9359 | else |
| 9360 | eval "$as_ac_Header=$ac_header_preproc" |
| 9361 | fi |
| 9362 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9363 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9364 | |
| 9365 | fi |
| 9366 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9367 | cat >>confdefs.h <<_ACEOF |
| 9368 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9369 | _ACEOF |
| 9370 | |
| 9371 | for ac_header in audio/soundlib.h |
| 9372 | do |
| 9373 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9374 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9375 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9376 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9378 | else |
| 9379 | cat >conftest.$ac_ext <<_ACEOF |
| 9380 | #line $LINENO "configure" |
| 9381 | #include "confdefs.h" |
| 9382 | #include <audio/audiolib.h> |
| 9383 | |
| 9384 | #include <$ac_header> |
| 9385 | _ACEOF |
| 9386 | rm -f conftest.$ac_objext |
| 9387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9388 | (eval $ac_compile) 2>&5 |
| 9389 | ac_status=$? |
| 9390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9391 | (exit $ac_status); } && |
| 9392 | { ac_try='test -s conftest.$ac_objext' |
| 9393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9394 | (eval $ac_try) 2>&5 |
| 9395 | ac_status=$? |
| 9396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9397 | (exit $ac_status); }; }; then |
| 9398 | eval "$as_ac_Header=yes" |
| 9399 | else |
| 9400 | echo "$as_me: failed program was:" >&5 |
| 9401 | cat conftest.$ac_ext >&5 |
| 9402 | eval "$as_ac_Header=no" |
| 9403 | fi |
| 9404 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9405 | fi |
| 9406 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9407 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9408 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9409 | cat >>confdefs.h <<_ACEOF |
| 9410 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9411 | _ACEOF |
| 9412 | |
| 9413 | fi |
| 9414 | |
| 9415 | done |
| 9416 | |
| 9417 | echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5 |
| 9418 | echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6 |
| 9419 | if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then |
| 9420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9421 | else |
| 9422 | ac_check_lib_save_LIBS=$LIBS |
| 9423 | LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 9424 | cat >conftest.$ac_ext <<_ACEOF |
| 9425 | #line $LINENO "configure" |
| 9426 | #include "confdefs.h" |
| 9427 | |
| 9428 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9429 | #ifdef __cplusplus |
| 9430 | extern "C" |
| 9431 | #endif |
| 9432 | /* We use char because int might match the return type of a gcc2 |
| 9433 | builtin and then its argument prototype would still apply. */ |
| 9434 | char AuCreateFlow (); |
| 9435 | #ifdef F77_DUMMY_MAIN |
| 9436 | # ifdef __cplusplus |
| 9437 | extern "C" |
| 9438 | # endif |
| 9439 | int F77_DUMMY_MAIN() { return 1; } |
| 9440 | #endif |
| 9441 | int |
| 9442 | main () |
| 9443 | { |
| 9444 | AuCreateFlow (); |
| 9445 | ; |
| 9446 | return 0; |
| 9447 | } |
| 9448 | _ACEOF |
| 9449 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9451 | (eval $ac_link) 2>&5 |
| 9452 | ac_status=$? |
| 9453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9454 | (exit $ac_status); } && |
| 9455 | { ac_try='test -s conftest$ac_exeext' |
| 9456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9457 | (eval $ac_try) 2>&5 |
| 9458 | ac_status=$? |
| 9459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9460 | (exit $ac_status); }; }; then |
| 9461 | ac_cv_lib_audio_AuCreateFlow=yes |
| 9462 | else |
| 9463 | echo "$as_me: failed program was:" >&5 |
| 9464 | cat conftest.$ac_ext >&5 |
| 9465 | ac_cv_lib_audio_AuCreateFlow=no |
| 9466 | fi |
| 9467 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9468 | LIBS=$ac_check_lib_save_LIBS |
| 9469 | fi |
| 9470 | echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5 |
| 9471 | echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6 |
| 9472 | if test $ac_cv_lib_audio_AuCreateFlow = yes; then |
| 9473 | |
| 9474 | cat >>confdefs.h <<\_ACEOF |
| 9475 | #define HAVE_NAS 1 |
| 9476 | _ACEOF |
| 9477 | |
| 9478 | NASLIBS="-laudio -lXt \$(X_LIBS) \$(XLIB)" |
| 9479 | fi |
| 9480 | |
| 9481 | fi |
| 9482 | |
| 9483 | done |
| 9484 | |
| 9485 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9486 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 9487 | AUDIOIOLIBS="" |
| 9488 | |
| 9489 | |
| 9490 | for ac_header in libaudioio.h |
| 9491 | do |
| 9492 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9493 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9494 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9495 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9496 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9498 | fi |
| 9499 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9500 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9501 | else |
| 9502 | # Is the header compilable? |
| 9503 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9504 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9505 | cat >conftest.$ac_ext <<_ACEOF |
| 9506 | #line $LINENO "configure" |
| 9507 | #include "confdefs.h" |
| 9508 | $ac_includes_default |
| 9509 | #include <$ac_header> |
| 9510 | _ACEOF |
| 9511 | rm -f conftest.$ac_objext |
| 9512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9513 | (eval $ac_compile) 2>&5 |
| 9514 | ac_status=$? |
| 9515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9516 | (exit $ac_status); } && |
| 9517 | { ac_try='test -s conftest.$ac_objext' |
| 9518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9519 | (eval $ac_try) 2>&5 |
| 9520 | ac_status=$? |
| 9521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9522 | (exit $ac_status); }; }; then |
| 9523 | ac_header_compiler=yes |
| 9524 | else |
| 9525 | echo "$as_me: failed program was:" >&5 |
| 9526 | cat conftest.$ac_ext >&5 |
| 9527 | ac_header_compiler=no |
| 9528 | fi |
| 9529 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9530 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9531 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9532 | |
| 9533 | # Is the header present? |
| 9534 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9535 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9536 | cat >conftest.$ac_ext <<_ACEOF |
| 9537 | #line $LINENO "configure" |
| 9538 | #include "confdefs.h" |
| 9539 | #include <$ac_header> |
| 9540 | _ACEOF |
| 9541 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9542 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9543 | ac_status=$? |
| 9544 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9545 | rm -f conftest.er1 |
| 9546 | cat conftest.err >&5 |
| 9547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9548 | (exit $ac_status); } >/dev/null; then |
| 9549 | if test -s conftest.err; then |
| 9550 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9551 | else |
| 9552 | ac_cpp_err= |
| 9553 | fi |
| 9554 | else |
| 9555 | ac_cpp_err=yes |
| 9556 | fi |
| 9557 | if test -z "$ac_cpp_err"; then |
| 9558 | ac_header_preproc=yes |
| 9559 | else |
| 9560 | echo "$as_me: failed program was:" >&5 |
| 9561 | cat conftest.$ac_ext >&5 |
| 9562 | ac_header_preproc=no |
| 9563 | fi |
| 9564 | rm -f conftest.err conftest.$ac_ext |
| 9565 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9566 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9567 | |
| 9568 | # So? What about this header? |
| 9569 | case $ac_header_compiler:$ac_header_preproc in |
| 9570 | yes:no ) |
| 9571 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9572 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9573 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9574 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 9575 | no:yes ) |
| 9576 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9577 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9578 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9579 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9580 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9581 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 9582 | esac |
| 9583 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9584 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9585 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9587 | else |
| 9588 | eval "$as_ac_Header=$ac_header_preproc" |
| 9589 | fi |
| 9590 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9591 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9592 | |
| 9593 | fi |
| 9594 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9595 | cat >>confdefs.h <<_ACEOF |
| 9596 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9597 | _ACEOF |
| 9598 | echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5 |
| 9599 | echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6 |
| 9600 | if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then |
| 9601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9602 | else |
| 9603 | ac_check_lib_save_LIBS=$LIBS |
| 9604 | LIBS="-laudioio $LIBS" |
| 9605 | cat >conftest.$ac_ext <<_ACEOF |
| 9606 | #line $LINENO "configure" |
| 9607 | #include "confdefs.h" |
| 9608 | |
| 9609 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9610 | #ifdef __cplusplus |
| 9611 | extern "C" |
| 9612 | #endif |
| 9613 | /* We use char because int might match the return type of a gcc2 |
| 9614 | builtin and then its argument prototype would still apply. */ |
| 9615 | char AudioIOGetVersion (); |
| 9616 | #ifdef F77_DUMMY_MAIN |
| 9617 | # ifdef __cplusplus |
| 9618 | extern "C" |
| 9619 | # endif |
| 9620 | int F77_DUMMY_MAIN() { return 1; } |
| 9621 | #endif |
| 9622 | int |
| 9623 | main () |
| 9624 | { |
| 9625 | AudioIOGetVersion (); |
| 9626 | ; |
| 9627 | return 0; |
| 9628 | } |
| 9629 | _ACEOF |
| 9630 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9631 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9632 | (eval $ac_link) 2>&5 |
| 9633 | ac_status=$? |
| 9634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9635 | (exit $ac_status); } && |
| 9636 | { ac_try='test -s conftest$ac_exeext' |
| 9637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9638 | (eval $ac_try) 2>&5 |
| 9639 | ac_status=$? |
| 9640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9641 | (exit $ac_status); }; }; then |
| 9642 | ac_cv_lib_audioio_AudioIOGetVersion=yes |
| 9643 | else |
| 9644 | echo "$as_me: failed program was:" >&5 |
| 9645 | cat conftest.$ac_ext >&5 |
| 9646 | ac_cv_lib_audioio_AudioIOGetVersion=no |
| 9647 | fi |
| 9648 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9649 | LIBS=$ac_check_lib_save_LIBS |
| 9650 | fi |
| 9651 | echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5 |
| 9652 | echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6 |
| 9653 | if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then |
| 9654 | AUDIOIOLIBS="-laudioio" |
| 9655 | |
| 9656 | cat >>confdefs.h <<\_ACEOF |
| 9657 | #define HAVE_LIBAUDIOIO 1 |
| 9658 | _ACEOF |
| 9659 | |
| 9660 | fi |
| 9661 | |
| 9662 | fi |
| 9663 | |
| 9664 | done |
| 9665 | |
| 9666 | |
| 9667 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9668 | echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9669 | echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6 |
| 9670 | if test "${ac_cv_mmap64_works+set}" = set; then |
| 9671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9672 | else |
| 9673 | if test "$cross_compiling" = yes; then |
| 9674 | ac_cv_mmap64_works="no" |
| 9675 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9676 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9677 | #line $LINENO "configure" |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9678 | #include "confdefs.h" |
| 9679 | |
| 9680 | #define _FILE_OFFSET_BITS 64 |
| 9681 | #include <stdio.h> |
| 9682 | #include <unistd.h> |
| 9683 | #include <fcntl.h> |
| 9684 | #include <sys/mman.h> |
| 9685 | #include <errno.h> |
| 9686 | |
| 9687 | int main(int argc,char **argv) { |
| 9688 | int fd = open("conftest.map",O_CREAT|O_RDWR,0600); |
| 9689 | if (fd == -1) exit(1); |
| 9690 | |
| 9691 | unlink("conftest.map"); |
| 9692 | |
| 9693 | write(fd,"test",4); |
| 9694 | |
| 9695 | if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) && |
| 9696 | (errno == EINVAL) |
| 9697 | ) { |
| 9698 | exit(1); |
| 9699 | } |
| 9700 | close(fd); |
| 9701 | fprintf(stderr,"success!\n"); |
| 9702 | exit(0); |
| 9703 | } |
| 9704 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9705 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9706 | _ACEOF |
| 9707 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9709 | (eval $ac_link) 2>&5 |
| 9710 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9712 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9714 | (eval $ac_try) 2>&5 |
| 9715 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9717 | (exit $ac_status); }; }; then |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9718 | ac_cv_mmap64_works="yes" |
| 9719 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9720 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9721 | echo "$as_me: failed program was:" >&5 |
| 9722 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9723 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9724 | ac_cv_mmap64_works="no" |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9725 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9726 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9727 | fi |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9728 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9729 | echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9730 | echo "${ECHO_T}$ac_cv_mmap64_works" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9731 | |
| 9732 | if test "$ac_cv_mmap64_works" = "yes" |
| 9733 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9734 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9735 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9736 | #define _FILE_OFFSET_BITS 64 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9737 | _ACEOF |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9738 | |
| 9739 | fi |
| 9740 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9741 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9742 | if test "x${GCC}" = "xyes" |
| 9743 | then |
| 9744 | CFLAGS="$CFLAGS -Wall" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9745 | echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9746 | echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6 |
| 9747 | if test "${ac_cv_c_gcc_strength_bug+set}" = set; then |
| 9748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9749 | else |
| 9750 | if test "$cross_compiling" = yes; then |
| 9751 | ac_cv_c_gcc_strength_bug="yes" |
| 9752 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9753 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9754 | #line $LINENO "configure" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9755 | #include "confdefs.h" |
| 9756 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 9757 | int L[4] = {0,1,2,3}; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9758 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 9759 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9760 | unsigned int B = 3; |
| 9761 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 9762 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 9763 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 9764 | L[i] = 4; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9765 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 9766 | exit( Array[1] != -2 || L[2] != 3); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9767 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9768 | _ACEOF |
| 9769 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9771 | (eval $ac_link) 2>&5 |
| 9772 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9774 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9776 | (eval $ac_try) 2>&5 |
| 9777 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9779 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9780 | ac_cv_c_gcc_strength_bug="no" |
| 9781 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9782 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9783 | echo "$as_me: failed program was:" >&5 |
| 9784 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9785 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9786 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9787 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9788 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9789 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9790 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9791 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9792 | echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9793 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 9794 | then |
| 9795 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 9796 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 9797 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9798 | echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9799 | echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6 |
| 9800 | if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then |
| 9801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 9802 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 9803 | ac_wine_try_cflags_saved=$CFLAGS |
| 9804 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" |
| 9805 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9806 | #line $LINENO "configure" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 9807 | #include "confdefs.h" |
| 9808 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9809 | #ifdef F77_DUMMY_MAIN |
| 9810 | # ifdef __cplusplus |
| 9811 | extern "C" |
| 9812 | # endif |
| 9813 | int F77_DUMMY_MAIN() { return 1; } |
| 9814 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9815 | int |
| 9816 | main () |
| 9817 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 9818 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9819 | ; |
| 9820 | return 0; |
| 9821 | } |
| 9822 | _ACEOF |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 9823 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9825 | (eval $ac_link) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9826 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9828 | (exit $ac_status); } && |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 9829 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9831 | (eval $ac_try) 2>&5 |
| 9832 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9834 | (exit $ac_status); }; }; then |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 9835 | ac_cv_c_gcc_stack_boundary="yes" |
| 9836 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9837 | echo "$as_me: failed program was:" >&5 |
| 9838 | cat conftest.$ac_ext >&5 |
| 9839 | ac_cv_c_gcc_stack_boundary="no" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 9840 | fi |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 9841 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9842 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9843 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9844 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9845 | echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 9846 | if test "$ac_cv_c_gcc_stack_boundary" = "yes" |
| 9847 | then |
| 9848 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" |
| 9849 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9850 | fi |
| 9851 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9852 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9853 | echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5 |
| 9854 | echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6 |
| 9855 | if test "${ac_cv_asm_func_def+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 9857 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9858 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9859 | #line $LINENO "configure" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 9860 | #include "confdefs.h" |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9861 | static void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); } |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 9862 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9863 | #ifdef F77_DUMMY_MAIN |
| 9864 | # ifdef __cplusplus |
| 9865 | extern "C" |
| 9866 | # endif |
| 9867 | int F77_DUMMY_MAIN() { return 1; } |
| 9868 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9869 | int |
| 9870 | main () |
| 9871 | { |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 9872 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9873 | ; |
| 9874 | return 0; |
| 9875 | } |
| 9876 | _ACEOF |
| 9877 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9879 | (eval $ac_link) 2>&5 |
| 9880 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9882 | (exit $ac_status); } && |
| 9883 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9885 | (eval $ac_try) 2>&5 |
| 9886 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9888 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9889 | ac_cv_asm_func_def=".def" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 9890 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9891 | echo "$as_me: failed program was:" >&5 |
| 9892 | cat conftest.$ac_ext >&5 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 9893 | cat >conftest.$ac_ext <<_ACEOF |
| 9894 | #line $LINENO "configure" |
| 9895 | #include "confdefs.h" |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9896 | static void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); } |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 9897 | |
| 9898 | #ifdef F77_DUMMY_MAIN |
| 9899 | # ifdef __cplusplus |
| 9900 | extern "C" |
| 9901 | # endif |
| 9902 | int F77_DUMMY_MAIN() { return 1; } |
| 9903 | #endif |
| 9904 | int |
| 9905 | main () |
| 9906 | { |
| 9907 | |
| 9908 | ; |
| 9909 | return 0; |
| 9910 | } |
| 9911 | _ACEOF |
| 9912 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9913 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9914 | (eval $ac_link) 2>&5 |
| 9915 | ac_status=$? |
| 9916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9917 | (exit $ac_status); } && |
| 9918 | { ac_try='test -s conftest$ac_exeext' |
| 9919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9920 | (eval $ac_try) 2>&5 |
| 9921 | ac_status=$? |
| 9922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9923 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9924 | ac_cv_asm_func_def=".type @function" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 9925 | else |
| 9926 | echo "$as_me: failed program was:" >&5 |
| 9927 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9928 | cat >conftest.$ac_ext <<_ACEOF |
| 9929 | #line $LINENO "configure" |
| 9930 | #include "confdefs.h" |
| 9931 | static void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); } |
| 9932 | |
| 9933 | #ifdef F77_DUMMY_MAIN |
| 9934 | # ifdef __cplusplus |
| 9935 | extern "C" |
| 9936 | # endif |
| 9937 | int F77_DUMMY_MAIN() { return 1; } |
| 9938 | #endif |
| 9939 | int |
| 9940 | main () |
| 9941 | { |
| 9942 | |
| 9943 | ; |
| 9944 | return 0; |
| 9945 | } |
| 9946 | _ACEOF |
| 9947 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9949 | (eval $ac_link) 2>&5 |
| 9950 | ac_status=$? |
| 9951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9952 | (exit $ac_status); } && |
| 9953 | { ac_try='test -s conftest$ac_exeext' |
| 9954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9955 | (eval $ac_try) 2>&5 |
| 9956 | ac_status=$? |
| 9957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9958 | (exit $ac_status); }; }; then |
| 9959 | ac_cv_asm_func_def=".type 2" |
| 9960 | else |
| 9961 | echo "$as_me: failed program was:" >&5 |
| 9962 | cat conftest.$ac_ext >&5 |
| 9963 | ac_cv_asm_func_def="unknown" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 9964 | fi |
| 9965 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 9966 | fi |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9967 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9968 | fi |
| 9969 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9970 | fi |
| 9971 | echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5 |
| 9972 | echo "${ECHO_T}$ac_cv_asm_func_def" >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 9973 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9974 | |
| 9975 | |
| 9976 | case "$ac_cv_asm_func_def" in |
| 9977 | ".def") |
| 9978 | cat >>confdefs.h <<\_ACEOF |
| 9979 | #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 9980 | _ACEOF |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9981 | ;; |
| 9982 | ".type @function") |
| 9983 | cat >>confdefs.h <<\_ACEOF |
| 9984 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function" |
| 9985 | _ACEOF |
| 9986 | ;; |
| 9987 | ".type 2") |
| 9988 | cat >>confdefs.h <<\_ACEOF |
| 9989 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2" |
| 9990 | _ACEOF |
| 9991 | ;; |
| 9992 | *) |
| 9993 | cat >>confdefs.h <<\_ACEOF |
| 9994 | #define __ASM_FUNC(name) "" |
| 9995 | _ACEOF |
| 9996 | ;; |
| 9997 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 9998 | |
| 9999 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10000 | echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10001 | echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6 |
| 10002 | if test "${ac_cv_c_extern_prefix+set}" = set; then |
| 10003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 10004 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10005 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10006 | #line $LINENO "configure" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 10007 | #include "confdefs.h" |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10008 | static void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); } |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 10009 | extern int ac_test; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10010 | #ifdef F77_DUMMY_MAIN |
| 10011 | # ifdef __cplusplus |
| 10012 | extern "C" |
| 10013 | # endif |
| 10014 | int F77_DUMMY_MAIN() { return 1; } |
| 10015 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10016 | int |
| 10017 | main () |
| 10018 | { |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 10019 | if (ac_test) return 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10020 | ; |
| 10021 | return 0; |
| 10022 | } |
| 10023 | _ACEOF |
| 10024 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10026 | (eval $ac_link) 2>&5 |
| 10027 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10029 | (exit $ac_status); } && |
| 10030 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10032 | (eval $ac_try) 2>&5 |
| 10033 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10035 | (exit $ac_status); }; }; then |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 10036 | ac_cv_c_extern_prefix="yes" |
| 10037 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10038 | echo "$as_me: failed program was:" >&5 |
| 10039 | cat conftest.$ac_ext >&5 |
| 10040 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 10041 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10042 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 10043 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10044 | echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10045 | echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10046 | |
| 10047 | |
| 10048 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 10049 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 10050 | then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10051 | cat >>confdefs.h <<\_ACEOF |
| 10052 | #define __ASM_NAME(name) "_" name |
| 10053 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10054 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10055 | else |
| 10056 | cat >>confdefs.h <<\_ACEOF |
| 10057 | #define __ASM_NAME(name) name |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10058 | _ACEOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 10059 | |
| 10060 | fi |
| 10061 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10062 | |
| 10063 | echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10064 | echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6 |
| 10065 | if test "${ac_cv_c_stdcall_decoration+set}" = set; then |
| 10066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 10067 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10068 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10069 | #line $LINENO "configure" |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 10070 | #include "confdefs.h" |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10071 | static void ac_asm(void) { asm("\t.globl _ac_test@0\n_ac_test@0:\n\t.globl ac_test@0\nac_test@0:"); } |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 10072 | extern void __attribute__((__stdcall__)) ac_test(void); |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10073 | #ifdef F77_DUMMY_MAIN |
| 10074 | # ifdef __cplusplus |
| 10075 | extern "C" |
| 10076 | # endif |
| 10077 | int F77_DUMMY_MAIN() { return 1; } |
| 10078 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10079 | int |
| 10080 | main () |
| 10081 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10082 | ac_test() |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10083 | ; |
| 10084 | return 0; |
| 10085 | } |
| 10086 | _ACEOF |
| 10087 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10089 | (eval $ac_link) 2>&5 |
| 10090 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10092 | (exit $ac_status); } && |
| 10093 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10095 | (eval $ac_try) 2>&5 |
| 10096 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10098 | (exit $ac_status); }; }; then |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 10099 | ac_cv_c_stdcall_decoration="yes" |
| 10100 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10101 | echo "$as_me: failed program was:" >&5 |
| 10102 | cat conftest.$ac_ext >&5 |
| 10103 | ac_cv_c_stdcall_decoration="no" |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 10104 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10105 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 10106 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10107 | echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10108 | echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6 |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 10109 | if test "$ac_cv_c_stdcall_decoration" = "yes" |
| 10110 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10111 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10112 | cat >>confdefs.h <<\_ACEOF |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 10113 | #define NEED_STDCALL_DECORATION 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10114 | _ACEOF |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 10115 | |
| 10116 | fi |
| 10117 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10118 | |
| 10119 | echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10120 | echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6 |
| 10121 | if test "${ac_cv_c_asm_string+set}" = set; then |
| 10122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10123 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10124 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10125 | #line $LINENO "configure" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10126 | #include "confdefs.h" |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10127 | static void ac_asm(void) { asm(".string \"test\""); } |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10128 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10129 | #ifdef F77_DUMMY_MAIN |
| 10130 | # ifdef __cplusplus |
| 10131 | extern "C" |
| 10132 | # endif |
| 10133 | int F77_DUMMY_MAIN() { return 1; } |
| 10134 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10135 | int |
| 10136 | main () |
| 10137 | { |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10138 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10139 | ; |
| 10140 | return 0; |
| 10141 | } |
| 10142 | _ACEOF |
| 10143 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10145 | (eval $ac_link) 2>&5 |
| 10146 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10148 | (exit $ac_status); } && |
| 10149 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10151 | (eval $ac_try) 2>&5 |
| 10152 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10154 | (exit $ac_status); }; }; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10155 | ac_cv_c_asm_string="yes" |
| 10156 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10157 | echo "$as_me: failed program was:" >&5 |
| 10158 | cat conftest.$ac_ext >&5 |
| 10159 | ac_cv_c_asm_string="no" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10160 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10161 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10162 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10163 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10164 | echo "${ECHO_T}$ac_cv_c_asm_string" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10165 | if test "$ac_cv_c_asm_string" = "yes" |
| 10166 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10167 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10168 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10169 | #define HAVE_ASM_STRING 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10170 | _ACEOF |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10171 | |
| 10172 | fi |
| 10173 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10174 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame^] | 10175 | DLLEXT="" |
| 10176 | |
| 10177 | DLLFLAGS="" |
| 10178 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 10179 | DLLIBS="" |
| 10180 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame^] | 10181 | LDDLLFLAGS="" |
| 10182 | |
| 10183 | LDSHARED="" |
| 10184 | |
| 10185 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 10186 | case $host_os in |
| 10187 | cygwin*|mingw32*) |
| 10188 | if test -n "$ac_tool_prefix"; then |
| 10189 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 10190 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 10191 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10193 | if test "${ac_cv_prog_DLLWRAP+set}" = set; then |
| 10194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10195 | else |
| 10196 | if test -n "$DLLWRAP"; then |
| 10197 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 10198 | else |
| 10199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10200 | for as_dir in $PATH |
| 10201 | do |
| 10202 | IFS=$as_save_IFS |
| 10203 | test -z "$as_dir" && as_dir=. |
| 10204 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10205 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 10206 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 10207 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10208 | break 2 |
| 10209 | fi |
| 10210 | done |
| 10211 | done |
| 10212 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 10213 | fi |
| 10214 | fi |
| 10215 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 10216 | if test -n "$DLLWRAP"; then |
| 10217 | echo "$as_me:$LINENO: result: $DLLWRAP" >&5 |
| 10218 | echo "${ECHO_T}$DLLWRAP" >&6 |
| 10219 | else |
| 10220 | echo "$as_me:$LINENO: result: no" >&5 |
| 10221 | echo "${ECHO_T}no" >&6 |
| 10222 | fi |
| 10223 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 10224 | fi |
| 10225 | if test -z "$ac_cv_prog_DLLWRAP"; then |
| 10226 | ac_ct_DLLWRAP=$DLLWRAP |
| 10227 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 10228 | set dummy dllwrap; ac_word=$2 |
| 10229 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10230 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10231 | if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then |
| 10232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10233 | else |
| 10234 | if test -n "$ac_ct_DLLWRAP"; then |
| 10235 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 10236 | else |
| 10237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10238 | for as_dir in $PATH |
| 10239 | do |
| 10240 | IFS=$as_save_IFS |
| 10241 | test -z "$as_dir" && as_dir=. |
| 10242 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10243 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10244 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
| 10245 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10246 | break 2 |
| 10247 | fi |
| 10248 | done |
| 10249 | done |
| 10250 | |
| 10251 | test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false" |
| 10252 | fi |
| 10253 | fi |
| 10254 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 10255 | if test -n "$ac_ct_DLLWRAP"; then |
| 10256 | echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5 |
| 10257 | echo "${ECHO_T}$ac_ct_DLLWRAP" >&6 |
| 10258 | else |
| 10259 | echo "$as_me:$LINENO: result: no" >&5 |
| 10260 | echo "${ECHO_T}no" >&6 |
| 10261 | fi |
| 10262 | |
| 10263 | DLLWRAP=$ac_ct_DLLWRAP |
| 10264 | else |
| 10265 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 10266 | fi |
| 10267 | |
| 10268 | if test "$DLLWRAP" = "false"; then |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 10269 | LIBEXT="a" |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 10270 | else |
| 10271 | LIBEXT="dll" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 10272 | fi |
| 10273 | ;; |
| 10274 | *) |
| 10275 | |
| 10276 | for ac_header in dlfcn.h |
| 10277 | do |
| 10278 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10279 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10280 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10281 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10282 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10284 | fi |
| 10285 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10286 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10287 | else |
| 10288 | # Is the header compilable? |
| 10289 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10290 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10291 | cat >conftest.$ac_ext <<_ACEOF |
| 10292 | #line $LINENO "configure" |
| 10293 | #include "confdefs.h" |
| 10294 | $ac_includes_default |
| 10295 | #include <$ac_header> |
| 10296 | _ACEOF |
| 10297 | rm -f conftest.$ac_objext |
| 10298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10299 | (eval $ac_compile) 2>&5 |
| 10300 | ac_status=$? |
| 10301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10302 | (exit $ac_status); } && |
| 10303 | { ac_try='test -s conftest.$ac_objext' |
| 10304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10305 | (eval $ac_try) 2>&5 |
| 10306 | ac_status=$? |
| 10307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10308 | (exit $ac_status); }; }; then |
| 10309 | ac_header_compiler=yes |
| 10310 | else |
| 10311 | echo "$as_me: failed program was:" >&5 |
| 10312 | cat conftest.$ac_ext >&5 |
| 10313 | ac_header_compiler=no |
| 10314 | fi |
| 10315 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10316 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10317 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10318 | |
| 10319 | # Is the header present? |
| 10320 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10321 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10322 | cat >conftest.$ac_ext <<_ACEOF |
| 10323 | #line $LINENO "configure" |
| 10324 | #include "confdefs.h" |
| 10325 | #include <$ac_header> |
| 10326 | _ACEOF |
| 10327 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10328 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10329 | ac_status=$? |
| 10330 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10331 | rm -f conftest.er1 |
| 10332 | cat conftest.err >&5 |
| 10333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10334 | (exit $ac_status); } >/dev/null; then |
| 10335 | if test -s conftest.err; then |
| 10336 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10337 | else |
| 10338 | ac_cpp_err= |
| 10339 | fi |
| 10340 | else |
| 10341 | ac_cpp_err=yes |
| 10342 | fi |
| 10343 | if test -z "$ac_cpp_err"; then |
| 10344 | ac_header_preproc=yes |
| 10345 | else |
| 10346 | echo "$as_me: failed program was:" >&5 |
| 10347 | cat conftest.$ac_ext >&5 |
| 10348 | ac_header_preproc=no |
| 10349 | fi |
| 10350 | rm -f conftest.err conftest.$ac_ext |
| 10351 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10352 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10353 | |
| 10354 | # So? What about this header? |
| 10355 | case $ac_header_compiler:$ac_header_preproc in |
| 10356 | yes:no ) |
| 10357 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10358 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10359 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10360 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 10361 | no:yes ) |
| 10362 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10363 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10364 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10365 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10366 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10367 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 10368 | esac |
| 10369 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10370 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10371 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10373 | else |
| 10374 | eval "$as_ac_Header=$ac_header_preproc" |
| 10375 | fi |
| 10376 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10377 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10378 | |
| 10379 | fi |
| 10380 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10381 | cat >>confdefs.h <<_ACEOF |
| 10382 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10383 | _ACEOF |
| 10384 | |
| 10385 | for ac_func in dlopen |
| 10386 | do |
| 10387 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10388 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10389 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10390 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10392 | else |
| 10393 | cat >conftest.$ac_ext <<_ACEOF |
| 10394 | #line $LINENO "configure" |
| 10395 | #include "confdefs.h" |
| 10396 | /* System header to define __stub macros and hopefully few prototypes, |
| 10397 | which can conflict with char $ac_func (); below. */ |
| 10398 | #include <assert.h> |
| 10399 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10400 | #ifdef __cplusplus |
| 10401 | extern "C" |
| 10402 | #endif |
| 10403 | /* We use char because int might match the return type of a gcc2 |
| 10404 | builtin and then its argument prototype would still apply. */ |
| 10405 | char $ac_func (); |
| 10406 | char (*f) (); |
| 10407 | |
| 10408 | #ifdef F77_DUMMY_MAIN |
| 10409 | # ifdef __cplusplus |
| 10410 | extern "C" |
| 10411 | # endif |
| 10412 | int F77_DUMMY_MAIN() { return 1; } |
| 10413 | #endif |
| 10414 | int |
| 10415 | main () |
| 10416 | { |
| 10417 | /* The GNU C library defines this for functions which it implements |
| 10418 | to always fail with ENOSYS. Some functions are actually named |
| 10419 | something starting with __ and the normal name is an alias. */ |
| 10420 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10421 | choke me |
| 10422 | #else |
| 10423 | f = $ac_func; |
| 10424 | #endif |
| 10425 | |
| 10426 | ; |
| 10427 | return 0; |
| 10428 | } |
| 10429 | _ACEOF |
| 10430 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10431 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10432 | (eval $ac_link) 2>&5 |
| 10433 | ac_status=$? |
| 10434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10435 | (exit $ac_status); } && |
| 10436 | { ac_try='test -s conftest$ac_exeext' |
| 10437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10438 | (eval $ac_try) 2>&5 |
| 10439 | ac_status=$? |
| 10440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10441 | (exit $ac_status); }; }; then |
| 10442 | eval "$as_ac_var=yes" |
| 10443 | else |
| 10444 | echo "$as_me: failed program was:" >&5 |
| 10445 | cat conftest.$ac_ext >&5 |
| 10446 | eval "$as_ac_var=no" |
| 10447 | fi |
| 10448 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10449 | fi |
| 10450 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10451 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10452 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10453 | cat >>confdefs.h <<_ACEOF |
| 10454 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10455 | _ACEOF |
| 10456 | |
| 10457 | else |
| 10458 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10459 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 10460 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10462 | else |
| 10463 | ac_check_lib_save_LIBS=$LIBS |
| 10464 | LIBS="-ldl $LIBS" |
| 10465 | cat >conftest.$ac_ext <<_ACEOF |
| 10466 | #line $LINENO "configure" |
| 10467 | #include "confdefs.h" |
| 10468 | |
| 10469 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10470 | #ifdef __cplusplus |
| 10471 | extern "C" |
| 10472 | #endif |
| 10473 | /* We use char because int might match the return type of a gcc2 |
| 10474 | builtin and then its argument prototype would still apply. */ |
| 10475 | char dlopen (); |
| 10476 | #ifdef F77_DUMMY_MAIN |
| 10477 | # ifdef __cplusplus |
| 10478 | extern "C" |
| 10479 | # endif |
| 10480 | int F77_DUMMY_MAIN() { return 1; } |
| 10481 | #endif |
| 10482 | int |
| 10483 | main () |
| 10484 | { |
| 10485 | dlopen (); |
| 10486 | ; |
| 10487 | return 0; |
| 10488 | } |
| 10489 | _ACEOF |
| 10490 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10491 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10492 | (eval $ac_link) 2>&5 |
| 10493 | ac_status=$? |
| 10494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10495 | (exit $ac_status); } && |
| 10496 | { ac_try='test -s conftest$ac_exeext' |
| 10497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10498 | (eval $ac_try) 2>&5 |
| 10499 | ac_status=$? |
| 10500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10501 | (exit $ac_status); }; }; then |
| 10502 | ac_cv_lib_dl_dlopen=yes |
| 10503 | else |
| 10504 | echo "$as_me: failed program was:" >&5 |
| 10505 | cat conftest.$ac_ext >&5 |
| 10506 | ac_cv_lib_dl_dlopen=no |
| 10507 | fi |
| 10508 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10509 | LIBS=$ac_check_lib_save_LIBS |
| 10510 | fi |
| 10511 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10512 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 10513 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10514 | |
| 10515 | cat >>confdefs.h <<\_ACEOF |
| 10516 | #define HAVE_DLOPEN 1 |
| 10517 | _ACEOF |
| 10518 | |
| 10519 | DLLIBS="-ldl" |
| 10520 | else |
| 10521 | LIBEXT="a" |
| 10522 | fi |
| 10523 | |
| 10524 | fi |
| 10525 | done |
| 10526 | |
| 10527 | else |
| 10528 | LIBEXT="a" |
| 10529 | fi |
| 10530 | |
| 10531 | done |
| 10532 | |
| 10533 | |
| 10534 | if test "$LIBEXT" = "so" |
| 10535 | then |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame^] | 10536 | DLLFLAGS="-fPIC" |
| 10537 | DLLEXT=".so" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 10538 | echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10539 | echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6 |
| 10540 | if test "${ac_cv_c_dll_gnuelf+set}" = set; then |
| 10541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 10542 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10543 | ac_wine_try_cflags_saved=$CFLAGS |
| 10544 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic" |
| 10545 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10546 | #line $LINENO "configure" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 10547 | #include "confdefs.h" |
| 10548 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10549 | #ifdef F77_DUMMY_MAIN |
| 10550 | # ifdef __cplusplus |
| 10551 | extern "C" |
| 10552 | # endif |
| 10553 | int F77_DUMMY_MAIN() { return 1; } |
| 10554 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10555 | int |
| 10556 | main () |
| 10557 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10558 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10559 | ; |
| 10560 | return 0; |
| 10561 | } |
| 10562 | _ACEOF |
| 10563 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10564 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10565 | (eval $ac_link) 2>&5 |
| 10566 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10568 | (exit $ac_status); } && |
| 10569 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10571 | (eval $ac_try) 2>&5 |
| 10572 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10574 | (exit $ac_status); }; }; then |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 10575 | ac_cv_c_dll_gnuelf="yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 10576 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10577 | echo "$as_me: failed program was:" >&5 |
| 10578 | cat conftest.$ac_ext >&5 |
| 10579 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 10580 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10581 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10582 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10583 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10584 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10585 | echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 10586 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
| 10587 | then |
| 10588 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
| 10589 | LDDLLFLAGS="-Wl,-Bsymbolic" |
| 10590 | else |
| 10591 | echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10592 | echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6 |
| 10593 | if test "${ac_cv_c_dll_unixware+set}" = set; then |
| 10594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 10595 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10596 | ac_wine_try_cflags_saved=$CFLAGS |
| 10597 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
| 10598 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10599 | #line $LINENO "configure" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 10600 | #include "confdefs.h" |
| 10601 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10602 | #ifdef F77_DUMMY_MAIN |
| 10603 | # ifdef __cplusplus |
| 10604 | extern "C" |
| 10605 | # endif |
| 10606 | int F77_DUMMY_MAIN() { return 1; } |
| 10607 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10608 | int |
| 10609 | main () |
| 10610 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10611 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10612 | ; |
| 10613 | return 0; |
| 10614 | } |
| 10615 | _ACEOF |
| 10616 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10618 | (eval $ac_link) 2>&5 |
| 10619 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10621 | (exit $ac_status); } && |
| 10622 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10624 | (eval $ac_try) 2>&5 |
| 10625 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10627 | (exit $ac_status); }; }; then |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 10628 | ac_cv_c_dll_unixware="yes" |
| 10629 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10630 | echo "$as_me: failed program was:" >&5 |
| 10631 | cat conftest.$ac_ext >&5 |
| 10632 | ac_cv_c_dll_unixware="no" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 10633 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10634 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10635 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10636 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10637 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10638 | echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 10639 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 10640 | then |
| 10641 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
| 10642 | LDDLLFLAGS="-Wl,-B,symbolic" |
| 10643 | fi |
| 10644 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 10645 | fi |
| 10646 | ;; |
| 10647 | esac |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 10648 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 10649 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10650 | { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10651 | It is currently not possible to build Wine without shared library |
| 10652 | (.so) support to allow transparent switch between .so and .dll files. |
| 10653 | If you are using Linux, you will need a newer binutils. |
| 10654 | " >&5 |
| 10655 | echo "$as_me: error: could not find a way to build shared libraries. |
| 10656 | It is currently not possible to build Wine without shared library |
| 10657 | (.so) support to allow transparent switch between .so and .dll files. |
| 10658 | If you are using Linux, you will need a newer binutils. |
| 10659 | " >&2;} |
| 10660 | { (exit 1); exit 1; }; } |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 10661 | fi |
| 10662 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 10663 | case $build_os in |
| 10664 | cygwin*|mingw32*) |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame^] | 10665 | LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\"" |
| 10666 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 10667 | *) |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame^] | 10668 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\"" |
| 10669 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 10670 | esac |
| 10671 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame^] | 10672 | CRTLIBS="" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10673 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame^] | 10674 | case $host_os in |
| 10675 | mingw32*) |
| 10676 | CRTLIBS="-lmsvcrt" ;; |
| 10677 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10678 | |
| 10679 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10680 | if test "$LIBEXT" = "so" |
| 10681 | then |
| 10682 | # Extract the first word of "ldd", so it can be a program name with args. |
| 10683 | set dummy ldd; ac_word=$2 |
| 10684 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10685 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10686 | if test "${ac_cv_path_LDD+set}" = set; then |
| 10687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10688 | else |
| 10689 | case $LDD in |
| 10690 | [\\/]* | ?:[\\/]*) |
| 10691 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. |
| 10692 | ;; |
| 10693 | *) |
| 10694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10695 | for as_dir in /sbin:/usr/sbin:$PATH |
| 10696 | do |
| 10697 | IFS=$as_save_IFS |
| 10698 | test -z "$as_dir" && as_dir=. |
| 10699 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10700 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10701 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" |
| 10702 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10703 | break 2 |
| 10704 | fi |
| 10705 | done |
| 10706 | done |
| 10707 | |
| 10708 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" |
| 10709 | ;; |
| 10710 | esac |
| 10711 | fi |
| 10712 | LDD=$ac_cv_path_LDD |
| 10713 | |
| 10714 | if test -n "$LDD"; then |
| 10715 | echo "$as_me:$LINENO: result: $LDD" >&5 |
| 10716 | echo "${ECHO_T}$LDD" >&6 |
| 10717 | else |
| 10718 | echo "$as_me:$LINENO: result: no" >&5 |
| 10719 | echo "${ECHO_T}no" >&6 |
| 10720 | fi |
| 10721 | |
| 10722 | |
| 10723 | echo "$as_me:$LINENO: checking for -lX11 soname" >&5 |
| 10724 | echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6 |
| 10725 | if test "${ac_cv_lib_soname_X11+set}" = set; then |
| 10726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10727 | else |
| 10728 | ac_get_soname_save_LIBS=$LIBS |
| 10729 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 10730 | cat >conftest.$ac_ext <<_ACEOF |
| 10731 | #line $LINENO "configure" |
| 10732 | #include "confdefs.h" |
| 10733 | |
| 10734 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10735 | #ifdef __cplusplus |
| 10736 | extern "C" |
| 10737 | #endif |
| 10738 | /* We use char because int might match the return type of a gcc2 |
| 10739 | builtin and then its argument prototype would still apply. */ |
| 10740 | char XCreateWindow (); |
| 10741 | #ifdef F77_DUMMY_MAIN |
| 10742 | # ifdef __cplusplus |
| 10743 | extern "C" |
| 10744 | # endif |
| 10745 | int F77_DUMMY_MAIN() { return 1; } |
| 10746 | #endif |
| 10747 | int |
| 10748 | main () |
| 10749 | { |
| 10750 | XCreateWindow (); |
| 10751 | ; |
| 10752 | return 0; |
| 10753 | } |
| 10754 | _ACEOF |
| 10755 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10757 | (eval $ac_link) 2>&5 |
| 10758 | ac_status=$? |
| 10759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10760 | (exit $ac_status); } && |
| 10761 | { ac_try='test -s conftest$ac_exeext' |
| 10762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10763 | (eval $ac_try) 2>&5 |
| 10764 | ac_status=$? |
| 10765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10766 | (exit $ac_status); }; }; then |
| 10767 | ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 10768 | if test "x$ac_cv_lib_soname_X11" = "x" |
| 10769 | then |
| 10770 | ac_cv_lib_soname_X11="libX11.so" |
| 10771 | fi |
| 10772 | else |
| 10773 | echo "$as_me: failed program was:" >&5 |
| 10774 | cat conftest.$ac_ext >&5 |
| 10775 | ac_cv_lib_soname_X11="libX11.so" |
| 10776 | fi |
| 10777 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10778 | LIBS=$ac_get_soname_save_LIBS |
| 10779 | fi |
| 10780 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5 |
| 10781 | echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6 |
| 10782 | if test "x$ac_cv_lib_soname_X11" != xNONE |
| 10783 | then |
| 10784 | cat >>confdefs.h <<_ACEOF |
| 10785 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" |
| 10786 | _ACEOF |
| 10787 | fi |
| 10788 | |
| 10789 | echo "$as_me:$LINENO: checking for -lXext soname" >&5 |
| 10790 | echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6 |
| 10791 | if test "${ac_cv_lib_soname_Xext+set}" = set; then |
| 10792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10793 | else |
| 10794 | ac_get_soname_save_LIBS=$LIBS |
| 10795 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 10796 | cat >conftest.$ac_ext <<_ACEOF |
| 10797 | #line $LINENO "configure" |
| 10798 | #include "confdefs.h" |
| 10799 | |
| 10800 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10801 | #ifdef __cplusplus |
| 10802 | extern "C" |
| 10803 | #endif |
| 10804 | /* We use char because int might match the return type of a gcc2 |
| 10805 | builtin and then its argument prototype would still apply. */ |
| 10806 | char XextCreateExtension (); |
| 10807 | #ifdef F77_DUMMY_MAIN |
| 10808 | # ifdef __cplusplus |
| 10809 | extern "C" |
| 10810 | # endif |
| 10811 | int F77_DUMMY_MAIN() { return 1; } |
| 10812 | #endif |
| 10813 | int |
| 10814 | main () |
| 10815 | { |
| 10816 | XextCreateExtension (); |
| 10817 | ; |
| 10818 | return 0; |
| 10819 | } |
| 10820 | _ACEOF |
| 10821 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10823 | (eval $ac_link) 2>&5 |
| 10824 | ac_status=$? |
| 10825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10826 | (exit $ac_status); } && |
| 10827 | { ac_try='test -s conftest$ac_exeext' |
| 10828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10829 | (eval $ac_try) 2>&5 |
| 10830 | ac_status=$? |
| 10831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10832 | (exit $ac_status); }; }; then |
| 10833 | ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 10834 | if test "x$ac_cv_lib_soname_Xext" = "x" |
| 10835 | then |
| 10836 | ac_cv_lib_soname_Xext="libXext.so" |
| 10837 | fi |
| 10838 | else |
| 10839 | echo "$as_me: failed program was:" >&5 |
| 10840 | cat conftest.$ac_ext >&5 |
| 10841 | ac_cv_lib_soname_Xext="libXext.so" |
| 10842 | fi |
| 10843 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10844 | LIBS=$ac_get_soname_save_LIBS |
| 10845 | fi |
| 10846 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5 |
| 10847 | echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6 |
| 10848 | if test "x$ac_cv_lib_soname_Xext" != xNONE |
| 10849 | then |
| 10850 | cat >>confdefs.h <<_ACEOF |
| 10851 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" |
| 10852 | _ACEOF |
| 10853 | fi |
| 10854 | |
| 10855 | echo "$as_me:$LINENO: checking for -lXrender soname" >&5 |
| 10856 | echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6 |
| 10857 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then |
| 10858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10859 | else |
| 10860 | ac_get_soname_save_LIBS=$LIBS |
| 10861 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 10862 | cat >conftest.$ac_ext <<_ACEOF |
| 10863 | #line $LINENO "configure" |
| 10864 | #include "confdefs.h" |
| 10865 | |
| 10866 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10867 | #ifdef __cplusplus |
| 10868 | extern "C" |
| 10869 | #endif |
| 10870 | /* We use char because int might match the return type of a gcc2 |
| 10871 | builtin and then its argument prototype would still apply. */ |
| 10872 | char XRenderQueryExtension (); |
| 10873 | #ifdef F77_DUMMY_MAIN |
| 10874 | # ifdef __cplusplus |
| 10875 | extern "C" |
| 10876 | # endif |
| 10877 | int F77_DUMMY_MAIN() { return 1; } |
| 10878 | #endif |
| 10879 | int |
| 10880 | main () |
| 10881 | { |
| 10882 | XRenderQueryExtension (); |
| 10883 | ; |
| 10884 | return 0; |
| 10885 | } |
| 10886 | _ACEOF |
| 10887 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10889 | (eval $ac_link) 2>&5 |
| 10890 | ac_status=$? |
| 10891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10892 | (exit $ac_status); } && |
| 10893 | { ac_try='test -s conftest$ac_exeext' |
| 10894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10895 | (eval $ac_try) 2>&5 |
| 10896 | ac_status=$? |
| 10897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10898 | (exit $ac_status); }; }; then |
| 10899 | ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 10900 | if test "x$ac_cv_lib_soname_Xrender" = "x" |
| 10901 | then |
| 10902 | ac_cv_lib_soname_Xrender="libXrender.so" |
| 10903 | fi |
| 10904 | else |
| 10905 | echo "$as_me: failed program was:" >&5 |
| 10906 | cat conftest.$ac_ext >&5 |
| 10907 | ac_cv_lib_soname_Xrender="libXrender.so" |
| 10908 | fi |
| 10909 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10910 | LIBS=$ac_get_soname_save_LIBS |
| 10911 | fi |
| 10912 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5 |
| 10913 | echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6 |
| 10914 | if test "x$ac_cv_lib_soname_Xrender" != xNONE |
| 10915 | then |
| 10916 | cat >>confdefs.h <<_ACEOF |
| 10917 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" |
| 10918 | _ACEOF |
| 10919 | fi |
| 10920 | |
| 10921 | echo "$as_me:$LINENO: checking for -lfreetype soname" >&5 |
| 10922 | echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6 |
| 10923 | if test "${ac_cv_lib_soname_freetype+set}" = set; then |
| 10924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10925 | else |
| 10926 | ac_get_soname_save_LIBS=$LIBS |
| 10927 | LIBS="-lfreetype $X_LIBS $LIBS" |
| 10928 | cat >conftest.$ac_ext <<_ACEOF |
| 10929 | #line $LINENO "configure" |
| 10930 | #include "confdefs.h" |
| 10931 | |
| 10932 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10933 | #ifdef __cplusplus |
| 10934 | extern "C" |
| 10935 | #endif |
| 10936 | /* We use char because int might match the return type of a gcc2 |
| 10937 | builtin and then its argument prototype would still apply. */ |
| 10938 | char FT_Init_FreeType (); |
| 10939 | #ifdef F77_DUMMY_MAIN |
| 10940 | # ifdef __cplusplus |
| 10941 | extern "C" |
| 10942 | # endif |
| 10943 | int F77_DUMMY_MAIN() { return 1; } |
| 10944 | #endif |
| 10945 | int |
| 10946 | main () |
| 10947 | { |
| 10948 | FT_Init_FreeType (); |
| 10949 | ; |
| 10950 | return 0; |
| 10951 | } |
| 10952 | _ACEOF |
| 10953 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10955 | (eval $ac_link) 2>&5 |
| 10956 | ac_status=$? |
| 10957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10958 | (exit $ac_status); } && |
| 10959 | { ac_try='test -s conftest$ac_exeext' |
| 10960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10961 | (eval $ac_try) 2>&5 |
| 10962 | ac_status=$? |
| 10963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10964 | (exit $ac_status); }; }; then |
| 10965 | ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 10966 | if test "x$ac_cv_lib_soname_freetype" = "x" |
| 10967 | then |
| 10968 | ac_cv_lib_soname_freetype="libfreetype.so" |
| 10969 | fi |
| 10970 | else |
| 10971 | echo "$as_me: failed program was:" >&5 |
| 10972 | cat conftest.$ac_ext >&5 |
| 10973 | ac_cv_lib_soname_freetype="libfreetype.so" |
| 10974 | fi |
| 10975 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10976 | LIBS=$ac_get_soname_save_LIBS |
| 10977 | fi |
| 10978 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5 |
| 10979 | echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6 |
| 10980 | if test "x$ac_cv_lib_soname_freetype" != xNONE |
| 10981 | then |
| 10982 | cat >>confdefs.h <<_ACEOF |
| 10983 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
| 10984 | _ACEOF |
| 10985 | fi |
| 10986 | fi |
| 10987 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10988 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 10989 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10990 | wine_cv_libc_reentrant=no |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10991 | echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10992 | echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6 |
| 10993 | if test "${wine_cv_libc_r___errno_location+set}" = set; then |
| 10994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 10995 | else |
| 10996 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10997 | wine_cv_libc_r___errno_location=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 10998 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10999 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11000 | #line $LINENO "configure" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 11001 | #include "confdefs.h" |
| 11002 | int myerrno = 0; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 11003 | int *__errno_location(){return &myerrno;} |
Alexandre Julliard | 770c33f | 2002-07-01 18:39:26 +0000 | [diff] [blame] | 11004 | main(){close(333); close(333); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11005 | _ACEOF |
| 11006 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11007 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11008 | (eval $ac_link) 2>&5 |
| 11009 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11011 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11013 | (eval $ac_try) 2>&5 |
| 11014 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11016 | (exit $ac_status); }; }; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 11017 | wine_cv_libc_r___errno_location=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 11018 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11019 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11020 | echo "$as_me: failed program was:" >&5 |
| 11021 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11022 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11023 | wine_cv_libc_r___errno_location=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 11024 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11025 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 11026 | fi |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11027 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11028 | echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11029 | echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11030 | if test "$wine_cv_libc_r___errno_location" = "yes"; then |
| 11031 | wine_cv_libc_reentrant=__errno_location |
| 11032 | else |
| 11033 | echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11034 | echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6 |
| 11035 | if test "${wine_cv_libc_r___error+set}" = set; then |
| 11036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11037 | else |
| 11038 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11039 | wine_cv_libc_r___error=yes |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 11040 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11041 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11042 | #line $LINENO "configure" |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 11043 | #include "confdefs.h" |
| 11044 | int myerrno = 0; |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 11045 | int *__error(){return &myerrno;} |
Alexandre Julliard | 770c33f | 2002-07-01 18:39:26 +0000 | [diff] [blame] | 11046 | main(){close(333); close(333); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11047 | _ACEOF |
| 11048 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11050 | (eval $ac_link) 2>&5 |
| 11051 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11053 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11055 | (eval $ac_try) 2>&5 |
| 11056 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11058 | (exit $ac_status); }; }; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 11059 | wine_cv_libc_r___error=yes |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 11060 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11061 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11062 | echo "$as_me: failed program was:" >&5 |
| 11063 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11064 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11065 | wine_cv_libc_r___error=no |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 11066 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11067 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 11068 | fi |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 11069 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11070 | echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11071 | echo "${ECHO_T}$wine_cv_libc_r___error" >&6 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11072 | if test "$wine_cv_libc_r___error" = "yes"; then |
| 11073 | wine_cv_libc_reentrant=__error |
| 11074 | else |
| 11075 | echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11076 | echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6 |
| 11077 | if test "${wine_cv_libc_r____errno+set}" = set; then |
| 11078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11079 | else |
| 11080 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11081 | wine_cv_libc_r____errno=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11082 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11083 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11084 | #line $LINENO "configure" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11085 | #include "confdefs.h" |
| 11086 | int myerrno = 0; |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11087 | int *___errno(){return &myerrno;} |
Alexandre Julliard | 770c33f | 2002-07-01 18:39:26 +0000 | [diff] [blame] | 11088 | main(){close(333); close(333); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11089 | _ACEOF |
| 11090 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11092 | (eval $ac_link) 2>&5 |
| 11093 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11095 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11097 | (eval $ac_try) 2>&5 |
| 11098 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11100 | (exit $ac_status); }; }; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 11101 | wine_cv_libc_r____errno=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11102 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11103 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11104 | echo "$as_me: failed program was:" >&5 |
| 11105 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11106 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11107 | wine_cv_libc_r____errno=no |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11108 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11109 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11110 | fi |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11111 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11112 | echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11113 | echo "${ECHO_T}$wine_cv_libc_r____errno" >&6 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11114 | if test "$wine_cv_libc_r____errno" = "yes"; then |
| 11115 | wine_cv_libc_reentrant=___errno |
| 11116 | else |
| 11117 | echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11118 | echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6 |
| 11119 | if test "${wine_cv_libc_r___thr_errno+set}" = set; then |
| 11120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11121 | else |
| 11122 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11123 | wine_cv_libc_r___thr_errno=yes |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11124 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11125 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11126 | #line $LINENO "configure" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11127 | #include "confdefs.h" |
| 11128 | int myerrno = 0; |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11129 | int *__thr_errno(){return &myerrno;} |
Alexandre Julliard | 770c33f | 2002-07-01 18:39:26 +0000 | [diff] [blame] | 11130 | main(){close(333); close(333); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11131 | _ACEOF |
| 11132 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11134 | (eval $ac_link) 2>&5 |
| 11135 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11137 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11139 | (eval $ac_try) 2>&5 |
| 11140 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11142 | (exit $ac_status); }; }; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 11143 | wine_cv_libc_r___thr_errno=yes |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11144 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11145 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11146 | echo "$as_me: failed program was:" >&5 |
| 11147 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11148 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11149 | wine_cv_libc_r___thr_errno=no |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11150 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11151 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11152 | fi |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11153 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11154 | echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11155 | echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11156 | if test "$wine_cv_libc_r___thr_errno" = "yes"; then |
| 11157 | wine_cv_libc_reentrant=__thr_errno |
| 11158 | else |
| 11159 | echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11160 | echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6 |
| 11161 | if test "${wine_cv_libc_r___errno+set}" = set; then |
| 11162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11163 | else |
| 11164 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11165 | wine_cv_libc_r___errno=yes |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11166 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11167 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11168 | #line $LINENO "configure" |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11169 | #include "confdefs.h" |
| 11170 | int myerrno = 0; |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11171 | int *__errno(){return &myerrno;} |
Alexandre Julliard | 770c33f | 2002-07-01 18:39:26 +0000 | [diff] [blame] | 11172 | main(){close(333); close(333); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11173 | _ACEOF |
| 11174 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11176 | (eval $ac_link) 2>&5 |
| 11177 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11179 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11181 | (eval $ac_try) 2>&5 |
| 11182 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11184 | (exit $ac_status); }; }; then |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11185 | wine_cv_libc_r___errno=yes |
| 11186 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11187 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11188 | echo "$as_me: failed program was:" >&5 |
| 11189 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11190 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11191 | wine_cv_libc_r___errno=no |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11192 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11193 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11194 | fi |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11195 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11196 | echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11197 | echo "${ECHO_T}$wine_cv_libc_r___errno" >&6 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11198 | if test "$wine_cv_libc_r___errno" = "yes"; then |
| 11199 | wine_cv_libc_reentrant=__errno |
| 11200 | fi |
| 11201 | |
| 11202 | |
| 11203 | fi |
| 11204 | |
| 11205 | fi |
| 11206 | |
| 11207 | fi |
| 11208 | |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11209 | fi |
| 11210 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11211 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11212 | if test "$wine_cv_libc_reentrant" != "no" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 11213 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11214 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11215 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 11216 | #define ERRNO_LOCATION $wine_cv_libc_reentrant |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11217 | _ACEOF |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 11218 | |
| 11219 | fi |
| 11220 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11221 | |
Alexandre Julliard | 867fb9d | 2002-04-24 22:24:43 +0000 | [diff] [blame] | 11222 | if test "$have_x" = "yes" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 11223 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11224 | echo "$as_me:$LINENO: checking for reentrant X libraries" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11225 | echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6 |
| 11226 | if test "${wine_cv_x_reentrant+set}" = set; then |
| 11227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 11228 | else |
Alexandre Julliard | 867fb9d | 2002-04-24 22:24:43 +0000 | [diff] [blame] | 11229 | libX11_check=none |
| 11230 | for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do |
| 11231 | if test -r $dir/libX11.so; then |
| 11232 | libX11_check="-D $dir/libX11.so" |
| 11233 | break |
| 11234 | fi |
| 11235 | if test -r $dir/libX11.a; then |
| 11236 | libX11_check="$dir/libX11.a" |
| 11237 | break |
| 11238 | fi |
| 11239 | done |
| 11240 | if test "$libX11_check" != "none"; then |
| 11241 | if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1 |
| 11242 | then |
| 11243 | wine_cv_x_reentrant=yes |
| 11244 | else |
| 11245 | wine_cv_x_reentrant=no |
| 11246 | fi |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 11247 | else |
Alexandre Julliard | 867fb9d | 2002-04-24 22:24:43 +0000 | [diff] [blame] | 11248 | wine_cv_x_reentrant=unknown |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11249 | fi |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 11250 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11251 | echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11252 | echo "${ECHO_T}$wine_cv_x_reentrant" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 11253 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11254 | |
| 11255 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11256 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 11257 | # for constant arguments. Useless! |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11258 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11259 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 11260 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 11261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11262 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11263 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11264 | #line $LINENO "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11265 | #include "confdefs.h" |
| 11266 | #include <alloca.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11267 | #ifdef F77_DUMMY_MAIN |
| 11268 | # ifdef __cplusplus |
| 11269 | extern "C" |
| 11270 | # endif |
| 11271 | int F77_DUMMY_MAIN() { return 1; } |
| 11272 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11273 | int |
| 11274 | main () |
| 11275 | { |
| 11276 | char *p = (char *) alloca (2 * sizeof (int)); |
| 11277 | ; |
| 11278 | return 0; |
| 11279 | } |
| 11280 | _ACEOF |
| 11281 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11283 | (eval $ac_link) 2>&5 |
| 11284 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11286 | (exit $ac_status); } && |
| 11287 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11289 | (eval $ac_try) 2>&5 |
| 11290 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11292 | (exit $ac_status); }; }; then |
| 11293 | ac_cv_working_alloca_h=yes |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11294 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11295 | echo "$as_me: failed program was:" >&5 |
| 11296 | cat conftest.$ac_ext >&5 |
| 11297 | ac_cv_working_alloca_h=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11298 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11299 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11300 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11301 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11302 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 11303 | if test $ac_cv_working_alloca_h = yes; then |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11304 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11305 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11306 | #define HAVE_ALLOCA_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11307 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11308 | |
| 11309 | fi |
| 11310 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11311 | echo "$as_me:$LINENO: checking for alloca" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11312 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 11313 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 11314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11315 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11316 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11317 | #line $LINENO "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11318 | #include "confdefs.h" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11319 | #ifdef __GNUC__ |
| 11320 | # define alloca __builtin_alloca |
| 11321 | #else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 11322 | # ifdef _MSC_VER |
| 11323 | # include <malloc.h> |
| 11324 | # define alloca _alloca |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11325 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 11326 | # if HAVE_ALLOCA_H |
| 11327 | # include <alloca.h> |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11328 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 11329 | # ifdef _AIX |
| 11330 | #pragma alloca |
| 11331 | # else |
| 11332 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11333 | char *alloca (); |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 11334 | # endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11335 | # endif |
| 11336 | # endif |
| 11337 | # endif |
| 11338 | #endif |
| 11339 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11340 | #ifdef F77_DUMMY_MAIN |
| 11341 | # ifdef __cplusplus |
| 11342 | extern "C" |
| 11343 | # endif |
| 11344 | int F77_DUMMY_MAIN() { return 1; } |
| 11345 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11346 | int |
| 11347 | main () |
| 11348 | { |
| 11349 | char *p = (char *) alloca (1); |
| 11350 | ; |
| 11351 | return 0; |
| 11352 | } |
| 11353 | _ACEOF |
| 11354 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11356 | (eval $ac_link) 2>&5 |
| 11357 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11359 | (exit $ac_status); } && |
| 11360 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11362 | (eval $ac_try) 2>&5 |
| 11363 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11365 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11366 | ac_cv_func_alloca_works=yes |
| 11367 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11368 | echo "$as_me: failed program was:" >&5 |
| 11369 | cat conftest.$ac_ext >&5 |
| 11370 | ac_cv_func_alloca_works=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11371 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11372 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11373 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11374 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11375 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11376 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11377 | if test $ac_cv_func_alloca_works = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11378 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11379 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11380 | #define HAVE_ALLOCA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11381 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11382 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11383 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11384 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11385 | # that cause trouble. Some versions do not even contain alloca or |
| 11386 | # contain a buggy version. If you still want to use their alloca, |
| 11387 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 11388 | |
| 11389 | ALLOCA=alloca.$ac_objext |
| 11390 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11391 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11392 | #define C_ALLOCA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11393 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11394 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11395 | |
| 11396 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11397 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 11398 | if test "${ac_cv_os_cray+set}" = set; then |
| 11399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11400 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11401 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11402 | #line $LINENO "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11403 | #include "confdefs.h" |
| 11404 | #if defined(CRAY) && ! defined(CRAY2) |
| 11405 | webecray |
| 11406 | #else |
| 11407 | wenotbecray |
| 11408 | #endif |
| 11409 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11410 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11411 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11412 | egrep "webecray" >/dev/null 2>&1; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11413 | ac_cv_os_cray=yes |
| 11414 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11415 | ac_cv_os_cray=no |
| 11416 | fi |
| 11417 | rm -f conftest* |
| 11418 | |
| 11419 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11420 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11421 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11422 | if test $ac_cv_os_cray = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11423 | for ac_func in _getb67 GETB67 getb67; do |
| 11424 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11425 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11426 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11427 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11429 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11430 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11431 | #line $LINENO "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11432 | #include "confdefs.h" |
| 11433 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11434 | which can conflict with char $ac_func (); below. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11435 | #include <assert.h> |
| 11436 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11437 | #ifdef __cplusplus |
| 11438 | extern "C" |
| 11439 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 11440 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11441 | builtin and then its argument prototype would still apply. */ |
| 11442 | char $ac_func (); |
| 11443 | char (*f) (); |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11444 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11445 | #ifdef F77_DUMMY_MAIN |
| 11446 | # ifdef __cplusplus |
| 11447 | extern "C" |
| 11448 | # endif |
| 11449 | int F77_DUMMY_MAIN() { return 1; } |
| 11450 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11451 | int |
| 11452 | main () |
| 11453 | { |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11454 | /* The GNU C library defines this for functions which it implements |
| 11455 | to always fail with ENOSYS. Some functions are actually named |
| 11456 | something starting with __ and the normal name is an alias. */ |
| 11457 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11458 | choke me |
| 11459 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11460 | f = $ac_func; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11461 | #endif |
| 11462 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11463 | ; |
| 11464 | return 0; |
| 11465 | } |
| 11466 | _ACEOF |
| 11467 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11469 | (eval $ac_link) 2>&5 |
| 11470 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11472 | (exit $ac_status); } && |
| 11473 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11475 | (eval $ac_try) 2>&5 |
| 11476 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11478 | (exit $ac_status); }; }; then |
| 11479 | eval "$as_ac_var=yes" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11480 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11481 | echo "$as_me: failed program was:" >&5 |
| 11482 | cat conftest.$ac_ext >&5 |
| 11483 | eval "$as_ac_var=no" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11484 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11485 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11486 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11487 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11488 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11489 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11490 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11491 | cat >>confdefs.h <<_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11492 | #define CRAY_STACKSEG_END $ac_func |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11493 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11494 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11495 | break |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11496 | fi |
| 11497 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11498 | done |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11499 | fi |
| 11500 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11501 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11502 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 11503 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 11504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11505 | else |
| 11506 | if test "$cross_compiling" = yes; then |
| 11507 | ac_cv_c_stack_direction=0 |
| 11508 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11509 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11510 | #line $LINENO "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11511 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11512 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11513 | find_stack_direction () |
| 11514 | { |
| 11515 | static char *addr = 0; |
| 11516 | auto char dummy; |
| 11517 | if (addr == 0) |
| 11518 | { |
| 11519 | addr = &dummy; |
| 11520 | return find_stack_direction (); |
| 11521 | } |
| 11522 | else |
| 11523 | return (&dummy > addr) ? 1 : -1; |
| 11524 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11525 | |
| 11526 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11527 | main () |
| 11528 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11529 | exit (find_stack_direction () < 0); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11530 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11531 | _ACEOF |
| 11532 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11534 | (eval $ac_link) 2>&5 |
| 11535 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11537 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11539 | (eval $ac_try) 2>&5 |
| 11540 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11542 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11543 | ac_cv_c_stack_direction=1 |
| 11544 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11545 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11546 | echo "$as_me: failed program was:" >&5 |
| 11547 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11548 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11549 | ac_cv_c_stack_direction=-1 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11550 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11551 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11552 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11553 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11554 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11555 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11556 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11557 | cat >>confdefs.h <<_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11558 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11559 | _ACEOF |
| 11560 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11561 | |
| 11562 | fi |
| 11563 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11564 | |
| 11565 | |
| 11566 | |
| 11567 | |
| 11568 | |
| 11569 | |
| 11570 | |
| 11571 | |
| 11572 | |
| 11573 | |
| 11574 | |
| 11575 | |
| 11576 | |
| 11577 | |
| 11578 | |
| 11579 | |
| 11580 | |
| 11581 | |
| 11582 | |
| 11583 | |
| 11584 | |
| 11585 | |
| 11586 | |
| 11587 | |
| 11588 | |
| 11589 | |
| 11590 | |
| 11591 | |
| 11592 | |
| 11593 | |
| 11594 | |
| 11595 | |
| 11596 | |
| 11597 | |
| 11598 | |
| 11599 | |
| 11600 | |
| 11601 | |
| 11602 | |
| 11603 | |
| 11604 | |
| 11605 | |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 11606 | |
| 11607 | |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 11608 | |
| 11609 | |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 11610 | |
Marcus Meissner | 786d249 | 2002-07-29 23:55:39 +0000 | [diff] [blame] | 11611 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11612 | for ac_func in \ |
Eric Pouech | f61d7e0 | 2000-04-29 16:44:19 +0000 | [diff] [blame] | 11613 | __libc_fork \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11614 | _lwp_create \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 11615 | _pclose \ |
| 11616 | _popen \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 11617 | _snprintf \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 11618 | _stricmp \ |
| 11619 | _strnicmp \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 11620 | chsize \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11621 | clone \ |
Andreas Mohr | a7ca2ba | 2001-01-12 23:07:11 +0000 | [diff] [blame] | 11622 | ecvt \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 11623 | finite \ |
| 11624 | fpclass \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 11625 | ftruncate \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 11626 | ftruncate64 \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 11627 | getnetbyaddr \ |
| 11628 | getnetbyname \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11629 | getpagesize \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 11630 | getprotobyname \ |
| 11631 | getprotobynumber \ |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 11632 | getpwuid \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 11633 | getservbyport \ |
| 11634 | getsockopt \ |
| 11635 | inet_network \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 11636 | lseek64 \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 11637 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11638 | memmove \ |
Marcus Meissner | 786d249 | 2002-07-29 23:55:39 +0000 | [diff] [blame] | 11639 | mkstemp \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 11640 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 11641 | pclose \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 11642 | popen \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 11643 | pread \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 11644 | pwrite \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11645 | rfork \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 11646 | select \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11647 | sendmsg \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 11648 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11649 | sigaltstack \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 11650 | snprintf \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 11651 | statfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 11652 | strcasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11653 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 11654 | strncasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11655 | tcgetattr \ |
| 11656 | timegm \ |
| 11657 | usleep \ |
| 11658 | vfscanf \ |
| 11659 | wait4 \ |
| 11660 | waitpid \ |
| 11661 | |
| 11662 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11663 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11664 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11665 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11666 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11668 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11669 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11670 | #line $LINENO "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11671 | #include "confdefs.h" |
| 11672 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11673 | which can conflict with char $ac_func (); below. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11674 | #include <assert.h> |
| 11675 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11676 | #ifdef __cplusplus |
| 11677 | extern "C" |
| 11678 | #endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11679 | /* We use char because int might match the return type of a gcc2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11680 | builtin and then its argument prototype would still apply. */ |
| 11681 | char $ac_func (); |
| 11682 | char (*f) (); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11683 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11684 | #ifdef F77_DUMMY_MAIN |
| 11685 | # ifdef __cplusplus |
| 11686 | extern "C" |
| 11687 | # endif |
| 11688 | int F77_DUMMY_MAIN() { return 1; } |
| 11689 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11690 | int |
| 11691 | main () |
| 11692 | { |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11693 | /* The GNU C library defines this for functions which it implements |
| 11694 | to always fail with ENOSYS. Some functions are actually named |
| 11695 | something starting with __ and the normal name is an alias. */ |
| 11696 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11697 | choke me |
| 11698 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11699 | f = $ac_func; |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11700 | #endif |
| 11701 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11702 | ; |
| 11703 | return 0; |
| 11704 | } |
| 11705 | _ACEOF |
| 11706 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11708 | (eval $ac_link) 2>&5 |
| 11709 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11711 | (exit $ac_status); } && |
| 11712 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11714 | (eval $ac_try) 2>&5 |
| 11715 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11717 | (exit $ac_status); }; }; then |
| 11718 | eval "$as_ac_var=yes" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11719 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11720 | echo "$as_me: failed program was:" >&5 |
| 11721 | cat conftest.$ac_ext >&5 |
| 11722 | eval "$as_ac_var=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11723 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11724 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11725 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11726 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11727 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11728 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11729 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11730 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11731 | _ACEOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 11732 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11733 | fi |
| 11734 | done |
| 11735 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11736 | |
| 11737 | |
| 11738 | |
| 11739 | |
| 11740 | |
| 11741 | |
| 11742 | |
| 11743 | |
| 11744 | |
| 11745 | |
| 11746 | |
| 11747 | |
| 11748 | |
| 11749 | |
| 11750 | |
| 11751 | |
| 11752 | |
| 11753 | |
| 11754 | |
| 11755 | |
| 11756 | |
| 11757 | |
| 11758 | |
| 11759 | |
| 11760 | |
| 11761 | |
| 11762 | |
| 11763 | |
| 11764 | |
| 11765 | |
| 11766 | |
| 11767 | |
| 11768 | |
| 11769 | |
| 11770 | |
| 11771 | |
| 11772 | |
| 11773 | |
| 11774 | |
| 11775 | |
| 11776 | |
| 11777 | |
| 11778 | |
| 11779 | |
| 11780 | |
| 11781 | |
| 11782 | |
| 11783 | |
| 11784 | |
| 11785 | |
| 11786 | |
| 11787 | |
| 11788 | |
| 11789 | |
| 11790 | |
| 11791 | |
| 11792 | |
| 11793 | |
| 11794 | |
| 11795 | |
| 11796 | |
Laurent Pinchart | 0314a65 | 2002-05-01 22:01:30 +0000 | [diff] [blame] | 11797 | |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 11798 | |
| 11799 | |
| 11800 | |
Alexandre Julliard | 127ec92 | 2002-05-07 01:51:30 +0000 | [diff] [blame] | 11801 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11802 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11803 | for ac_header in \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11804 | arpa/inet.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11805 | arpa/nameser.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 11806 | direct.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11807 | elf.h \ |
| 11808 | float.h \ |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 11809 | ieeefp.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 11810 | io.h \ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11811 | libaudioio.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11812 | libio.h \ |
Hidenori Takeshima | 01f78aa | 2000-07-09 12:19:09 +0000 | [diff] [blame] | 11813 | libutil.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11814 | link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11815 | linux/cdrom.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 11816 | linux/hdreg.h \ |
Marcus Meissner | c9b3b2e | 2000-12-12 00:38:58 +0000 | [diff] [blame] | 11817 | linux/input.h \ |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 11818 | linux/joystick.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 11819 | linux/major.h \ |
Laurent Pinchart | 0314a65 | 2002-05-01 22:01:30 +0000 | [diff] [blame] | 11820 | linux/param.h \ |
Lawson Whitney | 533e7ee | 2002-02-19 18:41:56 +0000 | [diff] [blame] | 11821 | linux/serial.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11822 | linux/ucdrom.h \ |
Hidenori Takeshima | 5d1a638 | 2000-11-26 04:00:53 +0000 | [diff] [blame] | 11823 | netdb.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11824 | netinet/in.h \ |
Patrik Stridvall | 7a4e599 | 2000-12-01 23:53:46 +0000 | [diff] [blame] | 11825 | netinet/in_systm.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11826 | netinet/tcp.h \ |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 11827 | pty.h \ |
Steven Edwards | ff4525c | 2002-06-24 23:00:25 +0000 | [diff] [blame] | 11828 | pwd.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11829 | sched.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 11830 | scsi/sg.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11831 | socket.h \ |
Bang Jun-Young | eda758e | 2001-12-14 22:47:19 +0000 | [diff] [blame] | 11832 | stdint.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11833 | strings.h \ |
| 11834 | sys/cdio.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 11835 | sys/errno.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11836 | sys/file.h \ |
| 11837 | sys/filio.h \ |
Michal Pasternak | 6098399 | 2002-03-29 18:04:43 +0000 | [diff] [blame] | 11838 | sys/inttypes.h \ |
Alexandre Julliard | c3e06df | 2002-05-14 23:18:23 +0000 | [diff] [blame] | 11839 | sys/ioctl.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11840 | sys/ipc.h \ |
Eric Pouech | 624cbd7 | 2001-08-10 22:29:21 +0000 | [diff] [blame] | 11841 | sys/link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11842 | sys/lwp.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 11843 | sys/mman.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11844 | sys/modem.h \ |
| 11845 | sys/mount.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11846 | sys/msg.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11847 | sys/param.h \ |
Dimitrie O. Paun | 2af03e4 | 2000-11-29 20:04:09 +0000 | [diff] [blame] | 11848 | sys/ptrace.h \ |
Ulrich Weigand | 8a1bdb3 | 2000-01-30 22:22:22 +0000 | [diff] [blame] | 11849 | sys/reg.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11850 | sys/shm.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 11851 | sys/signal.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11852 | sys/socket.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11853 | sys/sockio.h \ |
| 11854 | sys/statfs.h \ |
| 11855 | sys/strtio.h \ |
| 11856 | sys/syscall.h \ |
Alexandre Julliard | 127ec92 | 2002-05-07 01:51:30 +0000 | [diff] [blame] | 11857 | sys/sysctl.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 11858 | sys/time.h \ |
Dimitrie O. Paun | 2af03e4 | 2000-11-29 20:04:09 +0000 | [diff] [blame] | 11859 | sys/user.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11860 | sys/v86.h \ |
| 11861 | sys/v86intr.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11862 | sys/vfs.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11863 | sys/vm86.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 11864 | sys/wait.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11865 | syscall.h \ |
Alexandre Julliard | c3e06df | 2002-05-14 23:18:23 +0000 | [diff] [blame] | 11866 | termios.h \ |
Patrik Stridvall | 7a4e599 | 2000-12-01 23:53:46 +0000 | [diff] [blame] | 11867 | ucontext.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 11868 | unistd.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11869 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11870 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11871 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11872 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11873 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11874 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11875 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11877 | fi |
| 11878 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11879 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11880 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11881 | # Is the header compilable? |
| 11882 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11883 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11884 | cat >conftest.$ac_ext <<_ACEOF |
| 11885 | #line $LINENO "configure" |
| 11886 | #include "confdefs.h" |
| 11887 | $ac_includes_default |
| 11888 | #include <$ac_header> |
| 11889 | _ACEOF |
| 11890 | rm -f conftest.$ac_objext |
| 11891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11892 | (eval $ac_compile) 2>&5 |
| 11893 | ac_status=$? |
| 11894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11895 | (exit $ac_status); } && |
| 11896 | { ac_try='test -s conftest.$ac_objext' |
| 11897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11898 | (eval $ac_try) 2>&5 |
| 11899 | ac_status=$? |
| 11900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11901 | (exit $ac_status); }; }; then |
| 11902 | ac_header_compiler=yes |
| 11903 | else |
| 11904 | echo "$as_me: failed program was:" >&5 |
| 11905 | cat conftest.$ac_ext >&5 |
| 11906 | ac_header_compiler=no |
| 11907 | fi |
| 11908 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11909 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11910 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11911 | |
| 11912 | # Is the header present? |
| 11913 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11914 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11915 | cat >conftest.$ac_ext <<_ACEOF |
| 11916 | #line $LINENO "configure" |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11917 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11918 | #include <$ac_header> |
| 11919 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11920 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11921 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11922 | ac_status=$? |
| 11923 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 11924 | rm -f conftest.er1 |
| 11925 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11927 | (exit $ac_status); } >/dev/null; then |
| 11928 | if test -s conftest.err; then |
| 11929 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11930 | else |
| 11931 | ac_cpp_err= |
| 11932 | fi |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11933 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11934 | ac_cpp_err=yes |
| 11935 | fi |
| 11936 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11937 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11938 | else |
| 11939 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11940 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11941 | ac_header_preproc=no |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11942 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11943 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11944 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11945 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11946 | |
| 11947 | # So? What about this header? |
| 11948 | case $ac_header_compiler:$ac_header_preproc in |
| 11949 | yes:no ) |
| 11950 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11951 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11952 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11953 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 11954 | no:yes ) |
| 11955 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11956 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11957 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11958 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11959 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11960 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 11961 | esac |
| 11962 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11963 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11964 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11966 | else |
| 11967 | eval "$as_ac_Header=$ac_header_preproc" |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11968 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11969 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11970 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11971 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11972 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11973 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11974 | cat >>confdefs.h <<_ACEOF |
| 11975 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11976 | _ACEOF |
| 11977 | |
| 11978 | fi |
| 11979 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11980 | done |
| 11981 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11982 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11983 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 11984 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 11985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11986 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11987 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11988 | #line $LINENO "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11989 | #include "confdefs.h" |
| 11990 | #include <sys/types.h> |
| 11991 | #include <sys/stat.h> |
| 11992 | |
| 11993 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 11994 | # if S_ISBLK (S_IFDIR) |
| 11995 | You lose. |
| 11996 | # endif |
| 11997 | #endif |
| 11998 | |
| 11999 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 12000 | # if S_ISBLK (S_IFCHR) |
| 12001 | You lose. |
| 12002 | # endif |
| 12003 | #endif |
| 12004 | |
| 12005 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 12006 | # if S_ISLNK (S_IFREG) |
| 12007 | You lose. |
| 12008 | # endif |
| 12009 | #endif |
| 12010 | |
| 12011 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 12012 | # if S_ISSOCK (S_IFREG) |
| 12013 | You lose. |
| 12014 | # endif |
| 12015 | #endif |
| 12016 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12017 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12018 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12019 | egrep "You lose" >/dev/null 2>&1; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12020 | ac_cv_header_stat_broken=yes |
| 12021 | else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12022 | ac_cv_header_stat_broken=no |
| 12023 | fi |
| 12024 | rm -f conftest* |
| 12025 | |
| 12026 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12027 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12028 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12029 | if test $ac_cv_header_stat_broken = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12030 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12031 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12032 | #define STAT_MACROS_BROKEN 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12033 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12034 | |
| 12035 | fi |
| 12036 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12037 | |
| 12038 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 12039 | for ac_header in net/if.h |
| 12040 | do |
| 12041 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12042 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12043 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12044 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12046 | else |
| 12047 | cat >conftest.$ac_ext <<_ACEOF |
| 12048 | #line $LINENO "configure" |
| 12049 | #include "confdefs.h" |
Gerald Pfeifer | 87c369d | 2002-07-23 02:02:02 +0000 | [diff] [blame] | 12050 | #if HAVE_SYS_TYPES_H |
| 12051 | # include <sys/types.h> |
| 12052 | #endif |
| 12053 | #if HAVE_SYS_SOCKET_H |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 12054 | # include <sys/socket.h> |
| 12055 | #endif |
| 12056 | |
| 12057 | #include <$ac_header> |
| 12058 | _ACEOF |
| 12059 | rm -f conftest.$ac_objext |
| 12060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12061 | (eval $ac_compile) 2>&5 |
| 12062 | ac_status=$? |
| 12063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12064 | (exit $ac_status); } && |
| 12065 | { ac_try='test -s conftest.$ac_objext' |
| 12066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12067 | (eval $ac_try) 2>&5 |
| 12068 | ac_status=$? |
| 12069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12070 | (exit $ac_status); }; }; then |
| 12071 | eval "$as_ac_Header=yes" |
| 12072 | else |
| 12073 | echo "$as_me: failed program was:" >&5 |
| 12074 | cat conftest.$ac_ext >&5 |
| 12075 | eval "$as_ac_Header=no" |
| 12076 | fi |
| 12077 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12078 | fi |
| 12079 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12080 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12081 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12082 | cat >>confdefs.h <<_ACEOF |
| 12083 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12084 | _ACEOF |
| 12085 | |
| 12086 | fi |
| 12087 | |
| 12088 | done |
| 12089 | |
| 12090 | |
| 12091 | |
| 12092 | for ac_header in netinet/ip.h |
| 12093 | do |
| 12094 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12095 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12096 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12097 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12099 | else |
| 12100 | cat >conftest.$ac_ext <<_ACEOF |
| 12101 | #line $LINENO "configure" |
| 12102 | #include "confdefs.h" |
| 12103 | #if HAVE_SYS_SOCKET_H |
| 12104 | # include <sys/socket.h> |
| 12105 | #endif |
| 12106 | #if HAVE_NETINET_IN_SYSTM_H |
| 12107 | # include <netinet/in_systm.h> |
| 12108 | #endif |
| 12109 | |
| 12110 | #include <$ac_header> |
| 12111 | _ACEOF |
| 12112 | rm -f conftest.$ac_objext |
| 12113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12114 | (eval $ac_compile) 2>&5 |
| 12115 | ac_status=$? |
| 12116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12117 | (exit $ac_status); } && |
| 12118 | { ac_try='test -s conftest.$ac_objext' |
| 12119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12120 | (eval $ac_try) 2>&5 |
| 12121 | ac_status=$? |
| 12122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12123 | (exit $ac_status); }; }; then |
| 12124 | eval "$as_ac_Header=yes" |
| 12125 | else |
| 12126 | echo "$as_me: failed program was:" >&5 |
| 12127 | cat conftest.$ac_ext >&5 |
| 12128 | eval "$as_ac_Header=no" |
| 12129 | fi |
| 12130 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12131 | fi |
| 12132 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12133 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12134 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12135 | cat >>confdefs.h <<_ACEOF |
| 12136 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12137 | _ACEOF |
| 12138 | |
| 12139 | fi |
| 12140 | |
| 12141 | done |
| 12142 | |
| 12143 | |
| 12144 | |
| 12145 | for ac_header in resolv.h |
| 12146 | do |
| 12147 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12148 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12149 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12150 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12152 | else |
| 12153 | cat >conftest.$ac_ext <<_ACEOF |
| 12154 | #line $LINENO "configure" |
| 12155 | #include "confdefs.h" |
| 12156 | #if HAVE_SYS_SOCKET_H |
| 12157 | # include <sys/socket.h> |
| 12158 | #endif |
| 12159 | |
| 12160 | #include <$ac_header> |
| 12161 | _ACEOF |
| 12162 | rm -f conftest.$ac_objext |
| 12163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12164 | (eval $ac_compile) 2>&5 |
| 12165 | ac_status=$? |
| 12166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12167 | (exit $ac_status); } && |
| 12168 | { ac_try='test -s conftest.$ac_objext' |
| 12169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12170 | (eval $ac_try) 2>&5 |
| 12171 | ac_status=$? |
| 12172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12173 | (exit $ac_status); }; }; then |
| 12174 | eval "$as_ac_Header=yes" |
| 12175 | else |
| 12176 | echo "$as_me: failed program was:" >&5 |
| 12177 | cat conftest.$ac_ext >&5 |
| 12178 | eval "$as_ac_Header=no" |
| 12179 | fi |
| 12180 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12181 | fi |
| 12182 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12183 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12184 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12185 | cat >>confdefs.h <<_ACEOF |
| 12186 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12187 | _ACEOF |
| 12188 | |
| 12189 | fi |
| 12190 | |
| 12191 | done |
| 12192 | |
| 12193 | |
| 12194 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12195 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12196 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 12197 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 12198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12199 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12200 | ac_cv_prog_cc_stdc=no |
| 12201 | ac_save_CC=$CC |
| 12202 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12203 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12204 | #include "confdefs.h" |
| 12205 | #include <stdarg.h> |
| 12206 | #include <stdio.h> |
| 12207 | #include <sys/types.h> |
| 12208 | #include <sys/stat.h> |
| 12209 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 12210 | struct buf { int x; }; |
| 12211 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 12212 | static char *e (p, i) |
| 12213 | char **p; |
| 12214 | int i; |
| 12215 | { |
| 12216 | return p[i]; |
| 12217 | } |
| 12218 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 12219 | { |
| 12220 | char *s; |
| 12221 | va_list v; |
| 12222 | va_start (v,p); |
| 12223 | s = g (p, va_arg (v,int)); |
| 12224 | va_end (v); |
| 12225 | return s; |
| 12226 | } |
| 12227 | int test (int i, double x); |
| 12228 | struct s1 {int (*f) (int a);}; |
| 12229 | struct s2 {int (*f) (double a);}; |
| 12230 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 12231 | int argc; |
| 12232 | char **argv; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12233 | #ifdef F77_DUMMY_MAIN |
| 12234 | # ifdef __cplusplus |
| 12235 | extern "C" |
| 12236 | # endif |
| 12237 | int F77_DUMMY_MAIN() { return 1; } |
| 12238 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12239 | int |
| 12240 | main () |
| 12241 | { |
| 12242 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 12243 | ; |
| 12244 | return 0; |
| 12245 | } |
| 12246 | _ACEOF |
| 12247 | # Don't try gcc -ansi; that turns off useful extensions and |
| 12248 | # breaks some systems' header files. |
| 12249 | # AIX -qlanglvl=ansi |
| 12250 | # Ultrix and OSF/1 -std1 |
| 12251 | # HP-UX 10.20 and later -Ae |
| 12252 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 12253 | # SVR4 -Xc -D__EXTENSIONS__ |
| 12254 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 12255 | do |
| 12256 | CC="$ac_save_CC $ac_arg" |
| 12257 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12259 | (eval $ac_compile) 2>&5 |
| 12260 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12262 | (exit $ac_status); } && |
| 12263 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12265 | (eval $ac_try) 2>&5 |
| 12266 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12268 | (exit $ac_status); }; }; then |
| 12269 | ac_cv_prog_cc_stdc=$ac_arg |
| 12270 | break |
| 12271 | else |
| 12272 | echo "$as_me: failed program was:" >&5 |
| 12273 | cat conftest.$ac_ext >&5 |
| 12274 | fi |
| 12275 | rm -f conftest.$ac_objext |
| 12276 | done |
| 12277 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 12278 | CC=$ac_save_CC |
| 12279 | |
| 12280 | fi |
| 12281 | |
| 12282 | case "x$ac_cv_prog_cc_stdc" in |
| 12283 | x|xno) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12284 | echo "$as_me:$LINENO: result: none needed" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12285 | echo "${ECHO_T}none needed" >&6 ;; |
| 12286 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12287 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12288 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 12289 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 12290 | esac |
| 12291 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12292 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12293 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 12294 | if test "${ac_cv_c_const+set}" = set; then |
| 12295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12296 | else |
| 12297 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12298 | #line $LINENO "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12299 | #include "confdefs.h" |
| 12300 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12301 | #ifdef F77_DUMMY_MAIN |
| 12302 | # ifdef __cplusplus |
| 12303 | extern "C" |
| 12304 | # endif |
| 12305 | int F77_DUMMY_MAIN() { return 1; } |
| 12306 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12307 | int |
| 12308 | main () |
| 12309 | { |
| 12310 | /* FIXME: Include the comments suggested by Paul. */ |
| 12311 | #ifndef __cplusplus |
| 12312 | /* Ultrix mips cc rejects this. */ |
| 12313 | typedef int charset[2]; |
| 12314 | const charset x; |
| 12315 | /* SunOS 4.1.1 cc rejects this. */ |
| 12316 | char const *const *ccp; |
| 12317 | char **p; |
| 12318 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 12319 | struct point {int x, y;}; |
| 12320 | static struct point const zero = {0,0}; |
| 12321 | /* AIX XL C 1.02.0.0 rejects this. |
| 12322 | It does not let you subtract one const X* pointer from another in |
| 12323 | an arm of an if-expression whose if-part is not a constant |
| 12324 | expression */ |
| 12325 | const char *g = "string"; |
| 12326 | ccp = &g + (g ? g-g : 0); |
| 12327 | /* HPUX 7.0 cc rejects these. */ |
| 12328 | ++ccp; |
| 12329 | p = (char**) ccp; |
| 12330 | ccp = (char const *const *) p; |
| 12331 | { /* SCO 3.2v4 cc rejects this. */ |
| 12332 | char *t; |
| 12333 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12334 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12335 | *t++ = 0; |
| 12336 | } |
| 12337 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 12338 | int x[] = {25, 17}; |
| 12339 | const int *foo = &x[0]; |
| 12340 | ++foo; |
| 12341 | } |
| 12342 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 12343 | typedef const int *iptr; |
| 12344 | iptr p = 0; |
| 12345 | ++p; |
| 12346 | } |
| 12347 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 12348 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 12349 | struct s { int j; const int *ap[3]; }; |
| 12350 | struct s *b; b->j = 5; |
| 12351 | } |
| 12352 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 12353 | const int foo = 10; |
| 12354 | } |
| 12355 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12356 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12357 | ; |
| 12358 | return 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12359 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12360 | _ACEOF |
| 12361 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12363 | (eval $ac_compile) 2>&5 |
| 12364 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12366 | (exit $ac_status); } && |
| 12367 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12369 | (eval $ac_try) 2>&5 |
| 12370 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12372 | (exit $ac_status); }; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12373 | ac_cv_c_const=yes |
| 12374 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12375 | echo "$as_me: failed program was:" >&5 |
| 12376 | cat conftest.$ac_ext >&5 |
| 12377 | ac_cv_c_const=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12378 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12379 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12380 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12381 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12382 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12383 | if test $ac_cv_c_const = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12384 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12385 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12386 | #define const |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12387 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12388 | |
| 12389 | fi |
| 12390 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12391 | echo "$as_me:$LINENO: checking for inline" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12392 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 12393 | if test "${ac_cv_c_inline+set}" = set; then |
| 12394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12395 | else |
| 12396 | ac_cv_c_inline=no |
| 12397 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12398 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12399 | #line $LINENO "configure" |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12400 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12401 | #ifndef __cplusplus |
| 12402 | static $ac_kw int static_foo () {return 0; } |
| 12403 | $ac_kw int foo () {return 0; } |
| 12404 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12405 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12406 | _ACEOF |
| 12407 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12409 | (eval $ac_compile) 2>&5 |
| 12410 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12412 | (exit $ac_status); } && |
| 12413 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12415 | (eval $ac_try) 2>&5 |
| 12416 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12418 | (exit $ac_status); }; }; then |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12419 | ac_cv_c_inline=$ac_kw; break |
| 12420 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12421 | echo "$as_me: failed program was:" >&5 |
| 12422 | cat conftest.$ac_ext >&5 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12423 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12424 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12425 | done |
| 12426 | |
| 12427 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12428 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12429 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 12430 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12431 | inline | yes) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12432 | no) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12433 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12434 | #define inline |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12435 | _ACEOF |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12436 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12437 | *) cat >>confdefs.h <<_ACEOF |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12438 | #define inline $ac_cv_c_inline |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12439 | _ACEOF |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12440 | ;; |
| 12441 | esac |
| 12442 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12443 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12444 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 12445 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 12446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12447 | else |
| 12448 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12449 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12450 | #include "confdefs.h" |
| 12451 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12452 | #ifdef F77_DUMMY_MAIN |
| 12453 | # ifdef __cplusplus |
| 12454 | extern "C" |
| 12455 | # endif |
| 12456 | int F77_DUMMY_MAIN() { return 1; } |
| 12457 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12458 | int |
| 12459 | main () |
| 12460 | { |
| 12461 | if ((mode_t *) 0) |
| 12462 | return 0; |
| 12463 | if (sizeof (mode_t)) |
| 12464 | return 0; |
| 12465 | ; |
| 12466 | return 0; |
| 12467 | } |
| 12468 | _ACEOF |
| 12469 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12471 | (eval $ac_compile) 2>&5 |
| 12472 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12474 | (exit $ac_status); } && |
| 12475 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12477 | (eval $ac_try) 2>&5 |
| 12478 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12480 | (exit $ac_status); }; }; then |
| 12481 | ac_cv_type_mode_t=yes |
| 12482 | else |
| 12483 | echo "$as_me: failed program was:" >&5 |
| 12484 | cat conftest.$ac_ext >&5 |
| 12485 | ac_cv_type_mode_t=no |
| 12486 | fi |
| 12487 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12488 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12489 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12490 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 12491 | if test $ac_cv_type_mode_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12492 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12493 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 12494 | #define HAVE_MODE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12495 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12496 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12497 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 12498 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12499 | echo "$as_me:$LINENO: checking for off_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12500 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 12501 | if test "${ac_cv_type_off_t+set}" = set; then |
| 12502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12503 | else |
| 12504 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12505 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12506 | #include "confdefs.h" |
| 12507 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12508 | #ifdef F77_DUMMY_MAIN |
| 12509 | # ifdef __cplusplus |
| 12510 | extern "C" |
| 12511 | # endif |
| 12512 | int F77_DUMMY_MAIN() { return 1; } |
| 12513 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12514 | int |
| 12515 | main () |
| 12516 | { |
| 12517 | if ((off_t *) 0) |
| 12518 | return 0; |
| 12519 | if (sizeof (off_t)) |
| 12520 | return 0; |
| 12521 | ; |
| 12522 | return 0; |
| 12523 | } |
| 12524 | _ACEOF |
| 12525 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12527 | (eval $ac_compile) 2>&5 |
| 12528 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12530 | (exit $ac_status); } && |
| 12531 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12533 | (eval $ac_try) 2>&5 |
| 12534 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12536 | (exit $ac_status); }; }; then |
| 12537 | ac_cv_type_off_t=yes |
| 12538 | else |
| 12539 | echo "$as_me: failed program was:" >&5 |
| 12540 | cat conftest.$ac_ext >&5 |
| 12541 | ac_cv_type_off_t=no |
| 12542 | fi |
| 12543 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12544 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12545 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12546 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 12547 | if test $ac_cv_type_off_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12548 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12549 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 12550 | #define HAVE_OFF_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12551 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12552 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12553 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 12554 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12555 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12556 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 12557 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 12558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12559 | else |
| 12560 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12561 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12562 | #include "confdefs.h" |
| 12563 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12564 | #ifdef F77_DUMMY_MAIN |
| 12565 | # ifdef __cplusplus |
| 12566 | extern "C" |
| 12567 | # endif |
| 12568 | int F77_DUMMY_MAIN() { return 1; } |
| 12569 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12570 | int |
| 12571 | main () |
| 12572 | { |
| 12573 | if ((pid_t *) 0) |
| 12574 | return 0; |
| 12575 | if (sizeof (pid_t)) |
| 12576 | return 0; |
| 12577 | ; |
| 12578 | return 0; |
| 12579 | } |
| 12580 | _ACEOF |
| 12581 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12583 | (eval $ac_compile) 2>&5 |
| 12584 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12586 | (exit $ac_status); } && |
| 12587 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12589 | (eval $ac_try) 2>&5 |
| 12590 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12592 | (exit $ac_status); }; }; then |
| 12593 | ac_cv_type_pid_t=yes |
| 12594 | else |
| 12595 | echo "$as_me: failed program was:" >&5 |
| 12596 | cat conftest.$ac_ext >&5 |
| 12597 | ac_cv_type_pid_t=no |
| 12598 | fi |
| 12599 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12600 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12601 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12602 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 12603 | if test $ac_cv_type_pid_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12604 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12605 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 12606 | #define HAVE_PID_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12607 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12608 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12609 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 12610 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12611 | echo "$as_me:$LINENO: checking for size_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12612 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 12613 | if test "${ac_cv_type_size_t+set}" = set; then |
| 12614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12615 | else |
| 12616 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12617 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12618 | #include "confdefs.h" |
| 12619 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12620 | #ifdef F77_DUMMY_MAIN |
| 12621 | # ifdef __cplusplus |
| 12622 | extern "C" |
| 12623 | # endif |
| 12624 | int F77_DUMMY_MAIN() { return 1; } |
| 12625 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12626 | int |
| 12627 | main () |
| 12628 | { |
| 12629 | if ((size_t *) 0) |
| 12630 | return 0; |
| 12631 | if (sizeof (size_t)) |
| 12632 | return 0; |
| 12633 | ; |
| 12634 | return 0; |
| 12635 | } |
| 12636 | _ACEOF |
| 12637 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12639 | (eval $ac_compile) 2>&5 |
| 12640 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12642 | (exit $ac_status); } && |
| 12643 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12645 | (eval $ac_try) 2>&5 |
| 12646 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12648 | (exit $ac_status); }; }; then |
| 12649 | ac_cv_type_size_t=yes |
| 12650 | else |
| 12651 | echo "$as_me: failed program was:" >&5 |
| 12652 | cat conftest.$ac_ext >&5 |
| 12653 | ac_cv_type_size_t=no |
| 12654 | fi |
| 12655 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12656 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12657 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12658 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 12659 | if test $ac_cv_type_size_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12660 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12661 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 12662 | #define HAVE_SIZE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12663 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12664 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 12665 | |
| 12666 | fi |
| 12667 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 12668 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
| 12669 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 12670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12671 | else |
| 12672 | cat >conftest.$ac_ext <<_ACEOF |
| 12673 | #line $LINENO "configure" |
| 12674 | #include "confdefs.h" |
| 12675 | $ac_includes_default |
| 12676 | #ifdef F77_DUMMY_MAIN |
| 12677 | # ifdef __cplusplus |
| 12678 | extern "C" |
| 12679 | # endif |
| 12680 | int F77_DUMMY_MAIN() { return 1; } |
| 12681 | #endif |
| 12682 | int |
| 12683 | main () |
| 12684 | { |
| 12685 | if ((ssize_t *) 0) |
| 12686 | return 0; |
| 12687 | if (sizeof (ssize_t)) |
| 12688 | return 0; |
| 12689 | ; |
| 12690 | return 0; |
| 12691 | } |
| 12692 | _ACEOF |
| 12693 | rm -f conftest.$ac_objext |
| 12694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12695 | (eval $ac_compile) 2>&5 |
| 12696 | ac_status=$? |
| 12697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12698 | (exit $ac_status); } && |
| 12699 | { ac_try='test -s conftest.$ac_objext' |
| 12700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12701 | (eval $ac_try) 2>&5 |
| 12702 | ac_status=$? |
| 12703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12704 | (exit $ac_status); }; }; then |
| 12705 | ac_cv_type_ssize_t=yes |
| 12706 | else |
| 12707 | echo "$as_me: failed program was:" >&5 |
| 12708 | cat conftest.$ac_ext >&5 |
| 12709 | ac_cv_type_ssize_t=no |
| 12710 | fi |
| 12711 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12712 | fi |
| 12713 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 12714 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 |
| 12715 | if test $ac_cv_type_ssize_t = yes; then |
| 12716 | |
| 12717 | cat >>confdefs.h <<_ACEOF |
| 12718 | #define HAVE_SSIZE_T 1 |
| 12719 | _ACEOF |
| 12720 | |
| 12721 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12722 | fi |
| 12723 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12724 | echo "$as_me:$LINENO: checking for long long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12725 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 12726 | if test "${ac_cv_type_long_long+set}" = set; then |
| 12727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12728 | else |
| 12729 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12730 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12731 | #include "confdefs.h" |
| 12732 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12733 | #ifdef F77_DUMMY_MAIN |
| 12734 | # ifdef __cplusplus |
| 12735 | extern "C" |
| 12736 | # endif |
| 12737 | int F77_DUMMY_MAIN() { return 1; } |
| 12738 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12739 | int |
| 12740 | main () |
| 12741 | { |
| 12742 | if ((long long *) 0) |
| 12743 | return 0; |
| 12744 | if (sizeof (long long)) |
| 12745 | return 0; |
| 12746 | ; |
| 12747 | return 0; |
| 12748 | } |
| 12749 | _ACEOF |
| 12750 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12752 | (eval $ac_compile) 2>&5 |
| 12753 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12755 | (exit $ac_status); } && |
| 12756 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12758 | (eval $ac_try) 2>&5 |
| 12759 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12761 | (exit $ac_status); }; }; then |
| 12762 | ac_cv_type_long_long=yes |
| 12763 | else |
| 12764 | echo "$as_me: failed program was:" >&5 |
| 12765 | cat conftest.$ac_ext >&5 |
| 12766 | ac_cv_type_long_long=no |
| 12767 | fi |
| 12768 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12769 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12770 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12771 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 12772 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12773 | echo "$as_me:$LINENO: checking size of long long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12774 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 12775 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 12776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12777 | else |
| 12778 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12779 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 12780 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12781 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12782 | # This bug is HP SR number 8606223364. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12783 | if test "$cross_compiling" = yes; then |
| 12784 | # Depending upon the size, compute the lo and hi bounds. |
| 12785 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12786 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12787 | #include "confdefs.h" |
| 12788 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12789 | #ifdef F77_DUMMY_MAIN |
| 12790 | # ifdef __cplusplus |
| 12791 | extern "C" |
| 12792 | # endif |
| 12793 | int F77_DUMMY_MAIN() { return 1; } |
| 12794 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12795 | int |
| 12796 | main () |
| 12797 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12798 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 12799 | test_array [0] = 0 |
| 12800 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12801 | ; |
| 12802 | return 0; |
| 12803 | } |
| 12804 | _ACEOF |
| 12805 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12807 | (eval $ac_compile) 2>&5 |
| 12808 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12810 | (exit $ac_status); } && |
| 12811 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12813 | (eval $ac_try) 2>&5 |
| 12814 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12816 | (exit $ac_status); }; }; then |
| 12817 | ac_lo=0 ac_mid=0 |
| 12818 | while :; do |
| 12819 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12820 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12821 | #include "confdefs.h" |
| 12822 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12823 | #ifdef F77_DUMMY_MAIN |
| 12824 | # ifdef __cplusplus |
| 12825 | extern "C" |
| 12826 | # endif |
| 12827 | int F77_DUMMY_MAIN() { return 1; } |
| 12828 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12829 | int |
| 12830 | main () |
| 12831 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12832 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 12833 | test_array [0] = 0 |
| 12834 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12835 | ; |
| 12836 | return 0; |
| 12837 | } |
| 12838 | _ACEOF |
| 12839 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12841 | (eval $ac_compile) 2>&5 |
| 12842 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12844 | (exit $ac_status); } && |
| 12845 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12847 | (eval $ac_try) 2>&5 |
| 12848 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12850 | (exit $ac_status); }; }; then |
| 12851 | ac_hi=$ac_mid; break |
| 12852 | else |
| 12853 | echo "$as_me: failed program was:" >&5 |
| 12854 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12855 | ac_lo=`expr $ac_mid + 1` |
| 12856 | if test $ac_lo -le $ac_mid; then |
| 12857 | ac_lo= ac_hi= |
| 12858 | break |
| 12859 | fi |
| 12860 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12861 | fi |
| 12862 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12863 | done |
| 12864 | else |
| 12865 | echo "$as_me: failed program was:" >&5 |
| 12866 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12867 | cat >conftest.$ac_ext <<_ACEOF |
| 12868 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12869 | #include "confdefs.h" |
| 12870 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12871 | #ifdef F77_DUMMY_MAIN |
| 12872 | # ifdef __cplusplus |
| 12873 | extern "C" |
| 12874 | # endif |
| 12875 | int F77_DUMMY_MAIN() { return 1; } |
| 12876 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12877 | int |
| 12878 | main () |
| 12879 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12880 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 12881 | test_array [0] = 0 |
| 12882 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12883 | ; |
| 12884 | return 0; |
| 12885 | } |
| 12886 | _ACEOF |
| 12887 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12889 | (eval $ac_compile) 2>&5 |
| 12890 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12892 | (exit $ac_status); } && |
| 12893 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12895 | (eval $ac_try) 2>&5 |
| 12896 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12898 | (exit $ac_status); }; }; then |
| 12899 | ac_hi=-1 ac_mid=-1 |
| 12900 | while :; do |
| 12901 | cat >conftest.$ac_ext <<_ACEOF |
| 12902 | #line $LINENO "configure" |
| 12903 | #include "confdefs.h" |
| 12904 | $ac_includes_default |
| 12905 | #ifdef F77_DUMMY_MAIN |
| 12906 | # ifdef __cplusplus |
| 12907 | extern "C" |
| 12908 | # endif |
| 12909 | int F77_DUMMY_MAIN() { return 1; } |
| 12910 | #endif |
| 12911 | int |
| 12912 | main () |
| 12913 | { |
| 12914 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 12915 | test_array [0] = 0 |
| 12916 | |
| 12917 | ; |
| 12918 | return 0; |
| 12919 | } |
| 12920 | _ACEOF |
| 12921 | rm -f conftest.$ac_objext |
| 12922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12923 | (eval $ac_compile) 2>&5 |
| 12924 | ac_status=$? |
| 12925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12926 | (exit $ac_status); } && |
| 12927 | { ac_try='test -s conftest.$ac_objext' |
| 12928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12929 | (eval $ac_try) 2>&5 |
| 12930 | ac_status=$? |
| 12931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12932 | (exit $ac_status); }; }; then |
| 12933 | ac_lo=$ac_mid; break |
| 12934 | else |
| 12935 | echo "$as_me: failed program was:" >&5 |
| 12936 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12937 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12938 | if test $ac_mid -le $ac_hi; then |
| 12939 | ac_lo= ac_hi= |
| 12940 | break |
| 12941 | fi |
| 12942 | ac_mid=`expr 2 '*' $ac_mid` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12943 | fi |
| 12944 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12945 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12946 | else |
| 12947 | echo "$as_me: failed program was:" >&5 |
| 12948 | cat conftest.$ac_ext >&5 |
| 12949 | ac_lo= ac_hi= |
| 12950 | fi |
| 12951 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12952 | fi |
| 12953 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12954 | # Binary search between lo and hi bounds. |
| 12955 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12956 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12957 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12958 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12959 | #include "confdefs.h" |
| 12960 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12961 | #ifdef F77_DUMMY_MAIN |
| 12962 | # ifdef __cplusplus |
| 12963 | extern "C" |
| 12964 | # endif |
| 12965 | int F77_DUMMY_MAIN() { return 1; } |
| 12966 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12967 | int |
| 12968 | main () |
| 12969 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12970 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 12971 | test_array [0] = 0 |
| 12972 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12973 | ; |
| 12974 | return 0; |
| 12975 | } |
| 12976 | _ACEOF |
| 12977 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12979 | (eval $ac_compile) 2>&5 |
| 12980 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12982 | (exit $ac_status); } && |
| 12983 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12985 | (eval $ac_try) 2>&5 |
| 12986 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12988 | (exit $ac_status); }; }; then |
| 12989 | ac_hi=$ac_mid |
| 12990 | else |
| 12991 | echo "$as_me: failed program was:" >&5 |
| 12992 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12993 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12994 | fi |
| 12995 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12996 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12997 | case $ac_lo in |
| 12998 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 12999 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 13000 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 13001 | { (exit 1); exit 1; }; } ;; |
| 13002 | esac |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13003 | else |
| 13004 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13005 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13006 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 13007 | { (exit 1); exit 1; }; } |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13008 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13009 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13010 | #line $LINENO "configure" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13011 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13012 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13013 | long longval () { return (long) (sizeof (long long)); } |
| 13014 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
| 13015 | #include <stdio.h> |
| 13016 | #include <stdlib.h> |
| 13017 | #ifdef F77_DUMMY_MAIN |
| 13018 | # ifdef __cplusplus |
| 13019 | extern "C" |
| 13020 | # endif |
| 13021 | int F77_DUMMY_MAIN() { return 1; } |
| 13022 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13023 | int |
| 13024 | main () |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13025 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13026 | |
| 13027 | FILE *f = fopen ("conftest.val", "w"); |
| 13028 | if (! f) |
| 13029 | exit (1); |
| 13030 | if (((long) (sizeof (long long))) < 0) |
| 13031 | { |
| 13032 | long i = longval (); |
| 13033 | if (i != ((long) (sizeof (long long)))) |
| 13034 | exit (1); |
| 13035 | fprintf (f, "%ld\n", i); |
| 13036 | } |
| 13037 | else |
| 13038 | { |
| 13039 | unsigned long i = ulongval (); |
| 13040 | if (i != ((long) (sizeof (long long)))) |
| 13041 | exit (1); |
| 13042 | fprintf (f, "%lu\n", i); |
| 13043 | } |
| 13044 | exit (ferror (f) || fclose (f) != 0); |
| 13045 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13046 | ; |
| 13047 | return 0; |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13048 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13049 | _ACEOF |
| 13050 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13052 | (eval $ac_link) 2>&5 |
| 13053 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13055 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13057 | (eval $ac_try) 2>&5 |
| 13058 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13060 | (exit $ac_status); }; }; then |
| 13061 | ac_cv_sizeof_long_long=`cat conftest.val` |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13062 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13063 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13064 | echo "$as_me: failed program was:" >&5 |
| 13065 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13066 | ( exit $ac_status ) |
| 13067 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 13068 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 13069 | { (exit 1); exit 1; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13070 | fi |
| 13071 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13072 | fi |
| 13073 | fi |
| 13074 | rm -f conftest.val |
| 13075 | else |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13076 | ac_cv_sizeof_long_long=0 |
| 13077 | fi |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13078 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13079 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13080 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13081 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13082 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13083 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13084 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13085 | |
| 13086 | |
| 13087 | echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13088 | echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6 |
| 13089 | if test "${wine_cv_linux_input_h+set}" = set; then |
| 13090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 13091 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13092 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13093 | #line $LINENO "configure" |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 13094 | #include "confdefs.h" |
| 13095 | |
| 13096 | #include <linux/input.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13097 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13098 | #ifdef F77_DUMMY_MAIN |
| 13099 | # ifdef __cplusplus |
| 13100 | extern "C" |
| 13101 | # endif |
| 13102 | int F77_DUMMY_MAIN() { return 1; } |
| 13103 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13104 | int |
| 13105 | main () |
| 13106 | { |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 13107 | |
| 13108 | int foo = EVIOCGBIT(EV_ABS,42); |
| 13109 | int bar = BTN_PINKIE; |
| 13110 | int fortytwo = 42; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13111 | |
| 13112 | ; |
| 13113 | return 0; |
| 13114 | } |
| 13115 | _ACEOF |
| 13116 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13118 | (eval $ac_compile) 2>&5 |
| 13119 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13121 | (exit $ac_status); } && |
| 13122 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13124 | (eval $ac_try) 2>&5 |
| 13125 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13127 | (exit $ac_status); }; }; then |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 13128 | wine_cv_linux_input_h=yes |
| 13129 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13130 | echo "$as_me: failed program was:" >&5 |
| 13131 | cat conftest.$ac_ext >&5 |
| 13132 | wine_cv_linux_input_h=no |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 13133 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13134 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 13135 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13136 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13137 | echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13138 | echo "${ECHO_T}$wine_cv_linux_input_h" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 13139 | if test "$wine_cv_linux_input_h" = "yes" |
| 13140 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13141 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13142 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 13143 | #define HAVE_CORRECT_LINUXINPUT_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13144 | _ACEOF |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 13145 | |
| 13146 | fi |
| 13147 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13148 | |
| 13149 | echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13150 | echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6 |
| 13151 | if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then |
| 13152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13153 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13154 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13155 | #line $LINENO "configure" |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13156 | #include "confdefs.h" |
| 13157 | |
| 13158 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13159 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13160 | #ifdef F77_DUMMY_MAIN |
| 13161 | # ifdef __cplusplus |
| 13162 | extern "C" |
| 13163 | # endif |
| 13164 | int F77_DUMMY_MAIN() { return 1; } |
| 13165 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13166 | int |
| 13167 | main () |
| 13168 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13169 | |
| 13170 | char *name=NULL; |
| 13171 | struct hostent he; |
| 13172 | struct hostent *result; |
| 13173 | char *buf=NULL; |
| 13174 | int bufsize=0; |
| 13175 | int res,errnr; |
| 13176 | char *addr=NULL; |
| 13177 | int addrlen=0; |
| 13178 | int addrtype=0; |
| 13179 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 13180 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13181 | |
| 13182 | ; |
| 13183 | return 0; |
| 13184 | } |
| 13185 | _ACEOF |
| 13186 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13188 | (eval $ac_compile) 2>&5 |
| 13189 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13191 | (exit $ac_status); } && |
| 13192 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13194 | (eval $ac_try) 2>&5 |
| 13195 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13197 | (exit $ac_status); }; }; then |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13198 | wine_cv_linux_gethostbyname_r_6=yes |
| 13199 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13200 | echo "$as_me: failed program was:" >&5 |
| 13201 | cat conftest.$ac_ext >&5 |
| 13202 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13203 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13204 | fi |
| 13205 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13206 | |
| 13207 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13208 | echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13209 | echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13210 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 13211 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13212 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13213 | cat >>confdefs.h <<\_ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13214 | #define HAVE_LINUX_GETHOSTBYNAME_R_6 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13215 | _ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13216 | |
| 13217 | fi |
| 13218 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13219 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13220 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13221 | echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13222 | echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6 |
| 13223 | if test "${wine_cv_linux_joystick_22_api+set}" = set; then |
| 13224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13225 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13226 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13227 | #line $LINENO "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13228 | #include "confdefs.h" |
| 13229 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13230 | #include <sys/ioctl.h> |
| 13231 | #include <linux/joystick.h> |
| 13232 | |
| 13233 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 13234 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 13235 | #error "no 2.2 header" |
| 13236 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13237 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13238 | #ifdef F77_DUMMY_MAIN |
| 13239 | # ifdef __cplusplus |
| 13240 | extern "C" |
| 13241 | # endif |
| 13242 | int F77_DUMMY_MAIN() { return 1; } |
| 13243 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13244 | int |
| 13245 | main () |
| 13246 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13247 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13248 | ; |
| 13249 | return 0; |
| 13250 | } |
| 13251 | _ACEOF |
| 13252 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13254 | (eval $ac_compile) 2>&5 |
| 13255 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13257 | (exit $ac_status); } && |
| 13258 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13260 | (eval $ac_try) 2>&5 |
| 13261 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13263 | (exit $ac_status); }; }; then |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13264 | wine_cv_linux_joystick_22_api=yes |
| 13265 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13266 | echo "$as_me: failed program was:" >&5 |
| 13267 | cat conftest.$ac_ext >&5 |
| 13268 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13269 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13270 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13271 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13272 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13273 | echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13274 | echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6 |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 13275 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13276 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13277 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13278 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13279 | #define HAVE_LINUX_22_JOYSTICK_API 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13280 | _ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13281 | |
| 13282 | fi |
| 13283 | fi |
| 13284 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13285 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13286 | if test "$ac_cv_header_sys_vfs_h" = "yes" |
| 13287 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13288 | echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13289 | echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6 |
| 13290 | if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then |
| 13291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13292 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13293 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13294 | #line $LINENO "configure" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13295 | #include "confdefs.h" |
| 13296 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13297 | #include <sys/types.h> |
| 13298 | #ifdef HAVE_SYS_PARAM_H |
| 13299 | # include <sys/param.h> |
| 13300 | #endif |
| 13301 | #include <sys/vfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13302 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13303 | #ifdef F77_DUMMY_MAIN |
| 13304 | # ifdef __cplusplus |
| 13305 | extern "C" |
| 13306 | # endif |
| 13307 | int F77_DUMMY_MAIN() { return 1; } |
| 13308 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13309 | int |
| 13310 | main () |
| 13311 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13312 | |
| 13313 | struct statfs stfs; |
| 13314 | |
| 13315 | memset(&stfs,0,sizeof(stfs)); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13316 | |
| 13317 | ; |
| 13318 | return 0; |
| 13319 | } |
| 13320 | _ACEOF |
| 13321 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13323 | (eval $ac_compile) 2>&5 |
| 13324 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13326 | (exit $ac_status); } && |
| 13327 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13329 | (eval $ac_try) 2>&5 |
| 13330 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13332 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13333 | wine_cv_sys_vfs_has_statfs=yes |
| 13334 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13335 | echo "$as_me: failed program was:" >&5 |
| 13336 | cat conftest.$ac_ext >&5 |
| 13337 | wine_cv_sys_vfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13338 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13339 | fi |
| 13340 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13341 | |
| 13342 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13343 | echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13344 | echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13345 | if test "$wine_cv_sys_vfs_has_statfs" = "yes" |
| 13346 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13347 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13348 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13349 | #define STATFS_DEFINED_BY_SYS_VFS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13350 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13351 | |
| 13352 | fi |
| 13353 | fi |
| 13354 | |
| 13355 | if test "$ac_cv_header_sys_statfs_h" = "yes" |
| 13356 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13357 | echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13358 | echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6 |
| 13359 | if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then |
| 13360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13361 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13362 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13363 | #line $LINENO "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13364 | #include "confdefs.h" |
| 13365 | |
| 13366 | #include <sys/types.h> |
| 13367 | #ifdef HAVE_SYS_PARAM_H |
| 13368 | # include <sys/param.h> |
| 13369 | #endif |
| 13370 | #include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13371 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13372 | #ifdef F77_DUMMY_MAIN |
| 13373 | # ifdef __cplusplus |
| 13374 | extern "C" |
| 13375 | # endif |
| 13376 | int F77_DUMMY_MAIN() { return 1; } |
| 13377 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13378 | int |
| 13379 | main () |
| 13380 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13381 | |
| 13382 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13383 | |
| 13384 | ; |
| 13385 | return 0; |
| 13386 | } |
| 13387 | _ACEOF |
| 13388 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13390 | (eval $ac_compile) 2>&5 |
| 13391 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13393 | (exit $ac_status); } && |
| 13394 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13396 | (eval $ac_try) 2>&5 |
| 13397 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13399 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13400 | wine_cv_sys_statfs_has_statfs=yes |
| 13401 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13402 | echo "$as_me: failed program was:" >&5 |
| 13403 | cat conftest.$ac_ext >&5 |
| 13404 | wine_cv_sys_statfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13405 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13406 | fi |
| 13407 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13408 | |
| 13409 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13410 | echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13411 | echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13412 | if test "$wine_cv_sys_statfs_has_statfs" = "yes" |
| 13413 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13414 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13415 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13416 | #define STATFS_DEFINED_BY_SYS_STATFS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13417 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13418 | |
| 13419 | fi |
| 13420 | fi |
| 13421 | |
| 13422 | if test "$ac_cv_header_sys_mount_h" = "yes" |
| 13423 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13424 | echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13425 | echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6 |
| 13426 | if test "${wine_cv_sys_mount_has_statfs+set}" = set; then |
| 13427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13428 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13429 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13430 | #line $LINENO "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13431 | #include "confdefs.h" |
| 13432 | |
| 13433 | #include <sys/types.h> |
| 13434 | #ifdef HAVE_SYS_PARAM_H |
| 13435 | # include <sys/param.h> |
| 13436 | #endif |
| 13437 | #include <sys/mount.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13438 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13439 | #ifdef F77_DUMMY_MAIN |
| 13440 | # ifdef __cplusplus |
| 13441 | extern "C" |
| 13442 | # endif |
| 13443 | int F77_DUMMY_MAIN() { return 1; } |
| 13444 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13445 | int |
| 13446 | main () |
| 13447 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13448 | |
| 13449 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13450 | |
| 13451 | ; |
| 13452 | return 0; |
| 13453 | } |
| 13454 | _ACEOF |
| 13455 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13457 | (eval $ac_compile) 2>&5 |
| 13458 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13460 | (exit $ac_status); } && |
| 13461 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13463 | (eval $ac_try) 2>&5 |
| 13464 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13466 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13467 | wine_cv_sys_mount_has_statfs=yes |
| 13468 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13469 | echo "$as_me: failed program was:" >&5 |
| 13470 | cat conftest.$ac_ext >&5 |
| 13471 | wine_cv_sys_mount_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13472 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13473 | fi |
| 13474 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13475 | |
| 13476 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13477 | echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13478 | echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13479 | if test "$wine_cv_sys_mount_has_statfs" = "yes" |
| 13480 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13481 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13482 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13483 | #define STATFS_DEFINED_BY_SYS_MOUNT 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13484 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13485 | |
| 13486 | fi |
| 13487 | fi |
| 13488 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13489 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13490 | echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13491 | echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6 |
| 13492 | if test "${ac_cv_c_statfs_f_bfree+set}" = set; then |
| 13493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13494 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13495 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13496 | #line $LINENO "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13497 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13498 | #include <sys/types.h> |
| 13499 | #ifdef HAVE_SYS_PARAM_H |
| 13500 | # include <sys/param.h> |
| 13501 | #endif |
| 13502 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 13503 | # include <sys/mount.h> |
| 13504 | #else |
| 13505 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 13506 | # include <sys/vfs.h> |
| 13507 | # else |
| 13508 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 13509 | # include <sys/statfs.h> |
| 13510 | # endif |
| 13511 | # endif |
| 13512 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13513 | #ifdef F77_DUMMY_MAIN |
| 13514 | # ifdef __cplusplus |
| 13515 | extern "C" |
| 13516 | # endif |
| 13517 | int F77_DUMMY_MAIN() { return 1; } |
| 13518 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13519 | int |
| 13520 | main () |
| 13521 | { |
| 13522 | struct statfs s; s.f_bfree = 0 |
| 13523 | ; |
| 13524 | return 0; |
| 13525 | } |
| 13526 | _ACEOF |
| 13527 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13529 | (eval $ac_compile) 2>&5 |
| 13530 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13532 | (exit $ac_status); } && |
| 13533 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13535 | (eval $ac_try) 2>&5 |
| 13536 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13538 | (exit $ac_status); }; }; then |
| 13539 | ac_cv_c_statfs_f_bfree="yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13540 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13541 | echo "$as_me: failed program was:" >&5 |
| 13542 | cat conftest.$ac_ext >&5 |
| 13543 | ac_cv_c_statfs_f_bfree="no" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13544 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13545 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13546 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13547 | echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13548 | echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6 |
| 13549 | if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13550 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13551 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13552 | #define STATFS_HAS_BFREE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13553 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13554 | |
| 13555 | fi |
| 13556 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13557 | |
| 13558 | |
| 13559 | echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13560 | echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6 |
| 13561 | if test "${ac_cv_c_statfs_f_bavail+set}" = set; then |
| 13562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13563 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13564 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13565 | #line $LINENO "configure" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13566 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13567 | #include <sys/types.h> |
| 13568 | #ifdef HAVE_SYS_PARAM_H |
| 13569 | # include <sys/param.h> |
| 13570 | #endif |
| 13571 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 13572 | # include <sys/mount.h> |
| 13573 | #else |
| 13574 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 13575 | # include <sys/vfs.h> |
| 13576 | # else |
| 13577 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 13578 | # include <sys/statfs.h> |
| 13579 | # endif |
| 13580 | # endif |
| 13581 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13582 | #ifdef F77_DUMMY_MAIN |
| 13583 | # ifdef __cplusplus |
| 13584 | extern "C" |
| 13585 | # endif |
| 13586 | int F77_DUMMY_MAIN() { return 1; } |
| 13587 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13588 | int |
| 13589 | main () |
| 13590 | { |
| 13591 | struct statfs s; s.f_bavail = 0 |
| 13592 | ; |
| 13593 | return 0; |
| 13594 | } |
| 13595 | _ACEOF |
| 13596 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13598 | (eval $ac_compile) 2>&5 |
| 13599 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13601 | (exit $ac_status); } && |
| 13602 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13604 | (eval $ac_try) 2>&5 |
| 13605 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13607 | (exit $ac_status); }; }; then |
| 13608 | ac_cv_c_statfs_f_bavail="yes" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13609 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13610 | echo "$as_me: failed program was:" >&5 |
| 13611 | cat conftest.$ac_ext >&5 |
| 13612 | ac_cv_c_statfs_f_bavail="no" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13613 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13614 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13615 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13616 | echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13617 | echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6 |
| 13618 | if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13619 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13620 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13621 | #define STATFS_HAS_BAVAIL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13622 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13623 | |
| 13624 | fi |
| 13625 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13626 | |
| 13627 | |
| 13628 | echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13629 | echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6 |
| 13630 | if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then |
| 13631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13632 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13633 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13634 | #line $LINENO "configure" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13635 | #include "confdefs.h" |
| 13636 | #include <sys/types.h> |
| 13637 | #include <sys/socket.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13638 | #ifdef F77_DUMMY_MAIN |
| 13639 | # ifdef __cplusplus |
| 13640 | extern "C" |
| 13641 | # endif |
| 13642 | int F77_DUMMY_MAIN() { return 1; } |
| 13643 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13644 | int |
| 13645 | main () |
| 13646 | { |
| 13647 | struct msghdr s; s.msg_accrights = 0 |
| 13648 | ; |
| 13649 | return 0; |
| 13650 | } |
| 13651 | _ACEOF |
| 13652 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13654 | (eval $ac_compile) 2>&5 |
| 13655 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13657 | (exit $ac_status); } && |
| 13658 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13660 | (eval $ac_try) 2>&5 |
| 13661 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13663 | (exit $ac_status); }; }; then |
| 13664 | ac_cv_c_msghdr_msg_accrights="yes" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13665 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13666 | echo "$as_me: failed program was:" >&5 |
| 13667 | cat conftest.$ac_ext >&5 |
| 13668 | ac_cv_c_msghdr_msg_accrights="no" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13669 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13670 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13671 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13672 | echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13673 | echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6 |
| 13674 | if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13675 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13676 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13677 | #define HAVE_MSGHDR_ACCRIGHTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13678 | _ACEOF |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13679 | |
| 13680 | fi |
| 13681 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13682 | |
| 13683 | |
| 13684 | echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13685 | echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6 |
| 13686 | if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then |
| 13687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 13688 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13689 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13690 | #line $LINENO "configure" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 13691 | #include "confdefs.h" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13692 | #include <sys/types.h> |
| 13693 | #include <sys/socket.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13694 | #ifdef F77_DUMMY_MAIN |
| 13695 | # ifdef __cplusplus |
| 13696 | extern "C" |
| 13697 | # endif |
| 13698 | int F77_DUMMY_MAIN() { return 1; } |
| 13699 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13700 | int |
| 13701 | main () |
| 13702 | { |
| 13703 | struct sockaddr s; s.sa_len = 0 |
| 13704 | ; |
| 13705 | return 0; |
| 13706 | } |
| 13707 | _ACEOF |
| 13708 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13710 | (eval $ac_compile) 2>&5 |
| 13711 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13713 | (exit $ac_status); } && |
| 13714 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13716 | (eval $ac_try) 2>&5 |
| 13717 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13719 | (exit $ac_status); }; }; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13720 | ac_cv_c_sockaddr_sa_len="yes" |
| 13721 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13722 | echo "$as_me: failed program was:" >&5 |
| 13723 | cat conftest.$ac_ext >&5 |
| 13724 | ac_cv_c_sockaddr_sa_len="no" |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13725 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13726 | rm -f conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13727 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13728 | echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13729 | echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6 |
| 13730 | if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13731 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13732 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13733 | #define HAVE_SOCKADDR_SA_LEN 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13734 | _ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13735 | |
| 13736 | fi |
| 13737 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13738 | |
| 13739 | |
| 13740 | echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13741 | echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6 |
| 13742 | if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then |
| 13743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13744 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13745 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13746 | #line $LINENO "configure" |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13747 | #include "confdefs.h" |
| 13748 | #include <sys/types.h> |
| 13749 | #include <sys/socket.h> |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13750 | #include <sys/un.h> |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13751 | #ifdef F77_DUMMY_MAIN |
| 13752 | # ifdef __cplusplus |
| 13753 | extern "C" |
| 13754 | # endif |
| 13755 | int F77_DUMMY_MAIN() { return 1; } |
| 13756 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13757 | int |
| 13758 | main () |
| 13759 | { |
| 13760 | struct sockaddr_un s; s.sun_len = 0 |
| 13761 | ; |
| 13762 | return 0; |
| 13763 | } |
| 13764 | _ACEOF |
| 13765 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13767 | (eval $ac_compile) 2>&5 |
| 13768 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13770 | (exit $ac_status); } && |
| 13771 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13773 | (eval $ac_try) 2>&5 |
| 13774 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13776 | (exit $ac_status); }; }; then |
| 13777 | ac_cv_c_sockaddr_un_sun_len="yes" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13778 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13779 | echo "$as_me: failed program was:" >&5 |
| 13780 | cat conftest.$ac_ext >&5 |
| 13781 | ac_cv_c_sockaddr_un_sun_len="no" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13782 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13783 | rm -f conftest.$ac_objext conftest.$ac_ext |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13784 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13785 | echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13786 | echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6 |
| 13787 | if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13788 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13789 | cat >>confdefs.h <<\_ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13790 | #define HAVE_SOCKADDR_SUN_LEN 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13791 | _ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13792 | |
| 13793 | fi |
| 13794 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13795 | |
| 13796 | |
| 13797 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 13798 | case $host_cpu in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13799 | *i345678986* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13800 | echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13801 | echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6 |
| 13802 | if test "${ac_cv_cpp_def_i386+set}" = set; then |
| 13803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13804 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13805 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13806 | #line $LINENO "configure" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13807 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13808 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 13809 | yes |
| 13810 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13811 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 13812 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13813 | egrep "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 13814 | ac_cv_cpp_def_i386="yes" |
| 13815 | else |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 13816 | ac_cv_cpp_def_i386="no" |
| 13817 | fi |
| 13818 | rm -f conftest* |
| 13819 | |
| 13820 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13821 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13822 | echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6 |
| 13823 | ;; |
| 13824 | esac |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 13825 | if test "$ac_cv_cpp_def_i386" = "yes" |
| 13826 | then |
| 13827 | CFLAGS="$CFLAGS -D__i386__" |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 13828 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 13829 | fi |
| 13830 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13831 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13832 | case $host_cpu in |
| 13833 | *sparc* ) |
| 13834 | echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5 |
| 13835 | echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6 |
| 13836 | if test "${ac_cv_cpp_def_sparc+set}" = set; then |
| 13837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13838 | else |
| 13839 | cat >conftest.$ac_ext <<_ACEOF |
| 13840 | #line $LINENO "configure" |
| 13841 | #include "confdefs.h" |
| 13842 | #ifndef __sparc__ |
| 13843 | yes |
| 13844 | #endif |
| 13845 | _ACEOF |
| 13846 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13847 | egrep "yes" >/dev/null 2>&1; then |
| 13848 | ac_cv_cpp_def_sparc="yes" |
| 13849 | else |
| 13850 | ac_cv_cpp_def_sparc="no" |
| 13851 | fi |
| 13852 | rm -f conftest* |
| 13853 | |
| 13854 | fi |
| 13855 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sparc" >&5 |
| 13856 | echo "${ECHO_T}$ac_cv_cpp_def_sparc" >&6 |
| 13857 | ;; |
| 13858 | esac |
| 13859 | if test "$ac_cv_cpp_def_sparc" = "yes" |
| 13860 | then |
| 13861 | CFLAGS="$CFLAGS -D__sparc__" |
| 13862 | LINTFLAGS="$LINTFLAGS -D__sparc__" |
| 13863 | fi |
| 13864 | |
| 13865 | |
| 13866 | case $host_vendor in |
| 13867 | *sun* ) |
| 13868 | echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5 |
| 13869 | echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6 |
| 13870 | if test "${ac_cv_cpp_def_sun+set}" = set; then |
| 13871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13872 | else |
| 13873 | cat >conftest.$ac_ext <<_ACEOF |
| 13874 | #line $LINENO "configure" |
| 13875 | #include "confdefs.h" |
| 13876 | #ifndef __sun__ |
| 13877 | yes |
| 13878 | #endif |
| 13879 | _ACEOF |
| 13880 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13881 | egrep "yes" >/dev/null 2>&1; then |
| 13882 | ac_cv_cpp_def_sun="yes" |
| 13883 | else |
| 13884 | ac_cv_cpp_def_sun="no" |
| 13885 | fi |
| 13886 | rm -f conftest* |
| 13887 | |
| 13888 | fi |
| 13889 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sun" >&5 |
| 13890 | echo "${ECHO_T}$ac_cv_cpp_def_sun" >&6 |
| 13891 | ;; |
| 13892 | esac |
| 13893 | if test "$ac_cv_cpp_def_sun" = "yes" |
| 13894 | then |
| 13895 | CFLAGS="$CFLAGS -D__sun__" |
| 13896 | LINTFLAGS="$LINTFLAGS -D__sun__" |
| 13897 | fi |
| 13898 | |
| 13899 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13900 | |
| 13901 | |
| 13902 | |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13903 | ac_config_commands="$ac_config_commands controls" |
| 13904 | |
Alexandre Julliard | c345f7b | 2002-07-10 03:30:14 +0000 | [diff] [blame] | 13905 | ac_config_commands="$ac_config_commands dlls/advapi32/tests" |
| 13906 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13907 | ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 13908 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13909 | ac_config_commands="$ac_config_commands dlls/ddraw/dclipper" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 13910 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13911 | ac_config_commands="$ac_config_commands dlls/ddraw/ddraw" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13912 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13913 | ac_config_commands="$ac_config_commands dlls/ddraw/direct3d" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 13914 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13915 | ac_config_commands="$ac_config_commands dlls/ddraw/dpalette" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 13916 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13917 | ac_config_commands="$ac_config_commands dlls/ddraw/dsurface" |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 13918 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13919 | ac_config_commands="$ac_config_commands dlls/dinput/joystick" |
| 13920 | |
| 13921 | ac_config_commands="$ac_config_commands dlls/dinput/keyboard" |
| 13922 | |
| 13923 | ac_config_commands="$ac_config_commands dlls/dinput/mouse" |
| 13924 | |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 13925 | ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv" |
| 13926 | |
| 13927 | ac_config_commands="$ac_config_commands dlls/gdi/mfdrv" |
| 13928 | |
| 13929 | ac_config_commands="$ac_config_commands dlls/gdi/win16drv" |
| 13930 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13931 | ac_config_commands="$ac_config_commands dlls/kernel/messages" |
| 13932 | |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 13933 | ac_config_commands="$ac_config_commands dlls/kernel/tests" |
| 13934 | |
Marcus Meissner | e8d9770 | 2002-03-26 01:54:25 +0000 | [diff] [blame] | 13935 | ac_config_commands="$ac_config_commands dlls/oleaut32/tests" |
| 13936 | |
Juergen Schmied | c74a791 | 2002-05-09 19:48:07 +0000 | [diff] [blame] | 13937 | ac_config_commands="$ac_config_commands dlls/shlwapi/tests" |
| 13938 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13939 | ac_config_commands="$ac_config_commands dlls/user/dde" |
| 13940 | |
| 13941 | ac_config_commands="$ac_config_commands dlls/user/resources" |
| 13942 | |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 13943 | ac_config_commands="$ac_config_commands dlls/user/tests" |
| 13944 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13945 | ac_config_commands="$ac_config_commands dlls/wineps/data" |
| 13946 | |
Aric Stewart | ff9b9d4 | 2002-06-21 23:59:49 +0000 | [diff] [blame] | 13947 | ac_config_commands="$ac_config_commands dlls/wininet/tests" |
| 13948 | |
Alexandre Julliard | 9a68b7b | 2002-04-27 21:19:22 +0000 | [diff] [blame] | 13949 | ac_config_commands="$ac_config_commands dlls/winsock/tests" |
| 13950 | |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13951 | ac_config_commands="$ac_config_commands files" |
| 13952 | |
| 13953 | ac_config_commands="$ac_config_commands graphics" |
| 13954 | |
| 13955 | ac_config_commands="$ac_config_commands graphics/x11drv" |
| 13956 | |
| 13957 | ac_config_commands="$ac_config_commands if1632" |
| 13958 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13959 | ac_config_commands="$ac_config_commands include/wine" |
| 13960 | |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13961 | ac_config_commands="$ac_config_commands loader" |
| 13962 | |
| 13963 | ac_config_commands="$ac_config_commands loader/ne" |
| 13964 | |
| 13965 | ac_config_commands="$ac_config_commands memory" |
| 13966 | |
| 13967 | ac_config_commands="$ac_config_commands misc" |
| 13968 | |
| 13969 | ac_config_commands="$ac_config_commands msdos" |
| 13970 | |
| 13971 | ac_config_commands="$ac_config_commands objects" |
| 13972 | |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 13973 | ac_config_commands="$ac_config_commands programs/regapi/tests" |
| 13974 | |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 13975 | ac_config_commands="$ac_config_commands programs/regedit/tests" |
| 13976 | |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 13977 | ac_config_commands="$ac_config_commands programs/winetest/tests" |
| 13978 | |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13979 | ac_config_commands="$ac_config_commands relay32" |
| 13980 | |
| 13981 | ac_config_commands="$ac_config_commands scheduler" |
| 13982 | |
| 13983 | ac_config_commands="$ac_config_commands win32" |
| 13984 | |
| 13985 | ac_config_commands="$ac_config_commands windows" |
| 13986 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 13987 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 13988 | MAKE_RULES=Make.rules |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13989 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13990 | |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 13991 | MAKE_DLL_RULES=dlls/Makedll.rules |
| 13992 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13993 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 13994 | MAKE_PROG_RULES=programs/Makeprog.rules |
| 13995 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13996 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 13997 | ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/d3d8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/netapi32/Makefile dlls/ntdll/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/user/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13998 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 13999 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14000 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14001 | # This file is a shell script that caches the results of configure |
| 14002 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14003 | # scripts and configure runs, see configure's option --config-cache. |
| 14004 | # It is not useful on other systems. If it contains results you don't |
| 14005 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14006 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14007 | # config.status only pays attention to the cache file if you give it |
| 14008 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14009 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14010 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 14011 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 14012 | # following values. |
| 14013 | |
| 14014 | _ACEOF |
| 14015 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 14016 | # The following way of writing the cache mishandles newlines in values, |
| 14017 | # but we know of no workaround that is simple, portable, and efficient. |
| 14018 | # So, don't put newlines in cache variables' values. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14019 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 14020 | # and sets the high bit in the cache file unless we assign to the vars. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14021 | { |
| 14022 | (set) 2>&1 | |
| 14023 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 14024 | *ac_space=\ *) |
| 14025 | # `set' does not quote correctly, so add quotes (double-quote |
| 14026 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 14027 | sed -n \ |
| 14028 | "s/'/'\\\\''/g; |
| 14029 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 14030 | ;; |
| 14031 | *) |
| 14032 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 14033 | sed -n \ |
| 14034 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 14035 | ;; |
| 14036 | esac; |
| 14037 | } | |
| 14038 | sed ' |
| 14039 | t clear |
| 14040 | : clear |
| 14041 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 14042 | t end |
| 14043 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 14044 | : end' >>confcache |
| 14045 | if cmp -s $cache_file confcache; then :; else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14046 | if test -w $cache_file; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14047 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 14048 | cat confcache >$cache_file |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14049 | else |
| 14050 | echo "not updating unwritable cache $cache_file" |
| 14051 | fi |
| 14052 | fi |
| 14053 | rm -f confcache |
| 14054 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14055 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 14056 | # Let make expand exec_prefix. |
| 14057 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 14058 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14059 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 14060 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 14061 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14062 | # (actually we leave an empty line to preserve line numbers). |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14063 | if test "x$srcdir" = x.; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14064 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 14065 | s/:*\$(srcdir):*/:/; |
| 14066 | s/:*\${srcdir}:*/:/; |
| 14067 | s/:*@srcdir@:*/:/; |
| 14068 | s/^\([^=]*=[ ]*\):*/\1/; |
| 14069 | s/:*$//; |
| 14070 | s/^[^=]*=[ ]*$//; |
| 14071 | }' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14072 | fi |
| 14073 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 14074 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14075 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14076 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14077 | : ${CONFIG_STATUS=./config.status} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14078 | ac_clean_files_save=$ac_clean_files |
| 14079 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14080 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14081 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 14082 | cat >$CONFIG_STATUS <<_ACEOF |
| 14083 | #! $SHELL |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14084 | # Generated by $as_me. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14085 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14086 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14087 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14088 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14089 | debug=false |
| 14090 | SHELL=\${CONFIG_SHELL-$SHELL} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14091 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14092 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14093 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14094 | |
| 14095 | ## --------------------- ## |
| 14096 | ## M4sh Initialization. ## |
| 14097 | ## --------------------- ## |
| 14098 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14099 | # Be Bourne compatible |
| 14100 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14101 | emulate sh |
| 14102 | NULLCMD=: |
| 14103 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 14104 | set -o posix |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 14105 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14106 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14107 | # NLS nuisances. |
| 14108 | # Support unset when possible. |
| 14109 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 14110 | as_unset=unset |
| 14111 | else |
| 14112 | as_unset=false |
| 14113 | fi |
| 14114 | |
| 14115 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 14116 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 14117 | { LANG=C; export LANG; } |
| 14118 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 14119 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 14120 | { LC_ALL=C; export LC_ALL; } |
| 14121 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 14122 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 14123 | { LC_TIME=C; export LC_TIME; } |
| 14124 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 14125 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 14126 | { LC_CTYPE=C; export LC_CTYPE; } |
| 14127 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 14128 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 14129 | { LANGUAGE=C; export LANGUAGE; } |
| 14130 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 14131 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 14132 | { LC_COLLATE=C; export LC_COLLATE; } |
| 14133 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 14134 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 14135 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 14136 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 14137 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 14138 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 14139 | |
| 14140 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14141 | # Name of the executable. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14142 | as_me=`(basename "$0") 2>/dev/null || |
| 14143 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 14144 | X"$0" : 'X\(//\)$' \| \ |
| 14145 | X"$0" : 'X\(/\)$' \| \ |
| 14146 | . : '\(.\)' 2>/dev/null || |
| 14147 | echo X/"$0" | |
| 14148 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 14149 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 14150 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 14151 | s/.*/./; q'` |
| 14152 | |
| 14153 | # PATH needs CR, and LINENO needs CR and PATH. |
| 14154 | # Avoid depending upon Character Ranges. |
| 14155 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 14156 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 14157 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14158 | as_cr_digits='0123456789' |
| 14159 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 14160 | |
| 14161 | # The user is always right. |
| 14162 | if test "${PATH_SEPARATOR+set}" != set; then |
| 14163 | echo "#! /bin/sh" >conftest.sh |
| 14164 | echo "exit 0" >>conftest.sh |
| 14165 | chmod +x conftest.sh |
| 14166 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 14167 | PATH_SEPARATOR=';' |
| 14168 | else |
| 14169 | PATH_SEPARATOR=: |
| 14170 | fi |
| 14171 | rm -f conftest.sh |
| 14172 | fi |
| 14173 | |
| 14174 | |
| 14175 | as_lineno_1=$LINENO |
| 14176 | as_lineno_2=$LINENO |
| 14177 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 14178 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 14179 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 14180 | # Find who we are. Look in the path if we contain no path at all |
| 14181 | # relative or not. |
| 14182 | case $0 in |
| 14183 | *[\\/]* ) as_myself=$0 ;; |
| 14184 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14185 | for as_dir in $PATH |
| 14186 | do |
| 14187 | IFS=$as_save_IFS |
| 14188 | test -z "$as_dir" && as_dir=. |
| 14189 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 14190 | done |
| 14191 | |
| 14192 | ;; |
| 14193 | esac |
| 14194 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 14195 | # in which case we are not to be found in the path. |
| 14196 | if test "x$as_myself" = x; then |
| 14197 | as_myself=$0 |
| 14198 | fi |
| 14199 | if test ! -f "$as_myself"; then |
| 14200 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 14201 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 14202 | { (exit 1); exit 1; }; } |
| 14203 | fi |
| 14204 | case $CONFIG_SHELL in |
| 14205 | '') |
| 14206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14207 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 14208 | do |
| 14209 | IFS=$as_save_IFS |
| 14210 | test -z "$as_dir" && as_dir=. |
| 14211 | for as_base in sh bash ksh sh5; do |
| 14212 | case $as_dir in |
| 14213 | /*) |
| 14214 | if ("$as_dir/$as_base" -c ' |
| 14215 | as_lineno_1=$LINENO |
| 14216 | as_lineno_2=$LINENO |
| 14217 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 14218 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 14219 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 14220 | CONFIG_SHELL=$as_dir/$as_base |
| 14221 | export CONFIG_SHELL |
| 14222 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 14223 | fi;; |
| 14224 | esac |
| 14225 | done |
| 14226 | done |
| 14227 | ;; |
| 14228 | esac |
| 14229 | |
| 14230 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 14231 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 14232 | # line-number line before each line; the second 'sed' does the real |
| 14233 | # work. The second script uses 'N' to pair each line-number line |
| 14234 | # with the numbered line, and appends trailing '-' during |
| 14235 | # substitution so that $LINENO is not a special case at line end. |
| 14236 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 14237 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 14238 | sed '=' <$as_myself | |
| 14239 | sed ' |
| 14240 | N |
| 14241 | s,$,-, |
| 14242 | : loop |
| 14243 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 14244 | t loop |
| 14245 | s,-$,, |
| 14246 | s,^['$as_cr_digits']*\n,, |
| 14247 | ' >$as_me.lineno && |
| 14248 | chmod +x $as_me.lineno || |
| 14249 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 14250 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 14251 | { (exit 1); exit 1; }; } |
| 14252 | |
| 14253 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 14254 | # (the dirname of $[0] is not the place where we might find the |
| 14255 | # original and so on. Autoconf is especially sensible to this). |
| 14256 | . ./$as_me.lineno |
| 14257 | # Exit status is that of the last command. |
| 14258 | exit |
| 14259 | } |
| 14260 | |
| 14261 | |
| 14262 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 14263 | *c*,-n*) ECHO_N= ECHO_C=' |
| 14264 | ' ECHO_T=' ' ;; |
| 14265 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 14266 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 14267 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14268 | |
| 14269 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 14270 | as_expr=expr |
| 14271 | else |
| 14272 | as_expr=false |
| 14273 | fi |
| 14274 | |
| 14275 | rm -f conf$$ conf$$.exe conf$$.file |
| 14276 | echo >conf$$.file |
| 14277 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 14278 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 14279 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 14280 | if test -f conf$$.exe; then |
| 14281 | # Don't use ln at all; we don't have any links |
| 14282 | as_ln_s='cp -p' |
| 14283 | else |
| 14284 | as_ln_s='ln -s' |
| 14285 | fi |
| 14286 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 14287 | as_ln_s=ln |
| 14288 | else |
| 14289 | as_ln_s='cp -p' |
| 14290 | fi |
| 14291 | rm -f conf$$ conf$$.exe conf$$.file |
| 14292 | |
| 14293 | as_executable_p="test -f" |
| 14294 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14295 | # Sed expression to map a string onto a valid CPP name. |
| 14296 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14297 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14298 | # Sed expression to map a string onto a valid variable name. |
| 14299 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 14300 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14301 | |
| 14302 | # IFS |
| 14303 | # We need space, tab and new line, in precisely that order. |
| 14304 | as_nl=' |
| 14305 | ' |
| 14306 | IFS=" $as_nl" |
| 14307 | |
| 14308 | # CDPATH. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14309 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14310 | |
| 14311 | exec 6>&1 |
| 14312 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14313 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 14314 | # report actual input values of CONFIG_FILES etc. instead of their |
| 14315 | # values after options handling. Logging --version etc. is OK. |
| 14316 | exec 5>>config.log |
| 14317 | { |
| 14318 | echo |
| 14319 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 14320 | ## Running $as_me. ## |
| 14321 | _ASBOX |
| 14322 | } >&5 |
| 14323 | cat >&5 <<_CSEOF |
| 14324 | |
Alexandre Julliard | 390aa83 | 2002-07-11 01:30:53 +0000 | [diff] [blame] | 14325 | This file was extended by Wine $as_me 20020710, which was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14326 | generated by GNU Autoconf 2.53. Invocation command line was |
| 14327 | |
| 14328 | CONFIG_FILES = $CONFIG_FILES |
| 14329 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 14330 | CONFIG_LINKS = $CONFIG_LINKS |
| 14331 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 14332 | $ $0 $@ |
| 14333 | |
| 14334 | _CSEOF |
| 14335 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 14336 | echo >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14337 | _ACEOF |
| 14338 | |
| 14339 | # Files that config.status was made for. |
| 14340 | if test -n "$ac_config_files"; then |
| 14341 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 14342 | fi |
| 14343 | |
| 14344 | if test -n "$ac_config_headers"; then |
| 14345 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 14346 | fi |
| 14347 | |
| 14348 | if test -n "$ac_config_links"; then |
| 14349 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 14350 | fi |
| 14351 | |
| 14352 | if test -n "$ac_config_commands"; then |
| 14353 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 14354 | fi |
| 14355 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14356 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14357 | |
| 14358 | ac_cs_usage="\ |
| 14359 | \`$as_me' instantiates files from templates according to the |
| 14360 | current configuration. |
| 14361 | |
| 14362 | Usage: $0 [OPTIONS] [FILE]... |
| 14363 | |
| 14364 | -h, --help print this help, then exit |
| 14365 | -V, --version print version number, then exit |
| 14366 | -d, --debug don't remove temporary files |
| 14367 | --recheck update $as_me by reconfiguring in the same conditions |
| 14368 | --file=FILE[:TEMPLATE] |
| 14369 | instantiate the configuration file FILE |
| 14370 | --header=FILE[:TEMPLATE] |
| 14371 | instantiate the configuration header FILE |
| 14372 | |
| 14373 | Configuration files: |
| 14374 | $config_files |
| 14375 | |
| 14376 | Configuration headers: |
| 14377 | $config_headers |
| 14378 | |
| 14379 | Configuration commands: |
| 14380 | $config_commands |
| 14381 | |
| 14382 | Report bugs to <bug-autoconf@gnu.org>." |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14383 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 14384 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14385 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14386 | ac_cs_version="\\ |
Alexandre Julliard | 390aa83 | 2002-07-11 01:30:53 +0000 | [diff] [blame] | 14387 | Wine config.status 20020710 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14388 | configured by $0, generated by GNU Autoconf 2.53, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14389 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14390 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14391 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 14392 | Free Software Foundation, Inc. |
| 14393 | This config.status script is free software; the Free Software Foundation |
| 14394 | gives unlimited permission to copy, distribute and modify it." |
| 14395 | srcdir=$srcdir |
| 14396 | INSTALL="$INSTALL" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14397 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14398 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14399 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14400 | # If no file are specified by the user, then we need to provide default |
| 14401 | # value. By we need to know if files were specified by the user. |
| 14402 | ac_need_defaults=: |
| 14403 | while test $# != 0 |
| 14404 | do |
| 14405 | case $1 in |
| 14406 | --*=*) |
| 14407 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 14408 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 14409 | shift |
| 14410 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 14411 | shift |
| 14412 | ;; |
| 14413 | -*);; |
| 14414 | *) # This is not an option, so the user has probably given explicit |
| 14415 | # arguments. |
| 14416 | ac_need_defaults=false;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14417 | esac |
| 14418 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14419 | case $1 in |
| 14420 | # Handling of the options. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14421 | _ACEOF |
| 14422 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14423 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 14424 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 14425 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14426 | _ACEOF |
| 14427 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14428 | --version | --vers* | -V ) |
| 14429 | echo "$ac_cs_version"; exit 0 ;; |
| 14430 | --he | --h) |
| 14431 | # Conflict between --help and --header |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14432 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14433 | Try \`$0 --help' for more information." >&5 |
| 14434 | echo "$as_me: error: ambiguous option: $1 |
| 14435 | Try \`$0 --help' for more information." >&2;} |
| 14436 | { (exit 1); exit 1; }; };; |
| 14437 | --help | --hel | -h ) |
| 14438 | echo "$ac_cs_usage"; exit 0 ;; |
| 14439 | --debug | --d* | -d ) |
| 14440 | debug=: ;; |
| 14441 | --file | --fil | --fi | --f ) |
| 14442 | shift |
| 14443 | CONFIG_FILES="$CONFIG_FILES $1" |
| 14444 | ac_need_defaults=false;; |
| 14445 | --header | --heade | --head | --hea ) |
| 14446 | shift |
| 14447 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 14448 | ac_need_defaults=false;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14449 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14450 | # This is an error. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14451 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14452 | Try \`$0 --help' for more information." >&5 |
| 14453 | echo "$as_me: error: unrecognized option: $1 |
| 14454 | Try \`$0 --help' for more information." >&2;} |
| 14455 | { (exit 1); exit 1; }; } ;; |
| 14456 | |
| 14457 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 14458 | |
| 14459 | esac |
| 14460 | shift |
| 14461 | done |
| 14462 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14463 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14464 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14465 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14466 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14467 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14468 | |
| 14469 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14470 | for ac_config_target in $ac_config_targets |
| 14471 | do |
| 14472 | case "$ac_config_target" in |
| 14473 | # Handling of arguments. |
| 14474 | "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
| 14475 | "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
| 14476 | "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
| 14477 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14478 | "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;; |
| 14479 | "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;; |
| 14480 | "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;; |
| 14481 | "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;; |
| 14482 | "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;; |
John K. Hohm | 34909c2 | 2002-05-14 21:50:56 +0000 | [diff] [blame] | 14483 | "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14484 | "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;; |
| 14485 | "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;; |
| 14486 | "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;; |
| 14487 | "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;; |
Sylvain Petreolle | 3a99d8b | 2002-06-25 23:23:03 +0000 | [diff] [blame] | 14488 | "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14489 | "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;; |
| 14490 | "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;; |
| 14491 | "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;; |
| 14492 | "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;; |
Ove Kaaven | d2d08f0 | 2002-06-14 00:39:44 +0000 | [diff] [blame] | 14493 | "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14494 | "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;; |
| 14495 | "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;; |
| 14496 | "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;; |
| 14497 | "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;; |
| 14498 | "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;; |
| 14499 | "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;; |
| 14500 | "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;; |
| 14501 | "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;; |
| 14502 | "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;; |
| 14503 | "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;; |
| 14504 | "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;; |
| 14505 | "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;; |
| 14506 | "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;; |
Hidenori Takeshima | 0307f6d | 2002-03-23 20:18:11 +0000 | [diff] [blame] | 14507 | "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;; |
Eric Pouech | bed67fc | 2002-05-22 02:00:05 +0000 | [diff] [blame] | 14508 | "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;; |
Hidenori Takeshima | bcb9c46 | 2002-03-22 19:16:10 +0000 | [diff] [blame] | 14509 | "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;; |
Eric Pouech | b706b23 | 2002-06-04 17:53:46 +0000 | [diff] [blame] | 14510 | "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14511 | "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;; |
| 14512 | "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;; |
Mike McCormack | f6be044 | 2002-04-08 23:56:14 +0000 | [diff] [blame] | 14513 | "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14514 | "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;; |
| 14515 | "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;; |
| 14516 | "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;; |
| 14517 | "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;; |
| 14518 | "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;; |
| 14519 | "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;; |
| 14520 | "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;; |
| 14521 | "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;; |
| 14522 | "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;; |
| 14523 | "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;; |
| 14524 | "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;; |
| 14525 | "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;; |
| 14526 | "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;; |
| 14527 | "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;; |
| 14528 | "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;; |
| 14529 | "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;; |
| 14530 | "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;; |
| 14531 | "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;; |
| 14532 | "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;; |
| 14533 | "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;; |
| 14534 | "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;; |
| 14535 | "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;; |
| 14536 | "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;; |
| 14537 | "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;; |
| 14538 | "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;; |
| 14539 | "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;; |
| 14540 | "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;; |
Patrik Stridvall | 4c692b9 | 2002-04-29 18:43:35 +0000 | [diff] [blame] | 14541 | "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14542 | "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;; |
| 14543 | "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;; |
| 14544 | "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;; |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 14545 | "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14546 | "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;; |
| 14547 | "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;; |
| 14548 | "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;; |
| 14549 | "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;; |
| 14550 | "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;; |
| 14551 | "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;; |
| 14552 | "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;; |
| 14553 | "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;; |
| 14554 | "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;; |
| 14555 | "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;; |
| 14556 | "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;; |
| 14557 | "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;; |
| 14558 | "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;; |
| 14559 | "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;; |
| 14560 | "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;; |
| 14561 | "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;; |
| 14562 | "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;; |
| 14563 | "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;; |
Eric Pouech | a120ce0 | 2002-06-28 17:40:16 +0000 | [diff] [blame] | 14564 | "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;; |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14565 | "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;; |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14566 | "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;; |
| 14567 | "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14568 | "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;; |
| 14569 | "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;; |
| 14570 | "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;; |
| 14571 | "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;; |
| 14572 | "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;; |
| 14573 | "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;; |
| 14574 | "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;; |
| 14575 | "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;; |
| 14576 | "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14577 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
| 14578 | "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14579 | "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14580 | "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;; |
| 14581 | "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;; |
| 14582 | "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;; |
| 14583 | "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;; |
| 14584 | "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;; |
| 14585 | "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;; |
Alexandre Julliard | acfda14 | 2002-05-20 19:18:16 +0000 | [diff] [blame] | 14586 | "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14587 | "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;; |
| 14588 | "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;; |
| 14589 | "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;; |
| 14590 | "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;; |
Andriy Palamarchuk | 4e2e176 | 2002-04-11 23:58:40 +0000 | [diff] [blame] | 14591 | "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;; |
Andriy Palamarchuk | 2f0d85c | 2002-04-29 23:47:39 +0000 | [diff] [blame] | 14592 | "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14593 | "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;; |
| 14594 | "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;; |
| 14595 | "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;; |
| 14596 | "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;; |
| 14597 | "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;; |
Alexandre Julliard | 65a4216 | 2002-06-04 21:29:40 +0000 | [diff] [blame] | 14598 | "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14599 | "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;; |
Mike Wetherell | 0d8a9fa | 2002-05-05 20:31:54 +0000 | [diff] [blame] | 14600 | "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14601 | "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;; |
| 14602 | "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;; |
| 14603 | "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14604 | "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; |
| 14605 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
Alexandre Julliard | 7d4ee77 | 2002-07-16 03:20:45 +0000 | [diff] [blame] | 14606 | "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14607 | "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;; |
| 14608 | "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;; |
| 14609 | "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;; |
| 14610 | "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;; |
Alexandre Julliard | b7d3c79 | 2002-07-16 02:33:10 +0000 | [diff] [blame] | 14611 | "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14612 | "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;; |
| 14613 | "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;; |
| 14614 | "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 14615 | "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;; |
Alexandre Julliard | c345f7b | 2002-07-10 03:30:14 +0000 | [diff] [blame] | 14616 | "dlls/advapi32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/advapi32/tests" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14617 | "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;; |
| 14618 | "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;; |
| 14619 | "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;; |
| 14620 | "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;; |
| 14621 | "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;; |
| 14622 | "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;; |
| 14623 | "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;; |
| 14624 | "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;; |
| 14625 | "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;; |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 14626 | "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;; |
| 14627 | "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;; |
| 14628 | "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14629 | "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;; |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 14630 | "dlls/kernel/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/tests" ;; |
Marcus Meissner | e8d9770 | 2002-03-26 01:54:25 +0000 | [diff] [blame] | 14631 | "dlls/oleaut32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/oleaut32/tests" ;; |
Juergen Schmied | c74a791 | 2002-05-09 19:48:07 +0000 | [diff] [blame] | 14632 | "dlls/shlwapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/shlwapi/tests" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14633 | "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;; |
| 14634 | "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;; |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 14635 | "dlls/user/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/tests" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14636 | "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;; |
Aric Stewart | ff9b9d4 | 2002-06-21 23:59:49 +0000 | [diff] [blame] | 14637 | "dlls/wininet/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wininet/tests" ;; |
Alexandre Julliard | 9a68b7b | 2002-04-27 21:19:22 +0000 | [diff] [blame] | 14638 | "dlls/winsock/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/winsock/tests" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 14639 | "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;; |
| 14640 | "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;; |
| 14641 | "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;; |
| 14642 | "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14643 | "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 14644 | "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;; |
| 14645 | "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;; |
| 14646 | "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;; |
| 14647 | "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;; |
| 14648 | "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;; |
| 14649 | "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;; |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 14650 | "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;; |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 14651 | "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;; |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 14652 | "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 14653 | "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;; |
| 14654 | "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;; |
| 14655 | "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;; |
| 14656 | "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14657 | "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14658 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14659 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 14660 | { (exit 1); exit 1; }; };; |
| 14661 | esac |
| 14662 | done |
| 14663 | |
| 14664 | # If the user did not use the arguments to specify the items to instantiate, |
| 14665 | # then the envvar interface is used. Set only those that are not. |
| 14666 | # We use the long form for the default assignment because of an extremely |
| 14667 | # bizarre bug on SunOS 4.1.3. |
| 14668 | if $ac_need_defaults; then |
| 14669 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 14670 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 14671 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 14672 | fi |
| 14673 | |
| 14674 | # Create a temporary directory, and hook for its removal unless debugging. |
| 14675 | $debug || |
| 14676 | { |
| 14677 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 14678 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 14679 | } |
| 14680 | |
| 14681 | # Create a (secure) tmp directory for tmp files. |
| 14682 | : ${TMPDIR=/tmp} |
| 14683 | { |
| 14684 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 14685 | test -n "$tmp" && test -d "$tmp" |
| 14686 | } || |
| 14687 | { |
| 14688 | tmp=$TMPDIR/cs$$-$RANDOM |
| 14689 | (umask 077 && mkdir $tmp) |
| 14690 | } || |
| 14691 | { |
| 14692 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 14693 | { (exit 1); exit 1; } |
| 14694 | } |
| 14695 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14696 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14697 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14698 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14699 | |
| 14700 | # |
| 14701 | # CONFIG_FILES section. |
| 14702 | # |
| 14703 | |
| 14704 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 14705 | # This happens for instance when ./config.status config.h |
| 14706 | if test -n "\$CONFIG_FILES"; then |
| 14707 | # Protect against being on the right side of a sed subst in config.status. |
| 14708 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 14709 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 14710 | s,@SHELL@,$SHELL,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14711 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 14712 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 14713 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 14714 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 14715 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 14716 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14717 | s,@exec_prefix@,$exec_prefix,;t t |
| 14718 | s,@prefix@,$prefix,;t t |
| 14719 | s,@program_transform_name@,$program_transform_name,;t t |
| 14720 | s,@bindir@,$bindir,;t t |
| 14721 | s,@sbindir@,$sbindir,;t t |
| 14722 | s,@libexecdir@,$libexecdir,;t t |
| 14723 | s,@datadir@,$datadir,;t t |
| 14724 | s,@sysconfdir@,$sysconfdir,;t t |
| 14725 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 14726 | s,@localstatedir@,$localstatedir,;t t |
| 14727 | s,@libdir@,$libdir,;t t |
| 14728 | s,@includedir@,$includedir,;t t |
| 14729 | s,@oldincludedir@,$oldincludedir,;t t |
| 14730 | s,@infodir@,$infodir,;t t |
| 14731 | s,@mandir@,$mandir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14732 | s,@build_alias@,$build_alias,;t t |
| 14733 | s,@host_alias@,$host_alias,;t t |
| 14734 | s,@target_alias@,$target_alias,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14735 | s,@DEFS@,$DEFS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14736 | s,@ECHO_C@,$ECHO_C,;t t |
| 14737 | s,@ECHO_N@,$ECHO_N,;t t |
| 14738 | s,@ECHO_T@,$ECHO_T,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14739 | s,@LIBS@,$LIBS,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame^] | 14740 | s,@LIBEXT@,$LIBEXT,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14741 | s,@OPTIONS@,$OPTIONS,;t t |
| 14742 | s,@build@,$build,;t t |
| 14743 | s,@build_cpu@,$build_cpu,;t t |
| 14744 | s,@build_vendor@,$build_vendor,;t t |
| 14745 | s,@build_os@,$build_os,;t t |
| 14746 | s,@host@,$host,;t t |
| 14747 | s,@host_cpu@,$host_cpu,;t t |
| 14748 | s,@host_vendor@,$host_vendor,;t t |
| 14749 | s,@host_os@,$host_os,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14750 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 14751 | s,@CC@,$CC,;t t |
| 14752 | s,@CFLAGS@,$CFLAGS,;t t |
| 14753 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 14754 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 14755 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 14756 | s,@EXEEXT@,$EXEEXT,;t t |
| 14757 | s,@OBJEXT@,$OBJEXT,;t t |
| 14758 | s,@CPP@,$CPP,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14759 | s,@TOOLSDIR@,$TOOLSDIR,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14760 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 14761 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 14762 | s,@X_LIBS@,$X_LIBS,;t t |
| 14763 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
| 14764 | s,@YACC@,$YACC,;t t |
| 14765 | s,@LEX@,$LEX,;t t |
| 14766 | s,@LEXLIB@,$LEXLIB,;t t |
| 14767 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
| 14768 | s,@XYACC@,$XYACC,;t t |
| 14769 | s,@XLEX@,$XLEX,;t t |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 14770 | s,@LD@,$LD,;t t |
| 14771 | s,@ac_ct_LD@,$ac_ct_LD,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14772 | s,@AR@,$AR,;t t |
| 14773 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14774 | s,@RANLIB@,$RANLIB,;t t |
| 14775 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14776 | s,@STRIP@,$STRIP,;t t |
| 14777 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 14778 | s,@WINDRES@,$WINDRES,;t t |
| 14779 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14780 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 14781 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 14782 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 14783 | s,@LN_S@,$LN_S,;t t |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 14784 | s,@LN@,$LN,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14785 | s,@C2MAN@,$C2MAN,;t t |
| 14786 | s,@LDCONFIG@,$LDCONFIG,;t t |
| 14787 | s,@LINT@,$LINT,;t t |
| 14788 | s,@LINTFLAGS@,$LINTFLAGS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14789 | s,@JPEGLIB@,$JPEGLIB,;t t |
| 14790 | s,@XLIB@,$XLIB,;t t |
| 14791 | s,@XFILES@,$XFILES,;t t |
| 14792 | s,@OPENGLFILES@,$OPENGLFILES,;t t |
| 14793 | s,@GLU32FILES@,$GLU32FILES,;t t |
| 14794 | s,@CURSESLIBS@,$CURSESLIBS,;t t |
| 14795 | s,@CUPSLIBS@,$CUPSLIBS,;t t |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 14796 | s,@sane_devel@,$sane_devel,;t t |
| 14797 | s,@SANELIBS@,$SANELIBS,;t t |
| 14798 | s,@SANEINCL@,$SANEINCL,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14799 | s,@ft_devel@,$ft_devel,;t t |
| 14800 | s,@ft_devel2@,$ft_devel2,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14801 | s,@FREETYPEINCL@,$FREETYPEINCL,;t t |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14802 | s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t |
| 14803 | s,@ARTSLIBS@,$ARTSLIBS,;t t |
| 14804 | s,@ARTSINCL@,$ARTSINCL,;t t |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14805 | s,@ALSALIBS@,$ALSALIBS,;t t |
Alexandre Julliard | 04b5a86 | 2002-07-30 02:44:19 +0000 | [diff] [blame] | 14806 | s,@NASLIBS@,$NASLIBS,;t t |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14807 | s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame^] | 14808 | s,@DLLEXT@,$DLLEXT,;t t |
| 14809 | s,@DLLFLAGS@,$DLLFLAGS,;t t |
| 14810 | s,@DLLIBS@,$DLLIBS,;t t |
| 14811 | s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t |
| 14812 | s,@LDSHARED@,$LDSHARED,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14813 | s,@DLLWRAP@,$DLLWRAP,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14814 | s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14815 | s,@LDPATH@,$LDPATH,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame^] | 14816 | s,@CRTLIBS@,$CRTLIBS,;t t |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14817 | s,@LDD@,$LDD,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14818 | s,@ALLOCA@,$ALLOCA,;t t |
| 14819 | /@MAKE_RULES@/r $MAKE_RULES |
| 14820 | s,@MAKE_RULES@,,;t t |
| 14821 | /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES |
| 14822 | s,@MAKE_DLL_RULES@,,;t t |
| 14823 | /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES |
| 14824 | s,@MAKE_PROG_RULES@,,;t t |
| 14825 | CEOF |
| 14826 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14827 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14828 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14829 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14830 | # Split the substitutions into bite-sized pieces for seds with |
| 14831 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 14832 | ac_max_sed_lines=48 |
| 14833 | ac_sed_frag=1 # Number of current file. |
| 14834 | ac_beg=1 # First line for current file. |
| 14835 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 14836 | ac_more_lines=: |
| 14837 | ac_sed_cmds= |
| 14838 | while $ac_more_lines; do |
| 14839 | if test $ac_beg -gt 1; then |
| 14840 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 14841 | else |
| 14842 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 14843 | fi |
| 14844 | if test ! -s $tmp/subs.frag; then |
| 14845 | ac_more_lines=false |
| 14846 | else |
| 14847 | # The purpose of the label and of the branching condition is to |
| 14848 | # speed up the sed processing (if there are no `@' at all, there |
| 14849 | # is no need to browse any of the substitutions). |
| 14850 | # These are the two extra sed commands mentioned above. |
| 14851 | (echo ':t |
| 14852 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 14853 | if test -z "$ac_sed_cmds"; then |
| 14854 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 14855 | else |
| 14856 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 14857 | fi |
| 14858 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 14859 | ac_beg=$ac_end |
| 14860 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 14861 | fi |
| 14862 | done |
| 14863 | if test -z "$ac_sed_cmds"; then |
| 14864 | ac_sed_cmds=cat |
| 14865 | fi |
| 14866 | fi # test -n "$CONFIG_FILES" |
| 14867 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14868 | _ACEOF |
| 14869 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14870 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 14871 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 14872 | case $ac_file in |
| 14873 | - | *:- | *:-:* ) # input from stdin |
| 14874 | cat >$tmp/stdin |
| 14875 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 14876 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 14877 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 14878 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 14879 | * ) ac_file_in=$ac_file.in ;; |
| 14880 | esac |
| 14881 | |
| 14882 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14883 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 14884 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14885 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14886 | X"$ac_file" : 'X\(//\)$' \| \ |
| 14887 | X"$ac_file" : 'X\(/\)' \| \ |
| 14888 | . : '\(.\)' 2>/dev/null || |
| 14889 | echo X"$ac_file" | |
| 14890 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 14891 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 14892 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 14893 | /^X\(\/\).*/{ s//\1/; q; } |
| 14894 | s/.*/./; q'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14895 | { case "$ac_dir" in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14896 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 14897 | *) as_incr_dir=.;; |
| 14898 | esac |
| 14899 | as_dummy="$ac_dir" |
| 14900 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 14901 | case $as_mkdir_dir in |
| 14902 | # Skip DOS drivespec |
| 14903 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 14904 | *) |
| 14905 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14906 | test -d "$as_incr_dir" || |
| 14907 | mkdir "$as_incr_dir" || |
| 14908 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 14909 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 14910 | { (exit 1); exit 1; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14911 | ;; |
| 14912 | esac |
| 14913 | done; } |
| 14914 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14915 | ac_builddir=. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14916 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14917 | if test "$ac_dir" != .; then |
| 14918 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 14919 | # A "../" for each directory in $ac_dir_suffix. |
| 14920 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 14921 | else |
| 14922 | ac_dir_suffix= ac_top_builddir= |
| 14923 | fi |
| 14924 | |
| 14925 | case $srcdir in |
| 14926 | .) # No --srcdir option. We are building in place. |
| 14927 | ac_srcdir=. |
| 14928 | if test -z "$ac_top_builddir"; then |
| 14929 | ac_top_srcdir=. |
| 14930 | else |
| 14931 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 14932 | fi ;; |
| 14933 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 14934 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 14935 | ac_top_srcdir=$srcdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14936 | *) # Relative path. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14937 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 14938 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 14939 | esac |
| 14940 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 14941 | # absolute. |
| 14942 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 14943 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 14944 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 14945 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 14946 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14947 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14948 | case $INSTALL in |
| 14949 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14950 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 14951 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 14952 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14953 | if test x"$ac_file" != x-; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14954 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14955 | echo "$as_me: creating $ac_file" >&6;} |
| 14956 | rm -f "$ac_file" |
| 14957 | fi |
| 14958 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14959 | # use $as_me), people would be surprised to read: |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14960 | # /* config.h. Generated by config.status. */ |
| 14961 | if test x"$ac_file" = x-; then |
| 14962 | configure_input= |
| 14963 | else |
| 14964 | configure_input="$ac_file. " |
| 14965 | fi |
| 14966 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 14967 | sed 's,.*/,,'` by configure." |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 14968 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14969 | # First look for the input files in the build tree, otherwise in the |
| 14970 | # src tree. |
| 14971 | ac_file_inputs=`IFS=: |
| 14972 | for f in $ac_file_in; do |
| 14973 | case $f in |
| 14974 | -) echo $tmp/stdin ;; |
| 14975 | [\\/$]*) |
| 14976 | # Absolute (can't be DOS-style, as IFS=:) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14977 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14978 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 14979 | { (exit 1); exit 1; }; } |
| 14980 | echo $f;; |
| 14981 | *) # Relative |
| 14982 | if test -f "$f"; then |
| 14983 | # Build tree |
| 14984 | echo $f |
| 14985 | elif test -f "$srcdir/$f"; then |
| 14986 | # Source tree |
| 14987 | echo $srcdir/$f |
| 14988 | else |
| 14989 | # /dev/null tree |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14990 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14991 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 14992 | { (exit 1); exit 1; }; } |
| 14993 | fi;; |
| 14994 | esac |
| 14995 | done` || { (exit 1); exit 1; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14996 | _ACEOF |
| 14997 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14998 | sed "$ac_vpsub |
| 14999 | $extrasub |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15000 | _ACEOF |
| 15001 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15002 | :t |
| 15003 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 15004 | s,@configure_input@,$configure_input,;t t |
| 15005 | s,@srcdir@,$ac_srcdir,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15006 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15007 | s,@top_srcdir@,$ac_top_srcdir,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15008 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 15009 | s,@builddir@,$ac_builddir,;t t |
| 15010 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 15011 | s,@top_builddir@,$ac_top_builddir,;t t |
| 15012 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15013 | s,@INSTALL@,$ac_INSTALL,;t t |
| 15014 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 15015 | rm -f $tmp/stdin |
| 15016 | if test x"$ac_file" != x-; then |
| 15017 | mv $tmp/out $ac_file |
| 15018 | else |
| 15019 | cat $tmp/out |
| 15020 | rm -f $tmp/out |
| 15021 | fi |
| 15022 | |
| 15023 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15024 | _ACEOF |
| 15025 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15026 | |
| 15027 | # |
| 15028 | # CONFIG_HEADER section. |
| 15029 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15030 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15031 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 15032 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 15033 | # |
| 15034 | # ac_d sets the value in "#define NAME VALUE" lines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15035 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 15036 | ac_dB='[ ].*$,\1#\2' |
| 15037 | ac_dC=' ' |
| 15038 | ac_dD=',;t' |
| 15039 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 15040 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 15041 | ac_uB='$,\1#\2define\3' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15042 | ac_uC=' ' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15043 | ac_uD=',;t' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15044 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15045 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 15046 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15047 | case $ac_file in |
| 15048 | - | *:- | *:-:* ) # input from stdin |
| 15049 | cat >$tmp/stdin |
| 15050 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 15051 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 15052 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 15053 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 15054 | * ) ac_file_in=$ac_file.in ;; |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15055 | esac |
| 15056 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15057 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15058 | echo "$as_me: creating $ac_file" >&6;} |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15059 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15060 | # First look for the input files in the build tree, otherwise in the |
| 15061 | # src tree. |
| 15062 | ac_file_inputs=`IFS=: |
| 15063 | for f in $ac_file_in; do |
| 15064 | case $f in |
| 15065 | -) echo $tmp/stdin ;; |
| 15066 | [\\/$]*) |
| 15067 | # Absolute (can't be DOS-style, as IFS=:) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15068 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15069 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 15070 | { (exit 1); exit 1; }; } |
| 15071 | echo $f;; |
| 15072 | *) # Relative |
| 15073 | if test -f "$f"; then |
| 15074 | # Build tree |
| 15075 | echo $f |
| 15076 | elif test -f "$srcdir/$f"; then |
| 15077 | # Source tree |
| 15078 | echo $srcdir/$f |
| 15079 | else |
| 15080 | # /dev/null tree |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15081 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15082 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 15083 | { (exit 1); exit 1; }; } |
| 15084 | fi;; |
| 15085 | esac |
| 15086 | done` || { (exit 1); exit 1; } |
| 15087 | # Remove the trailing spaces. |
| 15088 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15089 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15090 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15091 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15092 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 15093 | # `conftest.undefs', that substitutes the proper values into |
| 15094 | # config.h.in to produce config.h. The first handles `#define' |
| 15095 | # templates, and the second `#undef' templates. |
| 15096 | # And first: Protect against being on the right side of a sed subst in |
| 15097 | # config.status. Protect against being in an unquoted here document |
| 15098 | # in config.status. |
| 15099 | rm -f conftest.defines conftest.undefs |
| 15100 | # Using a here document instead of a string reduces the quoting nightmare. |
| 15101 | # Putting comments in sed scripts is not portable. |
| 15102 | # |
| 15103 | # `end' is used to avoid that the second main sed command (meant for |
| 15104 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 15105 | # See the Autoconf documentation for `clear'. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15106 | cat >confdef2sed.sed <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15107 | s/[\\&,]/\\&/g |
| 15108 | s,[\\$`],\\&,g |
| 15109 | t clear |
| 15110 | : clear |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15111 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15112 | t end |
| 15113 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 15114 | : end |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15115 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15116 | # If some macros were called several times there might be several times |
| 15117 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 15118 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 15119 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 15120 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 15121 | rm -f confdef2sed.sed |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15122 | |
| 15123 | # This sed command replaces #undef with comments. This is necessary, for |
| 15124 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 15125 | # on some systems where configure will not decide to define it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15126 | cat >>conftest.undefs <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15127 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15128 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15129 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15130 | # Break up conftest.defines because some shells have a limit on the size |
| 15131 | # of here documents, and old seds have small limits too (100 cmds). |
| 15132 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 15133 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 15134 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 15135 | echo ' :' >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15136 | rm -f conftest.tail |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15137 | while grep . conftest.defines >/dev/null |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15138 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15139 | # Write a limited-size here document to $tmp/defines.sed. |
| 15140 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 15141 | # Speed up: don't consider the non `#define' lines. |
| 15142 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 15143 | # Work around the forget-to-reset-the-flag bug. |
| 15144 | echo 't clr' >>$CONFIG_STATUS |
| 15145 | echo ': clr' >>$CONFIG_STATUS |
| 15146 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15147 | echo 'CEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15148 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 15149 | rm -f $tmp/in |
| 15150 | mv $tmp/out $tmp/in |
| 15151 | ' >>$CONFIG_STATUS |
| 15152 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 15153 | rm -f conftest.defines |
| 15154 | mv conftest.tail conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15155 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15156 | rm -f conftest.defines |
| 15157 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 15158 | echo >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15159 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15160 | # Break up conftest.undefs because some shells have a limit on the size |
| 15161 | # of here documents, and old seds have small limits too (100 cmds). |
| 15162 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 15163 | rm -f conftest.tail |
| 15164 | while grep . conftest.undefs >/dev/null |
| 15165 | do |
| 15166 | # Write a limited-size here document to $tmp/undefs.sed. |
| 15167 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 15168 | # Speed up: don't consider the non `#undef' |
| 15169 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 15170 | # Work around the forget-to-reset-the-flag bug. |
| 15171 | echo 't clr' >>$CONFIG_STATUS |
| 15172 | echo ': clr' >>$CONFIG_STATUS |
| 15173 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 15174 | echo 'CEOF |
| 15175 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 15176 | rm -f $tmp/in |
| 15177 | mv $tmp/out $tmp/in |
| 15178 | ' >>$CONFIG_STATUS |
| 15179 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 15180 | rm -f conftest.undefs |
| 15181 | mv conftest.tail conftest.undefs |
| 15182 | done |
| 15183 | rm -f conftest.undefs |
| 15184 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15185 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15186 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 15187 | # use $as_me), people would be surprised to read: |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15188 | # /* config.h. Generated by config.status. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15189 | if test x"$ac_file" = x-; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15190 | echo "/* Generated by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15191 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15192 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15193 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15194 | cat $tmp/in >>$tmp/config.h |
| 15195 | rm -f $tmp/in |
| 15196 | if test x"$ac_file" != x-; then |
| 15197 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15198 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15199 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 15200 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15201 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 15202 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15203 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 15204 | X"$ac_file" : 'X\(//\)$' \| \ |
| 15205 | X"$ac_file" : 'X\(/\)' \| \ |
| 15206 | . : '\(.\)' 2>/dev/null || |
| 15207 | echo X"$ac_file" | |
| 15208 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 15209 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 15210 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 15211 | /^X\(\/\).*/{ s//\1/; q; } |
| 15212 | s/.*/./; q'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15213 | { case "$ac_dir" in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15214 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 15215 | *) as_incr_dir=.;; |
| 15216 | esac |
| 15217 | as_dummy="$ac_dir" |
| 15218 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 15219 | case $as_mkdir_dir in |
| 15220 | # Skip DOS drivespec |
| 15221 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 15222 | *) |
| 15223 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15224 | test -d "$as_incr_dir" || |
| 15225 | mkdir "$as_incr_dir" || |
| 15226 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 15227 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 15228 | { (exit 1); exit 1; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15229 | ;; |
| 15230 | esac |
| 15231 | done; } |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15232 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15233 | rm -f $ac_file |
| 15234 | mv $tmp/config.h $ac_file |
| 15235 | fi |
| 15236 | else |
| 15237 | cat $tmp/config.h |
| 15238 | rm -f $tmp/config.h |
| 15239 | fi |
| 15240 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15241 | _ACEOF |
| 15242 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15243 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15244 | # |
| 15245 | # CONFIG_COMMANDS section. |
| 15246 | # |
| 15247 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 15248 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 15249 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15250 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 15251 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15252 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 15253 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 15254 | X"$ac_dest" : 'X\(/\)' \| \ |
| 15255 | . : '\(.\)' 2>/dev/null || |
| 15256 | echo X"$ac_dest" | |
| 15257 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 15258 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 15259 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 15260 | /^X\(\/\).*/{ s//\1/; q; } |
| 15261 | s/.*/./; q'` |
| 15262 | ac_builddir=. |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 15263 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15264 | if test "$ac_dir" != .; then |
| 15265 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 15266 | # A "../" for each directory in $ac_dir_suffix. |
| 15267 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15268 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15269 | ac_dir_suffix= ac_top_builddir= |
| 15270 | fi |
| 15271 | |
| 15272 | case $srcdir in |
| 15273 | .) # No --srcdir option. We are building in place. |
| 15274 | ac_srcdir=. |
| 15275 | if test -z "$ac_top_builddir"; then |
| 15276 | ac_top_srcdir=. |
| 15277 | else |
| 15278 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 15279 | fi ;; |
| 15280 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 15281 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 15282 | ac_top_srcdir=$srcdir ;; |
| 15283 | *) # Relative path. |
| 15284 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 15285 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 15286 | esac |
| 15287 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 15288 | # absolute. |
| 15289 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 15290 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 15291 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 15292 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 15293 | |
| 15294 | |
| 15295 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 15296 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 15297 | case $ac_dest in |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15298 | controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5 |
| 15299 | echo "$as_me: creating controls" >&6;} && mkdir "controls") ;; |
Alexandre Julliard | c345f7b | 2002-07-10 03:30:14 +0000 | [diff] [blame] | 15300 | dlls/advapi32/tests ) test -d "dlls/advapi32/tests" || ({ echo "$as_me:$LINENO: creating dlls/advapi32/tests" >&5 |
| 15301 | echo "$as_me: creating dlls/advapi32/tests" >&6;} && mkdir "dlls/advapi32/tests") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15302 | dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5 |
| 15303 | echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;; |
| 15304 | dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5 |
| 15305 | echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;; |
| 15306 | dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5 |
| 15307 | echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;; |
| 15308 | dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5 |
| 15309 | echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;; |
| 15310 | dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5 |
| 15311 | echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;; |
| 15312 | dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5 |
| 15313 | echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;; |
| 15314 | dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5 |
| 15315 | echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;; |
| 15316 | dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5 |
| 15317 | echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;; |
| 15318 | dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5 |
| 15319 | echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;; |
| 15320 | dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5 |
| 15321 | echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;; |
| 15322 | dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5 |
| 15323 | echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;; |
| 15324 | dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5 |
| 15325 | echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;; |
| 15326 | dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5 |
| 15327 | echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;; |
| 15328 | dlls/kernel/tests ) test -d "dlls/kernel/tests" || ({ echo "$as_me:$LINENO: creating dlls/kernel/tests" >&5 |
| 15329 | echo "$as_me: creating dlls/kernel/tests" >&6;} && mkdir "dlls/kernel/tests") ;; |
| 15330 | dlls/oleaut32/tests ) test -d "dlls/oleaut32/tests" || ({ echo "$as_me:$LINENO: creating dlls/oleaut32/tests" >&5 |
| 15331 | echo "$as_me: creating dlls/oleaut32/tests" >&6;} && mkdir "dlls/oleaut32/tests") ;; |
Juergen Schmied | c74a791 | 2002-05-09 19:48:07 +0000 | [diff] [blame] | 15332 | dlls/shlwapi/tests ) test -d "dlls/shlwapi/tests" || ({ echo "$as_me:$LINENO: creating dlls/shlwapi/tests" >&5 |
| 15333 | echo "$as_me: creating dlls/shlwapi/tests" >&6;} && mkdir "dlls/shlwapi/tests") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15334 | dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5 |
| 15335 | echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;; |
| 15336 | dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5 |
| 15337 | echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;; |
| 15338 | dlls/user/tests ) test -d "dlls/user/tests" || ({ echo "$as_me:$LINENO: creating dlls/user/tests" >&5 |
| 15339 | echo "$as_me: creating dlls/user/tests" >&6;} && mkdir "dlls/user/tests") ;; |
| 15340 | dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5 |
| 15341 | echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;; |
Aric Stewart | ff9b9d4 | 2002-06-21 23:59:49 +0000 | [diff] [blame] | 15342 | dlls/wininet/tests ) test -d "dlls/wininet/tests" || ({ echo "$as_me:$LINENO: creating dlls/wininet/tests" >&5 |
| 15343 | echo "$as_me: creating dlls/wininet/tests" >&6;} && mkdir "dlls/wininet/tests") ;; |
Alexandre Julliard | 9a68b7b | 2002-04-27 21:19:22 +0000 | [diff] [blame] | 15344 | dlls/winsock/tests ) test -d "dlls/winsock/tests" || ({ echo "$as_me:$LINENO: creating dlls/winsock/tests" >&5 |
| 15345 | echo "$as_me: creating dlls/winsock/tests" >&6;} && mkdir "dlls/winsock/tests") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15346 | files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5 |
| 15347 | echo "$as_me: creating files" >&6;} && mkdir "files") ;; |
| 15348 | graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5 |
| 15349 | echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;; |
| 15350 | graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5 |
| 15351 | echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;; |
| 15352 | if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5 |
| 15353 | echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15354 | include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5 |
| 15355 | echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15356 | loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5 |
| 15357 | echo "$as_me: creating loader" >&6;} && mkdir "loader") ;; |
| 15358 | loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5 |
| 15359 | echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;; |
| 15360 | memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5 |
| 15361 | echo "$as_me: creating memory" >&6;} && mkdir "memory") ;; |
| 15362 | misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5 |
| 15363 | echo "$as_me: creating misc" >&6;} && mkdir "misc") ;; |
| 15364 | msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5 |
| 15365 | echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;; |
| 15366 | objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5 |
| 15367 | echo "$as_me: creating objects" >&6;} && mkdir "objects") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15368 | programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5 |
| 15369 | echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;; |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 15370 | programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5 |
| 15371 | echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15372 | programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5 |
| 15373 | echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15374 | relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5 |
| 15375 | echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;; |
| 15376 | scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5 |
| 15377 | echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;; |
| 15378 | win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5 |
| 15379 | echo "$as_me: creating win32" >&6;} && mkdir "win32") ;; |
| 15380 | windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5 |
| 15381 | echo "$as_me: creating windows" >&6;} && mkdir "windows") ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15382 | esac |
| 15383 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15384 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15385 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15386 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 15387 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15388 | { (exit 0); exit 0; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15389 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15390 | chmod +x $CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15391 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15392 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15393 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15394 | # configure is writing to config.log, and then calls config.status. |
| 15395 | # config.status does its own redirection, appending to config.log. |
| 15396 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 15397 | # by configure, so config.status won't be able to write to it; its |
| 15398 | # output is simply discarded. So we exec the FD to /dev/null, |
| 15399 | # effectively closing config.log, so it can be properly (re)opened and |
| 15400 | # appended to by config.status. When coming back to configure, we |
| 15401 | # need to make the FD available again. |
| 15402 | if test "$no_create" != yes; then |
| 15403 | ac_cs_success=: |
| 15404 | exec 5>/dev/null |
| 15405 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 15406 | exec 5>>config.log |
| 15407 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15408 | # would make configure fail if this is the last instruction. |
| 15409 | $ac_cs_success || { (exit 1); exit 1; } |
| 15410 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15411 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15412 | |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 15413 | if test "$have_x" = "no" |
| 15414 | then |
| 15415 | echo |
| 15416 | echo "*** Warning: X development files not found. Wine will be built without" |
| 15417 | echo "*** X support, which currently does not work, and would probably not be" |
| 15418 | echo "*** what you want anyway. You will need to install devel packages of" |
Alexandre Julliard | 18e4b5e | 2002-01-04 18:52:40 +0000 | [diff] [blame] | 15419 | echo "*** Xlib/Xfree86 at the very least." |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 15420 | fi |
| 15421 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 15422 | if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes" |
| 15423 | then |
| 15424 | echo |
| 15425 | echo "*** Warning: resizeterm not found in ncurses. Wine will be built without" |
| 15426 | echo "*** terminal resize support. Consider upgrading ncurses." |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 15427 | fi |
| 15428 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15429 | if test "$wine_cv_libc_reentrant" = "no" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 15430 | then |
| 15431 | echo |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15432 | echo "*** Warning: non-reentrant libc detected. Wine will be built without" |
| 15433 | echo "*** threading support. Consider upgrading libc to a more recent" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 15434 | echo "*** reentrant version of libc." |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 15435 | fi |
| 15436 | |
Alexandre Julliard | 867fb9d | 2002-04-24 22:24:43 +0000 | [diff] [blame] | 15437 | if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes" |
| 15438 | then |
| 15439 | echo |
| 15440 | echo "*** Warning: non-reentrant X11 library detected. Multi-threaded" |
| 15441 | echo "*** applications won't work properly. You should upgrade your X11 library." |
| 15442 | fi |
| 15443 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 15444 | if test "$wine_cv_opengl_version_OK" = "no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 15445 | then |
| 15446 | echo |
| 15447 | echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 15448 | echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." |
| 15449 | fi |
| 15450 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15451 | if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 15452 | then |
| 15453 | echo |
| 15454 | echo "*** Warning: the OpenGL version you have installed relies on libpthread for" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 15455 | echo "*** thread-safety. To prevent crashes, OpenGL support has been removed." |
Andreas Mohr | 18a9d74 | 2001-01-17 21:52:42 +0000 | [diff] [blame] | 15456 | echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine," |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 15457 | echo "*** start configure with '--enable-opengl' to force OpenGL support." |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 15458 | fi |
| 15459 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15460 | if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 15461 | then |
| 15462 | echo |
Alexandre Julliard | d6c0f9f | 2001-01-04 22:44:55 +0000 | [diff] [blame] | 15463 | echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 15464 | echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL" |
| 15465 | echo "*** support before reporting bugs." |
| 15466 | fi |
| 15467 | |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 15468 | if test "$wine_cv_warn_cups_h" = "yes" |
| 15469 | then |
| 15470 | echo |
| 15471 | echo "*** Note: You have cups runtime libraries, but no development" |
| 15472 | echo "*** libraries. Install the cups-devel package or whichever package" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15473 | echo "*** contains cups.h to enable CUPS support in Wine." |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 15474 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 15475 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 15476 | if test "$wine_cv_msg_freetype" = "yes" |
| 15477 | then |
| 15478 | echo |
| 15479 | echo "*** Note: Your system appears to have the FreeType 2 runtime libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15480 | echo "*** installed, but 'freetype-config' is not in your PATH. Install the" |
| 15481 | echo "*** freetype-devel package (or its equivalent on your distribution) to" |
| 15482 | echo "*** enable Wine to use TrueType fonts." |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 15483 | fi |
| 15484 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15485 | echo |
Steffen Moeller | 1511bae | 1999-02-17 15:27:03 +0000 | [diff] [blame] | 15486 | echo "Configure finished. Do 'make depend && make' to compile Wine." |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15487 | echo |
| 15488 | |