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 | 62a4807 | 2004-07-17 00:52:37 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for Wine 20040716. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4 | # |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5 | # Report bugs to <wine-devel@winehq.org>. |
| 6 | # |
| 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8 | # This configure script is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10 | ## --------------------- ## |
| 11 | ## M4sh Initialization. ## |
| 12 | ## --------------------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13 | |
| 14 | # Be Bourne compatible |
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 22 | set -o posix |
| 23 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 26 | # Support unset when possible. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 28 | as_unset=unset |
| 29 | else |
| 30 | as_unset=false |
| 31 | fi |
| 32 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 33 | |
| 34 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35 | $as_unset ENV MAIL MAILPATH |
| 36 | PS1='$ ' |
| 37 | PS2='> ' |
| 38 | PS4='+ ' |
| 39 | |
| 40 | # NLS nuisances. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 41 | for as_var in \ |
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 44 | LC_TELEPHONE LC_TIME |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 45 | do |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 47 | eval $as_var=C; export $as_var |
| 48 | else |
| 49 | $as_unset $as_var |
| 50 | fi |
| 51 | done |
| 52 | |
| 53 | # Required to use basename. |
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 55 | as_expr=expr |
| 56 | else |
| 57 | as_expr=false |
| 58 | fi |
| 59 | |
| 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 61 | as_basename=basename |
| 62 | else |
| 63 | as_basename=false |
| 64 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 65 | |
| 66 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 67 | # Name of the executable. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 68 | as_me=`$as_basename "$0" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 70 | X"$0" : 'X\(//\)$' \| \ |
| 71 | X"$0" : 'X\(/\)$' \| \ |
| 72 | . : '\(.\)' 2>/dev/null || |
| 73 | echo X/"$0" | |
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 77 | s/.*/./; q'` |
| 78 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 79 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 80 | # PATH needs CR, and LINENO needs CR and PATH. |
| 81 | # Avoid depending upon Character Ranges. |
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 85 | as_cr_digits='0123456789' |
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 87 | |
| 88 | # The user is always right. |
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 90 | echo "#! /bin/sh" >conf$$.sh |
| 91 | echo "exit 0" >>conf$$.sh |
| 92 | chmod +x conf$$.sh |
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 94 | PATH_SEPARATOR=';' |
| 95 | else |
| 96 | PATH_SEPARATOR=: |
| 97 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 98 | rm -f conf$$.sh |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 99 | fi |
| 100 | |
| 101 | |
| 102 | as_lineno_1=$LINENO |
| 103 | as_lineno_2=$LINENO |
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 107 | # Find who we are. Look in the path if we contain no path at all |
| 108 | # relative or not. |
| 109 | case $0 in |
| 110 | *[\\/]* ) as_myself=$0 ;; |
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 112 | for as_dir in $PATH |
| 113 | do |
| 114 | IFS=$as_save_IFS |
| 115 | test -z "$as_dir" && as_dir=. |
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 117 | done |
| 118 | |
| 119 | ;; |
| 120 | esac |
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 122 | # in which case we are not to be found in the path. |
| 123 | if test "x$as_myself" = x; then |
| 124 | as_myself=$0 |
| 125 | fi |
| 126 | if test ! -f "$as_myself"; then |
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 128 | { (exit 1); exit 1; }; } |
| 129 | fi |
| 130 | case $CONFIG_SHELL in |
| 131 | '') |
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 134 | do |
| 135 | IFS=$as_save_IFS |
| 136 | test -z "$as_dir" && as_dir=. |
| 137 | for as_base in sh bash ksh sh5; do |
| 138 | case $as_dir in |
| 139 | /*) |
| 140 | if ("$as_dir/$as_base" -c ' |
| 141 | as_lineno_1=$LINENO |
| 142 | as_lineno_2=$LINENO |
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 148 | CONFIG_SHELL=$as_dir/$as_base |
| 149 | export CONFIG_SHELL |
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 151 | fi;; |
| 152 | esac |
| 153 | done |
| 154 | done |
| 155 | ;; |
| 156 | esac |
| 157 | |
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 160 | # line-number line before each line; the second 'sed' does the real |
| 161 | # work. The second script uses 'N' to pair each line-number line |
| 162 | # with the numbered line, and appends trailing '-' during |
| 163 | # substitution so that $LINENO is not a special case at line end. |
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 166 | sed '=' <$as_myself | |
| 167 | sed ' |
| 168 | N |
| 169 | s,$,-, |
| 170 | : loop |
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 172 | t loop |
| 173 | s,-$,, |
| 174 | s,^['$as_cr_digits']*\n,, |
| 175 | ' >$as_me.lineno && |
| 176 | chmod +x $as_me.lineno || |
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 178 | { (exit 1); exit 1; }; } |
| 179 | |
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 181 | # (the dirname of $[0] is not the place where we might find the |
| 182 | # original and so on. Autoconf is especially sensible to this). |
| 183 | . ./$as_me.lineno |
| 184 | # Exit status is that of the last command. |
| 185 | exit |
| 186 | } |
| 187 | |
| 188 | |
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
| 191 | ' ECHO_T=' ' ;; |
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 194 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 195 | |
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 197 | as_expr=expr |
| 198 | else |
| 199 | as_expr=false |
| 200 | fi |
| 201 | |
| 202 | rm -f conf$$ conf$$.exe conf$$.file |
| 203 | echo >conf$$.file |
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 207 | if test -f conf$$.exe; then |
| 208 | # Don't use ln at all; we don't have any links |
| 209 | as_ln_s='cp -p' |
| 210 | else |
| 211 | as_ln_s='ln -s' |
| 212 | fi |
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 214 | as_ln_s=ln |
| 215 | else |
| 216 | as_ln_s='cp -p' |
| 217 | fi |
| 218 | rm -f conf$$ conf$$.exe conf$$.file |
| 219 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 220 | if mkdir -p . 2>/dev/null; then |
| 221 | as_mkdir_p=: |
| 222 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 223 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 224 | as_mkdir_p=false |
| 225 | fi |
| 226 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 227 | as_executable_p="test -f" |
| 228 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 229 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 230 | as_tr_cpp="eval 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] | 231 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 232 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 234 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 235 | |
| 236 | # IFS |
| 237 | # We need space, tab and new line, in precisely that order. |
| 238 | as_nl=' |
| 239 | ' |
| 240 | IFS=" $as_nl" |
| 241 | |
| 242 | # CDPATH. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 243 | $as_unset CDPATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 244 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 245 | |
| 246 | # Name of the host. |
| 247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 248 | # so uname gets run too. |
| 249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 250 | |
| 251 | exec 6>&1 |
| 252 | |
| 253 | # |
| 254 | # Initializations. |
| 255 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 256 | ac_default_prefix=/usr/local |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 257 | ac_config_libobj_dir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 258 | cross_compiling=no |
| 259 | subdirs= |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 260 | MFLAGS= |
| 261 | MAKEFLAGS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 262 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 263 | |
| 264 | # Maximum number of lines to put in a shell here document. |
| 265 | # This variable seems obsolete. It should probably be removed, and |
| 266 | # only ac_max_sed_lines should be used. |
| 267 | : ${ac_max_here_lines=38} |
| 268 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 269 | # Identity of this package. |
| 270 | PACKAGE_NAME='Wine' |
| 271 | PACKAGE_TARNAME='wine' |
Alexandre Julliard | 62a4807 | 2004-07-17 00:52:37 +0000 | [diff] [blame] | 272 | PACKAGE_VERSION='20040716' |
| 273 | PACKAGE_STRING='Wine 20040716' |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 274 | PACKAGE_BUGREPORT='wine-devel@winehq.org' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 275 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 276 | ac_unique_file="server/atom.c" |
| 277 | # Factoring default headers for most tests. |
| 278 | ac_includes_default="\ |
| 279 | #include <stdio.h> |
| 280 | #if HAVE_SYS_TYPES_H |
| 281 | # include <sys/types.h> |
| 282 | #endif |
| 283 | #if HAVE_SYS_STAT_H |
| 284 | # include <sys/stat.h> |
| 285 | #endif |
| 286 | #if STDC_HEADERS |
| 287 | # include <stdlib.h> |
| 288 | # include <stddef.h> |
| 289 | #else |
| 290 | # if HAVE_STDLIB_H |
| 291 | # include <stdlib.h> |
| 292 | # endif |
| 293 | #endif |
| 294 | #if HAVE_STRING_H |
| 295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 296 | # include <memory.h> |
| 297 | # endif |
| 298 | # include <string.h> |
| 299 | #endif |
| 300 | #if HAVE_STRINGS_H |
| 301 | # include <strings.h> |
| 302 | #endif |
| 303 | #if HAVE_INTTYPES_H |
| 304 | # include <inttypes.h> |
| 305 | #else |
| 306 | # if HAVE_STDINT_H |
| 307 | # include <stdint.h> |
| 308 | # endif |
| 309 | #endif |
| 310 | #if HAVE_UNISTD_H |
| 311 | # include <unistd.h> |
| 312 | #endif" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 313 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT LIBPTHREAD JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS' |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 315 | ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 316 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 317 | # Initialize some variables set by options. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 318 | ac_init_help= |
| 319 | ac_init_version=false |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 320 | # The variables have the same names as the options, with |
| 321 | # dashes changed to underlines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 322 | cache_file=/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 323 | exec_prefix=NONE |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 324 | no_create= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 325 | no_recursion= |
| 326 | prefix=NONE |
| 327 | program_prefix=NONE |
| 328 | program_suffix=NONE |
| 329 | program_transform_name=s,x,x, |
| 330 | silent= |
| 331 | site= |
| 332 | srcdir= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 333 | verbose= |
| 334 | x_includes=NONE |
| 335 | x_libraries=NONE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 336 | |
| 337 | # Installation directory options. |
| 338 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 339 | # and all the variables that are supposed to be based on exec_prefix |
| 340 | # by default will actually change. |
| 341 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 342 | bindir='${exec_prefix}/bin' |
| 343 | sbindir='${exec_prefix}/sbin' |
| 344 | libexecdir='${exec_prefix}/libexec' |
| 345 | datadir='${prefix}/share' |
| 346 | sysconfdir='${prefix}/etc' |
| 347 | sharedstatedir='${prefix}/com' |
| 348 | localstatedir='${prefix}/var' |
| 349 | libdir='${exec_prefix}/lib' |
| 350 | includedir='${prefix}/include' |
| 351 | oldincludedir='/usr/include' |
| 352 | infodir='${prefix}/info' |
| 353 | mandir='${prefix}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 354 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 355 | ac_prev= |
| 356 | for ac_option |
| 357 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 358 | # If the previous option needs an argument, assign it. |
| 359 | if test -n "$ac_prev"; then |
| 360 | eval "$ac_prev=\$ac_option" |
| 361 | ac_prev= |
| 362 | continue |
| 363 | fi |
| 364 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 366 | |
| 367 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 368 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 369 | case $ac_option in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 370 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 372 | ac_prev=bindir ;; |
| 373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 374 | bindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 375 | |
| 376 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 377 | ac_prev=build_alias ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 379 | build_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 380 | |
| 381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 383 | ac_prev=cache_file ;; |
| 384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 386 | cache_file=$ac_optarg ;; |
| 387 | |
| 388 | --config-cache | -C) |
| 389 | cache_file=config.cache ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 390 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 392 | ac_prev=datadir ;; |
| 393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 394 | | --da=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 395 | datadir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 396 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 397 | -disable-* | --disable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 399 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 402 | { (exit 1); exit 1; }; } |
| 403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 404 | eval "enable_$ac_feature=no" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 405 | |
| 406 | -enable-* | --enable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 408 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 411 | { (exit 1); exit 1; }; } |
| 412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 413 | case $ac_option in |
| 414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 415 | *) ac_optarg=yes ;; |
| 416 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 418 | |
| 419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 421 | | --exec | --exe | --ex) |
| 422 | ac_prev=exec_prefix ;; |
| 423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 425 | | --exec=* | --exe=* | --ex=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 426 | exec_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 427 | |
| 428 | -gas | --gas | --ga | --g) |
| 429 | # Obsolete; use --with-gas. |
| 430 | with_gas=yes ;; |
| 431 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 432 | -help | --help | --hel | --he | -h) |
| 433 | ac_init_help=long ;; |
| 434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 435 | ac_init_help=recursive ;; |
| 436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 437 | ac_init_help=short ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 438 | |
| 439 | -host | --host | --hos | --ho) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 440 | ac_prev=host_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 441 | -host=* | --host=* | --hos=* | --ho=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 442 | host_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 443 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 444 | -includedir | --includedir | --includedi | --included | --include \ |
| 445 | | --includ | --inclu | --incl | --inc) |
| 446 | ac_prev=includedir ;; |
| 447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 448 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 449 | includedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 450 | |
| 451 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 452 | ac_prev=infodir ;; |
| 453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 454 | infodir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 455 | |
| 456 | -libdir | --libdir | --libdi | --libd) |
| 457 | ac_prev=libdir ;; |
| 458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 459 | libdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 460 | |
| 461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 462 | | --libexe | --libex | --libe) |
| 463 | ac_prev=libexecdir ;; |
| 464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 465 | | --libexe=* | --libex=* | --libe=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 466 | libexecdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 467 | |
| 468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 469 | | --localstate | --localstat | --localsta | --localst \ |
| 470 | | --locals | --local | --loca | --loc | --lo) |
| 471 | ac_prev=localstatedir ;; |
| 472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 475 | localstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 476 | |
| 477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 478 | ac_prev=mandir ;; |
| 479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 480 | mandir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 481 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 482 | -nfp | --nfp | --nf) |
| 483 | # Obsolete; use --without-fp. |
| 484 | with_fp=no ;; |
| 485 | |
| 486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 487 | | --no-cr | --no-c | -n) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 488 | no_create=yes ;; |
| 489 | |
| 490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 492 | no_recursion=yes ;; |
| 493 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 496 | | --oldin | --oldi | --old | --ol | --o) |
| 497 | ac_prev=oldincludedir ;; |
| 498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 501 | oldincludedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 502 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 504 | ac_prev=prefix ;; |
| 505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 506 | prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 507 | |
| 508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 509 | | --program-pre | --program-pr | --program-p) |
| 510 | ac_prev=program_prefix ;; |
| 511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 513 | program_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 514 | |
| 515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 516 | | --program-suf | --program-su | --program-s) |
| 517 | ac_prev=program_suffix ;; |
| 518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 520 | program_suffix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 521 | |
| 522 | -program-transform-name | --program-transform-name \ |
| 523 | | --program-transform-nam | --program-transform-na \ |
| 524 | | --program-transform-n | --program-transform- \ |
| 525 | | --program-transform | --program-transfor \ |
| 526 | | --program-transfo | --program-transf \ |
| 527 | | --program-trans | --program-tran \ |
| 528 | | --progr-tra | --program-tr | --program-t) |
| 529 | ac_prev=program_transform_name ;; |
| 530 | -program-transform-name=* | --program-transform-name=* \ |
| 531 | | --program-transform-nam=* | --program-transform-na=* \ |
| 532 | | --program-transform-n=* | --program-transform-=* \ |
| 533 | | --program-transform=* | --program-transfor=* \ |
| 534 | | --program-transfo=* | --program-transf=* \ |
| 535 | | --program-trans=* | --program-tran=* \ |
| 536 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 537 | program_transform_name=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 538 | |
| 539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 540 | | -silent | --silent | --silen | --sile | --sil) |
| 541 | silent=yes ;; |
| 542 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 544 | ac_prev=sbindir ;; |
| 545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 546 | | --sbi=* | --sb=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 547 | sbindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 548 | |
| 549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 551 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 552 | | --sha | --sh) |
| 553 | ac_prev=sharedstatedir ;; |
| 554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 557 | | --sha=* | --sh=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 558 | sharedstatedir=$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 | -site | --site | --sit) |
| 561 | ac_prev=site ;; |
| 562 | -site=* | --site=* | --sit=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 563 | site=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 564 | |
| 565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 566 | ac_prev=srcdir ;; |
| 567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 568 | srcdir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 569 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 571 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 572 | ac_prev=sysconfdir ;; |
| 573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 575 | sysconfdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 576 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 577 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 578 | ac_prev=target_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 580 | target_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 581 | |
| 582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 583 | verbose=yes ;; |
| 584 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 585 | -version | --version | --versio | --versi | --vers | -V) |
| 586 | ac_init_version=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 587 | |
| 588 | -with-* | --with-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 590 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 593 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 595 | case $ac_option in |
| 596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 597 | *) ac_optarg=yes ;; |
| 598 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 599 | eval "with_$ac_package='$ac_optarg'" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 600 | |
| 601 | -without-* | --without-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 603 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 606 | { (exit 1); exit 1; }; } |
| 607 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 608 | eval "with_$ac_package=no" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 609 | |
| 610 | --x) |
| 611 | # Obsolete; use --with-x. |
| 612 | with_x=yes ;; |
| 613 | |
| 614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 615 | | --x-incl | --x-inc | --x-in | --x-i) |
| 616 | ac_prev=x_includes ;; |
| 617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 619 | x_includes=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 620 | |
| 621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 623 | ac_prev=x_libraries ;; |
| 624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 626 | x_libraries=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 627 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 629 | Try \`$0 --help' for more information." >&2 |
| 630 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 631 | ;; |
| 632 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 633 | *=*) |
| 634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 635 | # Reject names that are not valid shell variable names. |
| 636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 638 | { (exit 1); exit 1; }; } |
| 639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 640 | eval "$ac_envvar='$ac_optarg'" |
| 641 | export $ac_envvar ;; |
| 642 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 643 | *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 644 | # FIXME: should be removed in autoconf 3.0. |
| 645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 649 | ;; |
| 650 | |
| 651 | esac |
| 652 | done |
| 653 | |
| 654 | if test -n "$ac_prev"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 656 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 657 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 658 | fi |
| 659 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 660 | # Be sure to have absolute paths. |
| 661 | for ac_var in exec_prefix prefix |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 662 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 663 | eval ac_val=$`echo $ac_var` |
| 664 | case $ac_val in |
| 665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 666 | *) { 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] | 667 | { (exit 1); exit 1; }; };; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 668 | esac |
| 669 | done |
| 670 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 671 | # Be sure to have absolute paths. |
| 672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 673 | localstatedir libdir includedir oldincludedir infodir mandir |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 674 | do |
| 675 | eval ac_val=$`echo $ac_var` |
| 676 | case $ac_val in |
| 677 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 678 | *) { 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] | 679 | { (exit 1); exit 1; }; };; |
| 680 | esac |
| 681 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 682 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 683 | # There might be people who depend on the old broken behavior: `$host' |
| 684 | # used to hold the argument of --host etc. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 685 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 686 | build=$build_alias |
| 687 | host=$host_alias |
| 688 | target=$target_alias |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 689 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 690 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 691 | if test "x$host_alias" != x; then |
| 692 | if test "x$build_alias" = x; then |
| 693 | cross_compiling=maybe |
| 694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 695 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 696 | elif test "x$build_alias" != "x$host_alias"; then |
| 697 | cross_compiling=yes |
| 698 | fi |
| 699 | fi |
| 700 | |
| 701 | ac_tool_prefix= |
| 702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 703 | |
| 704 | test "$silent" = yes && exec 6>/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 705 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 706 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 707 | # Find the source files, if location was not specified. |
| 708 | if test -z "$srcdir"; then |
| 709 | ac_srcdir_defaulted=yes |
| 710 | # Try the directory containing this script, then its parent. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 713 | X"$0" : 'X\(//\)[^/]' \| \ |
| 714 | X"$0" : 'X\(//\)$' \| \ |
| 715 | X"$0" : 'X\(/\)' \| \ |
| 716 | . : '\(.\)' 2>/dev/null || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 717 | echo X"$0" | |
| 718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 720 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 721 | /^X\(\/\).*/{ s//\1/; q; } |
| 722 | s/.*/./; q'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 723 | srcdir=$ac_confdir |
| 724 | if test ! -r $srcdir/$ac_unique_file; then |
| 725 | srcdir=.. |
| 726 | fi |
| 727 | else |
| 728 | ac_srcdir_defaulted=no |
| 729 | fi |
| 730 | if test ! -r $srcdir/$ac_unique_file; then |
| 731 | if test "$ac_srcdir_defaulted" = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 732 | { 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] | 733 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 734 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 735 | { 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] | 736 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 737 | fi |
| 738 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 741 | { (exit 1); exit 1; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 743 | ac_env_build_alias_set=${build_alias+set} |
| 744 | ac_env_build_alias_value=$build_alias |
| 745 | ac_cv_env_build_alias_set=${build_alias+set} |
| 746 | ac_cv_env_build_alias_value=$build_alias |
| 747 | ac_env_host_alias_set=${host_alias+set} |
| 748 | ac_env_host_alias_value=$host_alias |
| 749 | ac_cv_env_host_alias_set=${host_alias+set} |
| 750 | ac_cv_env_host_alias_value=$host_alias |
| 751 | ac_env_target_alias_set=${target_alias+set} |
| 752 | ac_env_target_alias_value=$target_alias |
| 753 | ac_cv_env_target_alias_set=${target_alias+set} |
| 754 | ac_cv_env_target_alias_value=$target_alias |
| 755 | ac_env_CC_set=${CC+set} |
| 756 | ac_env_CC_value=$CC |
| 757 | ac_cv_env_CC_set=${CC+set} |
| 758 | ac_cv_env_CC_value=$CC |
| 759 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 760 | ac_env_CFLAGS_value=$CFLAGS |
| 761 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 762 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 763 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 764 | ac_env_LDFLAGS_value=$LDFLAGS |
| 765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 766 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 768 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 771 | ac_env_CXX_set=${CXX+set} |
| 772 | ac_env_CXX_value=$CXX |
| 773 | ac_cv_env_CXX_set=${CXX+set} |
| 774 | ac_cv_env_CXX_value=$CXX |
| 775 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 776 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 777 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 778 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 779 | ac_env_CPP_set=${CPP+set} |
| 780 | ac_env_CPP_value=$CPP |
| 781 | ac_cv_env_CPP_set=${CPP+set} |
| 782 | ac_cv_env_CPP_value=$CPP |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 783 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 784 | # |
| 785 | # Report the --help message. |
| 786 | # |
| 787 | if test "$ac_init_help" = "long"; then |
| 788 | # Omit some internal or obsolete options to make the list less imposing. |
| 789 | # 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] | 790 | cat <<_ACEOF |
Alexandre Julliard | 62a4807 | 2004-07-17 00:52:37 +0000 | [diff] [blame] | 791 | \`configure' configures Wine 20040716 to adapt to many kinds of systems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 792 | |
| 793 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 794 | |
| 795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 796 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 797 | |
| 798 | Defaults for the options are specified in brackets. |
| 799 | |
| 800 | Configuration: |
| 801 | -h, --help display this help and exit |
| 802 | --help=short display options specific to this package |
| 803 | --help=recursive display the short help of all the included packages |
| 804 | -V, --version display version information and exit |
| 805 | -q, --quiet, --silent do not print \`checking...' messages |
| 806 | --cache-file=FILE cache test results in FILE [disabled] |
| 807 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 808 | -n, --no-create do not create output files |
| 809 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 810 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 811 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 812 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 813 | cat <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 814 | Installation directories: |
| 815 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 816 | [$ac_default_prefix] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 818 | [PREFIX] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 819 | |
| 820 | By default, \`make install' will install all the files in |
| 821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 823 | for instance \`--prefix=\$HOME'. |
| 824 | |
| 825 | For better control, use the options below. |
| 826 | |
| 827 | Fine tuning of the installation directories: |
| 828 | --bindir=DIR user executables [EPREFIX/bin] |
| 829 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 830 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 831 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 835 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 836 | --includedir=DIR C header files [PREFIX/include] |
| 837 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 838 | --infodir=DIR info documentation [PREFIX/info] |
| 839 | --mandir=DIR man documentation [PREFIX/man] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 840 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 841 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 842 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 843 | |
| 844 | X features: |
| 845 | --x-includes=DIR X include files are in DIR |
| 846 | --x-libraries=DIR X library files are in DIR |
| 847 | |
| 848 | System types: |
| 849 | --build=BUILD configure for building on BUILD [guessed] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 850 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 851 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 852 | fi |
| 853 | |
| 854 | if test -n "$ac_init_help"; then |
| 855 | case $ac_init_help in |
Alexandre Julliard | 62a4807 | 2004-07-17 00:52:37 +0000 | [diff] [blame] | 856 | short | recursive ) echo "Configuration of Wine 20040716:";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 857 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 858 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 859 | |
| 860 | Optional Features: |
| 861 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 862 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 863 | --disable-win16 do not include Win16 support |
| 864 | --disable-debug compile out all debugging messages |
| 865 | --disable-trace compile out TRACE messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 866 | |
| 867 | Optional Packages: |
| 868 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 869 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 870 | --without-opengl do not use OpenGL |
| 871 | --without-curses do not use curses |
| 872 | --with-wine-tools=<dir> use Wine tools from directory <dir> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 873 | --with-x use the X Window System |
| 874 | |
| 875 | Some influential environment variables: |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 876 | CC C compiler command |
| 877 | CFLAGS C compiler flags |
| 878 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 879 | nonstandard directory <lib dir> |
| 880 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 881 | headers in a nonstandard directory <include dir> |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 882 | CXX C++ compiler command |
| 883 | CXXFLAGS C++ compiler flags |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 884 | CPP C preprocessor |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 885 | |
| 886 | Use these variables to override the choices made by `configure' or to help |
| 887 | it to find libraries and programs with nonstandard names/locations. |
| 888 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 889 | Report bugs to <wine-devel@winehq.org>. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 890 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 891 | fi |
| 892 | |
| 893 | if test "$ac_init_help" = "recursive"; then |
| 894 | # If there are subdirs, report their specific --help. |
| 895 | ac_popdir=`pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 896 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 897 | test -d $ac_dir || continue |
| 898 | ac_builddir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 899 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 900 | if test "$ac_dir" != .; then |
| 901 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 902 | # A "../" for each directory in $ac_dir_suffix. |
| 903 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 904 | else |
| 905 | ac_dir_suffix= ac_top_builddir= |
| 906 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 907 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 908 | case $srcdir in |
| 909 | .) # No --srcdir option. We are building in place. |
| 910 | ac_srcdir=. |
| 911 | if test -z "$ac_top_builddir"; then |
| 912 | ac_top_srcdir=. |
| 913 | else |
| 914 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 915 | fi ;; |
| 916 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 917 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 918 | ac_top_srcdir=$srcdir ;; |
| 919 | *) # Relative path. |
| 920 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 921 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 922 | esac |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 923 | |
| 924 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 925 | # the directories may not exist. |
| 926 | case `pwd` in |
| 927 | .) ac_abs_builddir="$ac_dir";; |
| 928 | *) |
| 929 | case "$ac_dir" in |
| 930 | .) ac_abs_builddir=`pwd`;; |
| 931 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 932 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 933 | esac;; |
| 934 | esac |
| 935 | case $ac_abs_builddir in |
| 936 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 937 | *) |
| 938 | case ${ac_top_builddir}. in |
| 939 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 940 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 941 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 942 | esac;; |
| 943 | esac |
| 944 | case $ac_abs_builddir in |
| 945 | .) ac_abs_srcdir=$ac_srcdir;; |
| 946 | *) |
| 947 | case $ac_srcdir in |
| 948 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 949 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 950 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 951 | esac;; |
| 952 | esac |
| 953 | case $ac_abs_builddir in |
| 954 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 955 | *) |
| 956 | case $ac_top_srcdir in |
| 957 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 958 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 959 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 960 | esac;; |
| 961 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 962 | |
| 963 | cd $ac_dir |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 964 | # Check for guested configure; otherwise get Cygnus style configure. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 965 | if test -f $ac_srcdir/configure.gnu; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 966 | echo |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 967 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 968 | elif test -f $ac_srcdir/configure; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 969 | echo |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 970 | $SHELL $ac_srcdir/configure --help=recursive |
| 971 | elif test -f $ac_srcdir/configure.ac || |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 972 | test -f $ac_srcdir/configure.in; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 973 | echo |
| 974 | $ac_configure --help |
| 975 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 976 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 977 | fi |
Alexandre Julliard | ccc7570 | 2003-09-19 04:36:54 +0000 | [diff] [blame] | 978 | cd "$ac_popdir" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 979 | done |
| 980 | fi |
| 981 | |
| 982 | test -n "$ac_init_help" && exit 0 |
| 983 | if $ac_init_version; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 984 | cat <<\_ACEOF |
Alexandre Julliard | 62a4807 | 2004-07-17 00:52:37 +0000 | [diff] [blame] | 985 | Wine configure 20040716 |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 986 | generated by GNU Autoconf 2.59 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 987 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 988 | Copyright (C) 2003 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 989 | This configure script is free software; the Free Software Foundation |
| 990 | gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 991 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 992 | exit 0 |
| 993 | fi |
| 994 | exec 5>config.log |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 995 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 996 | This file contains any messages produced by compilers while |
| 997 | running configure, to aid debugging if configure makes a mistake. |
| 998 | |
Alexandre Julliard | 62a4807 | 2004-07-17 00:52:37 +0000 | [diff] [blame] | 999 | It was created by Wine $as_me 20040716, which was |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1000 | generated by GNU Autoconf 2.59. Invocation command line was |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1001 | |
| 1002 | $ $0 $@ |
| 1003 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1004 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1005 | { |
| 1006 | cat <<_ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1007 | ## --------- ## |
| 1008 | ## Platform. ## |
| 1009 | ## --------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1010 | |
| 1011 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1012 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1013 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1014 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1015 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1016 | |
| 1017 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1018 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1019 | |
| 1020 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1021 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1022 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1023 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1024 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1025 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1026 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1027 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1028 | _ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1029 | |
| 1030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1031 | for as_dir in $PATH |
| 1032 | do |
| 1033 | IFS=$as_save_IFS |
| 1034 | test -z "$as_dir" && as_dir=. |
| 1035 | echo "PATH: $as_dir" |
| 1036 | done |
| 1037 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1038 | } >&5 |
| 1039 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1040 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1041 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1042 | |
| 1043 | ## ----------- ## |
| 1044 | ## Core tests. ## |
| 1045 | ## ----------- ## |
| 1046 | |
| 1047 | _ACEOF |
| 1048 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1049 | |
| 1050 | # Keep a trace of the command line. |
| 1051 | # Strip out --no-create and --no-recursion so they do not pile up. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1052 | # Strip out --silent because we don't want to record it for future runs. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1053 | # Also quote any args containing shell meta-characters. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1054 | # Make two passes to allow for proper duplicate-argument suppression. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1055 | ac_configure_args= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1056 | ac_configure_args0= |
| 1057 | ac_configure_args1= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1058 | ac_sep= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1059 | ac_must_keep_next=false |
| 1060 | for ac_pass in 1 2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1061 | do |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1062 | for ac_arg |
| 1063 | do |
| 1064 | case $ac_arg in |
| 1065 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1066 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1067 | | -silent | --silent | --silen | --sile | --sil) |
| 1068 | continue ;; |
| 1069 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1070 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1071 | esac |
| 1072 | case $ac_pass in |
| 1073 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1074 | 2) |
| 1075 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1076 | if test $ac_must_keep_next = true; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1077 | ac_must_keep_next=false # Got value, back to normal. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1078 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1079 | case $ac_arg in |
| 1080 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1081 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1082 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1083 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1084 | case "$ac_configure_args0 " in |
| 1085 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1086 | esac |
| 1087 | ;; |
| 1088 | -* ) ac_must_keep_next=true ;; |
| 1089 | esac |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1090 | fi |
| 1091 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1092 | # Get rid of the leading space. |
| 1093 | ac_sep=" " |
| 1094 | ;; |
| 1095 | esac |
| 1096 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1097 | done |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1098 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1099 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1100 | |
| 1101 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1102 | # config.log. We remove comments because anyway the quotes in there |
| 1103 | # would cause problems or look ugly. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1104 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1105 | # such as our DU 5.0 friend, will then `close' the trap. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1106 | trap 'exit_status=$? |
| 1107 | # Save into config.log some information that might help in debugging. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1108 | { |
| 1109 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1110 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1111 | cat <<\_ASBOX |
| 1112 | ## ---------------- ## |
| 1113 | ## Cache variables. ## |
| 1114 | ## ---------------- ## |
| 1115 | _ASBOX |
| 1116 | echo |
| 1117 | # The following way of writing the cache mishandles newlines in values, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1118 | { |
| 1119 | (set) 2>&1 | |
| 1120 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1121 | *ac_space=\ *) |
| 1122 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1123 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1124 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1125 | ;; |
| 1126 | *) |
| 1127 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1128 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1129 | ;; |
| 1130 | esac; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1131 | } |
| 1132 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1133 | |
| 1134 | cat <<\_ASBOX |
| 1135 | ## ----------------- ## |
| 1136 | ## Output variables. ## |
| 1137 | ## ----------------- ## |
| 1138 | _ASBOX |
| 1139 | echo |
| 1140 | for ac_var in $ac_subst_vars |
| 1141 | do |
| 1142 | eval ac_val=$`echo $ac_var` |
| 1143 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1144 | done | sort |
| 1145 | echo |
| 1146 | |
| 1147 | if test -n "$ac_subst_files"; then |
| 1148 | cat <<\_ASBOX |
| 1149 | ## ------------- ## |
| 1150 | ## Output files. ## |
| 1151 | ## ------------- ## |
| 1152 | _ASBOX |
| 1153 | echo |
| 1154 | for ac_var in $ac_subst_files |
| 1155 | do |
| 1156 | eval ac_val=$`echo $ac_var` |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1157 | echo "$ac_var='"'"'$ac_val'"'"'" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1158 | done | sort |
| 1159 | echo |
| 1160 | fi |
| 1161 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1162 | if test -s confdefs.h; then |
| 1163 | cat <<\_ASBOX |
| 1164 | ## ----------- ## |
| 1165 | ## confdefs.h. ## |
| 1166 | ## ----------- ## |
| 1167 | _ASBOX |
| 1168 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1169 | sed "/^$/d" confdefs.h | sort |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1170 | echo |
| 1171 | fi |
| 1172 | test "$ac_signal" != 0 && |
| 1173 | echo "$as_me: caught signal $ac_signal" |
| 1174 | echo "$as_me: exit $exit_status" |
| 1175 | } >&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 1176 | rm -f core *.core && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1177 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1178 | exit $exit_status |
| 1179 | ' 0 |
| 1180 | for ac_signal in 1 2 13 15; do |
| 1181 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1182 | done |
| 1183 | ac_signal=0 |
| 1184 | |
| 1185 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1186 | rm -rf conftest* confdefs.h |
| 1187 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1188 | echo >confdefs.h |
| 1189 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1190 | # Predefined preprocessor variables. |
| 1191 | |
| 1192 | cat >>confdefs.h <<_ACEOF |
| 1193 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1194 | _ACEOF |
| 1195 | |
| 1196 | |
| 1197 | cat >>confdefs.h <<_ACEOF |
| 1198 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1199 | _ACEOF |
| 1200 | |
| 1201 | |
| 1202 | cat >>confdefs.h <<_ACEOF |
| 1203 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1204 | _ACEOF |
| 1205 | |
| 1206 | |
| 1207 | cat >>confdefs.h <<_ACEOF |
| 1208 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1209 | _ACEOF |
| 1210 | |
| 1211 | |
| 1212 | cat >>confdefs.h <<_ACEOF |
| 1213 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1214 | _ACEOF |
| 1215 | |
| 1216 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1217 | # 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] | 1218 | # Prefer explicitly selected file to automatically selected ones. |
| 1219 | if test -z "$CONFIG_SITE"; then |
| 1220 | if test "x$prefix" != xNONE; then |
| 1221 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1222 | else |
| 1223 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1224 | fi |
| 1225 | fi |
| 1226 | for ac_site_file in $CONFIG_SITE; do |
| 1227 | if test -r "$ac_site_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1228 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1229 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1230 | sed 's/^/| /' "$ac_site_file" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1231 | . "$ac_site_file" |
| 1232 | fi |
| 1233 | done |
| 1234 | |
| 1235 | if test -r "$cache_file"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1236 | # Some versions of bash will fail to source /dev/null (special |
| 1237 | # files actually), so we avoid doing that. |
| 1238 | if test -f "$cache_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1239 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1240 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1241 | case $cache_file in |
| 1242 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1243 | *) . ./$cache_file;; |
| 1244 | esac |
| 1245 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1246 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1247 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1248 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1249 | >$cache_file |
| 1250 | fi |
| 1251 | |
| 1252 | # Check that the precious variables saved in the cache have kept the same |
| 1253 | # value. |
| 1254 | ac_cache_corrupted=false |
| 1255 | for ac_var in `(set) 2>&1 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1256 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1257 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1258 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1259 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1260 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1261 | case $ac_old_set,$ac_new_set in |
| 1262 | set,) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1263 | { 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] | 1264 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1265 | ac_cache_corrupted=: ;; |
| 1266 | ,set) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1267 | { 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] | 1268 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1269 | ac_cache_corrupted=: ;; |
| 1270 | ,);; |
| 1271 | *) |
| 1272 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1273 | { 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] | 1274 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1275 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1276 | echo "$as_me: former value: $ac_old_val" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1277 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1278 | echo "$as_me: current value: $ac_new_val" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1279 | ac_cache_corrupted=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1280 | fi;; |
| 1281 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1282 | # Pass precious variables to config.status. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1283 | if test "$ac_new_set" = set; then |
| 1284 | case $ac_new_val in |
| 1285 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1286 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1287 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1288 | esac |
| 1289 | case " $ac_configure_args " in |
| 1290 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1291 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1292 | esac |
| 1293 | fi |
| 1294 | done |
| 1295 | if $ac_cache_corrupted; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1296 | { 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] | 1297 | 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] | 1298 | { { 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] | 1299 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1300 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1301 | fi |
| 1302 | |
| 1303 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1304 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1308 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1309 | |
| 1310 | |
| 1311 | |
| 1312 | |
| 1313 | |
| 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1334 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1335 | |
| 1336 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1337 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1338 | ac_aux_dir= |
| 1339 | for ac_dir in tools $srcdir/tools; do |
| 1340 | if test -f $ac_dir/install-sh; then |
| 1341 | ac_aux_dir=$ac_dir |
| 1342 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1343 | break |
| 1344 | elif test -f $ac_dir/install.sh; then |
| 1345 | ac_aux_dir=$ac_dir |
| 1346 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1347 | break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1348 | elif test -f $ac_dir/shtool; then |
| 1349 | ac_aux_dir=$ac_dir |
| 1350 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1351 | break |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1352 | fi |
| 1353 | done |
| 1354 | if test -z "$ac_aux_dir"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1355 | { { 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] | 1356 | echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;} |
| 1357 | { (exit 1); exit 1; }; } |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1358 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1359 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1360 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1361 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 1362 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1363 | |
| 1364 | |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1365 | # Check whether --enable-win16 or --disable-win16 was given. |
| 1366 | if test "${enable_win16+set}" = set; then |
| 1367 | enableval="$enable_win16" |
| 1368 | |
| 1369 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1370 | # Check whether --enable-debug or --disable-debug was given. |
| 1371 | if test "${enable_debug+set}" = set; then |
| 1372 | enableval="$enable_debug" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1373 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1374 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1375 | # Check whether --enable-trace or --disable-trace was given. |
| 1376 | if test "${enable_trace+set}" = set; then |
| 1377 | enableval="$enable_trace" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1378 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1379 | fi; |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 1380 | |
| 1381 | |
| 1382 | # Check whether --with-opengl or --without-opengl was given. |
| 1383 | if test "${with_opengl+set}" = set; then |
| 1384 | withval="$with_opengl" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1385 | |
| 1386 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1387 | |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1388 | # Check whether --with-curses or --without-curses was given. |
| 1389 | if test "${with_curses+set}" = set; then |
| 1390 | withval="$with_curses" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1391 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1392 | fi; |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1393 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1394 | # Check whether --with-wine-tools or --without-wine-tools was given. |
| 1395 | if test "${with_wine_tools+set}" = set; then |
| 1396 | withval="$with_wine_tools" |
| 1397 | |
| 1398 | fi; |
| 1399 | |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1400 | WIN16_FILES="\$(WIN16_FILES)" |
| 1401 | |
| 1402 | WIN16_INSTALL="\$(WIN16_INSTALL)" |
| 1403 | |
| 1404 | if test "x$enable_win16" = "xno" |
| 1405 | then |
| 1406 | WIN16_FILES="" |
| 1407 | WIN16_INSTALL="" |
| 1408 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1409 | if test "x$enable_debug" = "xno" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1410 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1411 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1412 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1413 | #define NO_DEBUG_MSGS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1414 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1415 | |
| 1416 | fi |
| 1417 | if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1418 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1419 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1420 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1421 | #define NO_TRACE_MSGS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1422 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1423 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1424 | fi |
| 1425 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1426 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1427 | # Make sure we can run config.sub. |
| 1428 | $ac_config_sub sun4 >/dev/null 2>&1 || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1429 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1430 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1431 | { (exit 1); exit 1; }; } |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 1432 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1433 | echo "$as_me:$LINENO: checking build system type" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1434 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1435 | if test "${ac_cv_build+set}" = set; then |
| 1436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1437 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1438 | ac_cv_build_alias=$build_alias |
| 1439 | test -z "$ac_cv_build_alias" && |
| 1440 | ac_cv_build_alias=`$ac_config_guess` |
| 1441 | test -z "$ac_cv_build_alias" && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1442 | { { 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] | 1443 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1444 | { (exit 1); exit 1; }; } |
| 1445 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1446 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1447 | 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] | 1448 | { (exit 1); exit 1; }; } |
| 1449 | |
| 1450 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1451 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1452 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1453 | build=$ac_cv_build |
| 1454 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1455 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1456 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1457 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1458 | |
| 1459 | echo "$as_me:$LINENO: checking host system type" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1460 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1461 | if test "${ac_cv_host+set}" = set; then |
| 1462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1463 | else |
| 1464 | ac_cv_host_alias=$host_alias |
| 1465 | test -z "$ac_cv_host_alias" && |
| 1466 | ac_cv_host_alias=$ac_cv_build_alias |
| 1467 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1468 | { { 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] | 1469 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1470 | { (exit 1); exit 1; }; } |
| 1471 | |
| 1472 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1473 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1474 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1475 | host=$ac_cv_host |
| 1476 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1477 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1478 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1479 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1480 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1481 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1482 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1483 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1484 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1486 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1487 | cat >conftest.make <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1488 | all: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1489 | @echo 'ac_maketemp="$(MAKE)"' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1490 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1491 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1492 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1493 | if test -n "$ac_maketemp"; then |
| 1494 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1495 | else |
| 1496 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1497 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1498 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1499 | fi |
| 1500 | 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] | 1501 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1502 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1503 | SET_MAKE= |
| 1504 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1505 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1506 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1507 | SET_MAKE="MAKE=${MAKE-make}" |
| 1508 | fi |
| 1509 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1510 | ac_ext=c |
| 1511 | ac_cpp='$CPP $CPPFLAGS' |
| 1512 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1513 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1514 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1515 | if test -n "$ac_tool_prefix"; then |
| 1516 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1517 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1518 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1519 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1520 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1522 | else |
| 1523 | if test -n "$CC"; then |
| 1524 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1525 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1527 | for as_dir in $PATH |
| 1528 | do |
| 1529 | IFS=$as_save_IFS |
| 1530 | test -z "$as_dir" && as_dir=. |
| 1531 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1532 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1533 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1535 | break 2 |
| 1536 | fi |
| 1537 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1538 | done |
| 1539 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1540 | fi |
| 1541 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1542 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1543 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1544 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1545 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1546 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1547 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1548 | echo "${ECHO_T}no" >&6 |
| 1549 | fi |
| 1550 | |
| 1551 | fi |
| 1552 | if test -z "$ac_cv_prog_CC"; then |
| 1553 | ac_ct_CC=$CC |
| 1554 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1555 | set dummy gcc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1556 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1558 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1560 | else |
| 1561 | if test -n "$ac_ct_CC"; then |
| 1562 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1563 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1565 | for as_dir in $PATH |
| 1566 | do |
| 1567 | IFS=$as_save_IFS |
| 1568 | test -z "$as_dir" && as_dir=. |
| 1569 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1570 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1571 | ac_cv_prog_ac_ct_CC="gcc" |
| 1572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1573 | break 2 |
| 1574 | fi |
| 1575 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1576 | done |
| 1577 | |
| 1578 | fi |
| 1579 | fi |
| 1580 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1581 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1582 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1583 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1584 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1585 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1586 | echo "${ECHO_T}no" >&6 |
| 1587 | fi |
| 1588 | |
| 1589 | CC=$ac_ct_CC |
| 1590 | else |
| 1591 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1592 | fi |
| 1593 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1594 | if test -z "$CC"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1595 | if test -n "$ac_tool_prefix"; then |
| 1596 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1597 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1598 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1600 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1602 | else |
| 1603 | if test -n "$CC"; then |
| 1604 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1605 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1607 | for as_dir in $PATH |
| 1608 | do |
| 1609 | IFS=$as_save_IFS |
| 1610 | test -z "$as_dir" && as_dir=. |
| 1611 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1612 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1613 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1614 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1615 | break 2 |
| 1616 | fi |
| 1617 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1618 | done |
| 1619 | |
| 1620 | fi |
| 1621 | fi |
| 1622 | CC=$ac_cv_prog_CC |
| 1623 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1624 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1625 | echo "${ECHO_T}$CC" >&6 |
| 1626 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1627 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1628 | echo "${ECHO_T}no" >&6 |
| 1629 | fi |
| 1630 | |
| 1631 | fi |
| 1632 | if test -z "$ac_cv_prog_CC"; then |
| 1633 | ac_ct_CC=$CC |
| 1634 | # Extract the first word of "cc", so it can be a program name with args. |
| 1635 | set dummy cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1636 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1637 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1638 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1640 | else |
| 1641 | if test -n "$ac_ct_CC"; then |
| 1642 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1643 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1645 | for as_dir in $PATH |
| 1646 | do |
| 1647 | IFS=$as_save_IFS |
| 1648 | test -z "$as_dir" && as_dir=. |
| 1649 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1650 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1651 | ac_cv_prog_ac_ct_CC="cc" |
| 1652 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1653 | break 2 |
| 1654 | fi |
| 1655 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1656 | done |
| 1657 | |
| 1658 | fi |
| 1659 | fi |
| 1660 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1661 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1662 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1663 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1664 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1665 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1666 | echo "${ECHO_T}no" >&6 |
| 1667 | fi |
| 1668 | |
| 1669 | CC=$ac_ct_CC |
| 1670 | else |
| 1671 | CC="$ac_cv_prog_CC" |
| 1672 | fi |
| 1673 | |
| 1674 | fi |
| 1675 | if test -z "$CC"; then |
| 1676 | # Extract the first word of "cc", so it can be a program name with args. |
| 1677 | set dummy cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1678 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1680 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1682 | else |
| 1683 | if test -n "$CC"; then |
| 1684 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1685 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1686 | ac_prog_rejected=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1688 | for as_dir in $PATH |
| 1689 | do |
| 1690 | IFS=$as_save_IFS |
| 1691 | test -z "$as_dir" && as_dir=. |
| 1692 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1694 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1695 | ac_prog_rejected=yes |
| 1696 | continue |
| 1697 | fi |
| 1698 | ac_cv_prog_CC="cc" |
| 1699 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1700 | break 2 |
| 1701 | fi |
| 1702 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1703 | done |
| 1704 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1705 | if test $ac_prog_rejected = yes; then |
| 1706 | # We found a bogon in the path, so make sure we never use it. |
| 1707 | set dummy $ac_cv_prog_CC |
| 1708 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1709 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1710 | # We chose a different compiler from the bogus one. |
| 1711 | # However, it has the same basename, so the bogon will be chosen |
| 1712 | # first if we set CC to just the basename; use the full file name. |
| 1713 | shift |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1714 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1715 | fi |
| 1716 | fi |
| 1717 | fi |
| 1718 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1719 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1720 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1721 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1722 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1723 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1724 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1725 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1726 | fi |
| 1727 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1728 | fi |
| 1729 | if test -z "$CC"; then |
| 1730 | if test -n "$ac_tool_prefix"; then |
| 1731 | for ac_prog in cl |
| 1732 | do |
| 1733 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1734 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1735 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1736 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1737 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1739 | else |
| 1740 | if test -n "$CC"; then |
| 1741 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1742 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1744 | for as_dir in $PATH |
| 1745 | do |
| 1746 | IFS=$as_save_IFS |
| 1747 | test -z "$as_dir" && as_dir=. |
| 1748 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1749 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1750 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1751 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1752 | break 2 |
| 1753 | fi |
| 1754 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1755 | done |
| 1756 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1757 | fi |
| 1758 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1759 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1760 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1761 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1762 | echo "${ECHO_T}$CC" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1763 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1764 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1765 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1766 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1767 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1768 | test -n "$CC" && break |
| 1769 | done |
| 1770 | fi |
| 1771 | if test -z "$CC"; then |
| 1772 | ac_ct_CC=$CC |
| 1773 | for ac_prog in cl |
| 1774 | do |
| 1775 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1776 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1777 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1778 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1779 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1781 | else |
| 1782 | if test -n "$ac_ct_CC"; then |
| 1783 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1784 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1786 | for as_dir in $PATH |
| 1787 | do |
| 1788 | IFS=$as_save_IFS |
| 1789 | test -z "$as_dir" && as_dir=. |
| 1790 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1791 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1792 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1793 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1794 | break 2 |
| 1795 | fi |
| 1796 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1797 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1798 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1799 | fi |
| 1800 | fi |
| 1801 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1802 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1803 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1804 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1805 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1806 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1807 | echo "${ECHO_T}no" >&6 |
| 1808 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1809 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1810 | test -n "$ac_ct_CC" && break |
| 1811 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1812 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1813 | CC=$ac_ct_CC |
| 1814 | fi |
| 1815 | |
| 1816 | fi |
| 1817 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1818 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1819 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1820 | See \`config.log' for more details." >&5 |
| 1821 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1822 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1823 | { (exit 1); exit 1; }; } |
| 1824 | |
| 1825 | # Provide some information about the compiler. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1826 | echo "$as_me:$LINENO:" \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1827 | "checking for C compiler version" >&5 |
| 1828 | ac_compiler=`set X $ac_compile; echo $2` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1829 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1830 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1831 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1833 | (exit $ac_status); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1834 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1835 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1836 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1838 | (exit $ac_status); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1839 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1840 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1841 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1843 | (exit $ac_status); } |
| 1844 | |
| 1845 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1846 | /* confdefs.h. */ |
| 1847 | _ACEOF |
| 1848 | cat confdefs.h >>conftest.$ac_ext |
| 1849 | cat >>conftest.$ac_ext <<_ACEOF |
| 1850 | /* end confdefs.h. */ |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1851 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1852 | int |
| 1853 | main () |
| 1854 | { |
| 1855 | |
| 1856 | ; |
| 1857 | return 0; |
| 1858 | } |
| 1859 | _ACEOF |
| 1860 | ac_clean_files_save=$ac_clean_files |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1861 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1862 | # Try to create an executable without -o first, disregard a.out. |
| 1863 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1864 | # of exeext. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1865 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1866 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1867 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1868 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1869 | (eval $ac_link_default) 2>&5 |
| 1870 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1872 | (exit $ac_status); }; then |
| 1873 | # Find the output, starting from the most likely. This scheme is |
| 1874 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1875 | # resort. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1876 | |
| 1877 | # Be careful to initialize this variable, since it used to be cached. |
| 1878 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1879 | ac_cv_exeext= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1880 | # b.out is created by i960 compilers. |
| 1881 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1882 | do |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1883 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1884 | case $ac_file in |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1885 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1886 | ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1887 | conftest.$ac_ext ) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1888 | # This is the source file. |
| 1889 | ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1890 | [ab].out ) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1891 | # We found the default executable, but exeext='' is most |
| 1892 | # certainly right. |
| 1893 | break;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1894 | *.* ) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1895 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1896 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1897 | # but it would be cool to find out if it's true. Does anybody |
| 1898 | # maintain Libtool? --akim. |
| 1899 | export ac_cv_exeext |
| 1900 | break;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1901 | * ) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1902 | break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1903 | esac |
| 1904 | done |
| 1905 | else |
| 1906 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1908 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1909 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1910 | See \`config.log' for more details." >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1911 | echo "$as_me: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1912 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1913 | { (exit 77); exit 77; }; } |
| 1914 | fi |
| 1915 | |
| 1916 | ac_exeext=$ac_cv_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1917 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1918 | echo "${ECHO_T}$ac_file" >&6 |
| 1919 | |
| 1920 | # Check the compiler produces executables we can run. If not, either |
| 1921 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1922 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1923 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1924 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1925 | # If not cross compiling, check that we can run a simple program. |
| 1926 | if test "$cross_compiling" != yes; then |
| 1927 | if { ac_try='./$ac_file' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1929 | (eval $ac_try) 2>&5 |
| 1930 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1932 | (exit $ac_status); }; }; then |
| 1933 | cross_compiling=no |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1934 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1935 | if test "$cross_compiling" = maybe; then |
| 1936 | cross_compiling=yes |
| 1937 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1938 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1939 | If you meant to cross compile, use \`--host'. |
| 1940 | See \`config.log' for more details." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1941 | echo "$as_me: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1942 | If you meant to cross compile, use \`--host'. |
| 1943 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1944 | { (exit 1); exit 1; }; } |
| 1945 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1946 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1947 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1948 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1949 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1950 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1951 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1952 | ac_clean_files=$ac_clean_files_save |
| 1953 | # Check the compiler produces executables we can run. If not, either |
| 1954 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1955 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1956 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1957 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1958 | echo "${ECHO_T}$cross_compiling" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1959 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1960 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1961 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1963 | (eval $ac_link) 2>&5 |
| 1964 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1966 | (exit $ac_status); }; then |
| 1967 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1968 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1969 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1970 | # `rm'. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1971 | for ac_file in conftest.exe conftest conftest.*; do |
| 1972 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1973 | case $ac_file in |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1974 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1975 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1976 | export ac_cv_exeext |
| 1977 | break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1978 | * ) break;; |
| 1979 | esac |
| 1980 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1981 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1982 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1983 | See \`config.log' for more details." >&5 |
| 1984 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1985 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1986 | { (exit 1); exit 1; }; } |
| 1987 | fi |
| 1988 | |
| 1989 | rm -f conftest$ac_cv_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1990 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1991 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1992 | |
| 1993 | rm -f conftest.$ac_ext |
| 1994 | EXEEXT=$ac_cv_exeext |
| 1995 | ac_exeext=$EXEEXT |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1996 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1997 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1998 | if test "${ac_cv_objext+set}" = set; then |
| 1999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2000 | else |
| 2001 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2002 | /* confdefs.h. */ |
| 2003 | _ACEOF |
| 2004 | cat confdefs.h >>conftest.$ac_ext |
| 2005 | cat >>conftest.$ac_ext <<_ACEOF |
| 2006 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2007 | |
| 2008 | int |
| 2009 | main () |
| 2010 | { |
| 2011 | |
| 2012 | ; |
| 2013 | return 0; |
| 2014 | } |
| 2015 | _ACEOF |
| 2016 | rm -f conftest.o conftest.obj |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2018 | (eval $ac_compile) 2>&5 |
| 2019 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2021 | (exit $ac_status); }; then |
| 2022 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2023 | case $ac_file in |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2024 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2025 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2026 | break;; |
| 2027 | esac |
| 2028 | done |
| 2029 | else |
| 2030 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2032 | |
| 2033 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2034 | See \`config.log' for more details." >&5 |
| 2035 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2036 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2037 | { (exit 1); exit 1; }; } |
| 2038 | fi |
| 2039 | |
| 2040 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2041 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2042 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2043 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2044 | OBJEXT=$ac_cv_objext |
| 2045 | ac_objext=$OBJEXT |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2046 | 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] | 2047 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2048 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2050 | else |
| 2051 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2052 | /* confdefs.h. */ |
| 2053 | _ACEOF |
| 2054 | cat confdefs.h >>conftest.$ac_ext |
| 2055 | cat >>conftest.$ac_ext <<_ACEOF |
| 2056 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2057 | |
| 2058 | int |
| 2059 | main () |
| 2060 | { |
| 2061 | #ifndef __GNUC__ |
| 2062 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2063 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2064 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2065 | ; |
| 2066 | return 0; |
| 2067 | } |
| 2068 | _ACEOF |
| 2069 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2071 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2072 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2074 | rm -f conftest.er1 |
| 2075 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2077 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2078 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2080 | (eval $ac_try) 2>&5 |
| 2081 | ac_status=$? |
| 2082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2083 | (exit $ac_status); }; } && |
| 2084 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2086 | (eval $ac_try) 2>&5 |
| 2087 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2089 | (exit $ac_status); }; }; then |
| 2090 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2091 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2092 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2094 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2095 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2096 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2098 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2099 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2100 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2101 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2102 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2103 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2104 | ac_test_CFLAGS=${CFLAGS+set} |
| 2105 | ac_save_CFLAGS=$CFLAGS |
| 2106 | CFLAGS="-g" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2107 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2108 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2109 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2111 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2112 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2113 | /* confdefs.h. */ |
| 2114 | _ACEOF |
| 2115 | cat confdefs.h >>conftest.$ac_ext |
| 2116 | cat >>conftest.$ac_ext <<_ACEOF |
| 2117 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2118 | |
| 2119 | int |
| 2120 | main () |
| 2121 | { |
| 2122 | |
| 2123 | ; |
| 2124 | return 0; |
| 2125 | } |
| 2126 | _ACEOF |
| 2127 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2129 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2130 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2132 | rm -f conftest.er1 |
| 2133 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2135 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2136 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2138 | (eval $ac_try) 2>&5 |
| 2139 | ac_status=$? |
| 2140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2141 | (exit $ac_status); }; } && |
| 2142 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2144 | (eval $ac_try) 2>&5 |
| 2145 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2147 | (exit $ac_status); }; }; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2148 | ac_cv_prog_cc_g=yes |
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 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2152 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2153 | ac_cv_prog_cc_g=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2154 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2156 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2157 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2158 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2159 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2160 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2161 | elif test $ac_cv_prog_cc_g = yes; then |
| 2162 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2163 | CFLAGS="-g -O2" |
| 2164 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2165 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2166 | fi |
| 2167 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2168 | if test "$GCC" = yes; then |
| 2169 | CFLAGS="-O2" |
| 2170 | else |
| 2171 | CFLAGS= |
| 2172 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2173 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2174 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2175 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2176 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2178 | else |
| 2179 | ac_cv_prog_cc_stdc=no |
| 2180 | ac_save_CC=$CC |
| 2181 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2182 | /* confdefs.h. */ |
| 2183 | _ACEOF |
| 2184 | cat confdefs.h >>conftest.$ac_ext |
| 2185 | cat >>conftest.$ac_ext <<_ACEOF |
| 2186 | /* end confdefs.h. */ |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2187 | #include <stdarg.h> |
| 2188 | #include <stdio.h> |
| 2189 | #include <sys/types.h> |
| 2190 | #include <sys/stat.h> |
| 2191 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2192 | struct buf { int x; }; |
| 2193 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2194 | static char *e (p, i) |
| 2195 | char **p; |
| 2196 | int i; |
| 2197 | { |
| 2198 | return p[i]; |
| 2199 | } |
| 2200 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2201 | { |
| 2202 | char *s; |
| 2203 | va_list v; |
| 2204 | va_start (v,p); |
| 2205 | s = g (p, va_arg (v,int)); |
| 2206 | va_end (v); |
| 2207 | return s; |
| 2208 | } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2209 | |
| 2210 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2211 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2212 | These don't provoke an error unfortunately, instead are silently treated |
| 2213 | as 'x'. The following induces an error, until -std1 is added to get |
| 2214 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2215 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2216 | that's true only with -std1. */ |
| 2217 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2218 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2219 | int test (int i, double x); |
| 2220 | struct s1 {int (*f) (int a);}; |
| 2221 | struct s2 {int (*f) (double a);}; |
| 2222 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2223 | int argc; |
| 2224 | char **argv; |
| 2225 | int |
| 2226 | main () |
| 2227 | { |
| 2228 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2229 | ; |
| 2230 | return 0; |
| 2231 | } |
| 2232 | _ACEOF |
| 2233 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2234 | # breaks some systems' header files. |
| 2235 | # AIX -qlanglvl=ansi |
| 2236 | # Ultrix and OSF/1 -std1 |
| 2237 | # HP-UX 10.20 and later -Ae |
| 2238 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2239 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2240 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2241 | do |
| 2242 | CC="$ac_save_CC $ac_arg" |
| 2243 | rm -f conftest.$ac_objext |
| 2244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2245 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2246 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2248 | rm -f conftest.er1 |
| 2249 | cat conftest.err >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2251 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2254 | (eval $ac_try) 2>&5 |
| 2255 | ac_status=$? |
| 2256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2257 | (exit $ac_status); }; } && |
| 2258 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2260 | (eval $ac_try) 2>&5 |
| 2261 | ac_status=$? |
| 2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2263 | (exit $ac_status); }; }; then |
| 2264 | ac_cv_prog_cc_stdc=$ac_arg |
| 2265 | break |
| 2266 | else |
| 2267 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2269 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2270 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2271 | rm -f conftest.err conftest.$ac_objext |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2272 | done |
| 2273 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2274 | CC=$ac_save_CC |
| 2275 | |
| 2276 | fi |
| 2277 | |
| 2278 | case "x$ac_cv_prog_cc_stdc" in |
| 2279 | x|xno) |
| 2280 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2281 | echo "${ECHO_T}none needed" >&6 ;; |
| 2282 | *) |
| 2283 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2284 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2285 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2286 | esac |
| 2287 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2288 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2289 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2290 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2291 | # the declaration of exit, since it's the most demanding environment. |
| 2292 | cat >conftest.$ac_ext <<_ACEOF |
| 2293 | #ifndef __cplusplus |
| 2294 | choke me |
| 2295 | #endif |
| 2296 | _ACEOF |
| 2297 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2299 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2300 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2302 | rm -f conftest.er1 |
| 2303 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2305 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2306 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2308 | (eval $ac_try) 2>&5 |
| 2309 | ac_status=$? |
| 2310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2311 | (exit $ac_status); }; } && |
| 2312 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2314 | (eval $ac_try) 2>&5 |
| 2315 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2317 | (exit $ac_status); }; }; then |
| 2318 | for ac_declaration in \ |
Alexandre Julliard | 90b1c2c | 2003-06-18 20:35:38 +0000 | [diff] [blame] | 2319 | '' \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2320 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2321 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2322 | 'extern "C" void exit (int) throw ();' \ |
| 2323 | 'extern "C" void exit (int);' \ |
Alexandre Julliard | 90b1c2c | 2003-06-18 20:35:38 +0000 | [diff] [blame] | 2324 | 'void exit (int);' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2325 | do |
| 2326 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2327 | /* confdefs.h. */ |
| 2328 | _ACEOF |
| 2329 | cat confdefs.h >>conftest.$ac_ext |
| 2330 | cat >>conftest.$ac_ext <<_ACEOF |
| 2331 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2332 | $ac_declaration |
Alexandre Julliard | 90b1c2c | 2003-06-18 20:35:38 +0000 | [diff] [blame] | 2333 | #include <stdlib.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2334 | int |
| 2335 | main () |
| 2336 | { |
| 2337 | exit (42); |
| 2338 | ; |
| 2339 | return 0; |
| 2340 | } |
| 2341 | _ACEOF |
| 2342 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2344 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2345 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2347 | rm -f conftest.er1 |
| 2348 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2350 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2351 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2353 | (eval $ac_try) 2>&5 |
| 2354 | ac_status=$? |
| 2355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2356 | (exit $ac_status); }; } && |
| 2357 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2359 | (eval $ac_try) 2>&5 |
| 2360 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2362 | (exit $ac_status); }; }; then |
| 2363 | : |
| 2364 | else |
| 2365 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2367 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2368 | continue |
| 2369 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2371 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2372 | /* confdefs.h. */ |
| 2373 | _ACEOF |
| 2374 | cat confdefs.h >>conftest.$ac_ext |
| 2375 | cat >>conftest.$ac_ext <<_ACEOF |
| 2376 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2377 | $ac_declaration |
| 2378 | int |
| 2379 | main () |
| 2380 | { |
| 2381 | exit (42); |
| 2382 | ; |
| 2383 | return 0; |
| 2384 | } |
| 2385 | _ACEOF |
| 2386 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2388 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2389 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2391 | rm -f conftest.er1 |
| 2392 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2394 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2395 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2397 | (eval $ac_try) 2>&5 |
| 2398 | ac_status=$? |
| 2399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2400 | (exit $ac_status); }; } && |
| 2401 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2403 | (eval $ac_try) 2>&5 |
| 2404 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2406 | (exit $ac_status); }; }; then |
| 2407 | break |
| 2408 | else |
| 2409 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2411 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2412 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2414 | done |
| 2415 | rm -f conftest* |
| 2416 | if test -n "$ac_declaration"; then |
| 2417 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2418 | echo $ac_declaration >>confdefs.h |
| 2419 | echo '#endif' >>confdefs.h |
| 2420 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2421 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2422 | else |
| 2423 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2425 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2426 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2428 | ac_ext=c |
| 2429 | ac_cpp='$CPP $CPPFLAGS' |
| 2430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2433 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2434 | ac_ext=cc |
| 2435 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2436 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2437 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2438 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2439 | if test -n "$ac_tool_prefix"; then |
| 2440 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2441 | do |
| 2442 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2443 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2444 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2446 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2448 | else |
| 2449 | if test -n "$CXX"; then |
| 2450 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2451 | else |
| 2452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2453 | for as_dir in $PATH |
| 2454 | do |
| 2455 | IFS=$as_save_IFS |
| 2456 | test -z "$as_dir" && as_dir=. |
| 2457 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2458 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2459 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2461 | break 2 |
| 2462 | fi |
| 2463 | done |
| 2464 | done |
| 2465 | |
| 2466 | fi |
| 2467 | fi |
| 2468 | CXX=$ac_cv_prog_CXX |
| 2469 | if test -n "$CXX"; then |
| 2470 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2471 | echo "${ECHO_T}$CXX" >&6 |
| 2472 | else |
| 2473 | echo "$as_me:$LINENO: result: no" >&5 |
| 2474 | echo "${ECHO_T}no" >&6 |
| 2475 | fi |
| 2476 | |
| 2477 | test -n "$CXX" && break |
| 2478 | done |
| 2479 | fi |
| 2480 | if test -z "$CXX"; then |
| 2481 | ac_ct_CXX=$CXX |
| 2482 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2483 | do |
| 2484 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2485 | set dummy $ac_prog; ac_word=$2 |
| 2486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2488 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2490 | else |
| 2491 | if test -n "$ac_ct_CXX"; then |
| 2492 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2493 | else |
| 2494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2495 | for as_dir in $PATH |
| 2496 | do |
| 2497 | IFS=$as_save_IFS |
| 2498 | test -z "$as_dir" && as_dir=. |
| 2499 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2501 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2503 | break 2 |
| 2504 | fi |
| 2505 | done |
| 2506 | done |
| 2507 | |
| 2508 | fi |
| 2509 | fi |
| 2510 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2511 | if test -n "$ac_ct_CXX"; then |
| 2512 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2513 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 2514 | else |
| 2515 | echo "$as_me:$LINENO: result: no" >&5 |
| 2516 | echo "${ECHO_T}no" >&6 |
| 2517 | fi |
| 2518 | |
| 2519 | test -n "$ac_ct_CXX" && break |
| 2520 | done |
| 2521 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 2522 | |
| 2523 | CXX=$ac_ct_CXX |
| 2524 | fi |
| 2525 | |
| 2526 | |
| 2527 | # Provide some information about the compiler. |
| 2528 | echo "$as_me:$LINENO:" \ |
| 2529 | "checking for C++ compiler version" >&5 |
| 2530 | ac_compiler=`set X $ac_compile; echo $2` |
| 2531 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2532 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2533 | ac_status=$? |
| 2534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2535 | (exit $ac_status); } |
| 2536 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2537 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2538 | ac_status=$? |
| 2539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2540 | (exit $ac_status); } |
| 2541 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2542 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2543 | ac_status=$? |
| 2544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2545 | (exit $ac_status); } |
| 2546 | |
| 2547 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2548 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 2549 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2551 | else |
| 2552 | cat >conftest.$ac_ext <<_ACEOF |
| 2553 | /* confdefs.h. */ |
| 2554 | _ACEOF |
| 2555 | cat confdefs.h >>conftest.$ac_ext |
| 2556 | cat >>conftest.$ac_ext <<_ACEOF |
| 2557 | /* end confdefs.h. */ |
| 2558 | |
| 2559 | int |
| 2560 | main () |
| 2561 | { |
| 2562 | #ifndef __GNUC__ |
| 2563 | choke me |
| 2564 | #endif |
| 2565 | |
| 2566 | ; |
| 2567 | return 0; |
| 2568 | } |
| 2569 | _ACEOF |
| 2570 | rm -f conftest.$ac_objext |
| 2571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2572 | (eval $ac_compile) 2>conftest.er1 |
| 2573 | ac_status=$? |
| 2574 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2575 | rm -f conftest.er1 |
| 2576 | cat conftest.err >&5 |
| 2577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2578 | (exit $ac_status); } && |
| 2579 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2581 | (eval $ac_try) 2>&5 |
| 2582 | ac_status=$? |
| 2583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2584 | (exit $ac_status); }; } && |
| 2585 | { ac_try='test -s conftest.$ac_objext' |
| 2586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2587 | (eval $ac_try) 2>&5 |
| 2588 | ac_status=$? |
| 2589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2590 | (exit $ac_status); }; }; then |
| 2591 | ac_compiler_gnu=yes |
| 2592 | else |
| 2593 | echo "$as_me: failed program was:" >&5 |
| 2594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2595 | |
| 2596 | ac_compiler_gnu=no |
| 2597 | fi |
| 2598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2599 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2600 | |
| 2601 | fi |
| 2602 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2603 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 2604 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2605 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2606 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2607 | CXXFLAGS="-g" |
| 2608 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2609 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 2610 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2612 | else |
| 2613 | cat >conftest.$ac_ext <<_ACEOF |
| 2614 | /* confdefs.h. */ |
| 2615 | _ACEOF |
| 2616 | cat confdefs.h >>conftest.$ac_ext |
| 2617 | cat >>conftest.$ac_ext <<_ACEOF |
| 2618 | /* end confdefs.h. */ |
| 2619 | |
| 2620 | int |
| 2621 | main () |
| 2622 | { |
| 2623 | |
| 2624 | ; |
| 2625 | return 0; |
| 2626 | } |
| 2627 | _ACEOF |
| 2628 | rm -f conftest.$ac_objext |
| 2629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2630 | (eval $ac_compile) 2>conftest.er1 |
| 2631 | ac_status=$? |
| 2632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2633 | rm -f conftest.er1 |
| 2634 | cat conftest.err >&5 |
| 2635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2636 | (exit $ac_status); } && |
| 2637 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2639 | (eval $ac_try) 2>&5 |
| 2640 | ac_status=$? |
| 2641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2642 | (exit $ac_status); }; } && |
| 2643 | { ac_try='test -s conftest.$ac_objext' |
| 2644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2645 | (eval $ac_try) 2>&5 |
| 2646 | ac_status=$? |
| 2647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2648 | (exit $ac_status); }; }; then |
| 2649 | ac_cv_prog_cxx_g=yes |
| 2650 | else |
| 2651 | echo "$as_me: failed program was:" >&5 |
| 2652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2653 | |
| 2654 | ac_cv_prog_cxx_g=no |
| 2655 | fi |
| 2656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2657 | fi |
| 2658 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 2659 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 2660 | if test "$ac_test_CXXFLAGS" = set; then |
| 2661 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2662 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2663 | if test "$GXX" = yes; then |
| 2664 | CXXFLAGS="-g -O2" |
| 2665 | else |
| 2666 | CXXFLAGS="-g" |
| 2667 | fi |
| 2668 | else |
| 2669 | if test "$GXX" = yes; then |
| 2670 | CXXFLAGS="-O2" |
| 2671 | else |
| 2672 | CXXFLAGS= |
| 2673 | fi |
| 2674 | fi |
| 2675 | for ac_declaration in \ |
| 2676 | '' \ |
| 2677 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2678 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2679 | 'extern "C" void exit (int) throw ();' \ |
| 2680 | 'extern "C" void exit (int);' \ |
| 2681 | 'void exit (int);' |
| 2682 | do |
| 2683 | cat >conftest.$ac_ext <<_ACEOF |
| 2684 | /* confdefs.h. */ |
| 2685 | _ACEOF |
| 2686 | cat confdefs.h >>conftest.$ac_ext |
| 2687 | cat >>conftest.$ac_ext <<_ACEOF |
| 2688 | /* end confdefs.h. */ |
| 2689 | $ac_declaration |
| 2690 | #include <stdlib.h> |
| 2691 | int |
| 2692 | main () |
| 2693 | { |
| 2694 | exit (42); |
| 2695 | ; |
| 2696 | return 0; |
| 2697 | } |
| 2698 | _ACEOF |
| 2699 | rm -f conftest.$ac_objext |
| 2700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2701 | (eval $ac_compile) 2>conftest.er1 |
| 2702 | ac_status=$? |
| 2703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2704 | rm -f conftest.er1 |
| 2705 | cat conftest.err >&5 |
| 2706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2707 | (exit $ac_status); } && |
| 2708 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2710 | (eval $ac_try) 2>&5 |
| 2711 | ac_status=$? |
| 2712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2713 | (exit $ac_status); }; } && |
| 2714 | { ac_try='test -s conftest.$ac_objext' |
| 2715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2716 | (eval $ac_try) 2>&5 |
| 2717 | ac_status=$? |
| 2718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2719 | (exit $ac_status); }; }; then |
| 2720 | : |
| 2721 | else |
| 2722 | echo "$as_me: failed program was:" >&5 |
| 2723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2724 | |
| 2725 | continue |
| 2726 | fi |
| 2727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2728 | cat >conftest.$ac_ext <<_ACEOF |
| 2729 | /* confdefs.h. */ |
| 2730 | _ACEOF |
| 2731 | cat confdefs.h >>conftest.$ac_ext |
| 2732 | cat >>conftest.$ac_ext <<_ACEOF |
| 2733 | /* end confdefs.h. */ |
| 2734 | $ac_declaration |
| 2735 | int |
| 2736 | main () |
| 2737 | { |
| 2738 | exit (42); |
| 2739 | ; |
| 2740 | return 0; |
| 2741 | } |
| 2742 | _ACEOF |
| 2743 | rm -f conftest.$ac_objext |
| 2744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2745 | (eval $ac_compile) 2>conftest.er1 |
| 2746 | ac_status=$? |
| 2747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2748 | rm -f conftest.er1 |
| 2749 | cat conftest.err >&5 |
| 2750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2751 | (exit $ac_status); } && |
| 2752 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2754 | (eval $ac_try) 2>&5 |
| 2755 | ac_status=$? |
| 2756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2757 | (exit $ac_status); }; } && |
| 2758 | { ac_try='test -s conftest.$ac_objext' |
| 2759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2760 | (eval $ac_try) 2>&5 |
| 2761 | ac_status=$? |
| 2762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2763 | (exit $ac_status); }; }; then |
| 2764 | break |
| 2765 | else |
| 2766 | echo "$as_me: failed program was:" >&5 |
| 2767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2768 | |
| 2769 | fi |
| 2770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2771 | done |
| 2772 | rm -f conftest* |
| 2773 | if test -n "$ac_declaration"; then |
| 2774 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2775 | echo $ac_declaration >>confdefs.h |
| 2776 | echo '#endif' >>confdefs.h |
| 2777 | fi |
| 2778 | |
| 2779 | ac_ext=c |
| 2780 | ac_cpp='$CPP $CPPFLAGS' |
| 2781 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2782 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2783 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2784 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2785 | if test -n "$ac_tool_prefix"; then |
| 2786 | # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. |
| 2787 | set dummy ${ac_tool_prefix}cpp; ac_word=$2 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2788 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2789 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2790 | if test "${ac_cv_prog_CPPBIN+set}" = set; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2792 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2793 | if test -n "$CPPBIN"; then |
| 2794 | ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test. |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2795 | else |
| 2796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2797 | for as_dir in $PATH |
| 2798 | do |
| 2799 | IFS=$as_save_IFS |
| 2800 | test -z "$as_dir" && as_dir=. |
| 2801 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2802 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2803 | ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2804 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2805 | break 2 |
| 2806 | fi |
| 2807 | done |
| 2808 | done |
| 2809 | |
| 2810 | fi |
| 2811 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2812 | CPPBIN=$ac_cv_prog_CPPBIN |
| 2813 | if test -n "$CPPBIN"; then |
| 2814 | echo "$as_me:$LINENO: result: $CPPBIN" >&5 |
| 2815 | echo "${ECHO_T}$CPPBIN" >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2816 | else |
| 2817 | echo "$as_me:$LINENO: result: no" >&5 |
| 2818 | echo "${ECHO_T}no" >&6 |
| 2819 | fi |
| 2820 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2821 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2822 | if test -z "$ac_cv_prog_CPPBIN"; then |
| 2823 | ac_ct_CPPBIN=$CPPBIN |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2824 | # Extract the first word of "cpp", so it can be a program name with args. |
| 2825 | set dummy cpp; ac_word=$2 |
| 2826 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2828 | if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2830 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2831 | if test -n "$ac_ct_CPPBIN"; then |
| 2832 | ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test. |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2833 | else |
| 2834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2835 | for as_dir in $PATH |
| 2836 | do |
| 2837 | IFS=$as_save_IFS |
| 2838 | test -z "$as_dir" && as_dir=. |
| 2839 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2840 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2841 | ac_cv_prog_ac_ct_CPPBIN="cpp" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2843 | break 2 |
| 2844 | fi |
| 2845 | done |
| 2846 | done |
| 2847 | |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2848 | test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2849 | fi |
| 2850 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2851 | ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN |
| 2852 | if test -n "$ac_ct_CPPBIN"; then |
| 2853 | echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5 |
| 2854 | echo "${ECHO_T}$ac_ct_CPPBIN" >&6 |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2855 | else |
| 2856 | echo "$as_me:$LINENO: result: no" >&5 |
| 2857 | echo "${ECHO_T}no" >&6 |
| 2858 | fi |
| 2859 | |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2860 | CPPBIN=$ac_ct_CPPBIN |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2861 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2862 | CPPBIN="$ac_cv_prog_CPPBIN" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2863 | fi |
| 2864 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2865 | |
| 2866 | echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5 |
| 2867 | echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6 |
| 2868 | if test "${wine_cv_toolsdir+set}" = set; then |
| 2869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2870 | else |
| 2871 | if test -z "$with_wine_tools"; then |
| 2872 | if test "$cross_compiling" = "yes"; then |
| 2873 | { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5 |
| 2874 | echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;} |
| 2875 | { (exit 1); exit 1; }; } |
| 2876 | else |
| 2877 | wine_cv_toolsdir="\$(TOPOBJDIR)" |
| 2878 | fi |
| 2879 | elif test -d "$with_wine_tools/tools/winebuild"; then |
| 2880 | case $with_wine_tools in |
| 2881 | /*) wine_cv_toolsdir="$with_wine_tools" ;; |
| 2882 | *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;; |
| 2883 | esac |
| 2884 | else |
| 2885 | { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5 |
| 2886 | echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;} |
| 2887 | { (exit 1); exit 1; }; } |
| 2888 | fi |
| 2889 | fi |
| 2890 | echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5 |
| 2891 | echo "${ECHO_T}$wine_cv_toolsdir" >&6 |
| 2892 | TOOLSDIR=$wine_cv_toolsdir |
| 2893 | |
| 2894 | |
| 2895 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2896 | ac_ext=c |
| 2897 | ac_cpp='$CPP $CPPFLAGS' |
| 2898 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2899 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2900 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2901 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2902 | 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] | 2903 | # On Suns, sometimes $CPP names a directory. |
| 2904 | if test -n "$CPP" && test -d "$CPP"; then |
| 2905 | CPP= |
| 2906 | fi |
| 2907 | if test -z "$CPP"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2908 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2910 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2911 | # Double quotes because CPP needs to be expanded |
| 2912 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2913 | do |
| 2914 | ac_preproc_ok=false |
| 2915 | for ac_c_preproc_warn_flag in '' yes |
| 2916 | do |
| 2917 | # Use a header file that comes with gcc, so configuring glibc |
| 2918 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2919 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2920 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2921 | # 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] | 2922 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2923 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2924 | /* confdefs.h. */ |
| 2925 | _ACEOF |
| 2926 | cat confdefs.h >>conftest.$ac_ext |
| 2927 | cat >>conftest.$ac_ext <<_ACEOF |
| 2928 | /* end confdefs.h. */ |
| 2929 | #ifdef __STDC__ |
| 2930 | # include <limits.h> |
| 2931 | #else |
| 2932 | # include <assert.h> |
| 2933 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2934 | Syntax error |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2935 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2936 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2937 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2938 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2939 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2940 | rm -f conftest.er1 |
| 2941 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2943 | (exit $ac_status); } >/dev/null; then |
| 2944 | if test -s conftest.err; then |
| 2945 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2946 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2947 | else |
| 2948 | ac_cpp_err= |
| 2949 | fi |
| 2950 | else |
| 2951 | ac_cpp_err=yes |
| 2952 | fi |
| 2953 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2954 | : |
| 2955 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2956 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2958 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2959 | # Broken: fails on valid input. |
| 2960 | continue |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2961 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2962 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2963 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2964 | # OK, works on sane cases. Now check whether non-existent headers |
| 2965 | # can be detected and how. |
| 2966 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2967 | /* confdefs.h. */ |
| 2968 | _ACEOF |
| 2969 | cat confdefs.h >>conftest.$ac_ext |
| 2970 | cat >>conftest.$ac_ext <<_ACEOF |
| 2971 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2972 | #include <ac_nonexistent.h> |
| 2973 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2974 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2975 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2976 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2977 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2978 | rm -f conftest.er1 |
| 2979 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2981 | (exit $ac_status); } >/dev/null; then |
| 2982 | if test -s conftest.err; then |
| 2983 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2984 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2985 | else |
| 2986 | ac_cpp_err= |
| 2987 | fi |
| 2988 | else |
| 2989 | ac_cpp_err=yes |
| 2990 | fi |
| 2991 | if test -z "$ac_cpp_err"; then |
| 2992 | # Broken: success on invalid input. |
| 2993 | continue |
| 2994 | else |
| 2995 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2997 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2998 | # Passes both tests. |
| 2999 | ac_preproc_ok=: |
| 3000 | break |
| 3001 | fi |
| 3002 | rm -f conftest.err conftest.$ac_ext |
| 3003 | |
| 3004 | done |
| 3005 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3006 | rm -f conftest.err conftest.$ac_ext |
| 3007 | if $ac_preproc_ok; then |
| 3008 | break |
| 3009 | fi |
| 3010 | |
| 3011 | done |
| 3012 | ac_cv_prog_CPP=$CPP |
| 3013 | |
| 3014 | fi |
| 3015 | CPP=$ac_cv_prog_CPP |
| 3016 | else |
| 3017 | ac_cv_prog_CPP=$CPP |
| 3018 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3019 | echo "$as_me:$LINENO: result: $CPP" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3020 | echo "${ECHO_T}$CPP" >&6 |
| 3021 | ac_preproc_ok=false |
| 3022 | for ac_c_preproc_warn_flag in '' yes |
| 3023 | do |
| 3024 | # Use a header file that comes with gcc, so configuring glibc |
| 3025 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3026 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3027 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3028 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3029 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3030 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3031 | /* confdefs.h. */ |
| 3032 | _ACEOF |
| 3033 | cat confdefs.h >>conftest.$ac_ext |
| 3034 | cat >>conftest.$ac_ext <<_ACEOF |
| 3035 | /* end confdefs.h. */ |
| 3036 | #ifdef __STDC__ |
| 3037 | # include <limits.h> |
| 3038 | #else |
| 3039 | # include <assert.h> |
| 3040 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3041 | Syntax error |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3042 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3043 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3044 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3045 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3046 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3047 | rm -f conftest.er1 |
| 3048 | cat conftest.err >&5 |
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); } >/dev/null; then |
| 3051 | if test -s conftest.err; then |
| 3052 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3053 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3054 | else |
| 3055 | ac_cpp_err= |
| 3056 | fi |
| 3057 | else |
| 3058 | ac_cpp_err=yes |
| 3059 | fi |
| 3060 | if test -z "$ac_cpp_err"; then |
| 3061 | : |
| 3062 | else |
| 3063 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3065 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3066 | # Broken: fails on valid input. |
| 3067 | continue |
| 3068 | fi |
| 3069 | rm -f conftest.err conftest.$ac_ext |
| 3070 | |
| 3071 | # OK, works on sane cases. Now check whether non-existent headers |
| 3072 | # can be detected and how. |
| 3073 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3074 | /* confdefs.h. */ |
| 3075 | _ACEOF |
| 3076 | cat confdefs.h >>conftest.$ac_ext |
| 3077 | cat >>conftest.$ac_ext <<_ACEOF |
| 3078 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3079 | #include <ac_nonexistent.h> |
| 3080 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3081 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3082 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3083 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3084 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3085 | rm -f conftest.er1 |
| 3086 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3088 | (exit $ac_status); } >/dev/null; then |
| 3089 | if test -s conftest.err; then |
| 3090 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3091 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3092 | else |
| 3093 | ac_cpp_err= |
| 3094 | fi |
| 3095 | else |
| 3096 | ac_cpp_err=yes |
| 3097 | fi |
| 3098 | if test -z "$ac_cpp_err"; then |
| 3099 | # Broken: success on invalid input. |
| 3100 | continue |
| 3101 | else |
| 3102 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3104 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3105 | # Passes both tests. |
| 3106 | ac_preproc_ok=: |
| 3107 | break |
| 3108 | fi |
| 3109 | rm -f conftest.err conftest.$ac_ext |
| 3110 | |
| 3111 | done |
| 3112 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3113 | rm -f conftest.err conftest.$ac_ext |
| 3114 | if $ac_preproc_ok; then |
| 3115 | : |
| 3116 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3117 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3118 | See \`config.log' for more details." >&5 |
| 3119 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3120 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3121 | { (exit 1); exit 1; }; } |
| 3122 | fi |
| 3123 | |
| 3124 | ac_ext=c |
| 3125 | ac_cpp='$CPP $CPPFLAGS' |
| 3126 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3127 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3128 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3129 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3130 | |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3131 | |
| 3132 | if test "x$ac_path_x_has_been_run" != xyes; then |
| 3133 | echo "$as_me:$LINENO: checking for X" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3134 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3135 | |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3136 | ac_path_x_has_been_run=yes |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3137 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3138 | # Check whether --with-x or --without-x was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3139 | if test "${with_x+set}" = set; then |
| 3140 | withval="$with_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3141 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3142 | fi; |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3143 | # $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] | 3144 | if test "x$with_x" = xno; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3145 | # The user explicitly disabled X. |
| 3146 | have_x=disabled |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3147 | else |
| 3148 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3149 | # Both variables are already set. |
| 3150 | have_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3151 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3152 | if test "${ac_cv_have_x+set}" = set; then |
| 3153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3154 | else |
| 3155 | # 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] | 3156 | ac_x_includes=no ac_x_libraries=no |
| 3157 | rm -fr conftest.dir |
| 3158 | if mkdir conftest.dir; then |
| 3159 | cd conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3160 | # 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] | 3161 | cat >Imakefile <<'_ACEOF' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3162 | acfindx: |
| 3163 | @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] | 3164 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3165 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3166 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3167 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3168 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 3169 | for ac_extension in a so sl; do |
| 3170 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3171 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 3172 | ac_im_usrlibdir=$ac_im_libdir; break |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3173 | fi |
| 3174 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3175 | # Screen out bogus values from the imake configuration. They are |
| 3176 | # bogus both because they are the default anyway, and because |
| 3177 | # using them would break gcc on systems where it needs fixed includes. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3178 | case $ac_im_incroot in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3179 | /usr/include) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3180 | *) 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] | 3181 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3182 | case $ac_im_usrlibdir in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3183 | /usr/lib | /lib) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3184 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3185 | esac |
| 3186 | fi |
| 3187 | cd .. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3188 | rm -fr conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3189 | fi |
| 3190 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3191 | # Standard set of common directories for X headers. |
| 3192 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 3193 | ac_x_header_dirs=' |
| 3194 | /usr/X11/include |
| 3195 | /usr/X11R6/include |
| 3196 | /usr/X11R5/include |
| 3197 | /usr/X11R4/include |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3198 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3199 | /usr/include/X11 |
| 3200 | /usr/include/X11R6 |
| 3201 | /usr/include/X11R5 |
| 3202 | /usr/include/X11R4 |
| 3203 | |
| 3204 | /usr/local/X11/include |
| 3205 | /usr/local/X11R6/include |
| 3206 | /usr/local/X11R5/include |
| 3207 | /usr/local/X11R4/include |
| 3208 | |
| 3209 | /usr/local/include/X11 |
| 3210 | /usr/local/include/X11R6 |
| 3211 | /usr/local/include/X11R5 |
| 3212 | /usr/local/include/X11R4 |
| 3213 | |
| 3214 | /usr/X386/include |
| 3215 | /usr/x386/include |
| 3216 | /usr/XFree86/include/X11 |
| 3217 | |
| 3218 | /usr/include |
| 3219 | /usr/local/include |
| 3220 | /usr/unsupported/include |
| 3221 | /usr/athena/include |
| 3222 | /usr/local/x11r5/include |
| 3223 | /usr/lpp/Xamples/include |
| 3224 | |
| 3225 | /usr/openwin/include |
| 3226 | /usr/openwin/share/include' |
| 3227 | |
| 3228 | if test "$ac_x_includes" = no; then |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3229 | # Guess where to find include files, by looking for a specified header file. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3230 | # First, try using that file with no special directory specified. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3231 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3232 | /* confdefs.h. */ |
| 3233 | _ACEOF |
| 3234 | cat confdefs.h >>conftest.$ac_ext |
| 3235 | cat >>conftest.$ac_ext <<_ACEOF |
| 3236 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3237 | #include <X11/Intrinsic.h> |
| 3238 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3239 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3240 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3241 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3242 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3243 | rm -f conftest.er1 |
| 3244 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3246 | (exit $ac_status); } >/dev/null; then |
| 3247 | if test -s conftest.err; then |
| 3248 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3249 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3250 | else |
| 3251 | ac_cpp_err= |
| 3252 | fi |
| 3253 | else |
| 3254 | ac_cpp_err=yes |
| 3255 | fi |
| 3256 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3257 | # We can compile using X headers with no special include directory. |
| 3258 | ac_x_includes= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3259 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3260 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3262 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3263 | for ac_dir in $ac_x_header_dirs; do |
| 3264 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 3265 | ac_x_includes=$ac_dir |
| 3266 | break |
| 3267 | fi |
| 3268 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3269 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3270 | rm -f conftest.err conftest.$ac_ext |
| 3271 | fi # $ac_x_includes = no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3272 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3273 | if test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3274 | # Check for the libraries. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3275 | # See if we find them without any special options. |
| 3276 | # Don't add to $LIBS permanently. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3277 | ac_save_LIBS=$LIBS |
| 3278 | LIBS="-lXt $LIBS" |
| 3279 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3280 | /* confdefs.h. */ |
| 3281 | _ACEOF |
| 3282 | cat confdefs.h >>conftest.$ac_ext |
| 3283 | cat >>conftest.$ac_ext <<_ACEOF |
| 3284 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3285 | #include <X11/Intrinsic.h> |
| 3286 | int |
| 3287 | main () |
| 3288 | { |
| 3289 | XtMalloc (0) |
| 3290 | ; |
| 3291 | return 0; |
| 3292 | } |
| 3293 | _ACEOF |
| 3294 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3296 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3297 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3299 | rm -f conftest.er1 |
| 3300 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3302 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3303 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3305 | (eval $ac_try) 2>&5 |
| 3306 | ac_status=$? |
| 3307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3308 | (exit $ac_status); }; } && |
| 3309 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3311 | (eval $ac_try) 2>&5 |
| 3312 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3314 | (exit $ac_status); }; }; then |
| 3315 | LIBS=$ac_save_LIBS |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3316 | # We can link X programs with no special library path. |
| 3317 | ac_x_libraries= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3318 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3319 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3321 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3322 | LIBS=$ac_save_LIBS |
| 3323 | 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] | 3324 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3325 | # 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] | 3326 | for ac_extension in a so sl; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3327 | if test -r $ac_dir/libXt.$ac_extension; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3328 | ac_x_libraries=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3329 | break 2 |
| 3330 | fi |
| 3331 | done |
| 3332 | done |
| 3333 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3334 | rm -f conftest.err conftest.$ac_objext \ |
| 3335 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3336 | fi # $ac_x_libraries = no |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3337 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3338 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3339 | # Didn't find X anywhere. Cache the known absence of X. |
| 3340 | ac_cv_have_x="have_x=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3341 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3342 | # Record where we found X for the cache. |
| 3343 | ac_cv_have_x="have_x=yes \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3344 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3345 | fi |
| 3346 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3347 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3348 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3349 | eval "$ac_cv_have_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3350 | fi # $with_x != no |
| 3351 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3352 | if test "$have_x" != yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3353 | echo "$as_me:$LINENO: result: $have_x" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3354 | echo "${ECHO_T}$have_x" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3355 | no_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3356 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3357 | # 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] | 3358 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 3359 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3360 | # Update the cache value to reflect the command line values. |
| 3361 | ac_cv_have_x="have_x=yes \ |
| 3362 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3363 | # It might be that x_includes is empty (headers are found in the |
| 3364 | # standard search path. Then output the corresponding message |
| 3365 | ac_out_x_includes=$x_includes |
| 3366 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" |
| 3367 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 |
| 3368 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3369 | fi |
| 3370 | |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3371 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3372 | if test "$no_x" = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3373 | # 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] | 3374 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3375 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3376 | #define X_DISPLAY_MISSING 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3377 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3378 | |
| 3379 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3380 | else |
| 3381 | if test -n "$x_includes"; then |
| 3382 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 3383 | fi |
| 3384 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3385 | # It would also be nice to do this for all -L options, not just this one. |
| 3386 | if test -n "$x_libraries"; then |
| 3387 | X_LIBS="$X_LIBS -L$x_libraries" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3388 | # For Solaris; some versions of Sun CC require a space after -R and |
| 3389 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3390 | case `(uname -sr) 2>/dev/null` in |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3391 | "SunOS 5"*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3392 | 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] | 3393 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 3394 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 3395 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3396 | /* confdefs.h. */ |
| 3397 | _ACEOF |
| 3398 | cat confdefs.h >>conftest.$ac_ext |
| 3399 | cat >>conftest.$ac_ext <<_ACEOF |
| 3400 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3401 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3402 | int |
| 3403 | main () |
| 3404 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3405 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3406 | ; |
| 3407 | return 0; |
| 3408 | } |
| 3409 | _ACEOF |
| 3410 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3412 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3413 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3415 | rm -f conftest.er1 |
| 3416 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3418 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3419 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3421 | (eval $ac_try) 2>&5 |
| 3422 | ac_status=$? |
| 3423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3424 | (exit $ac_status); }; } && |
| 3425 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3427 | (eval $ac_try) 2>&5 |
| 3428 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3430 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3431 | ac_R_nospace=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3432 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3433 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3434 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3435 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3436 | ac_R_nospace=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3437 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3438 | rm -f conftest.err conftest.$ac_objext \ |
| 3439 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3440 | if test $ac_R_nospace = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3441 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3442 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3443 | X_LIBS="$X_LIBS -R$x_libraries" |
| 3444 | else |
| 3445 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3446 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3447 | /* confdefs.h. */ |
| 3448 | _ACEOF |
| 3449 | cat confdefs.h >>conftest.$ac_ext |
| 3450 | cat >>conftest.$ac_ext <<_ACEOF |
| 3451 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3452 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3453 | int |
| 3454 | main () |
| 3455 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3456 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3457 | ; |
| 3458 | return 0; |
| 3459 | } |
| 3460 | _ACEOF |
| 3461 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3463 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3464 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3466 | rm -f conftest.er1 |
| 3467 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3469 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3470 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3472 | (eval $ac_try) 2>&5 |
| 3473 | ac_status=$? |
| 3474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3475 | (exit $ac_status); }; } && |
| 3476 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3478 | (eval $ac_try) 2>&5 |
| 3479 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3481 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3482 | ac_R_space=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3483 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3484 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3486 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3487 | ac_R_space=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3488 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3489 | rm -f conftest.err conftest.$ac_objext \ |
| 3490 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3491 | if test $ac_R_space = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3492 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3493 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3494 | X_LIBS="$X_LIBS -R $x_libraries" |
| 3495 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3496 | echo "$as_me:$LINENO: result: neither works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3497 | echo "${ECHO_T}neither works" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3498 | fi |
| 3499 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3500 | LIBS=$ac_xsave_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3501 | esac |
| 3502 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3503 | |
| 3504 | # Check for system-dependent libraries X programs must link with. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3505 | # Do this before checking for the system-independent R6 libraries |
| 3506 | # (-lICE), since we may need -lsocket or whatever for X linking. |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3507 | |
| 3508 | if test "$ISC" = yes; then |
| 3509 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 3510 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3511 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 3512 | # libraries were built with DECnet support. And Karl Berry says |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3513 | # the Alpha needs dnet_stub (dnet does not exist). |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3514 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 3515 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3516 | /* confdefs.h. */ |
| 3517 | _ACEOF |
| 3518 | cat confdefs.h >>conftest.$ac_ext |
| 3519 | cat >>conftest.$ac_ext <<_ACEOF |
| 3520 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3521 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3522 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3523 | #ifdef __cplusplus |
| 3524 | extern "C" |
| 3525 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3526 | /* 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] | 3527 | builtin and then its argument prototype would still apply. */ |
| 3528 | char XOpenDisplay (); |
| 3529 | int |
| 3530 | main () |
| 3531 | { |
| 3532 | XOpenDisplay (); |
| 3533 | ; |
| 3534 | return 0; |
| 3535 | } |
| 3536 | _ACEOF |
| 3537 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3539 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3540 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3542 | rm -f conftest.er1 |
| 3543 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3545 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3548 | (eval $ac_try) 2>&5 |
| 3549 | ac_status=$? |
| 3550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3551 | (exit $ac_status); }; } && |
| 3552 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3554 | (eval $ac_try) 2>&5 |
| 3555 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3557 | (exit $ac_status); }; }; then |
| 3558 | : |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3559 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3560 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3562 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3563 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3564 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 3565 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 3566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3567 | else |
| 3568 | ac_check_lib_save_LIBS=$LIBS |
| 3569 | LIBS="-ldnet $LIBS" |
| 3570 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3571 | /* confdefs.h. */ |
| 3572 | _ACEOF |
| 3573 | cat confdefs.h >>conftest.$ac_ext |
| 3574 | cat >>conftest.$ac_ext <<_ACEOF |
| 3575 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3576 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3577 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3578 | #ifdef __cplusplus |
| 3579 | extern "C" |
| 3580 | #endif |
| 3581 | /* We use char because int might match the return type of a gcc2 |
| 3582 | builtin and then its argument prototype would still apply. */ |
| 3583 | char dnet_ntoa (); |
| 3584 | int |
| 3585 | main () |
| 3586 | { |
| 3587 | dnet_ntoa (); |
| 3588 | ; |
| 3589 | return 0; |
| 3590 | } |
| 3591 | _ACEOF |
| 3592 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3594 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3595 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3596 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3597 | rm -f conftest.er1 |
| 3598 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3600 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3601 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3603 | (eval $ac_try) 2>&5 |
| 3604 | ac_status=$? |
| 3605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3606 | (exit $ac_status); }; } && |
| 3607 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3609 | (eval $ac_try) 2>&5 |
| 3610 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3612 | (exit $ac_status); }; }; then |
| 3613 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 3614 | else |
| 3615 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3617 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3618 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3619 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3620 | rm -f conftest.err conftest.$ac_objext \ |
| 3621 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3622 | LIBS=$ac_check_lib_save_LIBS |
| 3623 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3624 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3625 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 3626 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3627 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3628 | fi |
| 3629 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3630 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3631 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3632 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 3633 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 3634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3635 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3636 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3637 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3638 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3639 | /* confdefs.h. */ |
| 3640 | _ACEOF |
| 3641 | cat confdefs.h >>conftest.$ac_ext |
| 3642 | cat >>conftest.$ac_ext <<_ACEOF |
| 3643 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3644 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3645 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3646 | #ifdef __cplusplus |
| 3647 | extern "C" |
| 3648 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3649 | /* 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] | 3650 | builtin and then its argument prototype would still apply. */ |
| 3651 | char dnet_ntoa (); |
| 3652 | int |
| 3653 | main () |
| 3654 | { |
| 3655 | dnet_ntoa (); |
| 3656 | ; |
| 3657 | return 0; |
| 3658 | } |
| 3659 | _ACEOF |
| 3660 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3662 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3663 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3665 | rm -f conftest.er1 |
| 3666 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3668 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3669 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3671 | (eval $ac_try) 2>&5 |
| 3672 | ac_status=$? |
| 3673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3674 | (exit $ac_status); }; } && |
| 3675 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3677 | (eval $ac_try) 2>&5 |
| 3678 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3680 | (exit $ac_status); }; }; then |
| 3681 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3682 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3683 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3685 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3686 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3687 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3688 | rm -f conftest.err conftest.$ac_objext \ |
| 3689 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3690 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3691 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3692 | 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] | 3693 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 3694 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3695 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3696 | fi |
| 3697 | |
| 3698 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3699 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3700 | rm -f conftest.err conftest.$ac_objext \ |
| 3701 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3702 | LIBS="$ac_xsave_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3703 | |
| 3704 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 3705 | # to get the SysV transport functions. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3706 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3707 | # needs -lnsl. |
| 3708 | # The nsl library prevents programs from opening the X display |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3709 | # on Irix 5.2, according to T.E. Dickey. |
| 3710 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 3711 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3712 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3713 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 3714 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 3715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3716 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3717 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3718 | /* confdefs.h. */ |
| 3719 | _ACEOF |
| 3720 | cat confdefs.h >>conftest.$ac_ext |
| 3721 | cat >>conftest.$ac_ext <<_ACEOF |
| 3722 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3723 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 3724 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 3725 | #define gethostbyname innocuous_gethostbyname |
| 3726 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3727 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3728 | which can conflict with char gethostbyname (); below. |
| 3729 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3730 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3731 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3732 | #ifdef __STDC__ |
| 3733 | # include <limits.h> |
| 3734 | #else |
| 3735 | # include <assert.h> |
| 3736 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3737 | |
| 3738 | #undef gethostbyname |
| 3739 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3740 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3741 | #ifdef __cplusplus |
| 3742 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3743 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3744 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3745 | /* 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] | 3746 | builtin and then its argument prototype would still apply. */ |
| 3747 | char gethostbyname (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3748 | /* The GNU C library defines this for functions which it implements |
| 3749 | to always fail with ENOSYS. Some functions are actually named |
| 3750 | something starting with __ and the normal name is an alias. */ |
| 3751 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 3752 | choke me |
| 3753 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3754 | char (*f) () = gethostbyname; |
| 3755 | #endif |
| 3756 | #ifdef __cplusplus |
| 3757 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3758 | #endif |
| 3759 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3760 | int |
| 3761 | main () |
| 3762 | { |
| 3763 | return f != gethostbyname; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3764 | ; |
| 3765 | return 0; |
| 3766 | } |
| 3767 | _ACEOF |
| 3768 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3769 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3770 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3771 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3773 | rm -f conftest.er1 |
| 3774 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3776 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3779 | (eval $ac_try) 2>&5 |
| 3780 | ac_status=$? |
| 3781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3782 | (exit $ac_status); }; } && |
| 3783 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3785 | (eval $ac_try) 2>&5 |
| 3786 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3788 | (exit $ac_status); }; }; then |
| 3789 | ac_cv_func_gethostbyname=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3790 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3791 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3793 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3794 | ac_cv_func_gethostbyname=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3795 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3796 | rm -f conftest.err conftest.$ac_objext \ |
| 3797 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3798 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3799 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3800 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3801 | |
| 3802 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3803 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3804 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 3805 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 3806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3807 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3808 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3809 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3810 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3811 | /* confdefs.h. */ |
| 3812 | _ACEOF |
| 3813 | cat confdefs.h >>conftest.$ac_ext |
| 3814 | cat >>conftest.$ac_ext <<_ACEOF |
| 3815 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3816 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3817 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3818 | #ifdef __cplusplus |
| 3819 | extern "C" |
| 3820 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3821 | /* 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] | 3822 | builtin and then its argument prototype would still apply. */ |
| 3823 | char gethostbyname (); |
| 3824 | int |
| 3825 | main () |
| 3826 | { |
| 3827 | gethostbyname (); |
| 3828 | ; |
| 3829 | return 0; |
| 3830 | } |
| 3831 | _ACEOF |
| 3832 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3834 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3835 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3837 | rm -f conftest.er1 |
| 3838 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3840 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3841 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3843 | (eval $ac_try) 2>&5 |
| 3844 | ac_status=$? |
| 3845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3846 | (exit $ac_status); }; } && |
| 3847 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3849 | (eval $ac_try) 2>&5 |
| 3850 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3852 | (exit $ac_status); }; }; then |
| 3853 | ac_cv_lib_nsl_gethostbyname=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3854 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3855 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3857 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3858 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3859 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3860 | rm -f conftest.err conftest.$ac_objext \ |
| 3861 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3862 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3863 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3864 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3865 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 3866 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3867 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3868 | fi |
| 3869 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3870 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3871 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3872 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 3873 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 3874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3875 | else |
| 3876 | ac_check_lib_save_LIBS=$LIBS |
| 3877 | LIBS="-lbsd $LIBS" |
| 3878 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3879 | /* confdefs.h. */ |
| 3880 | _ACEOF |
| 3881 | cat confdefs.h >>conftest.$ac_ext |
| 3882 | cat >>conftest.$ac_ext <<_ACEOF |
| 3883 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3884 | |
| 3885 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3886 | #ifdef __cplusplus |
| 3887 | extern "C" |
| 3888 | #endif |
| 3889 | /* We use char because int might match the return type of a gcc2 |
| 3890 | builtin and then its argument prototype would still apply. */ |
| 3891 | char gethostbyname (); |
| 3892 | int |
| 3893 | main () |
| 3894 | { |
| 3895 | gethostbyname (); |
| 3896 | ; |
| 3897 | return 0; |
| 3898 | } |
| 3899 | _ACEOF |
| 3900 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3902 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3903 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3905 | rm -f conftest.er1 |
| 3906 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3908 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3909 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3911 | (eval $ac_try) 2>&5 |
| 3912 | ac_status=$? |
| 3913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3914 | (exit $ac_status); }; } && |
| 3915 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3917 | (eval $ac_try) 2>&5 |
| 3918 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3920 | (exit $ac_status); }; }; then |
| 3921 | ac_cv_lib_bsd_gethostbyname=yes |
| 3922 | else |
| 3923 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3925 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3926 | ac_cv_lib_bsd_gethostbyname=no |
| 3927 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3928 | rm -f conftest.err conftest.$ac_objext \ |
| 3929 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3930 | LIBS=$ac_check_lib_save_LIBS |
| 3931 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3932 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3933 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 3934 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 3935 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 3936 | fi |
| 3937 | |
| 3938 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3939 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3940 | |
| 3941 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3942 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 3943 | # 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] | 3944 | # on later versions), says Simon Leinen: it contains gethostby* |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3945 | # variants that don't use the name server (or something). -lsocket |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3946 | # must be given before -lnsl if both are needed. We assume that |
| 3947 | # if connect needs -lnsl, so does gethostbyname. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3948 | echo "$as_me:$LINENO: checking for connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3949 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 3950 | if test "${ac_cv_func_connect+set}" = set; then |
| 3951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3952 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3953 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3954 | /* confdefs.h. */ |
| 3955 | _ACEOF |
| 3956 | cat confdefs.h >>conftest.$ac_ext |
| 3957 | cat >>conftest.$ac_ext <<_ACEOF |
| 3958 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3959 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 3960 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 3961 | #define connect innocuous_connect |
| 3962 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3963 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3964 | which can conflict with char connect (); below. |
| 3965 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3966 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3967 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3968 | #ifdef __STDC__ |
| 3969 | # include <limits.h> |
| 3970 | #else |
| 3971 | # include <assert.h> |
| 3972 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3973 | |
| 3974 | #undef connect |
| 3975 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3976 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3977 | #ifdef __cplusplus |
| 3978 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3979 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3980 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3981 | /* 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] | 3982 | builtin and then its argument prototype would still apply. */ |
| 3983 | char connect (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3984 | /* The GNU C library defines this for functions which it implements |
| 3985 | to always fail with ENOSYS. Some functions are actually named |
| 3986 | something starting with __ and the normal name is an alias. */ |
| 3987 | #if defined (__stub_connect) || defined (__stub___connect) |
| 3988 | choke me |
| 3989 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3990 | char (*f) () = connect; |
| 3991 | #endif |
| 3992 | #ifdef __cplusplus |
| 3993 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3994 | #endif |
| 3995 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3996 | int |
| 3997 | main () |
| 3998 | { |
| 3999 | return f != connect; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4000 | ; |
| 4001 | return 0; |
| 4002 | } |
| 4003 | _ACEOF |
| 4004 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4006 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4007 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4009 | rm -f conftest.er1 |
| 4010 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4012 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4015 | (eval $ac_try) 2>&5 |
| 4016 | ac_status=$? |
| 4017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4018 | (exit $ac_status); }; } && |
| 4019 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4021 | (eval $ac_try) 2>&5 |
| 4022 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4024 | (exit $ac_status); }; }; then |
| 4025 | ac_cv_func_connect=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4026 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4027 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4029 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4030 | ac_cv_func_connect=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4031 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4032 | rm -f conftest.err conftest.$ac_objext \ |
| 4033 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4034 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4035 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4036 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4037 | |
| 4038 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4039 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4040 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 4041 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 4042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4043 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4044 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4045 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4046 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4047 | /* confdefs.h. */ |
| 4048 | _ACEOF |
| 4049 | cat confdefs.h >>conftest.$ac_ext |
| 4050 | cat >>conftest.$ac_ext <<_ACEOF |
| 4051 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4052 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 4053 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4054 | #ifdef __cplusplus |
| 4055 | extern "C" |
| 4056 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4057 | /* 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] | 4058 | builtin and then its argument prototype would still apply. */ |
| 4059 | char connect (); |
| 4060 | int |
| 4061 | main () |
| 4062 | { |
| 4063 | connect (); |
| 4064 | ; |
| 4065 | return 0; |
| 4066 | } |
| 4067 | _ACEOF |
| 4068 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4069 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4070 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4071 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4073 | rm -f conftest.er1 |
| 4074 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4076 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4077 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4079 | (eval $ac_try) 2>&5 |
| 4080 | ac_status=$? |
| 4081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4082 | (exit $ac_status); }; } && |
| 4083 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4085 | (eval $ac_try) 2>&5 |
| 4086 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4088 | (exit $ac_status); }; }; then |
| 4089 | ac_cv_lib_socket_connect=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4090 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4091 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4093 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4094 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4095 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4096 | rm -f conftest.err conftest.$ac_objext \ |
| 4097 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4098 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4099 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4100 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4101 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 4102 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4103 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4104 | fi |
| 4105 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4106 | fi |
| 4107 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4108 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4109 | echo "$as_me:$LINENO: checking for remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4110 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 4111 | if test "${ac_cv_func_remove+set}" = set; then |
| 4112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4113 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4114 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4115 | /* confdefs.h. */ |
| 4116 | _ACEOF |
| 4117 | cat confdefs.h >>conftest.$ac_ext |
| 4118 | cat >>conftest.$ac_ext <<_ACEOF |
| 4119 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4120 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 4121 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4122 | #define remove innocuous_remove |
| 4123 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4124 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4125 | which can conflict with char remove (); below. |
| 4126 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4127 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4128 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4129 | #ifdef __STDC__ |
| 4130 | # include <limits.h> |
| 4131 | #else |
| 4132 | # include <assert.h> |
| 4133 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4134 | |
| 4135 | #undef remove |
| 4136 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4137 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4138 | #ifdef __cplusplus |
| 4139 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4140 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4141 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4142 | /* 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] | 4143 | builtin and then its argument prototype would still apply. */ |
| 4144 | char remove (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4145 | /* The GNU C library defines this for functions which it implements |
| 4146 | to always fail with ENOSYS. Some functions are actually named |
| 4147 | something starting with __ and the normal name is an alias. */ |
| 4148 | #if defined (__stub_remove) || defined (__stub___remove) |
| 4149 | choke me |
| 4150 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4151 | char (*f) () = remove; |
| 4152 | #endif |
| 4153 | #ifdef __cplusplus |
| 4154 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4155 | #endif |
| 4156 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4157 | int |
| 4158 | main () |
| 4159 | { |
| 4160 | return f != remove; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4161 | ; |
| 4162 | return 0; |
| 4163 | } |
| 4164 | _ACEOF |
| 4165 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4166 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4167 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4168 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4170 | rm -f conftest.er1 |
| 4171 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4173 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4174 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4176 | (eval $ac_try) 2>&5 |
| 4177 | ac_status=$? |
| 4178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4179 | (exit $ac_status); }; } && |
| 4180 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4182 | (eval $ac_try) 2>&5 |
| 4183 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4185 | (exit $ac_status); }; }; then |
| 4186 | ac_cv_func_remove=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4187 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4188 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4190 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4191 | ac_cv_func_remove=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4192 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4193 | rm -f conftest.err conftest.$ac_objext \ |
| 4194 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4195 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4196 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4197 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4198 | |
| 4199 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4200 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4201 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 4202 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 4203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4204 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4205 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4206 | LIBS="-lposix $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4207 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4208 | /* confdefs.h. */ |
| 4209 | _ACEOF |
| 4210 | cat confdefs.h >>conftest.$ac_ext |
| 4211 | cat >>conftest.$ac_ext <<_ACEOF |
| 4212 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4213 | |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4214 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4215 | #ifdef __cplusplus |
| 4216 | extern "C" |
| 4217 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4218 | /* 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] | 4219 | builtin and then its argument prototype would still apply. */ |
| 4220 | char remove (); |
| 4221 | int |
| 4222 | main () |
| 4223 | { |
| 4224 | remove (); |
| 4225 | ; |
| 4226 | return 0; |
| 4227 | } |
| 4228 | _ACEOF |
| 4229 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4231 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4232 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4234 | rm -f conftest.er1 |
| 4235 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4237 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4238 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4240 | (eval $ac_try) 2>&5 |
| 4241 | ac_status=$? |
| 4242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4243 | (exit $ac_status); }; } && |
| 4244 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4246 | (eval $ac_try) 2>&5 |
| 4247 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4249 | (exit $ac_status); }; }; then |
| 4250 | ac_cv_lib_posix_remove=yes |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4251 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4252 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4254 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4255 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4256 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4257 | rm -f conftest.err conftest.$ac_objext \ |
| 4258 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4259 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4260 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4261 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4262 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 4263 | if test $ac_cv_lib_posix_remove = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4264 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4265 | fi |
| 4266 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4267 | fi |
| 4268 | |
| 4269 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4270 | echo "$as_me:$LINENO: checking for shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4271 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 4272 | if test "${ac_cv_func_shmat+set}" = set; then |
| 4273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4274 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4275 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4276 | /* confdefs.h. */ |
| 4277 | _ACEOF |
| 4278 | cat confdefs.h >>conftest.$ac_ext |
| 4279 | cat >>conftest.$ac_ext <<_ACEOF |
| 4280 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4281 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 4282 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4283 | #define shmat innocuous_shmat |
| 4284 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4285 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4286 | which can conflict with char shmat (); below. |
| 4287 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4288 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4289 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4290 | #ifdef __STDC__ |
| 4291 | # include <limits.h> |
| 4292 | #else |
| 4293 | # include <assert.h> |
| 4294 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4295 | |
| 4296 | #undef shmat |
| 4297 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4298 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4299 | #ifdef __cplusplus |
| 4300 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4301 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4302 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4303 | /* 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] | 4304 | builtin and then its argument prototype would still apply. */ |
| 4305 | char shmat (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4306 | /* The GNU C library defines this for functions which it implements |
| 4307 | to always fail with ENOSYS. Some functions are actually named |
| 4308 | something starting with __ and the normal name is an alias. */ |
| 4309 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 4310 | choke me |
| 4311 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4312 | char (*f) () = shmat; |
| 4313 | #endif |
| 4314 | #ifdef __cplusplus |
| 4315 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4316 | #endif |
| 4317 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4318 | int |
| 4319 | main () |
| 4320 | { |
| 4321 | return f != shmat; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4322 | ; |
| 4323 | return 0; |
| 4324 | } |
| 4325 | _ACEOF |
| 4326 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4328 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4329 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4331 | rm -f conftest.er1 |
| 4332 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4334 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4335 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4337 | (eval $ac_try) 2>&5 |
| 4338 | ac_status=$? |
| 4339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4340 | (exit $ac_status); }; } && |
| 4341 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4343 | (eval $ac_try) 2>&5 |
| 4344 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4346 | (exit $ac_status); }; }; then |
| 4347 | ac_cv_func_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4348 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4349 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4351 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4352 | ac_cv_func_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4353 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4354 | rm -f conftest.err conftest.$ac_objext \ |
| 4355 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4356 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4357 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4358 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4359 | |
| 4360 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4361 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4362 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 4363 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 4364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4365 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4366 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4367 | LIBS="-lipc $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4368 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4369 | /* confdefs.h. */ |
| 4370 | _ACEOF |
| 4371 | cat confdefs.h >>conftest.$ac_ext |
| 4372 | cat >>conftest.$ac_ext <<_ACEOF |
| 4373 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4374 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4375 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4376 | #ifdef __cplusplus |
| 4377 | extern "C" |
| 4378 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4379 | /* 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] | 4380 | builtin and then its argument prototype would still apply. */ |
| 4381 | char shmat (); |
| 4382 | int |
| 4383 | main () |
| 4384 | { |
| 4385 | shmat (); |
| 4386 | ; |
| 4387 | return 0; |
| 4388 | } |
| 4389 | _ACEOF |
| 4390 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4392 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4393 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4395 | rm -f conftest.er1 |
| 4396 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4398 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4399 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4401 | (eval $ac_try) 2>&5 |
| 4402 | ac_status=$? |
| 4403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4404 | (exit $ac_status); }; } && |
| 4405 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4407 | (eval $ac_try) 2>&5 |
| 4408 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4410 | (exit $ac_status); }; }; then |
| 4411 | ac_cv_lib_ipc_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4412 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4413 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4415 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4416 | ac_cv_lib_ipc_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4417 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4418 | rm -f conftest.err conftest.$ac_objext \ |
| 4419 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4420 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4421 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4422 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4423 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 4424 | if test $ac_cv_lib_ipc_shmat = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4425 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4426 | fi |
| 4427 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4428 | fi |
| 4429 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4430 | |
| 4431 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4432 | ac_save_LDFLAGS=$LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4433 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 4434 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 4435 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 4436 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 4437 | # These have to be linked with before -lX11, unlike the other |
| 4438 | # libraries we check for below, so use a different variable. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4439 | # John Interrante, Karl Berry |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4440 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4441 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 4442 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 4443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4444 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4445 | ac_check_lib_save_LIBS=$LIBS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 4446 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4447 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4448 | /* confdefs.h. */ |
| 4449 | _ACEOF |
| 4450 | cat confdefs.h >>conftest.$ac_ext |
| 4451 | cat >>conftest.$ac_ext <<_ACEOF |
| 4452 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4453 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4454 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4455 | #ifdef __cplusplus |
| 4456 | extern "C" |
| 4457 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4458 | /* 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] | 4459 | builtin and then its argument prototype would still apply. */ |
| 4460 | char IceConnectionNumber (); |
| 4461 | int |
| 4462 | main () |
| 4463 | { |
| 4464 | IceConnectionNumber (); |
| 4465 | ; |
| 4466 | return 0; |
| 4467 | } |
| 4468 | _ACEOF |
| 4469 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4471 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4472 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4474 | rm -f conftest.er1 |
| 4475 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4477 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4480 | (eval $ac_try) 2>&5 |
| 4481 | ac_status=$? |
| 4482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4483 | (exit $ac_status); }; } && |
| 4484 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4486 | (eval $ac_try) 2>&5 |
| 4487 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4489 | (exit $ac_status); }; }; then |
| 4490 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4491 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4492 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4494 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4495 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4496 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4497 | rm -f conftest.err conftest.$ac_objext \ |
| 4498 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4499 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4500 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4501 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4502 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 4503 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4504 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4505 | fi |
| 4506 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4507 | LDFLAGS=$ac_save_LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4508 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4509 | fi |
| 4510 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4511 | for ac_prog in flex lex |
| 4512 | do |
| 4513 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4514 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4515 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4516 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4517 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 4518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4519 | else |
| 4520 | if test -n "$LEX"; then |
| 4521 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 4522 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4524 | for as_dir in $PATH |
| 4525 | do |
| 4526 | IFS=$as_save_IFS |
| 4527 | test -z "$as_dir" && as_dir=. |
| 4528 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4529 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4530 | ac_cv_prog_LEX="$ac_prog" |
| 4531 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4532 | break 2 |
| 4533 | fi |
| 4534 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4535 | done |
| 4536 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4537 | fi |
| 4538 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4539 | LEX=$ac_cv_prog_LEX |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4540 | if test -n "$LEX"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4541 | echo "$as_me:$LINENO: result: $LEX" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4542 | echo "${ECHO_T}$LEX" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4543 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4544 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4545 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4546 | fi |
| 4547 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4548 | test -n "$LEX" && break |
| 4549 | done |
| 4550 | test -n "$LEX" || LEX=":" |
| 4551 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4552 | if test -z "$LEXLIB" |
| 4553 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4554 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4555 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 4556 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 4557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4558 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4559 | ac_check_lib_save_LIBS=$LIBS |
| 4560 | LIBS="-lfl $LIBS" |
| 4561 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4562 | /* confdefs.h. */ |
| 4563 | _ACEOF |
| 4564 | cat confdefs.h >>conftest.$ac_ext |
| 4565 | cat >>conftest.$ac_ext <<_ACEOF |
| 4566 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4567 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 4568 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4569 | #ifdef __cplusplus |
| 4570 | extern "C" |
| 4571 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4572 | /* 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] | 4573 | builtin and then its argument prototype would still apply. */ |
| 4574 | char yywrap (); |
| 4575 | int |
| 4576 | main () |
| 4577 | { |
| 4578 | yywrap (); |
| 4579 | ; |
| 4580 | return 0; |
| 4581 | } |
| 4582 | _ACEOF |
| 4583 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4585 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4586 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4588 | rm -f conftest.er1 |
| 4589 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4591 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4592 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4594 | (eval $ac_try) 2>&5 |
| 4595 | ac_status=$? |
| 4596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4597 | (exit $ac_status); }; } && |
| 4598 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4600 | (eval $ac_try) 2>&5 |
| 4601 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4603 | (exit $ac_status); }; }; then |
| 4604 | ac_cv_lib_fl_yywrap=yes |
| 4605 | else |
| 4606 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4608 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4609 | ac_cv_lib_fl_yywrap=no |
| 4610 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4611 | rm -f conftest.err conftest.$ac_objext \ |
| 4612 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4613 | LIBS=$ac_check_lib_save_LIBS |
| 4614 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4615 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4616 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 4617 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 4618 | LEXLIB="-lfl" |
| 4619 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4620 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4621 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 4622 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 4623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4624 | else |
| 4625 | ac_check_lib_save_LIBS=$LIBS |
| 4626 | LIBS="-ll $LIBS" |
| 4627 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4628 | /* confdefs.h. */ |
| 4629 | _ACEOF |
| 4630 | cat confdefs.h >>conftest.$ac_ext |
| 4631 | cat >>conftest.$ac_ext <<_ACEOF |
| 4632 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4633 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4634 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4635 | #ifdef __cplusplus |
| 4636 | extern "C" |
| 4637 | #endif |
| 4638 | /* We use char because int might match the return type of a gcc2 |
| 4639 | builtin and then its argument prototype would still apply. */ |
| 4640 | char yywrap (); |
| 4641 | int |
| 4642 | main () |
| 4643 | { |
| 4644 | yywrap (); |
| 4645 | ; |
| 4646 | return 0; |
| 4647 | } |
| 4648 | _ACEOF |
| 4649 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4651 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4652 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4654 | rm -f conftest.er1 |
| 4655 | cat conftest.err >&5 |
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); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4658 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4660 | (eval $ac_try) 2>&5 |
| 4661 | ac_status=$? |
| 4662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4663 | (exit $ac_status); }; } && |
| 4664 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4666 | (eval $ac_try) 2>&5 |
| 4667 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4669 | (exit $ac_status); }; }; then |
| 4670 | ac_cv_lib_l_yywrap=yes |
| 4671 | else |
| 4672 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4674 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4675 | ac_cv_lib_l_yywrap=no |
| 4676 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4677 | rm -f conftest.err conftest.$ac_objext \ |
| 4678 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4679 | LIBS=$ac_check_lib_save_LIBS |
| 4680 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4681 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4682 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 4683 | if test $ac_cv_lib_l_yywrap = yes; then |
| 4684 | LEXLIB="-ll" |
| 4685 | fi |
| 4686 | |
| 4687 | fi |
| 4688 | |
| 4689 | fi |
| 4690 | |
| 4691 | if test "x$LEX" != "x:"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4692 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4693 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 4694 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 4695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4696 | else |
| 4697 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 4698 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4699 | cat >conftest.l <<_ACEOF |
| 4700 | %% |
| 4701 | %% |
| 4702 | _ACEOF |
| 4703 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 4704 | (eval $LEX conftest.l) 2>&5 |
| 4705 | ac_status=$? |
| 4706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4707 | (exit $ac_status); } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4708 | if test -f lex.yy.c; then |
| 4709 | ac_cv_prog_lex_root=lex.yy |
| 4710 | elif test -f lexyy.c; then |
| 4711 | ac_cv_prog_lex_root=lexyy |
| 4712 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4713 | { { 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] | 4714 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 4715 | { (exit 1); exit 1; }; } |
| 4716 | fi |
| 4717 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4718 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4719 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4720 | rm -f conftest.l |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4721 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 4722 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4723 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4724 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 4725 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 4726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4727 | else |
| 4728 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 4729 | # default is implementation-dependent. Figure out which it is, since |
| 4730 | # not all implementations provide the %pointer and %array declarations. |
| 4731 | ac_cv_prog_lex_yytext_pointer=no |
| 4732 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 4733 | ac_save_LIBS=$LIBS |
| 4734 | LIBS="$LIBS $LEXLIB" |
| 4735 | cat >conftest.$ac_ext <<_ACEOF |
| 4736 | `cat $LEX_OUTPUT_ROOT.c` |
| 4737 | _ACEOF |
| 4738 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4740 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4741 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4743 | rm -f conftest.er1 |
| 4744 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4746 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4747 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4749 | (eval $ac_try) 2>&5 |
| 4750 | ac_status=$? |
| 4751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4752 | (exit $ac_status); }; } && |
| 4753 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4755 | (eval $ac_try) 2>&5 |
| 4756 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4758 | (exit $ac_status); }; }; then |
| 4759 | ac_cv_prog_lex_yytext_pointer=yes |
| 4760 | else |
| 4761 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4763 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4764 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4765 | rm -f conftest.err conftest.$ac_objext \ |
| 4766 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4767 | LIBS=$ac_save_LIBS |
| 4768 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 4769 | |
| 4770 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4771 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4772 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 4773 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 4774 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4775 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4776 | #define YYTEXT_POINTER 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4777 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4778 | |
| 4779 | fi |
| 4780 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4781 | fi |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4782 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4783 | for ac_prog in $LEX flex lex |
| 4784 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4785 | # 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] | 4786 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4787 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4789 | if test "${ac_cv_prog_XLEX+set}" = set; then |
| 4790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4791 | else |
| 4792 | if test -n "$XLEX"; then |
| 4793 | ac_cv_prog_XLEX="$XLEX" # Let the user override the test. |
| 4794 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4796 | for as_dir in $PATH |
| 4797 | do |
| 4798 | IFS=$as_save_IFS |
| 4799 | test -z "$as_dir" && as_dir=. |
| 4800 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4801 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4802 | ac_cv_prog_XLEX="$ac_prog" |
| 4803 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4804 | break 2 |
| 4805 | fi |
| 4806 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4807 | done |
| 4808 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4809 | fi |
| 4810 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4811 | XLEX=$ac_cv_prog_XLEX |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4812 | if test -n "$XLEX"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4813 | echo "$as_me:$LINENO: result: $XLEX" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4814 | echo "${ECHO_T}$XLEX" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4815 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4816 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4817 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4818 | fi |
| 4819 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4820 | test -n "$XLEX" && break |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4821 | done |
| 4822 | test -n "$XLEX" || XLEX="none" |
| 4823 | |
| 4824 | if test "$XLEX" = "none" |
| 4825 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4826 | { { 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] | 4827 | echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;} |
| 4828 | { (exit 1); exit 1; }; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4829 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4830 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4831 | for ac_prog in bison |
| 4832 | do |
| 4833 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4834 | set dummy $ac_prog; ac_word=$2 |
| 4835 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4836 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4837 | if test "${ac_cv_prog_BISON+set}" = set; then |
| 4838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4839 | else |
| 4840 | if test -n "$BISON"; then |
| 4841 | ac_cv_prog_BISON="$BISON" # Let the user override the test. |
| 4842 | else |
| 4843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4844 | for as_dir in $PATH |
| 4845 | do |
| 4846 | IFS=$as_save_IFS |
| 4847 | test -z "$as_dir" && as_dir=. |
| 4848 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4849 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4850 | ac_cv_prog_BISON="$ac_prog" |
| 4851 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4852 | break 2 |
| 4853 | fi |
| 4854 | done |
| 4855 | done |
| 4856 | |
| 4857 | fi |
| 4858 | fi |
| 4859 | BISON=$ac_cv_prog_BISON |
| 4860 | if test -n "$BISON"; then |
| 4861 | echo "$as_me:$LINENO: result: $BISON" >&5 |
| 4862 | echo "${ECHO_T}$BISON" >&6 |
| 4863 | else |
| 4864 | echo "$as_me:$LINENO: result: no" >&5 |
| 4865 | echo "${ECHO_T}no" >&6 |
| 4866 | fi |
| 4867 | |
| 4868 | test -n "$BISON" && break |
| 4869 | done |
| 4870 | test -n "$BISON" || BISON="none" |
| 4871 | |
| 4872 | if test "$BISON" = "none" |
| 4873 | then |
| 4874 | { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5 |
| 4875 | echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;} |
| 4876 | { (exit 1); exit 1; }; } |
| 4877 | fi |
| 4878 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4879 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4880 | for ac_prog in gas as |
| 4881 | do |
| 4882 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4883 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4884 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4885 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4886 | if test "${ac_cv_prog_AS+set}" = set; then |
| 4887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4888 | else |
| 4889 | if test -n "$AS"; then |
| 4890 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 4891 | else |
| 4892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4893 | for as_dir in $PATH |
| 4894 | do |
| 4895 | IFS=$as_save_IFS |
| 4896 | test -z "$as_dir" && as_dir=. |
| 4897 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4898 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4899 | ac_cv_prog_AS="$ac_tool_prefix$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4900 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4901 | break 2 |
| 4902 | fi |
| 4903 | done |
| 4904 | done |
| 4905 | |
| 4906 | fi |
| 4907 | fi |
| 4908 | AS=$ac_cv_prog_AS |
| 4909 | if test -n "$AS"; then |
| 4910 | echo "$as_me:$LINENO: result: $AS" >&5 |
| 4911 | echo "${ECHO_T}$AS" >&6 |
| 4912 | else |
| 4913 | echo "$as_me:$LINENO: result: no" >&5 |
| 4914 | echo "${ECHO_T}no" >&6 |
| 4915 | fi |
| 4916 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4917 | test -n "$AS" && break |
| 4918 | done |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4919 | fi |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4920 | if test -z "$AS"; then |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4921 | ac_ct_AS=$AS |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4922 | for ac_prog in gas as |
| 4923 | do |
| 4924 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4925 | set dummy $ac_prog; ac_word=$2 |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4926 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4927 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4928 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
| 4929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4930 | else |
| 4931 | if test -n "$ac_ct_AS"; then |
| 4932 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 4933 | else |
| 4934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4935 | for as_dir in $PATH |
| 4936 | do |
| 4937 | IFS=$as_save_IFS |
| 4938 | test -z "$as_dir" && as_dir=. |
| 4939 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4940 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4941 | ac_cv_prog_ac_ct_AS="$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4942 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4943 | break 2 |
| 4944 | fi |
| 4945 | done |
| 4946 | done |
| 4947 | |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4948 | fi |
| 4949 | fi |
| 4950 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 4951 | if test -n "$ac_ct_AS"; then |
| 4952 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
| 4953 | echo "${ECHO_T}$ac_ct_AS" >&6 |
| 4954 | else |
| 4955 | echo "$as_me:$LINENO: result: no" >&5 |
| 4956 | echo "${ECHO_T}no" >&6 |
| 4957 | fi |
| 4958 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4959 | test -n "$ac_ct_AS" && break |
| 4960 | done |
| 4961 | test -n "$ac_ct_AS" || ac_ct_AS="as" |
| 4962 | |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4963 | AS=$ac_ct_AS |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4964 | fi |
| 4965 | |
| 4966 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 4967 | # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. |
| 4968 | set dummy ${ac_tool_prefix}ld; ac_word=$2 |
| 4969 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4971 | if test "${ac_cv_prog_LD+set}" = set; then |
| 4972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4973 | else |
| 4974 | if test -n "$LD"; then |
| 4975 | ac_cv_prog_LD="$LD" # Let the user override the test. |
| 4976 | else |
| 4977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4978 | for as_dir in $PATH |
| 4979 | do |
| 4980 | IFS=$as_save_IFS |
| 4981 | test -z "$as_dir" && as_dir=. |
| 4982 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4983 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4984 | ac_cv_prog_LD="${ac_tool_prefix}ld" |
| 4985 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4986 | break 2 |
| 4987 | fi |
| 4988 | done |
| 4989 | done |
| 4990 | |
| 4991 | fi |
| 4992 | fi |
| 4993 | LD=$ac_cv_prog_LD |
| 4994 | if test -n "$LD"; then |
| 4995 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 4996 | echo "${ECHO_T}$LD" >&6 |
| 4997 | else |
| 4998 | echo "$as_me:$LINENO: result: no" >&5 |
| 4999 | echo "${ECHO_T}no" >&6 |
| 5000 | fi |
| 5001 | |
| 5002 | fi |
| 5003 | if test -z "$ac_cv_prog_LD"; then |
| 5004 | ac_ct_LD=$LD |
| 5005 | # Extract the first word of "ld", so it can be a program name with args. |
| 5006 | set dummy ld; ac_word=$2 |
| 5007 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5008 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5009 | if test "${ac_cv_prog_ac_ct_LD+set}" = set; then |
| 5010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5011 | else |
| 5012 | if test -n "$ac_ct_LD"; then |
| 5013 | ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. |
| 5014 | else |
| 5015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5016 | for as_dir in $PATH |
| 5017 | do |
| 5018 | IFS=$as_save_IFS |
| 5019 | test -z "$as_dir" && as_dir=. |
| 5020 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5021 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5022 | ac_cv_prog_ac_ct_LD="ld" |
| 5023 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5024 | break 2 |
| 5025 | fi |
| 5026 | done |
| 5027 | done |
| 5028 | |
| 5029 | test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld" |
| 5030 | fi |
| 5031 | fi |
| 5032 | ac_ct_LD=$ac_cv_prog_ac_ct_LD |
| 5033 | if test -n "$ac_ct_LD"; then |
| 5034 | echo "$as_me:$LINENO: result: $ac_ct_LD" >&5 |
| 5035 | echo "${ECHO_T}$ac_ct_LD" >&6 |
| 5036 | else |
| 5037 | echo "$as_me:$LINENO: result: no" >&5 |
| 5038 | echo "${ECHO_T}no" >&6 |
| 5039 | fi |
| 5040 | |
| 5041 | LD=$ac_ct_LD |
| 5042 | else |
| 5043 | LD="$ac_cv_prog_LD" |
| 5044 | fi |
| 5045 | |
| 5046 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5047 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5048 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5049 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5050 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5051 | if test "${ac_cv_prog_AR+set}" = set; then |
| 5052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5053 | else |
| 5054 | if test -n "$AR"; then |
| 5055 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5056 | else |
| 5057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5058 | for as_dir in $PATH |
| 5059 | do |
| 5060 | IFS=$as_save_IFS |
| 5061 | test -z "$as_dir" && as_dir=. |
| 5062 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5063 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5064 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5065 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5066 | break 2 |
| 5067 | fi |
| 5068 | done |
| 5069 | done |
| 5070 | |
| 5071 | fi |
| 5072 | fi |
| 5073 | AR=$ac_cv_prog_AR |
| 5074 | if test -n "$AR"; then |
| 5075 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 5076 | echo "${ECHO_T}$AR" >&6 |
| 5077 | else |
| 5078 | echo "$as_me:$LINENO: result: no" >&5 |
| 5079 | echo "${ECHO_T}no" >&6 |
| 5080 | fi |
| 5081 | |
| 5082 | fi |
| 5083 | if test -z "$ac_cv_prog_AR"; then |
| 5084 | ac_ct_AR=$AR |
| 5085 | # Extract the first word of "ar", so it can be a program name with args. |
| 5086 | set dummy ar; ac_word=$2 |
| 5087 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5088 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5089 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5091 | else |
| 5092 | if test -n "$ac_ct_AR"; then |
| 5093 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5094 | else |
| 5095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5096 | for as_dir in $PATH |
| 5097 | do |
| 5098 | IFS=$as_save_IFS |
| 5099 | test -z "$as_dir" && as_dir=. |
| 5100 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5101 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5102 | ac_cv_prog_ac_ct_AR="ar" |
| 5103 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5104 | break 2 |
| 5105 | fi |
| 5106 | done |
| 5107 | done |
| 5108 | |
| 5109 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" |
| 5110 | fi |
| 5111 | fi |
| 5112 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5113 | if test -n "$ac_ct_AR"; then |
| 5114 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5115 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 5116 | else |
| 5117 | echo "$as_me:$LINENO: result: no" >&5 |
| 5118 | echo "${ECHO_T}no" >&6 |
| 5119 | fi |
| 5120 | |
| 5121 | AR=$ac_ct_AR |
| 5122 | else |
| 5123 | AR="$ac_cv_prog_AR" |
| 5124 | fi |
| 5125 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5126 | if test -n "$ac_tool_prefix"; then |
| 5127 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5128 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5129 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5131 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5133 | else |
| 5134 | if test -n "$RANLIB"; then |
| 5135 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5136 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5138 | for as_dir in $PATH |
| 5139 | do |
| 5140 | IFS=$as_save_IFS |
| 5141 | test -z "$as_dir" && as_dir=. |
| 5142 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5143 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5144 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5146 | break 2 |
| 5147 | fi |
| 5148 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5149 | done |
| 5150 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5151 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5152 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5153 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5154 | if test -n "$RANLIB"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5155 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5156 | echo "${ECHO_T}$RANLIB" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5157 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5158 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5159 | echo "${ECHO_T}no" >&6 |
| 5160 | fi |
| 5161 | |
| 5162 | fi |
| 5163 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5164 | ac_ct_RANLIB=$RANLIB |
| 5165 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5166 | set dummy ranlib; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5167 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5169 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5171 | else |
| 5172 | if test -n "$ac_ct_RANLIB"; then |
| 5173 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5174 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5176 | for as_dir in $PATH |
| 5177 | do |
| 5178 | IFS=$as_save_IFS |
| 5179 | test -z "$as_dir" && as_dir=. |
| 5180 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5181 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5182 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5184 | break 2 |
| 5185 | fi |
| 5186 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5187 | done |
| 5188 | |
| 5189 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 5190 | fi |
| 5191 | fi |
| 5192 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5193 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5194 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5195 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 5196 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5197 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5198 | echo "${ECHO_T}no" >&6 |
| 5199 | fi |
| 5200 | |
| 5201 | RANLIB=$ac_ct_RANLIB |
| 5202 | else |
| 5203 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5204 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5205 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5206 | if test -n "$ac_tool_prefix"; then |
| 5207 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5208 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5209 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5210 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5211 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5213 | else |
| 5214 | if test -n "$STRIP"; then |
| 5215 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5216 | else |
| 5217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5218 | for as_dir in $PATH |
| 5219 | do |
| 5220 | IFS=$as_save_IFS |
| 5221 | test -z "$as_dir" && as_dir=. |
| 5222 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5223 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5224 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5225 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5226 | break 2 |
| 5227 | fi |
| 5228 | done |
| 5229 | done |
| 5230 | |
| 5231 | fi |
| 5232 | fi |
| 5233 | STRIP=$ac_cv_prog_STRIP |
| 5234 | if test -n "$STRIP"; then |
| 5235 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5236 | echo "${ECHO_T}$STRIP" >&6 |
| 5237 | else |
| 5238 | echo "$as_me:$LINENO: result: no" >&5 |
| 5239 | echo "${ECHO_T}no" >&6 |
| 5240 | fi |
| 5241 | |
| 5242 | fi |
| 5243 | if test -z "$ac_cv_prog_STRIP"; then |
| 5244 | ac_ct_STRIP=$STRIP |
| 5245 | # Extract the first word of "strip", so it can be a program name with args. |
| 5246 | set dummy strip; ac_word=$2 |
| 5247 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5248 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5249 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5251 | else |
| 5252 | if test -n "$ac_ct_STRIP"; then |
| 5253 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5254 | else |
| 5255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5256 | for as_dir in $PATH |
| 5257 | do |
| 5258 | IFS=$as_save_IFS |
| 5259 | test -z "$as_dir" && as_dir=. |
| 5260 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5261 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5262 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5263 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5264 | break 2 |
| 5265 | fi |
| 5266 | done |
| 5267 | done |
| 5268 | |
| 5269 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip" |
| 5270 | fi |
| 5271 | fi |
| 5272 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5273 | if test -n "$ac_ct_STRIP"; then |
| 5274 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5275 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 5276 | else |
| 5277 | echo "$as_me:$LINENO: result: no" >&5 |
| 5278 | echo "${ECHO_T}no" >&6 |
| 5279 | fi |
| 5280 | |
| 5281 | STRIP=$ac_ct_STRIP |
| 5282 | else |
| 5283 | STRIP="$ac_cv_prog_STRIP" |
| 5284 | fi |
| 5285 | |
| 5286 | if test -n "$ac_tool_prefix"; then |
| 5287 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 5288 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 5289 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5290 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5291 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
| 5292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5293 | else |
| 5294 | if test -n "$WINDRES"; then |
| 5295 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 5296 | else |
| 5297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5298 | for as_dir in $PATH |
| 5299 | do |
| 5300 | IFS=$as_save_IFS |
| 5301 | test -z "$as_dir" && as_dir=. |
| 5302 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5303 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5304 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 5305 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5306 | break 2 |
| 5307 | fi |
| 5308 | done |
| 5309 | done |
| 5310 | |
| 5311 | fi |
| 5312 | fi |
| 5313 | WINDRES=$ac_cv_prog_WINDRES |
| 5314 | if test -n "$WINDRES"; then |
| 5315 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
| 5316 | echo "${ECHO_T}$WINDRES" >&6 |
| 5317 | else |
| 5318 | echo "$as_me:$LINENO: result: no" >&5 |
| 5319 | echo "${ECHO_T}no" >&6 |
| 5320 | fi |
| 5321 | |
| 5322 | fi |
| 5323 | if test -z "$ac_cv_prog_WINDRES"; then |
| 5324 | ac_ct_WINDRES=$WINDRES |
| 5325 | # Extract the first word of "windres", so it can be a program name with args. |
| 5326 | set dummy windres; ac_word=$2 |
| 5327 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5328 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5329 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
| 5330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5331 | else |
| 5332 | if test -n "$ac_ct_WINDRES"; then |
| 5333 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 5334 | else |
| 5335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5336 | for as_dir in $PATH |
| 5337 | do |
| 5338 | IFS=$as_save_IFS |
| 5339 | test -z "$as_dir" && as_dir=. |
| 5340 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5341 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5342 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 5343 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5344 | break 2 |
| 5345 | fi |
| 5346 | done |
| 5347 | done |
| 5348 | |
| 5349 | test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false" |
| 5350 | fi |
| 5351 | fi |
| 5352 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 5353 | if test -n "$ac_ct_WINDRES"; then |
| 5354 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
| 5355 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 |
| 5356 | else |
| 5357 | echo "$as_me:$LINENO: result: no" >&5 |
| 5358 | echo "${ECHO_T}no" >&6 |
| 5359 | fi |
| 5360 | |
| 5361 | WINDRES=$ac_ct_WINDRES |
| 5362 | else |
| 5363 | WINDRES="$ac_cv_prog_WINDRES" |
| 5364 | fi |
| 5365 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5366 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5367 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 5368 | LN_S=$as_ln_s |
| 5369 | if test "$LN_S" = "ln -s"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5370 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5371 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 5372 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5373 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5374 | echo "${ECHO_T}no, using $LN_S" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 5375 | fi |
| 5376 | |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 5377 | echo "$as_me:$LINENO: checking whether ln works" >&5 |
| 5378 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6 |
| 5379 | rm -f conf$$ conf$$.file |
| 5380 | echo >conf$$.file |
| 5381 | if ln conf$$.file conf$$ 2>/dev/null; then |
| 5382 | LN=ln |
| 5383 | |
| 5384 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5385 | echo "${ECHO_T}yes" >&6 |
| 5386 | else |
| 5387 | LN="cp -p" |
| 5388 | |
| 5389 | echo "$as_me:$LINENO: result: no, using $LN" >&5 |
| 5390 | echo "${ECHO_T}no, using $LN" >&6 |
| 5391 | fi |
| 5392 | rm -f conf$$ conf$$.file |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5393 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 5394 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5395 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5397 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 5398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5399 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5400 | case $LDCONFIG in |
| 5401 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5402 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 5403 | ;; |
| 5404 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bill Medland | 91372b3 | 2002-04-20 21:00:42 +0000 | [diff] [blame] | 5406 | for as_dir in /sbin /usr/sbin $PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5407 | do |
| 5408 | IFS=$as_save_IFS |
| 5409 | test -z "$as_dir" && as_dir=. |
| 5410 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5411 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5412 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5413 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5414 | break 2 |
| 5415 | fi |
| 5416 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5417 | done |
| 5418 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 5419 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5420 | ;; |
| 5421 | esac |
| 5422 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5423 | LDCONFIG=$ac_cv_path_LDCONFIG |
| 5424 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5425 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5426 | echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5427 | echo "${ECHO_T}$LDCONFIG" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5428 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5429 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5430 | echo "${ECHO_T}no" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5431 | fi |
| 5432 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5433 | # Find a good install program. We prefer a C program (faster), |
| 5434 | # so one script is as good as another. But avoid the broken or |
| 5435 | # incompatible versions: |
| 5436 | # SysV /etc/install, /usr/sbin/install |
| 5437 | # SunOS /usr/etc/install |
| 5438 | # IRIX /sbin/install |
| 5439 | # AIX /bin/install |
| 5440 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5441 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5442 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5443 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5444 | # OS/2's system install, which has a completely different semantic |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5445 | # ./install, which can be erroneously created by make from ./install.sh. |
| 5446 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 5447 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 5448 | if test -z "$INSTALL"; then |
| 5449 | if test "${ac_cv_path_install+set}" = set; then |
| 5450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5451 | else |
| 5452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5453 | for as_dir in $PATH |
| 5454 | do |
| 5455 | IFS=$as_save_IFS |
| 5456 | test -z "$as_dir" && as_dir=. |
| 5457 | # Account for people who put trailing slashes in PATH elements. |
| 5458 | case $as_dir/ in |
| 5459 | ./ | .// | /cC/* | \ |
| 5460 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5461 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5462 | /usr/ucb/* ) ;; |
| 5463 | *) |
| 5464 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5465 | # Don't use installbsd from OSF since it installs stuff as root |
| 5466 | # by default. |
| 5467 | for ac_prog in ginstall scoinst install; do |
| 5468 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5469 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 5470 | if test $ac_prog = install && |
| 5471 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5472 | # AIX install. It has an incompatible calling convention. |
| 5473 | : |
| 5474 | elif test $ac_prog = install && |
| 5475 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5476 | # program-specific install script used by HP pwplus--don't use. |
| 5477 | : |
| 5478 | else |
| 5479 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5480 | break 3 |
| 5481 | fi |
| 5482 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5483 | done |
| 5484 | done |
| 5485 | ;; |
| 5486 | esac |
| 5487 | done |
| 5488 | |
| 5489 | |
| 5490 | fi |
| 5491 | if test "${ac_cv_path_install+set}" = set; then |
| 5492 | INSTALL=$ac_cv_path_install |
| 5493 | else |
| 5494 | # As a last resort, use the slow shell script. We don't cache a |
| 5495 | # path for INSTALL within a source directory, because that will |
| 5496 | # break other packages using the cache if that directory is |
| 5497 | # removed, or if the path is relative. |
| 5498 | INSTALL=$ac_install_sh |
| 5499 | fi |
| 5500 | fi |
| 5501 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 5502 | echo "${ECHO_T}$INSTALL" >&6 |
| 5503 | |
| 5504 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5505 | # It thinks the first close brace ends the variable substitution. |
| 5506 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5507 | |
| 5508 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5509 | |
| 5510 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5511 | |
| 5512 | case "$INSTALL" in |
Alexandre Julliard | 8418d8f | 2002-12-24 02:39:47 +0000 | [diff] [blame] | 5513 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5514 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 5515 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5516 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5517 | for ac_prog in lclint lint |
| 5518 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5519 | # 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] | 5520 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5521 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5522 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5523 | if test "${ac_cv_prog_LINT+set}" = set; then |
| 5524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5525 | else |
| 5526 | if test -n "$LINT"; then |
| 5527 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 5528 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5530 | for as_dir in $PATH |
| 5531 | do |
| 5532 | IFS=$as_save_IFS |
| 5533 | test -z "$as_dir" && as_dir=. |
| 5534 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5535 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5536 | ac_cv_prog_LINT="$ac_prog" |
| 5537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5538 | break 2 |
| 5539 | fi |
| 5540 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5541 | done |
| 5542 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5543 | fi |
| 5544 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5545 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5546 | if test -n "$LINT"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5547 | echo "$as_me:$LINENO: result: $LINT" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5548 | echo "${ECHO_T}$LINT" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5549 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5550 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5551 | echo "${ECHO_T}no" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5552 | fi |
| 5553 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5554 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5555 | done |
| 5556 | |
| 5557 | if test "$LINT" = "lint" |
| 5558 | then |
| 5559 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 5560 | fi |
| 5561 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5562 | |
| 5563 | |
Vincent Béron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame] | 5564 | for ac_prog in docbook2html db2html |
| 5565 | do |
| 5566 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5567 | set dummy $ac_prog; ac_word=$2 |
| 5568 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5569 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5570 | if test "${ac_cv_prog_DB2HTML+set}" = set; then |
| 5571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5572 | else |
| 5573 | if test -n "$DB2HTML"; then |
| 5574 | ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test. |
| 5575 | else |
| 5576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5577 | for as_dir in $PATH |
| 5578 | do |
| 5579 | IFS=$as_save_IFS |
| 5580 | test -z "$as_dir" && as_dir=. |
| 5581 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5582 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5583 | ac_cv_prog_DB2HTML="$ac_prog" |
| 5584 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5585 | break 2 |
| 5586 | fi |
| 5587 | done |
| 5588 | done |
| 5589 | |
| 5590 | fi |
| 5591 | fi |
| 5592 | DB2HTML=$ac_cv_prog_DB2HTML |
| 5593 | if test -n "$DB2HTML"; then |
| 5594 | echo "$as_me:$LINENO: result: $DB2HTML" >&5 |
| 5595 | echo "${ECHO_T}$DB2HTML" >&6 |
| 5596 | else |
| 5597 | echo "$as_me:$LINENO: result: no" >&5 |
| 5598 | echo "${ECHO_T}no" >&6 |
| 5599 | fi |
| 5600 | |
| 5601 | test -n "$DB2HTML" && break |
| 5602 | done |
| 5603 | test -n "$DB2HTML" || DB2HTML="false" |
| 5604 | |
| 5605 | |
| 5606 | |
| 5607 | for ac_prog in docbook2pdf db2pdf |
| 5608 | do |
| 5609 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5610 | set dummy $ac_prog; ac_word=$2 |
| 5611 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5613 | if test "${ac_cv_prog_DB2PDF+set}" = set; then |
| 5614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5615 | else |
| 5616 | if test -n "$DB2PDF"; then |
| 5617 | ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test. |
| 5618 | else |
| 5619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5620 | for as_dir in $PATH |
| 5621 | do |
| 5622 | IFS=$as_save_IFS |
| 5623 | test -z "$as_dir" && as_dir=. |
| 5624 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5625 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5626 | ac_cv_prog_DB2PDF="$ac_prog" |
| 5627 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5628 | break 2 |
| 5629 | fi |
| 5630 | done |
| 5631 | done |
| 5632 | |
| 5633 | fi |
| 5634 | fi |
| 5635 | DB2PDF=$ac_cv_prog_DB2PDF |
| 5636 | if test -n "$DB2PDF"; then |
| 5637 | echo "$as_me:$LINENO: result: $DB2PDF" >&5 |
| 5638 | echo "${ECHO_T}$DB2PDF" >&6 |
| 5639 | else |
| 5640 | echo "$as_me:$LINENO: result: no" >&5 |
| 5641 | echo "${ECHO_T}no" >&6 |
| 5642 | fi |
| 5643 | |
| 5644 | test -n "$DB2PDF" && break |
| 5645 | done |
| 5646 | test -n "$DB2PDF" || DB2PDF="false" |
| 5647 | |
| 5648 | |
| 5649 | |
| 5650 | for ac_prog in docbook2ps db2ps |
| 5651 | do |
| 5652 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5653 | set dummy $ac_prog; ac_word=$2 |
| 5654 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5655 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5656 | if test "${ac_cv_prog_DB2PS+set}" = set; then |
| 5657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5658 | else |
| 5659 | if test -n "$DB2PS"; then |
| 5660 | ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test. |
| 5661 | else |
| 5662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5663 | for as_dir in $PATH |
| 5664 | do |
| 5665 | IFS=$as_save_IFS |
| 5666 | test -z "$as_dir" && as_dir=. |
| 5667 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5668 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5669 | ac_cv_prog_DB2PS="$ac_prog" |
| 5670 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5671 | break 2 |
| 5672 | fi |
| 5673 | done |
| 5674 | done |
| 5675 | |
| 5676 | fi |
| 5677 | fi |
| 5678 | DB2PS=$ac_cv_prog_DB2PS |
| 5679 | if test -n "$DB2PS"; then |
| 5680 | echo "$as_me:$LINENO: result: $DB2PS" >&5 |
| 5681 | echo "${ECHO_T}$DB2PS" >&6 |
| 5682 | else |
| 5683 | echo "$as_me:$LINENO: result: no" >&5 |
| 5684 | echo "${ECHO_T}no" >&6 |
| 5685 | fi |
| 5686 | |
| 5687 | test -n "$DB2PS" && break |
| 5688 | done |
| 5689 | test -n "$DB2PS" || DB2PS="false" |
| 5690 | |
| 5691 | |
| 5692 | |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 5693 | for ac_prog in docbook2txt db2txt |
| 5694 | do |
| 5695 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5696 | set dummy $ac_prog; ac_word=$2 |
| 5697 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5698 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5699 | if test "${ac_cv_prog_DB2TXT+set}" = set; then |
| 5700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5701 | else |
| 5702 | if test -n "$DB2TXT"; then |
| 5703 | ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test. |
| 5704 | else |
| 5705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5706 | for as_dir in $PATH |
| 5707 | do |
| 5708 | IFS=$as_save_IFS |
| 5709 | test -z "$as_dir" && as_dir=. |
| 5710 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5711 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5712 | ac_cv_prog_DB2TXT="$ac_prog" |
| 5713 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5714 | break 2 |
| 5715 | fi |
| 5716 | done |
| 5717 | done |
| 5718 | |
| 5719 | fi |
| 5720 | fi |
| 5721 | DB2TXT=$ac_cv_prog_DB2TXT |
| 5722 | if test -n "$DB2TXT"; then |
| 5723 | echo "$as_me:$LINENO: result: $DB2TXT" >&5 |
| 5724 | echo "${ECHO_T}$DB2TXT" >&6 |
| 5725 | else |
| 5726 | echo "$as_me:$LINENO: result: no" >&5 |
| 5727 | echo "${ECHO_T}no" >&6 |
| 5728 | fi |
| 5729 | |
| 5730 | test -n "$DB2TXT" && break |
| 5731 | done |
| 5732 | test -n "$DB2TXT" || DB2TXT="false" |
| 5733 | |
| 5734 | |
| 5735 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5736 | |
| 5737 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5738 | echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5739 | echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6 |
| 5740 | if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then |
| 5741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5742 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5743 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5744 | LIBS="-li386 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5745 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5746 | /* confdefs.h. */ |
| 5747 | _ACEOF |
| 5748 | cat confdefs.h >>conftest.$ac_ext |
| 5749 | cat >>conftest.$ac_ext <<_ACEOF |
| 5750 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5751 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 5752 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5753 | #ifdef __cplusplus |
| 5754 | extern "C" |
| 5755 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5756 | /* 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] | 5757 | builtin and then its argument prototype would still apply. */ |
| 5758 | char i386_set_ldt (); |
| 5759 | int |
| 5760 | main () |
| 5761 | { |
| 5762 | i386_set_ldt (); |
| 5763 | ; |
| 5764 | return 0; |
| 5765 | } |
| 5766 | _ACEOF |
| 5767 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5769 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5770 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5772 | rm -f conftest.er1 |
| 5773 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5775 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5776 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5778 | (eval $ac_try) 2>&5 |
| 5779 | ac_status=$? |
| 5780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5781 | (exit $ac_status); }; } && |
| 5782 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5784 | (eval $ac_try) 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); }; }; then |
| 5788 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5789 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5790 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5792 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5793 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5794 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5795 | rm -f conftest.err conftest.$ac_objext \ |
| 5796 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5797 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5798 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5799 | 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] | 5800 | echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6 |
| 5801 | if test $ac_cv_lib_i386_i386_set_ldt = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5802 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5803 | #define HAVE_LIBI386 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5804 | _ACEOF |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5805 | |
| 5806 | LIBS="-li386 $LIBS" |
| 5807 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5808 | fi |
| 5809 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5810 | |
| 5811 | echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5812 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
| 5813 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
| 5814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5815 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5816 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5817 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5818 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5819 | /* confdefs.h. */ |
| 5820 | _ACEOF |
| 5821 | cat confdefs.h >>conftest.$ac_ext |
| 5822 | cat >>conftest.$ac_ext <<_ACEOF |
| 5823 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5824 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5825 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5826 | #ifdef __cplusplus |
| 5827 | extern "C" |
| 5828 | #endif |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5829 | /* 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] | 5830 | builtin and then its argument prototype would still apply. */ |
| 5831 | char _oss_ioctl (); |
| 5832 | int |
| 5833 | main () |
| 5834 | { |
| 5835 | _oss_ioctl (); |
| 5836 | ; |
| 5837 | return 0; |
| 5838 | } |
| 5839 | _ACEOF |
| 5840 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5841 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5842 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5843 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5845 | rm -f conftest.er1 |
| 5846 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5848 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5849 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5851 | (eval $ac_try) 2>&5 |
| 5852 | ac_status=$? |
| 5853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5854 | (exit $ac_status); }; } && |
| 5855 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5857 | (eval $ac_try) 2>&5 |
| 5858 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5860 | (exit $ac_status); }; }; then |
| 5861 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5862 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5863 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5865 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5866 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5867 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5868 | rm -f conftest.err conftest.$ac_objext \ |
| 5869 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5870 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5871 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5872 | echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5873 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
| 5874 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5875 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5876 | #define HAVE_LIBOSSAUDIO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5877 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5878 | |
| 5879 | LIBS="-lossaudio $LIBS" |
| 5880 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5881 | fi |
| 5882 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5883 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5884 | for ac_func in iswalnum |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5885 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5886 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5887 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5888 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5889 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5891 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5892 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5893 | /* confdefs.h. */ |
| 5894 | _ACEOF |
| 5895 | cat confdefs.h >>conftest.$ac_ext |
| 5896 | cat >>conftest.$ac_ext <<_ACEOF |
| 5897 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5898 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 5899 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5900 | #define $ac_func innocuous_$ac_func |
| 5901 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5902 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5903 | which can conflict with char $ac_func (); below. |
| 5904 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5905 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5906 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5907 | #ifdef __STDC__ |
| 5908 | # include <limits.h> |
| 5909 | #else |
| 5910 | # include <assert.h> |
| 5911 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5912 | |
| 5913 | #undef $ac_func |
| 5914 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5915 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5916 | #ifdef __cplusplus |
| 5917 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5918 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5919 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5920 | /* 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] | 5921 | builtin and then its argument prototype would still apply. */ |
| 5922 | char $ac_func (); |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5923 | /* The GNU C library defines this for functions which it implements |
| 5924 | to always fail with ENOSYS. Some functions are actually named |
| 5925 | something starting with __ and the normal name is an alias. */ |
| 5926 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5927 | choke me |
| 5928 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5929 | char (*f) () = $ac_func; |
| 5930 | #endif |
| 5931 | #ifdef __cplusplus |
| 5932 | } |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5933 | #endif |
| 5934 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5935 | int |
| 5936 | main () |
| 5937 | { |
| 5938 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5939 | ; |
| 5940 | return 0; |
| 5941 | } |
| 5942 | _ACEOF |
| 5943 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5945 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5946 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5948 | rm -f conftest.er1 |
| 5949 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5951 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5952 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5954 | (eval $ac_try) 2>&5 |
| 5955 | ac_status=$? |
| 5956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5957 | (exit $ac_status); }; } && |
| 5958 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5960 | (eval $ac_try) 2>&5 |
| 5961 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5963 | (exit $ac_status); }; }; then |
| 5964 | eval "$as_ac_var=yes" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5965 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5966 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5968 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5969 | eval "$as_ac_var=no" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5970 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5971 | rm -f conftest.err conftest.$ac_objext \ |
| 5972 | conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5973 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5974 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5975 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5976 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5977 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5978 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5979 | _ACEOF |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5980 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5981 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5982 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5983 | echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5984 | echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6 |
| 5985 | if test "${ac_cv_lib_w_iswalnum+set}" = set; then |
| 5986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5987 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5988 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5989 | LIBS="-lw $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5990 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5991 | /* confdefs.h. */ |
| 5992 | _ACEOF |
| 5993 | cat confdefs.h >>conftest.$ac_ext |
| 5994 | cat >>conftest.$ac_ext <<_ACEOF |
| 5995 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5996 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5997 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5998 | #ifdef __cplusplus |
| 5999 | extern "C" |
| 6000 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6001 | /* 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] | 6002 | builtin and then its argument prototype would still apply. */ |
| 6003 | char iswalnum (); |
| 6004 | int |
| 6005 | main () |
| 6006 | { |
| 6007 | iswalnum (); |
| 6008 | ; |
| 6009 | return 0; |
| 6010 | } |
| 6011 | _ACEOF |
| 6012 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6014 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6015 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6017 | rm -f conftest.er1 |
| 6018 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6020 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6021 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6023 | (eval $ac_try) 2>&5 |
| 6024 | ac_status=$? |
| 6025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6026 | (exit $ac_status); }; } && |
| 6027 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6029 | (eval $ac_try) 2>&5 |
| 6030 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6032 | (exit $ac_status); }; }; then |
| 6033 | ac_cv_lib_w_iswalnum=yes |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6034 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6035 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6037 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6038 | ac_cv_lib_w_iswalnum=no |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6039 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6040 | rm -f conftest.err conftest.$ac_objext \ |
| 6041 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6042 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6043 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6044 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6045 | echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6 |
| 6046 | if test $ac_cv_lib_w_iswalnum = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6047 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6048 | #define HAVE_LIBW 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6049 | _ACEOF |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6050 | |
| 6051 | LIBS="-lw $LIBS" |
| 6052 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6053 | fi |
| 6054 | |
| 6055 | fi |
| 6056 | done |
| 6057 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6058 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6059 | for ac_func in gethostbyname |
| 6060 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6061 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6062 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6063 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6064 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 6065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6066 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6067 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6068 | /* confdefs.h. */ |
| 6069 | _ACEOF |
| 6070 | cat confdefs.h >>conftest.$ac_ext |
| 6071 | cat >>conftest.$ac_ext <<_ACEOF |
| 6072 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6073 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6074 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6075 | #define $ac_func innocuous_$ac_func |
| 6076 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6077 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6078 | which can conflict with char $ac_func (); below. |
| 6079 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6080 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6081 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6082 | #ifdef __STDC__ |
| 6083 | # include <limits.h> |
| 6084 | #else |
| 6085 | # include <assert.h> |
| 6086 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6087 | |
| 6088 | #undef $ac_func |
| 6089 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6090 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6091 | #ifdef __cplusplus |
| 6092 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6093 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6094 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6095 | /* 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] | 6096 | builtin and then its argument prototype would still apply. */ |
| 6097 | char $ac_func (); |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6098 | /* The GNU C library defines this for functions which it implements |
| 6099 | to always fail with ENOSYS. Some functions are actually named |
| 6100 | something starting with __ and the normal name is an alias. */ |
| 6101 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6102 | choke me |
| 6103 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6104 | char (*f) () = $ac_func; |
| 6105 | #endif |
| 6106 | #ifdef __cplusplus |
| 6107 | } |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6108 | #endif |
| 6109 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6110 | int |
| 6111 | main () |
| 6112 | { |
| 6113 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6114 | ; |
| 6115 | return 0; |
| 6116 | } |
| 6117 | _ACEOF |
| 6118 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6119 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6120 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6121 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6123 | rm -f conftest.er1 |
| 6124 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6126 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6127 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6129 | (eval $ac_try) 2>&5 |
| 6130 | ac_status=$? |
| 6131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6132 | (exit $ac_status); }; } && |
| 6133 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6135 | (eval $ac_try) 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); }; }; then |
| 6139 | eval "$as_ac_var=yes" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6140 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6141 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6143 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6144 | eval "$as_ac_var=no" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6145 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6146 | rm -f conftest.err conftest.$ac_objext \ |
| 6147 | conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6148 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6149 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6150 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6151 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6152 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6153 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6154 | _ACEOF |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6155 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6156 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6157 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6158 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6159 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 6160 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 6161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6162 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6163 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6164 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6165 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6166 | /* confdefs.h. */ |
| 6167 | _ACEOF |
| 6168 | cat confdefs.h >>conftest.$ac_ext |
| 6169 | cat >>conftest.$ac_ext <<_ACEOF |
| 6170 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6171 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6172 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6173 | #ifdef __cplusplus |
| 6174 | extern "C" |
| 6175 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6176 | /* 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] | 6177 | builtin and then its argument prototype would still apply. */ |
| 6178 | char gethostbyname (); |
| 6179 | int |
| 6180 | main () |
| 6181 | { |
| 6182 | gethostbyname (); |
| 6183 | ; |
| 6184 | return 0; |
| 6185 | } |
| 6186 | _ACEOF |
| 6187 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6189 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6190 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6191 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6192 | rm -f conftest.er1 |
| 6193 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6195 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6196 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6198 | (eval $ac_try) 2>&5 |
| 6199 | ac_status=$? |
| 6200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6201 | (exit $ac_status); }; } && |
| 6202 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6204 | (eval $ac_try) 2>&5 |
| 6205 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6207 | (exit $ac_status); }; }; then |
| 6208 | ac_cv_lib_nsl_gethostbyname=yes |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6209 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6210 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6212 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6213 | ac_cv_lib_nsl_gethostbyname=no |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6214 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6215 | rm -f conftest.err conftest.$ac_objext \ |
| 6216 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6217 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6218 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6219 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6220 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 6221 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6222 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6223 | #define HAVE_LIBNSL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6224 | _ACEOF |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 6225 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6226 | LIBS="-lnsl $LIBS" |
| 6227 | |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 6228 | fi |
| 6229 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6230 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 6231 | done |
| 6232 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6233 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6234 | for ac_func in connect |
| 6235 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6236 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6237 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6238 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6239 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 6240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6241 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6242 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6243 | /* confdefs.h. */ |
| 6244 | _ACEOF |
| 6245 | cat confdefs.h >>conftest.$ac_ext |
| 6246 | cat >>conftest.$ac_ext <<_ACEOF |
| 6247 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6248 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6249 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6250 | #define $ac_func innocuous_$ac_func |
| 6251 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6252 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6253 | which can conflict with char $ac_func (); below. |
| 6254 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6255 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6256 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6257 | #ifdef __STDC__ |
| 6258 | # include <limits.h> |
| 6259 | #else |
| 6260 | # include <assert.h> |
| 6261 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6262 | |
| 6263 | #undef $ac_func |
| 6264 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6265 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6266 | #ifdef __cplusplus |
| 6267 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6268 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6269 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6270 | /* 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] | 6271 | builtin and then its argument prototype would still apply. */ |
| 6272 | char $ac_func (); |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6273 | /* The GNU C library defines this for functions which it implements |
| 6274 | to always fail with ENOSYS. Some functions are actually named |
| 6275 | something starting with __ and the normal name is an alias. */ |
| 6276 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6277 | choke me |
| 6278 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6279 | char (*f) () = $ac_func; |
| 6280 | #endif |
| 6281 | #ifdef __cplusplus |
| 6282 | } |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6283 | #endif |
| 6284 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6285 | int |
| 6286 | main () |
| 6287 | { |
| 6288 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6289 | ; |
| 6290 | return 0; |
| 6291 | } |
| 6292 | _ACEOF |
| 6293 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6295 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6296 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6298 | rm -f conftest.er1 |
| 6299 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6301 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6302 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6304 | (eval $ac_try) 2>&5 |
| 6305 | ac_status=$? |
| 6306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6307 | (exit $ac_status); }; } && |
| 6308 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6310 | (eval $ac_try) 2>&5 |
| 6311 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6313 | (exit $ac_status); }; }; then |
| 6314 | eval "$as_ac_var=yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6315 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6316 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6318 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6319 | eval "$as_ac_var=no" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6320 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6321 | rm -f conftest.err conftest.$ac_objext \ |
| 6322 | conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6323 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6324 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6325 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6326 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6327 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6328 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6329 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6330 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6331 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6332 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6333 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6334 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 6335 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 6336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6337 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6338 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6339 | LIBS="-lsocket $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6340 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6341 | /* confdefs.h. */ |
| 6342 | _ACEOF |
| 6343 | cat confdefs.h >>conftest.$ac_ext |
| 6344 | cat >>conftest.$ac_ext <<_ACEOF |
| 6345 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6346 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6347 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6348 | #ifdef __cplusplus |
| 6349 | extern "C" |
| 6350 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6351 | /* 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] | 6352 | builtin and then its argument prototype would still apply. */ |
| 6353 | char connect (); |
| 6354 | int |
| 6355 | main () |
| 6356 | { |
| 6357 | connect (); |
| 6358 | ; |
| 6359 | return 0; |
| 6360 | } |
| 6361 | _ACEOF |
| 6362 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6364 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6365 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6367 | rm -f conftest.er1 |
| 6368 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6370 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6371 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6373 | (eval $ac_try) 2>&5 |
| 6374 | ac_status=$? |
| 6375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6376 | (exit $ac_status); }; } && |
| 6377 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6379 | (eval $ac_try) 2>&5 |
| 6380 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6382 | (exit $ac_status); }; }; then |
| 6383 | ac_cv_lib_socket_connect=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6384 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6385 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6387 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6388 | ac_cv_lib_socket_connect=no |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6389 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6390 | rm -f conftest.err conftest.$ac_objext \ |
| 6391 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6392 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6393 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6394 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6395 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 6396 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6397 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6398 | #define HAVE_LIBSOCKET 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6399 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6400 | |
| 6401 | LIBS="-lsocket $LIBS" |
| 6402 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6403 | fi |
| 6404 | |
| 6405 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 6406 | done |
| 6407 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6408 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6409 | for ac_func in inet_aton |
| 6410 | do |
| 6411 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6412 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6413 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6414 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 6415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6416 | else |
| 6417 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6418 | /* confdefs.h. */ |
| 6419 | _ACEOF |
| 6420 | cat confdefs.h >>conftest.$ac_ext |
| 6421 | cat >>conftest.$ac_ext <<_ACEOF |
| 6422 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6423 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6424 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6425 | #define $ac_func innocuous_$ac_func |
| 6426 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6427 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6428 | which can conflict with char $ac_func (); below. |
| 6429 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6430 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6431 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6432 | #ifdef __STDC__ |
| 6433 | # include <limits.h> |
| 6434 | #else |
| 6435 | # include <assert.h> |
| 6436 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6437 | |
| 6438 | #undef $ac_func |
| 6439 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6440 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6441 | #ifdef __cplusplus |
| 6442 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6443 | { |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6444 | #endif |
| 6445 | /* We use char because int might match the return type of a gcc2 |
| 6446 | builtin and then its argument prototype would still apply. */ |
| 6447 | char $ac_func (); |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6448 | /* The GNU C library defines this for functions which it implements |
| 6449 | to always fail with ENOSYS. Some functions are actually named |
| 6450 | something starting with __ and the normal name is an alias. */ |
| 6451 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6452 | choke me |
| 6453 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6454 | char (*f) () = $ac_func; |
| 6455 | #endif |
| 6456 | #ifdef __cplusplus |
| 6457 | } |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6458 | #endif |
| 6459 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6460 | int |
| 6461 | main () |
| 6462 | { |
| 6463 | return f != $ac_func; |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6464 | ; |
| 6465 | return 0; |
| 6466 | } |
| 6467 | _ACEOF |
| 6468 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6470 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6471 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6473 | rm -f conftest.er1 |
| 6474 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6476 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6477 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6479 | (eval $ac_try) 2>&5 |
| 6480 | ac_status=$? |
| 6481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6482 | (exit $ac_status); }; } && |
| 6483 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6485 | (eval $ac_try) 2>&5 |
| 6486 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6488 | (exit $ac_status); }; }; then |
| 6489 | eval "$as_ac_var=yes" |
| 6490 | else |
| 6491 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6493 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6494 | eval "$as_ac_var=no" |
| 6495 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6496 | rm -f conftest.err conftest.$ac_objext \ |
| 6497 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6498 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6499 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6500 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6501 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6502 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6503 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6504 | _ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6505 | |
| 6506 | else |
| 6507 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6508 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6509 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 6510 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 6511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6512 | else |
| 6513 | ac_check_lib_save_LIBS=$LIBS |
| 6514 | LIBS="-lresolv $LIBS" |
| 6515 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6516 | /* confdefs.h. */ |
| 6517 | _ACEOF |
| 6518 | cat confdefs.h >>conftest.$ac_ext |
| 6519 | cat >>conftest.$ac_ext <<_ACEOF |
| 6520 | /* end confdefs.h. */ |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6521 | |
| 6522 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6523 | #ifdef __cplusplus |
| 6524 | extern "C" |
| 6525 | #endif |
| 6526 | /* We use char because int might match the return type of a gcc2 |
| 6527 | builtin and then its argument prototype would still apply. */ |
| 6528 | char inet_aton (); |
| 6529 | int |
| 6530 | main () |
| 6531 | { |
| 6532 | inet_aton (); |
| 6533 | ; |
| 6534 | return 0; |
| 6535 | } |
| 6536 | _ACEOF |
| 6537 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6539 | (eval $ac_link) 2>conftest.er1 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6540 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6542 | rm -f conftest.er1 |
| 6543 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6545 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6548 | (eval $ac_try) 2>&5 |
| 6549 | ac_status=$? |
| 6550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6551 | (exit $ac_status); }; } && |
| 6552 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6554 | (eval $ac_try) 2>&5 |
| 6555 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6557 | (exit $ac_status); }; }; then |
| 6558 | ac_cv_lib_resolv_inet_aton=yes |
| 6559 | else |
| 6560 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6562 | |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6563 | ac_cv_lib_resolv_inet_aton=no |
| 6564 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6565 | rm -f conftest.err conftest.$ac_objext \ |
| 6566 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6567 | LIBS=$ac_check_lib_save_LIBS |
| 6568 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6569 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6570 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 6571 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6572 | cat >>confdefs.h <<_ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6573 | #define HAVE_LIBRESOLV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6574 | _ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6575 | |
| 6576 | LIBS="-lresolv $LIBS" |
| 6577 | |
| 6578 | fi |
| 6579 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6580 | fi |
| 6581 | done |
| 6582 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6583 | |
| 6584 | echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6585 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
| 6586 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 6587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6588 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6589 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6590 | LIBS="-lxpg4 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6591 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6592 | /* confdefs.h. */ |
| 6593 | _ACEOF |
| 6594 | cat confdefs.h >>conftest.$ac_ext |
| 6595 | cat >>conftest.$ac_ext <<_ACEOF |
| 6596 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6597 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6598 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6599 | #ifdef __cplusplus |
| 6600 | extern "C" |
| 6601 | #endif |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6602 | /* 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] | 6603 | builtin and then its argument prototype would still apply. */ |
| 6604 | char _xpg4_setrunelocale (); |
| 6605 | int |
| 6606 | main () |
| 6607 | { |
| 6608 | _xpg4_setrunelocale (); |
| 6609 | ; |
| 6610 | return 0; |
| 6611 | } |
| 6612 | _ACEOF |
| 6613 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6615 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6616 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6618 | rm -f conftest.er1 |
| 6619 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6621 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6622 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6624 | (eval $ac_try) 2>&5 |
| 6625 | ac_status=$? |
| 6626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6627 | (exit $ac_status); }; } && |
| 6628 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6630 | (eval $ac_try) 2>&5 |
| 6631 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6633 | (exit $ac_status); }; }; then |
| 6634 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6635 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6636 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6638 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6639 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6640 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6641 | rm -f conftest.err conftest.$ac_objext \ |
| 6642 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6643 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6644 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6645 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6646 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 |
| 6647 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6648 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6649 | #define HAVE_LIBXPG4 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6650 | _ACEOF |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6651 | |
| 6652 | LIBS="-lxpg4 $LIBS" |
| 6653 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6654 | fi |
| 6655 | |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6656 | |
| 6657 | echo "$as_me:$LINENO: checking for poll in -lpoll" >&5 |
| 6658 | echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6 |
| 6659 | if test "${ac_cv_lib_poll_poll+set}" = set; then |
| 6660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6661 | else |
| 6662 | ac_check_lib_save_LIBS=$LIBS |
| 6663 | LIBS="-lpoll $LIBS" |
| 6664 | cat >conftest.$ac_ext <<_ACEOF |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6665 | /* confdefs.h. */ |
| 6666 | _ACEOF |
| 6667 | cat confdefs.h >>conftest.$ac_ext |
| 6668 | cat >>conftest.$ac_ext <<_ACEOF |
| 6669 | /* end confdefs.h. */ |
| 6670 | |
| 6671 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6672 | #ifdef __cplusplus |
| 6673 | extern "C" |
| 6674 | #endif |
| 6675 | /* We use char because int might match the return type of a gcc2 |
| 6676 | builtin and then its argument prototype would still apply. */ |
| 6677 | char poll (); |
| 6678 | int |
| 6679 | main () |
| 6680 | { |
| 6681 | poll (); |
| 6682 | ; |
| 6683 | return 0; |
| 6684 | } |
| 6685 | _ACEOF |
| 6686 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6688 | (eval $ac_link) 2>conftest.er1 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6689 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6691 | rm -f conftest.er1 |
| 6692 | cat conftest.err >&5 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6694 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6695 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6697 | (eval $ac_try) 2>&5 |
| 6698 | ac_status=$? |
| 6699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6700 | (exit $ac_status); }; } && |
| 6701 | { ac_try='test -s conftest$ac_exeext' |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6703 | (eval $ac_try) 2>&5 |
| 6704 | ac_status=$? |
| 6705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6706 | (exit $ac_status); }; }; then |
| 6707 | ac_cv_lib_poll_poll=yes |
| 6708 | else |
| 6709 | echo "$as_me: failed program was:" >&5 |
| 6710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6711 | |
| 6712 | ac_cv_lib_poll_poll=no |
| 6713 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6714 | rm -f conftest.err conftest.$ac_objext \ |
| 6715 | conftest$ac_exeext conftest.$ac_ext |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6716 | LIBS=$ac_check_lib_save_LIBS |
| 6717 | fi |
| 6718 | echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5 |
| 6719 | echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6 |
| 6720 | if test $ac_cv_lib_poll_poll = yes; then |
| 6721 | cat >>confdefs.h <<_ACEOF |
| 6722 | #define HAVE_LIBPOLL 1 |
| 6723 | _ACEOF |
| 6724 | |
| 6725 | LIBS="-lpoll $LIBS" |
| 6726 | |
| 6727 | fi |
| 6728 | |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 6729 | |
| 6730 | echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5 |
| 6731 | echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6 |
| 6732 | if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then |
| 6733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6734 | else |
| 6735 | ac_check_lib_save_LIBS=$LIBS |
| 6736 | LIBS="-lresolv $LIBS" |
| 6737 | cat >conftest.$ac_ext <<_ACEOF |
| 6738 | /* confdefs.h. */ |
| 6739 | _ACEOF |
| 6740 | cat confdefs.h >>conftest.$ac_ext |
| 6741 | cat >>conftest.$ac_ext <<_ACEOF |
| 6742 | /* end confdefs.h. */ |
| 6743 | |
| 6744 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6745 | #ifdef __cplusplus |
| 6746 | extern "C" |
| 6747 | #endif |
| 6748 | /* We use char because int might match the return type of a gcc2 |
| 6749 | builtin and then its argument prototype would still apply. */ |
| 6750 | char res_9_init (); |
| 6751 | int |
| 6752 | main () |
| 6753 | { |
| 6754 | res_9_init (); |
| 6755 | ; |
| 6756 | return 0; |
| 6757 | } |
| 6758 | _ACEOF |
| 6759 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6761 | (eval $ac_link) 2>conftest.er1 |
| 6762 | ac_status=$? |
| 6763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6764 | rm -f conftest.er1 |
| 6765 | cat conftest.err >&5 |
| 6766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6767 | (exit $ac_status); } && |
| 6768 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6770 | (eval $ac_try) 2>&5 |
| 6771 | ac_status=$? |
| 6772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6773 | (exit $ac_status); }; } && |
| 6774 | { ac_try='test -s conftest$ac_exeext' |
| 6775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6776 | (eval $ac_try) 2>&5 |
| 6777 | ac_status=$? |
| 6778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6779 | (exit $ac_status); }; }; then |
| 6780 | ac_cv_lib_resolv_res_9_init=yes |
| 6781 | else |
| 6782 | echo "$as_me: failed program was:" >&5 |
| 6783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6784 | |
| 6785 | ac_cv_lib_resolv_res_9_init=no |
| 6786 | fi |
| 6787 | rm -f conftest.err conftest.$ac_objext \ |
| 6788 | conftest$ac_exeext conftest.$ac_ext |
| 6789 | LIBS=$ac_check_lib_save_LIBS |
| 6790 | fi |
| 6791 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5 |
| 6792 | echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6 |
| 6793 | if test $ac_cv_lib_resolv_res_9_init = yes; then |
| 6794 | cat >>confdefs.h <<_ACEOF |
| 6795 | #define HAVE_LIBRESOLV 1 |
| 6796 | _ACEOF |
| 6797 | |
| 6798 | LIBS="-lresolv $LIBS" |
| 6799 | |
| 6800 | fi |
| 6801 | |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6802 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 6803 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 6804 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6806 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6807 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6808 | LIBS="-lpthread $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6809 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6810 | /* confdefs.h. */ |
| 6811 | _ACEOF |
| 6812 | cat confdefs.h >>conftest.$ac_ext |
| 6813 | cat >>conftest.$ac_ext <<_ACEOF |
| 6814 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6815 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6816 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6817 | #ifdef __cplusplus |
| 6818 | extern "C" |
| 6819 | #endif |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6820 | /* 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] | 6821 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6822 | char pthread_create (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6823 | int |
| 6824 | main () |
| 6825 | { |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6826 | pthread_create (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6827 | ; |
| 6828 | return 0; |
| 6829 | } |
| 6830 | _ACEOF |
| 6831 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6833 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6834 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6836 | rm -f conftest.er1 |
| 6837 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6839 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6840 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6842 | (eval $ac_try) 2>&5 |
| 6843 | ac_status=$? |
| 6844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6845 | (exit $ac_status); }; } && |
| 6846 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6848 | (eval $ac_try) 2>&5 |
| 6849 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6851 | (exit $ac_status); }; }; then |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6852 | ac_cv_lib_pthread_pthread_create=yes |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6853 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6854 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6856 | |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6857 | ac_cv_lib_pthread_pthread_create=no |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6858 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6859 | rm -f conftest.err conftest.$ac_objext \ |
| 6860 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6861 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6862 | fi |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6863 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 6864 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 |
| 6865 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
| 6866 | LIBPTHREAD="-lpthread" |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6867 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6868 | fi |
| 6869 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6870 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 6871 | JPEGLIB="" |
Alexandre Julliard | 562089b | 2001-12-31 22:28:35 +0000 | [diff] [blame] | 6872 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 6873 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 6874 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 6875 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 6876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6877 | else |
| 6878 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 6879 | then ac_cv_prog_egrep='grep -E' |
| 6880 | else ac_cv_prog_egrep='egrep' |
| 6881 | fi |
| 6882 | fi |
| 6883 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 6884 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 6885 | EGREP=$ac_cv_prog_egrep |
| 6886 | |
| 6887 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6888 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 6889 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 6890 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 6892 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6893 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6894 | /* confdefs.h. */ |
| 6895 | _ACEOF |
| 6896 | cat confdefs.h >>conftest.$ac_ext |
| 6897 | cat >>conftest.$ac_ext <<_ACEOF |
| 6898 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6899 | #include <stdlib.h> |
| 6900 | #include <stdarg.h> |
| 6901 | #include <string.h> |
| 6902 | #include <float.h> |
| 6903 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6904 | int |
| 6905 | main () |
| 6906 | { |
| 6907 | |
| 6908 | ; |
| 6909 | return 0; |
| 6910 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6911 | _ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6912 | rm -f conftest.$ac_objext |
| 6913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6914 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6915 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6917 | rm -f conftest.er1 |
| 6918 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6920 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6921 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6923 | (eval $ac_try) 2>&5 |
| 6924 | ac_status=$? |
| 6925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6926 | (exit $ac_status); }; } && |
| 6927 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6929 | (eval $ac_try) 2>&5 |
| 6930 | ac_status=$? |
| 6931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6932 | (exit $ac_status); }; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6933 | ac_cv_header_stdc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6934 | else |
| 6935 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6937 | |
| 6938 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 6939 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6941 | |
| 6942 | if test $ac_cv_header_stdc = yes; then |
| 6943 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6944 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6945 | /* confdefs.h. */ |
| 6946 | _ACEOF |
| 6947 | cat confdefs.h >>conftest.$ac_ext |
| 6948 | cat >>conftest.$ac_ext <<_ACEOF |
| 6949 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6950 | #include <string.h> |
| 6951 | |
| 6952 | _ACEOF |
| 6953 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 6954 | $EGREP "memchr" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6955 | : |
| 6956 | else |
| 6957 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 6958 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6959 | rm -f conftest* |
| 6960 | |
| 6961 | fi |
| 6962 | |
| 6963 | if test $ac_cv_header_stdc = yes; then |
| 6964 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6965 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6966 | /* confdefs.h. */ |
| 6967 | _ACEOF |
| 6968 | cat confdefs.h >>conftest.$ac_ext |
| 6969 | cat >>conftest.$ac_ext <<_ACEOF |
| 6970 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6971 | #include <stdlib.h> |
| 6972 | |
| 6973 | _ACEOF |
| 6974 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 6975 | $EGREP "free" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6976 | : |
| 6977 | else |
| 6978 | ac_cv_header_stdc=no |
| 6979 | fi |
| 6980 | rm -f conftest* |
| 6981 | |
| 6982 | fi |
| 6983 | |
| 6984 | if test $ac_cv_header_stdc = yes; then |
| 6985 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6986 | if test "$cross_compiling" = yes; then |
| 6987 | : |
| 6988 | else |
| 6989 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6990 | /* confdefs.h. */ |
| 6991 | _ACEOF |
| 6992 | cat confdefs.h >>conftest.$ac_ext |
| 6993 | cat >>conftest.$ac_ext <<_ACEOF |
| 6994 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6995 | #include <ctype.h> |
| 6996 | #if ((' ' & 0x0FF) == 0x020) |
| 6997 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6998 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6999 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7000 | # define ISLOWER(c) \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7001 | (('a' <= (c) && (c) <= 'i') \ |
| 7002 | || ('j' <= (c) && (c) <= 'r') \ |
| 7003 | || ('s' <= (c) && (c) <= 'z')) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7004 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7005 | #endif |
| 7006 | |
| 7007 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7008 | int |
| 7009 | main () |
| 7010 | { |
| 7011 | int i; |
| 7012 | for (i = 0; i < 256; i++) |
| 7013 | if (XOR (islower (i), ISLOWER (i)) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7014 | || toupper (i) != TOUPPER (i)) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7015 | exit(2); |
| 7016 | exit (0); |
| 7017 | } |
| 7018 | _ACEOF |
| 7019 | rm -f conftest$ac_exeext |
| 7020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7021 | (eval $ac_link) 2>&5 |
| 7022 | ac_status=$? |
| 7023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7024 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7026 | (eval $ac_try) 2>&5 |
| 7027 | ac_status=$? |
| 7028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7029 | (exit $ac_status); }; }; then |
| 7030 | : |
| 7031 | else |
| 7032 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7033 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7035 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7036 | ( exit $ac_status ) |
| 7037 | ac_cv_header_stdc=no |
| 7038 | fi |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 7039 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7040 | fi |
| 7041 | fi |
| 7042 | fi |
| 7043 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 7044 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 7045 | if test $ac_cv_header_stdc = yes; then |
| 7046 | |
| 7047 | cat >>confdefs.h <<\_ACEOF |
| 7048 | #define STDC_HEADERS 1 |
| 7049 | _ACEOF |
| 7050 | |
| 7051 | fi |
| 7052 | |
| 7053 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 7054 | |
| 7055 | |
| 7056 | |
| 7057 | |
| 7058 | |
| 7059 | |
| 7060 | |
| 7061 | |
| 7062 | |
| 7063 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7064 | inttypes.h stdint.h unistd.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7065 | do |
| 7066 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7067 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7068 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7069 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7071 | else |
| 7072 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7073 | /* confdefs.h. */ |
| 7074 | _ACEOF |
| 7075 | cat confdefs.h >>conftest.$ac_ext |
| 7076 | cat >>conftest.$ac_ext <<_ACEOF |
| 7077 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7078 | $ac_includes_default |
| 7079 | |
| 7080 | #include <$ac_header> |
| 7081 | _ACEOF |
| 7082 | rm -f conftest.$ac_objext |
| 7083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7084 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7085 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7087 | rm -f conftest.er1 |
| 7088 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7090 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7091 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7093 | (eval $ac_try) 2>&5 |
| 7094 | ac_status=$? |
| 7095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7096 | (exit $ac_status); }; } && |
| 7097 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7099 | (eval $ac_try) 2>&5 |
| 7100 | ac_status=$? |
| 7101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7102 | (exit $ac_status); }; }; then |
| 7103 | eval "$as_ac_Header=yes" |
| 7104 | else |
| 7105 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7107 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7108 | eval "$as_ac_Header=no" |
| 7109 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7111 | fi |
| 7112 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7113 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7114 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7115 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7116 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7117 | _ACEOF |
| 7118 | |
| 7119 | fi |
| 7120 | |
| 7121 | done |
| 7122 | |
| 7123 | |
| 7124 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7125 | for ac_header in jpeglib.h |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7126 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7127 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7128 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7129 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7130 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7131 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7133 | fi |
| 7134 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7135 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7136 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7137 | # Is the header compilable? |
| 7138 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7139 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7140 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7141 | /* confdefs.h. */ |
| 7142 | _ACEOF |
| 7143 | cat confdefs.h >>conftest.$ac_ext |
| 7144 | cat >>conftest.$ac_ext <<_ACEOF |
| 7145 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7146 | $ac_includes_default |
| 7147 | #include <$ac_header> |
| 7148 | _ACEOF |
| 7149 | rm -f conftest.$ac_objext |
| 7150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7151 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7152 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7154 | rm -f conftest.er1 |
| 7155 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7157 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7158 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7160 | (eval $ac_try) 2>&5 |
| 7161 | ac_status=$? |
| 7162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7163 | (exit $ac_status); }; } && |
| 7164 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7166 | (eval $ac_try) 2>&5 |
| 7167 | ac_status=$? |
| 7168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7169 | (exit $ac_status); }; }; then |
| 7170 | ac_header_compiler=yes |
| 7171 | else |
| 7172 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7174 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7175 | ac_header_compiler=no |
| 7176 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7178 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7179 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7180 | |
| 7181 | # Is the header present? |
| 7182 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7183 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7184 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7185 | /* confdefs.h. */ |
| 7186 | _ACEOF |
| 7187 | cat confdefs.h >>conftest.$ac_ext |
| 7188 | cat >>conftest.$ac_ext <<_ACEOF |
| 7189 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7190 | #include <$ac_header> |
| 7191 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7192 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7193 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7194 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 7195 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7196 | rm -f conftest.er1 |
| 7197 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7199 | (exit $ac_status); } >/dev/null; then |
| 7200 | if test -s conftest.err; then |
| 7201 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7202 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7203 | else |
| 7204 | ac_cpp_err= |
| 7205 | fi |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7206 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7207 | ac_cpp_err=yes |
| 7208 | fi |
| 7209 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7210 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7211 | else |
| 7212 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7214 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7215 | ac_header_preproc=no |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7216 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7217 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7218 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7219 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7220 | |
| 7221 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7222 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7223 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7224 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7225 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7226 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7227 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7228 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7229 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7230 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7231 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7232 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7233 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7234 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7235 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7236 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7237 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7238 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7239 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7240 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7241 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7242 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7243 | ( |
| 7244 | cat <<\_ASBOX |
| 7245 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7246 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7247 | ## ------------------------------------ ## |
| 7248 | _ASBOX |
| 7249 | ) | |
| 7250 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7251 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7252 | esac |
| 7253 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7254 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7255 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7257 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7258 | eval "$as_ac_Header=\$ac_header_preproc" |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7259 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7260 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7261 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7262 | |
| 7263 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7264 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7265 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7266 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7267 | _ACEOF |
| 7268 | echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7269 | echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6 |
| 7270 | if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then |
| 7271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7272 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7273 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7274 | LIBS="-ljpeg $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7275 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7276 | /* confdefs.h. */ |
| 7277 | _ACEOF |
| 7278 | cat confdefs.h >>conftest.$ac_ext |
| 7279 | cat >>conftest.$ac_ext <<_ACEOF |
| 7280 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7281 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7282 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7283 | #ifdef __cplusplus |
| 7284 | extern "C" |
| 7285 | #endif |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7286 | /* 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] | 7287 | builtin and then its argument prototype would still apply. */ |
| 7288 | char jpeg_start_decompress (); |
| 7289 | int |
| 7290 | main () |
| 7291 | { |
| 7292 | jpeg_start_decompress (); |
| 7293 | ; |
| 7294 | return 0; |
| 7295 | } |
| 7296 | _ACEOF |
| 7297 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7299 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7300 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7302 | rm -f conftest.er1 |
| 7303 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7305 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7306 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7308 | (eval $ac_try) 2>&5 |
| 7309 | ac_status=$? |
| 7310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7311 | (exit $ac_status); }; } && |
| 7312 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7314 | (eval $ac_try) 2>&5 |
| 7315 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7317 | (exit $ac_status); }; }; then |
| 7318 | ac_cv_lib_jpeg_jpeg_start_decompress=yes |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7319 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7320 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7322 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7323 | ac_cv_lib_jpeg_jpeg_start_decompress=no |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7324 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7325 | rm -f conftest.err conftest.$ac_objext \ |
| 7326 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7327 | LIBS=$ac_check_lib_save_LIBS |
| 7328 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7329 | 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] | 7330 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6 |
| 7331 | if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7332 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7333 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7334 | #define HAVE_LIBJPEG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7335 | _ACEOF |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7336 | |
| 7337 | JPEGLIB="-ljpeg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7338 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7339 | fi |
| 7340 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7341 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7342 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7343 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7344 | done |
| 7345 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7346 | |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7347 | GIFLIB="" |
| 7348 | |
| 7349 | |
| 7350 | for ac_header in gif_lib.h |
| 7351 | do |
| 7352 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7353 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7354 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7355 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7356 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7358 | fi |
| 7359 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7360 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7361 | else |
| 7362 | # Is the header compilable? |
| 7363 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7364 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7365 | cat >conftest.$ac_ext <<_ACEOF |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7366 | /* confdefs.h. */ |
| 7367 | _ACEOF |
| 7368 | cat confdefs.h >>conftest.$ac_ext |
| 7369 | cat >>conftest.$ac_ext <<_ACEOF |
| 7370 | /* end confdefs.h. */ |
| 7371 | $ac_includes_default |
| 7372 | #include <$ac_header> |
| 7373 | _ACEOF |
| 7374 | rm -f conftest.$ac_objext |
| 7375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7376 | (eval $ac_compile) 2>conftest.er1 |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7377 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7379 | rm -f conftest.er1 |
| 7380 | cat conftest.err >&5 |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7382 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7383 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7385 | (eval $ac_try) 2>&5 |
| 7386 | ac_status=$? |
| 7387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7388 | (exit $ac_status); }; } && |
| 7389 | { ac_try='test -s conftest.$ac_objext' |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7391 | (eval $ac_try) 2>&5 |
| 7392 | ac_status=$? |
| 7393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7394 | (exit $ac_status); }; }; then |
| 7395 | ac_header_compiler=yes |
| 7396 | else |
| 7397 | echo "$as_me: failed program was:" >&5 |
| 7398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7399 | |
| 7400 | ac_header_compiler=no |
| 7401 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7403 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7404 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7405 | |
| 7406 | # Is the header present? |
| 7407 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7408 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7409 | cat >conftest.$ac_ext <<_ACEOF |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7410 | /* confdefs.h. */ |
| 7411 | _ACEOF |
| 7412 | cat confdefs.h >>conftest.$ac_ext |
| 7413 | cat >>conftest.$ac_ext <<_ACEOF |
| 7414 | /* end confdefs.h. */ |
| 7415 | #include <$ac_header> |
| 7416 | _ACEOF |
| 7417 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7418 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7419 | ac_status=$? |
| 7420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7421 | rm -f conftest.er1 |
| 7422 | cat conftest.err >&5 |
| 7423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7424 | (exit $ac_status); } >/dev/null; then |
| 7425 | if test -s conftest.err; then |
| 7426 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7427 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7428 | else |
| 7429 | ac_cpp_err= |
| 7430 | fi |
| 7431 | else |
| 7432 | ac_cpp_err=yes |
| 7433 | fi |
| 7434 | if test -z "$ac_cpp_err"; then |
| 7435 | ac_header_preproc=yes |
| 7436 | else |
| 7437 | echo "$as_me: failed program was:" >&5 |
| 7438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7439 | |
| 7440 | ac_header_preproc=no |
| 7441 | fi |
| 7442 | rm -f conftest.err conftest.$ac_ext |
| 7443 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7444 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7445 | |
| 7446 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7447 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7448 | yes:no: ) |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7449 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7450 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7451 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7452 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7453 | ac_header_preproc=yes |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7454 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7455 | no:yes:* ) |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7456 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7457 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7458 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7459 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7460 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7461 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7462 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7463 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7464 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7465 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7466 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7467 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7468 | ( |
| 7469 | cat <<\_ASBOX |
| 7470 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7471 | ## Report this to wine-devel@winehq.org ## |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7472 | ## ------------------------------------ ## |
| 7473 | _ASBOX |
| 7474 | ) | |
| 7475 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7476 | ;; |
| 7477 | esac |
| 7478 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7479 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7480 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7482 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7483 | eval "$as_ac_Header=\$ac_header_preproc" |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7484 | fi |
| 7485 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7486 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7487 | |
| 7488 | fi |
| 7489 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7490 | cat >>confdefs.h <<_ACEOF |
| 7491 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7492 | _ACEOF |
| 7493 | echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5 |
| 7494 | echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6 |
| 7495 | if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then |
| 7496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7497 | else |
| 7498 | ac_check_lib_save_LIBS=$LIBS |
| 7499 | LIBS="-lungif $LIBS" |
| 7500 | cat >conftest.$ac_ext <<_ACEOF |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7501 | /* confdefs.h. */ |
| 7502 | _ACEOF |
| 7503 | cat confdefs.h >>conftest.$ac_ext |
| 7504 | cat >>conftest.$ac_ext <<_ACEOF |
| 7505 | /* end confdefs.h. */ |
| 7506 | |
| 7507 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7508 | #ifdef __cplusplus |
| 7509 | extern "C" |
| 7510 | #endif |
| 7511 | /* We use char because int might match the return type of a gcc2 |
| 7512 | builtin and then its argument prototype would still apply. */ |
| 7513 | char DGifOpen (); |
| 7514 | int |
| 7515 | main () |
| 7516 | { |
| 7517 | DGifOpen (); |
| 7518 | ; |
| 7519 | return 0; |
| 7520 | } |
| 7521 | _ACEOF |
| 7522 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7524 | (eval $ac_link) 2>conftest.er1 |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7525 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7527 | rm -f conftest.er1 |
| 7528 | cat conftest.err >&5 |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7530 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7531 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7533 | (eval $ac_try) 2>&5 |
| 7534 | ac_status=$? |
| 7535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7536 | (exit $ac_status); }; } && |
| 7537 | { ac_try='test -s conftest$ac_exeext' |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7539 | (eval $ac_try) 2>&5 |
| 7540 | ac_status=$? |
| 7541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7542 | (exit $ac_status); }; }; then |
| 7543 | ac_cv_lib_ungif_DGifOpen=yes |
| 7544 | else |
| 7545 | echo "$as_me: failed program was:" >&5 |
| 7546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7547 | |
| 7548 | ac_cv_lib_ungif_DGifOpen=no |
| 7549 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7550 | rm -f conftest.err conftest.$ac_objext \ |
| 7551 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7552 | LIBS=$ac_check_lib_save_LIBS |
| 7553 | fi |
| 7554 | echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5 |
| 7555 | echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6 |
| 7556 | if test $ac_cv_lib_ungif_DGifOpen = yes; then |
| 7557 | |
| 7558 | cat >>confdefs.h <<\_ACEOF |
| 7559 | #define HAVE_LIBGIF 1 |
| 7560 | _ACEOF |
| 7561 | |
| 7562 | GIFLIB="-lungif" |
| 7563 | else |
| 7564 | echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5 |
| 7565 | echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6 |
| 7566 | if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then |
| 7567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7568 | else |
| 7569 | ac_check_lib_save_LIBS=$LIBS |
| 7570 | LIBS="-lgif $LIBS" |
| 7571 | cat >conftest.$ac_ext <<_ACEOF |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7572 | /* confdefs.h. */ |
| 7573 | _ACEOF |
| 7574 | cat confdefs.h >>conftest.$ac_ext |
| 7575 | cat >>conftest.$ac_ext <<_ACEOF |
| 7576 | /* end confdefs.h. */ |
| 7577 | |
| 7578 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7579 | #ifdef __cplusplus |
| 7580 | extern "C" |
| 7581 | #endif |
| 7582 | /* We use char because int might match the return type of a gcc2 |
| 7583 | builtin and then its argument prototype would still apply. */ |
| 7584 | char DGifOpen (); |
| 7585 | int |
| 7586 | main () |
| 7587 | { |
| 7588 | DGifOpen (); |
| 7589 | ; |
| 7590 | return 0; |
| 7591 | } |
| 7592 | _ACEOF |
| 7593 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7595 | (eval $ac_link) 2>conftest.er1 |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7596 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7598 | rm -f conftest.er1 |
| 7599 | cat conftest.err >&5 |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7601 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7602 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7604 | (eval $ac_try) 2>&5 |
| 7605 | ac_status=$? |
| 7606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7607 | (exit $ac_status); }; } && |
| 7608 | { ac_try='test -s conftest$ac_exeext' |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7610 | (eval $ac_try) 2>&5 |
| 7611 | ac_status=$? |
| 7612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7613 | (exit $ac_status); }; }; then |
| 7614 | ac_cv_lib_gif_DGifOpen=yes |
| 7615 | else |
| 7616 | echo "$as_me: failed program was:" >&5 |
| 7617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7618 | |
| 7619 | ac_cv_lib_gif_DGifOpen=no |
| 7620 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7621 | rm -f conftest.err conftest.$ac_objext \ |
| 7622 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 7623 | LIBS=$ac_check_lib_save_LIBS |
| 7624 | fi |
| 7625 | echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5 |
| 7626 | echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6 |
| 7627 | if test $ac_cv_lib_gif_DGifOpen = yes; then |
| 7628 | cat >>confdefs.h <<\_ACEOF |
| 7629 | #define HAVE_LIBGIF 1 |
| 7630 | _ACEOF |
| 7631 | |
| 7632 | GIFLIB="-lgif" |
| 7633 | fi |
| 7634 | |
| 7635 | fi |
| 7636 | |
| 7637 | fi |
| 7638 | |
| 7639 | done |
| 7640 | |
| 7641 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7642 | |
| 7643 | |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 7644 | XFILES="" |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 7645 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7646 | OPENGLFILES="" |
| 7647 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7648 | GLU32FILES="" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 7649 | |
| 7650 | OPENGL_LIBS="" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7651 | if test "$have_x" = "yes" |
| 7652 | then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7653 | XLIB="-lXext -lX11" |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 7654 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 7655 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7656 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7657 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7658 | for ac_header in X11/Xlib.h |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 7659 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7660 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7661 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7662 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7663 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7664 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7666 | fi |
| 7667 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7668 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 7669 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7670 | # Is the header compilable? |
| 7671 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7672 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7673 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7674 | /* confdefs.h. */ |
| 7675 | _ACEOF |
| 7676 | cat confdefs.h >>conftest.$ac_ext |
| 7677 | cat >>conftest.$ac_ext <<_ACEOF |
| 7678 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7679 | $ac_includes_default |
| 7680 | #include <$ac_header> |
| 7681 | _ACEOF |
| 7682 | rm -f conftest.$ac_objext |
| 7683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7684 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7685 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7687 | rm -f conftest.er1 |
| 7688 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7690 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7691 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7693 | (eval $ac_try) 2>&5 |
| 7694 | ac_status=$? |
| 7695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7696 | (exit $ac_status); }; } && |
| 7697 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7699 | (eval $ac_try) 2>&5 |
| 7700 | ac_status=$? |
| 7701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7702 | (exit $ac_status); }; }; then |
| 7703 | ac_header_compiler=yes |
| 7704 | else |
| 7705 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7707 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7708 | ac_header_compiler=no |
| 7709 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7711 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7712 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7713 | |
| 7714 | # Is the header present? |
| 7715 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7716 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7717 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7718 | /* confdefs.h. */ |
| 7719 | _ACEOF |
| 7720 | cat confdefs.h >>conftest.$ac_ext |
| 7721 | cat >>conftest.$ac_ext <<_ACEOF |
| 7722 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7723 | #include <$ac_header> |
| 7724 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7725 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7726 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7727 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 7728 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7729 | rm -f conftest.er1 |
| 7730 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7732 | (exit $ac_status); } >/dev/null; then |
| 7733 | if test -s conftest.err; then |
| 7734 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7735 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7736 | else |
| 7737 | ac_cpp_err= |
| 7738 | fi |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 7739 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7740 | ac_cpp_err=yes |
| 7741 | fi |
| 7742 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7743 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7744 | else |
| 7745 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7747 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7748 | ac_header_preproc=no |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 7749 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7750 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7751 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7752 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7753 | |
| 7754 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7755 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7756 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7757 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7758 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7759 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7760 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7761 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7762 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7763 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7764 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7765 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7766 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7767 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7768 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7769 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7770 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7771 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7772 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7773 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7774 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7775 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7776 | ( |
| 7777 | cat <<\_ASBOX |
| 7778 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7779 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7780 | ## ------------------------------------ ## |
| 7781 | _ASBOX |
| 7782 | ) | |
| 7783 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7784 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7785 | esac |
| 7786 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7787 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7788 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7790 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7791 | eval "$as_ac_Header=\$ac_header_preproc" |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 7792 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7793 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7794 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7795 | |
| 7796 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7797 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7798 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7799 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7800 | _ACEOF |
| 7801 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7802 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7803 | |
| 7804 | |
| 7805 | |
| 7806 | |
| 7807 | |
| 7808 | |
| 7809 | |
| 7810 | |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 7811 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7812 | for ac_header in X11/XKBlib.h \ |
| 7813 | X11/Xutil.h \ |
| 7814 | X11/extensions/shape.h \ |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 7815 | X11/extensions/XInput.h \ |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7816 | X11/extensions/XShm.h \ |
| 7817 | X11/extensions/Xrandr.h \ |
| 7818 | X11/extensions/Xrender.h \ |
| 7819 | X11/extensions/Xvlib.h \ |
| 7820 | X11/extensions/xf86dga.h \ |
| 7821 | X11/extensions/xf86vmode.h |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7822 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7823 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7824 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7825 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7826 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7828 | else |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7829 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7830 | /* confdefs.h. */ |
| 7831 | _ACEOF |
| 7832 | cat confdefs.h >>conftest.$ac_ext |
| 7833 | cat >>conftest.$ac_ext <<_ACEOF |
| 7834 | /* end confdefs.h. */ |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7835 | #include <X11/Xlib.h> |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7836 | #ifdef HAVE_X11_XUTIL_H |
| 7837 | # include <X11/Xutil.h> |
| 7838 | #endif |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7839 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7840 | #include <$ac_header> |
| 7841 | _ACEOF |
| 7842 | rm -f conftest.$ac_objext |
| 7843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7844 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7845 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7847 | rm -f conftest.er1 |
| 7848 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7850 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7851 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7853 | (eval $ac_try) 2>&5 |
| 7854 | ac_status=$? |
| 7855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7856 | (exit $ac_status); }; } && |
| 7857 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7859 | (eval $ac_try) 2>&5 |
| 7860 | ac_status=$? |
| 7861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7862 | (exit $ac_status); }; }; then |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7863 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7864 | else |
| 7865 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7867 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7868 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7869 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7871 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7872 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7873 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7874 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7875 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7876 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7877 | _ACEOF |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7878 | |
| 7879 | fi |
| 7880 | |
| 7881 | done |
| 7882 | |
| 7883 | |
| 7884 | if test "$ac_cv_header_X11_XKBlib_h" = "yes" |
| 7885 | then |
| 7886 | echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7887 | echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6 |
| 7888 | if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then |
| 7889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7890 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7891 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7892 | LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7893 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7894 | /* confdefs.h. */ |
| 7895 | _ACEOF |
| 7896 | cat confdefs.h >>conftest.$ac_ext |
| 7897 | cat >>conftest.$ac_ext <<_ACEOF |
| 7898 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7899 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7900 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7901 | #ifdef __cplusplus |
| 7902 | extern "C" |
| 7903 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7904 | /* 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] | 7905 | builtin and then its argument prototype would still apply. */ |
| 7906 | char XkbQueryExtension (); |
| 7907 | int |
| 7908 | main () |
| 7909 | { |
| 7910 | XkbQueryExtension (); |
| 7911 | ; |
| 7912 | return 0; |
| 7913 | } |
| 7914 | _ACEOF |
| 7915 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7917 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7918 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7920 | rm -f conftest.er1 |
| 7921 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7923 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7924 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7926 | (eval $ac_try) 2>&5 |
| 7927 | ac_status=$? |
| 7928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7929 | (exit $ac_status); }; } && |
| 7930 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7932 | (eval $ac_try) 2>&5 |
| 7933 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7935 | (exit $ac_status); }; }; then |
| 7936 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7937 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7938 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7940 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7941 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7942 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7943 | rm -f conftest.err conftest.$ac_objext \ |
| 7944 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7945 | LIBS=$ac_check_lib_save_LIBS |
| 7946 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7947 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7948 | echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6 |
| 7949 | if test $ac_cv_lib_X11_XkbQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7950 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7951 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7952 | #define HAVE_XKB 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7953 | _ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7954 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7955 | fi |
| 7956 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7957 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7958 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7959 | if test "$ac_cv_header_X11_extensions_XShm_h" = "yes" |
| 7960 | then |
| 7961 | echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7962 | echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6 |
| 7963 | if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then |
| 7964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7965 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7966 | ac_check_lib_save_LIBS=$LIBS |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7967 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7968 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7969 | /* confdefs.h. */ |
| 7970 | _ACEOF |
| 7971 | cat confdefs.h >>conftest.$ac_ext |
| 7972 | cat >>conftest.$ac_ext <<_ACEOF |
| 7973 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7974 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7975 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7976 | #ifdef __cplusplus |
| 7977 | extern "C" |
| 7978 | #endif |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7979 | /* 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] | 7980 | builtin and then its argument prototype would still apply. */ |
| 7981 | char XShmQueryExtension (); |
| 7982 | int |
| 7983 | main () |
| 7984 | { |
| 7985 | XShmQueryExtension (); |
| 7986 | ; |
| 7987 | return 0; |
| 7988 | } |
| 7989 | _ACEOF |
| 7990 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7992 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7993 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7995 | rm -f conftest.er1 |
| 7996 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7998 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7999 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8001 | (eval $ac_try) 2>&5 |
| 8002 | ac_status=$? |
| 8003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8004 | (exit $ac_status); }; } && |
| 8005 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8007 | (eval $ac_try) 2>&5 |
| 8008 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8010 | (exit $ac_status); }; }; then |
| 8011 | ac_cv_lib_Xext_XShmQueryExtension=yes |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8012 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8013 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8015 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8016 | ac_cv_lib_Xext_XShmQueryExtension=no |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8017 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8018 | rm -f conftest.err conftest.$ac_objext \ |
| 8019 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8020 | LIBS=$ac_check_lib_save_LIBS |
| 8021 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8022 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8023 | echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6 |
| 8024 | if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8025 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8026 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8027 | #define HAVE_LIBXXSHM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8028 | _ACEOF |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8029 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 8030 | fi |
| 8031 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8032 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8033 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8034 | if test "$ac_cv_header_X11_extensions_shape_h" = "yes" |
| 8035 | then |
| 8036 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8037 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 8038 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 8039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8040 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8041 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8042 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8043 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8044 | /* confdefs.h. */ |
| 8045 | _ACEOF |
| 8046 | cat confdefs.h >>conftest.$ac_ext |
| 8047 | cat >>conftest.$ac_ext <<_ACEOF |
| 8048 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8049 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8050 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8051 | #ifdef __cplusplus |
| 8052 | extern "C" |
| 8053 | #endif |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8054 | /* 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] | 8055 | builtin and then its argument prototype would still apply. */ |
| 8056 | char XShapeQueryExtension (); |
| 8057 | int |
| 8058 | main () |
| 8059 | { |
| 8060 | XShapeQueryExtension (); |
| 8061 | ; |
| 8062 | return 0; |
| 8063 | } |
| 8064 | _ACEOF |
| 8065 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8067 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8068 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8070 | rm -f conftest.er1 |
| 8071 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8073 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8074 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8076 | (eval $ac_try) 2>&5 |
| 8077 | ac_status=$? |
| 8078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8079 | (exit $ac_status); }; } && |
| 8080 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8082 | (eval $ac_try) 2>&5 |
| 8083 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8085 | (exit $ac_status); }; }; then |
| 8086 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8087 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8088 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8090 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8091 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8092 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8093 | rm -f conftest.err conftest.$ac_objext \ |
| 8094 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8095 | LIBS=$ac_check_lib_save_LIBS |
| 8096 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8097 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8098 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 8099 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8100 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8101 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8102 | #define HAVE_LIBXSHAPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8103 | _ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8104 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8105 | fi |
| 8106 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8107 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8108 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8109 | if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes" |
| 8110 | then |
| 8111 | echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8112 | echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
| 8113 | if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then |
| 8114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8115 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8116 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8117 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8118 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8119 | /* confdefs.h. */ |
| 8120 | _ACEOF |
| 8121 | cat confdefs.h >>conftest.$ac_ext |
| 8122 | cat >>conftest.$ac_ext <<_ACEOF |
| 8123 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8124 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8125 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8126 | #ifdef __cplusplus |
| 8127 | extern "C" |
| 8128 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8129 | /* 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] | 8130 | builtin and then its argument prototype would still apply. */ |
| 8131 | char XDGAQueryExtension (); |
| 8132 | int |
| 8133 | main () |
| 8134 | { |
| 8135 | XDGAQueryExtension (); |
| 8136 | ; |
| 8137 | return 0; |
| 8138 | } |
| 8139 | _ACEOF |
| 8140 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8142 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8143 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8145 | rm -f conftest.er1 |
| 8146 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8148 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8149 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8151 | (eval $ac_try) 2>&5 |
| 8152 | ac_status=$? |
| 8153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8154 | (exit $ac_status); }; } && |
| 8155 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8157 | (eval $ac_try) 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 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8160 | (exit $ac_status); }; }; then |
| 8161 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 8162 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8163 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8165 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8166 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=no |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 8167 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8168 | rm -f conftest.err conftest.$ac_objext \ |
| 8169 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8170 | LIBS=$ac_check_lib_save_LIBS |
| 8171 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8172 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8173 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6 |
| 8174 | if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 8175 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8176 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 8177 | #define HAVE_LIBXXF86DGA2 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8178 | _ACEOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 8179 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8180 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8181 | |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 8182 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8183 | echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8184 | echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
| 8185 | if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then |
| 8186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 8187 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8188 | ac_check_lib_save_LIBS=$LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8189 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 8190 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8191 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8192 | /* confdefs.h. */ |
| 8193 | _ACEOF |
| 8194 | cat confdefs.h >>conftest.$ac_ext |
| 8195 | cat >>conftest.$ac_ext <<_ACEOF |
| 8196 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8197 | |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 8198 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8199 | #ifdef __cplusplus |
| 8200 | extern "C" |
| 8201 | #endif |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 8202 | /* 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] | 8203 | builtin and then its argument prototype would still apply. */ |
| 8204 | char XF86DGAQueryExtension (); |
| 8205 | int |
| 8206 | main () |
| 8207 | { |
| 8208 | XF86DGAQueryExtension (); |
| 8209 | ; |
| 8210 | return 0; |
| 8211 | } |
| 8212 | _ACEOF |
| 8213 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8215 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8216 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8218 | rm -f conftest.er1 |
| 8219 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8221 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8222 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8224 | (eval $ac_try) 2>&5 |
| 8225 | ac_status=$? |
| 8226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8227 | (exit $ac_status); }; } && |
| 8228 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8230 | (eval $ac_try) 2>&5 |
| 8231 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8233 | (exit $ac_status); }; }; then |
| 8234 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8235 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8236 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8238 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8239 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8240 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8241 | rm -f conftest.err conftest.$ac_objext \ |
| 8242 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8243 | LIBS=$ac_check_lib_save_LIBS |
| 8244 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8245 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8246 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6 |
| 8247 | if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8248 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8249 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8250 | #define HAVE_LIBXXF86DGA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8251 | _ACEOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 8252 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8253 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8254 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8255 | fi |
| 8256 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8257 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8258 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8259 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8260 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8261 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8262 | if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" |
| 8263 | then |
| 8264 | echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8265 | echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6 |
| 8266 | if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then |
| 8267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8268 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8269 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8270 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8271 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8272 | /* confdefs.h. */ |
| 8273 | _ACEOF |
| 8274 | cat confdefs.h >>conftest.$ac_ext |
| 8275 | cat >>conftest.$ac_ext <<_ACEOF |
| 8276 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8277 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8278 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8279 | #ifdef __cplusplus |
| 8280 | extern "C" |
| 8281 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8282 | /* 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] | 8283 | builtin and then its argument prototype would still apply. */ |
| 8284 | char XF86VidModeQueryExtension (); |
| 8285 | int |
| 8286 | main () |
| 8287 | { |
| 8288 | XF86VidModeQueryExtension (); |
| 8289 | ; |
| 8290 | return 0; |
| 8291 | } |
| 8292 | _ACEOF |
| 8293 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8295 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8296 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8298 | rm -f conftest.er1 |
| 8299 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8301 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8302 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8304 | (eval $ac_try) 2>&5 |
| 8305 | ac_status=$? |
| 8306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8307 | (exit $ac_status); }; } && |
| 8308 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8310 | (eval $ac_try) 2>&5 |
| 8311 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8313 | (exit $ac_status); }; }; then |
| 8314 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8315 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8316 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8318 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8319 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8320 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8321 | rm -f conftest.err conftest.$ac_objext \ |
| 8322 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8323 | LIBS=$ac_check_lib_save_LIBS |
| 8324 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8325 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8326 | echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6 |
| 8327 | if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8328 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8329 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8330 | #define HAVE_LIBXXF86VM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8331 | _ACEOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8332 | |
| 8333 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8334 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8335 | fi |
| 8336 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8337 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8338 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8339 | if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" |
| 8340 | then |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8341 | cat >conftest.$ac_ext <<_ACEOF |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8342 | /* confdefs.h. */ |
| 8343 | _ACEOF |
| 8344 | cat confdefs.h >>conftest.$ac_ext |
| 8345 | cat >>conftest.$ac_ext <<_ACEOF |
| 8346 | /* end confdefs.h. */ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8347 | #include <X11/Xlib.h> |
| 8348 | #include <X11/extensions/Xrandr.h> |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8349 | int |
| 8350 | main () |
| 8351 | { |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8352 | static typeof(XRRSetScreenConfigAndRate) * func; |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8353 | ; |
| 8354 | return 0; |
| 8355 | } |
| 8356 | _ACEOF |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8357 | rm -f conftest.$ac_objext |
| 8358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8359 | (eval $ac_compile) 2>conftest.er1 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8360 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8362 | rm -f conftest.er1 |
| 8363 | cat conftest.err >&5 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8365 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8366 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8368 | (eval $ac_try) 2>&5 |
| 8369 | ac_status=$? |
| 8370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8371 | (exit $ac_status); }; } && |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8372 | { ac_try='test -s conftest.$ac_objext' |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8374 | (eval $ac_try) 2>&5 |
| 8375 | ac_status=$? |
| 8376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8377 | (exit $ac_status); }; }; then |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8378 | |
| 8379 | cat >>confdefs.h <<\_ACEOF |
| 8380 | #define HAVE_LIBXRANDR 1 |
| 8381 | _ACEOF |
| 8382 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8383 | else |
| 8384 | echo "$as_me: failed program was:" >&5 |
| 8385 | sed 's/^/| /' conftest.$ac_ext >&5 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8386 | |
| 8387 | fi |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8389 | fi |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8390 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8391 | if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes" |
| 8392 | then |
| 8393 | echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8394 | echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6 |
| 8395 | if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then |
| 8396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 8397 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8398 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8399 | LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8400 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8401 | /* confdefs.h. */ |
| 8402 | _ACEOF |
| 8403 | cat confdefs.h >>conftest.$ac_ext |
| 8404 | cat >>conftest.$ac_ext <<_ACEOF |
| 8405 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8406 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 8407 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8408 | #ifdef __cplusplus |
| 8409 | extern "C" |
| 8410 | #endif |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 8411 | /* 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] | 8412 | builtin and then its argument prototype would still apply. */ |
| 8413 | char XvShmCreateImage (); |
| 8414 | int |
| 8415 | main () |
| 8416 | { |
| 8417 | XvShmCreateImage (); |
| 8418 | ; |
| 8419 | return 0; |
| 8420 | } |
| 8421 | _ACEOF |
| 8422 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8424 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8425 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8427 | rm -f conftest.er1 |
| 8428 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8430 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8433 | (eval $ac_try) 2>&5 |
| 8434 | ac_status=$? |
| 8435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8436 | (exit $ac_status); }; } && |
| 8437 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8439 | (eval $ac_try) 2>&5 |
| 8440 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8442 | (exit $ac_status); }; }; then |
| 8443 | ac_cv_lib_Xv_XvShmCreateImage=yes |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 8444 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8445 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8447 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8448 | ac_cv_lib_Xv_XvShmCreateImage=no |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 8449 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8450 | rm -f conftest.err conftest.$ac_objext \ |
| 8451 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8452 | LIBS=$ac_check_lib_save_LIBS |
| 8453 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8454 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8455 | echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6 |
| 8456 | if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 8457 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8458 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 8459 | #define HAVE_XVIDEO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8460 | _ACEOF |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 8461 | |
| 8462 | X_PRE_LIBS="$X_PRE_LIBS -lXv" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8463 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 8464 | fi |
| 8465 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8466 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8467 | |
| 8468 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8469 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8470 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8471 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8472 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 8473 | if test "x$with_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8474 | then |
Francois Gouget | 42dcd97 | 2002-01-29 17:52:28 +0000 | [diff] [blame] | 8475 | 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] | 8476 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8477 | { { 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] | 8478 | This prevents linking to OpenGL. Delete the file and restart configure." >&5 |
| 8479 | echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 8480 | This prevents linking to OpenGL. Delete the file and restart configure." >&2;} |
| 8481 | { (exit 1); exit 1; }; } |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 8482 | fi |
| 8483 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8484 | |
| 8485 | |
| 8486 | for ac_header in GL/gl.h GL/glx.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8487 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8488 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8489 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8490 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8491 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8492 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8494 | fi |
| 8495 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8496 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8497 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8498 | # Is the header compilable? |
| 8499 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8500 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8501 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8502 | /* confdefs.h. */ |
| 8503 | _ACEOF |
| 8504 | cat confdefs.h >>conftest.$ac_ext |
| 8505 | cat >>conftest.$ac_ext <<_ACEOF |
| 8506 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8507 | $ac_includes_default |
| 8508 | #include <$ac_header> |
| 8509 | _ACEOF |
| 8510 | rm -f conftest.$ac_objext |
| 8511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8512 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8513 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8514 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8515 | rm -f conftest.er1 |
| 8516 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8518 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8519 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8521 | (eval $ac_try) 2>&5 |
| 8522 | ac_status=$? |
| 8523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8524 | (exit $ac_status); }; } && |
| 8525 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8527 | (eval $ac_try) 2>&5 |
| 8528 | ac_status=$? |
| 8529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8530 | (exit $ac_status); }; }; then |
| 8531 | ac_header_compiler=yes |
| 8532 | else |
| 8533 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8535 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8536 | ac_header_compiler=no |
| 8537 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8539 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8540 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8541 | |
| 8542 | # Is the header present? |
| 8543 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8544 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8545 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8546 | /* confdefs.h. */ |
| 8547 | _ACEOF |
| 8548 | cat confdefs.h >>conftest.$ac_ext |
| 8549 | cat >>conftest.$ac_ext <<_ACEOF |
| 8550 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8551 | #include <$ac_header> |
| 8552 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8553 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8554 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8555 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8556 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8557 | rm -f conftest.er1 |
| 8558 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8560 | (exit $ac_status); } >/dev/null; then |
| 8561 | if test -s conftest.err; then |
| 8562 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8563 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8564 | else |
| 8565 | ac_cpp_err= |
| 8566 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8567 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8568 | ac_cpp_err=yes |
| 8569 | fi |
| 8570 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8571 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8572 | else |
| 8573 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8575 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8576 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8577 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8578 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8579 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8580 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8581 | |
| 8582 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8583 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8584 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8585 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8586 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8587 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8588 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8589 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8590 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8591 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8592 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8593 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8594 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8595 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8596 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8597 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8598 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8599 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8600 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8601 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8602 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8603 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8604 | ( |
| 8605 | cat <<\_ASBOX |
| 8606 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8607 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8608 | ## ------------------------------------ ## |
| 8609 | _ASBOX |
| 8610 | ) | |
| 8611 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8612 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8613 | esac |
| 8614 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8615 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8616 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8618 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8619 | eval "$as_ac_Header=\$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8620 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8621 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8622 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8623 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8624 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8625 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8626 | cat >>confdefs.h <<_ACEOF |
| 8627 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8628 | _ACEOF |
| 8629 | |
| 8630 | fi |
| 8631 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8632 | done |
| 8633 | |
Marcus Meissner | 22a969b | 2000-08-08 20:46:50 +0000 | [diff] [blame] | 8634 | 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] | 8635 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8636 | |
| 8637 | for ac_header in GL/glext.h |
| 8638 | do |
| 8639 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8640 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8641 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8642 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8644 | else |
| 8645 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8646 | /* confdefs.h. */ |
| 8647 | _ACEOF |
| 8648 | cat confdefs.h >>conftest.$ac_ext |
| 8649 | cat >>conftest.$ac_ext <<_ACEOF |
| 8650 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8651 | #include <GL/glx.h> |
| 8652 | |
| 8653 | #include <$ac_header> |
| 8654 | _ACEOF |
| 8655 | rm -f conftest.$ac_objext |
| 8656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8657 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8658 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8660 | rm -f conftest.er1 |
| 8661 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8663 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8664 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8666 | (eval $ac_try) 2>&5 |
| 8667 | ac_status=$? |
| 8668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8669 | (exit $ac_status); }; } && |
| 8670 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8672 | (eval $ac_try) 2>&5 |
| 8673 | ac_status=$? |
| 8674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8675 | (exit $ac_status); }; }; then |
| 8676 | eval "$as_ac_Header=yes" |
| 8677 | else |
| 8678 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8680 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8681 | eval "$as_ac_Header=no" |
| 8682 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8684 | fi |
| 8685 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8686 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8687 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8688 | cat >>confdefs.h <<_ACEOF |
| 8689 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8690 | _ACEOF |
| 8691 | |
| 8692 | fi |
| 8693 | |
| 8694 | done |
| 8695 | |
| 8696 | echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8697 | echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6 |
| 8698 | if test "${wine_cv_opengl_version_OK+set}" = set; then |
| 8699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8700 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8701 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8702 | /* confdefs.h. */ |
| 8703 | _ACEOF |
| 8704 | cat confdefs.h >>conftest.$ac_ext |
| 8705 | cat >>conftest.$ac_ext <<_ACEOF |
| 8706 | /* end confdefs.h. */ |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8707 | #include <GL/gl.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8708 | int |
| 8709 | main () |
| 8710 | { |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8711 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8712 | ; |
| 8713 | return 0; |
| 8714 | } |
| 8715 | _ACEOF |
| 8716 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8718 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8719 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8721 | rm -f conftest.er1 |
| 8722 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8724 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8725 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8727 | (eval $ac_try) 2>&5 |
| 8728 | ac_status=$? |
| 8729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8730 | (exit $ac_status); }; } && |
| 8731 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8733 | (eval $ac_try) 2>&5 |
| 8734 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8736 | (exit $ac_status); }; }; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8737 | wine_cv_opengl_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8738 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8739 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8741 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8742 | wine_cv_opengl_version_OK="no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8743 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8744 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8746 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8747 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8748 | echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8749 | echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6 |
| 8750 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 8751 | if test "$wine_cv_opengl_version_OK" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8752 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8753 | echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8754 | echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6 |
| 8755 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then |
| 8756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8757 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8758 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 376ec88 | 2000-01-05 03:24:52 +0000 | [diff] [blame] | 8759 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8760 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8761 | /* confdefs.h. */ |
| 8762 | _ACEOF |
| 8763 | cat confdefs.h >>conftest.$ac_ext |
| 8764 | cat >>conftest.$ac_ext <<_ACEOF |
| 8765 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8766 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8767 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8768 | #ifdef __cplusplus |
| 8769 | extern "C" |
| 8770 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8771 | /* 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] | 8772 | builtin and then its argument prototype would still apply. */ |
| 8773 | char glXCreateContext (); |
| 8774 | int |
| 8775 | main () |
| 8776 | { |
| 8777 | glXCreateContext (); |
| 8778 | ; |
| 8779 | return 0; |
| 8780 | } |
| 8781 | _ACEOF |
| 8782 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8784 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8785 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8787 | rm -f conftest.er1 |
| 8788 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8790 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8791 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8793 | (eval $ac_try) 2>&5 |
| 8794 | ac_status=$? |
| 8795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8796 | (exit $ac_status); }; } && |
| 8797 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8799 | (eval $ac_try) 2>&5 |
| 8800 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8802 | (exit $ac_status); }; }; then |
| 8803 | ac_cv_lib_GL_glXCreateContext=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8804 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8805 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8807 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8808 | ac_cv_lib_GL_glXCreateContext=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8809 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8810 | rm -f conftest.err conftest.$ac_objext \ |
| 8811 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8812 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8813 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8814 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8815 | echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6 |
| 8816 | if test $ac_cv_lib_GL_glXCreateContext = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 8817 | OPENGL_LIBS="-lGL" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8818 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8819 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8820 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8821 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 8822 | if test "$ac_cv_lib_GL_glXCreateContext" = "yes" |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 8823 | then |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 8824 | OPENGLFILES='$(OPENGLFILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8825 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8826 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8827 | #define HAVE_OPENGL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8828 | _ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8829 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8830 | |
| 8831 | echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8832 | echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6 |
| 8833 | if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then |
| 8834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8835 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8836 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8837 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8838 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8839 | /* confdefs.h. */ |
| 8840 | _ACEOF |
| 8841 | cat confdefs.h >>conftest.$ac_ext |
| 8842 | cat >>conftest.$ac_ext <<_ACEOF |
| 8843 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8844 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8845 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8846 | #ifdef __cplusplus |
| 8847 | extern "C" |
| 8848 | #endif |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8849 | /* 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] | 8850 | builtin and then its argument prototype would still apply. */ |
| 8851 | char glXGetProcAddressARB (); |
| 8852 | int |
| 8853 | main () |
| 8854 | { |
| 8855 | glXGetProcAddressARB (); |
| 8856 | ; |
| 8857 | return 0; |
| 8858 | } |
| 8859 | _ACEOF |
| 8860 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8862 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8863 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8865 | rm -f conftest.er1 |
| 8866 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8868 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8869 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8871 | (eval $ac_try) 2>&5 |
| 8872 | ac_status=$? |
| 8873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8874 | (exit $ac_status); }; } && |
| 8875 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8877 | (eval $ac_try) 2>&5 |
| 8878 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8880 | (exit $ac_status); }; }; then |
| 8881 | ac_cv_lib_GL_glXGetProcAddressARB=yes |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8882 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8883 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8885 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8886 | ac_cv_lib_GL_glXGetProcAddressARB=no |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8887 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8888 | rm -f conftest.err conftest.$ac_objext \ |
| 8889 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8890 | LIBS=$ac_check_lib_save_LIBS |
| 8891 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8892 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8893 | echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6 |
| 8894 | if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8895 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8896 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8897 | #define HAVE_GLX_GETPROCADDRESS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8898 | _ACEOF |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8899 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8900 | fi |
| 8901 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8902 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 8903 | if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes" |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8904 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8905 | echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8906 | echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6 |
| 8907 | if test "${wine_cv_extension_prototypes+set}" = set; then |
| 8908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8909 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8910 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8911 | /* confdefs.h. */ |
| 8912 | _ACEOF |
| 8913 | cat confdefs.h >>conftest.$ac_ext |
| 8914 | cat >>conftest.$ac_ext <<_ACEOF |
| 8915 | /* end confdefs.h. */ |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8916 | #include <GL/gl.h> |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8917 | #ifdef HAVE_GL_GLEXT_H |
| 8918 | # include <GL/glext.h> |
| 8919 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8920 | |
| 8921 | int |
| 8922 | main () |
| 8923 | { |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8924 | PFNGLCOLORTABLEEXTPROC test_proc; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8925 | ; |
| 8926 | return 0; |
| 8927 | } |
| 8928 | _ACEOF |
| 8929 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8931 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8932 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8934 | rm -f conftest.er1 |
| 8935 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8937 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8938 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8940 | (eval $ac_try) 2>&5 |
| 8941 | ac_status=$? |
| 8942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8943 | (exit $ac_status); }; } && |
| 8944 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8946 | (eval $ac_try) 2>&5 |
| 8947 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8949 | (exit $ac_status); }; }; then |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 8950 | wine_cv_extension_prototypes="yes" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8951 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8952 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8954 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8955 | wine_cv_extension_prototypes="no" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8956 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8957 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8959 | |
| 8960 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8961 | echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8962 | echo "${ECHO_T}$wine_cv_extension_prototypes" >&6 |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 8963 | if test "$wine_cv_extension_prototypes" = "yes" |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 8964 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8965 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8966 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 8967 | #define HAVE_GLEXT_PROTOTYPES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8968 | _ACEOF |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 8969 | |
| 8970 | fi |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8971 | fi |
Alexandre Julliard | d6c0f9f | 2001-01-04 22:44:55 +0000 | [diff] [blame] | 8972 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8973 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8974 | echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8975 | echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6 |
| 8976 | if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then |
| 8977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8978 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8979 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 8980 | LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8981 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8982 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8983 | /* confdefs.h. */ |
| 8984 | _ACEOF |
| 8985 | cat confdefs.h >>conftest.$ac_ext |
| 8986 | cat >>conftest.$ac_ext <<_ACEOF |
| 8987 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8988 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8989 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8990 | #ifdef __cplusplus |
| 8991 | extern "C" |
| 8992 | #endif |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8993 | /* 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] | 8994 | builtin and then its argument prototype would still apply. */ |
| 8995 | char gluLookAt (); |
| 8996 | int |
| 8997 | main () |
| 8998 | { |
| 8999 | gluLookAt (); |
| 9000 | ; |
| 9001 | return 0; |
| 9002 | } |
| 9003 | _ACEOF |
| 9004 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9006 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9007 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9009 | rm -f conftest.er1 |
| 9010 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9012 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9015 | (eval $ac_try) 2>&5 |
| 9016 | ac_status=$? |
| 9017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9018 | (exit $ac_status); }; } && |
| 9019 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9021 | (eval $ac_try) 2>&5 |
| 9022 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9024 | (exit $ac_status); }; }; then |
| 9025 | ac_cv_lib_GLU_gluLookAt=yes |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9026 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9027 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9029 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9030 | ac_cv_lib_GLU_gluLookAt=no |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9031 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9032 | rm -f conftest.err conftest.$ac_objext \ |
| 9033 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9034 | LIBS=$ac_check_lib_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9035 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9036 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9037 | echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6 |
| 9038 | if test $ac_cv_lib_GLU_gluLookAt = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 9039 | OPENGL_LIBS="$OPENGL_LIBS -lGLU" |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9040 | GLU32FILES='$(GLU32FILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9041 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 9042 | fi |
| 9043 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9044 | fi |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9045 | |
| 9046 | echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5 |
| 9047 | echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6 |
| 9048 | if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then |
| 9049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9050 | else |
| 9051 | ac_check_lib_save_LIBS=$LIBS |
Jacek Caban | 5e69f11 | 2003-12-03 20:26:43 +0000 | [diff] [blame] | 9052 | LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS" |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9053 | cat >conftest.$ac_ext <<_ACEOF |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9054 | /* confdefs.h. */ |
| 9055 | _ACEOF |
| 9056 | cat confdefs.h >>conftest.$ac_ext |
| 9057 | cat >>conftest.$ac_ext <<_ACEOF |
| 9058 | /* end confdefs.h. */ |
| 9059 | |
| 9060 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9061 | #ifdef __cplusplus |
| 9062 | extern "C" |
| 9063 | #endif |
| 9064 | /* We use char because int might match the return type of a gcc2 |
| 9065 | builtin and then its argument prototype would still apply. */ |
| 9066 | char glutMainLoop (); |
| 9067 | int |
| 9068 | main () |
| 9069 | { |
| 9070 | glutMainLoop (); |
| 9071 | ; |
| 9072 | return 0; |
| 9073 | } |
| 9074 | _ACEOF |
| 9075 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9077 | (eval $ac_link) 2>conftest.er1 |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9078 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9079 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9080 | rm -f conftest.er1 |
| 9081 | cat conftest.err >&5 |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9083 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9084 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9086 | (eval $ac_try) 2>&5 |
| 9087 | ac_status=$? |
| 9088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9089 | (exit $ac_status); }; } && |
| 9090 | { ac_try='test -s conftest$ac_exeext' |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9092 | (eval $ac_try) 2>&5 |
| 9093 | ac_status=$? |
| 9094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9095 | (exit $ac_status); }; }; then |
| 9096 | ac_cv_lib_glut_glutMainLoop=yes |
| 9097 | else |
| 9098 | echo "$as_me: failed program was:" >&5 |
| 9099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9100 | |
| 9101 | ac_cv_lib_glut_glutMainLoop=no |
| 9102 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9103 | rm -f conftest.err conftest.$ac_objext \ |
| 9104 | conftest$ac_exeext conftest.$ac_ext |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9105 | LIBS=$ac_check_lib_save_LIBS |
| 9106 | fi |
| 9107 | echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5 |
| 9108 | echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6 |
| 9109 | if test $ac_cv_lib_glut_glutMainLoop = yes; then |
Jacek Caban | 5e69f11 | 2003-12-03 20:26:43 +0000 | [diff] [blame] | 9110 | GLUT_LIBS="-lglut -lXmu -lXi" |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 9111 | |
| 9112 | GLUT32FILES='$(GLUT32FILES)' |
| 9113 | |
| 9114 | fi |
| 9115 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 9116 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9117 | fi |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 9118 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9119 | NASLIBS="" |
| 9120 | |
| 9121 | |
| 9122 | for ac_header in audio/audiolib.h |
| 9123 | do |
| 9124 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9125 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9126 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9127 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9128 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9130 | fi |
| 9131 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9132 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9133 | else |
| 9134 | # Is the header compilable? |
| 9135 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9136 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9137 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9138 | /* confdefs.h. */ |
| 9139 | _ACEOF |
| 9140 | cat confdefs.h >>conftest.$ac_ext |
| 9141 | cat >>conftest.$ac_ext <<_ACEOF |
| 9142 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9143 | $ac_includes_default |
| 9144 | #include <$ac_header> |
| 9145 | _ACEOF |
| 9146 | rm -f conftest.$ac_objext |
| 9147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9148 | (eval $ac_compile) 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9149 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9151 | rm -f conftest.er1 |
| 9152 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9154 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9155 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9157 | (eval $ac_try) 2>&5 |
| 9158 | ac_status=$? |
| 9159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9160 | (exit $ac_status); }; } && |
| 9161 | { ac_try='test -s conftest.$ac_objext' |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9163 | (eval $ac_try) 2>&5 |
| 9164 | ac_status=$? |
| 9165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9166 | (exit $ac_status); }; }; then |
| 9167 | ac_header_compiler=yes |
| 9168 | else |
| 9169 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9171 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9172 | ac_header_compiler=no |
| 9173 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9175 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9176 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9177 | |
| 9178 | # Is the header present? |
| 9179 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9180 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9181 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9182 | /* confdefs.h. */ |
| 9183 | _ACEOF |
| 9184 | cat confdefs.h >>conftest.$ac_ext |
| 9185 | cat >>conftest.$ac_ext <<_ACEOF |
| 9186 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9187 | #include <$ac_header> |
| 9188 | _ACEOF |
| 9189 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9190 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9191 | ac_status=$? |
| 9192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9193 | rm -f conftest.er1 |
| 9194 | cat conftest.err >&5 |
| 9195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9196 | (exit $ac_status); } >/dev/null; then |
| 9197 | if test -s conftest.err; then |
| 9198 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9199 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9200 | else |
| 9201 | ac_cpp_err= |
| 9202 | fi |
| 9203 | else |
| 9204 | ac_cpp_err=yes |
| 9205 | fi |
| 9206 | if test -z "$ac_cpp_err"; then |
| 9207 | ac_header_preproc=yes |
| 9208 | else |
| 9209 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9211 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9212 | ac_header_preproc=no |
| 9213 | fi |
| 9214 | rm -f conftest.err conftest.$ac_ext |
| 9215 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9216 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9217 | |
| 9218 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9219 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9220 | yes:no: ) |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9221 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9222 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9223 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9224 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9225 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9226 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9227 | no:yes:* ) |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9228 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9229 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9230 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9231 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9232 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9233 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9234 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9235 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9236 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9237 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9238 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9239 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9240 | ( |
| 9241 | cat <<\_ASBOX |
| 9242 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9243 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9244 | ## ------------------------------------ ## |
| 9245 | _ASBOX |
| 9246 | ) | |
| 9247 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9248 | ;; |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9249 | esac |
| 9250 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9251 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9252 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9254 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9255 | eval "$as_ac_Header=\$ac_header_preproc" |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9256 | fi |
| 9257 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9258 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9259 | |
| 9260 | fi |
| 9261 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9262 | cat >>confdefs.h <<_ACEOF |
| 9263 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9264 | _ACEOF |
| 9265 | |
| 9266 | for ac_header in audio/soundlib.h |
| 9267 | do |
| 9268 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9269 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9270 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9271 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9273 | else |
| 9274 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9275 | /* confdefs.h. */ |
| 9276 | _ACEOF |
| 9277 | cat confdefs.h >>conftest.$ac_ext |
| 9278 | cat >>conftest.$ac_ext <<_ACEOF |
| 9279 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9280 | #include <audio/audiolib.h> |
| 9281 | |
| 9282 | #include <$ac_header> |
| 9283 | _ACEOF |
| 9284 | rm -f conftest.$ac_objext |
| 9285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9286 | (eval $ac_compile) 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9287 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9289 | rm -f conftest.er1 |
| 9290 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9292 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9295 | (eval $ac_try) 2>&5 |
| 9296 | ac_status=$? |
| 9297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9298 | (exit $ac_status); }; } && |
| 9299 | { ac_try='test -s conftest.$ac_objext' |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9301 | (eval $ac_try) 2>&5 |
| 9302 | ac_status=$? |
| 9303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9304 | (exit $ac_status); }; }; then |
| 9305 | eval "$as_ac_Header=yes" |
| 9306 | else |
| 9307 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9309 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9310 | eval "$as_ac_Header=no" |
| 9311 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9313 | fi |
| 9314 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9315 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9316 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9317 | cat >>confdefs.h <<_ACEOF |
| 9318 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9319 | _ACEOF |
| 9320 | |
| 9321 | fi |
| 9322 | |
| 9323 | done |
| 9324 | |
| 9325 | echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5 |
| 9326 | echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6 |
| 9327 | if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then |
| 9328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9329 | else |
| 9330 | ac_check_lib_save_LIBS=$LIBS |
| 9331 | LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 9332 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9333 | /* confdefs.h. */ |
| 9334 | _ACEOF |
| 9335 | cat confdefs.h >>conftest.$ac_ext |
| 9336 | cat >>conftest.$ac_ext <<_ACEOF |
| 9337 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9338 | |
| 9339 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9340 | #ifdef __cplusplus |
| 9341 | extern "C" |
| 9342 | #endif |
| 9343 | /* We use char because int might match the return type of a gcc2 |
| 9344 | builtin and then its argument prototype would still apply. */ |
| 9345 | char AuCreateFlow (); |
| 9346 | int |
| 9347 | main () |
| 9348 | { |
| 9349 | AuCreateFlow (); |
| 9350 | ; |
| 9351 | return 0; |
| 9352 | } |
| 9353 | _ACEOF |
| 9354 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9356 | (eval $ac_link) 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9357 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9359 | rm -f conftest.er1 |
| 9360 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9362 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9363 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9365 | (eval $ac_try) 2>&5 |
| 9366 | ac_status=$? |
| 9367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9368 | (exit $ac_status); }; } && |
| 9369 | { ac_try='test -s conftest$ac_exeext' |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9371 | (eval $ac_try) 2>&5 |
| 9372 | ac_status=$? |
| 9373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9374 | (exit $ac_status); }; }; then |
| 9375 | ac_cv_lib_audio_AuCreateFlow=yes |
| 9376 | else |
| 9377 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9379 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9380 | ac_cv_lib_audio_AuCreateFlow=no |
| 9381 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9382 | rm -f conftest.err conftest.$ac_objext \ |
| 9383 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9384 | LIBS=$ac_check_lib_save_LIBS |
| 9385 | fi |
| 9386 | echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5 |
| 9387 | echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6 |
| 9388 | if test $ac_cv_lib_audio_AuCreateFlow = yes; then |
| 9389 | |
| 9390 | cat >>confdefs.h <<\_ACEOF |
| 9391 | #define HAVE_NAS 1 |
| 9392 | _ACEOF |
| 9393 | |
| 9394 | NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS" |
| 9395 | fi |
| 9396 | |
| 9397 | fi |
| 9398 | |
| 9399 | done |
| 9400 | |
| 9401 | |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 9402 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 9403 | XFILES='$(XFILES)' |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 9404 | else |
| 9405 | XLIB="" |
| 9406 | X_CFLAGS="" |
| 9407 | X_LIBS="" |
| 9408 | fi |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 9409 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9410 | CURSESLIBS="" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9411 | if test "x$with_curses" != "xno" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 9412 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9413 | |
| 9414 | for ac_header in ncurses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9415 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9416 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9417 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9418 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9419 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9420 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9422 | fi |
| 9423 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9424 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9425 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9426 | # Is the header compilable? |
| 9427 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9428 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9429 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9430 | /* confdefs.h. */ |
| 9431 | _ACEOF |
| 9432 | cat confdefs.h >>conftest.$ac_ext |
| 9433 | cat >>conftest.$ac_ext <<_ACEOF |
| 9434 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9435 | $ac_includes_default |
| 9436 | #include <$ac_header> |
| 9437 | _ACEOF |
| 9438 | rm -f conftest.$ac_objext |
| 9439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9440 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9441 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9443 | rm -f conftest.er1 |
| 9444 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9446 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9447 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9449 | (eval $ac_try) 2>&5 |
| 9450 | ac_status=$? |
| 9451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9452 | (exit $ac_status); }; } && |
| 9453 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9455 | (eval $ac_try) 2>&5 |
| 9456 | ac_status=$? |
| 9457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9458 | (exit $ac_status); }; }; then |
| 9459 | ac_header_compiler=yes |
| 9460 | else |
| 9461 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9463 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9464 | ac_header_compiler=no |
| 9465 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9467 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9468 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9469 | |
| 9470 | # Is the header present? |
| 9471 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9472 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9473 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9474 | /* confdefs.h. */ |
| 9475 | _ACEOF |
| 9476 | cat confdefs.h >>conftest.$ac_ext |
| 9477 | cat >>conftest.$ac_ext <<_ACEOF |
| 9478 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9479 | #include <$ac_header> |
| 9480 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9481 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9482 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9483 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9484 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9485 | rm -f conftest.er1 |
| 9486 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9488 | (exit $ac_status); } >/dev/null; then |
| 9489 | if test -s conftest.err; then |
| 9490 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9491 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9492 | else |
| 9493 | ac_cpp_err= |
| 9494 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9495 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9496 | ac_cpp_err=yes |
| 9497 | fi |
| 9498 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9499 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9500 | else |
| 9501 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9503 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9504 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9505 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9506 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9507 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9508 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9509 | |
| 9510 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9511 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9512 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9513 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9514 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9515 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9516 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9517 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9518 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9519 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9520 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9521 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9522 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9523 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9524 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9525 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9526 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9527 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9528 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9529 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9530 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9531 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9532 | ( |
| 9533 | cat <<\_ASBOX |
| 9534 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9535 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9536 | ## ------------------------------------ ## |
| 9537 | _ASBOX |
| 9538 | ) | |
| 9539 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9540 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9541 | esac |
| 9542 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9543 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9544 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9546 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9547 | eval "$as_ac_Header=\$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9548 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9549 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9550 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9551 | |
| 9552 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9553 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9554 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9555 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9556 | _ACEOF |
| 9557 | echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9558 | echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6 |
| 9559 | if test "${ac_cv_lib_ncurses_waddch+set}" = set; then |
| 9560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9561 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9562 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9563 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9564 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9565 | /* confdefs.h. */ |
| 9566 | _ACEOF |
| 9567 | cat confdefs.h >>conftest.$ac_ext |
| 9568 | cat >>conftest.$ac_ext <<_ACEOF |
| 9569 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9570 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9571 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9572 | #ifdef __cplusplus |
| 9573 | extern "C" |
| 9574 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9575 | /* 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] | 9576 | builtin and then its argument prototype would still apply. */ |
| 9577 | char waddch (); |
| 9578 | int |
| 9579 | main () |
| 9580 | { |
| 9581 | waddch (); |
| 9582 | ; |
| 9583 | return 0; |
| 9584 | } |
| 9585 | _ACEOF |
| 9586 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9588 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9589 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9591 | rm -f conftest.er1 |
| 9592 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9594 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9595 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9597 | (eval $ac_try) 2>&5 |
| 9598 | ac_status=$? |
| 9599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9600 | (exit $ac_status); }; } && |
| 9601 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9603 | (eval $ac_try) 2>&5 |
| 9604 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9606 | (exit $ac_status); }; }; then |
| 9607 | ac_cv_lib_ncurses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9608 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9609 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9611 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9612 | ac_cv_lib_ncurses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9613 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9614 | rm -f conftest.err conftest.$ac_objext \ |
| 9615 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9616 | LIBS=$ac_check_lib_save_LIBS |
| 9617 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9618 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9619 | echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6 |
| 9620 | if test $ac_cv_lib_ncurses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9621 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9622 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9623 | #define HAVE_LIBNCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9624 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9625 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9626 | CURSESLIBS="-lncurses" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9627 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9628 | |
| 9629 | for ac_header in curses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9630 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9631 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9632 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9633 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9634 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9635 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9637 | fi |
| 9638 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9639 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9640 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9641 | # Is the header compilable? |
| 9642 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9643 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9644 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9645 | /* confdefs.h. */ |
| 9646 | _ACEOF |
| 9647 | cat confdefs.h >>conftest.$ac_ext |
| 9648 | cat >>conftest.$ac_ext <<_ACEOF |
| 9649 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9650 | $ac_includes_default |
| 9651 | #include <$ac_header> |
| 9652 | _ACEOF |
| 9653 | rm -f conftest.$ac_objext |
| 9654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9655 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9656 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9658 | rm -f conftest.er1 |
| 9659 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9661 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9662 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9664 | (eval $ac_try) 2>&5 |
| 9665 | ac_status=$? |
| 9666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9667 | (exit $ac_status); }; } && |
| 9668 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9670 | (eval $ac_try) 2>&5 |
| 9671 | ac_status=$? |
| 9672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9673 | (exit $ac_status); }; }; then |
| 9674 | ac_header_compiler=yes |
| 9675 | else |
| 9676 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9678 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9679 | ac_header_compiler=no |
| 9680 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9682 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9683 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9684 | |
| 9685 | # Is the header present? |
| 9686 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9687 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9688 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9689 | /* confdefs.h. */ |
| 9690 | _ACEOF |
| 9691 | cat confdefs.h >>conftest.$ac_ext |
| 9692 | cat >>conftest.$ac_ext <<_ACEOF |
| 9693 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9694 | #include <$ac_header> |
| 9695 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9696 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9697 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9698 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9699 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9700 | rm -f conftest.er1 |
| 9701 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9703 | (exit $ac_status); } >/dev/null; then |
| 9704 | if test -s conftest.err; then |
| 9705 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9706 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9707 | else |
| 9708 | ac_cpp_err= |
| 9709 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9710 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9711 | ac_cpp_err=yes |
| 9712 | fi |
| 9713 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9714 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9715 | else |
| 9716 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9718 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9719 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9720 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9721 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9722 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9723 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9724 | |
| 9725 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9726 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9727 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9728 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9729 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9730 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9731 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9732 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9733 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9734 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9735 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9736 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9737 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9738 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9739 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9740 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9741 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9742 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9743 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9744 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9745 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9746 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9747 | ( |
| 9748 | cat <<\_ASBOX |
| 9749 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9750 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9751 | ## ------------------------------------ ## |
| 9752 | _ASBOX |
| 9753 | ) | |
| 9754 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9755 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9756 | esac |
| 9757 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9758 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9759 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9761 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9762 | eval "$as_ac_Header=\$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9763 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9764 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9765 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9766 | |
| 9767 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9768 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9769 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9770 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9771 | _ACEOF |
| 9772 | echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9773 | echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6 |
| 9774 | if test "${ac_cv_lib_curses_waddch+set}" = set; then |
| 9775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9776 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9777 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9778 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9779 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9780 | /* confdefs.h. */ |
| 9781 | _ACEOF |
| 9782 | cat confdefs.h >>conftest.$ac_ext |
| 9783 | cat >>conftest.$ac_ext <<_ACEOF |
| 9784 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9785 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9786 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9787 | #ifdef __cplusplus |
| 9788 | extern "C" |
| 9789 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9790 | /* 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] | 9791 | builtin and then its argument prototype would still apply. */ |
| 9792 | char waddch (); |
| 9793 | int |
| 9794 | main () |
| 9795 | { |
| 9796 | waddch (); |
| 9797 | ; |
| 9798 | return 0; |
| 9799 | } |
| 9800 | _ACEOF |
| 9801 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9803 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9804 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9806 | rm -f conftest.er1 |
| 9807 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9809 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9810 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9812 | (eval $ac_try) 2>&5 |
| 9813 | ac_status=$? |
| 9814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9815 | (exit $ac_status); }; } && |
| 9816 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9818 | (eval $ac_try) 2>&5 |
| 9819 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9821 | (exit $ac_status); }; }; then |
| 9822 | ac_cv_lib_curses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9823 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9824 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9826 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9827 | ac_cv_lib_curses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9828 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9829 | rm -f conftest.err conftest.$ac_objext \ |
| 9830 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9831 | LIBS=$ac_check_lib_save_LIBS |
| 9832 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9833 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9834 | echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6 |
| 9835 | if test $ac_cv_lib_curses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9836 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9837 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9838 | #define HAVE_LIBCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9839 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9840 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9841 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9842 | fi |
| 9843 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9844 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9845 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9846 | done |
| 9847 | |
| 9848 | fi |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9849 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9850 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9851 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9852 | done |
| 9853 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9854 | saved_libs="$LIBS" |
| 9855 | LIBS="$CURSESLIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9856 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9857 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9858 | for ac_func in getbkgd resizeterm |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9859 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9860 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9861 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9862 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9863 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9865 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9866 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9867 | /* confdefs.h. */ |
| 9868 | _ACEOF |
| 9869 | cat confdefs.h >>conftest.$ac_ext |
| 9870 | cat >>conftest.$ac_ext <<_ACEOF |
| 9871 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9872 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9873 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9874 | #define $ac_func innocuous_$ac_func |
| 9875 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9876 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9877 | which can conflict with char $ac_func (); below. |
| 9878 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9879 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9880 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9881 | #ifdef __STDC__ |
| 9882 | # include <limits.h> |
| 9883 | #else |
| 9884 | # include <assert.h> |
| 9885 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9886 | |
| 9887 | #undef $ac_func |
| 9888 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9889 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9890 | #ifdef __cplusplus |
| 9891 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9892 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9893 | #endif |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9894 | /* 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] | 9895 | builtin and then its argument prototype would still apply. */ |
| 9896 | char $ac_func (); |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9897 | /* The GNU C library defines this for functions which it implements |
| 9898 | to always fail with ENOSYS. Some functions are actually named |
| 9899 | something starting with __ and the normal name is an alias. */ |
| 9900 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9901 | choke me |
| 9902 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9903 | char (*f) () = $ac_func; |
| 9904 | #endif |
| 9905 | #ifdef __cplusplus |
| 9906 | } |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9907 | #endif |
| 9908 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9909 | int |
| 9910 | main () |
| 9911 | { |
| 9912 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9913 | ; |
| 9914 | return 0; |
| 9915 | } |
| 9916 | _ACEOF |
| 9917 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9919 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9920 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9922 | rm -f conftest.er1 |
| 9923 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9925 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9926 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9928 | (eval $ac_try) 2>&5 |
| 9929 | ac_status=$? |
| 9930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9931 | (exit $ac_status); }; } && |
| 9932 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9934 | (eval $ac_try) 2>&5 |
| 9935 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9937 | (exit $ac_status); }; }; then |
| 9938 | eval "$as_ac_var=yes" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9939 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9940 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9942 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9943 | eval "$as_ac_var=no" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9944 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9945 | rm -f conftest.err conftest.$ac_objext \ |
| 9946 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9947 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9948 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9949 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9950 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9951 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9952 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9953 | _ACEOF |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9954 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9955 | fi |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9956 | done |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9957 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9958 | LIBS="$saved_libs" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9959 | fi |
| 9960 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9961 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9962 | # Extract the first word of "sane-config", so it can be a program name with args. |
| 9963 | set dummy sane-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9964 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9965 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9966 | if test "${ac_cv_prog_sane_devel+set}" = set; then |
| 9967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9968 | else |
| 9969 | if test -n "$sane_devel"; then |
| 9970 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. |
| 9971 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9973 | for as_dir in $PATH |
| 9974 | do |
| 9975 | IFS=$as_save_IFS |
| 9976 | test -z "$as_dir" && as_dir=. |
| 9977 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9978 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9979 | ac_cv_prog_sane_devel="sane-config" |
| 9980 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9981 | break 2 |
| 9982 | fi |
| 9983 | done |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9984 | done |
| 9985 | |
| 9986 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" |
| 9987 | fi |
| 9988 | fi |
| 9989 | sane_devel=$ac_cv_prog_sane_devel |
| 9990 | if test -n "$sane_devel"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9991 | echo "$as_me:$LINENO: result: $sane_devel" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9992 | echo "${ECHO_T}$sane_devel" >&6 |
| 9993 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9994 | echo "$as_me:$LINENO: result: no" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9995 | echo "${ECHO_T}no" >&6 |
| 9996 | fi |
| 9997 | |
| 9998 | if test "$sane_devel" = "no" |
| 9999 | then |
| 10000 | SANELIBS="" |
| 10001 | SANEINCL="" |
| 10002 | else |
| 10003 | SANELIBS="`$sane_devel --libs`" |
| 10004 | SANEINCL="`$sane_devel --cflags`" |
| 10005 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10006 | ac_save_LIBS="$LIBS" |
| 10007 | CPPFLAGS="$CPPFLAGS $SANEINCL" |
| 10008 | LIBS="$LIBS $SANELIBS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10009 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 10010 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10011 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 |
| 10012 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 10013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10014 | fi |
| 10015 | echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
| 10016 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10017 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10018 | # Is the header compilable? |
| 10019 | echo "$as_me:$LINENO: checking sane/sane.h usability" >&5 |
| 10020 | echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6 |
| 10021 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10022 | /* confdefs.h. */ |
| 10023 | _ACEOF |
| 10024 | cat confdefs.h >>conftest.$ac_ext |
| 10025 | cat >>conftest.$ac_ext <<_ACEOF |
| 10026 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10027 | $ac_includes_default |
| 10028 | #include <sane/sane.h> |
| 10029 | _ACEOF |
| 10030 | rm -f conftest.$ac_objext |
| 10031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10032 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10033 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10035 | rm -f conftest.er1 |
| 10036 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10038 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10039 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10041 | (eval $ac_try) 2>&5 |
| 10042 | ac_status=$? |
| 10043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10044 | (exit $ac_status); }; } && |
| 10045 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10047 | (eval $ac_try) 2>&5 |
| 10048 | ac_status=$? |
| 10049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10050 | (exit $ac_status); }; }; then |
| 10051 | ac_header_compiler=yes |
| 10052 | else |
| 10053 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10055 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10056 | ac_header_compiler=no |
| 10057 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10059 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10060 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10061 | |
| 10062 | # Is the header present? |
| 10063 | echo "$as_me:$LINENO: checking sane/sane.h presence" >&5 |
| 10064 | echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6 |
| 10065 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10066 | /* confdefs.h. */ |
| 10067 | _ACEOF |
| 10068 | cat confdefs.h >>conftest.$ac_ext |
| 10069 | cat >>conftest.$ac_ext <<_ACEOF |
| 10070 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10071 | #include <sane/sane.h> |
| 10072 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10073 | 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] | 10074 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10075 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10076 | grep -v '^ *+' conftest.er1 >conftest.err |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10077 | rm -f conftest.er1 |
| 10078 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10080 | (exit $ac_status); } >/dev/null; then |
| 10081 | if test -s conftest.err; then |
| 10082 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10083 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10084 | else |
| 10085 | ac_cpp_err= |
| 10086 | fi |
| 10087 | else |
| 10088 | ac_cpp_err=yes |
| 10089 | fi |
| 10090 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10091 | ac_header_preproc=yes |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10092 | else |
| 10093 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10095 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10096 | ac_header_preproc=no |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10097 | fi |
| 10098 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10099 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10100 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10101 | |
| 10102 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10103 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10104 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10105 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10106 | echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10107 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5 |
| 10108 | echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;} |
| 10109 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10110 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10111 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10112 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5 |
| 10113 | echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10114 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5 |
| 10115 | echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;} |
| 10116 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5 |
| 10117 | echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;} |
| 10118 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10119 | echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10120 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10121 | echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10122 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5 |
| 10123 | echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10124 | ( |
| 10125 | cat <<\_ASBOX |
| 10126 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10127 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10128 | ## ------------------------------------ ## |
| 10129 | _ASBOX |
| 10130 | ) | |
| 10131 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10132 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10133 | esac |
| 10134 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
| 10135 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 |
| 10136 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 10137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10138 | else |
| 10139 | ac_cv_header_sane_sane_h=$ac_header_preproc |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10140 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10141 | 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] | 10142 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10143 | |
| 10144 | fi |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10145 | if test $ac_cv_header_sane_sane_h = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10146 | echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10147 | echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6 |
| 10148 | if test "${ac_cv_lib_sane_sane_open+set}" = set; then |
| 10149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10150 | else |
| 10151 | ac_check_lib_save_LIBS=$LIBS |
| 10152 | LIBS="-lsane $LIBS" |
| 10153 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10154 | /* confdefs.h. */ |
| 10155 | _ACEOF |
| 10156 | cat confdefs.h >>conftest.$ac_ext |
| 10157 | cat >>conftest.$ac_ext <<_ACEOF |
| 10158 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10159 | |
| 10160 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10161 | #ifdef __cplusplus |
| 10162 | extern "C" |
| 10163 | #endif |
| 10164 | /* We use char because int might match the return type of a gcc2 |
| 10165 | builtin and then its argument prototype would still apply. */ |
| 10166 | char sane_open (); |
| 10167 | int |
| 10168 | main () |
| 10169 | { |
| 10170 | sane_open (); |
| 10171 | ; |
| 10172 | return 0; |
| 10173 | } |
| 10174 | _ACEOF |
| 10175 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10177 | (eval $ac_link) 2>conftest.er1 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10178 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10180 | rm -f conftest.er1 |
| 10181 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10183 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10186 | (eval $ac_try) 2>&5 |
| 10187 | ac_status=$? |
| 10188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10189 | (exit $ac_status); }; } && |
| 10190 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10192 | (eval $ac_try) 2>&5 |
| 10193 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10195 | (exit $ac_status); }; }; then |
| 10196 | ac_cv_lib_sane_sane_open=yes |
| 10197 | else |
| 10198 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10200 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10201 | ac_cv_lib_sane_sane_open=no |
| 10202 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10203 | rm -f conftest.err conftest.$ac_objext \ |
| 10204 | conftest$ac_exeext conftest.$ac_ext |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10205 | LIBS=$ac_check_lib_save_LIBS |
| 10206 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10207 | 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] | 10208 | echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6 |
| 10209 | if test $ac_cv_lib_sane_sane_open = yes; then |
| 10210 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10211 | cat >>confdefs.h <<\_ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10212 | #define HAVE_SANE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10213 | _ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10214 | |
| 10215 | else |
| 10216 | SANELIBS="" |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 10217 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10218 | fi |
| 10219 | |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 10220 | else |
| 10221 | SANELIBS="" |
| 10222 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10223 | fi |
| 10224 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10225 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 10226 | LIBS="$ac_save_LIBS" |
| 10227 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 10228 | fi |
| 10229 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10230 | |
| 10231 | |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10232 | |
| 10233 | for ac_header in unicode/ubidi.h |
| 10234 | do |
| 10235 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10236 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10237 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10238 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10239 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10241 | fi |
| 10242 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10243 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10244 | else |
| 10245 | # Is the header compilable? |
| 10246 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10247 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10248 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10249 | /* confdefs.h. */ |
| 10250 | _ACEOF |
| 10251 | cat confdefs.h >>conftest.$ac_ext |
| 10252 | cat >>conftest.$ac_ext <<_ACEOF |
| 10253 | /* end confdefs.h. */ |
| 10254 | $ac_includes_default |
| 10255 | #include <$ac_header> |
| 10256 | _ACEOF |
| 10257 | rm -f conftest.$ac_objext |
| 10258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10259 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10260 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10261 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10262 | rm -f conftest.er1 |
| 10263 | cat conftest.err >&5 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10265 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10266 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10268 | (eval $ac_try) 2>&5 |
| 10269 | ac_status=$? |
| 10270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10271 | (exit $ac_status); }; } && |
| 10272 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10274 | (eval $ac_try) 2>&5 |
| 10275 | ac_status=$? |
| 10276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10277 | (exit $ac_status); }; }; then |
| 10278 | ac_header_compiler=yes |
| 10279 | else |
| 10280 | echo "$as_me: failed program was:" >&5 |
| 10281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10282 | |
| 10283 | ac_header_compiler=no |
| 10284 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10286 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10287 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10288 | |
| 10289 | # Is the header present? |
| 10290 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10291 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10292 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10293 | /* confdefs.h. */ |
| 10294 | _ACEOF |
| 10295 | cat confdefs.h >>conftest.$ac_ext |
| 10296 | cat >>conftest.$ac_ext <<_ACEOF |
| 10297 | /* end confdefs.h. */ |
| 10298 | #include <$ac_header> |
| 10299 | _ACEOF |
| 10300 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10301 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10302 | ac_status=$? |
| 10303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10304 | rm -f conftest.er1 |
| 10305 | cat conftest.err >&5 |
| 10306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10307 | (exit $ac_status); } >/dev/null; then |
| 10308 | if test -s conftest.err; then |
| 10309 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10310 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10311 | else |
| 10312 | ac_cpp_err= |
| 10313 | fi |
| 10314 | else |
| 10315 | ac_cpp_err=yes |
| 10316 | fi |
| 10317 | if test -z "$ac_cpp_err"; then |
| 10318 | ac_header_preproc=yes |
| 10319 | else |
| 10320 | echo "$as_me: failed program was:" >&5 |
| 10321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10322 | |
| 10323 | ac_header_preproc=no |
| 10324 | fi |
| 10325 | rm -f conftest.err conftest.$ac_ext |
| 10326 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10327 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10328 | |
| 10329 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10330 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10331 | yes:no: ) |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10332 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10333 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10334 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10335 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10336 | ac_header_preproc=yes |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10337 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10338 | no:yes:* ) |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10339 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10340 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10341 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10342 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10343 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10344 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10345 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10346 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10347 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10348 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10349 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10350 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10351 | ( |
| 10352 | cat <<\_ASBOX |
| 10353 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10354 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10355 | ## ------------------------------------ ## |
| 10356 | _ASBOX |
| 10357 | ) | |
| 10358 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10359 | ;; |
| 10360 | esac |
| 10361 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10362 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10363 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10365 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10366 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10367 | fi |
| 10368 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10369 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10370 | |
| 10371 | fi |
| 10372 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10373 | cat >>confdefs.h <<_ACEOF |
| 10374 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10375 | _ACEOF |
| 10376 | |
| 10377 | fi |
| 10378 | |
| 10379 | done |
| 10380 | |
| 10381 | if test "$ac_cv_header_unicode_ubidi_h" = "yes" |
| 10382 | then |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 10383 | saved_libs="$LIBS" |
| 10384 | ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}" |
Shachar Shemesh | 9f2627e | 2004-04-06 20:13:21 +0000 | [diff] [blame] | 10385 | ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}" |
| 10386 | ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}" |
| 10387 | echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5 |
| 10388 | echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6 |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 10389 | LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s" |
| 10390 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10391 | /* confdefs.h. */ |
| 10392 | _ACEOF |
| 10393 | cat confdefs.h >>conftest.$ac_ext |
| 10394 | cat >>conftest.$ac_ext <<_ACEOF |
| 10395 | /* end confdefs.h. */ |
| 10396 | #include <unicode/ubidi.h> |
| 10397 | int |
| 10398 | main () |
| 10399 | { |
| 10400 | ubidi_open() |
| 10401 | ; |
| 10402 | return 0; |
| 10403 | } |
| 10404 | _ACEOF |
| 10405 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10407 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10408 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10410 | rm -f conftest.er1 |
| 10411 | cat conftest.err >&5 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10413 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10414 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10416 | (eval $ac_try) 2>&5 |
| 10417 | ac_status=$? |
| 10418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10419 | (exit $ac_status); }; } && |
| 10420 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10422 | (eval $ac_try) 2>&5 |
| 10423 | ac_status=$? |
| 10424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10425 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10426 | |
| 10427 | cat >>confdefs.h <<\_ACEOF |
| 10428 | #define HAVE_ICU 1 |
| 10429 | _ACEOF |
| 10430 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 10431 | ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s" |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10432 | |
Shachar Shemesh | 9f2627e | 2004-04-06 20:13:21 +0000 | [diff] [blame] | 10433 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10434 | echo "${ECHO_T}yes" >&6 |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 10435 | else |
| 10436 | echo "$as_me: failed program was:" >&5 |
| 10437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10438 | |
Shachar Shemesh | 9f2627e | 2004-04-06 20:13:21 +0000 | [diff] [blame] | 10439 | echo "$as_me:$LINENO: result: no" >&5 |
| 10440 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 10441 | fi |
| 10442 | rm -f conftest.err conftest.$ac_objext \ |
| 10443 | conftest$ac_exeext conftest.$ac_ext |
| 10444 | LIBS="$saved_libs" |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10445 | fi |
| 10446 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10447 | echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10448 | echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6 |
| 10449 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then |
| 10450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10451 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10452 | ac_check_lib_save_LIBS=$LIBS |
Dmitry Timoshkov | 8871a11 | 2001-11-06 22:26:53 +0000 | [diff] [blame] | 10453 | LIBS="-lfreetype $X_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10454 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10455 | /* confdefs.h. */ |
| 10456 | _ACEOF |
| 10457 | cat confdefs.h >>conftest.$ac_ext |
| 10458 | cat >>conftest.$ac_ext <<_ACEOF |
| 10459 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10460 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10461 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10462 | #ifdef __cplusplus |
| 10463 | extern "C" |
| 10464 | #endif |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10465 | /* 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] | 10466 | builtin and then its argument prototype would still apply. */ |
| 10467 | char FT_Init_FreeType (); |
| 10468 | int |
| 10469 | main () |
| 10470 | { |
| 10471 | FT_Init_FreeType (); |
| 10472 | ; |
| 10473 | return 0; |
| 10474 | } |
| 10475 | _ACEOF |
| 10476 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10478 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10479 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10481 | rm -f conftest.er1 |
| 10482 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10484 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10485 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10487 | (eval $ac_try) 2>&5 |
| 10488 | ac_status=$? |
| 10489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10490 | (exit $ac_status); }; } && |
| 10491 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10493 | (eval $ac_try) 2>&5 |
| 10494 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10496 | (exit $ac_status); }; }; then |
| 10497 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10498 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10499 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10501 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10502 | ac_cv_lib_freetype_FT_Init_FreeType=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10503 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10504 | rm -f conftest.err conftest.$ac_objext \ |
| 10505 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10506 | LIBS=$ac_check_lib_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10507 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10508 | 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] | 10509 | echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6 |
| 10510 | if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10511 | ft_lib=yes |
| 10512 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10513 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10514 | fi |
| 10515 | |
| 10516 | if test "$ft_lib" = "no" |
| 10517 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10518 | FREETYPEINCL="" |
| 10519 | wine_cv_msg_freetype=no |
| 10520 | else |
| 10521 | # Extract the first word of "freetype-config", so it can be a program name with args. |
| 10522 | set dummy freetype-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10523 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10524 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10525 | if test "${ac_cv_prog_ft_devel+set}" = set; then |
| 10526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10527 | else |
| 10528 | if test -n "$ft_devel"; then |
| 10529 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 10530 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10532 | for as_dir in $PATH |
| 10533 | do |
| 10534 | IFS=$as_save_IFS |
| 10535 | test -z "$as_dir" && as_dir=. |
| 10536 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10537 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10538 | ac_cv_prog_ft_devel="freetype-config" |
| 10539 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10540 | break 2 |
| 10541 | fi |
| 10542 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10543 | done |
| 10544 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10545 | test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no" |
| 10546 | fi |
| 10547 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10548 | ft_devel=$ac_cv_prog_ft_devel |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10549 | if test -n "$ft_devel"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10550 | echo "$as_me:$LINENO: result: $ft_devel" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10551 | echo "${ECHO_T}$ft_devel" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10552 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10553 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10554 | echo "${ECHO_T}no" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10555 | fi |
| 10556 | |
| 10557 | if test "$ft_devel" = "no" |
| 10558 | then |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10559 | # Extract the first word of "freetype2-config", so it can be a program name with args. |
| 10560 | set dummy freetype2-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10561 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10563 | if test "${ac_cv_prog_ft_devel2+set}" = set; then |
| 10564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10565 | else |
| 10566 | if test -n "$ft_devel2"; then |
| 10567 | ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test. |
| 10568 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10570 | for as_dir in $PATH |
| 10571 | do |
| 10572 | IFS=$as_save_IFS |
| 10573 | test -z "$as_dir" && as_dir=. |
| 10574 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10575 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10576 | ac_cv_prog_ft_devel2="freetype2-config" |
| 10577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10578 | break 2 |
| 10579 | fi |
| 10580 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10581 | done |
| 10582 | |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10583 | test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no" |
| 10584 | fi |
| 10585 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10586 | ft_devel2=$ac_cv_prog_ft_devel2 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10587 | if test -n "$ft_devel2"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10588 | echo "$as_me:$LINENO: result: $ft_devel2" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10589 | echo "${ECHO_T}$ft_devel2" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10590 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10591 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10592 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10593 | fi |
| 10594 | |
| 10595 | if test "$ft_devel2" = "freetype2-config" |
| 10596 | then |
| 10597 | ft_devel=$ft_devel2 |
| 10598 | fi |
| 10599 | fi |
| 10600 | if test "$ft_devel" = "no" |
| 10601 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10602 | FREETYPEINCL="" |
| 10603 | wine_cv_msg_freetype=yes |
| 10604 | else |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10605 | FREETYPEINCL=`$ft_devel --cflags` |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10606 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10607 | CPPFLAGS="$FREETYPEINCL $CPPFLAGS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10608 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10609 | |
| 10610 | |
| 10611 | |
| 10612 | |
| 10613 | |
| 10614 | |
| 10615 | |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 10616 | |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 10617 | |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 10618 | for ac_header in ft2build.h \ |
| 10619 | freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10620 | freetype/ftglyph.h \ |
| 10621 | freetype/tttables.h \ |
| 10622 | freetype/ftnames.h \ |
| 10623 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 10624 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 10625 | freetype/ftoutln.h \ |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 10626 | freetype/ftwinfnt.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 10627 | freetype/internal/sfnt.h |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10628 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10629 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10630 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10631 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10632 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10634 | else |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10635 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10636 | /* confdefs.h. */ |
| 10637 | _ACEOF |
| 10638 | cat confdefs.h >>conftest.$ac_ext |
| 10639 | cat >>conftest.$ac_ext <<_ACEOF |
| 10640 | /* end confdefs.h. */ |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10641 | #if HAVE_FT2BUILD_H |
| 10642 | #include <ft2build.h> |
| 10643 | #endif |
| 10644 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10645 | #include <$ac_header> |
| 10646 | _ACEOF |
| 10647 | rm -f conftest.$ac_objext |
| 10648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10649 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10650 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10652 | rm -f conftest.er1 |
| 10653 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10655 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10656 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10658 | (eval $ac_try) 2>&5 |
| 10659 | ac_status=$? |
| 10660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10661 | (exit $ac_status); }; } && |
| 10662 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10664 | (eval $ac_try) 2>&5 |
| 10665 | ac_status=$? |
| 10666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10667 | (exit $ac_status); }; }; then |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10668 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10669 | else |
| 10670 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10672 | |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10673 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10674 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10676 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10677 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10678 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10679 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10680 | cat >>confdefs.h <<_ACEOF |
| 10681 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10682 | _ACEOF |
| 10683 | |
| 10684 | fi |
| 10685 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10686 | done |
| 10687 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10688 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10689 | /* confdefs.h. */ |
| 10690 | _ACEOF |
| 10691 | cat confdefs.h >>conftest.$ac_ext |
| 10692 | cat >>conftest.$ac_ext <<_ACEOF |
| 10693 | /* end confdefs.h. */ |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10694 | #include <ft2build.h> |
| 10695 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10696 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10697 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10698 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10699 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10700 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10701 | rm -f conftest.er1 |
| 10702 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10704 | (exit $ac_status); } >/dev/null; then |
| 10705 | if test -s conftest.err; then |
| 10706 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10707 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10708 | else |
| 10709 | ac_cpp_err= |
| 10710 | fi |
| 10711 | else |
| 10712 | ac_cpp_err=yes |
| 10713 | fi |
| 10714 | if test -z "$ac_cpp_err"; then |
| 10715 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10716 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10717 | #define HAVE_FREETYPE_FTTRIGON_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10718 | _ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10719 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10720 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10721 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10722 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10724 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10725 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10726 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10727 | rm -f conftest.err conftest.$ac_ext |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10728 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10729 | 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] | 10730 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10731 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10732 | cat >>confdefs.h <<\_ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10733 | #define HAVE_FREETYPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10734 | _ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10735 | |
| 10736 | wine_cv_msg_freetype=no |
| 10737 | else |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10738 | FREETYPEINCL="" |
| 10739 | wine_cv_msg_freetype=yes |
| 10740 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10741 | fi |
| 10742 | fi |
| 10743 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10744 | |
| 10745 | echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10746 | echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6 |
| 10747 | if test "${ac_cv_c_ppdev+set}" = set; then |
| 10748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 10749 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10750 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10751 | /* confdefs.h. */ |
| 10752 | _ACEOF |
| 10753 | cat confdefs.h >>conftest.$ac_ext |
| 10754 | cat >>conftest.$ac_ext <<_ACEOF |
| 10755 | /* end confdefs.h. */ |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10756 | #include <linux/ppdev.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10757 | int |
| 10758 | main () |
| 10759 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10760 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10761 | ; |
| 10762 | return 0; |
| 10763 | } |
| 10764 | _ACEOF |
| 10765 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10767 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10768 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10770 | rm -f conftest.er1 |
| 10771 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10773 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10774 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10776 | (eval $ac_try) 2>&5 |
| 10777 | ac_status=$? |
| 10778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10779 | (exit $ac_status); }; } && |
| 10780 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10782 | (eval $ac_try) 2>&5 |
| 10783 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10785 | (exit $ac_status); }; }; then |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10786 | ac_cv_c_ppdev="yes" |
| 10787 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10788 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10790 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10791 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10792 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10794 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10795 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10796 | echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10797 | echo "${ECHO_T}$ac_cv_c_ppdev" >&6 |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10798 | if test "$ac_cv_c_ppdev" = "yes" |
| 10799 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10800 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10801 | cat >>confdefs.h <<\_ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10802 | #define HAVE_PPDEV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10803 | _ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10804 | |
| 10805 | fi |
| 10806 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10807 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
| 10808 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 |
| 10809 | if test "${ac_cv_c_va_copy+set}" = set; then |
| 10810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10811 | else |
| 10812 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10813 | /* confdefs.h. */ |
| 10814 | _ACEOF |
| 10815 | cat confdefs.h >>conftest.$ac_ext |
| 10816 | cat >>conftest.$ac_ext <<_ACEOF |
| 10817 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10818 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10819 | int |
| 10820 | main () |
| 10821 | { |
| 10822 | va_list ap1, ap2; |
| 10823 | va_copy(ap1,ap2); |
| 10824 | |
| 10825 | ; |
| 10826 | return 0; |
| 10827 | } |
| 10828 | _ACEOF |
| 10829 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10831 | (eval $ac_link) 2>conftest.er1 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10832 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10834 | rm -f conftest.er1 |
| 10835 | cat conftest.err >&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10837 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10838 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10840 | (eval $ac_try) 2>&5 |
| 10841 | ac_status=$? |
| 10842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10843 | (exit $ac_status); }; } && |
| 10844 | { ac_try='test -s conftest$ac_exeext' |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10846 | (eval $ac_try) 2>&5 |
| 10847 | ac_status=$? |
| 10848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10849 | (exit $ac_status); }; }; then |
| 10850 | ac_cv_c_va_copy="yes" |
| 10851 | else |
| 10852 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10854 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10855 | ac_cv_c_va_copy="no" |
| 10856 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10857 | rm -f conftest.err conftest.$ac_objext \ |
| 10858 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10859 | |
| 10860 | fi |
| 10861 | echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5 |
| 10862 | echo "${ECHO_T}$ac_cv_c_va_copy" >&6 |
| 10863 | if test "$ac_cv_c_va_copy" = "yes" |
| 10864 | then |
| 10865 | |
| 10866 | cat >>confdefs.h <<\_ACEOF |
| 10867 | #define HAVE_VA_COPY 1 |
| 10868 | _ACEOF |
| 10869 | |
| 10870 | fi |
| 10871 | echo "$as_me:$LINENO: checking for __va_copy" >&5 |
| 10872 | echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6 |
| 10873 | if test "${ac_cv_c___va_copy+set}" = set; then |
| 10874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10875 | else |
| 10876 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10877 | /* confdefs.h. */ |
| 10878 | _ACEOF |
| 10879 | cat confdefs.h >>conftest.$ac_ext |
| 10880 | cat >>conftest.$ac_ext <<_ACEOF |
| 10881 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10882 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10883 | int |
| 10884 | main () |
| 10885 | { |
| 10886 | va_list ap1, ap2; |
| 10887 | __va_copy(ap1,ap2); |
| 10888 | |
| 10889 | ; |
| 10890 | return 0; |
| 10891 | } |
| 10892 | _ACEOF |
| 10893 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10895 | (eval $ac_link) 2>conftest.er1 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10896 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10898 | rm -f conftest.er1 |
| 10899 | cat conftest.err >&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10901 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10902 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10904 | (eval $ac_try) 2>&5 |
| 10905 | ac_status=$? |
| 10906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10907 | (exit $ac_status); }; } && |
| 10908 | { ac_try='test -s conftest$ac_exeext' |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10910 | (eval $ac_try) 2>&5 |
| 10911 | ac_status=$? |
| 10912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10913 | (exit $ac_status); }; }; then |
| 10914 | ac_cv_c___va_copy="yes" |
| 10915 | else |
| 10916 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10918 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10919 | ac_cv_c___va_copy="no" |
| 10920 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10921 | rm -f conftest.err conftest.$ac_objext \ |
| 10922 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10923 | |
| 10924 | fi |
| 10925 | echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5 |
| 10926 | echo "${ECHO_T}$ac_cv_c___va_copy" >&6 |
| 10927 | if test "$ac_cv_c___va_copy" = "yes" |
| 10928 | then |
| 10929 | |
| 10930 | cat >>confdefs.h <<\_ACEOF |
| 10931 | #define HAVE___VA_COPY 1 |
| 10932 | _ACEOF |
| 10933 | |
| 10934 | fi |
| 10935 | |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 10936 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
| 10937 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 |
| 10938 | if test "${ac_cv_c_sigsetjmp+set}" = set; then |
| 10939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10940 | else |
| 10941 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 10942 | /* confdefs.h. */ |
| 10943 | _ACEOF |
| 10944 | cat confdefs.h >>conftest.$ac_ext |
| 10945 | cat >>conftest.$ac_ext <<_ACEOF |
| 10946 | /* end confdefs.h. */ |
| 10947 | #include <setjmp.h> |
| 10948 | int |
| 10949 | main () |
| 10950 | { |
| 10951 | sigjmp_buf buf; |
| 10952 | sigsetjmp( buf, 1 ); |
| 10953 | siglongjmp( buf, 1 ); |
| 10954 | ; |
| 10955 | return 0; |
| 10956 | } |
| 10957 | _ACEOF |
| 10958 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10960 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 10961 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10963 | rm -f conftest.er1 |
| 10964 | cat conftest.err >&5 |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 10965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10966 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10967 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10969 | (eval $ac_try) 2>&5 |
| 10970 | ac_status=$? |
| 10971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10972 | (exit $ac_status); }; } && |
| 10973 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 10974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10975 | (eval $ac_try) 2>&5 |
| 10976 | ac_status=$? |
| 10977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10978 | (exit $ac_status); }; }; then |
| 10979 | ac_cv_c_sigsetjmp="yes" |
| 10980 | else |
| 10981 | echo "$as_me: failed program was:" >&5 |
| 10982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10983 | |
| 10984 | ac_cv_c_sigsetjmp="no" |
| 10985 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10986 | rm -f conftest.err conftest.$ac_objext \ |
| 10987 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 10988 | |
| 10989 | fi |
| 10990 | echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5 |
| 10991 | echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6 |
| 10992 | if test "$ac_cv_c_sigsetjmp" = "yes" |
| 10993 | then |
| 10994 | |
| 10995 | cat >>confdefs.h <<\_ACEOF |
| 10996 | #define HAVE_SIGSETJMP 1 |
| 10997 | _ACEOF |
| 10998 | |
| 10999 | fi |
| 11000 | |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 11001 | echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5 |
| 11002 | echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6 |
| 11003 | if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then |
| 11004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11005 | else |
| 11006 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 11007 | /* confdefs.h. */ |
| 11008 | _ACEOF |
| 11009 | cat confdefs.h >>conftest.$ac_ext |
| 11010 | cat >>conftest.$ac_ext <<_ACEOF |
| 11011 | /* end confdefs.h. */ |
| 11012 | #define _GNU_SOURCE |
| 11013 | #include <pthread.h> |
| 11014 | |
| 11015 | int |
| 11016 | main () |
| 11017 | { |
| 11018 | if ((pthread_rwlock_t *) 0) |
| 11019 | return 0; |
| 11020 | if (sizeof (pthread_rwlock_t)) |
| 11021 | return 0; |
| 11022 | ; |
| 11023 | return 0; |
| 11024 | } |
| 11025 | _ACEOF |
| 11026 | rm -f conftest.$ac_objext |
| 11027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11028 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 11029 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11031 | rm -f conftest.er1 |
| 11032 | cat conftest.err >&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 11033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11034 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11035 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11037 | (eval $ac_try) 2>&5 |
| 11038 | ac_status=$? |
| 11039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11040 | (exit $ac_status); }; } && |
| 11041 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 11042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11043 | (eval $ac_try) 2>&5 |
| 11044 | ac_status=$? |
| 11045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11046 | (exit $ac_status); }; }; then |
| 11047 | ac_cv_type_pthread_rwlock_t=yes |
| 11048 | else |
| 11049 | echo "$as_me: failed program was:" >&5 |
| 11050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11051 | |
| 11052 | ac_cv_type_pthread_rwlock_t=no |
| 11053 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 11055 | fi |
| 11056 | echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5 |
| 11057 | echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6 |
| 11058 | if test $ac_cv_type_pthread_rwlock_t = yes; then |
| 11059 | |
| 11060 | cat >>confdefs.h <<_ACEOF |
| 11061 | #define HAVE_PTHREAD_RWLOCK_T 1 |
| 11062 | _ACEOF |
| 11063 | |
| 11064 | |
| 11065 | fi |
| 11066 | echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5 |
| 11067 | echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6 |
| 11068 | if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then |
| 11069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11070 | else |
| 11071 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 11072 | /* confdefs.h. */ |
| 11073 | _ACEOF |
| 11074 | cat confdefs.h >>conftest.$ac_ext |
| 11075 | cat >>conftest.$ac_ext <<_ACEOF |
| 11076 | /* end confdefs.h. */ |
| 11077 | #define _GNU_SOURCE |
| 11078 | #include <pthread.h> |
| 11079 | |
| 11080 | int |
| 11081 | main () |
| 11082 | { |
| 11083 | if ((pthread_rwlockattr_t *) 0) |
| 11084 | return 0; |
| 11085 | if (sizeof (pthread_rwlockattr_t)) |
| 11086 | return 0; |
| 11087 | ; |
| 11088 | return 0; |
| 11089 | } |
| 11090 | _ACEOF |
| 11091 | rm -f conftest.$ac_objext |
| 11092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11093 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 11094 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11095 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11096 | rm -f conftest.er1 |
| 11097 | cat conftest.err >&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 11098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11099 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11100 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11102 | (eval $ac_try) 2>&5 |
| 11103 | ac_status=$? |
| 11104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11105 | (exit $ac_status); }; } && |
| 11106 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 11107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11108 | (eval $ac_try) 2>&5 |
| 11109 | ac_status=$? |
| 11110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11111 | (exit $ac_status); }; }; then |
| 11112 | ac_cv_type_pthread_rwlockattr_t=yes |
| 11113 | else |
| 11114 | echo "$as_me: failed program was:" >&5 |
| 11115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11116 | |
| 11117 | ac_cv_type_pthread_rwlockattr_t=no |
| 11118 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 11120 | fi |
| 11121 | echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5 |
| 11122 | echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6 |
| 11123 | if test $ac_cv_type_pthread_rwlockattr_t = yes; then |
| 11124 | |
| 11125 | cat >>confdefs.h <<_ACEOF |
| 11126 | #define HAVE_PTHREAD_RWLOCKATTR_T 1 |
| 11127 | _ACEOF |
| 11128 | |
| 11129 | |
| 11130 | fi |
| 11131 | |
| 11132 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 11133 | ac_save_LIBS="$LIBS" |
| 11134 | LIBS="$LIBS $LIBPTHREAD" |
| 11135 | |
| 11136 | for ac_func in pthread_getattr_np |
| 11137 | do |
| 11138 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11139 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11140 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11141 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11143 | else |
| 11144 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 11145 | /* confdefs.h. */ |
| 11146 | _ACEOF |
| 11147 | cat confdefs.h >>conftest.$ac_ext |
| 11148 | cat >>conftest.$ac_ext <<_ACEOF |
| 11149 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11150 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11151 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11152 | #define $ac_func innocuous_$ac_func |
| 11153 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 11154 | /* System header to define __stub macros and hopefully few prototypes, |
| 11155 | which can conflict with char $ac_func (); below. |
| 11156 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11157 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11158 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 11159 | #ifdef __STDC__ |
| 11160 | # include <limits.h> |
| 11161 | #else |
| 11162 | # include <assert.h> |
| 11163 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11164 | |
| 11165 | #undef $ac_func |
| 11166 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 11167 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11168 | #ifdef __cplusplus |
| 11169 | extern "C" |
| 11170 | { |
| 11171 | #endif |
| 11172 | /* We use char because int might match the return type of a gcc2 |
| 11173 | builtin and then its argument prototype would still apply. */ |
| 11174 | char $ac_func (); |
| 11175 | /* The GNU C library defines this for functions which it implements |
| 11176 | to always fail with ENOSYS. Some functions are actually named |
| 11177 | something starting with __ and the normal name is an alias. */ |
| 11178 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11179 | choke me |
| 11180 | #else |
| 11181 | char (*f) () = $ac_func; |
| 11182 | #endif |
| 11183 | #ifdef __cplusplus |
| 11184 | } |
| 11185 | #endif |
| 11186 | |
| 11187 | int |
| 11188 | main () |
| 11189 | { |
| 11190 | return f != $ac_func; |
| 11191 | ; |
| 11192 | return 0; |
| 11193 | } |
| 11194 | _ACEOF |
| 11195 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11197 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 11198 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11199 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11200 | rm -f conftest.er1 |
| 11201 | cat conftest.err >&5 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 11202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11203 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11206 | (eval $ac_try) 2>&5 |
| 11207 | ac_status=$? |
| 11208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11209 | (exit $ac_status); }; } && |
| 11210 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 11211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11212 | (eval $ac_try) 2>&5 |
| 11213 | ac_status=$? |
| 11214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11215 | (exit $ac_status); }; }; then |
| 11216 | eval "$as_ac_var=yes" |
| 11217 | else |
| 11218 | echo "$as_me: failed program was:" >&5 |
| 11219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11220 | |
| 11221 | eval "$as_ac_var=no" |
| 11222 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11223 | rm -f conftest.err conftest.$ac_objext \ |
| 11224 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 11225 | fi |
| 11226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11227 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11228 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11229 | cat >>confdefs.h <<_ACEOF |
| 11230 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11231 | _ACEOF |
| 11232 | |
| 11233 | fi |
| 11234 | done |
| 11235 | |
| 11236 | LIBS="$ac_save_LIBS" |
| 11237 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11238 | |
| 11239 | |
| 11240 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11241 | for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 11242 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11243 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11244 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11245 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11246 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11247 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11249 | fi |
| 11250 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11251 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 11252 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11253 | # Is the header compilable? |
| 11254 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11255 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11256 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11257 | /* confdefs.h. */ |
| 11258 | _ACEOF |
| 11259 | cat confdefs.h >>conftest.$ac_ext |
| 11260 | cat >>conftest.$ac_ext <<_ACEOF |
| 11261 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11262 | $ac_includes_default |
| 11263 | #include <$ac_header> |
| 11264 | _ACEOF |
| 11265 | rm -f conftest.$ac_objext |
| 11266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11267 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11268 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11270 | rm -f conftest.er1 |
| 11271 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11273 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11274 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11276 | (eval $ac_try) 2>&5 |
| 11277 | ac_status=$? |
| 11278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11279 | (exit $ac_status); }; } && |
| 11280 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11282 | (eval $ac_try) 2>&5 |
| 11283 | ac_status=$? |
| 11284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11285 | (exit $ac_status); }; }; then |
| 11286 | ac_header_compiler=yes |
| 11287 | else |
| 11288 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11290 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11291 | ac_header_compiler=no |
| 11292 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11294 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11295 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11296 | |
| 11297 | # Is the header present? |
| 11298 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11299 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11300 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11301 | /* confdefs.h. */ |
| 11302 | _ACEOF |
| 11303 | cat confdefs.h >>conftest.$ac_ext |
| 11304 | cat >>conftest.$ac_ext <<_ACEOF |
| 11305 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11306 | #include <$ac_header> |
| 11307 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11308 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11309 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11310 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11311 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11312 | rm -f conftest.er1 |
| 11313 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11315 | (exit $ac_status); } >/dev/null; then |
| 11316 | if test -s conftest.err; then |
| 11317 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11318 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11319 | else |
| 11320 | ac_cpp_err= |
| 11321 | fi |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 11322 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11323 | ac_cpp_err=yes |
| 11324 | fi |
| 11325 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11326 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11327 | else |
| 11328 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11330 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11331 | ac_header_preproc=no |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 11332 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11333 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11334 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11335 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11336 | |
| 11337 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11338 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11339 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11340 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11341 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11342 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11343 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11344 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11345 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11346 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11347 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11348 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11349 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11350 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11351 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11352 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11353 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11354 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11355 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11356 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11357 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11358 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11359 | ( |
| 11360 | cat <<\_ASBOX |
| 11361 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11362 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11363 | ## ------------------------------------ ## |
| 11364 | _ASBOX |
| 11365 | ) | |
| 11366 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11367 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11368 | esac |
| 11369 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11370 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11371 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11373 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11374 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 11375 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11376 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11377 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11378 | |
| 11379 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11380 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11381 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11382 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11383 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 11384 | break |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 11385 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11386 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 11387 | done |
| 11388 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11389 | |
| 11390 | echo "$as_me:$LINENO: checking for Open Sound System" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11391 | echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6 |
| 11392 | if test "${ac_cv_c_opensoundsystem+set}" = set; then |
| 11393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11394 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11395 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11396 | /* confdefs.h. */ |
| 11397 | _ACEOF |
| 11398 | cat confdefs.h >>conftest.$ac_ext |
| 11399 | cat >>conftest.$ac_ext <<_ACEOF |
| 11400 | /* end confdefs.h. */ |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 11401 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 11402 | #if defined(HAVE_SYS_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 11403 | #include <sys/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 11404 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 11405 | #include <machine/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 11406 | #elif defined(HAVE_SOUNDCARD_H) |
| 11407 | #include <soundcard.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 11408 | #endif |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11409 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11410 | int |
| 11411 | main () |
| 11412 | { |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 11413 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11414 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 11415 | /* check for one of the Open Sound System specific SNDCTL_ defines */ |
| 11416 | #if !defined(SNDCTL_DSP_STEREO) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11417 | #error No open sound system |
| 11418 | #endif |
| 11419 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11420 | ; |
| 11421 | return 0; |
| 11422 | } |
| 11423 | _ACEOF |
| 11424 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11426 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11427 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11429 | rm -f conftest.er1 |
| 11430 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11432 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11433 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11435 | (eval $ac_try) 2>&5 |
| 11436 | ac_status=$? |
| 11437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11438 | (exit $ac_status); }; } && |
| 11439 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11441 | (eval $ac_try) 2>&5 |
| 11442 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11444 | (exit $ac_status); }; }; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11445 | ac_cv_c_opensoundsystem="yes" |
| 11446 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11447 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11449 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11450 | ac_cv_c_opensoundsystem="no" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11451 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11453 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11454 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11455 | echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11456 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 11457 | if test "$ac_cv_c_opensoundsystem" = "yes" |
| 11458 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11459 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11460 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 11461 | #define HAVE_OSS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11462 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 11463 | |
| 11464 | fi |
| 11465 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11466 | echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11467 | echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6 |
| 11468 | if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then |
| 11469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11470 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11471 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11472 | /* confdefs.h. */ |
| 11473 | _ACEOF |
| 11474 | cat confdefs.h >>conftest.$ac_ext |
| 11475 | cat >>conftest.$ac_ext <<_ACEOF |
| 11476 | /* end confdefs.h. */ |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11477 | |
| 11478 | #if defined(HAVE_SYS_SOUNDCARD_H) |
| 11479 | #include <sys/soundcard.h> |
| 11480 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
| 11481 | #include <machine/soundcard.h> |
| 11482 | #elif defined(HAVE_SOUNDCARD_H) |
| 11483 | #include <soundcard.h> |
| 11484 | #endif |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11485 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11486 | int |
| 11487 | main () |
| 11488 | { |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11489 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11490 | |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11491 | /* check for one of the Open Sound System specific SNDCTL_SEQ defines */ |
| 11492 | #if !defined(SNDCTL_SEQ_SYNC) |
| 11493 | #error No open sound system MIDI interface |
| 11494 | #endif |
| 11495 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11496 | ; |
| 11497 | return 0; |
| 11498 | } |
| 11499 | _ACEOF |
| 11500 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11502 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11503 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11505 | rm -f conftest.er1 |
| 11506 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11508 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11509 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11511 | (eval $ac_try) 2>&5 |
| 11512 | ac_status=$? |
| 11513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11514 | (exit $ac_status); }; } && |
| 11515 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11517 | (eval $ac_try) 2>&5 |
| 11518 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11520 | (exit $ac_status); }; }; then |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11521 | ac_cv_c_opensoundsystem_midi="yes" |
| 11522 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11523 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11525 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11526 | ac_cv_c_opensoundsystem_midi="no" |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11527 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11529 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11530 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11531 | echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11532 | |
| 11533 | if test "$ac_cv_c_opensoundsystem_midi" = "yes" |
| 11534 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11535 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11536 | cat >>confdefs.h <<\_ACEOF |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11537 | #define HAVE_OSS_MIDI 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11538 | _ACEOF |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11539 | |
| 11540 | fi |
| 11541 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11542 | # Extract the first word of "artsc-config", so it can be a program name with args. |
| 11543 | set dummy artsc-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11544 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11545 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11546 | if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then |
| 11547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11548 | else |
| 11549 | case $ARTSCCONFIG in |
| 11550 | [\\/]* | ?:[\\/]*) |
| 11551 | ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path. |
| 11552 | ;; |
| 11553 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11555 | for as_dir in $PATH |
| 11556 | do |
| 11557 | IFS=$as_save_IFS |
| 11558 | test -z "$as_dir" && as_dir=. |
| 11559 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11560 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11561 | ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 11562 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11563 | break 2 |
| 11564 | fi |
| 11565 | done |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11566 | done |
| 11567 | |
| 11568 | ;; |
| 11569 | esac |
| 11570 | fi |
| 11571 | ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG |
| 11572 | |
| 11573 | if test -n "$ARTSCCONFIG"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11574 | echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11575 | echo "${ECHO_T}$ARTSCCONFIG" >&6 |
| 11576 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11577 | echo "$as_me:$LINENO: result: no" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11578 | echo "${ECHO_T}no" >&6 |
| 11579 | fi |
| 11580 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11581 | if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"'; |
| 11582 | then |
Alexandre Julliard | b3b12cf | 2004-02-24 01:24:20 +0000 | [diff] [blame] | 11583 | ARTSC_CFLAGS="" |
| 11584 | for i in `$ARTSCCONFIG --cflags` |
| 11585 | do |
| 11586 | case "$i" in |
| 11587 | -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";; |
| 11588 | esac |
| 11589 | done |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11590 | ARTSC_LIBS=`$ARTSCCONFIG --libs` |
| 11591 | save_CFLAGS="$CFLAGS" |
| 11592 | CFLAGS="$CFLAGS $ARTSC_CFLAGS" |
| 11593 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11594 | /* confdefs.h. */ |
| 11595 | _ACEOF |
| 11596 | cat confdefs.h >>conftest.$ac_ext |
| 11597 | cat >>conftest.$ac_ext <<_ACEOF |
| 11598 | /* end confdefs.h. */ |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11599 | #include <artsc.h> |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11600 | int |
| 11601 | main () |
| 11602 | { |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11603 | arts_stream_t stream; |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11604 | ; |
| 11605 | return 0; |
| 11606 | } |
| 11607 | _ACEOF |
| 11608 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11610 | (eval $ac_compile) 2>conftest.er1 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11611 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11613 | rm -f conftest.er1 |
| 11614 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11616 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11617 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11619 | (eval $ac_try) 2>&5 |
| 11620 | ac_status=$? |
| 11621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11622 | (exit $ac_status); }; } && |
| 11623 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11625 | (eval $ac_try) 2>&5 |
| 11626 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11628 | (exit $ac_status); }; }; then |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11629 | ARTSLIBS=$ARTSC_LIBS |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11630 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11631 | ARTSINCL=$ARTSC_CFLAGS |
| 11632 | |
| 11633 | |
| 11634 | cat >>confdefs.h <<\_ACEOF |
| 11635 | #define HAVE_ARTS 1 |
| 11636 | _ACEOF |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11637 | |
| 11638 | else |
| 11639 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11641 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11642 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11644 | CFLAGS="$save_CFLAGS" |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11645 | fi |
| 11646 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11647 | ALSALIBS="" |
| 11648 | |
| 11649 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 11650 | |
| 11651 | for ac_header in alsa/asoundlib.h sys/asoundlib.h |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11652 | do |
| 11653 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11654 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11655 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11656 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11657 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11659 | fi |
| 11660 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11661 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11662 | else |
| 11663 | # Is the header compilable? |
| 11664 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11665 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11666 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11667 | /* confdefs.h. */ |
| 11668 | _ACEOF |
| 11669 | cat confdefs.h >>conftest.$ac_ext |
| 11670 | cat >>conftest.$ac_ext <<_ACEOF |
| 11671 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11672 | $ac_includes_default |
| 11673 | #include <$ac_header> |
| 11674 | _ACEOF |
| 11675 | rm -f conftest.$ac_objext |
| 11676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11677 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11678 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11680 | rm -f conftest.er1 |
| 11681 | cat conftest.err >&5 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11683 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11684 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11686 | (eval $ac_try) 2>&5 |
| 11687 | ac_status=$? |
| 11688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11689 | (exit $ac_status); }; } && |
| 11690 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11692 | (eval $ac_try) 2>&5 |
| 11693 | ac_status=$? |
| 11694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11695 | (exit $ac_status); }; }; then |
| 11696 | ac_header_compiler=yes |
| 11697 | else |
| 11698 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11700 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11701 | ac_header_compiler=no |
| 11702 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11704 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11705 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11706 | |
| 11707 | # Is the header present? |
| 11708 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11709 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11710 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11711 | /* confdefs.h. */ |
| 11712 | _ACEOF |
| 11713 | cat confdefs.h >>conftest.$ac_ext |
| 11714 | cat >>conftest.$ac_ext <<_ACEOF |
| 11715 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11716 | #include <$ac_header> |
| 11717 | _ACEOF |
| 11718 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11719 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11720 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11721 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11722 | rm -f conftest.er1 |
| 11723 | cat conftest.err >&5 |
| 11724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11725 | (exit $ac_status); } >/dev/null; then |
| 11726 | if test -s conftest.err; then |
| 11727 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11728 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11729 | else |
| 11730 | ac_cpp_err= |
| 11731 | fi |
| 11732 | else |
| 11733 | ac_cpp_err=yes |
| 11734 | fi |
| 11735 | if test -z "$ac_cpp_err"; then |
| 11736 | ac_header_preproc=yes |
| 11737 | else |
| 11738 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11740 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11741 | ac_header_preproc=no |
| 11742 | fi |
| 11743 | rm -f conftest.err conftest.$ac_ext |
| 11744 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11745 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11746 | |
| 11747 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11748 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11749 | yes:no: ) |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11750 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11751 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11752 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11753 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11754 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11755 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11756 | no:yes:* ) |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11757 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11758 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11759 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11760 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11761 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11762 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11763 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11764 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11765 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11766 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11767 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11768 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11769 | ( |
| 11770 | cat <<\_ASBOX |
| 11771 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11772 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11773 | ## ------------------------------------ ## |
| 11774 | _ASBOX |
| 11775 | ) | |
| 11776 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11777 | ;; |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11778 | esac |
| 11779 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11780 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11781 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11783 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11784 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11785 | fi |
| 11786 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11787 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11788 | |
| 11789 | fi |
| 11790 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11791 | cat >>confdefs.h <<_ACEOF |
| 11792 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11793 | _ACEOF |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 11794 | break |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11795 | fi |
| 11796 | |
| 11797 | done |
| 11798 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 11799 | if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes" |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11800 | then |
| 11801 | echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5 |
| 11802 | echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6 |
| 11803 | if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then |
| 11804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11805 | else |
| 11806 | ac_check_lib_save_LIBS=$LIBS |
| 11807 | LIBS="-lasound $LIBS" |
| 11808 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11809 | /* confdefs.h. */ |
| 11810 | _ACEOF |
| 11811 | cat confdefs.h >>conftest.$ac_ext |
| 11812 | cat >>conftest.$ac_ext <<_ACEOF |
| 11813 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11814 | |
| 11815 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11816 | #ifdef __cplusplus |
| 11817 | extern "C" |
| 11818 | #endif |
| 11819 | /* We use char because int might match the return type of a gcc2 |
| 11820 | builtin and then its argument prototype would still apply. */ |
| 11821 | char snd_pcm_open (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11822 | int |
| 11823 | main () |
| 11824 | { |
| 11825 | snd_pcm_open (); |
| 11826 | ; |
| 11827 | return 0; |
| 11828 | } |
| 11829 | _ACEOF |
| 11830 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11832 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11833 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11835 | rm -f conftest.er1 |
| 11836 | cat conftest.err >&5 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11838 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11839 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11841 | (eval $ac_try) 2>&5 |
| 11842 | ac_status=$? |
| 11843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11844 | (exit $ac_status); }; } && |
| 11845 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11847 | (eval $ac_try) 2>&5 |
| 11848 | ac_status=$? |
| 11849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11850 | (exit $ac_status); }; }; then |
| 11851 | ac_cv_lib_asound_snd_pcm_open=yes |
| 11852 | else |
| 11853 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11855 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11856 | ac_cv_lib_asound_snd_pcm_open=no |
| 11857 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11858 | rm -f conftest.err conftest.$ac_objext \ |
| 11859 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11860 | LIBS=$ac_check_lib_save_LIBS |
| 11861 | fi |
| 11862 | echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5 |
| 11863 | echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6 |
| 11864 | if test $ac_cv_lib_asound_snd_pcm_open = yes; then |
| 11865 | |
| 11866 | cat >>confdefs.h <<\_ACEOF |
| 11867 | #define HAVE_ALSA 1 |
| 11868 | _ACEOF |
| 11869 | |
| 11870 | ALSALIBS="-lasound" |
| 11871 | fi |
| 11872 | |
| 11873 | fi |
| 11874 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11875 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11876 | AUDIOIOLIBS="" |
| 11877 | |
| 11878 | |
| 11879 | for ac_header in libaudioio.h |
| 11880 | do |
| 11881 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11882 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11883 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11884 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11885 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11887 | fi |
| 11888 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11889 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11890 | else |
| 11891 | # Is the header compilable? |
| 11892 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11893 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11894 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11895 | /* confdefs.h. */ |
| 11896 | _ACEOF |
| 11897 | cat confdefs.h >>conftest.$ac_ext |
| 11898 | cat >>conftest.$ac_ext <<_ACEOF |
| 11899 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11900 | $ac_includes_default |
| 11901 | #include <$ac_header> |
| 11902 | _ACEOF |
| 11903 | rm -f conftest.$ac_objext |
| 11904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11905 | (eval $ac_compile) 2>conftest.er1 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11906 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11908 | rm -f conftest.er1 |
| 11909 | cat conftest.err >&5 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11911 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11912 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11914 | (eval $ac_try) 2>&5 |
| 11915 | ac_status=$? |
| 11916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11917 | (exit $ac_status); }; } && |
| 11918 | { ac_try='test -s conftest.$ac_objext' |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11920 | (eval $ac_try) 2>&5 |
| 11921 | ac_status=$? |
| 11922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11923 | (exit $ac_status); }; }; then |
| 11924 | ac_header_compiler=yes |
| 11925 | else |
| 11926 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11928 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11929 | ac_header_compiler=no |
| 11930 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11932 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11933 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11934 | |
| 11935 | # Is the header present? |
| 11936 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11937 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11938 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11939 | /* confdefs.h. */ |
| 11940 | _ACEOF |
| 11941 | cat confdefs.h >>conftest.$ac_ext |
| 11942 | cat >>conftest.$ac_ext <<_ACEOF |
| 11943 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11944 | #include <$ac_header> |
| 11945 | _ACEOF |
| 11946 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11947 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11948 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11949 | grep -v '^ *+' conftest.er1 >conftest.err |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11950 | rm -f conftest.er1 |
| 11951 | cat conftest.err >&5 |
| 11952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11953 | (exit $ac_status); } >/dev/null; then |
| 11954 | if test -s conftest.err; then |
| 11955 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11956 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11957 | else |
| 11958 | ac_cpp_err= |
| 11959 | fi |
| 11960 | else |
| 11961 | ac_cpp_err=yes |
| 11962 | fi |
| 11963 | if test -z "$ac_cpp_err"; then |
| 11964 | ac_header_preproc=yes |
| 11965 | else |
| 11966 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11968 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11969 | ac_header_preproc=no |
| 11970 | fi |
| 11971 | rm -f conftest.err conftest.$ac_ext |
| 11972 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11973 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11974 | |
| 11975 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11976 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11977 | yes:no: ) |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11978 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11979 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11980 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11981 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11982 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11983 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11984 | no:yes:* ) |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11985 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11986 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11987 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11988 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11989 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11990 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11991 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11992 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11993 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11994 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11995 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11996 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11997 | ( |
| 11998 | cat <<\_ASBOX |
| 11999 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12000 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12001 | ## ------------------------------------ ## |
| 12002 | _ASBOX |
| 12003 | ) | |
| 12004 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12005 | ;; |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 12006 | esac |
| 12007 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12008 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12009 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12011 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12012 | eval "$as_ac_Header=\$ac_header_preproc" |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 12013 | fi |
| 12014 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12015 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12016 | |
| 12017 | fi |
| 12018 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12019 | cat >>confdefs.h <<_ACEOF |
| 12020 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12021 | _ACEOF |
| 12022 | echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5 |
| 12023 | echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6 |
| 12024 | if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then |
| 12025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12026 | else |
| 12027 | ac_check_lib_save_LIBS=$LIBS |
| 12028 | LIBS="-laudioio $LIBS" |
| 12029 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12030 | /* confdefs.h. */ |
| 12031 | _ACEOF |
| 12032 | cat confdefs.h >>conftest.$ac_ext |
| 12033 | cat >>conftest.$ac_ext <<_ACEOF |
| 12034 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 12035 | |
| 12036 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12037 | #ifdef __cplusplus |
| 12038 | extern "C" |
| 12039 | #endif |
| 12040 | /* We use char because int might match the return type of a gcc2 |
| 12041 | builtin and then its argument prototype would still apply. */ |
| 12042 | char AudioIOGetVersion (); |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 12043 | int |
| 12044 | main () |
| 12045 | { |
| 12046 | AudioIOGetVersion (); |
| 12047 | ; |
| 12048 | return 0; |
| 12049 | } |
| 12050 | _ACEOF |
| 12051 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12052 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12053 | (eval $ac_link) 2>conftest.er1 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 12054 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12056 | rm -f conftest.er1 |
| 12057 | cat conftest.err >&5 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 12058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12059 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12060 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12062 | (eval $ac_try) 2>&5 |
| 12063 | ac_status=$? |
| 12064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12065 | (exit $ac_status); }; } && |
| 12066 | { ac_try='test -s conftest$ac_exeext' |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 12067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12068 | (eval $ac_try) 2>&5 |
| 12069 | ac_status=$? |
| 12070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12071 | (exit $ac_status); }; }; then |
| 12072 | ac_cv_lib_audioio_AudioIOGetVersion=yes |
| 12073 | else |
| 12074 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12076 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 12077 | ac_cv_lib_audioio_AudioIOGetVersion=no |
| 12078 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12079 | rm -f conftest.err conftest.$ac_objext \ |
| 12080 | conftest$ac_exeext conftest.$ac_ext |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 12081 | LIBS=$ac_check_lib_save_LIBS |
| 12082 | fi |
| 12083 | echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5 |
| 12084 | echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6 |
| 12085 | if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then |
| 12086 | AUDIOIOLIBS="-laudioio" |
| 12087 | |
| 12088 | cat >>confdefs.h <<\_ACEOF |
| 12089 | #define HAVE_LIBAUDIOIO 1 |
| 12090 | _ACEOF |
| 12091 | |
| 12092 | fi |
| 12093 | |
| 12094 | fi |
| 12095 | |
| 12096 | done |
| 12097 | |
| 12098 | |
| 12099 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12100 | |
| 12101 | for ac_header in capi20.h |
| 12102 | do |
| 12103 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12104 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12105 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12106 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12107 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12109 | fi |
| 12110 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12111 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12112 | else |
| 12113 | # Is the header compilable? |
| 12114 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12115 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 12116 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12117 | /* confdefs.h. */ |
| 12118 | _ACEOF |
| 12119 | cat confdefs.h >>conftest.$ac_ext |
| 12120 | cat >>conftest.$ac_ext <<_ACEOF |
| 12121 | /* end confdefs.h. */ |
| 12122 | $ac_includes_default |
| 12123 | #include <$ac_header> |
| 12124 | _ACEOF |
| 12125 | rm -f conftest.$ac_objext |
| 12126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12127 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12128 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12130 | rm -f conftest.er1 |
| 12131 | cat conftest.err >&5 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12133 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12134 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12136 | (eval $ac_try) 2>&5 |
| 12137 | ac_status=$? |
| 12138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12139 | (exit $ac_status); }; } && |
| 12140 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12142 | (eval $ac_try) 2>&5 |
| 12143 | ac_status=$? |
| 12144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12145 | (exit $ac_status); }; }; then |
| 12146 | ac_header_compiler=yes |
| 12147 | else |
| 12148 | echo "$as_me: failed program was:" >&5 |
| 12149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12150 | |
| 12151 | ac_header_compiler=no |
| 12152 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12153 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12154 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12155 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12156 | |
| 12157 | # Is the header present? |
| 12158 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12159 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 12160 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12161 | /* confdefs.h. */ |
| 12162 | _ACEOF |
| 12163 | cat confdefs.h >>conftest.$ac_ext |
| 12164 | cat >>conftest.$ac_ext <<_ACEOF |
| 12165 | /* end confdefs.h. */ |
| 12166 | #include <$ac_header> |
| 12167 | _ACEOF |
| 12168 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12169 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12170 | ac_status=$? |
| 12171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12172 | rm -f conftest.er1 |
| 12173 | cat conftest.err >&5 |
| 12174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12175 | (exit $ac_status); } >/dev/null; then |
| 12176 | if test -s conftest.err; then |
| 12177 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12178 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12179 | else |
| 12180 | ac_cpp_err= |
| 12181 | fi |
| 12182 | else |
| 12183 | ac_cpp_err=yes |
| 12184 | fi |
| 12185 | if test -z "$ac_cpp_err"; then |
| 12186 | ac_header_preproc=yes |
| 12187 | else |
| 12188 | echo "$as_me: failed program was:" >&5 |
| 12189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12190 | |
| 12191 | ac_header_preproc=no |
| 12192 | fi |
| 12193 | rm -f conftest.err conftest.$ac_ext |
| 12194 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12195 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12196 | |
| 12197 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12198 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12199 | yes:no: ) |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12200 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12201 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12202 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12203 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12204 | ac_header_preproc=yes |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12205 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12206 | no:yes:* ) |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12207 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12208 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12209 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12210 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12211 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12212 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12213 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12214 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12215 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12216 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12217 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12218 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12219 | ( |
| 12220 | cat <<\_ASBOX |
| 12221 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12222 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12223 | ## ------------------------------------ ## |
| 12224 | _ASBOX |
| 12225 | ) | |
| 12226 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12227 | ;; |
| 12228 | esac |
| 12229 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12230 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12231 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12233 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12234 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12235 | fi |
| 12236 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12237 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12238 | |
| 12239 | fi |
| 12240 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12241 | cat >>confdefs.h <<_ACEOF |
| 12242 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12243 | _ACEOF |
| 12244 | |
| 12245 | |
| 12246 | for ac_header in linux/capi.h |
| 12247 | do |
| 12248 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12249 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12250 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12251 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12252 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12254 | fi |
| 12255 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12256 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12257 | else |
| 12258 | # Is the header compilable? |
| 12259 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12260 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 12261 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12262 | /* confdefs.h. */ |
| 12263 | _ACEOF |
| 12264 | cat confdefs.h >>conftest.$ac_ext |
| 12265 | cat >>conftest.$ac_ext <<_ACEOF |
| 12266 | /* end confdefs.h. */ |
| 12267 | $ac_includes_default |
| 12268 | #include <$ac_header> |
| 12269 | _ACEOF |
| 12270 | rm -f conftest.$ac_objext |
| 12271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12272 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12273 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12275 | rm -f conftest.er1 |
| 12276 | cat conftest.err >&5 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12278 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12279 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12281 | (eval $ac_try) 2>&5 |
| 12282 | ac_status=$? |
| 12283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12284 | (exit $ac_status); }; } && |
| 12285 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12287 | (eval $ac_try) 2>&5 |
| 12288 | ac_status=$? |
| 12289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12290 | (exit $ac_status); }; }; then |
| 12291 | ac_header_compiler=yes |
| 12292 | else |
| 12293 | echo "$as_me: failed program was:" >&5 |
| 12294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12295 | |
| 12296 | ac_header_compiler=no |
| 12297 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12299 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12300 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12301 | |
| 12302 | # Is the header present? |
| 12303 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12304 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 12305 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12306 | /* confdefs.h. */ |
| 12307 | _ACEOF |
| 12308 | cat confdefs.h >>conftest.$ac_ext |
| 12309 | cat >>conftest.$ac_ext <<_ACEOF |
| 12310 | /* end confdefs.h. */ |
| 12311 | #include <$ac_header> |
| 12312 | _ACEOF |
| 12313 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12314 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12315 | ac_status=$? |
| 12316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12317 | rm -f conftest.er1 |
| 12318 | cat conftest.err >&5 |
| 12319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12320 | (exit $ac_status); } >/dev/null; then |
| 12321 | if test -s conftest.err; then |
| 12322 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12323 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12324 | else |
| 12325 | ac_cpp_err= |
| 12326 | fi |
| 12327 | else |
| 12328 | ac_cpp_err=yes |
| 12329 | fi |
| 12330 | if test -z "$ac_cpp_err"; then |
| 12331 | ac_header_preproc=yes |
| 12332 | else |
| 12333 | echo "$as_me: failed program was:" >&5 |
| 12334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12335 | |
| 12336 | ac_header_preproc=no |
| 12337 | fi |
| 12338 | rm -f conftest.err conftest.$ac_ext |
| 12339 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12340 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12341 | |
| 12342 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12343 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12344 | yes:no: ) |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12345 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12346 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12347 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12348 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12349 | ac_header_preproc=yes |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12350 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12351 | no:yes:* ) |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12352 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12353 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12354 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12355 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12356 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12357 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12358 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12359 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12360 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12361 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12362 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12363 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12364 | ( |
| 12365 | cat <<\_ASBOX |
| 12366 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12367 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12368 | ## ------------------------------------ ## |
| 12369 | _ASBOX |
| 12370 | ) | |
| 12371 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12372 | ;; |
| 12373 | esac |
| 12374 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12375 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12376 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12378 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12379 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12380 | fi |
| 12381 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12382 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12383 | |
| 12384 | fi |
| 12385 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12386 | cat >>confdefs.h <<_ACEOF |
| 12387 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12388 | _ACEOF |
| 12389 | |
| 12390 | echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5 |
| 12391 | echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6 |
| 12392 | if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then |
| 12393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12394 | else |
| 12395 | ac_check_lib_save_LIBS=$LIBS |
| 12396 | LIBS="-lcapi20 $LIBS" |
| 12397 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12398 | /* confdefs.h. */ |
| 12399 | _ACEOF |
| 12400 | cat confdefs.h >>conftest.$ac_ext |
| 12401 | cat >>conftest.$ac_ext <<_ACEOF |
| 12402 | /* end confdefs.h. */ |
| 12403 | |
| 12404 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12405 | #ifdef __cplusplus |
| 12406 | extern "C" |
| 12407 | #endif |
| 12408 | /* We use char because int might match the return type of a gcc2 |
| 12409 | builtin and then its argument prototype would still apply. */ |
| 12410 | char capi20_register (); |
| 12411 | int |
| 12412 | main () |
| 12413 | { |
| 12414 | capi20_register (); |
| 12415 | ; |
| 12416 | return 0; |
| 12417 | } |
| 12418 | _ACEOF |
| 12419 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12421 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12422 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12424 | rm -f conftest.er1 |
| 12425 | cat conftest.err >&5 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12427 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12430 | (eval $ac_try) 2>&5 |
| 12431 | ac_status=$? |
| 12432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12433 | (exit $ac_status); }; } && |
| 12434 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12436 | (eval $ac_try) 2>&5 |
| 12437 | ac_status=$? |
| 12438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12439 | (exit $ac_status); }; }; then |
| 12440 | ac_cv_lib_capi20_capi20_register=yes |
| 12441 | else |
| 12442 | echo "$as_me: failed program was:" >&5 |
| 12443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12444 | |
| 12445 | ac_cv_lib_capi20_capi20_register=no |
| 12446 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12447 | rm -f conftest.err conftest.$ac_objext \ |
| 12448 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12449 | LIBS=$ac_check_lib_save_LIBS |
| 12450 | fi |
| 12451 | echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5 |
| 12452 | echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6 |
| 12453 | if test $ac_cv_lib_capi20_capi20_register = yes; then |
| 12454 | |
| 12455 | |
| 12456 | cat >>confdefs.h <<\_ACEOF |
| 12457 | #define HAVE_CAPI4LINUX 1 |
| 12458 | _ACEOF |
| 12459 | |
| 12460 | CAPI4LINUXLIBS="-lcapi20" |
| 12461 | |
| 12462 | |
| 12463 | fi |
| 12464 | |
| 12465 | |
| 12466 | fi |
| 12467 | |
| 12468 | done |
| 12469 | |
| 12470 | |
| 12471 | fi |
| 12472 | |
| 12473 | done |
| 12474 | |
| 12475 | |
| 12476 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12477 | echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12478 | echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6 |
| 12479 | if test "${ac_cv_mmap64_works+set}" = set; then |
| 12480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12481 | else |
| 12482 | if test "$cross_compiling" = yes; then |
| 12483 | ac_cv_mmap64_works="no" |
| 12484 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12485 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12486 | /* confdefs.h. */ |
| 12487 | _ACEOF |
| 12488 | cat confdefs.h >>conftest.$ac_ext |
| 12489 | cat >>conftest.$ac_ext <<_ACEOF |
| 12490 | /* end confdefs.h. */ |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12491 | |
| 12492 | #define _FILE_OFFSET_BITS 64 |
| 12493 | #include <stdio.h> |
| 12494 | #include <unistd.h> |
| 12495 | #include <fcntl.h> |
| 12496 | #include <sys/mman.h> |
| 12497 | #include <errno.h> |
| 12498 | |
| 12499 | int main(int argc,char **argv) { |
| 12500 | int fd = open("conftest.map",O_CREAT|O_RDWR,0600); |
| 12501 | if (fd == -1) exit(1); |
| 12502 | |
| 12503 | unlink("conftest.map"); |
| 12504 | |
| 12505 | write(fd,"test",4); |
| 12506 | |
| 12507 | if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) && |
| 12508 | (errno == EINVAL) |
| 12509 | ) { |
| 12510 | exit(1); |
| 12511 | } |
| 12512 | close(fd); |
| 12513 | fprintf(stderr,"success!\n"); |
| 12514 | exit(0); |
| 12515 | } |
| 12516 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12517 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12518 | _ACEOF |
| 12519 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12521 | (eval $ac_link) 2>&5 |
| 12522 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12524 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12526 | (eval $ac_try) 2>&5 |
| 12527 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12529 | (exit $ac_status); }; }; then |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12530 | ac_cv_mmap64_works="yes" |
| 12531 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12532 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12533 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12535 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12536 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12537 | ac_cv_mmap64_works="no" |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12538 | fi |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12539 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12540 | fi |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12541 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12542 | echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12543 | echo "${ECHO_T}$ac_cv_mmap64_works" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12544 | |
| 12545 | if test "$ac_cv_mmap64_works" = "yes" |
| 12546 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12547 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12548 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12549 | #define _FILE_OFFSET_BITS 64 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12550 | _ACEOF |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12551 | |
| 12552 | fi |
| 12553 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12554 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12555 | EXTRACFLAGS="" |
| 12556 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12557 | if test "x${GCC}" = "xyes" |
| 12558 | then |
Hans Leidekker | d17b232 | 2004-01-06 21:37:44 +0000 | [diff] [blame] | 12559 | EXTRACFLAGS="-Wall -pipe" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12560 | |
| 12561 | echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12562 | echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6 |
| 12563 | if test "${ac_cv_c_gcc_strength_bug+set}" = set; then |
| 12564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12565 | else |
| 12566 | if test "$cross_compiling" = yes; then |
| 12567 | ac_cv_c_gcc_strength_bug="yes" |
| 12568 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12569 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12570 | /* confdefs.h. */ |
| 12571 | _ACEOF |
| 12572 | cat confdefs.h >>conftest.$ac_ext |
| 12573 | cat >>conftest.$ac_ext <<_ACEOF |
| 12574 | /* end confdefs.h. */ |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12575 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 12576 | int L[4] = {0,1,2,3}; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12577 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 12578 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12579 | unsigned int B = 3; |
| 12580 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 12581 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 12582 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 12583 | L[i] = 4; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12584 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 12585 | exit( Array[1] != -2 || L[2] != 3); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12586 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12587 | _ACEOF |
| 12588 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12590 | (eval $ac_link) 2>&5 |
| 12591 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12593 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12595 | (eval $ac_try) 2>&5 |
| 12596 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12598 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12599 | ac_cv_c_gcc_strength_bug="no" |
| 12600 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12601 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12602 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12604 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12605 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12606 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12607 | fi |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12608 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12609 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12610 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12611 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12612 | echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12613 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 12614 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12615 | EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12616 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12617 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 12618 | echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5 |
| 12619 | echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6 |
| 12620 | if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then |
| 12621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12622 | else |
| 12623 | ac_wine_try_cflags_saved=$CFLAGS |
| 12624 | CFLAGS="$CFLAGS -fshort-wchar" |
| 12625 | cat >conftest.$ac_ext <<_ACEOF |
| 12626 | /* confdefs.h. */ |
| 12627 | _ACEOF |
| 12628 | cat confdefs.h >>conftest.$ac_ext |
| 12629 | cat >>conftest.$ac_ext <<_ACEOF |
| 12630 | /* end confdefs.h. */ |
| 12631 | |
| 12632 | int |
| 12633 | main () |
| 12634 | { |
| 12635 | |
| 12636 | ; |
| 12637 | return 0; |
| 12638 | } |
| 12639 | _ACEOF |
| 12640 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12642 | (eval $ac_link) 2>conftest.er1 |
| 12643 | ac_status=$? |
| 12644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12645 | rm -f conftest.er1 |
| 12646 | cat conftest.err >&5 |
| 12647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12648 | (exit $ac_status); } && |
| 12649 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12651 | (eval $ac_try) 2>&5 |
| 12652 | ac_status=$? |
| 12653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12654 | (exit $ac_status); }; } && |
| 12655 | { ac_try='test -s conftest$ac_exeext' |
| 12656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12657 | (eval $ac_try) 2>&5 |
| 12658 | ac_status=$? |
| 12659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12660 | (exit $ac_status); }; }; then |
| 12661 | ac_cv_c_gcc_fshort_wchar="yes" |
| 12662 | else |
| 12663 | echo "$as_me: failed program was:" >&5 |
| 12664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12665 | |
| 12666 | ac_cv_c_gcc_fshort_wchar="no" |
| 12667 | fi |
| 12668 | rm -f conftest.err conftest.$ac_objext \ |
| 12669 | conftest$ac_exeext conftest.$ac_ext |
| 12670 | CFLAGS=$ac_wine_try_cflags_saved |
| 12671 | fi |
| 12672 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5 |
| 12673 | echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6 |
| 12674 | if test "$ac_cv_c_gcc_fshort_wchar" = "yes" |
| 12675 | then |
| 12676 | |
| 12677 | cat >>confdefs.h <<\_ACEOF |
| 12678 | #define CC_FLAG_SHORT_WCHAR "-fshort-wchar" |
| 12679 | _ACEOF |
| 12680 | |
| 12681 | fi |
| 12682 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12683 | 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] | 12684 | echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6 |
| 12685 | if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then |
| 12686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12687 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12688 | ac_wine_try_cflags_saved=$CFLAGS |
| 12689 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" |
| 12690 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12691 | /* confdefs.h. */ |
| 12692 | _ACEOF |
| 12693 | cat confdefs.h >>conftest.$ac_ext |
| 12694 | cat >>conftest.$ac_ext <<_ACEOF |
| 12695 | /* end confdefs.h. */ |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12696 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12697 | int |
| 12698 | main () |
| 12699 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12700 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12701 | ; |
| 12702 | return 0; |
| 12703 | } |
| 12704 | _ACEOF |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12705 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12707 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12708 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12710 | rm -f conftest.er1 |
| 12711 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12713 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12714 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12716 | (eval $ac_try) 2>&5 |
| 12717 | ac_status=$? |
| 12718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12719 | (exit $ac_status); }; } && |
| 12720 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12722 | (eval $ac_try) 2>&5 |
| 12723 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12725 | (exit $ac_status); }; }; then |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12726 | ac_cv_c_gcc_stack_boundary="yes" |
| 12727 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12728 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12730 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12731 | ac_cv_c_gcc_stack_boundary="no" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12732 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12733 | rm -f conftest.err conftest.$ac_objext \ |
| 12734 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12735 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12736 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12737 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12738 | echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12739 | if test "$ac_cv_c_gcc_stack_boundary" = "yes" |
| 12740 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12741 | EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12742 | fi |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12743 | |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12744 | echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5 |
| 12745 | echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6 |
| 12746 | if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then |
| 12747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12748 | else |
| 12749 | ac_wine_try_cflags_saved=$CFLAGS |
| 12750 | CFLAGS="$CFLAGS -fno-strict-aliasing" |
| 12751 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12752 | /* confdefs.h. */ |
| 12753 | _ACEOF |
| 12754 | cat confdefs.h >>conftest.$ac_ext |
| 12755 | cat >>conftest.$ac_ext <<_ACEOF |
| 12756 | /* end confdefs.h. */ |
| 12757 | |
| 12758 | int |
| 12759 | main () |
| 12760 | { |
| 12761 | |
| 12762 | ; |
| 12763 | return 0; |
| 12764 | } |
| 12765 | _ACEOF |
| 12766 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12767 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12768 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12769 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12771 | rm -f conftest.er1 |
| 12772 | cat conftest.err >&5 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12774 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12775 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12777 | (eval $ac_try) 2>&5 |
| 12778 | ac_status=$? |
| 12779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12780 | (exit $ac_status); }; } && |
| 12781 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12783 | (eval $ac_try) 2>&5 |
| 12784 | ac_status=$? |
| 12785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12786 | (exit $ac_status); }; }; then |
| 12787 | ac_cv_c_gcc_no_strict_aliasing="yes" |
| 12788 | else |
| 12789 | echo "$as_me: failed program was:" >&5 |
| 12790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12791 | |
| 12792 | ac_cv_c_gcc_no_strict_aliasing="no" |
| 12793 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12794 | rm -f conftest.err conftest.$ac_objext \ |
| 12795 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12796 | CFLAGS=$ac_wine_try_cflags_saved |
| 12797 | fi |
| 12798 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5 |
| 12799 | echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6 |
| 12800 | if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes" |
| 12801 | then |
| 12802 | EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing" |
| 12803 | fi |
| 12804 | |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12805 | echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5 |
| 12806 | echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6 |
| 12807 | if test "${ac_cv_c_gcc_gstabs+set}" = set; then |
| 12808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12809 | else |
| 12810 | ac_wine_try_cflags_saved=$CFLAGS |
| 12811 | CFLAGS="$CFLAGS -gstabs+" |
| 12812 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12813 | /* confdefs.h. */ |
| 12814 | _ACEOF |
| 12815 | cat confdefs.h >>conftest.$ac_ext |
| 12816 | cat >>conftest.$ac_ext <<_ACEOF |
| 12817 | /* end confdefs.h. */ |
| 12818 | |
| 12819 | int |
| 12820 | main () |
| 12821 | { |
| 12822 | |
| 12823 | ; |
| 12824 | return 0; |
| 12825 | } |
| 12826 | _ACEOF |
| 12827 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12829 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12830 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12832 | rm -f conftest.er1 |
| 12833 | cat conftest.err >&5 |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12835 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12836 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12838 | (eval $ac_try) 2>&5 |
| 12839 | ac_status=$? |
| 12840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12841 | (exit $ac_status); }; } && |
| 12842 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12844 | (eval $ac_try) 2>&5 |
| 12845 | ac_status=$? |
| 12846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12847 | (exit $ac_status); }; }; then |
| 12848 | ac_cv_c_gcc_gstabs="yes" |
| 12849 | else |
| 12850 | echo "$as_me: failed program was:" >&5 |
| 12851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12852 | |
| 12853 | ac_cv_c_gcc_gstabs="no" |
| 12854 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12855 | rm -f conftest.err conftest.$ac_objext \ |
| 12856 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12857 | CFLAGS=$ac_wine_try_cflags_saved |
| 12858 | fi |
| 12859 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5 |
| 12860 | echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6 |
| 12861 | if test "$ac_cv_c_gcc_gstabs" = "yes" |
| 12862 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12863 | EXTRACFLAGS="$EXTRACFLAGS -gstabs+" |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12864 | fi |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12865 | |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 12866 | saved_CFLAGS="$CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12867 | CFLAGS="$CFLAGS -Wpointer-arith -Werror" |
| 12868 | echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5 |
| 12869 | echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6 |
| 12870 | if test "${ac_cv_c_string_h_warnings+set}" = set; then |
| 12871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12872 | else |
| 12873 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12874 | /* confdefs.h. */ |
| 12875 | _ACEOF |
| 12876 | cat confdefs.h >>conftest.$ac_ext |
| 12877 | cat >>conftest.$ac_ext <<_ACEOF |
| 12878 | /* end confdefs.h. */ |
| 12879 | #include <string.h> |
| 12880 | int |
| 12881 | main () |
| 12882 | { |
| 12883 | |
| 12884 | ; |
| 12885 | return 0; |
| 12886 | } |
| 12887 | _ACEOF |
| 12888 | rm -f conftest.$ac_objext |
| 12889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12890 | (eval $ac_compile) 2>conftest.er1 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12891 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12893 | rm -f conftest.er1 |
| 12894 | cat conftest.err >&5 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12896 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12897 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12899 | (eval $ac_try) 2>&5 |
| 12900 | ac_status=$? |
| 12901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12902 | (exit $ac_status); }; } && |
| 12903 | { ac_try='test -s conftest.$ac_objext' |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12905 | (eval $ac_try) 2>&5 |
| 12906 | ac_status=$? |
| 12907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12908 | (exit $ac_status); }; }; then |
| 12909 | ac_cv_c_string_h_warnings=no |
| 12910 | else |
| 12911 | echo "$as_me: failed program was:" >&5 |
| 12912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12913 | |
| 12914 | ac_cv_c_string_h_warnings=yes |
| 12915 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12917 | fi |
| 12918 | echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5 |
| 12919 | echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6 |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 12920 | CFLAGS="$saved_CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12921 | if test "$ac_cv_c_string_h_warnings" = "no" |
| 12922 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12923 | EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12924 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12925 | fi |
| 12926 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12927 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12928 | echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5 |
| 12929 | echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6 |
| 12930 | if test "${ac_cv_asm_func_def+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12932 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12933 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12934 | /* confdefs.h. */ |
| 12935 | _ACEOF |
| 12936 | cat confdefs.h >>conftest.$ac_ext |
| 12937 | cat >>conftest.$ac_ext <<_ACEOF |
| 12938 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 12939 | 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] | 12940 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12941 | int |
| 12942 | main () |
| 12943 | { |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12944 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12945 | ; |
| 12946 | return 0; |
| 12947 | } |
| 12948 | _ACEOF |
| 12949 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12950 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12951 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12952 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12954 | rm -f conftest.er1 |
| 12955 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12957 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12960 | (eval $ac_try) 2>&5 |
| 12961 | ac_status=$? |
| 12962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12963 | (exit $ac_status); }; } && |
| 12964 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12966 | (eval $ac_try) 2>&5 |
| 12967 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12969 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12970 | ac_cv_asm_func_def=".def" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12971 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12972 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12974 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12975 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12976 | /* confdefs.h. */ |
| 12977 | _ACEOF |
| 12978 | cat confdefs.h >>conftest.$ac_ext |
| 12979 | cat >>conftest.$ac_ext <<_ACEOF |
| 12980 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 12981 | 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] | 12982 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12983 | int |
| 12984 | main () |
| 12985 | { |
| 12986 | |
| 12987 | ; |
| 12988 | return 0; |
| 12989 | } |
| 12990 | _ACEOF |
| 12991 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12993 | (eval $ac_link) 2>conftest.er1 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12994 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12995 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12996 | rm -f conftest.er1 |
| 12997 | cat conftest.err >&5 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12999 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13000 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13002 | (eval $ac_try) 2>&5 |
| 13003 | ac_status=$? |
| 13004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13005 | (exit $ac_status); }; } && |
| 13006 | { ac_try='test -s conftest$ac_exeext' |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13008 | (eval $ac_try) 2>&5 |
| 13009 | ac_status=$? |
| 13010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13011 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13012 | ac_cv_asm_func_def=".type @function" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13013 | else |
| 13014 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13016 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13017 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13018 | /* confdefs.h. */ |
| 13019 | _ACEOF |
| 13020 | cat confdefs.h >>conftest.$ac_ext |
| 13021 | cat >>conftest.$ac_ext <<_ACEOF |
| 13022 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 13023 | void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); } |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13024 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13025 | int |
| 13026 | main () |
| 13027 | { |
| 13028 | |
| 13029 | ; |
| 13030 | return 0; |
| 13031 | } |
| 13032 | _ACEOF |
| 13033 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13034 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13035 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13036 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13038 | rm -f conftest.er1 |
| 13039 | cat conftest.err >&5 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13041 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13042 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13044 | (eval $ac_try) 2>&5 |
| 13045 | ac_status=$? |
| 13046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13047 | (exit $ac_status); }; } && |
| 13048 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13050 | (eval $ac_try) 2>&5 |
| 13051 | ac_status=$? |
| 13052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13053 | (exit $ac_status); }; }; then |
| 13054 | ac_cv_asm_func_def=".type 2" |
| 13055 | else |
| 13056 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13058 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13059 | ac_cv_asm_func_def="unknown" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13060 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13061 | rm -f conftest.err conftest.$ac_objext \ |
| 13062 | conftest$ac_exeext conftest.$ac_ext |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13063 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13064 | rm -f conftest.err conftest.$ac_objext \ |
| 13065 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13066 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13067 | rm -f conftest.err conftest.$ac_objext \ |
| 13068 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13069 | fi |
| 13070 | echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5 |
| 13071 | echo "${ECHO_T}$ac_cv_asm_func_def" >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13072 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13073 | |
| 13074 | |
| 13075 | case "$ac_cv_asm_func_def" in |
| 13076 | ".def") |
| 13077 | cat >>confdefs.h <<\_ACEOF |
| 13078 | #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] | 13079 | _ACEOF |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13080 | ;; |
| 13081 | ".type @function") |
| 13082 | cat >>confdefs.h <<\_ACEOF |
| 13083 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function" |
| 13084 | _ACEOF |
| 13085 | ;; |
| 13086 | ".type 2") |
| 13087 | cat >>confdefs.h <<\_ACEOF |
| 13088 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2" |
| 13089 | _ACEOF |
| 13090 | ;; |
| 13091 | *) |
| 13092 | cat >>confdefs.h <<\_ACEOF |
| 13093 | #define __ASM_FUNC(name) "" |
| 13094 | _ACEOF |
| 13095 | ;; |
| 13096 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13097 | |
| 13098 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13099 | 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] | 13100 | echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6 |
| 13101 | if test "${ac_cv_c_extern_prefix+set}" = set; then |
| 13102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 13103 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13104 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13105 | /* confdefs.h. */ |
| 13106 | _ACEOF |
| 13107 | cat confdefs.h >>conftest.$ac_ext |
| 13108 | cat >>conftest.$ac_ext <<_ACEOF |
| 13109 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 13110 | 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] | 13111 | extern int ac_test; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13112 | int |
| 13113 | main () |
| 13114 | { |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 13115 | if (ac_test) return 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13116 | ; |
| 13117 | return 0; |
| 13118 | } |
| 13119 | _ACEOF |
| 13120 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13122 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13123 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13125 | rm -f conftest.er1 |
| 13126 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13128 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13129 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13131 | (eval $ac_try) 2>&5 |
| 13132 | ac_status=$? |
| 13133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13134 | (exit $ac_status); }; } && |
| 13135 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13137 | (eval $ac_try) 2>&5 |
| 13138 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13140 | (exit $ac_status); }; }; then |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 13141 | ac_cv_c_extern_prefix="yes" |
| 13142 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13143 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13145 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13146 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 13147 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13148 | rm -f conftest.err conftest.$ac_objext \ |
| 13149 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 13150 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13151 | echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13152 | echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13153 | |
| 13154 | |
| 13155 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 13156 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 13157 | then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13158 | cat >>confdefs.h <<\_ACEOF |
| 13159 | #define __ASM_NAME(name) "_" name |
| 13160 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13161 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13162 | else |
| 13163 | cat >>confdefs.h <<\_ACEOF |
| 13164 | #define __ASM_NAME(name) name |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13165 | _ACEOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 13166 | |
| 13167 | fi |
| 13168 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13169 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13170 | echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5 |
| 13171 | echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13172 | if test "${ac_cv_c_asm_string+set}" = set; then |
| 13173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 13174 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 13175 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13176 | /* confdefs.h. */ |
| 13177 | _ACEOF |
| 13178 | cat confdefs.h >>conftest.$ac_ext |
| 13179 | cat >>conftest.$ac_ext <<_ACEOF |
| 13180 | /* end confdefs.h. */ |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13181 | void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); } |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 13182 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13183 | int |
| 13184 | main () |
| 13185 | { |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 13186 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13187 | ; |
| 13188 | return 0; |
| 13189 | } |
| 13190 | _ACEOF |
| 13191 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13193 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13194 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13196 | rm -f conftest.er1 |
| 13197 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13199 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13200 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13202 | (eval $ac_try) 2>&5 |
| 13203 | ac_status=$? |
| 13204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13205 | (exit $ac_status); }; } && |
| 13206 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13208 | (eval $ac_try) 2>&5 |
| 13209 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13211 | (exit $ac_status); }; }; then |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13212 | ac_cv_c_asm_string=".string" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 13213 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13214 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13216 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13217 | cat >conftest.$ac_ext <<_ACEOF |
| 13218 | /* confdefs.h. */ |
| 13219 | _ACEOF |
| 13220 | cat confdefs.h >>conftest.$ac_ext |
| 13221 | cat >>conftest.$ac_ext <<_ACEOF |
| 13222 | /* end confdefs.h. */ |
| 13223 | void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); } |
| 13224 | |
| 13225 | int |
| 13226 | main () |
| 13227 | { |
| 13228 | |
| 13229 | ; |
| 13230 | return 0; |
| 13231 | } |
| 13232 | _ACEOF |
| 13233 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13235 | (eval $ac_link) 2>conftest.er1 |
| 13236 | ac_status=$? |
| 13237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13238 | rm -f conftest.er1 |
| 13239 | cat conftest.err >&5 |
| 13240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13241 | (exit $ac_status); } && |
| 13242 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13244 | (eval $ac_try) 2>&5 |
| 13245 | ac_status=$? |
| 13246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13247 | (exit $ac_status); }; } && |
| 13248 | { ac_try='test -s conftest$ac_exeext' |
| 13249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13250 | (eval $ac_try) 2>&5 |
| 13251 | ac_status=$? |
| 13252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13253 | (exit $ac_status); }; }; then |
| 13254 | ac_cv_c_asm_string=".asciz" |
| 13255 | else |
| 13256 | echo "$as_me: failed program was:" >&5 |
| 13257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13258 | |
| 13259 | cat >conftest.$ac_ext <<_ACEOF |
| 13260 | /* confdefs.h. */ |
| 13261 | _ACEOF |
| 13262 | cat confdefs.h >>conftest.$ac_ext |
| 13263 | cat >>conftest.$ac_ext <<_ACEOF |
| 13264 | /* end confdefs.h. */ |
| 13265 | void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); } |
| 13266 | |
| 13267 | int |
| 13268 | main () |
| 13269 | { |
| 13270 | |
| 13271 | ; |
| 13272 | return 0; |
| 13273 | } |
| 13274 | _ACEOF |
| 13275 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13276 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13277 | (eval $ac_link) 2>conftest.er1 |
| 13278 | ac_status=$? |
| 13279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13280 | rm -f conftest.er1 |
| 13281 | cat conftest.err >&5 |
| 13282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13283 | (exit $ac_status); } && |
| 13284 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13286 | (eval $ac_try) 2>&5 |
| 13287 | ac_status=$? |
| 13288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13289 | (exit $ac_status); }; } && |
| 13290 | { ac_try='test -s conftest$ac_exeext' |
| 13291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13292 | (eval $ac_try) 2>&5 |
| 13293 | ac_status=$? |
| 13294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13295 | (exit $ac_status); }; }; then |
| 13296 | ac_cv_c_asm_string=".ascii" |
| 13297 | else |
| 13298 | echo "$as_me: failed program was:" >&5 |
| 13299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13300 | |
| 13301 | { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5 |
| 13302 | echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;} |
| 13303 | { (exit 1); exit 1; }; } |
| 13304 | fi |
| 13305 | rm -f conftest.err conftest.$ac_objext \ |
| 13306 | conftest$ac_exeext conftest.$ac_ext |
| 13307 | fi |
| 13308 | rm -f conftest.err conftest.$ac_objext \ |
| 13309 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 13310 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13311 | rm -f conftest.err conftest.$ac_objext \ |
| 13312 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 13313 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13314 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13315 | echo "${ECHO_T}$ac_cv_c_asm_string" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13316 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13317 | |
| 13318 | cat >>confdefs.h <<_ACEOF |
| 13319 | #define __ASM_STRING "$ac_cv_c_asm_string" |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13320 | _ACEOF |
| 13321 | |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13322 | |
| 13323 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13324 | echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5 |
| 13325 | echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6 |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13326 | if test "${ac_cv_c_asm_short+set}" = set; then |
| 13327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13328 | else |
| 13329 | cat >conftest.$ac_ext <<_ACEOF |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13330 | /* confdefs.h. */ |
| 13331 | _ACEOF |
| 13332 | cat confdefs.h >>conftest.$ac_ext |
| 13333 | cat >>conftest.$ac_ext <<_ACEOF |
| 13334 | /* end confdefs.h. */ |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13335 | void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); } |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13336 | |
| 13337 | int |
| 13338 | main () |
| 13339 | { |
| 13340 | |
| 13341 | ; |
| 13342 | return 0; |
| 13343 | } |
| 13344 | _ACEOF |
| 13345 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13347 | (eval $ac_link) 2>conftest.er1 |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13348 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13350 | rm -f conftest.er1 |
| 13351 | cat conftest.err >&5 |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13353 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13354 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13356 | (eval $ac_try) 2>&5 |
| 13357 | ac_status=$? |
| 13358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13359 | (exit $ac_status); }; } && |
| 13360 | { ac_try='test -s conftest$ac_exeext' |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13362 | (eval $ac_try) 2>&5 |
| 13363 | ac_status=$? |
| 13364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13365 | (exit $ac_status); }; }; then |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13366 | ac_cv_c_asm_short=".short" |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13367 | else |
| 13368 | echo "$as_me: failed program was:" >&5 |
| 13369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13370 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13371 | cat >conftest.$ac_ext <<_ACEOF |
| 13372 | /* confdefs.h. */ |
| 13373 | _ACEOF |
| 13374 | cat confdefs.h >>conftest.$ac_ext |
| 13375 | cat >>conftest.$ac_ext <<_ACEOF |
| 13376 | /* end confdefs.h. */ |
| 13377 | void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); } |
| 13378 | |
| 13379 | int |
| 13380 | main () |
| 13381 | { |
| 13382 | |
| 13383 | ; |
| 13384 | return 0; |
| 13385 | } |
| 13386 | _ACEOF |
| 13387 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13389 | (eval $ac_link) 2>conftest.er1 |
| 13390 | ac_status=$? |
| 13391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13392 | rm -f conftest.er1 |
| 13393 | cat conftest.err >&5 |
| 13394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13395 | (exit $ac_status); } && |
| 13396 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13398 | (eval $ac_try) 2>&5 |
| 13399 | ac_status=$? |
| 13400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13401 | (exit $ac_status); }; } && |
| 13402 | { ac_try='test -s conftest$ac_exeext' |
| 13403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13404 | (eval $ac_try) 2>&5 |
| 13405 | ac_status=$? |
| 13406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13407 | (exit $ac_status); }; }; then |
| 13408 | ac_cv_c_asm_short=".half" |
| 13409 | else |
| 13410 | echo "$as_me: failed program was:" >&5 |
| 13411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13412 | |
| 13413 | { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5 |
| 13414 | echo "$as_me: error: could not discover how to specify word values with assembler." >&2;} |
| 13415 | { (exit 1); exit 1; }; } |
| 13416 | fi |
| 13417 | rm -f conftest.err conftest.$ac_objext \ |
| 13418 | conftest$ac_exeext conftest.$ac_ext |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13419 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13420 | rm -f conftest.err conftest.$ac_objext \ |
| 13421 | conftest$ac_exeext conftest.$ac_ext |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13422 | fi |
| 13423 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5 |
| 13424 | echo "${ECHO_T}$ac_cv_c_asm_short" >&6 |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13425 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13426 | |
| 13427 | cat >>confdefs.h <<_ACEOF |
| 13428 | #define __ASM_SHORT "$ac_cv_c_asm_short" |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13429 | _ACEOF |
| 13430 | |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 13431 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13432 | |
Pierre d'Herbemont | 68467db | 2004-06-18 19:36:26 +0000 | [diff] [blame] | 13433 | echo "$as_me:$LINENO: checking for .size in assembler" >&5 |
| 13434 | echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6 |
| 13435 | if test "${ac_cv_c_asm_size+set}" = set; then |
| 13436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13437 | else |
| 13438 | cat >conftest.$ac_ext <<_ACEOF |
| 13439 | /* confdefs.h. */ |
| 13440 | _ACEOF |
| 13441 | cat confdefs.h >>conftest.$ac_ext |
| 13442 | cat >>conftest.$ac_ext <<_ACEOF |
| 13443 | /* end confdefs.h. */ |
| 13444 | void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); } |
| 13445 | |
| 13446 | int |
| 13447 | main () |
| 13448 | { |
| 13449 | |
| 13450 | ; |
| 13451 | return 0; |
| 13452 | } |
| 13453 | _ACEOF |
| 13454 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13456 | (eval $ac_link) 2>conftest.er1 |
| 13457 | ac_status=$? |
| 13458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13459 | rm -f conftest.er1 |
| 13460 | cat conftest.err >&5 |
| 13461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13462 | (exit $ac_status); } && |
| 13463 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13465 | (eval $ac_try) 2>&5 |
| 13466 | ac_status=$? |
| 13467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13468 | (exit $ac_status); }; } && |
| 13469 | { ac_try='test -s conftest$ac_exeext' |
| 13470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13471 | (eval $ac_try) 2>&5 |
| 13472 | ac_status=$? |
| 13473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13474 | (exit $ac_status); }; }; then |
| 13475 | ac_cv_c_asm_size="yes" |
| 13476 | else |
| 13477 | echo "$as_me: failed program was:" >&5 |
| 13478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13479 | |
| 13480 | ac_cv_c_asm_size="no" |
| 13481 | fi |
| 13482 | rm -f conftest.err conftest.$ac_objext \ |
| 13483 | conftest$ac_exeext conftest.$ac_ext |
| 13484 | fi |
| 13485 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5 |
| 13486 | echo "${ECHO_T}$ac_cv_c_asm_size" >&6 |
| 13487 | |
| 13488 | if test "$ac_cv_c_asm_size" = "yes" |
| 13489 | then |
| 13490 | |
| 13491 | cat >>confdefs.h <<\_ACEOF |
| 13492 | #define HAVE_ASM_DOT_SIZE 1 |
| 13493 | _ACEOF |
| 13494 | |
| 13495 | fi |
| 13496 | |
| 13497 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 13498 | DLLEXT="" |
| 13499 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 13500 | DLLFLAGS="-D_REENTRANT" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 13501 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13502 | DLLIBS="" |
| 13503 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 13504 | LDSHARED="" |
| 13505 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13506 | LDDLLFLAGS="" |
Alexandre Julliard | 6ac34ac | 2003-10-11 01:05:18 +0000 | [diff] [blame] | 13507 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 13508 | LIBEXT="so" |
| 13509 | |
| 13510 | IMPLIBEXT="def" |
| 13511 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 13512 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 13513 | case $host_os in |
| 13514 | cygwin*|mingw32*) |
| 13515 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 13516 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 13517 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 13518 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13519 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13520 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 13521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13522 | else |
| 13523 | if test -n "$DLLTOOL"; then |
| 13524 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 13525 | else |
| 13526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13527 | for as_dir in $PATH |
| 13528 | do |
| 13529 | IFS=$as_save_IFS |
| 13530 | test -z "$as_dir" && as_dir=. |
| 13531 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13532 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13533 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 13534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13535 | break 2 |
| 13536 | fi |
| 13537 | done |
| 13538 | done |
| 13539 | |
| 13540 | fi |
| 13541 | fi |
| 13542 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 13543 | if test -n "$DLLTOOL"; then |
| 13544 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 13545 | echo "${ECHO_T}$DLLTOOL" >&6 |
| 13546 | else |
| 13547 | echo "$as_me:$LINENO: result: no" >&5 |
| 13548 | echo "${ECHO_T}no" >&6 |
| 13549 | fi |
| 13550 | |
| 13551 | fi |
| 13552 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 13553 | ac_ct_DLLTOOL=$DLLTOOL |
| 13554 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 13555 | set dummy dlltool; ac_word=$2 |
| 13556 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13558 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 13559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13560 | else |
| 13561 | if test -n "$ac_ct_DLLTOOL"; then |
| 13562 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 13563 | else |
| 13564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13565 | for as_dir in $PATH |
| 13566 | do |
| 13567 | IFS=$as_save_IFS |
| 13568 | test -z "$as_dir" && as_dir=. |
| 13569 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13570 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13571 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 13572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13573 | break 2 |
| 13574 | fi |
| 13575 | done |
| 13576 | done |
| 13577 | |
| 13578 | test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" |
| 13579 | fi |
| 13580 | fi |
| 13581 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 13582 | if test -n "$ac_ct_DLLTOOL"; then |
| 13583 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 13584 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 |
| 13585 | else |
| 13586 | echo "$as_me:$LINENO: result: no" >&5 |
| 13587 | echo "${ECHO_T}no" >&6 |
| 13588 | fi |
| 13589 | |
| 13590 | DLLTOOL=$ac_ct_DLLTOOL |
| 13591 | else |
| 13592 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 13593 | fi |
| 13594 | |
| 13595 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 13596 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 13597 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 13598 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13600 | if test "${ac_cv_prog_DLLWRAP+set}" = set; then |
| 13601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13602 | else |
| 13603 | if test -n "$DLLWRAP"; then |
| 13604 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 13605 | else |
| 13606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13607 | for as_dir in $PATH |
| 13608 | do |
| 13609 | IFS=$as_save_IFS |
| 13610 | test -z "$as_dir" && as_dir=. |
| 13611 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13612 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 13613 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 13614 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13615 | break 2 |
| 13616 | fi |
| 13617 | done |
| 13618 | done |
| 13619 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 13620 | fi |
| 13621 | fi |
| 13622 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 13623 | if test -n "$DLLWRAP"; then |
| 13624 | echo "$as_me:$LINENO: result: $DLLWRAP" >&5 |
| 13625 | echo "${ECHO_T}$DLLWRAP" >&6 |
| 13626 | else |
| 13627 | echo "$as_me:$LINENO: result: no" >&5 |
| 13628 | echo "${ECHO_T}no" >&6 |
| 13629 | fi |
| 13630 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 13631 | fi |
| 13632 | if test -z "$ac_cv_prog_DLLWRAP"; then |
| 13633 | ac_ct_DLLWRAP=$DLLWRAP |
| 13634 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 13635 | set dummy dllwrap; ac_word=$2 |
| 13636 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13637 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13638 | if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then |
| 13639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13640 | else |
| 13641 | if test -n "$ac_ct_DLLWRAP"; then |
| 13642 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 13643 | else |
| 13644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13645 | for as_dir in $PATH |
| 13646 | do |
| 13647 | IFS=$as_save_IFS |
| 13648 | test -z "$as_dir" && as_dir=. |
| 13649 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13650 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13651 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
| 13652 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13653 | break 2 |
| 13654 | fi |
| 13655 | done |
| 13656 | done |
| 13657 | |
| 13658 | test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false" |
| 13659 | fi |
| 13660 | fi |
| 13661 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 13662 | if test -n "$ac_ct_DLLWRAP"; then |
| 13663 | echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5 |
| 13664 | echo "${ECHO_T}$ac_ct_DLLWRAP" >&6 |
| 13665 | else |
| 13666 | echo "$as_me:$LINENO: result: no" >&5 |
| 13667 | echo "${ECHO_T}no" >&6 |
| 13668 | fi |
| 13669 | |
| 13670 | DLLWRAP=$ac_ct_DLLWRAP |
| 13671 | else |
| 13672 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 13673 | fi |
| 13674 | |
| 13675 | if test "$DLLWRAP" = "false"; then |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13676 | LIBEXT="a" |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 13677 | else |
| 13678 | LIBEXT="dll" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13679 | fi |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 13680 | IMPLIBEXT="a" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13681 | ;; |
| 13682 | *) |
| 13683 | |
| 13684 | for ac_header in dlfcn.h |
| 13685 | do |
| 13686 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13687 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13688 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13689 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13690 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13692 | fi |
| 13693 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13694 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13695 | else |
| 13696 | # Is the header compilable? |
| 13697 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 13698 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 13699 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13700 | /* confdefs.h. */ |
| 13701 | _ACEOF |
| 13702 | cat confdefs.h >>conftest.$ac_ext |
| 13703 | cat >>conftest.$ac_ext <<_ACEOF |
| 13704 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13705 | $ac_includes_default |
| 13706 | #include <$ac_header> |
| 13707 | _ACEOF |
| 13708 | rm -f conftest.$ac_objext |
| 13709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13710 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13711 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13713 | rm -f conftest.er1 |
| 13714 | cat conftest.err >&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13716 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13717 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13719 | (eval $ac_try) 2>&5 |
| 13720 | ac_status=$? |
| 13721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13722 | (exit $ac_status); }; } && |
| 13723 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13725 | (eval $ac_try) 2>&5 |
| 13726 | ac_status=$? |
| 13727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13728 | (exit $ac_status); }; }; then |
| 13729 | ac_header_compiler=yes |
| 13730 | else |
| 13731 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13733 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13734 | ac_header_compiler=no |
| 13735 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13737 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13738 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 13739 | |
| 13740 | # Is the header present? |
| 13741 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 13742 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 13743 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13744 | /* confdefs.h. */ |
| 13745 | _ACEOF |
| 13746 | cat confdefs.h >>conftest.$ac_ext |
| 13747 | cat >>conftest.$ac_ext <<_ACEOF |
| 13748 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13749 | #include <$ac_header> |
| 13750 | _ACEOF |
| 13751 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 13752 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13753 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13754 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13755 | rm -f conftest.er1 |
| 13756 | cat conftest.err >&5 |
| 13757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13758 | (exit $ac_status); } >/dev/null; then |
| 13759 | if test -s conftest.err; then |
| 13760 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13761 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13762 | else |
| 13763 | ac_cpp_err= |
| 13764 | fi |
| 13765 | else |
| 13766 | ac_cpp_err=yes |
| 13767 | fi |
| 13768 | if test -z "$ac_cpp_err"; then |
| 13769 | ac_header_preproc=yes |
| 13770 | else |
| 13771 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13773 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13774 | ac_header_preproc=no |
| 13775 | fi |
| 13776 | rm -f conftest.err conftest.$ac_ext |
| 13777 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13778 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13779 | |
| 13780 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13781 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13782 | yes:no: ) |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13783 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13784 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13785 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 13786 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 13787 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13788 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13789 | no:yes:* ) |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13790 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 13791 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13792 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 13793 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 13794 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 13795 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 13796 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 13797 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13798 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13799 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13800 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 13801 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13802 | ( |
| 13803 | cat <<\_ASBOX |
| 13804 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13805 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13806 | ## ------------------------------------ ## |
| 13807 | _ASBOX |
| 13808 | ) | |
| 13809 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13810 | ;; |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13811 | esac |
| 13812 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13813 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13814 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13816 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13817 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13818 | fi |
| 13819 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13820 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13821 | |
| 13822 | fi |
| 13823 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13824 | cat >>confdefs.h <<_ACEOF |
| 13825 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13826 | _ACEOF |
| 13827 | |
| 13828 | for ac_func in dlopen |
| 13829 | do |
| 13830 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13831 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13832 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13833 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13835 | else |
| 13836 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13837 | /* confdefs.h. */ |
| 13838 | _ACEOF |
| 13839 | cat confdefs.h >>conftest.$ac_ext |
| 13840 | cat >>conftest.$ac_ext <<_ACEOF |
| 13841 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13842 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13843 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13844 | #define $ac_func innocuous_$ac_func |
| 13845 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13846 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13847 | which can conflict with char $ac_func (); below. |
| 13848 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13849 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13850 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13851 | #ifdef __STDC__ |
| 13852 | # include <limits.h> |
| 13853 | #else |
| 13854 | # include <assert.h> |
| 13855 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13856 | |
| 13857 | #undef $ac_func |
| 13858 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13859 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13860 | #ifdef __cplusplus |
| 13861 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13862 | { |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13863 | #endif |
| 13864 | /* We use char because int might match the return type of a gcc2 |
| 13865 | builtin and then its argument prototype would still apply. */ |
| 13866 | char $ac_func (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13867 | /* The GNU C library defines this for functions which it implements |
| 13868 | to always fail with ENOSYS. Some functions are actually named |
| 13869 | something starting with __ and the normal name is an alias. */ |
| 13870 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13871 | choke me |
| 13872 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13873 | char (*f) () = $ac_func; |
| 13874 | #endif |
| 13875 | #ifdef __cplusplus |
| 13876 | } |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13877 | #endif |
| 13878 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13879 | int |
| 13880 | main () |
| 13881 | { |
| 13882 | return f != $ac_func; |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13883 | ; |
| 13884 | return 0; |
| 13885 | } |
| 13886 | _ACEOF |
| 13887 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13889 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13890 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13891 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13892 | rm -f conftest.er1 |
| 13893 | cat conftest.err >&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13895 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13896 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13898 | (eval $ac_try) 2>&5 |
| 13899 | ac_status=$? |
| 13900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13901 | (exit $ac_status); }; } && |
| 13902 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13904 | (eval $ac_try) 2>&5 |
| 13905 | ac_status=$? |
| 13906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13907 | (exit $ac_status); }; }; then |
| 13908 | eval "$as_ac_var=yes" |
| 13909 | else |
| 13910 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13912 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13913 | eval "$as_ac_var=no" |
| 13914 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13915 | rm -f conftest.err conftest.$ac_objext \ |
| 13916 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13917 | fi |
| 13918 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13919 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13920 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13921 | cat >>confdefs.h <<_ACEOF |
| 13922 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13923 | _ACEOF |
| 13924 | |
| 13925 | else |
| 13926 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 13927 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 13928 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 13929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13930 | else |
| 13931 | ac_check_lib_save_LIBS=$LIBS |
| 13932 | LIBS="-ldl $LIBS" |
| 13933 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13934 | /* confdefs.h. */ |
| 13935 | _ACEOF |
| 13936 | cat confdefs.h >>conftest.$ac_ext |
| 13937 | cat >>conftest.$ac_ext <<_ACEOF |
| 13938 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13939 | |
| 13940 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13941 | #ifdef __cplusplus |
| 13942 | extern "C" |
| 13943 | #endif |
| 13944 | /* We use char because int might match the return type of a gcc2 |
| 13945 | builtin and then its argument prototype would still apply. */ |
| 13946 | char dlopen (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13947 | int |
| 13948 | main () |
| 13949 | { |
| 13950 | dlopen (); |
| 13951 | ; |
| 13952 | return 0; |
| 13953 | } |
| 13954 | _ACEOF |
| 13955 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13957 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13958 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13960 | rm -f conftest.er1 |
| 13961 | cat conftest.err >&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13963 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13964 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13966 | (eval $ac_try) 2>&5 |
| 13967 | ac_status=$? |
| 13968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13969 | (exit $ac_status); }; } && |
| 13970 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13972 | (eval $ac_try) 2>&5 |
| 13973 | ac_status=$? |
| 13974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13975 | (exit $ac_status); }; }; then |
| 13976 | ac_cv_lib_dl_dlopen=yes |
| 13977 | else |
| 13978 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13980 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13981 | ac_cv_lib_dl_dlopen=no |
| 13982 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13983 | rm -f conftest.err conftest.$ac_objext \ |
| 13984 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13985 | LIBS=$ac_check_lib_save_LIBS |
| 13986 | fi |
| 13987 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13988 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 13989 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 13990 | |
| 13991 | cat >>confdefs.h <<\_ACEOF |
| 13992 | #define HAVE_DLOPEN 1 |
| 13993 | _ACEOF |
| 13994 | |
| 13995 | DLLIBS="-ldl" |
| 13996 | else |
| 13997 | LIBEXT="a" |
| 13998 | fi |
| 13999 | |
| 14000 | fi |
| 14001 | done |
| 14002 | |
| 14003 | else |
| 14004 | LIBEXT="a" |
| 14005 | fi |
| 14006 | |
| 14007 | done |
| 14008 | |
| 14009 | |
| 14010 | if test "$LIBEXT" = "so" |
| 14011 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 14012 | DLLFLAGS="$DLLFLAGS -fPIC" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14013 | DLLEXT=".so" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14014 | 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] | 14015 | echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6 |
| 14016 | if test "${ac_cv_c_dll_gnuelf+set}" = set; then |
| 14017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 14018 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14019 | ac_wine_try_cflags_saved=$CFLAGS |
| 14020 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic" |
| 14021 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14022 | /* confdefs.h. */ |
| 14023 | _ACEOF |
| 14024 | cat confdefs.h >>conftest.$ac_ext |
| 14025 | cat >>conftest.$ac_ext <<_ACEOF |
| 14026 | /* end confdefs.h. */ |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 14027 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14028 | int |
| 14029 | main () |
| 14030 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14031 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14032 | ; |
| 14033 | return 0; |
| 14034 | } |
| 14035 | _ACEOF |
| 14036 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14038 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14039 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14041 | rm -f conftest.er1 |
| 14042 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14044 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14045 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14047 | (eval $ac_try) 2>&5 |
| 14048 | ac_status=$? |
| 14049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14050 | (exit $ac_status); }; } && |
| 14051 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14053 | (eval $ac_try) 2>&5 |
| 14054 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14056 | (exit $ac_status); }; }; then |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 14057 | ac_cv_c_dll_gnuelf="yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 14058 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14059 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14061 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14062 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 14063 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14064 | rm -f conftest.err conftest.$ac_objext \ |
| 14065 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14066 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14067 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14068 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14069 | echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14070 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
| 14071 | then |
| 14072 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14073 | LDDLLFLAGS="-shared -Wl,-Bsymbolic" |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 14074 | echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5 |
| 14075 | echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6 |
| 14076 | if test "${ac_cv_c_dll_zdefs+set}" = set; then |
| 14077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14078 | else |
| 14079 | ac_wine_try_cflags_saved=$CFLAGS |
| 14080 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs" |
| 14081 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14082 | /* confdefs.h. */ |
| 14083 | _ACEOF |
| 14084 | cat confdefs.h >>conftest.$ac_ext |
| 14085 | cat >>conftest.$ac_ext <<_ACEOF |
| 14086 | /* end confdefs.h. */ |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 14087 | |
| 14088 | int |
| 14089 | main () |
| 14090 | { |
| 14091 | |
| 14092 | ; |
| 14093 | return 0; |
| 14094 | } |
| 14095 | _ACEOF |
| 14096 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14098 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 14099 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14101 | rm -f conftest.er1 |
| 14102 | cat conftest.err >&5 |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 14103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14104 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14105 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14107 | (eval $ac_try) 2>&5 |
| 14108 | ac_status=$? |
| 14109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14110 | (exit $ac_status); }; } && |
| 14111 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 14112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14113 | (eval $ac_try) 2>&5 |
| 14114 | ac_status=$? |
| 14115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14116 | (exit $ac_status); }; }; then |
| 14117 | ac_cv_c_dll_zdefs="yes" |
| 14118 | else |
| 14119 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14121 | |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 14122 | ac_cv_c_dll_zdefs="no" |
| 14123 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14124 | rm -f conftest.err conftest.$ac_objext \ |
| 14125 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 14126 | CFLAGS=$ac_wine_try_cflags_saved |
| 14127 | fi |
| 14128 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5 |
| 14129 | echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6 |
| 14130 | if test "$ac_cv_c_dll_zdefs" = "yes" |
| 14131 | then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14132 | LDDLLFLAGS="$LDDLLFLAGS,-z,defs" |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 14133 | fi |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 14134 | |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 14135 | echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5 |
| 14136 | echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6 |
| 14137 | if test "${ac_cv_c_dll_init_fini+set}" = set; then |
| 14138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14139 | else |
| 14140 | ac_wine_try_cflags_saved=$CFLAGS |
| 14141 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" |
| 14142 | cat >conftest.$ac_ext <<_ACEOF |
| 14143 | /* confdefs.h. */ |
| 14144 | _ACEOF |
| 14145 | cat confdefs.h >>conftest.$ac_ext |
| 14146 | cat >>conftest.$ac_ext <<_ACEOF |
| 14147 | /* end confdefs.h. */ |
| 14148 | |
| 14149 | int |
| 14150 | main () |
| 14151 | { |
| 14152 | |
| 14153 | ; |
| 14154 | return 0; |
| 14155 | } |
| 14156 | _ACEOF |
| 14157 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14159 | (eval $ac_link) 2>conftest.er1 |
| 14160 | ac_status=$? |
| 14161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14162 | rm -f conftest.er1 |
| 14163 | cat conftest.err >&5 |
| 14164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14165 | (exit $ac_status); } && |
| 14166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14168 | (eval $ac_try) 2>&5 |
| 14169 | ac_status=$? |
| 14170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14171 | (exit $ac_status); }; } && |
| 14172 | { ac_try='test -s conftest$ac_exeext' |
| 14173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14174 | (eval $ac_try) 2>&5 |
| 14175 | ac_status=$? |
| 14176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14177 | (exit $ac_status); }; }; then |
| 14178 | ac_cv_c_dll_init_fini="yes" |
| 14179 | else |
| 14180 | echo "$as_me: failed program was:" >&5 |
| 14181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14182 | |
| 14183 | ac_cv_c_dll_init_fini="no" |
| 14184 | fi |
| 14185 | rm -f conftest.err conftest.$ac_objext \ |
| 14186 | conftest$ac_exeext conftest.$ac_ext |
| 14187 | CFLAGS=$ac_wine_try_cflags_saved |
| 14188 | fi |
| 14189 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5 |
| 14190 | echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6 |
| 14191 | if test "$ac_cv_c_dll_init_fini" = "yes" |
| 14192 | then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14193 | LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini" |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 14194 | fi |
| 14195 | |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 14196 | echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5 |
| 14197 | echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6 |
| 14198 | if test "${ac_cv_c_ld_version_scripts+set}" = set; then |
| 14199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14200 | else |
| 14201 | echo '{ global: *; };' >conftest.map |
| 14202 | ac_wine_try_cflags_saved=$CFLAGS |
| 14203 | CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map" |
| 14204 | cat >conftest.$ac_ext <<_ACEOF |
| 14205 | /* confdefs.h. */ |
| 14206 | _ACEOF |
| 14207 | cat confdefs.h >>conftest.$ac_ext |
| 14208 | cat >>conftest.$ac_ext <<_ACEOF |
| 14209 | /* end confdefs.h. */ |
| 14210 | |
| 14211 | int |
| 14212 | main () |
| 14213 | { |
| 14214 | |
| 14215 | ; |
| 14216 | return 0; |
| 14217 | } |
| 14218 | _ACEOF |
| 14219 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14221 | (eval $ac_link) 2>conftest.er1 |
| 14222 | ac_status=$? |
| 14223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14224 | rm -f conftest.er1 |
| 14225 | cat conftest.err >&5 |
| 14226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14227 | (exit $ac_status); } && |
| 14228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14230 | (eval $ac_try) 2>&5 |
| 14231 | ac_status=$? |
| 14232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14233 | (exit $ac_status); }; } && |
| 14234 | { ac_try='test -s conftest$ac_exeext' |
| 14235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14236 | (eval $ac_try) 2>&5 |
| 14237 | ac_status=$? |
| 14238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14239 | (exit $ac_status); }; }; then |
| 14240 | ac_cv_c_ld_version_scripts="yes" |
| 14241 | else |
| 14242 | echo "$as_me: failed program was:" >&5 |
| 14243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14244 | |
| 14245 | ac_cv_c_ld_version_scripts="no" |
| 14246 | fi |
| 14247 | rm -f conftest.err conftest.$ac_objext \ |
| 14248 | conftest$ac_exeext conftest.$ac_ext |
| 14249 | CFLAGS=$ac_wine_try_cflags_saved |
| 14250 | rm -f conftest.map |
| 14251 | fi |
| 14252 | echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5 |
| 14253 | echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6 |
| 14254 | if test "$ac_cv_c_ld_version_scripts" = "yes" |
| 14255 | then |
| 14256 | LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)" |
| 14257 | fi |
| 14258 | |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14259 | echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5 |
| 14260 | echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6 |
| 14261 | if test "${ac_cv_c_export_dynamic+set}" = set; then |
| 14262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14263 | else |
| 14264 | ac_wine_try_cflags_saved=$CFLAGS |
| 14265 | CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic" |
| 14266 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14267 | /* confdefs.h. */ |
| 14268 | _ACEOF |
| 14269 | cat confdefs.h >>conftest.$ac_ext |
| 14270 | cat >>conftest.$ac_ext <<_ACEOF |
| 14271 | /* end confdefs.h. */ |
| 14272 | |
| 14273 | int |
| 14274 | main () |
| 14275 | { |
| 14276 | |
| 14277 | ; |
| 14278 | return 0; |
| 14279 | } |
| 14280 | _ACEOF |
| 14281 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14283 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14284 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14286 | rm -f conftest.er1 |
| 14287 | cat conftest.err >&5 |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14289 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14290 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14292 | (eval $ac_try) 2>&5 |
| 14293 | ac_status=$? |
| 14294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14295 | (exit $ac_status); }; } && |
| 14296 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14298 | (eval $ac_try) 2>&5 |
| 14299 | ac_status=$? |
| 14300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14301 | (exit $ac_status); }; }; then |
| 14302 | ac_cv_c_export_dynamic="yes" |
| 14303 | else |
| 14304 | echo "$as_me: failed program was:" >&5 |
| 14305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14306 | |
| 14307 | ac_cv_c_export_dynamic="no" |
| 14308 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14309 | rm -f conftest.err conftest.$ac_objext \ |
| 14310 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14311 | CFLAGS=$ac_wine_try_cflags_saved |
| 14312 | fi |
| 14313 | echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5 |
| 14314 | echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6 |
| 14315 | if test "$ac_cv_c_export_dynamic" = "yes" |
| 14316 | then |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14317 | LDEXECFLAGS="-Wl,--export-dynamic" |
| 14318 | |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14319 | fi |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14320 | |
| 14321 | case $host_cpu in |
| 14322 | *i[3456789]86*) |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14323 | echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5 |
| 14324 | echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14325 | if test "${ac_cv_ld_reloc_exec+set}" = set; then |
| 14326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14327 | else |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14328 | ac_wine_try_cflags_saved=$CFLAGS |
| 14329 | CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400" |
| 14330 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14331 | /* confdefs.h. */ |
| 14332 | _ACEOF |
| 14333 | cat confdefs.h >>conftest.$ac_ext |
| 14334 | cat >>conftest.$ac_ext <<_ACEOF |
| 14335 | /* end confdefs.h. */ |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14336 | |
| 14337 | int |
| 14338 | main () |
| 14339 | { |
| 14340 | |
| 14341 | ; |
| 14342 | return 0; |
| 14343 | } |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14344 | _ACEOF |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14345 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14347 | (eval $ac_link) 2>conftest.er1 |
| 14348 | ac_status=$? |
| 14349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14350 | rm -f conftest.er1 |
| 14351 | cat conftest.err >&5 |
| 14352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14353 | (exit $ac_status); } && |
| 14354 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14356 | (eval $ac_try) 2>&5 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14357 | ac_status=$? |
| 14358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14359 | (exit $ac_status); }; } && |
| 14360 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14362 | (eval $ac_try) 2>&5 |
| 14363 | ac_status=$? |
| 14364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14365 | (exit $ac_status); }; }; then |
| 14366 | ac_cv_ld_reloc_exec="yes" |
| 14367 | else |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14368 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14370 | |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14371 | ac_cv_ld_reloc_exec="no" |
| 14372 | fi |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14373 | rm -f conftest.err conftest.$ac_objext \ |
| 14374 | conftest$ac_exeext conftest.$ac_ext |
| 14375 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14376 | fi |
| 14377 | echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5 |
| 14378 | echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6 |
| 14379 | if test "$ac_cv_ld_reloc_exec" = "yes" |
| 14380 | then |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14381 | LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400" |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14382 | fi |
| 14383 | ;; |
| 14384 | esac |
| 14385 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14386 | else |
| 14387 | 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] | 14388 | echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6 |
| 14389 | if test "${ac_cv_c_dll_unixware+set}" = set; then |
| 14390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 14391 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14392 | ac_wine_try_cflags_saved=$CFLAGS |
| 14393 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
| 14394 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14395 | /* confdefs.h. */ |
| 14396 | _ACEOF |
| 14397 | cat confdefs.h >>conftest.$ac_ext |
| 14398 | cat >>conftest.$ac_ext <<_ACEOF |
| 14399 | /* end confdefs.h. */ |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 14400 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14401 | int |
| 14402 | main () |
| 14403 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14404 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14405 | ; |
| 14406 | return 0; |
| 14407 | } |
| 14408 | _ACEOF |
| 14409 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14411 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14412 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14413 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14414 | rm -f conftest.er1 |
| 14415 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14417 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14420 | (eval $ac_try) 2>&5 |
| 14421 | ac_status=$? |
| 14422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14423 | (exit $ac_status); }; } && |
| 14424 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14426 | (eval $ac_try) 2>&5 |
| 14427 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14429 | (exit $ac_status); }; }; then |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 14430 | ac_cv_c_dll_unixware="yes" |
| 14431 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14432 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14434 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14435 | ac_cv_c_dll_unixware="no" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 14436 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14437 | rm -f conftest.err conftest.$ac_objext \ |
| 14438 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14439 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14440 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14441 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14442 | echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14443 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 14444 | then |
| 14445 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14446 | LDDLLFLAGS="-Wl,-G,-B,symbolic" |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14447 | |
| 14448 | else |
| 14449 | echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5 |
| 14450 | echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6 |
| 14451 | if test "${ac_cv_c_dll_macho+set}" = set; then |
| 14452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14453 | else |
| 14454 | ac_wine_try_cflags_saved=$CFLAGS |
| 14455 | CFLAGS="$CFLAGS -bundle" |
| 14456 | cat >conftest.$ac_ext <<_ACEOF |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14457 | /* confdefs.h. */ |
| 14458 | _ACEOF |
| 14459 | cat confdefs.h >>conftest.$ac_ext |
| 14460 | cat >>conftest.$ac_ext <<_ACEOF |
| 14461 | /* end confdefs.h. */ |
| 14462 | |
| 14463 | int |
| 14464 | main () |
| 14465 | { |
| 14466 | |
| 14467 | ; |
| 14468 | return 0; |
| 14469 | } |
| 14470 | _ACEOF |
| 14471 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14473 | (eval $ac_link) 2>conftest.er1 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14474 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14476 | rm -f conftest.er1 |
| 14477 | cat conftest.err >&5 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14479 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14480 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14482 | (eval $ac_try) 2>&5 |
| 14483 | ac_status=$? |
| 14484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14485 | (exit $ac_status); }; } && |
| 14486 | { ac_try='test -s conftest$ac_exeext' |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14488 | (eval $ac_try) 2>&5 |
| 14489 | ac_status=$? |
| 14490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14491 | (exit $ac_status); }; }; then |
| 14492 | ac_cv_c_dll_macho="yes" |
| 14493 | else |
| 14494 | echo "$as_me: failed program was:" >&5 |
| 14495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14496 | |
| 14497 | ac_cv_c_dll_macho="no" |
| 14498 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14499 | rm -f conftest.err conftest.$ac_objext \ |
| 14500 | conftest$ac_exeext conftest.$ac_ext |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14501 | CFLAGS=$ac_wine_try_cflags_saved |
| 14502 | fi |
| 14503 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5 |
| 14504 | echo "${ECHO_T}$ac_cv_c_dll_macho" >&6 |
| 14505 | if test "$ac_cv_c_dll_macho" = "yes" |
| 14506 | then |
| 14507 | LIBEXT="dylib" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14508 | LDDLLFLAGS="-bundle -flat_namespace -undefined suppress" |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14509 | LDSHARED="\$(CC) -dynamiclib" |
| 14510 | CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp" |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14511 | STRIP="$STRIP -u -r" |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14512 | fi |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14513 | fi |
| 14514 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14515 | fi |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 14516 | |
| 14517 | CROSSTEST="" |
| 14518 | |
| 14519 | if test "$cross_compiling" = "no" |
| 14520 | then |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 14521 | for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 14522 | do |
| 14523 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14524 | set dummy $ac_prog; ac_word=$2 |
| 14525 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14526 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14527 | if test "${ac_cv_prog_CROSSCC+set}" = set; then |
| 14528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14529 | else |
| 14530 | if test -n "$CROSSCC"; then |
| 14531 | ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test. |
| 14532 | else |
| 14533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14534 | for as_dir in $PATH |
| 14535 | do |
| 14536 | IFS=$as_save_IFS |
| 14537 | test -z "$as_dir" && as_dir=. |
| 14538 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14539 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14540 | ac_cv_prog_CROSSCC="$ac_prog" |
| 14541 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14542 | break 2 |
| 14543 | fi |
| 14544 | done |
| 14545 | done |
| 14546 | |
| 14547 | fi |
| 14548 | fi |
| 14549 | CROSSCC=$ac_cv_prog_CROSSCC |
| 14550 | if test -n "$CROSSCC"; then |
| 14551 | echo "$as_me:$LINENO: result: $CROSSCC" >&5 |
| 14552 | echo "${ECHO_T}$CROSSCC" >&6 |
| 14553 | else |
| 14554 | echo "$as_me:$LINENO: result: no" >&5 |
| 14555 | echo "${ECHO_T}no" >&6 |
| 14556 | fi |
| 14557 | |
| 14558 | test -n "$CROSSCC" && break |
| 14559 | done |
| 14560 | test -n "$CROSSCC" || CROSSCC="false" |
| 14561 | |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 14562 | for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 14563 | do |
| 14564 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14565 | set dummy $ac_prog; ac_word=$2 |
| 14566 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14568 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 14569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14570 | else |
| 14571 | if test -n "$DLLTOOL"; then |
| 14572 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 14573 | else |
| 14574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14575 | for as_dir in $PATH |
| 14576 | do |
| 14577 | IFS=$as_save_IFS |
| 14578 | test -z "$as_dir" && as_dir=. |
| 14579 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14580 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14581 | ac_cv_prog_DLLTOOL="$ac_prog" |
| 14582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14583 | break 2 |
| 14584 | fi |
| 14585 | done |
| 14586 | done |
| 14587 | |
| 14588 | fi |
| 14589 | fi |
| 14590 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 14591 | if test -n "$DLLTOOL"; then |
| 14592 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 14593 | echo "${ECHO_T}$DLLTOOL" >&6 |
| 14594 | else |
| 14595 | echo "$as_me:$LINENO: result: no" >&5 |
| 14596 | echo "${ECHO_T}no" >&6 |
| 14597 | fi |
| 14598 | |
| 14599 | test -n "$DLLTOOL" && break |
| 14600 | done |
| 14601 | test -n "$DLLTOOL" || DLLTOOL="false" |
| 14602 | |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 14603 | for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 14604 | do |
| 14605 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14606 | set dummy $ac_prog; ac_word=$2 |
| 14607 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14608 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14609 | if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then |
| 14610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14611 | else |
| 14612 | if test -n "$CROSSWINDRES"; then |
| 14613 | ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test. |
| 14614 | else |
| 14615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14616 | for as_dir in $PATH |
| 14617 | do |
| 14618 | IFS=$as_save_IFS |
| 14619 | test -z "$as_dir" && as_dir=. |
| 14620 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14621 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14622 | ac_cv_prog_CROSSWINDRES="$ac_prog" |
| 14623 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14624 | break 2 |
| 14625 | fi |
| 14626 | done |
| 14627 | done |
| 14628 | |
| 14629 | fi |
| 14630 | fi |
| 14631 | CROSSWINDRES=$ac_cv_prog_CROSSWINDRES |
| 14632 | if test -n "$CROSSWINDRES"; then |
| 14633 | echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5 |
| 14634 | echo "${ECHO_T}$CROSSWINDRES" >&6 |
| 14635 | else |
| 14636 | echo "$as_me:$LINENO: result: no" >&5 |
| 14637 | echo "${ECHO_T}no" >&6 |
| 14638 | fi |
| 14639 | |
| 14640 | test -n "$CROSSWINDRES" && break |
| 14641 | done |
| 14642 | test -n "$CROSSWINDRES" || CROSSWINDRES="false" |
| 14643 | |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 14644 | if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi |
| 14645 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14646 | ;; |
| 14647 | esac |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 14648 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 14649 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14650 | { { 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] | 14651 | It is currently not possible to build Wine without shared library |
| 14652 | (.so) support to allow transparent switch between .so and .dll files. |
| 14653 | If you are using Linux, you will need a newer binutils. |
| 14654 | " >&5 |
| 14655 | echo "$as_me: error: could not find a way to build shared libraries. |
| 14656 | It is currently not possible to build Wine without shared library |
| 14657 | (.so) support to allow transparent switch between .so and .dll files. |
| 14658 | If you are using Linux, you will need a newer binutils. |
| 14659 | " >&2;} |
| 14660 | { (exit 1); exit 1; }; } |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 14661 | fi |
| 14662 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14663 | case $build_os in |
| 14664 | cygwin*|mingw32*) |
Alexandre Julliard | 7ab9a71 | 2003-03-21 05:06:48 +0000 | [diff] [blame] | 14665 | LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14666 | ;; |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14667 | darwin*|macosx*) |
| 14668 | LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\"" |
| 14669 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14670 | *) |
Alexandre Julliard | 7ab9a71 | 2003-03-21 05:06:48 +0000 | [diff] [blame] | 14671 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14672 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14673 | esac |
| 14674 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14675 | case $host_os in |
| 14676 | mingw32*) |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 14677 | CRTLIBS="-lmsvcrt" |
| 14678 | ;; |
| 14679 | esac |
| 14680 | |
| 14681 | case $host_os in |
| 14682 | linux*) |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14683 | WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader" |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 14684 | |
Alexandre Julliard | a628c13 | 2003-11-12 03:28:21 +0000 | [diff] [blame] | 14685 | MAIN_BINARY="wine-glibc" |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 14686 | |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 14687 | ;; |
Emmanuel Maillard | 3bc8d2e | 2004-07-19 20:11:10 +0000 | [diff] [blame] | 14688 | darwin*) |
| 14689 | WINE_BINARIES="wine-pthread" |
| 14690 | |
| 14691 | MAIN_BINARY="wine-pthread" |
| 14692 | |
| 14693 | ;; |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 14694 | *) |
| 14695 | WINE_BINARIES="wine-kthread" |
| 14696 | |
| 14697 | MAIN_BINARY="wine-kthread" |
| 14698 | |
| 14699 | ;; |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14700 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14701 | |
| 14702 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14703 | if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14704 | then |
| 14705 | # Extract the first word of "ldd", so it can be a program name with args. |
| 14706 | set dummy ldd; ac_word=$2 |
| 14707 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14708 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14709 | if test "${ac_cv_path_LDD+set}" = set; then |
| 14710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14711 | else |
| 14712 | case $LDD in |
| 14713 | [\\/]* | ?:[\\/]*) |
| 14714 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. |
| 14715 | ;; |
| 14716 | *) |
| 14717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14718 | as_dummy="/sbin:/usr/sbin:$PATH" |
| 14719 | for as_dir in $as_dummy |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14720 | do |
| 14721 | IFS=$as_save_IFS |
| 14722 | test -z "$as_dir" && as_dir=. |
| 14723 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14724 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14725 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" |
| 14726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14727 | break 2 |
| 14728 | fi |
| 14729 | done |
| 14730 | done |
| 14731 | |
| 14732 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" |
| 14733 | ;; |
| 14734 | esac |
| 14735 | fi |
| 14736 | LDD=$ac_cv_path_LDD |
| 14737 | |
| 14738 | if test -n "$LDD"; then |
| 14739 | echo "$as_me:$LINENO: result: $LDD" >&5 |
| 14740 | echo "${ECHO_T}$LDD" >&6 |
| 14741 | else |
| 14742 | echo "$as_me:$LINENO: result: no" >&5 |
| 14743 | echo "${ECHO_T}no" >&6 |
| 14744 | fi |
| 14745 | |
| 14746 | |
| 14747 | echo "$as_me:$LINENO: checking for -lX11 soname" >&5 |
| 14748 | echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6 |
| 14749 | if test "${ac_cv_lib_soname_X11+set}" = set; then |
| 14750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14751 | else |
| 14752 | ac_get_soname_save_LIBS=$LIBS |
| 14753 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 14754 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14755 | /* confdefs.h. */ |
| 14756 | _ACEOF |
| 14757 | cat confdefs.h >>conftest.$ac_ext |
| 14758 | cat >>conftest.$ac_ext <<_ACEOF |
| 14759 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14760 | |
| 14761 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14762 | #ifdef __cplusplus |
| 14763 | extern "C" |
| 14764 | #endif |
| 14765 | /* We use char because int might match the return type of a gcc2 |
| 14766 | builtin and then its argument prototype would still apply. */ |
| 14767 | char XCreateWindow (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14768 | int |
| 14769 | main () |
| 14770 | { |
| 14771 | XCreateWindow (); |
| 14772 | ; |
| 14773 | return 0; |
| 14774 | } |
| 14775 | _ACEOF |
| 14776 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14778 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14779 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14781 | rm -f conftest.er1 |
| 14782 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14784 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14785 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14787 | (eval $ac_try) 2>&5 |
| 14788 | ac_status=$? |
| 14789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14790 | (exit $ac_status); }; } && |
| 14791 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14793 | (eval $ac_try) 2>&5 |
| 14794 | ac_status=$? |
| 14795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14796 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14797 | ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14798 | if test "x$ac_cv_lib_soname_X11" = "x" |
| 14799 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14800 | ac_cv_lib_soname_X11="libX11.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14801 | fi |
| 14802 | else |
| 14803 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14805 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14806 | ac_cv_lib_soname_X11="libX11.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14807 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14808 | rm -f conftest.err conftest.$ac_objext \ |
| 14809 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14810 | LIBS=$ac_get_soname_save_LIBS |
| 14811 | fi |
| 14812 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5 |
| 14813 | echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6 |
| 14814 | if test "x$ac_cv_lib_soname_X11" != xNONE |
| 14815 | then |
| 14816 | cat >>confdefs.h <<_ACEOF |
| 14817 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" |
| 14818 | _ACEOF |
| 14819 | fi |
| 14820 | |
| 14821 | echo "$as_me:$LINENO: checking for -lXext soname" >&5 |
| 14822 | echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6 |
| 14823 | if test "${ac_cv_lib_soname_Xext+set}" = set; then |
| 14824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14825 | else |
| 14826 | ac_get_soname_save_LIBS=$LIBS |
| 14827 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 14828 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14829 | /* confdefs.h. */ |
| 14830 | _ACEOF |
| 14831 | cat confdefs.h >>conftest.$ac_ext |
| 14832 | cat >>conftest.$ac_ext <<_ACEOF |
| 14833 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14834 | |
| 14835 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14836 | #ifdef __cplusplus |
| 14837 | extern "C" |
| 14838 | #endif |
| 14839 | /* We use char because int might match the return type of a gcc2 |
| 14840 | builtin and then its argument prototype would still apply. */ |
| 14841 | char XextCreateExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14842 | int |
| 14843 | main () |
| 14844 | { |
| 14845 | XextCreateExtension (); |
| 14846 | ; |
| 14847 | return 0; |
| 14848 | } |
| 14849 | _ACEOF |
| 14850 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14852 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14853 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14855 | rm -f conftest.er1 |
| 14856 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14858 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14859 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14861 | (eval $ac_try) 2>&5 |
| 14862 | ac_status=$? |
| 14863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14864 | (exit $ac_status); }; } && |
| 14865 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14867 | (eval $ac_try) 2>&5 |
| 14868 | ac_status=$? |
| 14869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14870 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14871 | ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14872 | if test "x$ac_cv_lib_soname_Xext" = "x" |
| 14873 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14874 | ac_cv_lib_soname_Xext="libXext.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14875 | fi |
| 14876 | else |
| 14877 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14879 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14880 | ac_cv_lib_soname_Xext="libXext.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14881 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14882 | rm -f conftest.err conftest.$ac_objext \ |
| 14883 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14884 | LIBS=$ac_get_soname_save_LIBS |
| 14885 | fi |
| 14886 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5 |
| 14887 | echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6 |
| 14888 | if test "x$ac_cv_lib_soname_Xext" != xNONE |
| 14889 | then |
| 14890 | cat >>confdefs.h <<_ACEOF |
| 14891 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" |
| 14892 | _ACEOF |
| 14893 | fi |
| 14894 | |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 14895 | echo "$as_me:$LINENO: checking for -lXi soname" >&5 |
| 14896 | echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6 |
| 14897 | if test "${ac_cv_lib_soname_Xi+set}" = set; then |
| 14898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14899 | else |
| 14900 | ac_get_soname_save_LIBS=$LIBS |
| 14901 | LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 14902 | cat >conftest.$ac_ext <<_ACEOF |
| 14903 | /* confdefs.h. */ |
| 14904 | _ACEOF |
| 14905 | cat confdefs.h >>conftest.$ac_ext |
| 14906 | cat >>conftest.$ac_ext <<_ACEOF |
| 14907 | /* end confdefs.h. */ |
| 14908 | |
| 14909 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14910 | #ifdef __cplusplus |
| 14911 | extern "C" |
| 14912 | #endif |
| 14913 | /* We use char because int might match the return type of a gcc2 |
| 14914 | builtin and then its argument prototype would still apply. */ |
| 14915 | char XOpenDevice (); |
| 14916 | int |
| 14917 | main () |
| 14918 | { |
| 14919 | XOpenDevice (); |
| 14920 | ; |
| 14921 | return 0; |
| 14922 | } |
| 14923 | _ACEOF |
| 14924 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14926 | (eval $ac_link) 2>conftest.er1 |
| 14927 | ac_status=$? |
| 14928 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14929 | rm -f conftest.er1 |
| 14930 | cat conftest.err >&5 |
| 14931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14932 | (exit $ac_status); } && |
| 14933 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14935 | (eval $ac_try) 2>&5 |
| 14936 | ac_status=$? |
| 14937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14938 | (exit $ac_status); }; } && |
| 14939 | { ac_try='test -s conftest$ac_exeext' |
| 14940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14941 | (eval $ac_try) 2>&5 |
| 14942 | ac_status=$? |
| 14943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14944 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14945 | ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"` |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 14946 | if test "x$ac_cv_lib_soname_Xi" = "x" |
| 14947 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14948 | ac_cv_lib_soname_Xi="libXi.$LIBEXT" |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 14949 | fi |
| 14950 | else |
| 14951 | echo "$as_me: failed program was:" >&5 |
| 14952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14953 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14954 | ac_cv_lib_soname_Xi="libXi.$LIBEXT" |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 14955 | fi |
| 14956 | rm -f conftest.err conftest.$ac_objext \ |
| 14957 | conftest$ac_exeext conftest.$ac_ext |
| 14958 | LIBS=$ac_get_soname_save_LIBS |
| 14959 | fi |
| 14960 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5 |
| 14961 | echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6 |
| 14962 | if test "x$ac_cv_lib_soname_Xi" != xNONE |
| 14963 | then |
| 14964 | cat >>confdefs.h <<_ACEOF |
| 14965 | #define SONAME_LIBXI "$ac_cv_lib_soname_Xi" |
| 14966 | _ACEOF |
| 14967 | fi |
| 14968 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14969 | echo "$as_me:$LINENO: checking for -lXrender soname" >&5 |
| 14970 | echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6 |
| 14971 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then |
| 14972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14973 | else |
| 14974 | ac_get_soname_save_LIBS=$LIBS |
| 14975 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 14976 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14977 | /* confdefs.h. */ |
| 14978 | _ACEOF |
| 14979 | cat confdefs.h >>conftest.$ac_ext |
| 14980 | cat >>conftest.$ac_ext <<_ACEOF |
| 14981 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14982 | |
| 14983 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14984 | #ifdef __cplusplus |
| 14985 | extern "C" |
| 14986 | #endif |
| 14987 | /* We use char because int might match the return type of a gcc2 |
| 14988 | builtin and then its argument prototype would still apply. */ |
| 14989 | char XRenderQueryExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14990 | int |
| 14991 | main () |
| 14992 | { |
| 14993 | XRenderQueryExtension (); |
| 14994 | ; |
| 14995 | return 0; |
| 14996 | } |
| 14997 | _ACEOF |
| 14998 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15000 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15001 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15003 | rm -f conftest.er1 |
| 15004 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15006 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15007 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15009 | (eval $ac_try) 2>&5 |
| 15010 | ac_status=$? |
| 15011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15012 | (exit $ac_status); }; } && |
| 15013 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15015 | (eval $ac_try) 2>&5 |
| 15016 | ac_status=$? |
| 15017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15018 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15019 | ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15020 | if test "x$ac_cv_lib_soname_Xrender" = "x" |
| 15021 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15022 | ac_cv_lib_soname_Xrender="libXrender.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15023 | fi |
| 15024 | else |
| 15025 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15027 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15028 | ac_cv_lib_soname_Xrender="libXrender.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15029 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15030 | rm -f conftest.err conftest.$ac_objext \ |
| 15031 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15032 | LIBS=$ac_get_soname_save_LIBS |
| 15033 | fi |
| 15034 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5 |
| 15035 | echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6 |
| 15036 | if test "x$ac_cv_lib_soname_Xrender" != xNONE |
| 15037 | then |
| 15038 | cat >>confdefs.h <<_ACEOF |
| 15039 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" |
| 15040 | _ACEOF |
| 15041 | fi |
| 15042 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 15043 | echo "$as_me:$LINENO: checking for -lXrandr soname" >&5 |
| 15044 | echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6 |
| 15045 | if test "${ac_cv_lib_soname_Xrandr+set}" = set; then |
| 15046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15047 | else |
| 15048 | ac_get_soname_save_LIBS=$LIBS |
| 15049 | LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 15050 | cat >conftest.$ac_ext <<_ACEOF |
| 15051 | /* confdefs.h. */ |
| 15052 | _ACEOF |
| 15053 | cat confdefs.h >>conftest.$ac_ext |
| 15054 | cat >>conftest.$ac_ext <<_ACEOF |
| 15055 | /* end confdefs.h. */ |
| 15056 | |
| 15057 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15058 | #ifdef __cplusplus |
| 15059 | extern "C" |
| 15060 | #endif |
| 15061 | /* We use char because int might match the return type of a gcc2 |
| 15062 | builtin and then its argument prototype would still apply. */ |
| 15063 | char XRRQueryExtension (); |
| 15064 | int |
| 15065 | main () |
| 15066 | { |
| 15067 | XRRQueryExtension (); |
| 15068 | ; |
| 15069 | return 0; |
| 15070 | } |
| 15071 | _ACEOF |
| 15072 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15073 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15074 | (eval $ac_link) 2>conftest.er1 |
| 15075 | ac_status=$? |
| 15076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15077 | rm -f conftest.er1 |
| 15078 | cat conftest.err >&5 |
| 15079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15080 | (exit $ac_status); } && |
| 15081 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15083 | (eval $ac_try) 2>&5 |
| 15084 | ac_status=$? |
| 15085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15086 | (exit $ac_status); }; } && |
| 15087 | { ac_try='test -s conftest$ac_exeext' |
| 15088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15089 | (eval $ac_try) 2>&5 |
| 15090 | ac_status=$? |
| 15091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15092 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15093 | ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"` |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 15094 | if test "x$ac_cv_lib_soname_Xrandr" = "x" |
| 15095 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15096 | ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT" |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 15097 | fi |
| 15098 | else |
| 15099 | echo "$as_me: failed program was:" >&5 |
| 15100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15101 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15102 | ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT" |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 15103 | fi |
| 15104 | rm -f conftest.err conftest.$ac_objext \ |
| 15105 | conftest$ac_exeext conftest.$ac_ext |
| 15106 | LIBS=$ac_get_soname_save_LIBS |
| 15107 | fi |
| 15108 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5 |
| 15109 | echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6 |
| 15110 | if test "x$ac_cv_lib_soname_Xrandr" != xNONE |
| 15111 | then |
| 15112 | cat >>confdefs.h <<_ACEOF |
| 15113 | #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr" |
| 15114 | _ACEOF |
| 15115 | fi |
| 15116 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15117 | echo "$as_me:$LINENO: checking for -lfreetype soname" >&5 |
| 15118 | echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6 |
| 15119 | if test "${ac_cv_lib_soname_freetype+set}" = set; then |
| 15120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15121 | else |
| 15122 | ac_get_soname_save_LIBS=$LIBS |
| 15123 | LIBS="-lfreetype $X_LIBS $LIBS" |
| 15124 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15125 | /* confdefs.h. */ |
| 15126 | _ACEOF |
| 15127 | cat confdefs.h >>conftest.$ac_ext |
| 15128 | cat >>conftest.$ac_ext <<_ACEOF |
| 15129 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15130 | |
| 15131 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15132 | #ifdef __cplusplus |
| 15133 | extern "C" |
| 15134 | #endif |
| 15135 | /* We use char because int might match the return type of a gcc2 |
| 15136 | builtin and then its argument prototype would still apply. */ |
| 15137 | char FT_Init_FreeType (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15138 | int |
| 15139 | main () |
| 15140 | { |
| 15141 | FT_Init_FreeType (); |
| 15142 | ; |
| 15143 | return 0; |
| 15144 | } |
| 15145 | _ACEOF |
| 15146 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15147 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15148 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15149 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15151 | rm -f conftest.er1 |
| 15152 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15154 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15155 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15157 | (eval $ac_try) 2>&5 |
| 15158 | ac_status=$? |
| 15159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15160 | (exit $ac_status); }; } && |
| 15161 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15163 | (eval $ac_try) 2>&5 |
| 15164 | ac_status=$? |
| 15165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15166 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15167 | ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15168 | if test "x$ac_cv_lib_soname_freetype" = "x" |
| 15169 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15170 | ac_cv_lib_soname_freetype="libfreetype.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15171 | fi |
| 15172 | else |
| 15173 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15175 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15176 | ac_cv_lib_soname_freetype="libfreetype.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15177 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15178 | rm -f conftest.err conftest.$ac_objext \ |
| 15179 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15180 | LIBS=$ac_get_soname_save_LIBS |
| 15181 | fi |
| 15182 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5 |
| 15183 | echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6 |
| 15184 | if test "x$ac_cv_lib_soname_freetype" != xNONE |
| 15185 | then |
| 15186 | cat >>confdefs.h <<_ACEOF |
| 15187 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
| 15188 | _ACEOF |
| 15189 | fi |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15190 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15191 | echo "$as_me:$LINENO: checking for -lGL soname" >&5 |
| 15192 | echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6 |
| 15193 | if test "${ac_cv_lib_soname_GL+set}" = set; then |
| 15194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15195 | else |
| 15196 | ac_get_soname_save_LIBS=$LIBS |
| 15197 | LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 15198 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15199 | /* confdefs.h. */ |
| 15200 | _ACEOF |
| 15201 | cat confdefs.h >>conftest.$ac_ext |
| 15202 | cat >>conftest.$ac_ext <<_ACEOF |
| 15203 | /* end confdefs.h. */ |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15204 | |
| 15205 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15206 | #ifdef __cplusplus |
| 15207 | extern "C" |
| 15208 | #endif |
| 15209 | /* We use char because int might match the return type of a gcc2 |
| 15210 | builtin and then its argument prototype would still apply. */ |
| 15211 | char glXQueryExtension (); |
| 15212 | int |
| 15213 | main () |
| 15214 | { |
| 15215 | glXQueryExtension (); |
| 15216 | ; |
| 15217 | return 0; |
| 15218 | } |
| 15219 | _ACEOF |
| 15220 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15222 | (eval $ac_link) 2>conftest.er1 |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15223 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15224 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15225 | rm -f conftest.er1 |
| 15226 | cat conftest.err >&5 |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15228 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15229 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15231 | (eval $ac_try) 2>&5 |
| 15232 | ac_status=$? |
| 15233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15234 | (exit $ac_status); }; } && |
| 15235 | { ac_try='test -s conftest$ac_exeext' |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15237 | (eval $ac_try) 2>&5 |
| 15238 | ac_status=$? |
| 15239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15240 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15241 | ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"` |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15242 | if test "x$ac_cv_lib_soname_GL" = "x" |
| 15243 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15244 | ac_cv_lib_soname_GL="libGL.$LIBEXT" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15245 | fi |
| 15246 | else |
| 15247 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15249 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15250 | ac_cv_lib_soname_GL="libGL.$LIBEXT" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15251 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15252 | rm -f conftest.err conftest.$ac_objext \ |
| 15253 | conftest$ac_exeext conftest.$ac_ext |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15254 | LIBS=$ac_get_soname_save_LIBS |
| 15255 | fi |
| 15256 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5 |
| 15257 | echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6 |
| 15258 | if test "x$ac_cv_lib_soname_GL" != xNONE |
| 15259 | then |
| 15260 | cat >>confdefs.h <<_ACEOF |
| 15261 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 15262 | _ACEOF |
| 15263 | fi |
| 15264 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15265 | echo "$as_me:$LINENO: checking for -lcups soname" >&5 |
| 15266 | echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6 |
| 15267 | if test "${ac_cv_lib_soname_cups+set}" = set; then |
| 15268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15269 | else |
| 15270 | ac_get_soname_save_LIBS=$LIBS |
| 15271 | LIBS="-lcups $LIBS" |
| 15272 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15273 | /* confdefs.h. */ |
| 15274 | _ACEOF |
| 15275 | cat confdefs.h >>conftest.$ac_ext |
| 15276 | cat >>conftest.$ac_ext <<_ACEOF |
| 15277 | /* end confdefs.h. */ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15278 | |
| 15279 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15280 | #ifdef __cplusplus |
| 15281 | extern "C" |
| 15282 | #endif |
| 15283 | /* We use char because int might match the return type of a gcc2 |
| 15284 | builtin and then its argument prototype would still apply. */ |
| 15285 | char cupsGetDefault (); |
| 15286 | int |
| 15287 | main () |
| 15288 | { |
| 15289 | cupsGetDefault (); |
| 15290 | ; |
| 15291 | return 0; |
| 15292 | } |
| 15293 | _ACEOF |
| 15294 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15296 | (eval $ac_link) 2>conftest.er1 |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15297 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15299 | rm -f conftest.er1 |
| 15300 | cat conftest.err >&5 |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15302 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15303 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15305 | (eval $ac_try) 2>&5 |
| 15306 | ac_status=$? |
| 15307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15308 | (exit $ac_status); }; } && |
| 15309 | { ac_try='test -s conftest$ac_exeext' |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15311 | (eval $ac_try) 2>&5 |
| 15312 | ac_status=$? |
| 15313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15314 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15315 | ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"` |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15316 | if test "x$ac_cv_lib_soname_cups" = "x" |
| 15317 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15318 | ac_cv_lib_soname_cups="libcups.$LIBEXT" |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15319 | fi |
| 15320 | else |
| 15321 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15323 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15324 | ac_cv_lib_soname_cups="libcups.$LIBEXT" |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15325 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15326 | rm -f conftest.err conftest.$ac_objext \ |
| 15327 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15328 | LIBS=$ac_get_soname_save_LIBS |
| 15329 | fi |
| 15330 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5 |
| 15331 | echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6 |
| 15332 | if test "x$ac_cv_lib_soname_cups" != xNONE |
| 15333 | then |
| 15334 | cat >>confdefs.h <<_ACEOF |
| 15335 | #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups" |
| 15336 | _ACEOF |
| 15337 | fi |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15338 | |
| 15339 | echo "$as_me:$LINENO: checking for -ljack soname" >&5 |
| 15340 | echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6 |
| 15341 | if test "${ac_cv_lib_soname_jack+set}" = set; then |
| 15342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15343 | else |
| 15344 | ac_get_soname_save_LIBS=$LIBS |
| 15345 | LIBS="-ljack $LIBS" |
| 15346 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15347 | /* confdefs.h. */ |
| 15348 | _ACEOF |
| 15349 | cat confdefs.h >>conftest.$ac_ext |
| 15350 | cat >>conftest.$ac_ext <<_ACEOF |
| 15351 | /* end confdefs.h. */ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15352 | |
| 15353 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15354 | #ifdef __cplusplus |
| 15355 | extern "C" |
| 15356 | #endif |
| 15357 | /* We use char because int might match the return type of a gcc2 |
| 15358 | builtin and then its argument prototype would still apply. */ |
| 15359 | char jack_client_new (); |
| 15360 | int |
| 15361 | main () |
| 15362 | { |
| 15363 | jack_client_new (); |
| 15364 | ; |
| 15365 | return 0; |
| 15366 | } |
| 15367 | _ACEOF |
| 15368 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15370 | (eval $ac_link) 2>conftest.er1 |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15371 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15372 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15373 | rm -f conftest.er1 |
| 15374 | cat conftest.err >&5 |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15376 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15377 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15379 | (eval $ac_try) 2>&5 |
| 15380 | ac_status=$? |
| 15381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15382 | (exit $ac_status); }; } && |
| 15383 | { ac_try='test -s conftest$ac_exeext' |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15385 | (eval $ac_try) 2>&5 |
| 15386 | ac_status=$? |
| 15387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15388 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15389 | ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"` |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15390 | if test "x$ac_cv_lib_soname_jack" = "x" |
| 15391 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15392 | ac_cv_lib_soname_jack="libjack.$LIBEXT" |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15393 | fi |
| 15394 | else |
| 15395 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15397 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15398 | ac_cv_lib_soname_jack="libjack.$LIBEXT" |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15399 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15400 | rm -f conftest.err conftest.$ac_objext \ |
| 15401 | conftest$ac_exeext conftest.$ac_ext |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15402 | LIBS=$ac_get_soname_save_LIBS |
| 15403 | fi |
| 15404 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5 |
| 15405 | echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6 |
| 15406 | if test "x$ac_cv_lib_soname_jack" != xNONE |
| 15407 | then |
| 15408 | cat >>confdefs.h <<_ACEOF |
| 15409 | #define SONAME_LIBJACK "$ac_cv_lib_soname_jack" |
| 15410 | _ACEOF |
| 15411 | fi |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15412 | |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15413 | echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5 |
| 15414 | echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6 |
| 15415 | if test "${ac_cv_lib_soname_fontconfig+set}" = set; then |
| 15416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15417 | else |
| 15418 | ac_get_soname_save_LIBS=$LIBS |
| 15419 | LIBS="-lfontconfig $LIBS" |
| 15420 | cat >conftest.$ac_ext <<_ACEOF |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15421 | /* confdefs.h. */ |
| 15422 | _ACEOF |
| 15423 | cat confdefs.h >>conftest.$ac_ext |
| 15424 | cat >>conftest.$ac_ext <<_ACEOF |
| 15425 | /* end confdefs.h. */ |
| 15426 | |
| 15427 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15428 | #ifdef __cplusplus |
| 15429 | extern "C" |
| 15430 | #endif |
| 15431 | /* We use char because int might match the return type of a gcc2 |
| 15432 | builtin and then its argument prototype would still apply. */ |
| 15433 | char FcInit (); |
| 15434 | int |
| 15435 | main () |
| 15436 | { |
| 15437 | FcInit (); |
| 15438 | ; |
| 15439 | return 0; |
| 15440 | } |
| 15441 | _ACEOF |
| 15442 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15444 | (eval $ac_link) 2>conftest.er1 |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15445 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15447 | rm -f conftest.er1 |
| 15448 | cat conftest.err >&5 |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15450 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15451 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15453 | (eval $ac_try) 2>&5 |
| 15454 | ac_status=$? |
| 15455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15456 | (exit $ac_status); }; } && |
| 15457 | { ac_try='test -s conftest$ac_exeext' |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15459 | (eval $ac_try) 2>&5 |
| 15460 | ac_status=$? |
| 15461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15462 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15463 | ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"` |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15464 | if test "x$ac_cv_lib_soname_fontconfig" = "x" |
| 15465 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15466 | ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT" |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15467 | fi |
| 15468 | else |
| 15469 | echo "$as_me: failed program was:" >&5 |
| 15470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15471 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15472 | ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT" |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15473 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15474 | rm -f conftest.err conftest.$ac_objext \ |
| 15475 | conftest$ac_exeext conftest.$ac_ext |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15476 | LIBS=$ac_get_soname_save_LIBS |
| 15477 | fi |
| 15478 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5 |
| 15479 | echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6 |
| 15480 | if test "x$ac_cv_lib_soname_fontconfig" != xNONE |
| 15481 | then |
| 15482 | cat >>confdefs.h <<_ACEOF |
| 15483 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
| 15484 | _ACEOF |
Alexandre Julliard | 7999469 | 2003-11-13 20:58:55 +0000 | [diff] [blame] | 15485 | fi |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15486 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15487 | echo "$as_me:$LINENO: checking for -lssl soname" >&5 |
| 15488 | echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6 |
| 15489 | if test "${ac_cv_lib_soname_ssl+set}" = set; then |
| 15490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15491 | else |
| 15492 | ac_get_soname_save_LIBS=$LIBS |
| 15493 | LIBS="-lssl $LIBS" |
| 15494 | cat >conftest.$ac_ext <<_ACEOF |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15495 | /* confdefs.h. */ |
| 15496 | _ACEOF |
| 15497 | cat confdefs.h >>conftest.$ac_ext |
| 15498 | cat >>conftest.$ac_ext <<_ACEOF |
| 15499 | /* end confdefs.h. */ |
| 15500 | |
| 15501 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15502 | #ifdef __cplusplus |
| 15503 | extern "C" |
| 15504 | #endif |
| 15505 | /* We use char because int might match the return type of a gcc2 |
| 15506 | builtin and then its argument prototype would still apply. */ |
| 15507 | char SSL_library_init (); |
| 15508 | int |
| 15509 | main () |
| 15510 | { |
| 15511 | SSL_library_init (); |
| 15512 | ; |
| 15513 | return 0; |
| 15514 | } |
| 15515 | _ACEOF |
| 15516 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15518 | (eval $ac_link) 2>conftest.er1 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15519 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15521 | rm -f conftest.er1 |
| 15522 | cat conftest.err >&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15524 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15525 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15527 | (eval $ac_try) 2>&5 |
| 15528 | ac_status=$? |
| 15529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15530 | (exit $ac_status); }; } && |
| 15531 | { ac_try='test -s conftest$ac_exeext' |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15533 | (eval $ac_try) 2>&5 |
| 15534 | ac_status=$? |
| 15535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15536 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15537 | ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"` |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15538 | if test "x$ac_cv_lib_soname_ssl" = "x" |
| 15539 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15540 | ac_cv_lib_soname_ssl="libssl.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15541 | fi |
| 15542 | else |
| 15543 | echo "$as_me: failed program was:" >&5 |
| 15544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15545 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15546 | ac_cv_lib_soname_ssl="libssl.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15547 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15548 | rm -f conftest.err conftest.$ac_objext \ |
| 15549 | conftest$ac_exeext conftest.$ac_ext |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15550 | LIBS=$ac_get_soname_save_LIBS |
| 15551 | fi |
| 15552 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5 |
| 15553 | echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6 |
| 15554 | if test "x$ac_cv_lib_soname_ssl" != xNONE |
| 15555 | then |
| 15556 | cat >>confdefs.h <<_ACEOF |
| 15557 | #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl" |
| 15558 | _ACEOF |
| 15559 | fi |
| 15560 | |
| 15561 | echo "$as_me:$LINENO: checking for -lcrypto soname" >&5 |
| 15562 | echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6 |
| 15563 | if test "${ac_cv_lib_soname_crypto+set}" = set; then |
| 15564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15565 | else |
| 15566 | ac_get_soname_save_LIBS=$LIBS |
| 15567 | LIBS="-lcrypto $LIBS" |
| 15568 | cat >conftest.$ac_ext <<_ACEOF |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15569 | /* confdefs.h. */ |
| 15570 | _ACEOF |
| 15571 | cat confdefs.h >>conftest.$ac_ext |
| 15572 | cat >>conftest.$ac_ext <<_ACEOF |
| 15573 | /* end confdefs.h. */ |
| 15574 | |
| 15575 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15576 | #ifdef __cplusplus |
| 15577 | extern "C" |
| 15578 | #endif |
| 15579 | /* We use char because int might match the return type of a gcc2 |
| 15580 | builtin and then its argument prototype would still apply. */ |
| 15581 | char BIO_new_socket (); |
| 15582 | int |
| 15583 | main () |
| 15584 | { |
| 15585 | BIO_new_socket (); |
| 15586 | ; |
| 15587 | return 0; |
| 15588 | } |
| 15589 | _ACEOF |
| 15590 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15592 | (eval $ac_link) 2>conftest.er1 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15593 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15595 | rm -f conftest.er1 |
| 15596 | cat conftest.err >&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15598 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15599 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15601 | (eval $ac_try) 2>&5 |
| 15602 | ac_status=$? |
| 15603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15604 | (exit $ac_status); }; } && |
| 15605 | { ac_try='test -s conftest$ac_exeext' |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15607 | (eval $ac_try) 2>&5 |
| 15608 | ac_status=$? |
| 15609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15610 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15611 | ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"` |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15612 | if test "x$ac_cv_lib_soname_crypto" = "x" |
| 15613 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15614 | ac_cv_lib_soname_crypto="libcrypto.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15615 | fi |
| 15616 | else |
| 15617 | echo "$as_me: failed program was:" >&5 |
| 15618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15619 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15620 | ac_cv_lib_soname_crypto="libcrypto.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15621 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15622 | rm -f conftest.err conftest.$ac_objext \ |
| 15623 | conftest$ac_exeext conftest.$ac_ext |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15624 | LIBS=$ac_get_soname_save_LIBS |
| 15625 | fi |
| 15626 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5 |
| 15627 | echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6 |
| 15628 | if test "x$ac_cv_lib_soname_crypto" != xNONE |
| 15629 | then |
| 15630 | cat >>confdefs.h <<_ACEOF |
| 15631 | #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto" |
| 15632 | _ACEOF |
| 15633 | fi |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15634 | |
| 15635 | echo "$as_me:$LINENO: checking for -lncurses soname" >&5 |
| 15636 | echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6 |
| 15637 | if test "${ac_cv_lib_soname_ncurses+set}" = set; then |
| 15638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15639 | else |
| 15640 | ac_get_soname_save_LIBS=$LIBS |
| 15641 | LIBS="-lncurses $LIBS" |
| 15642 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15643 | /* confdefs.h. */ |
| 15644 | _ACEOF |
| 15645 | cat confdefs.h >>conftest.$ac_ext |
| 15646 | cat >>conftest.$ac_ext <<_ACEOF |
| 15647 | /* end confdefs.h. */ |
| 15648 | |
| 15649 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15650 | #ifdef __cplusplus |
| 15651 | extern "C" |
| 15652 | #endif |
| 15653 | /* We use char because int might match the return type of a gcc2 |
| 15654 | builtin and then its argument prototype would still apply. */ |
| 15655 | char waddch (); |
| 15656 | int |
| 15657 | main () |
| 15658 | { |
| 15659 | waddch (); |
| 15660 | ; |
| 15661 | return 0; |
| 15662 | } |
| 15663 | _ACEOF |
| 15664 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15666 | (eval $ac_link) 2>conftest.er1 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15667 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15669 | rm -f conftest.er1 |
| 15670 | cat conftest.err >&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15672 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15673 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15675 | (eval $ac_try) 2>&5 |
| 15676 | ac_status=$? |
| 15677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15678 | (exit $ac_status); }; } && |
| 15679 | { ac_try='test -s conftest$ac_exeext' |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15681 | (eval $ac_try) 2>&5 |
| 15682 | ac_status=$? |
| 15683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15684 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15685 | ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"` |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15686 | if test "x$ac_cv_lib_soname_ncurses" = "x" |
| 15687 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15688 | ac_cv_lib_soname_ncurses="libncurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15689 | fi |
| 15690 | else |
| 15691 | echo "$as_me: failed program was:" >&5 |
| 15692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15693 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15694 | ac_cv_lib_soname_ncurses="libncurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15695 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15696 | rm -f conftest.err conftest.$ac_objext \ |
| 15697 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15698 | LIBS=$ac_get_soname_save_LIBS |
| 15699 | fi |
| 15700 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5 |
| 15701 | echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6 |
| 15702 | if test "x$ac_cv_lib_soname_ncurses" != xNONE |
| 15703 | then |
| 15704 | cat >>confdefs.h <<_ACEOF |
| 15705 | #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses" |
| 15706 | _ACEOF |
| 15707 | fi |
| 15708 | |
| 15709 | echo "$as_me:$LINENO: checking for -lcurses soname" >&5 |
| 15710 | echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6 |
| 15711 | if test "${ac_cv_lib_soname_curses+set}" = set; then |
| 15712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15713 | else |
| 15714 | ac_get_soname_save_LIBS=$LIBS |
| 15715 | LIBS="-lcurses $LIBS" |
| 15716 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15717 | /* confdefs.h. */ |
| 15718 | _ACEOF |
| 15719 | cat confdefs.h >>conftest.$ac_ext |
| 15720 | cat >>conftest.$ac_ext <<_ACEOF |
| 15721 | /* end confdefs.h. */ |
| 15722 | |
| 15723 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15724 | #ifdef __cplusplus |
| 15725 | extern "C" |
| 15726 | #endif |
| 15727 | /* We use char because int might match the return type of a gcc2 |
| 15728 | builtin and then its argument prototype would still apply. */ |
| 15729 | char waddch (); |
| 15730 | int |
| 15731 | main () |
| 15732 | { |
| 15733 | waddch (); |
| 15734 | ; |
| 15735 | return 0; |
| 15736 | } |
| 15737 | _ACEOF |
| 15738 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15740 | (eval $ac_link) 2>conftest.er1 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15741 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15743 | rm -f conftest.er1 |
| 15744 | cat conftest.err >&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15746 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15747 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15749 | (eval $ac_try) 2>&5 |
| 15750 | ac_status=$? |
| 15751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15752 | (exit $ac_status); }; } && |
| 15753 | { ac_try='test -s conftest$ac_exeext' |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15755 | (eval $ac_try) 2>&5 |
| 15756 | ac_status=$? |
| 15757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15758 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15759 | ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"` |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15760 | if test "x$ac_cv_lib_soname_curses" = "x" |
| 15761 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15762 | ac_cv_lib_soname_curses="libcurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15763 | fi |
| 15764 | else |
| 15765 | echo "$as_me: failed program was:" >&5 |
| 15766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15767 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15768 | ac_cv_lib_soname_curses="libcurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15769 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15770 | rm -f conftest.err conftest.$ac_objext \ |
| 15771 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15772 | LIBS=$ac_get_soname_save_LIBS |
| 15773 | fi |
| 15774 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5 |
| 15775 | echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6 |
| 15776 | if test "x$ac_cv_lib_soname_curses" != xNONE |
| 15777 | then |
| 15778 | cat >>confdefs.h <<_ACEOF |
| 15779 | #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses" |
| 15780 | _ACEOF |
| 15781 | fi |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15782 | fi |
| 15783 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15784 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15785 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15786 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 15787 | # for constant arguments. Useless! |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15788 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15789 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 15790 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 15791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15792 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15793 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15794 | /* confdefs.h. */ |
| 15795 | _ACEOF |
| 15796 | cat confdefs.h >>conftest.$ac_ext |
| 15797 | cat >>conftest.$ac_ext <<_ACEOF |
| 15798 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15799 | #include <alloca.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15800 | int |
| 15801 | main () |
| 15802 | { |
| 15803 | char *p = (char *) alloca (2 * sizeof (int)); |
| 15804 | ; |
| 15805 | return 0; |
| 15806 | } |
| 15807 | _ACEOF |
| 15808 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15810 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15811 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15813 | rm -f conftest.er1 |
| 15814 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15816 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15817 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15819 | (eval $ac_try) 2>&5 |
| 15820 | ac_status=$? |
| 15821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15822 | (exit $ac_status); }; } && |
| 15823 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15825 | (eval $ac_try) 2>&5 |
| 15826 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15828 | (exit $ac_status); }; }; then |
| 15829 | ac_cv_working_alloca_h=yes |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15830 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15831 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15833 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15834 | ac_cv_working_alloca_h=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15835 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15836 | rm -f conftest.err conftest.$ac_objext \ |
| 15837 | conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15838 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15839 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15840 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 15841 | if test $ac_cv_working_alloca_h = yes; then |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 15842 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15843 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15844 | #define HAVE_ALLOCA_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15845 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15846 | |
| 15847 | fi |
| 15848 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15849 | echo "$as_me:$LINENO: checking for alloca" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15850 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 15851 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 15852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15853 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15854 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15855 | /* confdefs.h. */ |
| 15856 | _ACEOF |
| 15857 | cat confdefs.h >>conftest.$ac_ext |
| 15858 | cat >>conftest.$ac_ext <<_ACEOF |
| 15859 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15860 | #ifdef __GNUC__ |
| 15861 | # define alloca __builtin_alloca |
| 15862 | #else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 15863 | # ifdef _MSC_VER |
| 15864 | # include <malloc.h> |
| 15865 | # define alloca _alloca |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15866 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 15867 | # if HAVE_ALLOCA_H |
| 15868 | # include <alloca.h> |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15869 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 15870 | # ifdef _AIX |
| 15871 | #pragma alloca |
| 15872 | # else |
| 15873 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15874 | char *alloca (); |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 15875 | # endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15876 | # endif |
| 15877 | # endif |
| 15878 | # endif |
| 15879 | #endif |
| 15880 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15881 | int |
| 15882 | main () |
| 15883 | { |
| 15884 | char *p = (char *) alloca (1); |
| 15885 | ; |
| 15886 | return 0; |
| 15887 | } |
| 15888 | _ACEOF |
| 15889 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15891 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15892 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15894 | rm -f conftest.er1 |
| 15895 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15897 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15898 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15900 | (eval $ac_try) 2>&5 |
| 15901 | ac_status=$? |
| 15902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15903 | (exit $ac_status); }; } && |
| 15904 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15906 | (eval $ac_try) 2>&5 |
| 15907 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15909 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15910 | ac_cv_func_alloca_works=yes |
| 15911 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15912 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15914 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15915 | ac_cv_func_alloca_works=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15916 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15917 | rm -f conftest.err conftest.$ac_objext \ |
| 15918 | conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15919 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15920 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15921 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15922 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15923 | if test $ac_cv_func_alloca_works = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15924 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15925 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15926 | #define HAVE_ALLOCA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15927 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15928 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15929 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15930 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15931 | # that cause trouble. Some versions do not even contain alloca or |
| 15932 | # contain a buggy version. If you still want to use their alloca, |
| 15933 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 15934 | |
| 15935 | ALLOCA=alloca.$ac_objext |
| 15936 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15937 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15938 | #define C_ALLOCA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15939 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15940 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15941 | |
| 15942 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15943 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 15944 | if test "${ac_cv_os_cray+set}" = set; then |
| 15945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15946 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15947 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15948 | /* confdefs.h. */ |
| 15949 | _ACEOF |
| 15950 | cat confdefs.h >>conftest.$ac_ext |
| 15951 | cat >>conftest.$ac_ext <<_ACEOF |
| 15952 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15953 | #if defined(CRAY) && ! defined(CRAY2) |
| 15954 | webecray |
| 15955 | #else |
| 15956 | wenotbecray |
| 15957 | #endif |
| 15958 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15959 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15960 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15961 | $EGREP "webecray" >/dev/null 2>&1; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15962 | ac_cv_os_cray=yes |
| 15963 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15964 | ac_cv_os_cray=no |
| 15965 | fi |
| 15966 | rm -f conftest* |
| 15967 | |
| 15968 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15969 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15970 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15971 | if test $ac_cv_os_cray = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15972 | for ac_func in _getb67 GETB67 getb67; do |
| 15973 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15974 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15975 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15976 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15978 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15979 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15980 | /* confdefs.h. */ |
| 15981 | _ACEOF |
| 15982 | cat confdefs.h >>conftest.$ac_ext |
| 15983 | cat >>conftest.$ac_ext <<_ACEOF |
| 15984 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15985 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15986 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15987 | #define $ac_func innocuous_$ac_func |
| 15988 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15989 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15990 | which can conflict with char $ac_func (); below. |
| 15991 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15992 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15993 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15994 | #ifdef __STDC__ |
| 15995 | # include <limits.h> |
| 15996 | #else |
| 15997 | # include <assert.h> |
| 15998 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15999 | |
| 16000 | #undef $ac_func |
| 16001 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16002 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16003 | #ifdef __cplusplus |
| 16004 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16005 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16006 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 16007 | /* 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] | 16008 | builtin and then its argument prototype would still apply. */ |
| 16009 | char $ac_func (); |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16010 | /* The GNU C library defines this for functions which it implements |
| 16011 | to always fail with ENOSYS. Some functions are actually named |
| 16012 | something starting with __ and the normal name is an alias. */ |
| 16013 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16014 | choke me |
| 16015 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16016 | char (*f) () = $ac_func; |
| 16017 | #endif |
| 16018 | #ifdef __cplusplus |
| 16019 | } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16020 | #endif |
| 16021 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16022 | int |
| 16023 | main () |
| 16024 | { |
| 16025 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16026 | ; |
| 16027 | return 0; |
| 16028 | } |
| 16029 | _ACEOF |
| 16030 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16032 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16033 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16035 | rm -f conftest.er1 |
| 16036 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16038 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16039 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16041 | (eval $ac_try) 2>&5 |
| 16042 | ac_status=$? |
| 16043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16044 | (exit $ac_status); }; } && |
| 16045 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16047 | (eval $ac_try) 2>&5 |
| 16048 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16050 | (exit $ac_status); }; }; then |
| 16051 | eval "$as_ac_var=yes" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16052 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16053 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16055 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16056 | eval "$as_ac_var=no" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16057 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16058 | rm -f conftest.err conftest.$ac_objext \ |
| 16059 | conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16060 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16061 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16062 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16063 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16064 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16065 | cat >>confdefs.h <<_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16066 | #define CRAY_STACKSEG_END $ac_func |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16067 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16068 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16069 | break |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16070 | fi |
| 16071 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16072 | done |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16073 | fi |
| 16074 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16075 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16076 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 16077 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 16078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16079 | else |
| 16080 | if test "$cross_compiling" = yes; then |
| 16081 | ac_cv_c_stack_direction=0 |
| 16082 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16083 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16084 | /* confdefs.h. */ |
| 16085 | _ACEOF |
| 16086 | cat confdefs.h >>conftest.$ac_ext |
| 16087 | cat >>conftest.$ac_ext <<_ACEOF |
| 16088 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16089 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16090 | find_stack_direction () |
| 16091 | { |
| 16092 | static char *addr = 0; |
| 16093 | auto char dummy; |
| 16094 | if (addr == 0) |
| 16095 | { |
| 16096 | addr = &dummy; |
| 16097 | return find_stack_direction (); |
| 16098 | } |
| 16099 | else |
| 16100 | return (&dummy > addr) ? 1 : -1; |
| 16101 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16102 | |
| 16103 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16104 | main () |
| 16105 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16106 | exit (find_stack_direction () < 0); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16107 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16108 | _ACEOF |
| 16109 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16111 | (eval $ac_link) 2>&5 |
| 16112 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16114 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16116 | (eval $ac_try) 2>&5 |
| 16117 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16119 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16120 | ac_cv_c_stack_direction=1 |
| 16121 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16122 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16123 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16125 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16126 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16127 | ac_cv_c_stack_direction=-1 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16128 | fi |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 16129 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16130 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16131 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16132 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16133 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16134 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16135 | cat >>confdefs.h <<_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16136 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16137 | _ACEOF |
| 16138 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16139 | |
| 16140 | fi |
| 16141 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16142 | |
| 16143 | |
| 16144 | |
| 16145 | |
| 16146 | |
| 16147 | |
| 16148 | |
| 16149 | |
| 16150 | |
| 16151 | |
| 16152 | |
| 16153 | |
| 16154 | |
| 16155 | |
| 16156 | |
| 16157 | |
| 16158 | |
| 16159 | |
| 16160 | |
| 16161 | |
| 16162 | |
| 16163 | |
| 16164 | |
| 16165 | |
| 16166 | |
| 16167 | |
| 16168 | |
| 16169 | |
| 16170 | |
| 16171 | |
| 16172 | |
| 16173 | |
| 16174 | |
| 16175 | |
| 16176 | |
| 16177 | |
| 16178 | |
| 16179 | |
| 16180 | |
| 16181 | |
| 16182 | |
| 16183 | |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 16184 | |
| 16185 | |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 16186 | |
| 16187 | |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 16188 | |
Patrik Stridvall | 6caeb72 | 2002-11-25 21:12:26 +0000 | [diff] [blame] | 16189 | |
| 16190 | |
| 16191 | |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 16192 | |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 16193 | |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 16194 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 16195 | |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 16196 | |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 16197 | |
| 16198 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16199 | for ac_func in \ |
| 16200 | _lwp_create \ |
Alexandre Julliard | 6f7a204 | 2003-04-01 04:39:35 +0000 | [diff] [blame] | 16201 | _lwp_self \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16202 | _pclose \ |
| 16203 | _popen \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 16204 | _snprintf \ |
Alexandre Julliard | c45bbad | 2003-04-01 00:12:02 +0000 | [diff] [blame] | 16205 | _spawnvp \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16206 | _stricmp \ |
| 16207 | _strnicmp \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 16208 | _vsnprintf \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 16209 | chsize \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16210 | clone \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 16211 | finite \ |
| 16212 | fpclass \ |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 16213 | fstatfs \ |
| 16214 | fstatvfs \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 16215 | ftruncate \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 16216 | ftruncate64 \ |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 16217 | futimes \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16218 | getnetbyaddr \ |
| 16219 | getnetbyname \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 16220 | getopt_long \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16221 | getpagesize \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16222 | getprotobyname \ |
| 16223 | getprotobynumber \ |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 16224 | getpwuid \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16225 | getservbyport \ |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 16226 | gettid \ |
Alexandre Julliard | 8d7b8e5 | 2003-03-23 20:11:45 +0000 | [diff] [blame] | 16227 | gettimeofday \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16228 | inet_network \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 16229 | lseek64 \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 16230 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16231 | memmove \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 16232 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16233 | pclose \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16234 | popen \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 16235 | pread \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 16236 | pwrite \ |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 16237 | readlink \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16238 | rfork \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16239 | select \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16240 | sendmsg \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16241 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16242 | sigaltstack \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 16243 | snprintf \ |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 16244 | spawnvp \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16245 | statfs \ |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 16246 | statvfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 16247 | strcasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16248 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 16249 | strncasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16250 | tcgetattr \ |
| 16251 | timegm \ |
| 16252 | usleep \ |
| 16253 | vfscanf \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 16254 | vsnprintf \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16255 | wait4 \ |
| 16256 | waitpid \ |
| 16257 | |
| 16258 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16259 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16260 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16261 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16262 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16264 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16265 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16266 | /* confdefs.h. */ |
| 16267 | _ACEOF |
| 16268 | cat confdefs.h >>conftest.$ac_ext |
| 16269 | cat >>conftest.$ac_ext <<_ACEOF |
| 16270 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16271 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16272 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16273 | #define $ac_func innocuous_$ac_func |
| 16274 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16275 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16276 | which can conflict with char $ac_func (); below. |
| 16277 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16278 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16279 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16280 | #ifdef __STDC__ |
| 16281 | # include <limits.h> |
| 16282 | #else |
| 16283 | # include <assert.h> |
| 16284 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16285 | |
| 16286 | #undef $ac_func |
| 16287 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16288 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16289 | #ifdef __cplusplus |
| 16290 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16291 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16292 | #endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16293 | /* 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] | 16294 | builtin and then its argument prototype would still apply. */ |
| 16295 | char $ac_func (); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16296 | /* The GNU C library defines this for functions which it implements |
| 16297 | to always fail with ENOSYS. Some functions are actually named |
| 16298 | something starting with __ and the normal name is an alias. */ |
| 16299 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16300 | choke me |
| 16301 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16302 | char (*f) () = $ac_func; |
| 16303 | #endif |
| 16304 | #ifdef __cplusplus |
| 16305 | } |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16306 | #endif |
| 16307 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16308 | int |
| 16309 | main () |
| 16310 | { |
| 16311 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16312 | ; |
| 16313 | return 0; |
| 16314 | } |
| 16315 | _ACEOF |
| 16316 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16318 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16319 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16321 | rm -f conftest.er1 |
| 16322 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16324 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16325 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16327 | (eval $ac_try) 2>&5 |
| 16328 | ac_status=$? |
| 16329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16330 | (exit $ac_status); }; } && |
| 16331 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16333 | (eval $ac_try) 2>&5 |
| 16334 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16336 | (exit $ac_status); }; }; then |
| 16337 | eval "$as_ac_var=yes" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16338 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16339 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16341 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16342 | eval "$as_ac_var=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16343 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16344 | rm -f conftest.err conftest.$ac_objext \ |
| 16345 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16346 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16347 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16348 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16349 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16350 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16351 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16352 | _ACEOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 16353 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16354 | fi |
| 16355 | done |
| 16356 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16357 | |
| 16358 | |
| 16359 | |
| 16360 | |
| 16361 | |
| 16362 | |
| 16363 | |
| 16364 | |
| 16365 | |
| 16366 | |
| 16367 | |
| 16368 | |
| 16369 | |
| 16370 | |
| 16371 | |
| 16372 | |
| 16373 | |
| 16374 | |
| 16375 | |
| 16376 | |
| 16377 | |
| 16378 | |
| 16379 | |
| 16380 | |
| 16381 | |
| 16382 | |
| 16383 | |
| 16384 | |
| 16385 | |
| 16386 | |
| 16387 | |
| 16388 | |
| 16389 | |
| 16390 | |
| 16391 | |
| 16392 | |
| 16393 | |
| 16394 | |
| 16395 | |
| 16396 | |
| 16397 | |
| 16398 | |
| 16399 | |
| 16400 | |
| 16401 | |
| 16402 | |
| 16403 | |
| 16404 | |
| 16405 | |
| 16406 | |
| 16407 | |
| 16408 | |
| 16409 | |
| 16410 | |
| 16411 | |
| 16412 | |
| 16413 | |
| 16414 | |
| 16415 | |
| 16416 | |
| 16417 | |
Laurent Pinchart | 0314a65 | 2002-05-01 22:01:30 +0000 | [diff] [blame] | 16418 | |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 16419 | |
| 16420 | |
| 16421 | |
Alexandre Julliard | 127ec92 | 2002-05-07 01:51:30 +0000 | [diff] [blame] | 16422 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 16423 | |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 16424 | |
| 16425 | |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 16426 | |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16427 | |
Alexandre Julliard | b693895 | 2003-01-13 18:41:40 +0000 | [diff] [blame] | 16428 | |
Alexandre Julliard | c44555b | 2003-04-02 01:42:06 +0000 | [diff] [blame] | 16429 | |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 16430 | |
Yorick Hardy | c26b7db | 2003-05-19 21:46:09 +0000 | [diff] [blame] | 16431 | |
Yorick Hardy | b133454 | 2003-05-20 17:48:40 +0000 | [diff] [blame] | 16432 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16433 | |
Pavel Roskin | 6ce0569 | 2003-10-03 04:31:49 +0000 | [diff] [blame] | 16434 | |
Rein Klazes | c6c404d | 2003-10-07 22:49:22 +0000 | [diff] [blame] | 16435 | |
Alexandre Julliard | 0b1a82a | 2003-10-14 01:27:31 +0000 | [diff] [blame] | 16436 | |
Dmitry Timoshkov | 2581db8 | 2003-10-14 05:27:43 +0000 | [diff] [blame] | 16437 | |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 16438 | |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 16439 | |
| 16440 | |
Alexandre Julliard | e8a339c | 2004-03-01 21:32:02 +0000 | [diff] [blame] | 16441 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 16442 | |
Alexandre Julliard | ffcc67a | 2004-04-29 20:04:48 +0000 | [diff] [blame] | 16443 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16444 | for ac_header in \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16445 | arpa/inet.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16446 | arpa/nameser.h \ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 16447 | cups/cups.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16448 | direct.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16449 | elf.h \ |
| 16450 | float.h \ |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 16451 | fontconfig/fontconfig.h \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 16452 | getopt.h \ |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 16453 | ieeefp.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16454 | io.h \ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16455 | jack/jack.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16456 | libio.h \ |
Hidenori Takeshima | 01f78aa | 2000-07-09 12:19:09 +0000 | [diff] [blame] | 16457 | libutil.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16458 | link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16459 | linux/cdrom.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 16460 | linux/hdreg.h \ |
Marcus Meissner | c9b3b2e | 2000-12-12 00:38:58 +0000 | [diff] [blame] | 16461 | linux/input.h \ |
Alexandre Julliard | e8a339c | 2004-03-01 21:32:02 +0000 | [diff] [blame] | 16462 | linux/ioctl.h \ |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 16463 | linux/joystick.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 16464 | linux/major.h \ |
Laurent Pinchart | 0314a65 | 2002-05-01 22:01:30 +0000 | [diff] [blame] | 16465 | linux/param.h \ |
Lawson Whitney | 533e7ee | 2002-02-19 18:41:56 +0000 | [diff] [blame] | 16466 | linux/serial.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16467 | linux/ucdrom.h \ |
Yorick Hardy | b133454 | 2003-05-20 17:48:40 +0000 | [diff] [blame] | 16468 | machine/cpu.h \ |
Alexandre Julliard | ffcc67a | 2004-04-29 20:04:48 +0000 | [diff] [blame] | 16469 | mntent.h \ |
Hidenori Takeshima | 5d1a638 | 2000-11-26 04:00:53 +0000 | [diff] [blame] | 16470 | netdb.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16471 | netinet/in.h \ |
Patrik Stridvall | 7a4e599 | 2000-12-01 23:53:46 +0000 | [diff] [blame] | 16472 | netinet/in_systm.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16473 | netinet/tcp.h \ |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 16474 | netinet/tcp_fsm.h \ |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16475 | openssl/ssl.h \ |
Dmitry Timoshkov | 2581db8 | 2003-10-14 05:27:43 +0000 | [diff] [blame] | 16476 | process.h \ |
Alexandre Julliard | 0b1a82a | 2003-10-14 01:27:31 +0000 | [diff] [blame] | 16477 | pthread.h \ |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 16478 | pty.h \ |
Steven Edwards | ff4525c | 2002-06-24 23:00:25 +0000 | [diff] [blame] | 16479 | pwd.h \ |
Alexandre Julliard | b693895 | 2003-01-13 18:41:40 +0000 | [diff] [blame] | 16480 | regex.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16481 | sched.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 16482 | scsi/sg.h \ |
Rein Klazes | c6c404d | 2003-10-07 22:49:22 +0000 | [diff] [blame] | 16483 | scsi/scsi.h \ |
Pavel Roskin | 6ce0569 | 2003-10-03 04:31:49 +0000 | [diff] [blame] | 16484 | scsi/scsi_ioctl.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16485 | socket.h \ |
Bang Jun-Young | eda758e | 2001-12-14 22:47:19 +0000 | [diff] [blame] | 16486 | stdint.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16487 | strings.h \ |
| 16488 | sys/cdio.h \ |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 16489 | sys/elf32.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 16490 | sys/errno.h \ |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 16491 | sys/exec_elf.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16492 | sys/file.h \ |
| 16493 | sys/filio.h \ |
Michal Pasternak | 6098399 | 2002-03-29 18:04:43 +0000 | [diff] [blame] | 16494 | sys/inttypes.h \ |
Alexandre Julliard | c3e06df | 2002-05-14 23:18:23 +0000 | [diff] [blame] | 16495 | sys/ioctl.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16496 | sys/ipc.h \ |
Eric Pouech | 624cbd7 | 2001-08-10 22:29:21 +0000 | [diff] [blame] | 16497 | sys/link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16498 | sys/lwp.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 16499 | sys/mman.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16500 | sys/modem.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16501 | sys/msg.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16502 | sys/param.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 16503 | sys/poll.h \ |
Dimitrie O. Paun | 2af03e4 | 2000-11-29 20:04:09 +0000 | [diff] [blame] | 16504 | sys/ptrace.h \ |
Ulrich Weigand | 8a1bdb3 | 2000-01-30 22:22:22 +0000 | [diff] [blame] | 16505 | sys/reg.h \ |
Yorick Hardy | c26b7db | 2003-05-19 21:46:09 +0000 | [diff] [blame] | 16506 | sys/scsiio.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16507 | sys/shm.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 16508 | sys/signal.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16509 | sys/socket.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16510 | sys/sockio.h \ |
| 16511 | sys/statfs.h \ |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 16512 | sys/statvfs.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16513 | sys/strtio.h \ |
| 16514 | sys/syscall.h \ |
Alexandre Julliard | 127ec92 | 2002-05-07 01:51:30 +0000 | [diff] [blame] | 16515 | sys/sysctl.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16516 | sys/time.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 16517 | sys/times.h \ |
Steven Edwards | 45e5681 | 2002-10-31 03:41:56 +0000 | [diff] [blame] | 16518 | sys/uio.h \ |
| 16519 | sys/un.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16520 | sys/v86.h \ |
| 16521 | sys/v86intr.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16522 | sys/vfs.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16523 | sys/vm86.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 16524 | sys/wait.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16525 | syscall.h \ |
Alexandre Julliard | c3e06df | 2002-05-14 23:18:23 +0000 | [diff] [blame] | 16526 | termios.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16527 | unistd.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 16528 | utime.h \ |
Alexandre Julliard | c44555b | 2003-04-02 01:42:06 +0000 | [diff] [blame] | 16529 | valgrind/memcheck.h |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16530 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 16531 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16532 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16533 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16534 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16535 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16536 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16538 | fi |
| 16539 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16540 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 16541 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16542 | # Is the header compilable? |
| 16543 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16544 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 16545 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16546 | /* confdefs.h. */ |
| 16547 | _ACEOF |
| 16548 | cat confdefs.h >>conftest.$ac_ext |
| 16549 | cat >>conftest.$ac_ext <<_ACEOF |
| 16550 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16551 | $ac_includes_default |
| 16552 | #include <$ac_header> |
| 16553 | _ACEOF |
| 16554 | rm -f conftest.$ac_objext |
| 16555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16556 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16557 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16559 | rm -f conftest.er1 |
| 16560 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16562 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16563 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16565 | (eval $ac_try) 2>&5 |
| 16566 | ac_status=$? |
| 16567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16568 | (exit $ac_status); }; } && |
| 16569 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16571 | (eval $ac_try) 2>&5 |
| 16572 | ac_status=$? |
| 16573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16574 | (exit $ac_status); }; }; then |
| 16575 | ac_header_compiler=yes |
| 16576 | else |
| 16577 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16579 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16580 | ac_header_compiler=no |
| 16581 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16583 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16584 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 16585 | |
| 16586 | # Is the header present? |
| 16587 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16588 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 16589 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16590 | /* confdefs.h. */ |
| 16591 | _ACEOF |
| 16592 | cat confdefs.h >>conftest.$ac_ext |
| 16593 | cat >>conftest.$ac_ext <<_ACEOF |
| 16594 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16595 | #include <$ac_header> |
| 16596 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16597 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16598 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16599 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16600 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16601 | rm -f conftest.er1 |
| 16602 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16604 | (exit $ac_status); } >/dev/null; then |
| 16605 | if test -s conftest.err; then |
| 16606 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16607 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16608 | else |
| 16609 | ac_cpp_err= |
| 16610 | fi |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 16611 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16612 | ac_cpp_err=yes |
| 16613 | fi |
| 16614 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16615 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16616 | else |
| 16617 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16619 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16620 | ac_header_preproc=no |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 16621 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16622 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16623 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16624 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 16625 | |
| 16626 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16627 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16628 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16629 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16630 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16631 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16632 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16633 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16634 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16635 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16636 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16637 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16638 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16639 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16640 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16641 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16642 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16643 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16644 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16645 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16646 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16647 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16648 | ( |
| 16649 | cat <<\_ASBOX |
| 16650 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16651 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16652 | ## ------------------------------------ ## |
| 16653 | _ASBOX |
| 16654 | ) | |
| 16655 | sed "s/^/$as_me: WARNING: /" >&2 |
| 16656 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16657 | esac |
| 16658 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16659 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16660 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16662 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16663 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 16664 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16665 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16666 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16667 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 16668 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16669 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16670 | cat >>confdefs.h <<_ACEOF |
| 16671 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16672 | _ACEOF |
| 16673 | |
| 16674 | fi |
| 16675 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 16676 | done |
| 16677 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16678 | 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] | 16679 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 16680 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 16681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16682 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16683 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16684 | /* confdefs.h. */ |
| 16685 | _ACEOF |
| 16686 | cat confdefs.h >>conftest.$ac_ext |
| 16687 | cat >>conftest.$ac_ext <<_ACEOF |
| 16688 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16689 | #include <sys/types.h> |
| 16690 | #include <sys/stat.h> |
| 16691 | |
| 16692 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 16693 | # if S_ISBLK (S_IFDIR) |
| 16694 | You lose. |
| 16695 | # endif |
| 16696 | #endif |
| 16697 | |
| 16698 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 16699 | # if S_ISBLK (S_IFCHR) |
| 16700 | You lose. |
| 16701 | # endif |
| 16702 | #endif |
| 16703 | |
| 16704 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 16705 | # if S_ISLNK (S_IFREG) |
| 16706 | You lose. |
| 16707 | # endif |
| 16708 | #endif |
| 16709 | |
| 16710 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 16711 | # if S_ISSOCK (S_IFREG) |
| 16712 | You lose. |
| 16713 | # endif |
| 16714 | #endif |
| 16715 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16716 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16717 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16718 | $EGREP "You lose" >/dev/null 2>&1; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16719 | ac_cv_header_stat_broken=yes |
| 16720 | else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16721 | ac_cv_header_stat_broken=no |
| 16722 | fi |
| 16723 | rm -f conftest* |
| 16724 | |
| 16725 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16726 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16727 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16728 | if test $ac_cv_header_stat_broken = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16729 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16730 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16731 | #define STAT_MACROS_BROKEN 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16732 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16733 | |
| 16734 | fi |
| 16735 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16736 | |
| 16737 | |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16738 | |
| 16739 | |
| 16740 | for ac_header in sys/mount.h sys/user.h |
| 16741 | do |
| 16742 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16743 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16744 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16745 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16747 | else |
| 16748 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16749 | /* confdefs.h. */ |
| 16750 | _ACEOF |
| 16751 | cat confdefs.h >>conftest.$ac_ext |
| 16752 | cat >>conftest.$ac_ext <<_ACEOF |
| 16753 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 16754 | #include <sys/types.h> |
| 16755 | #if HAVE_SYS_PARAM_H |
| 16756 | # include <sys/param.h> |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16757 | #endif |
| 16758 | |
| 16759 | #include <$ac_header> |
| 16760 | _ACEOF |
| 16761 | rm -f conftest.$ac_objext |
| 16762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16763 | (eval $ac_compile) 2>conftest.er1 |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16764 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16766 | rm -f conftest.er1 |
| 16767 | cat conftest.err >&5 |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16769 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16772 | (eval $ac_try) 2>&5 |
| 16773 | ac_status=$? |
| 16774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16775 | (exit $ac_status); }; } && |
| 16776 | { ac_try='test -s conftest.$ac_objext' |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16778 | (eval $ac_try) 2>&5 |
| 16779 | ac_status=$? |
| 16780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16781 | (exit $ac_status); }; }; then |
| 16782 | eval "$as_ac_Header=yes" |
| 16783 | else |
| 16784 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16786 | |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16787 | eval "$as_ac_Header=no" |
| 16788 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16790 | fi |
| 16791 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16792 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16793 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16794 | cat >>confdefs.h <<_ACEOF |
| 16795 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16796 | _ACEOF |
| 16797 | |
| 16798 | fi |
| 16799 | |
| 16800 | done |
| 16801 | |
| 16802 | |
| 16803 | |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 16804 | |
| 16805 | |
| 16806 | |
| 16807 | |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16808 | for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16809 | do |
| 16810 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16811 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16812 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16813 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16815 | else |
| 16816 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16817 | /* confdefs.h. */ |
| 16818 | _ACEOF |
| 16819 | cat confdefs.h >>conftest.$ac_ext |
| 16820 | cat >>conftest.$ac_ext <<_ACEOF |
| 16821 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 16822 | #include <sys/types.h> |
Gerald Pfeifer | 87c369d | 2002-07-23 02:02:02 +0000 | [diff] [blame] | 16823 | #if HAVE_SYS_SOCKET_H |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16824 | # include <sys/socket.h> |
| 16825 | #endif |
| 16826 | |
| 16827 | #include <$ac_header> |
| 16828 | _ACEOF |
| 16829 | rm -f conftest.$ac_objext |
| 16830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16831 | (eval $ac_compile) 2>conftest.er1 |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16832 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16834 | rm -f conftest.er1 |
| 16835 | cat conftest.err >&5 |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16837 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16838 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16840 | (eval $ac_try) 2>&5 |
| 16841 | ac_status=$? |
| 16842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16843 | (exit $ac_status); }; } && |
| 16844 | { ac_try='test -s conftest.$ac_objext' |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16846 | (eval $ac_try) 2>&5 |
| 16847 | ac_status=$? |
| 16848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16849 | (exit $ac_status); }; }; then |
| 16850 | eval "$as_ac_Header=yes" |
| 16851 | else |
| 16852 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16854 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16855 | eval "$as_ac_Header=no" |
| 16856 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16858 | fi |
| 16859 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16860 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16861 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16862 | cat >>confdefs.h <<_ACEOF |
| 16863 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16864 | _ACEOF |
| 16865 | |
| 16866 | fi |
| 16867 | |
| 16868 | done |
| 16869 | |
| 16870 | |
| 16871 | |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16872 | for ac_header in resolv.h |
| 16873 | do |
| 16874 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16875 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16876 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16877 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16879 | else |
| 16880 | cat >conftest.$ac_ext <<_ACEOF |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16881 | /* confdefs.h. */ |
| 16882 | _ACEOF |
| 16883 | cat confdefs.h >>conftest.$ac_ext |
| 16884 | cat >>conftest.$ac_ext <<_ACEOF |
| 16885 | /* end confdefs.h. */ |
| 16886 | #include <sys/types.h> |
| 16887 | #if HAVE_SYS_SOCKET_H |
| 16888 | # include <sys/socket.h> |
| 16889 | #endif |
| 16890 | #if HAVE_NETINET_IN_H |
| 16891 | # include <netinet/in.h> |
| 16892 | #endif |
Pierre d'Herbemont | ae8ca36 | 2003-10-27 21:55:00 +0000 | [diff] [blame] | 16893 | #if HAVE_ARPA_NAMESER_H |
| 16894 | # include <arpa/nameser.h> |
| 16895 | #endif |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16896 | |
| 16897 | #include <$ac_header> |
| 16898 | _ACEOF |
| 16899 | rm -f conftest.$ac_objext |
| 16900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16901 | (eval $ac_compile) 2>conftest.er1 |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16902 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16903 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16904 | rm -f conftest.er1 |
| 16905 | cat conftest.err >&5 |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16907 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16908 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16910 | (eval $ac_try) 2>&5 |
| 16911 | ac_status=$? |
| 16912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16913 | (exit $ac_status); }; } && |
| 16914 | { ac_try='test -s conftest.$ac_objext' |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16916 | (eval $ac_try) 2>&5 |
| 16917 | ac_status=$? |
| 16918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16919 | (exit $ac_status); }; }; then |
| 16920 | eval "$as_ac_Header=yes" |
| 16921 | else |
| 16922 | echo "$as_me: failed program was:" >&5 |
| 16923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16924 | |
| 16925 | eval "$as_ac_Header=no" |
| 16926 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16928 | fi |
| 16929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16930 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16931 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16932 | cat >>confdefs.h <<_ACEOF |
| 16933 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16934 | _ACEOF |
| 16935 | |
| 16936 | fi |
| 16937 | |
| 16938 | done |
| 16939 | |
| 16940 | |
| 16941 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16942 | for ac_header in netinet/ip.h |
| 16943 | do |
| 16944 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16945 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16946 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16947 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16949 | else |
| 16950 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16951 | /* confdefs.h. */ |
| 16952 | _ACEOF |
| 16953 | cat confdefs.h >>conftest.$ac_ext |
| 16954 | cat >>conftest.$ac_ext <<_ACEOF |
| 16955 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 16956 | #include <sys/types.h> |
| 16957 | #if HAVE_SYS_SOCKET_H |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16958 | # include <sys/socket.h> |
| 16959 | #endif |
| 16960 | #if HAVE_NETINET_IN_SYSTM_H |
| 16961 | # include <netinet/in_systm.h> |
| 16962 | #endif |
| 16963 | |
| 16964 | #include <$ac_header> |
| 16965 | _ACEOF |
| 16966 | rm -f conftest.$ac_objext |
| 16967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16968 | (eval $ac_compile) 2>conftest.er1 |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16969 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16971 | rm -f conftest.er1 |
| 16972 | cat conftest.err >&5 |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16974 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16975 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16977 | (eval $ac_try) 2>&5 |
| 16978 | ac_status=$? |
| 16979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16980 | (exit $ac_status); }; } && |
| 16981 | { ac_try='test -s conftest.$ac_objext' |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16983 | (eval $ac_try) 2>&5 |
| 16984 | ac_status=$? |
| 16985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16986 | (exit $ac_status); }; }; then |
| 16987 | eval "$as_ac_Header=yes" |
| 16988 | else |
| 16989 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16991 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16992 | eval "$as_ac_Header=no" |
| 16993 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16995 | fi |
| 16996 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16997 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16998 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16999 | cat >>confdefs.h <<_ACEOF |
| 17000 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17001 | _ACEOF |
| 17002 | |
| 17003 | fi |
| 17004 | |
| 17005 | done |
| 17006 | |
| 17007 | |
| 17008 | |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 17009 | for ac_header in ucontext.h |
| 17010 | do |
| 17011 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17012 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 17014 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 17015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17016 | else |
| 17017 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17018 | /* confdefs.h. */ |
| 17019 | _ACEOF |
| 17020 | cat confdefs.h >>conftest.$ac_ext |
| 17021 | cat >>conftest.$ac_ext <<_ACEOF |
| 17022 | /* end confdefs.h. */ |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 17023 | #include <signal.h> |
| 17024 | |
| 17025 | #include <$ac_header> |
| 17026 | _ACEOF |
| 17027 | rm -f conftest.$ac_objext |
| 17028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17029 | (eval $ac_compile) 2>conftest.er1 |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 17030 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17032 | rm -f conftest.er1 |
| 17033 | cat conftest.err >&5 |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 17034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17035 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17036 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17038 | (eval $ac_try) 2>&5 |
| 17039 | ac_status=$? |
| 17040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17041 | (exit $ac_status); }; } && |
| 17042 | { ac_try='test -s conftest.$ac_objext' |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 17043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17044 | (eval $ac_try) 2>&5 |
| 17045 | ac_status=$? |
| 17046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17047 | (exit $ac_status); }; }; then |
| 17048 | eval "$as_ac_Header=yes" |
| 17049 | else |
| 17050 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17052 | |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 17053 | eval "$as_ac_Header=no" |
| 17054 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17055 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 17056 | fi |
| 17057 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 17058 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 17059 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 17060 | cat >>confdefs.h <<_ACEOF |
| 17061 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17062 | _ACEOF |
| 17063 | |
| 17064 | fi |
| 17065 | |
| 17066 | done |
| 17067 | |
| 17068 | |
| 17069 | |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17070 | echo "$as_me:$LINENO: checking for GNU style IPX support" >&5 |
| 17071 | echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6 |
| 17072 | if test "${ac_cv_c_ipx_gnu+set}" = set; then |
| 17073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17074 | else |
| 17075 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17076 | /* confdefs.h. */ |
| 17077 | _ACEOF |
| 17078 | cat confdefs.h >>conftest.$ac_ext |
| 17079 | cat >>conftest.$ac_ext <<_ACEOF |
| 17080 | /* end confdefs.h. */ |
| 17081 | #include <sys/types.h> |
| 17082 | #ifdef HAVE_SYS_SOCKET_H |
| 17083 | # include <sys/socket.h> |
| 17084 | #endif |
| 17085 | #include <netipx/ipx.h> |
| 17086 | int |
| 17087 | main () |
| 17088 | { |
| 17089 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
| 17090 | ; |
| 17091 | return 0; |
| 17092 | } |
| 17093 | _ACEOF |
| 17094 | rm -f conftest.$ac_objext |
| 17095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17096 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17097 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17099 | rm -f conftest.er1 |
| 17100 | cat conftest.err >&5 |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17102 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17103 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17105 | (eval $ac_try) 2>&5 |
| 17106 | ac_status=$? |
| 17107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17108 | (exit $ac_status); }; } && |
| 17109 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17111 | (eval $ac_try) 2>&5 |
| 17112 | ac_status=$? |
| 17113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17114 | (exit $ac_status); }; }; then |
| 17115 | ac_cv_c_ipx_gnu="yes" |
| 17116 | else |
| 17117 | echo "$as_me: failed program was:" >&5 |
| 17118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17119 | |
| 17120 | ac_cv_c_ipx_gnu="no" |
| 17121 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17123 | |
| 17124 | fi |
| 17125 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5 |
| 17126 | echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6 |
| 17127 | if test "$ac_cv_c_ipx_gnu" = "yes" |
| 17128 | then |
| 17129 | |
| 17130 | cat >>confdefs.h <<\_ACEOF |
| 17131 | #define HAVE_IPX_GNU 1 |
| 17132 | _ACEOF |
| 17133 | |
| 17134 | fi |
| 17135 | |
| 17136 | if test "$ac_cv_c_ipx_gnu" = "no" |
| 17137 | then |
| 17138 | echo "$as_me:$LINENO: checking for linux style IPX support" >&5 |
| 17139 | echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6 |
| 17140 | if test "${ac_cv_c_ipx_linux+set}" = set; then |
| 17141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17142 | else |
| 17143 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17144 | /* confdefs.h. */ |
| 17145 | _ACEOF |
| 17146 | cat confdefs.h >>conftest.$ac_ext |
| 17147 | cat >>conftest.$ac_ext <<_ACEOF |
| 17148 | /* end confdefs.h. */ |
| 17149 | #include <sys/types.h> |
| 17150 | #ifdef HAVE_SYS_SOCKET_H |
| 17151 | # include <sys/socket.h> |
| 17152 | #endif |
| 17153 | #include <asm/types.h> |
| 17154 | #include <linux/ipx.h> |
| 17155 | int |
| 17156 | main () |
| 17157 | { |
| 17158 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
| 17159 | ; |
| 17160 | return 0; |
| 17161 | } |
| 17162 | _ACEOF |
| 17163 | rm -f conftest.$ac_objext |
| 17164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17165 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17166 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17168 | rm -f conftest.er1 |
| 17169 | cat conftest.err >&5 |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17171 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17172 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17174 | (eval $ac_try) 2>&5 |
| 17175 | ac_status=$? |
| 17176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17177 | (exit $ac_status); }; } && |
| 17178 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17180 | (eval $ac_try) 2>&5 |
| 17181 | ac_status=$? |
| 17182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17183 | (exit $ac_status); }; }; then |
| 17184 | ac_cv_c_ipx_linux="yes" |
| 17185 | else |
| 17186 | echo "$as_me: failed program was:" >&5 |
| 17187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17188 | |
| 17189 | ac_cv_c_ipx_linux="no" |
| 17190 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17192 | |
| 17193 | fi |
| 17194 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5 |
| 17195 | echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6 |
| 17196 | if test "$ac_cv_c_ipx_linux" = "yes" |
| 17197 | then |
| 17198 | |
| 17199 | cat >>confdefs.h <<\_ACEOF |
| 17200 | #define HAVE_IPX_LINUX 1 |
| 17201 | _ACEOF |
| 17202 | |
| 17203 | fi |
| 17204 | fi |
| 17205 | |
| 17206 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17207 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17208 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 17209 | if test "${ac_cv_c_const+set}" = set; then |
| 17210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17211 | else |
| 17212 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17213 | /* confdefs.h. */ |
| 17214 | _ACEOF |
| 17215 | cat confdefs.h >>conftest.$ac_ext |
| 17216 | cat >>conftest.$ac_ext <<_ACEOF |
| 17217 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17218 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17219 | int |
| 17220 | main () |
| 17221 | { |
| 17222 | /* FIXME: Include the comments suggested by Paul. */ |
| 17223 | #ifndef __cplusplus |
| 17224 | /* Ultrix mips cc rejects this. */ |
| 17225 | typedef int charset[2]; |
| 17226 | const charset x; |
| 17227 | /* SunOS 4.1.1 cc rejects this. */ |
| 17228 | char const *const *ccp; |
| 17229 | char **p; |
| 17230 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 17231 | struct point {int x, y;}; |
| 17232 | static struct point const zero = {0,0}; |
| 17233 | /* AIX XL C 1.02.0.0 rejects this. |
| 17234 | It does not let you subtract one const X* pointer from another in |
| 17235 | an arm of an if-expression whose if-part is not a constant |
| 17236 | expression */ |
| 17237 | const char *g = "string"; |
| 17238 | ccp = &g + (g ? g-g : 0); |
| 17239 | /* HPUX 7.0 cc rejects these. */ |
| 17240 | ++ccp; |
| 17241 | p = (char**) ccp; |
| 17242 | ccp = (char const *const *) p; |
| 17243 | { /* SCO 3.2v4 cc rejects this. */ |
| 17244 | char *t; |
| 17245 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17246 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17247 | *t++ = 0; |
| 17248 | } |
| 17249 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 17250 | int x[] = {25, 17}; |
| 17251 | const int *foo = &x[0]; |
| 17252 | ++foo; |
| 17253 | } |
| 17254 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 17255 | typedef const int *iptr; |
| 17256 | iptr p = 0; |
| 17257 | ++p; |
| 17258 | } |
| 17259 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 17260 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 17261 | struct s { int j; const int *ap[3]; }; |
| 17262 | struct s *b; b->j = 5; |
| 17263 | } |
| 17264 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 17265 | const int foo = 10; |
| 17266 | } |
| 17267 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17268 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17269 | ; |
| 17270 | return 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17271 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17272 | _ACEOF |
| 17273 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17275 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17276 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17278 | rm -f conftest.er1 |
| 17279 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17281 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17282 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17284 | (eval $ac_try) 2>&5 |
| 17285 | ac_status=$? |
| 17286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17287 | (exit $ac_status); }; } && |
| 17288 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17290 | (eval $ac_try) 2>&5 |
| 17291 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17293 | (exit $ac_status); }; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17294 | ac_cv_c_const=yes |
| 17295 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17296 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17298 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17299 | ac_cv_c_const=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17300 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17302 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17303 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17304 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17305 | if test $ac_cv_c_const = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17306 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17307 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17308 | #define const |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17309 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17310 | |
| 17311 | fi |
| 17312 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17313 | echo "$as_me:$LINENO: checking for inline" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17314 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 17315 | if test "${ac_cv_c_inline+set}" = set; then |
| 17316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17317 | else |
| 17318 | ac_cv_c_inline=no |
| 17319 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17320 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17321 | /* confdefs.h. */ |
| 17322 | _ACEOF |
| 17323 | cat confdefs.h >>conftest.$ac_ext |
| 17324 | cat >>conftest.$ac_ext <<_ACEOF |
| 17325 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17326 | #ifndef __cplusplus |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17327 | typedef int foo_t; |
| 17328 | static $ac_kw foo_t static_foo () {return 0; } |
| 17329 | $ac_kw foo_t foo () {return 0; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17330 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17331 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17332 | _ACEOF |
| 17333 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17335 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17336 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17338 | rm -f conftest.er1 |
| 17339 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17341 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17342 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17344 | (eval $ac_try) 2>&5 |
| 17345 | ac_status=$? |
| 17346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17347 | (exit $ac_status); }; } && |
| 17348 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17350 | (eval $ac_try) 2>&5 |
| 17351 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17353 | (exit $ac_status); }; }; then |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17354 | ac_cv_c_inline=$ac_kw; break |
| 17355 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17356 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17358 | |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17359 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17361 | done |
| 17362 | |
| 17363 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17364 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17365 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17366 | |
| 17367 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17368 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17369 | inline | yes) ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17370 | *) |
| 17371 | case $ac_cv_c_inline in |
| 17372 | no) ac_val=;; |
| 17373 | *) ac_val=$ac_cv_c_inline;; |
| 17374 | esac |
| 17375 | cat >>confdefs.h <<_ACEOF |
| 17376 | #ifndef __cplusplus |
| 17377 | #define inline $ac_val |
| 17378 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17379 | _ACEOF |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17380 | ;; |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17381 | esac |
| 17382 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17383 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17384 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 17385 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 17386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17387 | else |
| 17388 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17389 | /* confdefs.h. */ |
| 17390 | _ACEOF |
| 17391 | cat confdefs.h >>conftest.$ac_ext |
| 17392 | cat >>conftest.$ac_ext <<_ACEOF |
| 17393 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17394 | $ac_includes_default |
| 17395 | int |
| 17396 | main () |
| 17397 | { |
| 17398 | if ((mode_t *) 0) |
| 17399 | return 0; |
| 17400 | if (sizeof (mode_t)) |
| 17401 | return 0; |
| 17402 | ; |
| 17403 | return 0; |
| 17404 | } |
| 17405 | _ACEOF |
| 17406 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17408 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17409 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17411 | rm -f conftest.er1 |
| 17412 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17414 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17415 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17417 | (eval $ac_try) 2>&5 |
| 17418 | ac_status=$? |
| 17419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17420 | (exit $ac_status); }; } && |
| 17421 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17423 | (eval $ac_try) 2>&5 |
| 17424 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17426 | (exit $ac_status); }; }; then |
| 17427 | ac_cv_type_mode_t=yes |
| 17428 | else |
| 17429 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17431 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17432 | ac_cv_type_mode_t=no |
| 17433 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17434 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17435 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17436 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17437 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 17438 | if test $ac_cv_type_mode_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17439 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17440 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17441 | #define HAVE_MODE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17442 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17443 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17444 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17445 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17446 | echo "$as_me:$LINENO: checking for off_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17447 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 17448 | if test "${ac_cv_type_off_t+set}" = set; then |
| 17449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17450 | else |
| 17451 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17452 | /* confdefs.h. */ |
| 17453 | _ACEOF |
| 17454 | cat confdefs.h >>conftest.$ac_ext |
| 17455 | cat >>conftest.$ac_ext <<_ACEOF |
| 17456 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17457 | $ac_includes_default |
| 17458 | int |
| 17459 | main () |
| 17460 | { |
| 17461 | if ((off_t *) 0) |
| 17462 | return 0; |
| 17463 | if (sizeof (off_t)) |
| 17464 | return 0; |
| 17465 | ; |
| 17466 | return 0; |
| 17467 | } |
| 17468 | _ACEOF |
| 17469 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17471 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17472 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17474 | rm -f conftest.er1 |
| 17475 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17477 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17480 | (eval $ac_try) 2>&5 |
| 17481 | ac_status=$? |
| 17482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17483 | (exit $ac_status); }; } && |
| 17484 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17486 | (eval $ac_try) 2>&5 |
| 17487 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17489 | (exit $ac_status); }; }; then |
| 17490 | ac_cv_type_off_t=yes |
| 17491 | else |
| 17492 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17494 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17495 | ac_cv_type_off_t=no |
| 17496 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17498 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17499 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17500 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 17501 | if test $ac_cv_type_off_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17502 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17503 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17504 | #define HAVE_OFF_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17505 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17506 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17507 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17508 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17509 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17510 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 17511 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 17512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17513 | else |
| 17514 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17515 | /* confdefs.h. */ |
| 17516 | _ACEOF |
| 17517 | cat confdefs.h >>conftest.$ac_ext |
| 17518 | cat >>conftest.$ac_ext <<_ACEOF |
| 17519 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17520 | $ac_includes_default |
| 17521 | int |
| 17522 | main () |
| 17523 | { |
| 17524 | if ((pid_t *) 0) |
| 17525 | return 0; |
| 17526 | if (sizeof (pid_t)) |
| 17527 | return 0; |
| 17528 | ; |
| 17529 | return 0; |
| 17530 | } |
| 17531 | _ACEOF |
| 17532 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17534 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17535 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17537 | rm -f conftest.er1 |
| 17538 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17540 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17543 | (eval $ac_try) 2>&5 |
| 17544 | ac_status=$? |
| 17545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17546 | (exit $ac_status); }; } && |
| 17547 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17549 | (eval $ac_try) 2>&5 |
| 17550 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17552 | (exit $ac_status); }; }; then |
| 17553 | ac_cv_type_pid_t=yes |
| 17554 | else |
| 17555 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17557 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17558 | ac_cv_type_pid_t=no |
| 17559 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17561 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17562 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17563 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 17564 | if test $ac_cv_type_pid_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17565 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17566 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17567 | #define HAVE_PID_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17568 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17569 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17570 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17571 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17572 | echo "$as_me:$LINENO: checking for size_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17573 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 17574 | if test "${ac_cv_type_size_t+set}" = set; then |
| 17575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17576 | else |
| 17577 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17578 | /* confdefs.h. */ |
| 17579 | _ACEOF |
| 17580 | cat confdefs.h >>conftest.$ac_ext |
| 17581 | cat >>conftest.$ac_ext <<_ACEOF |
| 17582 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17583 | $ac_includes_default |
| 17584 | int |
| 17585 | main () |
| 17586 | { |
| 17587 | if ((size_t *) 0) |
| 17588 | return 0; |
| 17589 | if (sizeof (size_t)) |
| 17590 | return 0; |
| 17591 | ; |
| 17592 | return 0; |
| 17593 | } |
| 17594 | _ACEOF |
| 17595 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17597 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17598 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17600 | rm -f conftest.er1 |
| 17601 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17603 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17606 | (eval $ac_try) 2>&5 |
| 17607 | ac_status=$? |
| 17608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17609 | (exit $ac_status); }; } && |
| 17610 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17612 | (eval $ac_try) 2>&5 |
| 17613 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17615 | (exit $ac_status); }; }; then |
| 17616 | ac_cv_type_size_t=yes |
| 17617 | else |
| 17618 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17620 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17621 | ac_cv_type_size_t=no |
| 17622 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17624 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17625 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17626 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 17627 | if test $ac_cv_type_size_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17628 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17629 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17630 | #define HAVE_SIZE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17631 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17632 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17633 | |
| 17634 | fi |
| 17635 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 17636 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
| 17637 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 17638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17639 | else |
| 17640 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17641 | /* confdefs.h. */ |
| 17642 | _ACEOF |
| 17643 | cat confdefs.h >>conftest.$ac_ext |
| 17644 | cat >>conftest.$ac_ext <<_ACEOF |
| 17645 | /* end confdefs.h. */ |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17646 | $ac_includes_default |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17647 | int |
| 17648 | main () |
| 17649 | { |
| 17650 | if ((ssize_t *) 0) |
| 17651 | return 0; |
| 17652 | if (sizeof (ssize_t)) |
| 17653 | return 0; |
| 17654 | ; |
| 17655 | return 0; |
| 17656 | } |
| 17657 | _ACEOF |
| 17658 | rm -f conftest.$ac_objext |
| 17659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17660 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17661 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17663 | rm -f conftest.er1 |
| 17664 | cat conftest.err >&5 |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17666 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17667 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17669 | (eval $ac_try) 2>&5 |
| 17670 | ac_status=$? |
| 17671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17672 | (exit $ac_status); }; } && |
| 17673 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17675 | (eval $ac_try) 2>&5 |
| 17676 | ac_status=$? |
| 17677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17678 | (exit $ac_status); }; }; then |
| 17679 | ac_cv_type_ssize_t=yes |
| 17680 | else |
| 17681 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17683 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17684 | ac_cv_type_ssize_t=no |
| 17685 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17686 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17687 | fi |
| 17688 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 17689 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 |
| 17690 | if test $ac_cv_type_ssize_t = yes; then |
| 17691 | |
| 17692 | cat >>confdefs.h <<_ACEOF |
| 17693 | #define HAVE_SSIZE_T 1 |
| 17694 | _ACEOF |
| 17695 | |
| 17696 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17697 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17698 | echo "$as_me:$LINENO: checking for long long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17699 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 17700 | if test "${ac_cv_type_long_long+set}" = set; then |
| 17701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17702 | else |
| 17703 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17704 | /* confdefs.h. */ |
| 17705 | _ACEOF |
| 17706 | cat confdefs.h >>conftest.$ac_ext |
| 17707 | cat >>conftest.$ac_ext <<_ACEOF |
| 17708 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17709 | $ac_includes_default |
| 17710 | int |
| 17711 | main () |
| 17712 | { |
| 17713 | if ((long long *) 0) |
| 17714 | return 0; |
| 17715 | if (sizeof (long long)) |
| 17716 | return 0; |
| 17717 | ; |
| 17718 | return 0; |
| 17719 | } |
| 17720 | _ACEOF |
| 17721 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17723 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17724 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17725 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17726 | rm -f conftest.er1 |
| 17727 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17729 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17730 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17732 | (eval $ac_try) 2>&5 |
| 17733 | ac_status=$? |
| 17734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17735 | (exit $ac_status); }; } && |
| 17736 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17738 | (eval $ac_try) 2>&5 |
| 17739 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17741 | (exit $ac_status); }; }; then |
| 17742 | ac_cv_type_long_long=yes |
| 17743 | else |
| 17744 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17746 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17747 | ac_cv_type_long_long=no |
| 17748 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17749 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17750 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17751 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17752 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 17753 | if test $ac_cv_type_long_long = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17754 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17755 | cat >>confdefs.h <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 17756 | #define HAVE_LONG_LONG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17757 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 17758 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17759 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 17760 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17761 | echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 |
| 17762 | echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6 |
| 17763 | if test "${ac_cv_type_fsblkcnt_t+set}" = set; then |
| 17764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17765 | else |
| 17766 | cat >conftest.$ac_ext <<_ACEOF |
| 17767 | /* confdefs.h. */ |
| 17768 | _ACEOF |
| 17769 | cat confdefs.h >>conftest.$ac_ext |
| 17770 | cat >>conftest.$ac_ext <<_ACEOF |
| 17771 | /* end confdefs.h. */ |
| 17772 | $ac_includes_default |
| 17773 | int |
| 17774 | main () |
| 17775 | { |
| 17776 | if ((fsblkcnt_t *) 0) |
| 17777 | return 0; |
| 17778 | if (sizeof (fsblkcnt_t)) |
| 17779 | return 0; |
| 17780 | ; |
| 17781 | return 0; |
| 17782 | } |
| 17783 | _ACEOF |
| 17784 | rm -f conftest.$ac_objext |
| 17785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17786 | (eval $ac_compile) 2>conftest.er1 |
| 17787 | ac_status=$? |
| 17788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17789 | rm -f conftest.er1 |
| 17790 | cat conftest.err >&5 |
| 17791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17792 | (exit $ac_status); } && |
| 17793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17795 | (eval $ac_try) 2>&5 |
| 17796 | ac_status=$? |
| 17797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17798 | (exit $ac_status); }; } && |
| 17799 | { ac_try='test -s conftest.$ac_objext' |
| 17800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17801 | (eval $ac_try) 2>&5 |
| 17802 | ac_status=$? |
| 17803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17804 | (exit $ac_status); }; }; then |
| 17805 | ac_cv_type_fsblkcnt_t=yes |
| 17806 | else |
| 17807 | echo "$as_me: failed program was:" >&5 |
| 17808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17809 | |
| 17810 | ac_cv_type_fsblkcnt_t=no |
| 17811 | fi |
| 17812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17813 | fi |
| 17814 | echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 |
| 17815 | echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6 |
| 17816 | if test $ac_cv_type_fsblkcnt_t = yes; then |
| 17817 | |
| 17818 | cat >>confdefs.h <<_ACEOF |
| 17819 | #define HAVE_FSBLKCNT_T 1 |
| 17820 | _ACEOF |
| 17821 | |
| 17822 | |
| 17823 | fi |
| 17824 | echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 |
| 17825 | echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6 |
| 17826 | if test "${ac_cv_type_fsfilcnt_t+set}" = set; then |
| 17827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17828 | else |
| 17829 | cat >conftest.$ac_ext <<_ACEOF |
| 17830 | /* confdefs.h. */ |
| 17831 | _ACEOF |
| 17832 | cat confdefs.h >>conftest.$ac_ext |
| 17833 | cat >>conftest.$ac_ext <<_ACEOF |
| 17834 | /* end confdefs.h. */ |
| 17835 | $ac_includes_default |
| 17836 | int |
| 17837 | main () |
| 17838 | { |
| 17839 | if ((fsfilcnt_t *) 0) |
| 17840 | return 0; |
| 17841 | if (sizeof (fsfilcnt_t)) |
| 17842 | return 0; |
| 17843 | ; |
| 17844 | return 0; |
| 17845 | } |
| 17846 | _ACEOF |
| 17847 | rm -f conftest.$ac_objext |
| 17848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17849 | (eval $ac_compile) 2>conftest.er1 |
| 17850 | ac_status=$? |
| 17851 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17852 | rm -f conftest.er1 |
| 17853 | cat conftest.err >&5 |
| 17854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17855 | (exit $ac_status); } && |
| 17856 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17858 | (eval $ac_try) 2>&5 |
| 17859 | ac_status=$? |
| 17860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17861 | (exit $ac_status); }; } && |
| 17862 | { ac_try='test -s conftest.$ac_objext' |
| 17863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17864 | (eval $ac_try) 2>&5 |
| 17865 | ac_status=$? |
| 17866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17867 | (exit $ac_status); }; }; then |
| 17868 | ac_cv_type_fsfilcnt_t=yes |
| 17869 | else |
| 17870 | echo "$as_me: failed program was:" >&5 |
| 17871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17872 | |
| 17873 | ac_cv_type_fsfilcnt_t=no |
| 17874 | fi |
| 17875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17876 | fi |
| 17877 | echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 |
| 17878 | echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6 |
| 17879 | if test $ac_cv_type_fsfilcnt_t = yes; then |
| 17880 | |
| 17881 | cat >>confdefs.h <<_ACEOF |
| 17882 | #define HAVE_FSFILCNT_T 1 |
| 17883 | _ACEOF |
| 17884 | |
| 17885 | |
| 17886 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 17887 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17888 | |
| 17889 | 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] | 17890 | echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6 |
| 17891 | if test "${wine_cv_linux_input_h+set}" = set; then |
| 17892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17893 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17894 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17895 | /* confdefs.h. */ |
| 17896 | _ACEOF |
| 17897 | cat confdefs.h >>conftest.$ac_ext |
| 17898 | cat >>conftest.$ac_ext <<_ACEOF |
| 17899 | /* end confdefs.h. */ |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17900 | |
| 17901 | #include <linux/input.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17902 | |
| 17903 | int |
| 17904 | main () |
| 17905 | { |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17906 | |
| 17907 | int foo = EVIOCGBIT(EV_ABS,42); |
| 17908 | int bar = BTN_PINKIE; |
| 17909 | int fortytwo = 42; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17910 | |
| 17911 | ; |
| 17912 | return 0; |
| 17913 | } |
| 17914 | _ACEOF |
| 17915 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17917 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17918 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17920 | rm -f conftest.er1 |
| 17921 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17923 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17924 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17926 | (eval $ac_try) 2>&5 |
| 17927 | ac_status=$? |
| 17928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17929 | (exit $ac_status); }; } && |
| 17930 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17932 | (eval $ac_try) 2>&5 |
| 17933 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17935 | (exit $ac_status); }; }; then |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17936 | wine_cv_linux_input_h=yes |
| 17937 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17938 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17940 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17941 | wine_cv_linux_input_h=no |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17942 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17944 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17945 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17946 | echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17947 | echo "${ECHO_T}$wine_cv_linux_input_h" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17948 | if test "$wine_cv_linux_input_h" = "yes" |
| 17949 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17950 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17951 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17952 | #define HAVE_CORRECT_LINUXINPUT_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17953 | _ACEOF |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17954 | |
| 17955 | fi |
| 17956 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17957 | |
| 17958 | 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] | 17959 | echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6 |
| 17960 | if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then |
| 17961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 17962 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17963 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17964 | /* confdefs.h. */ |
| 17965 | _ACEOF |
| 17966 | cat confdefs.h >>conftest.$ac_ext |
| 17967 | cat >>conftest.$ac_ext <<_ACEOF |
| 17968 | /* end confdefs.h. */ |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 17969 | |
| 17970 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17971 | |
| 17972 | int |
| 17973 | main () |
| 17974 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 17975 | |
| 17976 | char *name=NULL; |
| 17977 | struct hostent he; |
| 17978 | struct hostent *result; |
| 17979 | char *buf=NULL; |
| 17980 | int bufsize=0; |
| 17981 | int res,errnr; |
| 17982 | char *addr=NULL; |
| 17983 | int addrlen=0; |
| 17984 | int addrtype=0; |
| 17985 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 17986 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17987 | |
| 17988 | ; |
| 17989 | return 0; |
| 17990 | } |
| 17991 | _ACEOF |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 17992 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17994 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17995 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17997 | rm -f conftest.er1 |
| 17998 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18000 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18001 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18003 | (eval $ac_try) 2>&5 |
| 18004 | ac_status=$? |
| 18005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18006 | (exit $ac_status); }; } && |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 18007 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18009 | (eval $ac_try) 2>&5 |
| 18010 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18012 | (exit $ac_status); }; }; then |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18013 | wine_cv_linux_gethostbyname_r_6=yes |
| 18014 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18015 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18017 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18018 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18019 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18020 | fi |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 18021 | rm -f conftest.err conftest.$ac_objext \ |
| 18022 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18023 | |
| 18024 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18025 | echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18026 | echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18027 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 18028 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18029 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18030 | cat >>confdefs.h <<\_ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18031 | #define HAVE_LINUX_GETHOSTBYNAME_R_6 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18032 | _ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18033 | |
| 18034 | fi |
| 18035 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18036 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18037 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18038 | 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] | 18039 | echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6 |
| 18040 | if test "${wine_cv_linux_joystick_22_api+set}" = set; then |
| 18041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18042 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18043 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18044 | /* confdefs.h. */ |
| 18045 | _ACEOF |
| 18046 | cat confdefs.h >>conftest.$ac_ext |
| 18047 | cat >>conftest.$ac_ext <<_ACEOF |
| 18048 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18049 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18050 | #include <sys/ioctl.h> |
| 18051 | #include <linux/joystick.h> |
| 18052 | |
| 18053 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 18054 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 18055 | #error "no 2.2 header" |
| 18056 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18057 | |
| 18058 | int |
| 18059 | main () |
| 18060 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18061 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18062 | ; |
| 18063 | return 0; |
| 18064 | } |
| 18065 | _ACEOF |
| 18066 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18068 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18069 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18071 | rm -f conftest.er1 |
| 18072 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18074 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18075 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18077 | (eval $ac_try) 2>&5 |
| 18078 | ac_status=$? |
| 18079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18080 | (exit $ac_status); }; } && |
| 18081 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18083 | (eval $ac_try) 2>&5 |
| 18084 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18086 | (exit $ac_status); }; }; then |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18087 | wine_cv_linux_joystick_22_api=yes |
| 18088 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18089 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18091 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18092 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18093 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18095 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18096 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18097 | echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18098 | echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6 |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 18099 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18100 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18101 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18102 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18103 | #define HAVE_LINUX_22_JOYSTICK_API 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18104 | _ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18105 | |
| 18106 | fi |
| 18107 | fi |
| 18108 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18109 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18110 | if test "$ac_cv_header_sys_vfs_h" = "yes" |
| 18111 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18112 | echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18113 | echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6 |
| 18114 | if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then |
| 18115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18116 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18117 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18118 | /* confdefs.h. */ |
| 18119 | _ACEOF |
| 18120 | cat confdefs.h >>conftest.$ac_ext |
| 18121 | cat >>conftest.$ac_ext <<_ACEOF |
| 18122 | /* end confdefs.h. */ |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18123 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18124 | #include <sys/types.h> |
| 18125 | #ifdef HAVE_SYS_PARAM_H |
| 18126 | # include <sys/param.h> |
| 18127 | #endif |
| 18128 | #include <sys/vfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18129 | |
| 18130 | int |
| 18131 | main () |
| 18132 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18133 | |
| 18134 | struct statfs stfs; |
| 18135 | |
| 18136 | memset(&stfs,0,sizeof(stfs)); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18137 | |
| 18138 | ; |
| 18139 | return 0; |
| 18140 | } |
| 18141 | _ACEOF |
| 18142 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18144 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18145 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18147 | rm -f conftest.er1 |
| 18148 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18150 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18151 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18153 | (eval $ac_try) 2>&5 |
| 18154 | ac_status=$? |
| 18155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18156 | (exit $ac_status); }; } && |
| 18157 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18159 | (eval $ac_try) 2>&5 |
| 18160 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18162 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18163 | wine_cv_sys_vfs_has_statfs=yes |
| 18164 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18165 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18167 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18168 | wine_cv_sys_vfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18169 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18170 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18172 | |
| 18173 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18174 | echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18175 | echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18176 | if test "$wine_cv_sys_vfs_has_statfs" = "yes" |
| 18177 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18178 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18179 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18180 | #define STATFS_DEFINED_BY_SYS_VFS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18181 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18182 | |
| 18183 | fi |
| 18184 | fi |
| 18185 | |
| 18186 | if test "$ac_cv_header_sys_statfs_h" = "yes" |
| 18187 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18188 | echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18189 | echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6 |
| 18190 | if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then |
| 18191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18192 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18193 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18194 | /* confdefs.h. */ |
| 18195 | _ACEOF |
| 18196 | cat confdefs.h >>conftest.$ac_ext |
| 18197 | cat >>conftest.$ac_ext <<_ACEOF |
| 18198 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18199 | |
| 18200 | #include <sys/types.h> |
| 18201 | #ifdef HAVE_SYS_PARAM_H |
| 18202 | # include <sys/param.h> |
| 18203 | #endif |
| 18204 | #include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18205 | |
| 18206 | int |
| 18207 | main () |
| 18208 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18209 | |
| 18210 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18211 | |
| 18212 | ; |
| 18213 | return 0; |
| 18214 | } |
| 18215 | _ACEOF |
| 18216 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18218 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18219 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18221 | rm -f conftest.er1 |
| 18222 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18224 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18225 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18227 | (eval $ac_try) 2>&5 |
| 18228 | ac_status=$? |
| 18229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18230 | (exit $ac_status); }; } && |
| 18231 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18233 | (eval $ac_try) 2>&5 |
| 18234 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18236 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18237 | wine_cv_sys_statfs_has_statfs=yes |
| 18238 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18239 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18241 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18242 | wine_cv_sys_statfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18243 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18244 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18246 | |
| 18247 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18248 | echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18249 | echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18250 | if test "$wine_cv_sys_statfs_has_statfs" = "yes" |
| 18251 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18252 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18253 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18254 | #define STATFS_DEFINED_BY_SYS_STATFS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18255 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18256 | |
| 18257 | fi |
| 18258 | fi |
| 18259 | |
| 18260 | if test "$ac_cv_header_sys_mount_h" = "yes" |
| 18261 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18262 | echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18263 | echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6 |
| 18264 | if test "${wine_cv_sys_mount_has_statfs+set}" = set; then |
| 18265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18266 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18267 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18268 | /* confdefs.h. */ |
| 18269 | _ACEOF |
| 18270 | cat confdefs.h >>conftest.$ac_ext |
| 18271 | cat >>conftest.$ac_ext <<_ACEOF |
| 18272 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18273 | |
| 18274 | #include <sys/types.h> |
| 18275 | #ifdef HAVE_SYS_PARAM_H |
| 18276 | # include <sys/param.h> |
| 18277 | #endif |
| 18278 | #include <sys/mount.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18279 | |
| 18280 | int |
| 18281 | main () |
| 18282 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18283 | |
| 18284 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18285 | |
| 18286 | ; |
| 18287 | return 0; |
| 18288 | } |
| 18289 | _ACEOF |
| 18290 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18292 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18293 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18295 | rm -f conftest.er1 |
| 18296 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18298 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18301 | (eval $ac_try) 2>&5 |
| 18302 | ac_status=$? |
| 18303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18304 | (exit $ac_status); }; } && |
| 18305 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18307 | (eval $ac_try) 2>&5 |
| 18308 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18310 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18311 | wine_cv_sys_mount_has_statfs=yes |
| 18312 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18313 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18315 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18316 | wine_cv_sys_mount_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18317 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18318 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18320 | |
| 18321 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18322 | echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18323 | echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18324 | if test "$wine_cv_sys_mount_has_statfs" = "yes" |
| 18325 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18326 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18327 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18328 | #define STATFS_DEFINED_BY_SYS_MOUNT 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18329 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18330 | |
| 18331 | fi |
| 18332 | fi |
| 18333 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18334 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18335 | echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5 |
| 18336 | echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6 |
| 18337 | if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18339 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18340 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18341 | /* confdefs.h. */ |
| 18342 | _ACEOF |
| 18343 | cat confdefs.h >>conftest.$ac_ext |
| 18344 | cat >>conftest.$ac_ext <<_ACEOF |
| 18345 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18346 | #include <sys/types.h> |
| 18347 | #ifdef HAVE_SYS_PARAM_H |
| 18348 | # include <sys/param.h> |
| 18349 | #endif |
| 18350 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18351 | # include <sys/mount.h> |
| 18352 | #else |
| 18353 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18354 | # include <sys/vfs.h> |
| 18355 | # else |
| 18356 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18357 | # include <sys/statfs.h> |
| 18358 | # endif |
| 18359 | # endif |
| 18360 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18361 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18362 | int |
| 18363 | main () |
| 18364 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18365 | static struct statfs ac_aggr; |
| 18366 | if (ac_aggr.f_bfree) |
| 18367 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18368 | ; |
| 18369 | return 0; |
| 18370 | } |
| 18371 | _ACEOF |
| 18372 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18374 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18375 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18376 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18377 | rm -f conftest.er1 |
| 18378 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18380 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18381 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18383 | (eval $ac_try) 2>&5 |
| 18384 | ac_status=$? |
| 18385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18386 | (exit $ac_status); }; } && |
| 18387 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18389 | (eval $ac_try) 2>&5 |
| 18390 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18392 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18393 | ac_cv_member_struct_statfs_f_bfree=yes |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18394 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18395 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18397 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18398 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18399 | /* confdefs.h. */ |
| 18400 | _ACEOF |
| 18401 | cat confdefs.h >>conftest.$ac_ext |
| 18402 | cat >>conftest.$ac_ext <<_ACEOF |
| 18403 | /* end confdefs.h. */ |
| 18404 | #include <sys/types.h> |
| 18405 | #ifdef HAVE_SYS_PARAM_H |
| 18406 | # include <sys/param.h> |
| 18407 | #endif |
| 18408 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18409 | # include <sys/mount.h> |
| 18410 | #else |
| 18411 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18412 | # include <sys/vfs.h> |
| 18413 | # else |
| 18414 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18415 | # include <sys/statfs.h> |
| 18416 | # endif |
| 18417 | # endif |
| 18418 | #endif |
| 18419 | |
| 18420 | int |
| 18421 | main () |
| 18422 | { |
| 18423 | static struct statfs ac_aggr; |
| 18424 | if (sizeof ac_aggr.f_bfree) |
| 18425 | return 0; |
| 18426 | ; |
| 18427 | return 0; |
| 18428 | } |
| 18429 | _ACEOF |
| 18430 | rm -f conftest.$ac_objext |
| 18431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18432 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18433 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18435 | rm -f conftest.er1 |
| 18436 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18438 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18439 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18441 | (eval $ac_try) 2>&5 |
| 18442 | ac_status=$? |
| 18443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18444 | (exit $ac_status); }; } && |
| 18445 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18447 | (eval $ac_try) 2>&5 |
| 18448 | ac_status=$? |
| 18449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18450 | (exit $ac_status); }; }; then |
| 18451 | ac_cv_member_struct_statfs_f_bfree=yes |
| 18452 | else |
| 18453 | echo "$as_me: failed program was:" >&5 |
| 18454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18455 | |
| 18456 | ac_cv_member_struct_statfs_f_bfree=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18457 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18459 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18461 | fi |
| 18462 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5 |
| 18463 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6 |
| 18464 | if test $ac_cv_member_struct_statfs_f_bfree = yes; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18465 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18466 | cat >>confdefs.h <<_ACEOF |
| 18467 | #define HAVE_STRUCT_STATFS_F_BFREE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18468 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18469 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18470 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18471 | fi |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18472 | echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5 |
| 18473 | echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6 |
| 18474 | if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 18476 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18477 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18478 | /* confdefs.h. */ |
| 18479 | _ACEOF |
| 18480 | cat confdefs.h >>conftest.$ac_ext |
| 18481 | cat >>conftest.$ac_ext <<_ACEOF |
| 18482 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18483 | #include <sys/types.h> |
| 18484 | #ifdef HAVE_SYS_PARAM_H |
| 18485 | # include <sys/param.h> |
| 18486 | #endif |
| 18487 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18488 | # include <sys/mount.h> |
| 18489 | #else |
| 18490 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18491 | # include <sys/vfs.h> |
| 18492 | # else |
| 18493 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18494 | # include <sys/statfs.h> |
| 18495 | # endif |
| 18496 | # endif |
| 18497 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18498 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18499 | int |
| 18500 | main () |
| 18501 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18502 | static struct statfs ac_aggr; |
| 18503 | if (ac_aggr.f_bavail) |
| 18504 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18505 | ; |
| 18506 | return 0; |
| 18507 | } |
| 18508 | _ACEOF |
| 18509 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18511 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18512 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18514 | rm -f conftest.er1 |
| 18515 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18517 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18518 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18520 | (eval $ac_try) 2>&5 |
| 18521 | ac_status=$? |
| 18522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18523 | (exit $ac_status); }; } && |
| 18524 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18526 | (eval $ac_try) 2>&5 |
| 18527 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18529 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18530 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 18531 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18532 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18534 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18535 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18536 | /* confdefs.h. */ |
| 18537 | _ACEOF |
| 18538 | cat confdefs.h >>conftest.$ac_ext |
| 18539 | cat >>conftest.$ac_ext <<_ACEOF |
| 18540 | /* end confdefs.h. */ |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 18541 | #include <sys/types.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18542 | #ifdef HAVE_SYS_PARAM_H |
| 18543 | # include <sys/param.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 18544 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18545 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18546 | # include <sys/mount.h> |
| 18547 | #else |
| 18548 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18549 | # include <sys/vfs.h> |
| 18550 | # else |
| 18551 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18552 | # include <sys/statfs.h> |
| 18553 | # endif |
| 18554 | # endif |
| 18555 | #endif |
| 18556 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18557 | int |
| 18558 | main () |
| 18559 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18560 | static struct statfs ac_aggr; |
| 18561 | if (sizeof ac_aggr.f_bavail) |
| 18562 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18563 | ; |
| 18564 | return 0; |
| 18565 | } |
| 18566 | _ACEOF |
| 18567 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18569 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18570 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18572 | rm -f conftest.er1 |
| 18573 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18575 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18576 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18578 | (eval $ac_try) 2>&5 |
| 18579 | ac_status=$? |
| 18580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18581 | (exit $ac_status); }; } && |
| 18582 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18584 | (eval $ac_try) 2>&5 |
| 18585 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18587 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18588 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 18589 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18590 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18592 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18593 | ac_cv_member_struct_statfs_f_bavail=no |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 18594 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 18596 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 18598 | fi |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18599 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5 |
| 18600 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6 |
| 18601 | if test $ac_cv_member_struct_statfs_f_bavail = yes; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 18602 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18603 | cat >>confdefs.h <<_ACEOF |
| 18604 | #define HAVE_STRUCT_STATFS_F_BAVAIL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18605 | _ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 18606 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18607 | |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 18608 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18609 | echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5 |
| 18610 | echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6 |
| 18611 | if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then |
| 18612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18613 | else |
| 18614 | cat >conftest.$ac_ext <<_ACEOF |
| 18615 | /* confdefs.h. */ |
| 18616 | _ACEOF |
| 18617 | cat confdefs.h >>conftest.$ac_ext |
| 18618 | cat >>conftest.$ac_ext <<_ACEOF |
| 18619 | /* end confdefs.h. */ |
| 18620 | #include <sys/types.h> |
| 18621 | #ifdef HAVE_SYS_PARAM_H |
| 18622 | # include <sys/param.h> |
| 18623 | #endif |
| 18624 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18625 | # include <sys/mount.h> |
| 18626 | #else |
| 18627 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18628 | # include <sys/vfs.h> |
| 18629 | # else |
| 18630 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18631 | # include <sys/statfs.h> |
| 18632 | # endif |
| 18633 | # endif |
| 18634 | #endif |
| 18635 | |
| 18636 | int |
| 18637 | main () |
| 18638 | { |
| 18639 | static struct statfs ac_aggr; |
| 18640 | if (ac_aggr.f_frsize) |
| 18641 | return 0; |
| 18642 | ; |
| 18643 | return 0; |
| 18644 | } |
| 18645 | _ACEOF |
| 18646 | rm -f conftest.$ac_objext |
| 18647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18648 | (eval $ac_compile) 2>conftest.er1 |
| 18649 | ac_status=$? |
| 18650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18651 | rm -f conftest.er1 |
| 18652 | cat conftest.err >&5 |
| 18653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18654 | (exit $ac_status); } && |
| 18655 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18657 | (eval $ac_try) 2>&5 |
| 18658 | ac_status=$? |
| 18659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18660 | (exit $ac_status); }; } && |
| 18661 | { ac_try='test -s conftest.$ac_objext' |
| 18662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18663 | (eval $ac_try) 2>&5 |
| 18664 | ac_status=$? |
| 18665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18666 | (exit $ac_status); }; }; then |
| 18667 | ac_cv_member_struct_statfs_f_frsize=yes |
| 18668 | else |
| 18669 | echo "$as_me: failed program was:" >&5 |
| 18670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18671 | |
| 18672 | cat >conftest.$ac_ext <<_ACEOF |
| 18673 | /* confdefs.h. */ |
| 18674 | _ACEOF |
| 18675 | cat confdefs.h >>conftest.$ac_ext |
| 18676 | cat >>conftest.$ac_ext <<_ACEOF |
| 18677 | /* end confdefs.h. */ |
| 18678 | #include <sys/types.h> |
| 18679 | #ifdef HAVE_SYS_PARAM_H |
| 18680 | # include <sys/param.h> |
| 18681 | #endif |
| 18682 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18683 | # include <sys/mount.h> |
| 18684 | #else |
| 18685 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18686 | # include <sys/vfs.h> |
| 18687 | # else |
| 18688 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18689 | # include <sys/statfs.h> |
| 18690 | # endif |
| 18691 | # endif |
| 18692 | #endif |
| 18693 | |
| 18694 | int |
| 18695 | main () |
| 18696 | { |
| 18697 | static struct statfs ac_aggr; |
| 18698 | if (sizeof ac_aggr.f_frsize) |
| 18699 | return 0; |
| 18700 | ; |
| 18701 | return 0; |
| 18702 | } |
| 18703 | _ACEOF |
| 18704 | rm -f conftest.$ac_objext |
| 18705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18706 | (eval $ac_compile) 2>conftest.er1 |
| 18707 | ac_status=$? |
| 18708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18709 | rm -f conftest.er1 |
| 18710 | cat conftest.err >&5 |
| 18711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18712 | (exit $ac_status); } && |
| 18713 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18715 | (eval $ac_try) 2>&5 |
| 18716 | ac_status=$? |
| 18717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18718 | (exit $ac_status); }; } && |
| 18719 | { ac_try='test -s conftest.$ac_objext' |
| 18720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18721 | (eval $ac_try) 2>&5 |
| 18722 | ac_status=$? |
| 18723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18724 | (exit $ac_status); }; }; then |
| 18725 | ac_cv_member_struct_statfs_f_frsize=yes |
| 18726 | else |
| 18727 | echo "$as_me: failed program was:" >&5 |
| 18728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18729 | |
| 18730 | ac_cv_member_struct_statfs_f_frsize=no |
| 18731 | fi |
| 18732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18733 | fi |
| 18734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18735 | fi |
| 18736 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5 |
| 18737 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6 |
| 18738 | if test $ac_cv_member_struct_statfs_f_frsize = yes; then |
| 18739 | |
| 18740 | cat >>confdefs.h <<_ACEOF |
| 18741 | #define HAVE_STRUCT_STATFS_F_FRSIZE 1 |
| 18742 | _ACEOF |
| 18743 | |
| 18744 | |
| 18745 | fi |
| 18746 | echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5 |
| 18747 | echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6 |
| 18748 | if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then |
| 18749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18750 | else |
| 18751 | cat >conftest.$ac_ext <<_ACEOF |
| 18752 | /* confdefs.h. */ |
| 18753 | _ACEOF |
| 18754 | cat confdefs.h >>conftest.$ac_ext |
| 18755 | cat >>conftest.$ac_ext <<_ACEOF |
| 18756 | /* end confdefs.h. */ |
| 18757 | #include <sys/types.h> |
| 18758 | #ifdef HAVE_SYS_PARAM_H |
| 18759 | # include <sys/param.h> |
| 18760 | #endif |
| 18761 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18762 | # include <sys/mount.h> |
| 18763 | #else |
| 18764 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18765 | # include <sys/vfs.h> |
| 18766 | # else |
| 18767 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18768 | # include <sys/statfs.h> |
| 18769 | # endif |
| 18770 | # endif |
| 18771 | #endif |
| 18772 | |
| 18773 | int |
| 18774 | main () |
| 18775 | { |
| 18776 | static struct statfs ac_aggr; |
| 18777 | if (ac_aggr.f_ffree) |
| 18778 | return 0; |
| 18779 | ; |
| 18780 | return 0; |
| 18781 | } |
| 18782 | _ACEOF |
| 18783 | rm -f conftest.$ac_objext |
| 18784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18785 | (eval $ac_compile) 2>conftest.er1 |
| 18786 | ac_status=$? |
| 18787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18788 | rm -f conftest.er1 |
| 18789 | cat conftest.err >&5 |
| 18790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18791 | (exit $ac_status); } && |
| 18792 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18794 | (eval $ac_try) 2>&5 |
| 18795 | ac_status=$? |
| 18796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18797 | (exit $ac_status); }; } && |
| 18798 | { ac_try='test -s conftest.$ac_objext' |
| 18799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18800 | (eval $ac_try) 2>&5 |
| 18801 | ac_status=$? |
| 18802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18803 | (exit $ac_status); }; }; then |
| 18804 | ac_cv_member_struct_statfs_f_ffree=yes |
| 18805 | else |
| 18806 | echo "$as_me: failed program was:" >&5 |
| 18807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18808 | |
| 18809 | cat >conftest.$ac_ext <<_ACEOF |
| 18810 | /* confdefs.h. */ |
| 18811 | _ACEOF |
| 18812 | cat confdefs.h >>conftest.$ac_ext |
| 18813 | cat >>conftest.$ac_ext <<_ACEOF |
| 18814 | /* end confdefs.h. */ |
| 18815 | #include <sys/types.h> |
| 18816 | #ifdef HAVE_SYS_PARAM_H |
| 18817 | # include <sys/param.h> |
| 18818 | #endif |
| 18819 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18820 | # include <sys/mount.h> |
| 18821 | #else |
| 18822 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18823 | # include <sys/vfs.h> |
| 18824 | # else |
| 18825 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18826 | # include <sys/statfs.h> |
| 18827 | # endif |
| 18828 | # endif |
| 18829 | #endif |
| 18830 | |
| 18831 | int |
| 18832 | main () |
| 18833 | { |
| 18834 | static struct statfs ac_aggr; |
| 18835 | if (sizeof ac_aggr.f_ffree) |
| 18836 | return 0; |
| 18837 | ; |
| 18838 | return 0; |
| 18839 | } |
| 18840 | _ACEOF |
| 18841 | rm -f conftest.$ac_objext |
| 18842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18843 | (eval $ac_compile) 2>conftest.er1 |
| 18844 | ac_status=$? |
| 18845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18846 | rm -f conftest.er1 |
| 18847 | cat conftest.err >&5 |
| 18848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18849 | (exit $ac_status); } && |
| 18850 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18852 | (eval $ac_try) 2>&5 |
| 18853 | ac_status=$? |
| 18854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18855 | (exit $ac_status); }; } && |
| 18856 | { ac_try='test -s conftest.$ac_objext' |
| 18857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18858 | (eval $ac_try) 2>&5 |
| 18859 | ac_status=$? |
| 18860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18861 | (exit $ac_status); }; }; then |
| 18862 | ac_cv_member_struct_statfs_f_ffree=yes |
| 18863 | else |
| 18864 | echo "$as_me: failed program was:" >&5 |
| 18865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18866 | |
| 18867 | ac_cv_member_struct_statfs_f_ffree=no |
| 18868 | fi |
| 18869 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18870 | fi |
| 18871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18872 | fi |
| 18873 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5 |
| 18874 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6 |
| 18875 | if test $ac_cv_member_struct_statfs_f_ffree = yes; then |
| 18876 | |
| 18877 | cat >>confdefs.h <<_ACEOF |
| 18878 | #define HAVE_STRUCT_STATFS_F_FFREE 1 |
| 18879 | _ACEOF |
| 18880 | |
| 18881 | |
| 18882 | fi |
| 18883 | echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5 |
| 18884 | echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6 |
| 18885 | if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then |
| 18886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18887 | else |
| 18888 | cat >conftest.$ac_ext <<_ACEOF |
| 18889 | /* confdefs.h. */ |
| 18890 | _ACEOF |
| 18891 | cat confdefs.h >>conftest.$ac_ext |
| 18892 | cat >>conftest.$ac_ext <<_ACEOF |
| 18893 | /* end confdefs.h. */ |
| 18894 | #include <sys/types.h> |
| 18895 | #ifdef HAVE_SYS_PARAM_H |
| 18896 | # include <sys/param.h> |
| 18897 | #endif |
| 18898 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18899 | # include <sys/mount.h> |
| 18900 | #else |
| 18901 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18902 | # include <sys/vfs.h> |
| 18903 | # else |
| 18904 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18905 | # include <sys/statfs.h> |
| 18906 | # endif |
| 18907 | # endif |
| 18908 | #endif |
| 18909 | |
| 18910 | int |
| 18911 | main () |
| 18912 | { |
| 18913 | static struct statfs ac_aggr; |
| 18914 | if (ac_aggr.f_favail) |
| 18915 | return 0; |
| 18916 | ; |
| 18917 | return 0; |
| 18918 | } |
| 18919 | _ACEOF |
| 18920 | rm -f conftest.$ac_objext |
| 18921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18922 | (eval $ac_compile) 2>conftest.er1 |
| 18923 | ac_status=$? |
| 18924 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18925 | rm -f conftest.er1 |
| 18926 | cat conftest.err >&5 |
| 18927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18928 | (exit $ac_status); } && |
| 18929 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18931 | (eval $ac_try) 2>&5 |
| 18932 | ac_status=$? |
| 18933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18934 | (exit $ac_status); }; } && |
| 18935 | { ac_try='test -s conftest.$ac_objext' |
| 18936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18937 | (eval $ac_try) 2>&5 |
| 18938 | ac_status=$? |
| 18939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18940 | (exit $ac_status); }; }; then |
| 18941 | ac_cv_member_struct_statfs_f_favail=yes |
| 18942 | else |
| 18943 | echo "$as_me: failed program was:" >&5 |
| 18944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18945 | |
| 18946 | cat >conftest.$ac_ext <<_ACEOF |
| 18947 | /* confdefs.h. */ |
| 18948 | _ACEOF |
| 18949 | cat confdefs.h >>conftest.$ac_ext |
| 18950 | cat >>conftest.$ac_ext <<_ACEOF |
| 18951 | /* end confdefs.h. */ |
| 18952 | #include <sys/types.h> |
| 18953 | #ifdef HAVE_SYS_PARAM_H |
| 18954 | # include <sys/param.h> |
| 18955 | #endif |
| 18956 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18957 | # include <sys/mount.h> |
| 18958 | #else |
| 18959 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18960 | # include <sys/vfs.h> |
| 18961 | # else |
| 18962 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18963 | # include <sys/statfs.h> |
| 18964 | # endif |
| 18965 | # endif |
| 18966 | #endif |
| 18967 | |
| 18968 | int |
| 18969 | main () |
| 18970 | { |
| 18971 | static struct statfs ac_aggr; |
| 18972 | if (sizeof ac_aggr.f_favail) |
| 18973 | return 0; |
| 18974 | ; |
| 18975 | return 0; |
| 18976 | } |
| 18977 | _ACEOF |
| 18978 | rm -f conftest.$ac_objext |
| 18979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18980 | (eval $ac_compile) 2>conftest.er1 |
| 18981 | ac_status=$? |
| 18982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18983 | rm -f conftest.er1 |
| 18984 | cat conftest.err >&5 |
| 18985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18986 | (exit $ac_status); } && |
| 18987 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18989 | (eval $ac_try) 2>&5 |
| 18990 | ac_status=$? |
| 18991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18992 | (exit $ac_status); }; } && |
| 18993 | { ac_try='test -s conftest.$ac_objext' |
| 18994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18995 | (eval $ac_try) 2>&5 |
| 18996 | ac_status=$? |
| 18997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18998 | (exit $ac_status); }; }; then |
| 18999 | ac_cv_member_struct_statfs_f_favail=yes |
| 19000 | else |
| 19001 | echo "$as_me: failed program was:" >&5 |
| 19002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19003 | |
| 19004 | ac_cv_member_struct_statfs_f_favail=no |
| 19005 | fi |
| 19006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19007 | fi |
| 19008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19009 | fi |
| 19010 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5 |
| 19011 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6 |
| 19012 | if test $ac_cv_member_struct_statfs_f_favail = yes; then |
| 19013 | |
| 19014 | cat >>confdefs.h <<_ACEOF |
| 19015 | #define HAVE_STRUCT_STATFS_F_FAVAIL 1 |
| 19016 | _ACEOF |
| 19017 | |
| 19018 | |
| 19019 | fi |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 19020 | echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5 |
| 19021 | echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6 |
| 19022 | if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then |
| 19023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19024 | else |
| 19025 | cat >conftest.$ac_ext <<_ACEOF |
| 19026 | /* confdefs.h. */ |
| 19027 | _ACEOF |
| 19028 | cat confdefs.h >>conftest.$ac_ext |
| 19029 | cat >>conftest.$ac_ext <<_ACEOF |
| 19030 | /* end confdefs.h. */ |
| 19031 | #include <sys/types.h> |
| 19032 | #ifdef HAVE_SYS_PARAM_H |
| 19033 | # include <sys/param.h> |
| 19034 | #endif |
| 19035 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 19036 | # include <sys/mount.h> |
| 19037 | #else |
| 19038 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 19039 | # include <sys/vfs.h> |
| 19040 | # else |
| 19041 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 19042 | # include <sys/statfs.h> |
| 19043 | # endif |
| 19044 | # endif |
| 19045 | #endif |
| 19046 | |
| 19047 | int |
| 19048 | main () |
| 19049 | { |
| 19050 | static struct statfs ac_aggr; |
| 19051 | if (ac_aggr.f_namelen) |
| 19052 | return 0; |
| 19053 | ; |
| 19054 | return 0; |
| 19055 | } |
| 19056 | _ACEOF |
| 19057 | rm -f conftest.$ac_objext |
| 19058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19059 | (eval $ac_compile) 2>conftest.er1 |
| 19060 | ac_status=$? |
| 19061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19062 | rm -f conftest.er1 |
| 19063 | cat conftest.err >&5 |
| 19064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19065 | (exit $ac_status); } && |
| 19066 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19068 | (eval $ac_try) 2>&5 |
| 19069 | ac_status=$? |
| 19070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19071 | (exit $ac_status); }; } && |
| 19072 | { ac_try='test -s conftest.$ac_objext' |
| 19073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19074 | (eval $ac_try) 2>&5 |
| 19075 | ac_status=$? |
| 19076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19077 | (exit $ac_status); }; }; then |
| 19078 | ac_cv_member_struct_statfs_f_namelen=yes |
| 19079 | else |
| 19080 | echo "$as_me: failed program was:" >&5 |
| 19081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19082 | |
| 19083 | cat >conftest.$ac_ext <<_ACEOF |
| 19084 | /* confdefs.h. */ |
| 19085 | _ACEOF |
| 19086 | cat confdefs.h >>conftest.$ac_ext |
| 19087 | cat >>conftest.$ac_ext <<_ACEOF |
| 19088 | /* end confdefs.h. */ |
| 19089 | #include <sys/types.h> |
| 19090 | #ifdef HAVE_SYS_PARAM_H |
| 19091 | # include <sys/param.h> |
| 19092 | #endif |
| 19093 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 19094 | # include <sys/mount.h> |
| 19095 | #else |
| 19096 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 19097 | # include <sys/vfs.h> |
| 19098 | # else |
| 19099 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 19100 | # include <sys/statfs.h> |
| 19101 | # endif |
| 19102 | # endif |
| 19103 | #endif |
| 19104 | |
| 19105 | int |
| 19106 | main () |
| 19107 | { |
| 19108 | static struct statfs ac_aggr; |
| 19109 | if (sizeof ac_aggr.f_namelen) |
| 19110 | return 0; |
| 19111 | ; |
| 19112 | return 0; |
| 19113 | } |
| 19114 | _ACEOF |
| 19115 | rm -f conftest.$ac_objext |
| 19116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19117 | (eval $ac_compile) 2>conftest.er1 |
| 19118 | ac_status=$? |
| 19119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19120 | rm -f conftest.er1 |
| 19121 | cat conftest.err >&5 |
| 19122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19123 | (exit $ac_status); } && |
| 19124 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19126 | (eval $ac_try) 2>&5 |
| 19127 | ac_status=$? |
| 19128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19129 | (exit $ac_status); }; } && |
| 19130 | { ac_try='test -s conftest.$ac_objext' |
| 19131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19132 | (eval $ac_try) 2>&5 |
| 19133 | ac_status=$? |
| 19134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19135 | (exit $ac_status); }; }; then |
| 19136 | ac_cv_member_struct_statfs_f_namelen=yes |
| 19137 | else |
| 19138 | echo "$as_me: failed program was:" >&5 |
| 19139 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19140 | |
| 19141 | ac_cv_member_struct_statfs_f_namelen=no |
| 19142 | fi |
| 19143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19144 | fi |
| 19145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19146 | fi |
| 19147 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5 |
| 19148 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6 |
| 19149 | if test $ac_cv_member_struct_statfs_f_namelen = yes; then |
| 19150 | |
| 19151 | cat >>confdefs.h <<_ACEOF |
| 19152 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1 |
| 19153 | _ACEOF |
| 19154 | |
| 19155 | |
| 19156 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19157 | |
| 19158 | |
| 19159 | echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5 |
| 19160 | echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6 |
| 19161 | if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then |
| 19162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19163 | else |
| 19164 | cat >conftest.$ac_ext <<_ACEOF |
| 19165 | /* confdefs.h. */ |
| 19166 | _ACEOF |
| 19167 | cat confdefs.h >>conftest.$ac_ext |
| 19168 | cat >>conftest.$ac_ext <<_ACEOF |
| 19169 | /* end confdefs.h. */ |
| 19170 | #ifdef HAVE_SYS_STATVFS_H |
| 19171 | #include <sys/statvfs.h> |
| 19172 | #endif |
| 19173 | |
| 19174 | int |
| 19175 | main () |
| 19176 | { |
| 19177 | static struct statvfs ac_aggr; |
| 19178 | if (ac_aggr.f_blocks) |
| 19179 | return 0; |
| 19180 | ; |
| 19181 | return 0; |
| 19182 | } |
| 19183 | _ACEOF |
| 19184 | rm -f conftest.$ac_objext |
| 19185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19186 | (eval $ac_compile) 2>conftest.er1 |
| 19187 | ac_status=$? |
| 19188 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19189 | rm -f conftest.er1 |
| 19190 | cat conftest.err >&5 |
| 19191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19192 | (exit $ac_status); } && |
| 19193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19195 | (eval $ac_try) 2>&5 |
| 19196 | ac_status=$? |
| 19197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19198 | (exit $ac_status); }; } && |
| 19199 | { ac_try='test -s conftest.$ac_objext' |
| 19200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19201 | (eval $ac_try) 2>&5 |
| 19202 | ac_status=$? |
| 19203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19204 | (exit $ac_status); }; }; then |
| 19205 | ac_cv_member_struct_statvfs_f_blocks=yes |
| 19206 | else |
| 19207 | echo "$as_me: failed program was:" >&5 |
| 19208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19209 | |
| 19210 | cat >conftest.$ac_ext <<_ACEOF |
| 19211 | /* confdefs.h. */ |
| 19212 | _ACEOF |
| 19213 | cat confdefs.h >>conftest.$ac_ext |
| 19214 | cat >>conftest.$ac_ext <<_ACEOF |
| 19215 | /* end confdefs.h. */ |
| 19216 | #ifdef HAVE_SYS_STATVFS_H |
| 19217 | #include <sys/statvfs.h> |
| 19218 | #endif |
| 19219 | |
| 19220 | int |
| 19221 | main () |
| 19222 | { |
| 19223 | static struct statvfs ac_aggr; |
| 19224 | if (sizeof ac_aggr.f_blocks) |
| 19225 | return 0; |
| 19226 | ; |
| 19227 | return 0; |
| 19228 | } |
| 19229 | _ACEOF |
| 19230 | rm -f conftest.$ac_objext |
| 19231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19232 | (eval $ac_compile) 2>conftest.er1 |
| 19233 | ac_status=$? |
| 19234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19235 | rm -f conftest.er1 |
| 19236 | cat conftest.err >&5 |
| 19237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19238 | (exit $ac_status); } && |
| 19239 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19241 | (eval $ac_try) 2>&5 |
| 19242 | ac_status=$? |
| 19243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19244 | (exit $ac_status); }; } && |
| 19245 | { ac_try='test -s conftest.$ac_objext' |
| 19246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19247 | (eval $ac_try) 2>&5 |
| 19248 | ac_status=$? |
| 19249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19250 | (exit $ac_status); }; }; then |
| 19251 | ac_cv_member_struct_statvfs_f_blocks=yes |
| 19252 | else |
| 19253 | echo "$as_me: failed program was:" >&5 |
| 19254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19255 | |
| 19256 | ac_cv_member_struct_statvfs_f_blocks=no |
| 19257 | fi |
| 19258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19259 | fi |
| 19260 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19261 | fi |
| 19262 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5 |
| 19263 | echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6 |
| 19264 | if test $ac_cv_member_struct_statvfs_f_blocks = yes; then |
| 19265 | |
| 19266 | cat >>confdefs.h <<_ACEOF |
| 19267 | #define HAVE_STRUCT_STATVFS_F_BLOCKS 1 |
| 19268 | _ACEOF |
| 19269 | |
| 19270 | |
| 19271 | fi |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 19272 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19273 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19274 | echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5 |
| 19275 | echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6 |
| 19276 | if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 19278 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19279 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19280 | /* confdefs.h. */ |
| 19281 | _ACEOF |
| 19282 | cat confdefs.h >>conftest.$ac_ext |
| 19283 | cat >>conftest.$ac_ext <<_ACEOF |
| 19284 | /* end confdefs.h. */ |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 19285 | #include <sys/types.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 19286 | #ifdef HAVE_SYS_SOCKET_H |
| 19287 | # include <sys/socket.h> |
| 19288 | #endif |
| 19289 | #ifdef HAVE_SYS_UN_H |
| 19290 | # include <sys/un.h> |
| 19291 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19292 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19293 | int |
| 19294 | main () |
| 19295 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19296 | static struct msghdr ac_aggr; |
| 19297 | if (ac_aggr.msg_accrights) |
| 19298 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19299 | ; |
| 19300 | return 0; |
| 19301 | } |
| 19302 | _ACEOF |
| 19303 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19305 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19306 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19308 | rm -f conftest.er1 |
| 19309 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19311 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19312 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19314 | (eval $ac_try) 2>&5 |
| 19315 | ac_status=$? |
| 19316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19317 | (exit $ac_status); }; } && |
| 19318 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19320 | (eval $ac_try) 2>&5 |
| 19321 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19323 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19324 | ac_cv_member_struct_msghdr_msg_accrights=yes |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19325 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19326 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19328 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19329 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19330 | /* confdefs.h. */ |
| 19331 | _ACEOF |
| 19332 | cat confdefs.h >>conftest.$ac_ext |
| 19333 | cat >>conftest.$ac_ext <<_ACEOF |
| 19334 | /* end confdefs.h. */ |
| 19335 | #include <sys/types.h> |
| 19336 | #ifdef HAVE_SYS_SOCKET_H |
| 19337 | # include <sys/socket.h> |
| 19338 | #endif |
| 19339 | #ifdef HAVE_SYS_UN_H |
| 19340 | # include <sys/un.h> |
| 19341 | #endif |
| 19342 | |
| 19343 | int |
| 19344 | main () |
| 19345 | { |
| 19346 | static struct msghdr ac_aggr; |
| 19347 | if (sizeof ac_aggr.msg_accrights) |
| 19348 | return 0; |
| 19349 | ; |
| 19350 | return 0; |
| 19351 | } |
| 19352 | _ACEOF |
| 19353 | rm -f conftest.$ac_objext |
| 19354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19355 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19356 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19358 | rm -f conftest.er1 |
| 19359 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19361 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19362 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19364 | (eval $ac_try) 2>&5 |
| 19365 | ac_status=$? |
| 19366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19367 | (exit $ac_status); }; } && |
| 19368 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19370 | (eval $ac_try) 2>&5 |
| 19371 | ac_status=$? |
| 19372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19373 | (exit $ac_status); }; }; then |
| 19374 | ac_cv_member_struct_msghdr_msg_accrights=yes |
| 19375 | else |
| 19376 | echo "$as_me: failed program was:" >&5 |
| 19377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19378 | |
| 19379 | ac_cv_member_struct_msghdr_msg_accrights=no |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19380 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19382 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19384 | fi |
| 19385 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5 |
| 19386 | echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6 |
| 19387 | if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19388 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19389 | cat >>confdefs.h <<_ACEOF |
| 19390 | #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19391 | _ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19392 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19393 | |
| 19394 | fi |
| 19395 | echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 19396 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6 |
| 19397 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
| 19398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19399 | else |
| 19400 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19401 | /* confdefs.h. */ |
| 19402 | _ACEOF |
| 19403 | cat confdefs.h >>conftest.$ac_ext |
| 19404 | cat >>conftest.$ac_ext <<_ACEOF |
| 19405 | /* end confdefs.h. */ |
| 19406 | #include <sys/types.h> |
| 19407 | #ifdef HAVE_SYS_SOCKET_H |
| 19408 | # include <sys/socket.h> |
| 19409 | #endif |
| 19410 | #ifdef HAVE_SYS_UN_H |
| 19411 | # include <sys/un.h> |
| 19412 | #endif |
| 19413 | |
| 19414 | int |
| 19415 | main () |
| 19416 | { |
| 19417 | static struct sockaddr ac_aggr; |
| 19418 | if (ac_aggr.sa_len) |
| 19419 | return 0; |
| 19420 | ; |
| 19421 | return 0; |
| 19422 | } |
| 19423 | _ACEOF |
| 19424 | rm -f conftest.$ac_objext |
| 19425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19426 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19427 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19429 | rm -f conftest.er1 |
| 19430 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19432 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19433 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19435 | (eval $ac_try) 2>&5 |
| 19436 | ac_status=$? |
| 19437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19438 | (exit $ac_status); }; } && |
| 19439 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19441 | (eval $ac_try) 2>&5 |
| 19442 | ac_status=$? |
| 19443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19444 | (exit $ac_status); }; }; then |
| 19445 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 19446 | else |
| 19447 | echo "$as_me: failed program was:" >&5 |
| 19448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19449 | |
| 19450 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19451 | /* confdefs.h. */ |
| 19452 | _ACEOF |
| 19453 | cat confdefs.h >>conftest.$ac_ext |
| 19454 | cat >>conftest.$ac_ext <<_ACEOF |
| 19455 | /* end confdefs.h. */ |
| 19456 | #include <sys/types.h> |
| 19457 | #ifdef HAVE_SYS_SOCKET_H |
| 19458 | # include <sys/socket.h> |
| 19459 | #endif |
| 19460 | #ifdef HAVE_SYS_UN_H |
| 19461 | # include <sys/un.h> |
| 19462 | #endif |
| 19463 | |
| 19464 | int |
| 19465 | main () |
| 19466 | { |
| 19467 | static struct sockaddr ac_aggr; |
| 19468 | if (sizeof ac_aggr.sa_len) |
| 19469 | return 0; |
| 19470 | ; |
| 19471 | return 0; |
| 19472 | } |
| 19473 | _ACEOF |
| 19474 | rm -f conftest.$ac_objext |
| 19475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19476 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19477 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19479 | rm -f conftest.er1 |
| 19480 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19482 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19483 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19485 | (eval $ac_try) 2>&5 |
| 19486 | ac_status=$? |
| 19487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19488 | (exit $ac_status); }; } && |
| 19489 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19491 | (eval $ac_try) 2>&5 |
| 19492 | ac_status=$? |
| 19493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19494 | (exit $ac_status); }; }; then |
| 19495 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 19496 | else |
| 19497 | echo "$as_me: failed program was:" >&5 |
| 19498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19499 | |
| 19500 | ac_cv_member_struct_sockaddr_sa_len=no |
| 19501 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19502 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19503 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19505 | fi |
| 19506 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 19507 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6 |
| 19508 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
| 19509 | |
| 19510 | cat >>confdefs.h <<_ACEOF |
| 19511 | #define HAVE_STRUCT_SOCKADDR_SA_LEN 1 |
| 19512 | _ACEOF |
| 19513 | |
| 19514 | |
| 19515 | fi |
| 19516 | echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5 |
| 19517 | echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6 |
| 19518 | if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then |
| 19519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19520 | else |
| 19521 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19522 | /* confdefs.h. */ |
| 19523 | _ACEOF |
| 19524 | cat confdefs.h >>conftest.$ac_ext |
| 19525 | cat >>conftest.$ac_ext <<_ACEOF |
| 19526 | /* end confdefs.h. */ |
| 19527 | #include <sys/types.h> |
| 19528 | #ifdef HAVE_SYS_SOCKET_H |
| 19529 | # include <sys/socket.h> |
| 19530 | #endif |
| 19531 | #ifdef HAVE_SYS_UN_H |
| 19532 | # include <sys/un.h> |
| 19533 | #endif |
| 19534 | |
| 19535 | int |
| 19536 | main () |
| 19537 | { |
| 19538 | static struct sockaddr_un ac_aggr; |
| 19539 | if (ac_aggr.sun_len) |
| 19540 | return 0; |
| 19541 | ; |
| 19542 | return 0; |
| 19543 | } |
| 19544 | _ACEOF |
| 19545 | rm -f conftest.$ac_objext |
| 19546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19547 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19548 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19550 | rm -f conftest.er1 |
| 19551 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19553 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19554 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19556 | (eval $ac_try) 2>&5 |
| 19557 | ac_status=$? |
| 19558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19559 | (exit $ac_status); }; } && |
| 19560 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19562 | (eval $ac_try) 2>&5 |
| 19563 | ac_status=$? |
| 19564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19565 | (exit $ac_status); }; }; then |
| 19566 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 19567 | else |
| 19568 | echo "$as_me: failed program was:" >&5 |
| 19569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19570 | |
| 19571 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19572 | /* confdefs.h. */ |
| 19573 | _ACEOF |
| 19574 | cat confdefs.h >>conftest.$ac_ext |
| 19575 | cat >>conftest.$ac_ext <<_ACEOF |
| 19576 | /* end confdefs.h. */ |
| 19577 | #include <sys/types.h> |
| 19578 | #ifdef HAVE_SYS_SOCKET_H |
| 19579 | # include <sys/socket.h> |
| 19580 | #endif |
| 19581 | #ifdef HAVE_SYS_UN_H |
| 19582 | # include <sys/un.h> |
| 19583 | #endif |
| 19584 | |
| 19585 | int |
| 19586 | main () |
| 19587 | { |
| 19588 | static struct sockaddr_un ac_aggr; |
| 19589 | if (sizeof ac_aggr.sun_len) |
| 19590 | return 0; |
| 19591 | ; |
| 19592 | return 0; |
| 19593 | } |
| 19594 | _ACEOF |
| 19595 | rm -f conftest.$ac_objext |
| 19596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19597 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19598 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19600 | rm -f conftest.er1 |
| 19601 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19603 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19606 | (eval $ac_try) 2>&5 |
| 19607 | ac_status=$? |
| 19608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19609 | (exit $ac_status); }; } && |
| 19610 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19612 | (eval $ac_try) 2>&5 |
| 19613 | ac_status=$? |
| 19614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19615 | (exit $ac_status); }; }; then |
| 19616 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 19617 | else |
| 19618 | echo "$as_me: failed program was:" >&5 |
| 19619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19620 | |
| 19621 | ac_cv_member_struct_sockaddr_un_sun_len=no |
| 19622 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19624 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19626 | fi |
| 19627 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5 |
| 19628 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6 |
| 19629 | if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then |
| 19630 | |
| 19631 | cat >>confdefs.h <<_ACEOF |
| 19632 | #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 |
| 19633 | _ACEOF |
| 19634 | |
| 19635 | |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19636 | fi |
| 19637 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19638 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19639 | echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5 |
| 19640 | echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6 |
| 19641 | if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then |
| 19642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19643 | else |
| 19644 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19645 | /* confdefs.h. */ |
| 19646 | _ACEOF |
| 19647 | cat confdefs.h >>conftest.$ac_ext |
| 19648 | cat >>conftest.$ac_ext <<_ACEOF |
| 19649 | /* end confdefs.h. */ |
| 19650 | #include <signal.h> |
| 19651 | |
| 19652 | int |
| 19653 | main () |
| 19654 | { |
| 19655 | static siginfo_t ac_aggr; |
| 19656 | if (ac_aggr.si_fd) |
| 19657 | return 0; |
| 19658 | ; |
| 19659 | return 0; |
| 19660 | } |
| 19661 | _ACEOF |
| 19662 | rm -f conftest.$ac_objext |
| 19663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19664 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19665 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19667 | rm -f conftest.er1 |
| 19668 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19670 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19671 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19673 | (eval $ac_try) 2>&5 |
| 19674 | ac_status=$? |
| 19675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19676 | (exit $ac_status); }; } && |
| 19677 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19679 | (eval $ac_try) 2>&5 |
| 19680 | ac_status=$? |
| 19681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19682 | (exit $ac_status); }; }; then |
| 19683 | ac_cv_member_siginfo_t_si_fd=yes |
| 19684 | else |
| 19685 | echo "$as_me: failed program was:" >&5 |
| 19686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19687 | |
| 19688 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19689 | /* confdefs.h. */ |
| 19690 | _ACEOF |
| 19691 | cat confdefs.h >>conftest.$ac_ext |
| 19692 | cat >>conftest.$ac_ext <<_ACEOF |
| 19693 | /* end confdefs.h. */ |
| 19694 | #include <signal.h> |
| 19695 | |
| 19696 | int |
| 19697 | main () |
| 19698 | { |
| 19699 | static siginfo_t ac_aggr; |
| 19700 | if (sizeof ac_aggr.si_fd) |
| 19701 | return 0; |
| 19702 | ; |
| 19703 | return 0; |
| 19704 | } |
| 19705 | _ACEOF |
| 19706 | rm -f conftest.$ac_objext |
| 19707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19708 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19709 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19711 | rm -f conftest.er1 |
| 19712 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19714 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19717 | (eval $ac_try) 2>&5 |
| 19718 | ac_status=$? |
| 19719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19720 | (exit $ac_status); }; } && |
| 19721 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19723 | (eval $ac_try) 2>&5 |
| 19724 | ac_status=$? |
| 19725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19726 | (exit $ac_status); }; }; then |
| 19727 | ac_cv_member_siginfo_t_si_fd=yes |
| 19728 | else |
| 19729 | echo "$as_me: failed program was:" >&5 |
| 19730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19731 | |
| 19732 | ac_cv_member_siginfo_t_si_fd=no |
| 19733 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19735 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19737 | fi |
| 19738 | echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5 |
| 19739 | echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6 |
| 19740 | if test $ac_cv_member_siginfo_t_si_fd = yes; then |
| 19741 | |
| 19742 | cat >>confdefs.h <<_ACEOF |
| 19743 | #define HAVE_SIGINFO_T_SI_FD 1 |
| 19744 | _ACEOF |
| 19745 | |
| 19746 | |
| 19747 | fi |
| 19748 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19749 | |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19750 | echo "$as_me:$LINENO: checking for struct option.name" >&5 |
| 19751 | echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6 |
| 19752 | if test "${ac_cv_member_struct_option_name+set}" = set; then |
| 19753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19754 | else |
| 19755 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19756 | /* confdefs.h. */ |
| 19757 | _ACEOF |
| 19758 | cat confdefs.h >>conftest.$ac_ext |
| 19759 | cat >>conftest.$ac_ext <<_ACEOF |
| 19760 | /* end confdefs.h. */ |
| 19761 | #ifdef HAVE_GETOPT_H |
| 19762 | #include <getopt.h> |
| 19763 | #endif |
| 19764 | |
| 19765 | int |
| 19766 | main () |
| 19767 | { |
| 19768 | static struct option ac_aggr; |
| 19769 | if (ac_aggr.name) |
| 19770 | return 0; |
| 19771 | ; |
| 19772 | return 0; |
| 19773 | } |
| 19774 | _ACEOF |
| 19775 | rm -f conftest.$ac_objext |
| 19776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19777 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19778 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19780 | rm -f conftest.er1 |
| 19781 | cat conftest.err >&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19783 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19784 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19786 | (eval $ac_try) 2>&5 |
| 19787 | ac_status=$? |
| 19788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19789 | (exit $ac_status); }; } && |
| 19790 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19792 | (eval $ac_try) 2>&5 |
| 19793 | ac_status=$? |
| 19794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19795 | (exit $ac_status); }; }; then |
| 19796 | ac_cv_member_struct_option_name=yes |
| 19797 | else |
| 19798 | echo "$as_me: failed program was:" >&5 |
| 19799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19800 | |
| 19801 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19802 | /* confdefs.h. */ |
| 19803 | _ACEOF |
| 19804 | cat confdefs.h >>conftest.$ac_ext |
| 19805 | cat >>conftest.$ac_ext <<_ACEOF |
| 19806 | /* end confdefs.h. */ |
| 19807 | #ifdef HAVE_GETOPT_H |
| 19808 | #include <getopt.h> |
| 19809 | #endif |
| 19810 | |
| 19811 | int |
| 19812 | main () |
| 19813 | { |
| 19814 | static struct option ac_aggr; |
| 19815 | if (sizeof ac_aggr.name) |
| 19816 | return 0; |
| 19817 | ; |
| 19818 | return 0; |
| 19819 | } |
| 19820 | _ACEOF |
| 19821 | rm -f conftest.$ac_objext |
| 19822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19823 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19824 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19826 | rm -f conftest.er1 |
| 19827 | cat conftest.err >&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19829 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19830 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19832 | (eval $ac_try) 2>&5 |
| 19833 | ac_status=$? |
| 19834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19835 | (exit $ac_status); }; } && |
| 19836 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19838 | (eval $ac_try) 2>&5 |
| 19839 | ac_status=$? |
| 19840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19841 | (exit $ac_status); }; }; then |
| 19842 | ac_cv_member_struct_option_name=yes |
| 19843 | else |
| 19844 | echo "$as_me: failed program was:" >&5 |
| 19845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19846 | |
| 19847 | ac_cv_member_struct_option_name=no |
| 19848 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19850 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19851 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19852 | fi |
| 19853 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5 |
| 19854 | echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6 |
| 19855 | if test $ac_cv_member_struct_option_name = yes; then |
| 19856 | |
| 19857 | cat >>confdefs.h <<_ACEOF |
| 19858 | #define HAVE_STRUCT_OPTION_NAME 1 |
| 19859 | _ACEOF |
| 19860 | |
| 19861 | |
| 19862 | fi |
| 19863 | |
| 19864 | |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19865 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 19866 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 19867 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 19868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19869 | else |
| 19870 | cat >conftest.$ac_ext <<_ACEOF |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19871 | /* confdefs.h. */ |
| 19872 | _ACEOF |
| 19873 | cat confdefs.h >>conftest.$ac_ext |
| 19874 | cat >>conftest.$ac_ext <<_ACEOF |
| 19875 | /* end confdefs.h. */ |
| 19876 | $ac_includes_default |
| 19877 | int |
| 19878 | main () |
| 19879 | { |
| 19880 | static struct stat ac_aggr; |
| 19881 | if (ac_aggr.st_blocks) |
| 19882 | return 0; |
| 19883 | ; |
| 19884 | return 0; |
| 19885 | } |
| 19886 | _ACEOF |
| 19887 | rm -f conftest.$ac_objext |
| 19888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19889 | (eval $ac_compile) 2>conftest.er1 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19890 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19891 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19892 | rm -f conftest.er1 |
| 19893 | cat conftest.err >&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19895 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19896 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19898 | (eval $ac_try) 2>&5 |
| 19899 | ac_status=$? |
| 19900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19901 | (exit $ac_status); }; } && |
| 19902 | { ac_try='test -s conftest.$ac_objext' |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19904 | (eval $ac_try) 2>&5 |
| 19905 | ac_status=$? |
| 19906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19907 | (exit $ac_status); }; }; then |
| 19908 | ac_cv_member_struct_stat_st_blocks=yes |
| 19909 | else |
| 19910 | echo "$as_me: failed program was:" >&5 |
| 19911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19912 | |
| 19913 | cat >conftest.$ac_ext <<_ACEOF |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19914 | /* confdefs.h. */ |
| 19915 | _ACEOF |
| 19916 | cat confdefs.h >>conftest.$ac_ext |
| 19917 | cat >>conftest.$ac_ext <<_ACEOF |
| 19918 | /* end confdefs.h. */ |
| 19919 | $ac_includes_default |
| 19920 | int |
| 19921 | main () |
| 19922 | { |
| 19923 | static struct stat ac_aggr; |
| 19924 | if (sizeof ac_aggr.st_blocks) |
| 19925 | return 0; |
| 19926 | ; |
| 19927 | return 0; |
| 19928 | } |
| 19929 | _ACEOF |
| 19930 | rm -f conftest.$ac_objext |
| 19931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19932 | (eval $ac_compile) 2>conftest.er1 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19933 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19935 | rm -f conftest.er1 |
| 19936 | cat conftest.err >&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19938 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19939 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19941 | (eval $ac_try) 2>&5 |
| 19942 | ac_status=$? |
| 19943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19944 | (exit $ac_status); }; } && |
| 19945 | { ac_try='test -s conftest.$ac_objext' |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19947 | (eval $ac_try) 2>&5 |
| 19948 | ac_status=$? |
| 19949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19950 | (exit $ac_status); }; }; then |
| 19951 | ac_cv_member_struct_stat_st_blocks=yes |
| 19952 | else |
| 19953 | echo "$as_me: failed program was:" >&5 |
| 19954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19955 | |
| 19956 | ac_cv_member_struct_stat_st_blocks=no |
| 19957 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19959 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19961 | fi |
| 19962 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 19963 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 19964 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
| 19965 | |
| 19966 | cat >>confdefs.h <<_ACEOF |
| 19967 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 19968 | _ACEOF |
| 19969 | |
| 19970 | |
| 19971 | fi |
| 19972 | |
| 19973 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19974 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 19975 | case $host_cpu in |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19976 | *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19977 | echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6 |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19978 | if test "${ac_cv_cpp_def___i386__+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19980 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19981 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19982 | /* confdefs.h. */ |
| 19983 | _ACEOF |
| 19984 | cat confdefs.h >>conftest.$ac_ext |
| 19985 | cat >>conftest.$ac_ext <<_ACEOF |
| 19986 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19987 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 19988 | yes |
| 19989 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19990 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 19991 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19992 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19993 | ac_cv_cpp_def___i386__=yes |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 19994 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19995 | ac_cv_cpp_def___i386__=no |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 19996 | fi |
| 19997 | rm -f conftest* |
| 19998 | |
| 19999 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20000 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5 |
| 20001 | echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6 |
| 20002 | if test $ac_cv_cpp_def___i386__ = yes; then |
| 20003 | CFLAGS="$CFLAGS -D__i386__" |
| 20004 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 20005 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20006 | ;; |
| 20007 | *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5 |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 20008 | echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6 |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20009 | if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 20010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20011 | else |
| 20012 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20013 | /* confdefs.h. */ |
| 20014 | _ACEOF |
| 20015 | cat confdefs.h >>conftest.$ac_ext |
| 20016 | cat >>conftest.$ac_ext <<_ACEOF |
| 20017 | /* end confdefs.h. */ |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 20018 | #ifndef __ALPHA__ |
| 20019 | yes |
| 20020 | #endif |
| 20021 | _ACEOF |
| 20022 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20023 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20024 | ac_cv_cpp_def___ALPHA__=yes |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 20025 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20026 | ac_cv_cpp_def___ALPHA__=no |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 20027 | fi |
| 20028 | rm -f conftest* |
| 20029 | |
| 20030 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20031 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5 |
| 20032 | echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6 |
| 20033 | if test $ac_cv_cpp_def___ALPHA__ = yes; then |
| 20034 | CFLAGS="$CFLAGS -D__ALPHA__" |
| 20035 | LINTFLAGS="$LINTFLAGS -D__ALPHA__" |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 20036 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20037 | ;; |
| 20038 | *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20039 | echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6 |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20040 | if test "${ac_cv_cpp_def___sparc__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20042 | else |
| 20043 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20044 | /* confdefs.h. */ |
| 20045 | _ACEOF |
| 20046 | cat confdefs.h >>conftest.$ac_ext |
| 20047 | cat >>conftest.$ac_ext <<_ACEOF |
| 20048 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20049 | #ifndef __sparc__ |
| 20050 | yes |
| 20051 | #endif |
| 20052 | _ACEOF |
| 20053 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20054 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20055 | ac_cv_cpp_def___sparc__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20056 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20057 | ac_cv_cpp_def___sparc__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20058 | fi |
| 20059 | rm -f conftest* |
| 20060 | |
| 20061 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20062 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5 |
| 20063 | echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6 |
| 20064 | if test $ac_cv_cpp_def___sparc__ = yes; then |
| 20065 | CFLAGS="$CFLAGS -D__sparc__" |
| 20066 | LINTFLAGS="$LINTFLAGS -D__sparc__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20067 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20068 | ;; |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 20069 | *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5 |
| 20070 | echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6 |
| 20071 | if test "${ac_cv_cpp_def___powerpc__+set}" = set; then |
| 20072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20073 | else |
| 20074 | cat >conftest.$ac_ext <<_ACEOF |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 20075 | /* confdefs.h. */ |
| 20076 | _ACEOF |
| 20077 | cat confdefs.h >>conftest.$ac_ext |
| 20078 | cat >>conftest.$ac_ext <<_ACEOF |
| 20079 | /* end confdefs.h. */ |
| 20080 | #ifndef __powerpc__ |
| 20081 | yes |
| 20082 | #endif |
| 20083 | _ACEOF |
| 20084 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20085 | $EGREP "yes" >/dev/null 2>&1; then |
| 20086 | ac_cv_cpp_def___powerpc__=yes |
| 20087 | else |
| 20088 | ac_cv_cpp_def___powerpc__=no |
| 20089 | fi |
| 20090 | rm -f conftest* |
| 20091 | |
| 20092 | fi |
| 20093 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5 |
| 20094 | echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6 |
| 20095 | if test $ac_cv_cpp_def___powerpc__ = yes; then |
| 20096 | CFLAGS="$CFLAGS -D__powerpc__" |
| 20097 | LINTFLAGS="$LINTFLAGS -D__powerpc__" |
| 20098 | fi |
| 20099 | ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20100 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20101 | |
| 20102 | case $host_vendor in |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20103 | *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20104 | echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6 |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20105 | if test "${ac_cv_cpp_def___sun__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20107 | else |
| 20108 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20109 | /* confdefs.h. */ |
| 20110 | _ACEOF |
| 20111 | cat confdefs.h >>conftest.$ac_ext |
| 20112 | cat >>conftest.$ac_ext <<_ACEOF |
| 20113 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20114 | #ifndef __sun__ |
| 20115 | yes |
| 20116 | #endif |
| 20117 | _ACEOF |
| 20118 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20119 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20120 | ac_cv_cpp_def___sun__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20121 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20122 | ac_cv_cpp_def___sun__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20123 | fi |
| 20124 | rm -f conftest* |
| 20125 | |
| 20126 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20127 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5 |
| 20128 | echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6 |
| 20129 | if test $ac_cv_cpp_def___sun__ = yes; then |
| 20130 | CFLAGS="$CFLAGS -D__sun__" |
| 20131 | LINTFLAGS="$LINTFLAGS -D__sun__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20132 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20133 | ;; |
| 20134 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20135 | |
| 20136 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20137 | |
| 20138 | |
| 20139 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20140 | ac_config_commands="$ac_config_commands controls" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 20141 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20142 | ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 20143 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20144 | ac_config_commands="$ac_config_commands dlls/ddraw/dclipper" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 20145 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20146 | ac_config_commands="$ac_config_commands dlls/ddraw/ddraw" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 20147 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20148 | ac_config_commands="$ac_config_commands dlls/ddraw/direct3d" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 20149 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20150 | ac_config_commands="$ac_config_commands dlls/ddraw/dpalette" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 20151 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20152 | ac_config_commands="$ac_config_commands dlls/ddraw/dsurface" |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 20153 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20154 | ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 20155 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20156 | ac_config_commands="$ac_config_commands dlls/gdi/mfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 20157 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20158 | ac_config_commands="$ac_config_commands dlls/kernel/messages" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20159 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20160 | ac_config_commands="$ac_config_commands dlls/user/dde" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20161 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20162 | ac_config_commands="$ac_config_commands dlls/user/resources" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20163 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20164 | ac_config_commands="$ac_config_commands dlls/wineps/data" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20165 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20166 | ac_config_commands="$ac_config_commands include/wine" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20167 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20168 | ac_config_commands="$ac_config_commands misc" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 20169 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20170 | ac_config_commands="$ac_config_commands objects" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 20171 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20172 | ac_config_commands="$ac_config_commands programs/regedit/tests" |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 20173 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20174 | ac_config_commands="$ac_config_commands windows" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 20175 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 20176 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 20177 | MAKE_RULES=Make.rules |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20178 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20179 | |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 20180 | MAKE_DLL_RULES=dlls/Makedll.rules |
| 20181 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20182 | |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20183 | MAKE_TEST_RULES=dlls/Maketest.rules |
| 20184 | |
| 20185 | |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 20186 | MAKE_LIB_RULES=libs/Makelib.rules |
| 20187 | |
| 20188 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 20189 | MAKE_PROG_RULES=programs/Makeprog.rules |
| 20190 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20191 | |
Vincent Béron | 3496689 | 2004-07-19 19:44:07 +0000 | [diff] [blame] | 20192 | ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/hhctrl.ocx/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msacm/tests/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/secur32/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/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/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20193 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 20194 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20195 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20196 | # This file is a shell script that caches the results of configure |
| 20197 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20198 | # scripts and configure runs, see configure's option --config-cache. |
| 20199 | # It is not useful on other systems. If it contains results you don't |
| 20200 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20201 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20202 | # config.status only pays attention to the cache file if you give it |
| 20203 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20204 | # |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20205 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20206 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20207 | # following values. |
| 20208 | |
| 20209 | _ACEOF |
| 20210 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 20211 | # The following way of writing the cache mishandles newlines in values, |
| 20212 | # but we know of no workaround that is simple, portable, and efficient. |
| 20213 | # So, don't put newlines in cache variables' values. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20214 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20215 | # 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] | 20216 | { |
| 20217 | (set) 2>&1 | |
| 20218 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 20219 | *ac_space=\ *) |
| 20220 | # `set' does not quote correctly, so add quotes (double-quote |
| 20221 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 20222 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20223 | "s/'/'\\\\''/g; |
| 20224 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20225 | ;; |
| 20226 | *) |
| 20227 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 20228 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20229 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20230 | ;; |
| 20231 | esac; |
| 20232 | } | |
| 20233 | sed ' |
| 20234 | t clear |
| 20235 | : clear |
| 20236 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20237 | t end |
| 20238 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20239 | : end' >>confcache |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20240 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20241 | if test -w $cache_file; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20242 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 20243 | cat confcache >$cache_file |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20244 | else |
| 20245 | echo "not updating unwritable cache $cache_file" |
| 20246 | fi |
| 20247 | fi |
| 20248 | rm -f confcache |
| 20249 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20250 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20251 | # Let make expand exec_prefix. |
| 20252 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20253 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20254 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 20255 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 20256 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20257 | # (actually we leave an empty line to preserve line numbers). |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20258 | if test "x$srcdir" = x.; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20259 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20260 | s/:*\$(srcdir):*/:/; |
| 20261 | s/:*\${srcdir}:*/:/; |
| 20262 | s/:*@srcdir@:*/:/; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20263 | s/^\([^=]*=[ ]*\):*/\1/; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20264 | s/:*$//; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20265 | s/^[^=]*=[ ]*$//; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20266 | }' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20267 | fi |
| 20268 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 20269 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20270 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20271 | ac_libobjs= |
| 20272 | ac_ltlibobjs= |
| 20273 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20274 | # 1. Remove the extension, and $U if already installed. |
| 20275 | ac_i=`echo "$ac_i" | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20276 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20277 | # 2. Add them. |
| 20278 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 20279 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 20280 | done |
| 20281 | LIBOBJS=$ac_libobjs |
| 20282 | |
| 20283 | LTLIBOBJS=$ac_ltlibobjs |
| 20284 | |
| 20285 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20286 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20287 | : ${CONFIG_STATUS=./config.status} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20288 | ac_clean_files_save=$ac_clean_files |
| 20289 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20290 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20291 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20292 | cat >$CONFIG_STATUS <<_ACEOF |
| 20293 | #! $SHELL |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20294 | # Generated by $as_me. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20295 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20296 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20297 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20298 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20299 | debug=false |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20300 | ac_cs_recheck=false |
| 20301 | ac_cs_silent=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20302 | SHELL=\${CONFIG_SHELL-$SHELL} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20303 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20304 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20305 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20306 | ## --------------------- ## |
| 20307 | ## M4sh Initialization. ## |
| 20308 | ## --------------------- ## |
| 20309 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20310 | # Be Bourne compatible |
| 20311 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 20312 | emulate sh |
| 20313 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20314 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20315 | # is contrary to our usage. Disable this feature. |
| 20316 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20317 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20318 | set -o posix |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 20319 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20320 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20321 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20322 | # Support unset when possible. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20323 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20324 | as_unset=unset |
| 20325 | else |
| 20326 | as_unset=false |
| 20327 | fi |
| 20328 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20329 | |
| 20330 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20331 | $as_unset ENV MAIL MAILPATH |
| 20332 | PS1='$ ' |
| 20333 | PS2='> ' |
| 20334 | PS4='+ ' |
| 20335 | |
| 20336 | # NLS nuisances. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20337 | for as_var in \ |
| 20338 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20339 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20340 | LC_TELEPHONE LC_TIME |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20341 | do |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20342 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20343 | eval $as_var=C; export $as_var |
| 20344 | else |
| 20345 | $as_unset $as_var |
| 20346 | fi |
| 20347 | done |
| 20348 | |
| 20349 | # Required to use basename. |
| 20350 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20351 | as_expr=expr |
| 20352 | else |
| 20353 | as_expr=false |
| 20354 | fi |
| 20355 | |
| 20356 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 20357 | as_basename=basename |
| 20358 | else |
| 20359 | as_basename=false |
| 20360 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20361 | |
| 20362 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20363 | # Name of the executable. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20364 | as_me=`$as_basename "$0" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20365 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20366 | X"$0" : 'X\(//\)$' \| \ |
| 20367 | X"$0" : 'X\(/\)$' \| \ |
| 20368 | . : '\(.\)' 2>/dev/null || |
| 20369 | echo X/"$0" | |
| 20370 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 20371 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 20372 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 20373 | s/.*/./; q'` |
| 20374 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20375 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20376 | # PATH needs CR, and LINENO needs CR and PATH. |
| 20377 | # Avoid depending upon Character Ranges. |
| 20378 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20379 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20380 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20381 | as_cr_digits='0123456789' |
| 20382 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 20383 | |
| 20384 | # The user is always right. |
| 20385 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20386 | echo "#! /bin/sh" >conf$$.sh |
| 20387 | echo "exit 0" >>conf$$.sh |
| 20388 | chmod +x conf$$.sh |
| 20389 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20390 | PATH_SEPARATOR=';' |
| 20391 | else |
| 20392 | PATH_SEPARATOR=: |
| 20393 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20394 | rm -f conf$$.sh |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20395 | fi |
| 20396 | |
| 20397 | |
| 20398 | as_lineno_1=$LINENO |
| 20399 | as_lineno_2=$LINENO |
| 20400 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20401 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20402 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 20403 | # Find who we are. Look in the path if we contain no path at all |
| 20404 | # relative or not. |
| 20405 | case $0 in |
| 20406 | *[\\/]* ) as_myself=$0 ;; |
| 20407 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20408 | for as_dir in $PATH |
| 20409 | do |
| 20410 | IFS=$as_save_IFS |
| 20411 | test -z "$as_dir" && as_dir=. |
| 20412 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20413 | done |
| 20414 | |
| 20415 | ;; |
| 20416 | esac |
| 20417 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20418 | # in which case we are not to be found in the path. |
| 20419 | if test "x$as_myself" = x; then |
| 20420 | as_myself=$0 |
| 20421 | fi |
| 20422 | if test ! -f "$as_myself"; then |
| 20423 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 20424 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 20425 | { (exit 1); exit 1; }; } |
| 20426 | fi |
| 20427 | case $CONFIG_SHELL in |
| 20428 | '') |
| 20429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20430 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 20431 | do |
| 20432 | IFS=$as_save_IFS |
| 20433 | test -z "$as_dir" && as_dir=. |
| 20434 | for as_base in sh bash ksh sh5; do |
| 20435 | case $as_dir in |
| 20436 | /*) |
| 20437 | if ("$as_dir/$as_base" -c ' |
| 20438 | as_lineno_1=$LINENO |
| 20439 | as_lineno_2=$LINENO |
| 20440 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20441 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20442 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20443 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 20444 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20445 | CONFIG_SHELL=$as_dir/$as_base |
| 20446 | export CONFIG_SHELL |
| 20447 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 20448 | fi;; |
| 20449 | esac |
| 20450 | done |
| 20451 | done |
| 20452 | ;; |
| 20453 | esac |
| 20454 | |
| 20455 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20456 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20457 | # line-number line before each line; the second 'sed' does the real |
| 20458 | # work. The second script uses 'N' to pair each line-number line |
| 20459 | # with the numbered line, and appends trailing '-' during |
| 20460 | # substitution so that $LINENO is not a special case at line end. |
| 20461 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20462 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 20463 | sed '=' <$as_myself | |
| 20464 | sed ' |
| 20465 | N |
| 20466 | s,$,-, |
| 20467 | : loop |
| 20468 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 20469 | t loop |
| 20470 | s,-$,, |
| 20471 | s,^['$as_cr_digits']*\n,, |
| 20472 | ' >$as_me.lineno && |
| 20473 | chmod +x $as_me.lineno || |
| 20474 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 20475 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 20476 | { (exit 1); exit 1; }; } |
| 20477 | |
| 20478 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20479 | # (the dirname of $[0] is not the place where we might find the |
| 20480 | # original and so on. Autoconf is especially sensible to this). |
| 20481 | . ./$as_me.lineno |
| 20482 | # Exit status is that of the last command. |
| 20483 | exit |
| 20484 | } |
| 20485 | |
| 20486 | |
| 20487 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 20488 | *c*,-n*) ECHO_N= ECHO_C=' |
| 20489 | ' ECHO_T=' ' ;; |
| 20490 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 20491 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 20492 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20493 | |
| 20494 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20495 | as_expr=expr |
| 20496 | else |
| 20497 | as_expr=false |
| 20498 | fi |
| 20499 | |
| 20500 | rm -f conf$$ conf$$.exe conf$$.file |
| 20501 | echo >conf$$.file |
| 20502 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20503 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 20504 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 20505 | if test -f conf$$.exe; then |
| 20506 | # Don't use ln at all; we don't have any links |
| 20507 | as_ln_s='cp -p' |
| 20508 | else |
| 20509 | as_ln_s='ln -s' |
| 20510 | fi |
| 20511 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20512 | as_ln_s=ln |
| 20513 | else |
| 20514 | as_ln_s='cp -p' |
| 20515 | fi |
| 20516 | rm -f conf$$ conf$$.exe conf$$.file |
| 20517 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20518 | if mkdir -p . 2>/dev/null; then |
| 20519 | as_mkdir_p=: |
| 20520 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20521 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20522 | as_mkdir_p=false |
| 20523 | fi |
| 20524 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20525 | as_executable_p="test -f" |
| 20526 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20527 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20528 | as_tr_cpp="eval 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] | 20529 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20530 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20531 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20532 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20533 | |
| 20534 | # IFS |
| 20535 | # We need space, tab and new line, in precisely that order. |
| 20536 | as_nl=' |
| 20537 | ' |
| 20538 | IFS=" $as_nl" |
| 20539 | |
| 20540 | # CDPATH. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20541 | $as_unset CDPATH |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20542 | |
| 20543 | exec 6>&1 |
| 20544 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20545 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 20546 | # report actual input values of CONFIG_FILES etc. instead of their |
| 20547 | # values after options handling. Logging --version etc. is OK. |
| 20548 | exec 5>>config.log |
| 20549 | { |
| 20550 | echo |
| 20551 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20552 | ## Running $as_me. ## |
| 20553 | _ASBOX |
| 20554 | } >&5 |
| 20555 | cat >&5 <<_CSEOF |
| 20556 | |
Alexandre Julliard | 62a4807 | 2004-07-17 00:52:37 +0000 | [diff] [blame] | 20557 | This file was extended by Wine $as_me 20040716, which was |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 20558 | generated by GNU Autoconf 2.59. Invocation command line was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20559 | |
| 20560 | CONFIG_FILES = $CONFIG_FILES |
| 20561 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20562 | CONFIG_LINKS = $CONFIG_LINKS |
| 20563 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20564 | $ $0 $@ |
| 20565 | |
| 20566 | _CSEOF |
| 20567 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 20568 | echo >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20569 | _ACEOF |
| 20570 | |
| 20571 | # Files that config.status was made for. |
| 20572 | if test -n "$ac_config_files"; then |
| 20573 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 20574 | fi |
| 20575 | |
| 20576 | if test -n "$ac_config_headers"; then |
| 20577 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 20578 | fi |
| 20579 | |
| 20580 | if test -n "$ac_config_links"; then |
| 20581 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 20582 | fi |
| 20583 | |
| 20584 | if test -n "$ac_config_commands"; then |
| 20585 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 20586 | fi |
| 20587 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20588 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20589 | |
| 20590 | ac_cs_usage="\ |
| 20591 | \`$as_me' instantiates files from templates according to the |
| 20592 | current configuration. |
| 20593 | |
| 20594 | Usage: $0 [OPTIONS] [FILE]... |
| 20595 | |
| 20596 | -h, --help print this help, then exit |
| 20597 | -V, --version print version number, then exit |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20598 | -q, --quiet do not print progress messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20599 | -d, --debug don't remove temporary files |
| 20600 | --recheck update $as_me by reconfiguring in the same conditions |
| 20601 | --file=FILE[:TEMPLATE] |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20602 | instantiate the configuration file FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20603 | --header=FILE[:TEMPLATE] |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20604 | instantiate the configuration header FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20605 | |
| 20606 | Configuration files: |
| 20607 | $config_files |
| 20608 | |
| 20609 | Configuration headers: |
| 20610 | $config_headers |
| 20611 | |
| 20612 | Configuration commands: |
| 20613 | $config_commands |
| 20614 | |
| 20615 | Report bugs to <bug-autoconf@gnu.org>." |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20616 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 20617 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20618 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20619 | ac_cs_version="\\ |
Alexandre Julliard | 62a4807 | 2004-07-17 00:52:37 +0000 | [diff] [blame] | 20620 | Wine config.status 20040716 |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 20621 | configured by $0, generated by GNU Autoconf 2.59, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20622 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20623 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20624 | Copyright (C) 2003 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20625 | This config.status script is free software; the Free Software Foundation |
| 20626 | gives unlimited permission to copy, distribute and modify it." |
| 20627 | srcdir=$srcdir |
| 20628 | INSTALL="$INSTALL" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20629 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20630 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20631 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20632 | # If no file are specified by the user, then we need to provide default |
| 20633 | # value. By we need to know if files were specified by the user. |
| 20634 | ac_need_defaults=: |
| 20635 | while test $# != 0 |
| 20636 | do |
| 20637 | case $1 in |
| 20638 | --*=*) |
| 20639 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 20640 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20641 | ac_shift=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20642 | ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20643 | -*) |
| 20644 | ac_option=$1 |
| 20645 | ac_optarg=$2 |
| 20646 | ac_shift=shift |
| 20647 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20648 | *) # This is not an option, so the user has probably given explicit |
| 20649 | # arguments. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20650 | ac_option=$1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20651 | ac_need_defaults=false;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20652 | esac |
| 20653 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20654 | case $ac_option in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20655 | # Handling of the options. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20656 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20657 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20658 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20659 | ac_cs_recheck=: ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20660 | --version | --vers* | -V ) |
| 20661 | echo "$ac_cs_version"; exit 0 ;; |
| 20662 | --he | --h) |
| 20663 | # Conflict between --help and --header |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20664 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20665 | Try \`$0 --help' for more information." >&5 |
| 20666 | echo "$as_me: error: ambiguous option: $1 |
| 20667 | Try \`$0 --help' for more information." >&2;} |
| 20668 | { (exit 1); exit 1; }; };; |
| 20669 | --help | --hel | -h ) |
| 20670 | echo "$ac_cs_usage"; exit 0 ;; |
| 20671 | --debug | --d* | -d ) |
| 20672 | debug=: ;; |
| 20673 | --file | --fil | --fi | --f ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20674 | $ac_shift |
| 20675 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20676 | ac_need_defaults=false;; |
| 20677 | --header | --heade | --head | --hea ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20678 | $ac_shift |
| 20679 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20680 | ac_need_defaults=false;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20681 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20682 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20683 | ac_cs_silent=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20684 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20685 | # This is an error. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20686 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20687 | Try \`$0 --help' for more information." >&5 |
| 20688 | echo "$as_me: error: unrecognized option: $1 |
| 20689 | Try \`$0 --help' for more information." >&2;} |
| 20690 | { (exit 1); exit 1; }; } ;; |
| 20691 | |
| 20692 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 20693 | |
| 20694 | esac |
| 20695 | shift |
| 20696 | done |
| 20697 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20698 | ac_configure_extra_args= |
| 20699 | |
| 20700 | if $ac_cs_silent; then |
| 20701 | exec 6>/dev/null |
| 20702 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20703 | fi |
| 20704 | |
| 20705 | _ACEOF |
| 20706 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20707 | if \$ac_cs_recheck; then |
| 20708 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20709 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 20710 | fi |
| 20711 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20712 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20713 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20714 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20715 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20716 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20717 | |
| 20718 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20719 | for ac_config_target in $ac_config_targets |
| 20720 | do |
| 20721 | case "$ac_config_target" in |
| 20722 | # Handling of arguments. |
| 20723 | "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
| 20724 | "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20725 | "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;; |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 20726 | "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20727 | "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
| 20728 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20729 | "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;; |
| 20730 | "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20731 | "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;; |
Christian Costa | 76b7787 | 2004-03-09 01:29:56 +0000 | [diff] [blame] | 20732 | "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;; |
Aric Stewart | 4bd374f | 2004-07-06 21:01:18 +0000 | [diff] [blame] | 20733 | "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20734 | "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;; |
| 20735 | "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;; |
Patrik Stridvall | d1447fa | 2002-11-19 00:47:12 +0000 | [diff] [blame] | 20736 | "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;; |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 20737 | "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;; |
Sami Nopanen | 9063cef | 2004-03-15 20:26:42 +0000 | [diff] [blame] | 20738 | "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;; |
Mike McCormack | b107b92 | 2003-10-31 03:38:07 +0000 | [diff] [blame] | 20739 | "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;; |
John K. Hohm | 34909c2 | 2002-05-14 21:50:56 +0000 | [diff] [blame] | 20740 | "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20741 | "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;; |
Uwe Bonnes | 2c4fd42 | 2003-05-15 23:58:48 +0000 | [diff] [blame] | 20742 | "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20743 | "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;; |
| 20744 | "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;; |
| 20745 | "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;; |
Dmitry Timoshkov | 5a23a00 | 2003-01-02 19:34:14 +0000 | [diff] [blame] | 20746 | "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;; |
Sylvain Petreolle | 3a99d8b | 2002-06-25 23:23:03 +0000 | [diff] [blame] | 20747 | "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;; |
Alexandre Julliard | aa1bdc4 | 2003-07-01 01:11:13 +0000 | [diff] [blame] | 20748 | "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;; |
Enrico Horn | eaae705 | 2003-01-24 01:08:15 +0000 | [diff] [blame] | 20749 | "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;; |
Ivan Leo Murray-Smith | 8f14eb0 | 2004-05-18 00:54:12 +0000 | [diff] [blame] | 20750 | "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;; |
Raphael Junqueira | e31ae92 | 2002-12-17 01:15:15 +0000 | [diff] [blame] | 20751 | "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;; |
Christian Costa | 7590fe5 | 2004-06-03 00:03:23 +0000 | [diff] [blame] | 20752 | "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;; |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 20753 | "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20754 | "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;; |
| 20755 | "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;; |
Sami Aario | f22a472 | 2003-11-18 00:12:00 +0000 | [diff] [blame] | 20756 | "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20757 | "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;; |
| 20758 | "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;; |
Ove Kaaven | d2d08f0 | 2002-06-14 00:39:44 +0000 | [diff] [blame] | 20759 | "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 20760 | "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;; |
| 20761 | "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;; |
| 20762 | "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;; |
| 20763 | "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;; |
| 20764 | "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;; |
| 20765 | "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;; |
| 20766 | "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;; |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 20767 | "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 20768 | "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20769 | "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;; |
| 20770 | "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;; |
Raphael Junqueira | 5f3f214 | 2004-04-07 20:39:00 +0000 | [diff] [blame] | 20771 | "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 20772 | "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20773 | "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;; |
Francois Gouget | d523a45 | 2002-12-05 19:19:41 +0000 | [diff] [blame] | 20774 | "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;; |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 20775 | "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;; |
Raphael Junqueira | 033ae92 | 2004-04-16 00:26:14 +0000 | [diff] [blame] | 20776 | "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;; |
Robert Reif | cc02d95 | 2004-03-09 23:25:57 +0000 | [diff] [blame] | 20777 | "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;; |
| 20778 | "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;; |
Alexandre Julliard | c3eac43 | 2004-01-26 21:29:05 +0000 | [diff] [blame] | 20779 | "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20780 | "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;; |
Patrik Stridvall | 928ecb4 | 2002-10-02 19:58:27 +0000 | [diff] [blame] | 20781 | "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20782 | "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;; |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 20783 | "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;; |
Krzysztof Foltman | 9bca690 | 2004-04-22 03:45:00 +0000 | [diff] [blame] | 20784 | "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;; |
Alexandre Julliard | 0a106bf | 2004-01-15 04:56:18 +0000 | [diff] [blame] | 20785 | "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20786 | "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;; |
Alexandre Julliard | a21cf07 | 2004-02-20 01:18:43 +0000 | [diff] [blame] | 20787 | "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20788 | "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;; |
| 20789 | "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;; |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 20790 | "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;; |
Juan Lang | e6f491a | 2004-01-07 01:08:55 +0000 | [diff] [blame] | 20791 | "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20792 | "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20793 | "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20794 | "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;; |
| 20795 | "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;; |
Jon Griffiths | 4ec0d3b | 2004-04-23 23:30:00 +0000 | [diff] [blame] | 20796 | "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;; |
Alexandre Julliard | a21cf07 | 2004-02-20 01:18:43 +0000 | [diff] [blame] | 20797 | "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;; |
| 20798 | "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20799 | "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;; |
| 20800 | "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;; |
Hidenori Takeshima | 0307f6d | 2002-03-23 20:18:11 +0000 | [diff] [blame] | 20801 | "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;; |
Eric Pouech | bed67fc | 2002-05-22 02:00:05 +0000 | [diff] [blame] | 20802 | "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;; |
Hidenori Takeshima | bcb9c46 | 2002-03-22 19:16:10 +0000 | [diff] [blame] | 20803 | "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;; |
Eric Pouech | b706b23 | 2002-06-04 17:53:46 +0000 | [diff] [blame] | 20804 | "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;; |
Robert Reif | 00cd2b2 | 2004-05-03 20:17:43 +0000 | [diff] [blame] | 20805 | "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20806 | "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;; |
Mike McCormack | aa1c2a3 | 2003-09-08 19:32:14 +0000 | [diff] [blame] | 20807 | "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;; |
Mike McCormack | 6386edc | 2003-08-13 01:27:48 +0000 | [diff] [blame] | 20808 | "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20809 | "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;; |
Mike McCormack | f6be044 | 2002-04-08 23:56:14 +0000 | [diff] [blame] | 20810 | "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20811 | "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;; |
Alexandre Julliard | 7ba8fba | 2004-02-27 21:51:12 +0000 | [diff] [blame] | 20812 | "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20813 | "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;; |
Uwe Bonnes | a768fa3 | 2002-10-30 23:49:03 +0000 | [diff] [blame] | 20814 | "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20815 | "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;; |
Mike McCormack | d077946 | 2004-01-12 22:12:27 +0000 | [diff] [blame] | 20816 | "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;; |
Adam Gundy | 19a1513 | 2003-04-04 19:37:57 +0000 | [diff] [blame] | 20817 | "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;; |
Patrik Stridvall | 5c4420f | 2004-05-18 01:05:36 +0000 | [diff] [blame] | 20818 | "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;; |
Mike McCormack | 4cc64c8 | 2004-01-23 05:00:37 +0000 | [diff] [blame] | 20819 | "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20820 | "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;; |
André Johansen | 2123c13 | 2003-08-02 00:52:02 +0000 | [diff] [blame] | 20821 | "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20822 | "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;; |
Andriy Palamarchuk | b812c90 | 2002-09-11 02:35:17 +0000 | [diff] [blame] | 20823 | "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;; |
Ulrich Czekalla | 9655a5f | 2003-12-30 22:19:30 +0000 | [diff] [blame] | 20824 | "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20825 | "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;; |
Jon Griffiths | 1da2971 | 2002-08-15 22:08:40 +0000 | [diff] [blame] | 20826 | "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20827 | "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;; |
| 20828 | "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;; |
Eric Pouech | 5caccaf | 2003-06-23 03:43:00 +0000 | [diff] [blame] | 20829 | "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20830 | "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20831 | "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20832 | "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;; |
| 20833 | "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;; |
| 20834 | "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;; |
| 20835 | "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;; |
| 20836 | "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;; |
| 20837 | "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;; |
Stefan Leichter | 0d4fff4 | 2004-06-15 20:23:47 +0000 | [diff] [blame] | 20838 | "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20839 | "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;; |
| 20840 | "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;; |
| 20841 | "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;; |
| 20842 | "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;; |
| 20843 | "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;; |
Greg Turner | ac89cc2 | 2002-10-07 21:54:07 +0000 | [diff] [blame] | 20844 | "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;; |
Mike McCormack | b6de304 | 2004-02-13 20:47:07 +0000 | [diff] [blame] | 20845 | "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;; |
Juan Lang | 3ed89c3 | 2004-03-02 04:57:35 +0000 | [diff] [blame] | 20846 | "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20847 | "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;; |
| 20848 | "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;; |
| 20849 | "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;; |
| 20850 | "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;; |
Andriy Palamarchuk | 5b5bea0 | 2002-08-27 01:34:33 +0000 | [diff] [blame] | 20851 | "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20852 | "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;; |
| 20853 | "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20854 | "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;; |
Patrik Stridvall | 4c692b9 | 2002-04-29 18:43:35 +0000 | [diff] [blame] | 20855 | "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20856 | "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;; |
| 20857 | "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;; |
| 20858 | "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;; |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 20859 | "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;; |
Alexandre Julliard | 46321f4 | 2003-11-27 01:10:26 +0000 | [diff] [blame] | 20860 | "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20861 | "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;; |
| 20862 | "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;; |
Patrik Stridvall | 9398d9c | 2002-11-12 01:13:10 +0000 | [diff] [blame] | 20863 | "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20864 | "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20865 | "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;; |
Alexandre Julliard | c3eac43 | 2004-01-26 21:29:05 +0000 | [diff] [blame] | 20866 | "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;; |
Kevin Koltzau | 0af4fb9 | 2003-10-04 03:48:11 +0000 | [diff] [blame] | 20867 | "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;; |
Alexandre Julliard | a21cf07 | 2004-02-20 01:18:43 +0000 | [diff] [blame] | 20868 | "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;; |
Sami Aario | 78f1224 | 2004-04-07 19:41:21 +0000 | [diff] [blame] | 20869 | "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20870 | "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;; |
Stefan Leichter | 09733db | 2004-04-05 22:54:03 +0000 | [diff] [blame] | 20871 | "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;; |
Alexandre Julliard | 6c8147b | 2004-02-21 04:13:56 +0000 | [diff] [blame] | 20872 | "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;; |
Juan Lang | e9ed2f3 | 2004-03-01 23:35:25 +0000 | [diff] [blame] | 20873 | "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;; |
Alexandre Julliard | a21cf07 | 2004-02-20 01:18:43 +0000 | [diff] [blame] | 20874 | "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;; |
| 20875 | "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;; |
| 20876 | "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20877 | "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;; |
| 20878 | "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;; |
Alexandre Julliard | c3eac43 | 2004-01-26 21:29:05 +0000 | [diff] [blame] | 20879 | "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20880 | "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;; |
| 20881 | "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;; |
| 20882 | "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20883 | "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20884 | "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;; |
| 20885 | "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;; |
| 20886 | "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;; |
| 20887 | "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;; |
| 20888 | "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;; |
| 20889 | "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;; |
| 20890 | "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;; |
| 20891 | "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;; |
Francois Gouget | 4ce2837 | 2002-11-04 23:47:49 +0000 | [diff] [blame] | 20892 | "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20893 | "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;; |
Eric Pouech | a120ce0 | 2002-06-28 17:40:16 +0000 | [diff] [blame] | 20894 | "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;; |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 20895 | "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;; |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 20896 | "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;; |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 20897 | "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;; |
Alexandre Julliard | c3eac43 | 2004-01-26 21:29:05 +0000 | [diff] [blame] | 20898 | "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20899 | "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;; |
| 20900 | "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;; |
| 20901 | "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20902 | "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20903 | "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;; |
Stefan Leichter | 88b1106 | 2003-01-15 00:50:48 +0000 | [diff] [blame] | 20904 | "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;; |
Patrik Stridvall | 5caddc7 | 2002-12-17 01:49:16 +0000 | [diff] [blame] | 20905 | "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20906 | "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;; |
| 20907 | "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;; |
| 20908 | "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;; |
| 20909 | "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;; |
| 20910 | "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20911 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
Alexandre Julliard | 6a9fe36 | 2003-03-19 22:09:16 +0000 | [diff] [blame] | 20912 | "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;; |
| 20913 | "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;; |
Alexandre Julliard | 7ab9a71 | 2003-03-21 05:06:48 +0000 | [diff] [blame] | 20914 | "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;; |
Alexandre Julliard | 2d1c790 | 2003-03-22 20:40:48 +0000 | [diff] [blame] | 20915 | "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;; |
Alexandre Julliard | e1a9b10 | 2003-05-01 03:16:21 +0000 | [diff] [blame] | 20916 | "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;; |
Alexandre Julliard | 357c740 | 2003-11-06 01:17:56 +0000 | [diff] [blame] | 20917 | "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20918 | "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;; |
| 20919 | "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;; |
| 20920 | "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;; |
| 20921 | "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;; |
| 20922 | "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;; |
Alexandre Julliard | acfda14 | 2002-05-20 19:18:16 +0000 | [diff] [blame] | 20923 | "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;; |
Vincent Béron | 3496689 | 2004-07-19 19:44:07 +0000 | [diff] [blame] | 20924 | "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20925 | "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20926 | "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;; |
Andriy Palamarchuk | 4e2e176 | 2002-04-11 23:58:40 +0000 | [diff] [blame] | 20927 | "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;; |
Andriy Palamarchuk | 2f0d85c | 2002-04-29 23:47:39 +0000 | [diff] [blame] | 20928 | "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;; |
Alexandre Julliard | d77294a | 2002-12-02 21:17:04 +0000 | [diff] [blame] | 20929 | "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;; |
Alberto Massari | 15e8e0a | 2002-11-15 01:41:20 +0000 | [diff] [blame] | 20930 | "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;; |
Dan Kegel | ba02ae4 | 2003-01-21 20:14:36 +0000 | [diff] [blame] | 20931 | "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;; |
Eric Pouech | d6b348f | 2004-03-23 01:19:54 +0000 | [diff] [blame] | 20932 | "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20933 | "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;; |
| 20934 | "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;; |
| 20935 | "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;; |
Shachar Shemesh | 175d059 | 2003-01-04 02:52:05 +0000 | [diff] [blame] | 20936 | "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;; |
Chris Morgan | d888d36 | 2004-01-06 20:49:58 +0000 | [diff] [blame] | 20937 | "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;; |
Dimitrie O. Paun | 82ce2cc | 2003-03-31 19:41:55 +0000 | [diff] [blame] | 20938 | "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20939 | "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;; |
Alexandre Julliard | f264bd3 | 2002-09-13 17:54:27 +0000 | [diff] [blame] | 20940 | "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;; |
Alexandre Julliard | 65a4216 | 2002-06-04 21:29:40 +0000 | [diff] [blame] | 20941 | "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;; |
Mike McCormack | 88090b4 | 2003-05-21 18:50:53 +0000 | [diff] [blame] | 20942 | "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20943 | "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;; |
Mike Wetherell | 0d8a9fa | 2002-05-05 20:31:54 +0000 | [diff] [blame] | 20944 | "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;; |
Alexandre Julliard | 9f71bd9 | 2003-12-04 02:01:39 +0000 | [diff] [blame] | 20945 | "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;; |
Alexandre Julliard | fedc411 | 2003-04-27 00:47:58 +0000 | [diff] [blame] | 20946 | "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20947 | "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;; |
| 20948 | "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20949 | "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; |
| 20950 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
Alexandre Julliard | 7d4ee77 | 2002-07-16 03:20:45 +0000 | [diff] [blame] | 20951 | "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20952 | "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;; |
| 20953 | "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;; |
| 20954 | "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;; |
Alexandre Julliard | 280661c | 2003-09-11 21:27:58 +0000 | [diff] [blame] | 20955 | "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20956 | "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;; |
| 20957 | "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 20958 | "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20959 | "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;; |
| 20960 | "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;; |
| 20961 | "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;; |
| 20962 | "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;; |
| 20963 | "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;; |
| 20964 | "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;; |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 20965 | "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;; |
| 20966 | "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20967 | "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;; |
| 20968 | "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;; |
| 20969 | "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;; |
| 20970 | "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;; |
| 20971 | "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 20972 | "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 20973 | "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;; |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 20974 | "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 20975 | "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20976 | "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20977 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20978 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20979 | { (exit 1); exit 1; }; };; |
| 20980 | esac |
| 20981 | done |
| 20982 | |
| 20983 | # If the user did not use the arguments to specify the items to instantiate, |
| 20984 | # then the envvar interface is used. Set only those that are not. |
| 20985 | # We use the long form for the default assignment because of an extremely |
| 20986 | # bizarre bug on SunOS 4.1.3. |
| 20987 | if $ac_need_defaults; then |
| 20988 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20989 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 20990 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 20991 | fi |
| 20992 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20993 | # Have a temporary directory for convenience. Make it in the build tree |
| 20994 | # simply because there is no reason to put it here, and in addition, |
| 20995 | # creating and moving files from /tmp can sometimes cause problems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20996 | # Create a temporary directory, and hook for its removal unless debugging. |
| 20997 | $debug || |
| 20998 | { |
| 20999 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 21000 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 21001 | } |
| 21002 | |
| 21003 | # Create a (secure) tmp directory for tmp files. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21004 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21005 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21006 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21007 | test -n "$tmp" && test -d "$tmp" |
| 21008 | } || |
| 21009 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21010 | tmp=./confstat$$-$RANDOM |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21011 | (umask 077 && mkdir $tmp) |
| 21012 | } || |
| 21013 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21014 | echo "$me: cannot create a temporary directory in ." >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21015 | { (exit 1); exit 1; } |
| 21016 | } |
| 21017 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21018 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21019 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21020 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21021 | |
| 21022 | # |
| 21023 | # CONFIG_FILES section. |
| 21024 | # |
| 21025 | |
| 21026 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21027 | # This happens for instance when ./config.status config.h |
| 21028 | if test -n "\$CONFIG_FILES"; then |
| 21029 | # Protect against being on the right side of a sed subst in config.status. |
| 21030 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 21031 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 21032 | s,@SHELL@,$SHELL,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21033 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 21034 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 21035 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 21036 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 21037 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 21038 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21039 | s,@exec_prefix@,$exec_prefix,;t t |
| 21040 | s,@prefix@,$prefix,;t t |
| 21041 | s,@program_transform_name@,$program_transform_name,;t t |
| 21042 | s,@bindir@,$bindir,;t t |
| 21043 | s,@sbindir@,$sbindir,;t t |
| 21044 | s,@libexecdir@,$libexecdir,;t t |
| 21045 | s,@datadir@,$datadir,;t t |
| 21046 | s,@sysconfdir@,$sysconfdir,;t t |
| 21047 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 21048 | s,@localstatedir@,$localstatedir,;t t |
| 21049 | s,@libdir@,$libdir,;t t |
| 21050 | s,@includedir@,$includedir,;t t |
| 21051 | s,@oldincludedir@,$oldincludedir,;t t |
| 21052 | s,@infodir@,$infodir,;t t |
| 21053 | s,@mandir@,$mandir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21054 | s,@build_alias@,$build_alias,;t t |
| 21055 | s,@host_alias@,$host_alias,;t t |
| 21056 | s,@target_alias@,$target_alias,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21057 | s,@DEFS@,$DEFS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21058 | s,@ECHO_C@,$ECHO_C,;t t |
| 21059 | s,@ECHO_N@,$ECHO_N,;t t |
| 21060 | s,@ECHO_T@,$ECHO_T,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21061 | s,@LIBS@,$LIBS,;t t |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 21062 | s,@WIN16_FILES@,$WIN16_FILES,;t t |
| 21063 | s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21064 | s,@build@,$build,;t t |
| 21065 | s,@build_cpu@,$build_cpu,;t t |
| 21066 | s,@build_vendor@,$build_vendor,;t t |
| 21067 | s,@build_os@,$build_os,;t t |
| 21068 | s,@host@,$host,;t t |
| 21069 | s,@host_cpu@,$host_cpu,;t t |
| 21070 | s,@host_vendor@,$host_vendor,;t t |
| 21071 | s,@host_os@,$host_os,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21072 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 21073 | s,@CC@,$CC,;t t |
| 21074 | s,@CFLAGS@,$CFLAGS,;t t |
| 21075 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 21076 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 21077 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 21078 | s,@EXEEXT@,$EXEEXT,;t t |
| 21079 | s,@OBJEXT@,$OBJEXT,;t t |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 21080 | s,@CXX@,$CXX,;t t |
| 21081 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 21082 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 21083 | s,@CPPBIN@,$CPPBIN,;t t |
| 21084 | s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 21085 | s,@TOOLSDIR@,$TOOLSDIR,;t t |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 21086 | s,@CPP@,$CPP,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21087 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 21088 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 21089 | s,@X_LIBS@,$X_LIBS,;t t |
| 21090 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21091 | s,@LEX@,$LEX,;t t |
| 21092 | s,@LEXLIB@,$LEXLIB,;t t |
| 21093 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21094 | s,@XLEX@,$XLEX,;t t |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 21095 | s,@BISON@,$BISON,;t t |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 21096 | s,@AS@,$AS,;t t |
| 21097 | s,@ac_ct_AS@,$ac_ct_AS,;t t |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 21098 | s,@LD@,$LD,;t t |
| 21099 | s,@ac_ct_LD@,$ac_ct_LD,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 21100 | s,@AR@,$AR,;t t |
| 21101 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21102 | s,@RANLIB@,$RANLIB,;t t |
| 21103 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 21104 | s,@STRIP@,$STRIP,;t t |
| 21105 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 21106 | s,@WINDRES@,$WINDRES,;t t |
| 21107 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21108 | s,@LN_S@,$LN_S,;t t |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 21109 | s,@LN@,$LN,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21110 | s,@LDCONFIG@,$LDCONFIG,;t t |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21111 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 21112 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 21113 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21114 | s,@LINT@,$LINT,;t t |
| 21115 | s,@LINTFLAGS@,$LINTFLAGS,;t t |
Vincent Béron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame] | 21116 | s,@DB2HTML@,$DB2HTML,;t t |
| 21117 | s,@DB2PDF@,$DB2PDF,;t t |
| 21118 | s,@DB2PS@,$DB2PS,;t t |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 21119 | s,@DB2TXT@,$DB2TXT,;t t |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 21120 | s,@LIBPTHREAD@,$LIBPTHREAD,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21121 | s,@JPEGLIB@,$JPEGLIB,;t t |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21122 | s,@EGREP@,$EGREP,;t t |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 21123 | s,@GIFLIB@,$GIFLIB,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21124 | s,@XLIB@,$XLIB,;t t |
| 21125 | s,@XFILES@,$XFILES,;t t |
| 21126 | s,@OPENGLFILES@,$OPENGLFILES,;t t |
| 21127 | s,@GLU32FILES@,$GLU32FILES,;t t |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 21128 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 21129 | s,@GLUT_LIBS@,$GLUT_LIBS,;t t |
| 21130 | s,@GLUT32FILES@,$GLUT32FILES,;t t |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 21131 | s,@NASLIBS@,$NASLIBS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21132 | s,@CURSESLIBS@,$CURSESLIBS,;t t |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 21133 | s,@sane_devel@,$sane_devel,;t t |
| 21134 | s,@SANELIBS@,$SANELIBS,;t t |
| 21135 | s,@SANEINCL@,$SANEINCL,;t t |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 21136 | s,@ICULIBS@,$ICULIBS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21137 | s,@ft_devel@,$ft_devel,;t t |
| 21138 | s,@ft_devel2@,$ft_devel2,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21139 | s,@FREETYPEINCL@,$FREETYPEINCL,;t t |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 21140 | s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t |
| 21141 | s,@ARTSLIBS@,$ARTSLIBS,;t t |
| 21142 | s,@ARTSINCL@,$ARTSINCL,;t t |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 21143 | s,@ALSALIBS@,$ALSALIBS,;t t |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 21144 | s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 21145 | s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 21146 | s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 21147 | s,@DLLEXT@,$DLLEXT,;t t |
| 21148 | s,@DLLFLAGS@,$DLLFLAGS,;t t |
| 21149 | s,@DLLIBS@,$DLLIBS,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 21150 | s,@LDSHARED@,$LDSHARED,;t t |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 21151 | s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 21152 | s,@LIBEXT@,$LIBEXT,;t t |
| 21153 | s,@IMPLIBEXT@,$IMPLIBEXT,;t t |
| 21154 | s,@DLLTOOL@,$DLLTOOL,;t t |
| 21155 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21156 | s,@DLLWRAP@,$DLLWRAP,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 21157 | s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 21158 | s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 21159 | s,@CROSSTEST@,$CROSSTEST,;t t |
| 21160 | s,@CROSSCC@,$CROSSCC,;t t |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 21161 | s,@CROSSWINDRES@,$CROSSWINDRES,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21162 | s,@LDPATH@,$LDPATH,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 21163 | s,@CRTLIBS@,$CRTLIBS,;t t |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 21164 | s,@WINE_BINARIES@,$WINE_BINARIES,;t t |
| 21165 | s,@MAIN_BINARY@,$MAIN_BINARY,;t t |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 21166 | s,@LDD@,$LDD,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21167 | s,@ALLOCA@,$ALLOCA,;t t |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21168 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 21169 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21170 | /@MAKE_RULES@/r $MAKE_RULES |
| 21171 | s,@MAKE_RULES@,,;t t |
| 21172 | /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES |
| 21173 | s,@MAKE_DLL_RULES@,,;t t |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 21174 | /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES |
| 21175 | s,@MAKE_TEST_RULES@,,;t t |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 21176 | /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES |
| 21177 | s,@MAKE_LIB_RULES@,,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21178 | /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES |
| 21179 | s,@MAKE_PROG_RULES@,,;t t |
| 21180 | CEOF |
| 21181 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21182 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21183 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21184 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21185 | # Split the substitutions into bite-sized pieces for seds with |
| 21186 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 21187 | ac_max_sed_lines=48 |
| 21188 | ac_sed_frag=1 # Number of current file. |
| 21189 | ac_beg=1 # First line for current file. |
| 21190 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 21191 | ac_more_lines=: |
| 21192 | ac_sed_cmds= |
| 21193 | while $ac_more_lines; do |
| 21194 | if test $ac_beg -gt 1; then |
| 21195 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21196 | else |
| 21197 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21198 | fi |
| 21199 | if test ! -s $tmp/subs.frag; then |
| 21200 | ac_more_lines=false |
| 21201 | else |
| 21202 | # The purpose of the label and of the branching condition is to |
| 21203 | # speed up the sed processing (if there are no `@' at all, there |
| 21204 | # is no need to browse any of the substitutions). |
| 21205 | # These are the two extra sed commands mentioned above. |
| 21206 | (echo ':t |
| 21207 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 21208 | if test -z "$ac_sed_cmds"; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21209 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21210 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21211 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21212 | fi |
| 21213 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 21214 | ac_beg=$ac_end |
| 21215 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 21216 | fi |
| 21217 | done |
| 21218 | if test -z "$ac_sed_cmds"; then |
| 21219 | ac_sed_cmds=cat |
| 21220 | fi |
| 21221 | fi # test -n "$CONFIG_FILES" |
| 21222 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21223 | _ACEOF |
| 21224 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21225 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 21226 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 21227 | case $ac_file in |
| 21228 | - | *:- | *:-:* ) # input from stdin |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21229 | cat >$tmp/stdin |
| 21230 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 21231 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21232 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21233 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21234 | * ) ac_file_in=$ac_file.in ;; |
| 21235 | esac |
| 21236 | |
| 21237 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21238 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 21239 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21240 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21241 | X"$ac_file" : 'X\(//\)$' \| \ |
| 21242 | X"$ac_file" : 'X\(/\)' \| \ |
| 21243 | . : '\(.\)' 2>/dev/null || |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21244 | echo X"$ac_file" | |
| 21245 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21246 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21247 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21248 | /^X\(\/\).*/{ s//\1/; q; } |
| 21249 | s/.*/./; q'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21250 | { if $as_mkdir_p; then |
| 21251 | mkdir -p "$ac_dir" |
| 21252 | else |
| 21253 | as_dir="$ac_dir" |
| 21254 | as_dirs= |
| 21255 | while test ! -d "$as_dir"; do |
| 21256 | as_dirs="$as_dir $as_dirs" |
| 21257 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21258 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21259 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21260 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21261 | X"$as_dir" : 'X\(/\)' \| \ |
| 21262 | . : '\(.\)' 2>/dev/null || |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21263 | echo X"$as_dir" | |
| 21264 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21265 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21266 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21267 | /^X\(\/\).*/{ s//\1/; q; } |
| 21268 | s/.*/./; q'` |
| 21269 | done |
| 21270 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21271 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21272 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21273 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21274 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21275 | ac_builddir=. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21276 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21277 | if test "$ac_dir" != .; then |
| 21278 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 21279 | # A "../" for each directory in $ac_dir_suffix. |
| 21280 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 21281 | else |
| 21282 | ac_dir_suffix= ac_top_builddir= |
| 21283 | fi |
| 21284 | |
| 21285 | case $srcdir in |
| 21286 | .) # No --srcdir option. We are building in place. |
| 21287 | ac_srcdir=. |
| 21288 | if test -z "$ac_top_builddir"; then |
| 21289 | ac_top_srcdir=. |
| 21290 | else |
| 21291 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 21292 | fi ;; |
| 21293 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 21294 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 21295 | ac_top_srcdir=$srcdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21296 | *) # Relative path. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21297 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 21298 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 21299 | esac |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21300 | |
| 21301 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 21302 | # the directories may not exist. |
| 21303 | case `pwd` in |
| 21304 | .) ac_abs_builddir="$ac_dir";; |
| 21305 | *) |
| 21306 | case "$ac_dir" in |
| 21307 | .) ac_abs_builddir=`pwd`;; |
| 21308 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 21309 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 21310 | esac;; |
| 21311 | esac |
| 21312 | case $ac_abs_builddir in |
| 21313 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21314 | *) |
| 21315 | case ${ac_top_builddir}. in |
| 21316 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 21317 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21318 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 21319 | esac;; |
| 21320 | esac |
| 21321 | case $ac_abs_builddir in |
| 21322 | .) ac_abs_srcdir=$ac_srcdir;; |
| 21323 | *) |
| 21324 | case $ac_srcdir in |
| 21325 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 21326 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 21327 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 21328 | esac;; |
| 21329 | esac |
| 21330 | case $ac_abs_builddir in |
| 21331 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21332 | *) |
| 21333 | case $ac_top_srcdir in |
| 21334 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 21335 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21336 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 21337 | esac;; |
| 21338 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21339 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21340 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21341 | case $INSTALL in |
| 21342 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21343 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 21344 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 21345 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21346 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21347 | # use $as_me), people would be surprised to read: |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21348 | # /* config.h. Generated by config.status. */ |
| 21349 | if test x"$ac_file" = x-; then |
| 21350 | configure_input= |
| 21351 | else |
| 21352 | configure_input="$ac_file. " |
| 21353 | fi |
| 21354 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21355 | sed 's,.*/,,'` by configure." |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 21356 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21357 | # First look for the input files in the build tree, otherwise in the |
| 21358 | # src tree. |
| 21359 | ac_file_inputs=`IFS=: |
| 21360 | for f in $ac_file_in; do |
| 21361 | case $f in |
| 21362 | -) echo $tmp/stdin ;; |
| 21363 | [\\/$]*) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21364 | # Absolute (can't be DOS-style, as IFS=:) |
| 21365 | 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] | 21366 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21367 | { (exit 1); exit 1; }; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21368 | echo "$f";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21369 | *) # Relative |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21370 | if test -f "$f"; then |
| 21371 | # Build tree |
| 21372 | echo "$f" |
| 21373 | elif test -f "$srcdir/$f"; then |
| 21374 | # Source tree |
| 21375 | echo "$srcdir/$f" |
| 21376 | else |
| 21377 | # /dev/null tree |
| 21378 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21379 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21380 | { (exit 1); exit 1; }; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21381 | fi;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21382 | esac |
| 21383 | done` || { (exit 1); exit 1; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21384 | |
| 21385 | if test x"$ac_file" != x-; then |
| 21386 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21387 | echo "$as_me: creating $ac_file" >&6;} |
| 21388 | rm -f "$ac_file" |
| 21389 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21390 | _ACEOF |
| 21391 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21392 | sed "$ac_vpsub |
| 21393 | $extrasub |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21394 | _ACEOF |
| 21395 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21396 | :t |
| 21397 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 21398 | s,@configure_input@,$configure_input,;t t |
| 21399 | s,@srcdir@,$ac_srcdir,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21400 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21401 | s,@top_srcdir@,$ac_top_srcdir,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21402 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 21403 | s,@builddir@,$ac_builddir,;t t |
| 21404 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 21405 | s,@top_builddir@,$ac_top_builddir,;t t |
| 21406 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21407 | s,@INSTALL@,$ac_INSTALL,;t t |
| 21408 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 21409 | rm -f $tmp/stdin |
| 21410 | if test x"$ac_file" != x-; then |
| 21411 | mv $tmp/out $ac_file |
| 21412 | else |
| 21413 | cat $tmp/out |
| 21414 | rm -f $tmp/out |
| 21415 | fi |
| 21416 | |
| 21417 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21418 | _ACEOF |
| 21419 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21420 | |
| 21421 | # |
| 21422 | # CONFIG_HEADER section. |
| 21423 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21424 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21425 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 21426 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 21427 | # |
| 21428 | # ac_d sets the value in "#define NAME VALUE" lines. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21429 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 21430 | ac_dB='[ ].*$,\1#\2' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21431 | ac_dC=' ' |
| 21432 | ac_dD=',;t' |
| 21433 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21434 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21435 | ac_uB='$,\1#\2define\3' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21436 | ac_uC=' ' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21437 | ac_uD=',;t' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21438 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21439 | 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] | 21440 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21441 | case $ac_file in |
| 21442 | - | *:- | *:-:* ) # input from stdin |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21443 | cat >$tmp/stdin |
| 21444 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 21445 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21446 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21447 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21448 | * ) ac_file_in=$ac_file.in ;; |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21449 | esac |
| 21450 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21451 | 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] | 21452 | echo "$as_me: creating $ac_file" >&6;} |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21453 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21454 | # First look for the input files in the build tree, otherwise in the |
| 21455 | # src tree. |
| 21456 | ac_file_inputs=`IFS=: |
| 21457 | for f in $ac_file_in; do |
| 21458 | case $f in |
| 21459 | -) echo $tmp/stdin ;; |
| 21460 | [\\/$]*) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21461 | # Absolute (can't be DOS-style, as IFS=:) |
| 21462 | 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] | 21463 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21464 | { (exit 1); exit 1; }; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21465 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 21466 | echo "$f";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21467 | *) # Relative |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21468 | if test -f "$f"; then |
| 21469 | # Build tree |
| 21470 | echo "$f" |
| 21471 | elif test -f "$srcdir/$f"; then |
| 21472 | # Source tree |
| 21473 | echo "$srcdir/$f" |
| 21474 | else |
| 21475 | # /dev/null tree |
| 21476 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21477 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21478 | { (exit 1); exit 1; }; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21479 | fi;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21480 | esac |
| 21481 | done` || { (exit 1); exit 1; } |
| 21482 | # Remove the trailing spaces. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21483 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21484 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21485 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21486 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21487 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 21488 | # `conftest.undefs', that substitutes the proper values into |
| 21489 | # config.h.in to produce config.h. The first handles `#define' |
| 21490 | # templates, and the second `#undef' templates. |
| 21491 | # And first: Protect against being on the right side of a sed subst in |
| 21492 | # config.status. Protect against being in an unquoted here document |
| 21493 | # in config.status. |
| 21494 | rm -f conftest.defines conftest.undefs |
| 21495 | # Using a here document instead of a string reduces the quoting nightmare. |
| 21496 | # Putting comments in sed scripts is not portable. |
| 21497 | # |
| 21498 | # `end' is used to avoid that the second main sed command (meant for |
| 21499 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 21500 | # See the Autoconf documentation for `clear'. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21501 | cat >confdef2sed.sed <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21502 | s/[\\&,]/\\&/g |
| 21503 | s,[\\$`],\\&,g |
| 21504 | t clear |
| 21505 | : clear |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21506 | 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] | 21507 | t end |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21508 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21509 | : end |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21510 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21511 | # If some macros were called several times there might be several times |
| 21512 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 21513 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 21514 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 21515 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 21516 | rm -f confdef2sed.sed |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21517 | |
| 21518 | # This sed command replaces #undef with comments. This is necessary, for |
| 21519 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21520 | # on some systems where configure will not decide to define it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21521 | cat >>conftest.undefs <<\_ACEOF |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21522 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21523 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21524 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21525 | # Break up conftest.defines because some shells have a limit on the size |
| 21526 | # of here documents, and old seds have small limits too (100 cmds). |
| 21527 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21528 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21529 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 21530 | echo ' :' >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21531 | rm -f conftest.tail |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21532 | while grep . conftest.defines >/dev/null |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21533 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21534 | # Write a limited-size here document to $tmp/defines.sed. |
| 21535 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 21536 | # Speed up: don't consider the non `#define' lines. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21537 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21538 | # Work around the forget-to-reset-the-flag bug. |
| 21539 | echo 't clr' >>$CONFIG_STATUS |
| 21540 | echo ': clr' >>$CONFIG_STATUS |
| 21541 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21542 | echo 'CEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21543 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 21544 | rm -f $tmp/in |
| 21545 | mv $tmp/out $tmp/in |
| 21546 | ' >>$CONFIG_STATUS |
| 21547 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 21548 | rm -f conftest.defines |
| 21549 | mv conftest.tail conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21550 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21551 | rm -f conftest.defines |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21552 | echo ' fi # grep' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21553 | echo >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21554 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21555 | # Break up conftest.undefs because some shells have a limit on the size |
| 21556 | # of here documents, and old seds have small limits too (100 cmds). |
| 21557 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 21558 | rm -f conftest.tail |
| 21559 | while grep . conftest.undefs >/dev/null |
| 21560 | do |
| 21561 | # Write a limited-size here document to $tmp/undefs.sed. |
| 21562 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 21563 | # Speed up: don't consider the non `#undef' |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21564 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21565 | # Work around the forget-to-reset-the-flag bug. |
| 21566 | echo 't clr' >>$CONFIG_STATUS |
| 21567 | echo ': clr' >>$CONFIG_STATUS |
| 21568 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 21569 | echo 'CEOF |
| 21570 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 21571 | rm -f $tmp/in |
| 21572 | mv $tmp/out $tmp/in |
| 21573 | ' >>$CONFIG_STATUS |
| 21574 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 21575 | rm -f conftest.undefs |
| 21576 | mv conftest.tail conftest.undefs |
| 21577 | done |
| 21578 | rm -f conftest.undefs |
| 21579 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21580 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21581 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21582 | # use $as_me), people would be surprised to read: |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21583 | # /* config.h. Generated by config.status. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21584 | if test x"$ac_file" = x-; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21585 | echo "/* Generated by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21586 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21587 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21588 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21589 | cat $tmp/in >>$tmp/config.h |
| 21590 | rm -f $tmp/in |
| 21591 | if test x"$ac_file" != x-; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21592 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21593 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21594 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 21595 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21596 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 21597 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21598 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21599 | X"$ac_file" : 'X\(//\)$' \| \ |
| 21600 | X"$ac_file" : 'X\(/\)' \| \ |
| 21601 | . : '\(.\)' 2>/dev/null || |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21602 | echo X"$ac_file" | |
| 21603 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21604 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21605 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21606 | /^X\(\/\).*/{ s//\1/; q; } |
| 21607 | s/.*/./; q'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21608 | { if $as_mkdir_p; then |
| 21609 | mkdir -p "$ac_dir" |
| 21610 | else |
| 21611 | as_dir="$ac_dir" |
| 21612 | as_dirs= |
| 21613 | while test ! -d "$as_dir"; do |
| 21614 | as_dirs="$as_dir $as_dirs" |
| 21615 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21616 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21617 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21618 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21619 | X"$as_dir" : 'X\(/\)' \| \ |
| 21620 | . : '\(.\)' 2>/dev/null || |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21621 | echo X"$as_dir" | |
| 21622 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21623 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21624 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21625 | /^X\(\/\).*/{ s//\1/; q; } |
| 21626 | s/.*/./; q'` |
| 21627 | done |
| 21628 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21629 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21630 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21631 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21632 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21633 | rm -f $ac_file |
| 21634 | mv $tmp/config.h $ac_file |
| 21635 | fi |
| 21636 | else |
| 21637 | cat $tmp/config.h |
| 21638 | rm -f $tmp/config.h |
| 21639 | fi |
| 21640 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21641 | _ACEOF |
| 21642 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21643 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21644 | # |
| 21645 | # CONFIG_COMMANDS section. |
| 21646 | # |
| 21647 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 21648 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 21649 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21650 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 21651 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21652 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 21653 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 21654 | X"$ac_dest" : 'X\(/\)' \| \ |
| 21655 | . : '\(.\)' 2>/dev/null || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21656 | echo X"$ac_dest" | |
| 21657 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21658 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21659 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21660 | /^X\(\/\).*/{ s//\1/; q; } |
| 21661 | s/.*/./; q'` |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21662 | { if $as_mkdir_p; then |
| 21663 | mkdir -p "$ac_dir" |
| 21664 | else |
| 21665 | as_dir="$ac_dir" |
| 21666 | as_dirs= |
| 21667 | while test ! -d "$as_dir"; do |
| 21668 | as_dirs="$as_dir $as_dirs" |
| 21669 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21670 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21671 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21672 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21673 | X"$as_dir" : 'X\(/\)' \| \ |
| 21674 | . : '\(.\)' 2>/dev/null || |
| 21675 | echo X"$as_dir" | |
| 21676 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21677 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21678 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21679 | /^X\(\/\).*/{ s//\1/; q; } |
| 21680 | s/.*/./; q'` |
| 21681 | done |
| 21682 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21683 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21684 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21685 | { (exit 1); exit 1; }; }; } |
| 21686 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21687 | ac_builddir=. |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 21688 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21689 | if test "$ac_dir" != .; then |
| 21690 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 21691 | # A "../" for each directory in $ac_dir_suffix. |
| 21692 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21693 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21694 | ac_dir_suffix= ac_top_builddir= |
| 21695 | fi |
| 21696 | |
| 21697 | case $srcdir in |
| 21698 | .) # No --srcdir option. We are building in place. |
| 21699 | ac_srcdir=. |
| 21700 | if test -z "$ac_top_builddir"; then |
| 21701 | ac_top_srcdir=. |
| 21702 | else |
| 21703 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 21704 | fi ;; |
| 21705 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 21706 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 21707 | ac_top_srcdir=$srcdir ;; |
| 21708 | *) # Relative path. |
| 21709 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 21710 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 21711 | esac |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21712 | |
| 21713 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 21714 | # the directories may not exist. |
| 21715 | case `pwd` in |
| 21716 | .) ac_abs_builddir="$ac_dir";; |
| 21717 | *) |
| 21718 | case "$ac_dir" in |
| 21719 | .) ac_abs_builddir=`pwd`;; |
| 21720 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 21721 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 21722 | esac;; |
| 21723 | esac |
| 21724 | case $ac_abs_builddir in |
| 21725 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21726 | *) |
| 21727 | case ${ac_top_builddir}. in |
| 21728 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 21729 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21730 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 21731 | esac;; |
| 21732 | esac |
| 21733 | case $ac_abs_builddir in |
| 21734 | .) ac_abs_srcdir=$ac_srcdir;; |
| 21735 | *) |
| 21736 | case $ac_srcdir in |
| 21737 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 21738 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 21739 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 21740 | esac;; |
| 21741 | esac |
| 21742 | case $ac_abs_builddir in |
| 21743 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21744 | *) |
| 21745 | case $ac_top_srcdir in |
| 21746 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 21747 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21748 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 21749 | esac;; |
| 21750 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21751 | |
| 21752 | |
| 21753 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 21754 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 21755 | case $ac_dest in |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 21756 | controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5 |
| 21757 | echo "$as_me: creating controls" >&6;} && mkdir "controls") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21758 | dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5 |
| 21759 | echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;; |
| 21760 | dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5 |
| 21761 | echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;; |
| 21762 | dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5 |
| 21763 | echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;; |
| 21764 | dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5 |
| 21765 | echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;; |
| 21766 | dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5 |
| 21767 | echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;; |
| 21768 | dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5 |
| 21769 | echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21770 | dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5 |
| 21771 | echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;; |
| 21772 | dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5 |
| 21773 | echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21774 | dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5 |
| 21775 | echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21776 | dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5 |
| 21777 | echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;; |
| 21778 | dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5 |
| 21779 | echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21780 | dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5 |
| 21781 | echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;; |
| 21782 | include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5 |
| 21783 | echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 21784 | misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5 |
| 21785 | echo "$as_me: creating misc" >&6;} && mkdir "misc") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 21786 | objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5 |
| 21787 | echo "$as_me: creating objects" >&6;} && mkdir "objects") ;; |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 21788 | programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5 |
| 21789 | echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 21790 | windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5 |
| 21791 | echo "$as_me: creating windows" >&6;} && mkdir "windows") ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21792 | esac |
| 21793 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21794 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21795 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21796 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 21797 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21798 | { (exit 0); exit 0; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21799 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21800 | chmod +x $CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21801 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21802 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21803 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21804 | # configure is writing to config.log, and then calls config.status. |
| 21805 | # config.status does its own redirection, appending to config.log. |
| 21806 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21807 | # by configure, so config.status won't be able to write to it; its |
| 21808 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21809 | # effectively closing config.log, so it can be properly (re)opened and |
| 21810 | # appended to by config.status. When coming back to configure, we |
| 21811 | # need to make the FD available again. |
| 21812 | if test "$no_create" != yes; then |
| 21813 | ac_cs_success=: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21814 | ac_config_status_args= |
| 21815 | test "$silent" = yes && |
| 21816 | ac_config_status_args="$ac_config_status_args --quiet" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21817 | exec 5>/dev/null |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21818 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21819 | exec 5>>config.log |
| 21820 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21821 | # would make configure fail if this is the last instruction. |
| 21822 | $ac_cs_success || { (exit 1); exit 1; } |
| 21823 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21824 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21825 | |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 21826 | if test "$have_x" = "no" |
| 21827 | then |
| 21828 | echo |
| 21829 | echo "*** Warning: X development files not found. Wine will be built without" |
| 21830 | echo "*** X support, which currently does not work, and would probably not be" |
| 21831 | 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] | 21832 | echo "*** Xlib/Xfree86 at the very least." |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 21833 | fi |
| 21834 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 21835 | if test "$wine_cv_opengl_version_OK" = "no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 21836 | then |
| 21837 | echo |
| 21838 | echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 21839 | echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." |
| 21840 | fi |
| 21841 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 21842 | if test "$wine_cv_msg_freetype" = "yes" |
| 21843 | then |
| 21844 | echo |
| 21845 | echo "*** Note: Your system appears to have the FreeType 2 runtime libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21846 | echo "*** installed, but 'freetype-config' is not in your PATH. Install the" |
| 21847 | echo "*** freetype-devel package (or its equivalent on your distribution) to" |
| 21848 | echo "*** enable Wine to use TrueType fonts." |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 21849 | fi |
| 21850 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21851 | echo |
Steffen Moeller | 1511bae | 1999-02-17 15:27:03 +0000 | [diff] [blame] | 21852 | echo "Configure finished. Do 'make depend && make' to compile Wine." |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21853 | echo |
| 21854 | |