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 | e4cc8c0 | 2003-07-09 23:30:36 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.57 for Wine 20030709. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4 | # |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6 | # Free Software Foundation, Inc. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12 | |
| 13 | # Be Bourne compatible |
| 14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15 | emulate sh |
| 16 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18 | # is contrary to our usage. Disable this feature. |
| 19 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 21 | set -o posix |
| 22 | fi |
| 23 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24 | # Support unset when possible. |
| 25 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 43 | do |
| 44 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 63 | |
| 64 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 65 | # Name of the executable. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 66 | as_me=`$as_basename "$0" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 77 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 78 | # PATH needs CR, and LINENO needs CR and PATH. |
| 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
| 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 96 | rm -f conf$$.sh |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 97 | fi |
| 98 | |
| 99 | |
| 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
| 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
| 123 | fi |
| 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
| 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
| 137 | /*) |
| 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | 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] | 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
| 152 | done |
| 153 | ;; |
| 154 | esac |
| 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
| 165 | sed ' |
| 166 | N |
| 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 | t loop |
| 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
| 173 | ' >$as_me.lineno && |
| 174 | chmod +x $as_me.lineno || |
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
| 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
| 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
| 207 | as_ln_s='cp -p' |
| 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 217 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
| 220 | else |
| 221 | as_mkdir_p=false |
| 222 | fi |
| 223 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 224 | as_executable_p="test -f" |
| 225 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 226 | # Sed expression to map a string onto a valid CPP name. |
| 227 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 228 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 229 | # Sed expression to map a string onto a valid variable name. |
| 230 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 231 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 232 | |
| 233 | # IFS |
| 234 | # We need space, tab and new line, in precisely that order. |
| 235 | as_nl=' |
| 236 | ' |
| 237 | IFS=" $as_nl" |
| 238 | |
| 239 | # CDPATH. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 240 | $as_unset CDPATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 241 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 242 | |
| 243 | # Name of the host. |
| 244 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 245 | # so uname gets run too. |
| 246 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 247 | |
| 248 | exec 6>&1 |
| 249 | |
| 250 | # |
| 251 | # Initializations. |
| 252 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 253 | ac_default_prefix=/usr/local |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 254 | ac_config_libobj_dir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 255 | cross_compiling=no |
| 256 | subdirs= |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 257 | MFLAGS= |
| 258 | MAKEFLAGS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 259 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 260 | |
| 261 | # Maximum number of lines to put in a shell here document. |
| 262 | # This variable seems obsolete. It should probably be removed, and |
| 263 | # only ac_max_sed_lines should be used. |
| 264 | : ${ac_max_here_lines=38} |
| 265 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 266 | # Identity of this package. |
| 267 | PACKAGE_NAME='Wine' |
| 268 | PACKAGE_TARNAME='wine' |
Alexandre Julliard | e4cc8c0 | 2003-07-09 23:30:36 +0000 | [diff] [blame] | 269 | PACKAGE_VERSION='20030709' |
| 270 | PACKAGE_STRING='Wine 20030709' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 271 | PACKAGE_BUGREPORT='' |
| 272 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 273 | ac_unique_file="server/atom.c" |
| 274 | # Factoring default headers for most tests. |
| 275 | ac_includes_default="\ |
| 276 | #include <stdio.h> |
| 277 | #if HAVE_SYS_TYPES_H |
| 278 | # include <sys/types.h> |
| 279 | #endif |
| 280 | #if HAVE_SYS_STAT_H |
| 281 | # include <sys/stat.h> |
| 282 | #endif |
| 283 | #if STDC_HEADERS |
| 284 | # include <stdlib.h> |
| 285 | # include <stddef.h> |
| 286 | #else |
| 287 | # if HAVE_STDLIB_H |
| 288 | # include <stdlib.h> |
| 289 | # endif |
| 290 | #endif |
| 291 | #if HAVE_STRING_H |
| 292 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 293 | # include <memory.h> |
| 294 | # endif |
| 295 | # include <string.h> |
| 296 | #endif |
| 297 | #if HAVE_STRINGS_H |
| 298 | # include <strings.h> |
| 299 | #endif |
| 300 | #if HAVE_INTTYPES_H |
| 301 | # include <inttypes.h> |
| 302 | #else |
| 303 | # if HAVE_STDINT_H |
| 304 | # include <stdint.h> |
| 305 | # endif |
| 306 | #endif |
| 307 | #if HAVE_UNISTD_H |
| 308 | # include <unistd.h> |
| 309 | #endif" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 310 | |
Richard Cohen | 6039fb0 | 2003-07-21 22:01:07 +0000 | [diff] [blame] | 311 | 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 LIBPTHREAD 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 CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX 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 JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS' |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 312 | 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] | 313 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 314 | # Initialize some variables set by options. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 315 | ac_init_help= |
| 316 | ac_init_version=false |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 317 | # The variables have the same names as the options, with |
| 318 | # dashes changed to underlines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 319 | cache_file=/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 320 | exec_prefix=NONE |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 321 | no_create= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 322 | no_recursion= |
| 323 | prefix=NONE |
| 324 | program_prefix=NONE |
| 325 | program_suffix=NONE |
| 326 | program_transform_name=s,x,x, |
| 327 | silent= |
| 328 | site= |
| 329 | srcdir= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 330 | verbose= |
| 331 | x_includes=NONE |
| 332 | x_libraries=NONE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 333 | |
| 334 | # Installation directory options. |
| 335 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 336 | # and all the variables that are supposed to be based on exec_prefix |
| 337 | # by default will actually change. |
| 338 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 339 | bindir='${exec_prefix}/bin' |
| 340 | sbindir='${exec_prefix}/sbin' |
| 341 | libexecdir='${exec_prefix}/libexec' |
| 342 | datadir='${prefix}/share' |
| 343 | sysconfdir='${prefix}/etc' |
| 344 | sharedstatedir='${prefix}/com' |
| 345 | localstatedir='${prefix}/var' |
| 346 | libdir='${exec_prefix}/lib' |
| 347 | includedir='${prefix}/include' |
| 348 | oldincludedir='/usr/include' |
| 349 | infodir='${prefix}/info' |
| 350 | mandir='${prefix}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 351 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 352 | ac_prev= |
| 353 | for ac_option |
| 354 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 355 | # If the previous option needs an argument, assign it. |
| 356 | if test -n "$ac_prev"; then |
| 357 | eval "$ac_prev=\$ac_option" |
| 358 | ac_prev= |
| 359 | continue |
| 360 | fi |
| 361 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 362 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 363 | |
| 364 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 365 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 366 | case $ac_option in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 367 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 368 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 369 | ac_prev=bindir ;; |
| 370 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 371 | bindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 372 | |
| 373 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 374 | ac_prev=build_alias ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 375 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 376 | build_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 377 | |
| 378 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 379 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 380 | ac_prev=cache_file ;; |
| 381 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 382 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 383 | cache_file=$ac_optarg ;; |
| 384 | |
| 385 | --config-cache | -C) |
| 386 | cache_file=config.cache ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 387 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 388 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 389 | ac_prev=datadir ;; |
| 390 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 391 | | --da=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 392 | datadir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 393 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 394 | -disable-* | --disable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 395 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 396 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 397 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 398 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 399 | { (exit 1); exit 1; }; } |
| 400 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 401 | eval "enable_$ac_feature=no" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 402 | |
| 403 | -enable-* | --enable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 404 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 405 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 406 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 407 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 408 | { (exit 1); exit 1; }; } |
| 409 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 410 | case $ac_option in |
| 411 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 412 | *) ac_optarg=yes ;; |
| 413 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 414 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 415 | |
| 416 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 417 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 418 | | --exec | --exe | --ex) |
| 419 | ac_prev=exec_prefix ;; |
| 420 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 421 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 422 | | --exec=* | --exe=* | --ex=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 423 | exec_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 424 | |
| 425 | -gas | --gas | --ga | --g) |
| 426 | # Obsolete; use --with-gas. |
| 427 | with_gas=yes ;; |
| 428 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 429 | -help | --help | --hel | --he | -h) |
| 430 | ac_init_help=long ;; |
| 431 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 432 | ac_init_help=recursive ;; |
| 433 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 434 | ac_init_help=short ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 435 | |
| 436 | -host | --host | --hos | --ho) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 437 | ac_prev=host_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 438 | -host=* | --host=* | --hos=* | --ho=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 439 | host_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 440 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 441 | -includedir | --includedir | --includedi | --included | --include \ |
| 442 | | --includ | --inclu | --incl | --inc) |
| 443 | ac_prev=includedir ;; |
| 444 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 445 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 446 | includedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 447 | |
| 448 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 449 | ac_prev=infodir ;; |
| 450 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 451 | infodir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 452 | |
| 453 | -libdir | --libdir | --libdi | --libd) |
| 454 | ac_prev=libdir ;; |
| 455 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 456 | libdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 457 | |
| 458 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 459 | | --libexe | --libex | --libe) |
| 460 | ac_prev=libexecdir ;; |
| 461 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 462 | | --libexe=* | --libex=* | --libe=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 463 | libexecdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 464 | |
| 465 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 466 | | --localstate | --localstat | --localsta | --localst \ |
| 467 | | --locals | --local | --loca | --loc | --lo) |
| 468 | ac_prev=localstatedir ;; |
| 469 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 470 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 471 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 472 | localstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 473 | |
| 474 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 475 | ac_prev=mandir ;; |
| 476 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 477 | mandir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 478 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 479 | -nfp | --nfp | --nf) |
| 480 | # Obsolete; use --without-fp. |
| 481 | with_fp=no ;; |
| 482 | |
| 483 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 484 | | --no-cr | --no-c | -n) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 485 | no_create=yes ;; |
| 486 | |
| 487 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 488 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 489 | no_recursion=yes ;; |
| 490 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 491 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 492 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 493 | | --oldin | --oldi | --old | --ol | --o) |
| 494 | ac_prev=oldincludedir ;; |
| 495 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 496 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 497 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 498 | oldincludedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 499 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 500 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 501 | ac_prev=prefix ;; |
| 502 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 503 | prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 504 | |
| 505 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 506 | | --program-pre | --program-pr | --program-p) |
| 507 | ac_prev=program_prefix ;; |
| 508 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 509 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 510 | program_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 511 | |
| 512 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 513 | | --program-suf | --program-su | --program-s) |
| 514 | ac_prev=program_suffix ;; |
| 515 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 516 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 517 | program_suffix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 518 | |
| 519 | -program-transform-name | --program-transform-name \ |
| 520 | | --program-transform-nam | --program-transform-na \ |
| 521 | | --program-transform-n | --program-transform- \ |
| 522 | | --program-transform | --program-transfor \ |
| 523 | | --program-transfo | --program-transf \ |
| 524 | | --program-trans | --program-tran \ |
| 525 | | --progr-tra | --program-tr | --program-t) |
| 526 | ac_prev=program_transform_name ;; |
| 527 | -program-transform-name=* | --program-transform-name=* \ |
| 528 | | --program-transform-nam=* | --program-transform-na=* \ |
| 529 | | --program-transform-n=* | --program-transform-=* \ |
| 530 | | --program-transform=* | --program-transfor=* \ |
| 531 | | --program-transfo=* | --program-transf=* \ |
| 532 | | --program-trans=* | --program-tran=* \ |
| 533 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 534 | program_transform_name=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 535 | |
| 536 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 537 | | -silent | --silent | --silen | --sile | --sil) |
| 538 | silent=yes ;; |
| 539 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 540 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 541 | ac_prev=sbindir ;; |
| 542 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 543 | | --sbi=* | --sb=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 544 | sbindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 545 | |
| 546 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 547 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 548 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 549 | | --sha | --sh) |
| 550 | ac_prev=sharedstatedir ;; |
| 551 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 552 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 553 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 554 | | --sha=* | --sh=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 555 | sharedstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 556 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 557 | -site | --site | --sit) |
| 558 | ac_prev=site ;; |
| 559 | -site=* | --site=* | --sit=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 560 | site=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 561 | |
| 562 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 563 | ac_prev=srcdir ;; |
| 564 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 565 | srcdir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 566 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 567 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 568 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 569 | ac_prev=sysconfdir ;; |
| 570 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 571 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 572 | sysconfdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 573 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 574 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 575 | ac_prev=target_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 576 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 577 | target_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 578 | |
| 579 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 580 | verbose=yes ;; |
| 581 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 582 | -version | --version | --versio | --versi | --vers | -V) |
| 583 | ac_init_version=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 584 | |
| 585 | -with-* | --with-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 586 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 587 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 590 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 591 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 592 | case $ac_option in |
| 593 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 594 | *) ac_optarg=yes ;; |
| 595 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 596 | eval "with_$ac_package='$ac_optarg'" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 597 | |
| 598 | -without-* | --without-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 599 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 600 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 601 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 602 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 603 | { (exit 1); exit 1; }; } |
| 604 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 605 | eval "with_$ac_package=no" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 606 | |
| 607 | --x) |
| 608 | # Obsolete; use --with-x. |
| 609 | with_x=yes ;; |
| 610 | |
| 611 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 612 | | --x-incl | --x-inc | --x-in | --x-i) |
| 613 | ac_prev=x_includes ;; |
| 614 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 615 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 616 | x_includes=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 617 | |
| 618 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 619 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 620 | ac_prev=x_libraries ;; |
| 621 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 622 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 623 | x_libraries=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 624 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 625 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 626 | Try \`$0 --help' for more information." >&2 |
| 627 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 628 | ;; |
| 629 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 630 | *=*) |
| 631 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 632 | # Reject names that are not valid shell variable names. |
| 633 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 634 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 635 | { (exit 1); exit 1; }; } |
| 636 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 637 | eval "$ac_envvar='$ac_optarg'" |
| 638 | export $ac_envvar ;; |
| 639 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 640 | *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 641 | # FIXME: should be removed in autoconf 3.0. |
| 642 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 643 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 644 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 645 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 646 | ;; |
| 647 | |
| 648 | esac |
| 649 | done |
| 650 | |
| 651 | if test -n "$ac_prev"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 652 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 653 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 654 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 655 | fi |
| 656 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 657 | # Be sure to have absolute paths. |
| 658 | for ac_var in exec_prefix prefix |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 659 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 660 | eval ac_val=$`echo $ac_var` |
| 661 | case $ac_val in |
| 662 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 663 | *) { 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] | 664 | { (exit 1); exit 1; }; };; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 665 | esac |
| 666 | done |
| 667 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 668 | # Be sure to have absolute paths. |
| 669 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 670 | localstatedir libdir includedir oldincludedir infodir mandir |
| 671 | do |
| 672 | eval ac_val=$`echo $ac_var` |
| 673 | case $ac_val in |
| 674 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 675 | *) { 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] | 676 | { (exit 1); exit 1; }; };; |
| 677 | esac |
| 678 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 679 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 680 | # There might be people who depend on the old broken behavior: `$host' |
| 681 | # used to hold the argument of --host etc. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 682 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 683 | build=$build_alias |
| 684 | host=$host_alias |
| 685 | target=$target_alias |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 686 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 687 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 688 | if test "x$host_alias" != x; then |
| 689 | if test "x$build_alias" = x; then |
| 690 | cross_compiling=maybe |
| 691 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 692 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 693 | elif test "x$build_alias" != "x$host_alias"; then |
| 694 | cross_compiling=yes |
| 695 | fi |
| 696 | fi |
| 697 | |
| 698 | ac_tool_prefix= |
| 699 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 700 | |
| 701 | test "$silent" = yes && exec 6>/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 702 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 703 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 704 | # Find the source files, if location was not specified. |
| 705 | if test -z "$srcdir"; then |
| 706 | ac_srcdir_defaulted=yes |
| 707 | # Try the directory containing this script, then its parent. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 708 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 709 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 710 | X"$0" : 'X\(//\)[^/]' \| \ |
| 711 | X"$0" : 'X\(//\)$' \| \ |
| 712 | X"$0" : 'X\(/\)' \| \ |
| 713 | . : '\(.\)' 2>/dev/null || |
| 714 | echo X"$0" | |
| 715 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 716 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 717 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 718 | /^X\(\/\).*/{ s//\1/; q; } |
| 719 | s/.*/./; q'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 720 | srcdir=$ac_confdir |
| 721 | if test ! -r $srcdir/$ac_unique_file; then |
| 722 | srcdir=.. |
| 723 | fi |
| 724 | else |
| 725 | ac_srcdir_defaulted=no |
| 726 | fi |
| 727 | if test ! -r $srcdir/$ac_unique_file; then |
| 728 | if test "$ac_srcdir_defaulted" = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 729 | { 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] | 730 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 731 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 732 | { 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] | 733 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 734 | fi |
| 735 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 736 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 737 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 738 | { (exit 1); exit 1; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 739 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 740 | ac_env_build_alias_set=${build_alias+set} |
| 741 | ac_env_build_alias_value=$build_alias |
| 742 | ac_cv_env_build_alias_set=${build_alias+set} |
| 743 | ac_cv_env_build_alias_value=$build_alias |
| 744 | ac_env_host_alias_set=${host_alias+set} |
| 745 | ac_env_host_alias_value=$host_alias |
| 746 | ac_cv_env_host_alias_set=${host_alias+set} |
| 747 | ac_cv_env_host_alias_value=$host_alias |
| 748 | ac_env_target_alias_set=${target_alias+set} |
| 749 | ac_env_target_alias_value=$target_alias |
| 750 | ac_cv_env_target_alias_set=${target_alias+set} |
| 751 | ac_cv_env_target_alias_value=$target_alias |
| 752 | ac_env_CC_set=${CC+set} |
| 753 | ac_env_CC_value=$CC |
| 754 | ac_cv_env_CC_set=${CC+set} |
| 755 | ac_cv_env_CC_value=$CC |
| 756 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 757 | ac_env_CFLAGS_value=$CFLAGS |
| 758 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 759 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 760 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 761 | ac_env_LDFLAGS_value=$LDFLAGS |
| 762 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 763 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 764 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 765 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 766 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 767 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 768 | ac_env_CPP_set=${CPP+set} |
| 769 | ac_env_CPP_value=$CPP |
| 770 | ac_cv_env_CPP_set=${CPP+set} |
| 771 | ac_cv_env_CPP_value=$CPP |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 772 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 773 | # |
| 774 | # Report the --help message. |
| 775 | # |
| 776 | if test "$ac_init_help" = "long"; then |
| 777 | # Omit some internal or obsolete options to make the list less imposing. |
| 778 | # 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] | 779 | cat <<_ACEOF |
Alexandre Julliard | e4cc8c0 | 2003-07-09 23:30:36 +0000 | [diff] [blame] | 780 | \`configure' configures Wine 20030709 to adapt to many kinds of systems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 781 | |
| 782 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 783 | |
| 784 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 785 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 786 | |
| 787 | Defaults for the options are specified in brackets. |
| 788 | |
| 789 | Configuration: |
| 790 | -h, --help display this help and exit |
| 791 | --help=short display options specific to this package |
| 792 | --help=recursive display the short help of all the included packages |
| 793 | -V, --version display version information and exit |
| 794 | -q, --quiet, --silent do not print \`checking...' messages |
| 795 | --cache-file=FILE cache test results in FILE [disabled] |
| 796 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 797 | -n, --no-create do not create output files |
| 798 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 799 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 800 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 801 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 802 | cat <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 803 | Installation directories: |
| 804 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 805 | [$ac_default_prefix] |
| 806 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 807 | [PREFIX] |
| 808 | |
| 809 | By default, \`make install' will install all the files in |
| 810 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 811 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 812 | for instance \`--prefix=\$HOME'. |
| 813 | |
| 814 | For better control, use the options below. |
| 815 | |
| 816 | Fine tuning of the installation directories: |
| 817 | --bindir=DIR user executables [EPREFIX/bin] |
| 818 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 819 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 820 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 821 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 822 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 823 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 824 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 825 | --includedir=DIR C header files [PREFIX/include] |
| 826 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 827 | --infodir=DIR info documentation [PREFIX/info] |
| 828 | --mandir=DIR man documentation [PREFIX/man] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 829 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 830 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 831 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 832 | |
| 833 | X features: |
| 834 | --x-includes=DIR X include files are in DIR |
| 835 | --x-libraries=DIR X library files are in DIR |
| 836 | |
| 837 | System types: |
| 838 | --build=BUILD configure for building on BUILD [guessed] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 839 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
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 | fi |
| 842 | |
| 843 | if test -n "$ac_init_help"; then |
| 844 | case $ac_init_help in |
Alexandre Julliard | e4cc8c0 | 2003-07-09 23:30:36 +0000 | [diff] [blame] | 845 | short | recursive ) echo "Configuration of Wine 20030709:";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 846 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 847 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 848 | |
| 849 | Optional Features: |
| 850 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 851 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 852 | --disable-win16 do not include Win16 support |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 853 | --disable-debug compile out all debugging messages |
| 854 | --disable-trace compile out TRACE messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 855 | |
| 856 | Optional Packages: |
| 857 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 858 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 859 | --without-opengl do not use OpenGL |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 860 | --without-curses do not use curses |
Alexandre Julliard | 6a9cea9 | 2003-04-03 02:54:54 +0000 | [diff] [blame] | 861 | --with-nptl use glibc NPTL threading support |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 862 | --with-wine-tools=<dir> use Wine tools from directory <dir> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 863 | --with-x use the X Window System |
| 864 | |
| 865 | Some influential environment variables: |
| 866 | CC C compiler command |
| 867 | CFLAGS C compiler flags |
| 868 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 869 | nonstandard directory <lib dir> |
| 870 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 871 | headers in a nonstandard directory <include dir> |
| 872 | CPP C preprocessor |
| 873 | |
| 874 | Use these variables to override the choices made by `configure' or to help |
| 875 | it to find libraries and programs with nonstandard names/locations. |
| 876 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 877 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 878 | fi |
| 879 | |
| 880 | if test "$ac_init_help" = "recursive"; then |
| 881 | # If there are subdirs, report their specific --help. |
| 882 | ac_popdir=`pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 883 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 884 | test -d $ac_dir || continue |
| 885 | ac_builddir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 886 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 887 | if test "$ac_dir" != .; then |
| 888 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 889 | # A "../" for each directory in $ac_dir_suffix. |
| 890 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 891 | else |
| 892 | ac_dir_suffix= ac_top_builddir= |
| 893 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 894 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 895 | case $srcdir in |
| 896 | .) # No --srcdir option. We are building in place. |
| 897 | ac_srcdir=. |
| 898 | if test -z "$ac_top_builddir"; then |
| 899 | ac_top_srcdir=. |
| 900 | else |
| 901 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 902 | fi ;; |
| 903 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 904 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 905 | ac_top_srcdir=$srcdir ;; |
| 906 | *) # Relative path. |
| 907 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 908 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 909 | esac |
| 910 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 911 | # absolute. |
| 912 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 913 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 914 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 915 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 916 | |
| 917 | cd $ac_dir |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 918 | # Check for guested configure; otherwise get Cygnus style configure. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 919 | if test -f $ac_srcdir/configure.gnu; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 920 | echo |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 921 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 922 | elif test -f $ac_srcdir/configure; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 923 | echo |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 924 | $SHELL $ac_srcdir/configure --help=recursive |
| 925 | elif test -f $ac_srcdir/configure.ac || |
| 926 | test -f $ac_srcdir/configure.in; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 927 | echo |
| 928 | $ac_configure --help |
| 929 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 930 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 931 | fi |
| 932 | cd $ac_popdir |
| 933 | done |
| 934 | fi |
| 935 | |
| 936 | test -n "$ac_init_help" && exit 0 |
| 937 | if $ac_init_version; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 938 | cat <<\_ACEOF |
Alexandre Julliard | e4cc8c0 | 2003-07-09 23:30:36 +0000 | [diff] [blame] | 939 | Wine configure 20030709 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 940 | generated by GNU Autoconf 2.57 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 941 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 942 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 943 | Free Software Foundation, Inc. |
| 944 | This configure script is free software; the Free Software Foundation |
| 945 | gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 946 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 947 | exit 0 |
| 948 | fi |
| 949 | exec 5>config.log |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 950 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 951 | This file contains any messages produced by compilers while |
| 952 | running configure, to aid debugging if configure makes a mistake. |
| 953 | |
Alexandre Julliard | e4cc8c0 | 2003-07-09 23:30:36 +0000 | [diff] [blame] | 954 | It was created by Wine $as_me 20030709, which was |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 955 | generated by GNU Autoconf 2.57. Invocation command line was |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 956 | |
| 957 | $ $0 $@ |
| 958 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 959 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 960 | { |
| 961 | cat <<_ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 962 | ## --------- ## |
| 963 | ## Platform. ## |
| 964 | ## --------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 965 | |
| 966 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 967 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 968 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 969 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 970 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 971 | |
| 972 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 973 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 974 | |
| 975 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 976 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 977 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 978 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 979 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 980 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 981 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 982 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 983 | _ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 984 | |
| 985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 986 | for as_dir in $PATH |
| 987 | do |
| 988 | IFS=$as_save_IFS |
| 989 | test -z "$as_dir" && as_dir=. |
| 990 | echo "PATH: $as_dir" |
| 991 | done |
| 992 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 993 | } >&5 |
| 994 | |
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 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 997 | |
| 998 | ## ----------- ## |
| 999 | ## Core tests. ## |
| 1000 | ## ----------- ## |
| 1001 | |
| 1002 | _ACEOF |
| 1003 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1004 | |
| 1005 | # Keep a trace of the command line. |
| 1006 | # 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] | 1007 | # 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] | 1008 | # Also quote any args containing shell meta-characters. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1009 | # Make two passes to allow for proper duplicate-argument suppression. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1010 | ac_configure_args= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1011 | ac_configure_args0= |
| 1012 | ac_configure_args1= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1013 | ac_sep= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1014 | ac_must_keep_next=false |
| 1015 | for ac_pass in 1 2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1016 | do |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1017 | for ac_arg |
| 1018 | do |
| 1019 | case $ac_arg in |
| 1020 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1021 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1022 | | -silent | --silent | --silen | --sile | --sil) |
| 1023 | continue ;; |
| 1024 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1025 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1026 | esac |
| 1027 | case $ac_pass in |
| 1028 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1029 | 2) |
| 1030 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1031 | if test $ac_must_keep_next = true; then |
| 1032 | ac_must_keep_next=false # Got value, back to normal. |
| 1033 | else |
| 1034 | case $ac_arg in |
| 1035 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1036 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1037 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1038 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1039 | case "$ac_configure_args0 " in |
| 1040 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1041 | esac |
| 1042 | ;; |
| 1043 | -* ) ac_must_keep_next=true ;; |
| 1044 | esac |
| 1045 | fi |
| 1046 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1047 | # Get rid of the leading space. |
| 1048 | ac_sep=" " |
| 1049 | ;; |
| 1050 | esac |
| 1051 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1052 | done |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1053 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1054 | $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] | 1055 | |
| 1056 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1057 | # config.log. We remove comments because anyway the quotes in there |
| 1058 | # would cause problems or look ugly. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1059 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1060 | # such as our DU 5.0 friend, will then `close' the trap. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1061 | trap 'exit_status=$? |
| 1062 | # Save into config.log some information that might help in debugging. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1063 | { |
| 1064 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1065 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1066 | cat <<\_ASBOX |
| 1067 | ## ---------------- ## |
| 1068 | ## Cache variables. ## |
| 1069 | ## ---------------- ## |
| 1070 | _ASBOX |
| 1071 | echo |
| 1072 | # The following way of writing the cache mishandles newlines in values, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1073 | { |
| 1074 | (set) 2>&1 | |
| 1075 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1076 | *ac_space=\ *) |
| 1077 | sed -n \ |
| 1078 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1079 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1080 | ;; |
| 1081 | *) |
| 1082 | sed -n \ |
| 1083 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1084 | ;; |
| 1085 | esac; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1086 | } |
| 1087 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1088 | |
| 1089 | cat <<\_ASBOX |
| 1090 | ## ----------------- ## |
| 1091 | ## Output variables. ## |
| 1092 | ## ----------------- ## |
| 1093 | _ASBOX |
| 1094 | echo |
| 1095 | for ac_var in $ac_subst_vars |
| 1096 | do |
| 1097 | eval ac_val=$`echo $ac_var` |
| 1098 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1099 | done | sort |
| 1100 | echo |
| 1101 | |
| 1102 | if test -n "$ac_subst_files"; then |
| 1103 | cat <<\_ASBOX |
| 1104 | ## ------------- ## |
| 1105 | ## Output files. ## |
| 1106 | ## ------------- ## |
| 1107 | _ASBOX |
| 1108 | echo |
| 1109 | for ac_var in $ac_subst_files |
| 1110 | do |
| 1111 | eval ac_val=$`echo $ac_var` |
| 1112 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1113 | done | sort |
| 1114 | echo |
| 1115 | fi |
| 1116 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1117 | if test -s confdefs.h; then |
| 1118 | cat <<\_ASBOX |
| 1119 | ## ----------- ## |
| 1120 | ## confdefs.h. ## |
| 1121 | ## ----------- ## |
| 1122 | _ASBOX |
| 1123 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1124 | sed "/^$/d" confdefs.h | sort |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1125 | echo |
| 1126 | fi |
| 1127 | test "$ac_signal" != 0 && |
| 1128 | echo "$as_me: caught signal $ac_signal" |
| 1129 | echo "$as_me: exit $exit_status" |
| 1130 | } >&5 |
| 1131 | rm -f core core.* *.core && |
| 1132 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1133 | exit $exit_status |
| 1134 | ' 0 |
| 1135 | for ac_signal in 1 2 13 15; do |
| 1136 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1137 | done |
| 1138 | ac_signal=0 |
| 1139 | |
| 1140 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1141 | rm -rf conftest* confdefs.h |
| 1142 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1143 | echo >confdefs.h |
| 1144 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1145 | # Predefined preprocessor variables. |
| 1146 | |
| 1147 | cat >>confdefs.h <<_ACEOF |
| 1148 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1149 | _ACEOF |
| 1150 | |
| 1151 | |
| 1152 | cat >>confdefs.h <<_ACEOF |
| 1153 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1154 | _ACEOF |
| 1155 | |
| 1156 | |
| 1157 | cat >>confdefs.h <<_ACEOF |
| 1158 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1159 | _ACEOF |
| 1160 | |
| 1161 | |
| 1162 | cat >>confdefs.h <<_ACEOF |
| 1163 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1164 | _ACEOF |
| 1165 | |
| 1166 | |
| 1167 | cat >>confdefs.h <<_ACEOF |
| 1168 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1169 | _ACEOF |
| 1170 | |
| 1171 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1172 | # 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] | 1173 | # Prefer explicitly selected file to automatically selected ones. |
| 1174 | if test -z "$CONFIG_SITE"; then |
| 1175 | if test "x$prefix" != xNONE; then |
| 1176 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1177 | else |
| 1178 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1179 | fi |
| 1180 | fi |
| 1181 | for ac_site_file in $CONFIG_SITE; do |
| 1182 | if test -r "$ac_site_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1183 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1184 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1185 | sed 's/^/| /' "$ac_site_file" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1186 | . "$ac_site_file" |
| 1187 | fi |
| 1188 | done |
| 1189 | |
| 1190 | if test -r "$cache_file"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1191 | # Some versions of bash will fail to source /dev/null (special |
| 1192 | # files actually), so we avoid doing that. |
| 1193 | if test -f "$cache_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1194 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1195 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1196 | case $cache_file in |
| 1197 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1198 | *) . ./$cache_file;; |
| 1199 | esac |
| 1200 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1201 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1202 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1203 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1204 | >$cache_file |
| 1205 | fi |
| 1206 | |
| 1207 | # Check that the precious variables saved in the cache have kept the same |
| 1208 | # value. |
| 1209 | ac_cache_corrupted=false |
| 1210 | for ac_var in `(set) 2>&1 | |
| 1211 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1212 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1213 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1214 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1215 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1216 | case $ac_old_set,$ac_new_set in |
| 1217 | set,) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1218 | { 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] | 1219 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1220 | ac_cache_corrupted=: ;; |
| 1221 | ,set) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1222 | { 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] | 1223 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1224 | ac_cache_corrupted=: ;; |
| 1225 | ,);; |
| 1226 | *) |
| 1227 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1228 | { 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] | 1229 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1230 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1231 | echo "$as_me: former value: $ac_old_val" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1232 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1233 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1234 | ac_cache_corrupted=: |
| 1235 | fi;; |
| 1236 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1237 | # Pass precious variables to config.status. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1238 | if test "$ac_new_set" = set; then |
| 1239 | case $ac_new_val in |
| 1240 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1241 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1242 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1243 | esac |
| 1244 | case " $ac_configure_args " in |
| 1245 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1246 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1247 | esac |
| 1248 | fi |
| 1249 | done |
| 1250 | if $ac_cache_corrupted; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1251 | { 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] | 1252 | 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] | 1253 | { { 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] | 1254 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1255 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1256 | fi |
| 1257 | |
| 1258 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1259 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1260 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1261 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1262 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1263 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1264 | |
| 1265 | |
| 1266 | |
| 1267 | |
| 1268 | |
| 1269 | |
| 1270 | |
| 1271 | |
| 1272 | |
| 1273 | |
| 1274 | |
| 1275 | |
| 1276 | |
| 1277 | |
| 1278 | |
| 1279 | |
| 1280 | |
| 1281 | |
| 1282 | |
| 1283 | |
| 1284 | |
| 1285 | |
| 1286 | |
| 1287 | |
| 1288 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1289 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1290 | |
| 1291 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1292 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1293 | ac_aux_dir= |
| 1294 | for ac_dir in tools $srcdir/tools; do |
| 1295 | if test -f $ac_dir/install-sh; then |
| 1296 | ac_aux_dir=$ac_dir |
| 1297 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1298 | break |
| 1299 | elif test -f $ac_dir/install.sh; then |
| 1300 | ac_aux_dir=$ac_dir |
| 1301 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1302 | break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1303 | elif test -f $ac_dir/shtool; then |
| 1304 | ac_aux_dir=$ac_dir |
| 1305 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1306 | break |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1307 | fi |
| 1308 | done |
| 1309 | if test -z "$ac_aux_dir"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1310 | { { 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] | 1311 | echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;} |
| 1312 | { (exit 1); exit 1; }; } |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1313 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1314 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1315 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1316 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 1317 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1318 | |
| 1319 | |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1320 | # Check whether --enable-win16 or --disable-win16 was given. |
| 1321 | if test "${enable_win16+set}" = set; then |
| 1322 | enableval="$enable_win16" |
| 1323 | |
| 1324 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1325 | # Check whether --enable-debug or --disable-debug was given. |
| 1326 | if test "${enable_debug+set}" = set; then |
| 1327 | enableval="$enable_debug" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1328 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1329 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1330 | # Check whether --enable-trace or --disable-trace was given. |
| 1331 | if test "${enable_trace+set}" = set; then |
| 1332 | enableval="$enable_trace" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1333 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1334 | fi; |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 1335 | |
| 1336 | |
| 1337 | # Check whether --with-opengl or --without-opengl was given. |
| 1338 | if test "${with_opengl+set}" = set; then |
| 1339 | withval="$with_opengl" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1340 | |
| 1341 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1342 | |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1343 | # Check whether --with-curses or --without-curses was given. |
| 1344 | if test "${with_curses+set}" = set; then |
| 1345 | withval="$with_curses" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1346 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1347 | fi; |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1348 | |
Alexandre Julliard | 6a9cea9 | 2003-04-03 02:54:54 +0000 | [diff] [blame] | 1349 | # Check whether --with-nptl or --without-nptl was given. |
| 1350 | if test "${with_nptl+set}" = set; then |
| 1351 | withval="$with_nptl" |
| 1352 | |
| 1353 | fi; |
| 1354 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1355 | # Check whether --with-wine-tools or --without-wine-tools was given. |
| 1356 | if test "${with_wine_tools+set}" = set; then |
| 1357 | withval="$with_wine_tools" |
| 1358 | |
| 1359 | fi; |
| 1360 | |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1361 | WIN16_FILES="\$(WIN16_FILES)" |
| 1362 | |
| 1363 | WIN16_INSTALL="\$(WIN16_INSTALL)" |
| 1364 | |
| 1365 | if test "x$enable_win16" = "xno" |
| 1366 | then |
| 1367 | WIN16_FILES="" |
| 1368 | WIN16_INSTALL="" |
| 1369 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1370 | if test "x$enable_debug" = "xno" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1371 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1372 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1373 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1374 | #define NO_DEBUG_MSGS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1375 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1376 | |
| 1377 | fi |
| 1378 | if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1379 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1380 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1381 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1382 | #define NO_TRACE_MSGS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1383 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1384 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1385 | fi |
Alexandre Julliard | 6a9cea9 | 2003-04-03 02:54:54 +0000 | [diff] [blame] | 1386 | if test "x$with_nptl" = "xyes" |
| 1387 | then |
| 1388 | |
| 1389 | cat >>confdefs.h <<\_ACEOF |
| 1390 | #define HAVE_NPTL 1 |
| 1391 | _ACEOF |
| 1392 | |
| 1393 | LIBPTHREAD="-lpthread" |
| 1394 | |
| 1395 | fi |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1396 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1397 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1398 | # Make sure we can run config.sub. |
| 1399 | $ac_config_sub sun4 >/dev/null 2>&1 || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1400 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1401 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1402 | { (exit 1); exit 1; }; } |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 1403 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1404 | echo "$as_me:$LINENO: checking build system type" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1405 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1406 | if test "${ac_cv_build+set}" = set; then |
| 1407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1408 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1409 | ac_cv_build_alias=$build_alias |
| 1410 | test -z "$ac_cv_build_alias" && |
| 1411 | ac_cv_build_alias=`$ac_config_guess` |
| 1412 | test -z "$ac_cv_build_alias" && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1413 | { { 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] | 1414 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1415 | { (exit 1); exit 1; }; } |
| 1416 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1417 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1418 | 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] | 1419 | { (exit 1); exit 1; }; } |
| 1420 | |
| 1421 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1422 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1423 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1424 | build=$ac_cv_build |
| 1425 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1426 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1427 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1428 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1429 | |
| 1430 | echo "$as_me:$LINENO: checking host system type" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1431 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1432 | if test "${ac_cv_host+set}" = set; then |
| 1433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1434 | else |
| 1435 | ac_cv_host_alias=$host_alias |
| 1436 | test -z "$ac_cv_host_alias" && |
| 1437 | ac_cv_host_alias=$ac_cv_build_alias |
| 1438 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1439 | { { 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] | 1440 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1441 | { (exit 1); exit 1; }; } |
| 1442 | |
| 1443 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1444 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1445 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1446 | host=$ac_cv_host |
| 1447 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1448 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1449 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1450 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1451 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1452 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1453 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1454 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 1455 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1457 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1458 | cat >conftest.make <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1459 | all: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1460 | @echo 'ac_maketemp="$(MAKE)"' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1461 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1462 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1463 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1464 | if test -n "$ac_maketemp"; then |
| 1465 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1466 | else |
| 1467 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1468 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1469 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1470 | fi |
| 1471 | 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] | 1472 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1473 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1474 | SET_MAKE= |
| 1475 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1476 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1477 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1478 | SET_MAKE="MAKE=${MAKE-make}" |
| 1479 | fi |
| 1480 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1481 | ac_ext=c |
| 1482 | ac_cpp='$CPP $CPPFLAGS' |
| 1483 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1484 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1485 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1486 | if test -n "$ac_tool_prefix"; then |
| 1487 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1488 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1489 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1490 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1491 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1493 | else |
| 1494 | if test -n "$CC"; then |
| 1495 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1496 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1498 | for as_dir in $PATH |
| 1499 | do |
| 1500 | IFS=$as_save_IFS |
| 1501 | test -z "$as_dir" && as_dir=. |
| 1502 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1503 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1504 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1505 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1506 | break 2 |
| 1507 | fi |
| 1508 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1509 | done |
| 1510 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1511 | fi |
| 1512 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1513 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1514 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1515 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1516 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1517 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1518 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1519 | echo "${ECHO_T}no" >&6 |
| 1520 | fi |
| 1521 | |
| 1522 | fi |
| 1523 | if test -z "$ac_cv_prog_CC"; then |
| 1524 | ac_ct_CC=$CC |
| 1525 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1526 | set dummy gcc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1527 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1528 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1529 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1531 | else |
| 1532 | if test -n "$ac_ct_CC"; then |
| 1533 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1534 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1536 | for as_dir in $PATH |
| 1537 | do |
| 1538 | IFS=$as_save_IFS |
| 1539 | test -z "$as_dir" && as_dir=. |
| 1540 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1541 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1542 | ac_cv_prog_ac_ct_CC="gcc" |
| 1543 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1544 | break 2 |
| 1545 | fi |
| 1546 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1547 | done |
| 1548 | |
| 1549 | fi |
| 1550 | fi |
| 1551 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1552 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1553 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1554 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1555 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1556 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1557 | echo "${ECHO_T}no" >&6 |
| 1558 | fi |
| 1559 | |
| 1560 | CC=$ac_ct_CC |
| 1561 | else |
| 1562 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1563 | fi |
| 1564 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1565 | if test -z "$CC"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1566 | if test -n "$ac_tool_prefix"; then |
| 1567 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1568 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1569 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1570 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1571 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1573 | else |
| 1574 | if test -n "$CC"; then |
| 1575 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1576 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1578 | for as_dir in $PATH |
| 1579 | do |
| 1580 | IFS=$as_save_IFS |
| 1581 | test -z "$as_dir" && as_dir=. |
| 1582 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1583 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1584 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1585 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1586 | break 2 |
| 1587 | fi |
| 1588 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1589 | done |
| 1590 | |
| 1591 | fi |
| 1592 | fi |
| 1593 | CC=$ac_cv_prog_CC |
| 1594 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1595 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1596 | echo "${ECHO_T}$CC" >&6 |
| 1597 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1598 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1599 | echo "${ECHO_T}no" >&6 |
| 1600 | fi |
| 1601 | |
| 1602 | fi |
| 1603 | if test -z "$ac_cv_prog_CC"; then |
| 1604 | ac_ct_CC=$CC |
| 1605 | # Extract the first word of "cc", so it can be a program name with args. |
| 1606 | set dummy cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1607 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1608 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1609 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1611 | else |
| 1612 | if test -n "$ac_ct_CC"; then |
| 1613 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1614 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1616 | for as_dir in $PATH |
| 1617 | do |
| 1618 | IFS=$as_save_IFS |
| 1619 | test -z "$as_dir" && as_dir=. |
| 1620 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1621 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1622 | ac_cv_prog_ac_ct_CC="cc" |
| 1623 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1624 | break 2 |
| 1625 | fi |
| 1626 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1627 | done |
| 1628 | |
| 1629 | fi |
| 1630 | fi |
| 1631 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1632 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1633 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1634 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1635 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1636 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1637 | echo "${ECHO_T}no" >&6 |
| 1638 | fi |
| 1639 | |
| 1640 | CC=$ac_ct_CC |
| 1641 | else |
| 1642 | CC="$ac_cv_prog_CC" |
| 1643 | fi |
| 1644 | |
| 1645 | fi |
| 1646 | if test -z "$CC"; then |
| 1647 | # Extract the first word of "cc", so it can be a program name with args. |
| 1648 | set dummy cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1649 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1651 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1653 | else |
| 1654 | if test -n "$CC"; then |
| 1655 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1656 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1657 | ac_prog_rejected=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1659 | for as_dir in $PATH |
| 1660 | do |
| 1661 | IFS=$as_save_IFS |
| 1662 | test -z "$as_dir" && as_dir=. |
| 1663 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1664 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1665 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1666 | ac_prog_rejected=yes |
| 1667 | continue |
| 1668 | fi |
| 1669 | ac_cv_prog_CC="cc" |
| 1670 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1671 | break 2 |
| 1672 | fi |
| 1673 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1674 | done |
| 1675 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1676 | if test $ac_prog_rejected = yes; then |
| 1677 | # We found a bogon in the path, so make sure we never use it. |
| 1678 | set dummy $ac_cv_prog_CC |
| 1679 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1680 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1681 | # We chose a different compiler from the bogus one. |
| 1682 | # However, it has the same basename, so the bogon will be chosen |
| 1683 | # first if we set CC to just the basename; use the full file name. |
| 1684 | shift |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1685 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1686 | fi |
| 1687 | fi |
| 1688 | fi |
| 1689 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1690 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1691 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1692 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1693 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1694 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1695 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1696 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1697 | fi |
| 1698 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1699 | fi |
| 1700 | if test -z "$CC"; then |
| 1701 | if test -n "$ac_tool_prefix"; then |
| 1702 | for ac_prog in cl |
| 1703 | do |
| 1704 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1705 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1706 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1708 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1710 | else |
| 1711 | if test -n "$CC"; then |
| 1712 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1713 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1715 | for as_dir in $PATH |
| 1716 | do |
| 1717 | IFS=$as_save_IFS |
| 1718 | test -z "$as_dir" && as_dir=. |
| 1719 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1720 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1721 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1723 | break 2 |
| 1724 | fi |
| 1725 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1726 | done |
| 1727 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1728 | fi |
| 1729 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1730 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1731 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1732 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1733 | echo "${ECHO_T}$CC" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1734 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1735 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1736 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1737 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1738 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1739 | test -n "$CC" && break |
| 1740 | done |
| 1741 | fi |
| 1742 | if test -z "$CC"; then |
| 1743 | ac_ct_CC=$CC |
| 1744 | for ac_prog in cl |
| 1745 | do |
| 1746 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1747 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1748 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1750 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1752 | else |
| 1753 | if test -n "$ac_ct_CC"; then |
| 1754 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1755 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1757 | for as_dir in $PATH |
| 1758 | do |
| 1759 | IFS=$as_save_IFS |
| 1760 | test -z "$as_dir" && as_dir=. |
| 1761 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1762 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1763 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1764 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1765 | break 2 |
| 1766 | fi |
| 1767 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1768 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1769 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1770 | fi |
| 1771 | fi |
| 1772 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1773 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1774 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1775 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1776 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1777 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1778 | echo "${ECHO_T}no" >&6 |
| 1779 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1780 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1781 | test -n "$ac_ct_CC" && break |
| 1782 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1783 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1784 | CC=$ac_ct_CC |
| 1785 | fi |
| 1786 | |
| 1787 | fi |
| 1788 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1789 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1790 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1791 | See \`config.log' for more details." >&5 |
| 1792 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1793 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1794 | { (exit 1); exit 1; }; } |
| 1795 | |
| 1796 | # Provide some information about the compiler. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1797 | echo "$as_me:$LINENO:" \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1798 | "checking for C compiler version" >&5 |
| 1799 | ac_compiler=`set X $ac_compile; echo $2` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1800 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1801 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1802 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1804 | (exit $ac_status); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1805 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1806 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1807 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1809 | (exit $ac_status); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1810 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1811 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1812 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1814 | (exit $ac_status); } |
| 1815 | |
| 1816 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1817 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1818 | /* confdefs.h. */ |
| 1819 | _ACEOF |
| 1820 | cat confdefs.h >>conftest.$ac_ext |
| 1821 | cat >>conftest.$ac_ext <<_ACEOF |
| 1822 | /* end confdefs.h. */ |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1823 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1824 | int |
| 1825 | main () |
| 1826 | { |
| 1827 | |
| 1828 | ; |
| 1829 | return 0; |
| 1830 | } |
| 1831 | _ACEOF |
| 1832 | ac_clean_files_save=$ac_clean_files |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1833 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1834 | # Try to create an executable without -o first, disregard a.out. |
| 1835 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1836 | # of exeext. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1837 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1838 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1839 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1840 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1841 | (eval $ac_link_default) 2>&5 |
| 1842 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1844 | (exit $ac_status); }; then |
| 1845 | # Find the output, starting from the most likely. This scheme is |
| 1846 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1847 | # resort. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1848 | |
| 1849 | # Be careful to initialize this variable, since it used to be cached. |
| 1850 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1851 | ac_cv_exeext= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1852 | # b.out is created by i960 compilers. |
| 1853 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1854 | do |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1855 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1856 | case $ac_file in |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1857 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1858 | ;; |
| 1859 | conftest.$ac_ext ) |
| 1860 | # This is the source file. |
| 1861 | ;; |
| 1862 | [ab].out ) |
| 1863 | # We found the default executable, but exeext='' is most |
| 1864 | # certainly right. |
| 1865 | break;; |
| 1866 | *.* ) |
| 1867 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1868 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1869 | # but it would be cool to find out if it's true. Does anybody |
| 1870 | # maintain Libtool? --akim. |
| 1871 | export ac_cv_exeext |
| 1872 | break;; |
| 1873 | * ) |
| 1874 | break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1875 | esac |
| 1876 | done |
| 1877 | else |
| 1878 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1880 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1881 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1882 | See \`config.log' for more details." >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1883 | echo "$as_me: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1884 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1885 | { (exit 77); exit 77; }; } |
| 1886 | fi |
| 1887 | |
| 1888 | ac_exeext=$ac_cv_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1889 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1890 | echo "${ECHO_T}$ac_file" >&6 |
| 1891 | |
| 1892 | # Check the compiler produces executables we can run. If not, either |
| 1893 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1894 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1895 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1896 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1897 | # If not cross compiling, check that we can run a simple program. |
| 1898 | if test "$cross_compiling" != yes; then |
| 1899 | if { ac_try='./$ac_file' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1901 | (eval $ac_try) 2>&5 |
| 1902 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1904 | (exit $ac_status); }; }; then |
| 1905 | cross_compiling=no |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1906 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1907 | if test "$cross_compiling" = maybe; then |
| 1908 | cross_compiling=yes |
| 1909 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1910 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1911 | If you meant to cross compile, use \`--host'. |
| 1912 | See \`config.log' for more details." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1913 | echo "$as_me: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1914 | If you meant to cross compile, use \`--host'. |
| 1915 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1916 | { (exit 1); exit 1; }; } |
| 1917 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1918 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1919 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1920 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1921 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1922 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1923 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1924 | ac_clean_files=$ac_clean_files_save |
| 1925 | # Check the compiler produces executables we can run. If not, either |
| 1926 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1927 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1928 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1929 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1930 | echo "${ECHO_T}$cross_compiling" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1931 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1932 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1933 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1935 | (eval $ac_link) 2>&5 |
| 1936 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1938 | (exit $ac_status); }; then |
| 1939 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1940 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1941 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1942 | # `rm'. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1943 | for ac_file in conftest.exe conftest conftest.*; do |
| 1944 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1945 | case $ac_file in |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1946 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1947 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1948 | export ac_cv_exeext |
| 1949 | break;; |
| 1950 | * ) break;; |
| 1951 | esac |
| 1952 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1953 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1954 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1955 | See \`config.log' for more details." >&5 |
| 1956 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1957 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1958 | { (exit 1); exit 1; }; } |
| 1959 | fi |
| 1960 | |
| 1961 | rm -f conftest$ac_cv_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1962 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1963 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1964 | |
| 1965 | rm -f conftest.$ac_ext |
| 1966 | EXEEXT=$ac_cv_exeext |
| 1967 | ac_exeext=$EXEEXT |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1968 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1969 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1970 | if test "${ac_cv_objext+set}" = set; then |
| 1971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1972 | else |
| 1973 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1974 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1975 | /* confdefs.h. */ |
| 1976 | _ACEOF |
| 1977 | cat confdefs.h >>conftest.$ac_ext |
| 1978 | cat >>conftest.$ac_ext <<_ACEOF |
| 1979 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1980 | |
| 1981 | int |
| 1982 | main () |
| 1983 | { |
| 1984 | |
| 1985 | ; |
| 1986 | return 0; |
| 1987 | } |
| 1988 | _ACEOF |
| 1989 | rm -f conftest.o conftest.obj |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1991 | (eval $ac_compile) 2>&5 |
| 1992 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1994 | (exit $ac_status); }; then |
| 1995 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1996 | case $ac_file in |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1997 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1998 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1999 | break;; |
| 2000 | esac |
| 2001 | done |
| 2002 | else |
| 2003 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2005 | |
| 2006 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2007 | See \`config.log' for more details." >&5 |
| 2008 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2009 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2010 | { (exit 1); exit 1; }; } |
| 2011 | fi |
| 2012 | |
| 2013 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2014 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2015 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2016 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2017 | OBJEXT=$ac_cv_objext |
| 2018 | ac_objext=$OBJEXT |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2019 | 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] | 2020 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2021 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2023 | else |
| 2024 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2025 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2026 | /* confdefs.h. */ |
| 2027 | _ACEOF |
| 2028 | cat confdefs.h >>conftest.$ac_ext |
| 2029 | cat >>conftest.$ac_ext <<_ACEOF |
| 2030 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2031 | |
| 2032 | int |
| 2033 | main () |
| 2034 | { |
| 2035 | #ifndef __GNUC__ |
| 2036 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2037 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2038 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2039 | ; |
| 2040 | return 0; |
| 2041 | } |
| 2042 | _ACEOF |
| 2043 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2045 | (eval $ac_compile) 2>&5 |
| 2046 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2048 | (exit $ac_status); } && |
| 2049 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2051 | (eval $ac_try) 2>&5 |
| 2052 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2054 | (exit $ac_status); }; }; then |
| 2055 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2056 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2057 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2059 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2060 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2061 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2062 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2063 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2064 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2065 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2066 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2067 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2068 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2069 | ac_test_CFLAGS=${CFLAGS+set} |
| 2070 | ac_save_CFLAGS=$CFLAGS |
| 2071 | CFLAGS="-g" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2072 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2073 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2074 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2076 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2077 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2078 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2079 | /* confdefs.h. */ |
| 2080 | _ACEOF |
| 2081 | cat confdefs.h >>conftest.$ac_ext |
| 2082 | cat >>conftest.$ac_ext <<_ACEOF |
| 2083 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2084 | |
| 2085 | int |
| 2086 | main () |
| 2087 | { |
| 2088 | |
| 2089 | ; |
| 2090 | return 0; |
| 2091 | } |
| 2092 | _ACEOF |
| 2093 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2095 | (eval $ac_compile) 2>&5 |
| 2096 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2098 | (exit $ac_status); } && |
| 2099 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2101 | (eval $ac_try) 2>&5 |
| 2102 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2104 | (exit $ac_status); }; }; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2105 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2106 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2107 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2109 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2110 | ac_cv_prog_cc_g=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2111 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2112 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2113 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2114 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2115 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2116 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2117 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2118 | elif test $ac_cv_prog_cc_g = yes; then |
| 2119 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2120 | CFLAGS="-g -O2" |
| 2121 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2122 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2123 | fi |
| 2124 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2125 | if test "$GCC" = yes; then |
| 2126 | CFLAGS="-O2" |
| 2127 | else |
| 2128 | CFLAGS= |
| 2129 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2130 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2131 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2132 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2133 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2135 | else |
| 2136 | ac_cv_prog_cc_stdc=no |
| 2137 | ac_save_CC=$CC |
| 2138 | cat >conftest.$ac_ext <<_ACEOF |
| 2139 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2140 | /* confdefs.h. */ |
| 2141 | _ACEOF |
| 2142 | cat confdefs.h >>conftest.$ac_ext |
| 2143 | cat >>conftest.$ac_ext <<_ACEOF |
| 2144 | /* end confdefs.h. */ |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2145 | #include <stdarg.h> |
| 2146 | #include <stdio.h> |
| 2147 | #include <sys/types.h> |
| 2148 | #include <sys/stat.h> |
| 2149 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2150 | struct buf { int x; }; |
| 2151 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2152 | static char *e (p, i) |
| 2153 | char **p; |
| 2154 | int i; |
| 2155 | { |
| 2156 | return p[i]; |
| 2157 | } |
| 2158 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2159 | { |
| 2160 | char *s; |
| 2161 | va_list v; |
| 2162 | va_start (v,p); |
| 2163 | s = g (p, va_arg (v,int)); |
| 2164 | va_end (v); |
| 2165 | return s; |
| 2166 | } |
| 2167 | int test (int i, double x); |
| 2168 | struct s1 {int (*f) (int a);}; |
| 2169 | struct s2 {int (*f) (double a);}; |
| 2170 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2171 | int argc; |
| 2172 | char **argv; |
| 2173 | int |
| 2174 | main () |
| 2175 | { |
| 2176 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2177 | ; |
| 2178 | return 0; |
| 2179 | } |
| 2180 | _ACEOF |
| 2181 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2182 | # breaks some systems' header files. |
| 2183 | # AIX -qlanglvl=ansi |
| 2184 | # Ultrix and OSF/1 -std1 |
| 2185 | # HP-UX 10.20 and later -Ae |
| 2186 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2187 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2188 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2189 | do |
| 2190 | CC="$ac_save_CC $ac_arg" |
| 2191 | rm -f conftest.$ac_objext |
| 2192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2193 | (eval $ac_compile) 2>&5 |
| 2194 | ac_status=$? |
| 2195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2196 | (exit $ac_status); } && |
| 2197 | { ac_try='test -s conftest.$ac_objext' |
| 2198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2199 | (eval $ac_try) 2>&5 |
| 2200 | ac_status=$? |
| 2201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2202 | (exit $ac_status); }; }; then |
| 2203 | ac_cv_prog_cc_stdc=$ac_arg |
| 2204 | break |
| 2205 | else |
| 2206 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2208 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2209 | fi |
| 2210 | rm -f conftest.$ac_objext |
| 2211 | done |
| 2212 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2213 | CC=$ac_save_CC |
| 2214 | |
| 2215 | fi |
| 2216 | |
| 2217 | case "x$ac_cv_prog_cc_stdc" in |
| 2218 | x|xno) |
| 2219 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2220 | echo "${ECHO_T}none needed" >&6 ;; |
| 2221 | *) |
| 2222 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2223 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2224 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2225 | esac |
| 2226 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2227 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2228 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2229 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2230 | # the declaration of exit, since it's the most demanding environment. |
| 2231 | cat >conftest.$ac_ext <<_ACEOF |
| 2232 | #ifndef __cplusplus |
| 2233 | choke me |
| 2234 | #endif |
| 2235 | _ACEOF |
| 2236 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2238 | (eval $ac_compile) 2>&5 |
| 2239 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2241 | (exit $ac_status); } && |
| 2242 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2244 | (eval $ac_try) 2>&5 |
| 2245 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2247 | (exit $ac_status); }; }; then |
| 2248 | for ac_declaration in \ |
Alexandre Julliard | 90b1c2c | 2003-06-18 20:35:38 +0000 | [diff] [blame] | 2249 | '' \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2250 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2251 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2252 | 'extern "C" void exit (int) throw ();' \ |
| 2253 | 'extern "C" void exit (int);' \ |
Alexandre Julliard | 90b1c2c | 2003-06-18 20:35:38 +0000 | [diff] [blame] | 2254 | 'void exit (int);' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2255 | do |
| 2256 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2257 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2258 | /* confdefs.h. */ |
| 2259 | _ACEOF |
| 2260 | cat confdefs.h >>conftest.$ac_ext |
| 2261 | cat >>conftest.$ac_ext <<_ACEOF |
| 2262 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2263 | $ac_declaration |
Alexandre Julliard | 90b1c2c | 2003-06-18 20:35:38 +0000 | [diff] [blame] | 2264 | #include <stdlib.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2265 | int |
| 2266 | main () |
| 2267 | { |
| 2268 | exit (42); |
| 2269 | ; |
| 2270 | return 0; |
| 2271 | } |
| 2272 | _ACEOF |
| 2273 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2275 | (eval $ac_compile) 2>&5 |
| 2276 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2278 | (exit $ac_status); } && |
| 2279 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2281 | (eval $ac_try) 2>&5 |
| 2282 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2284 | (exit $ac_status); }; }; then |
| 2285 | : |
| 2286 | else |
| 2287 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2289 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2290 | continue |
| 2291 | fi |
| 2292 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2293 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2294 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2295 | /* confdefs.h. */ |
| 2296 | _ACEOF |
| 2297 | cat confdefs.h >>conftest.$ac_ext |
| 2298 | cat >>conftest.$ac_ext <<_ACEOF |
| 2299 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2300 | $ac_declaration |
| 2301 | int |
| 2302 | main () |
| 2303 | { |
| 2304 | exit (42); |
| 2305 | ; |
| 2306 | return 0; |
| 2307 | } |
| 2308 | _ACEOF |
| 2309 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2311 | (eval $ac_compile) 2>&5 |
| 2312 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2314 | (exit $ac_status); } && |
| 2315 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2317 | (eval $ac_try) 2>&5 |
| 2318 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2320 | (exit $ac_status); }; }; then |
| 2321 | break |
| 2322 | else |
| 2323 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2325 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2326 | fi |
| 2327 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2328 | done |
| 2329 | rm -f conftest* |
| 2330 | if test -n "$ac_declaration"; then |
| 2331 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2332 | echo $ac_declaration >>confdefs.h |
| 2333 | echo '#endif' >>confdefs.h |
| 2334 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2335 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2336 | else |
| 2337 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2339 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2340 | fi |
| 2341 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2342 | ac_ext=c |
| 2343 | ac_cpp='$CPP $CPPFLAGS' |
| 2344 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2345 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2346 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2347 | |
| 2348 | ac_ext=c |
| 2349 | ac_cpp='$CPP $CPPFLAGS' |
| 2350 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2351 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2352 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2353 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2354 | 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] | 2355 | # On Suns, sometimes $CPP names a directory. |
| 2356 | if test -n "$CPP" && test -d "$CPP"; then |
| 2357 | CPP= |
| 2358 | fi |
| 2359 | if test -z "$CPP"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2360 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2362 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2363 | # Double quotes because CPP needs to be expanded |
| 2364 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2365 | do |
| 2366 | ac_preproc_ok=false |
| 2367 | for ac_c_preproc_warn_flag in '' yes |
| 2368 | do |
| 2369 | # Use a header file that comes with gcc, so configuring glibc |
| 2370 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2371 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2372 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2373 | # 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] | 2374 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2375 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2376 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2377 | /* confdefs.h. */ |
| 2378 | _ACEOF |
| 2379 | cat confdefs.h >>conftest.$ac_ext |
| 2380 | cat >>conftest.$ac_ext <<_ACEOF |
| 2381 | /* end confdefs.h. */ |
| 2382 | #ifdef __STDC__ |
| 2383 | # include <limits.h> |
| 2384 | #else |
| 2385 | # include <assert.h> |
| 2386 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2387 | Syntax error |
| 2388 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2389 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2390 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2391 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2392 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2393 | rm -f conftest.er1 |
| 2394 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2396 | (exit $ac_status); } >/dev/null; then |
| 2397 | if test -s conftest.err; then |
| 2398 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2399 | else |
| 2400 | ac_cpp_err= |
| 2401 | fi |
| 2402 | else |
| 2403 | ac_cpp_err=yes |
| 2404 | fi |
| 2405 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2406 | : |
| 2407 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2408 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2410 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2411 | # Broken: fails on valid input. |
| 2412 | continue |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2413 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2414 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2415 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2416 | # OK, works on sane cases. Now check whether non-existent headers |
| 2417 | # can be detected and how. |
| 2418 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2419 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2420 | /* confdefs.h. */ |
| 2421 | _ACEOF |
| 2422 | cat confdefs.h >>conftest.$ac_ext |
| 2423 | cat >>conftest.$ac_ext <<_ACEOF |
| 2424 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2425 | #include <ac_nonexistent.h> |
| 2426 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2427 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2428 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2429 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2430 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2431 | rm -f conftest.er1 |
| 2432 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2434 | (exit $ac_status); } >/dev/null; then |
| 2435 | if test -s conftest.err; then |
| 2436 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2437 | else |
| 2438 | ac_cpp_err= |
| 2439 | fi |
| 2440 | else |
| 2441 | ac_cpp_err=yes |
| 2442 | fi |
| 2443 | if test -z "$ac_cpp_err"; then |
| 2444 | # Broken: success on invalid input. |
| 2445 | continue |
| 2446 | else |
| 2447 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2449 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2450 | # Passes both tests. |
| 2451 | ac_preproc_ok=: |
| 2452 | break |
| 2453 | fi |
| 2454 | rm -f conftest.err conftest.$ac_ext |
| 2455 | |
| 2456 | done |
| 2457 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2458 | rm -f conftest.err conftest.$ac_ext |
| 2459 | if $ac_preproc_ok; then |
| 2460 | break |
| 2461 | fi |
| 2462 | |
| 2463 | done |
| 2464 | ac_cv_prog_CPP=$CPP |
| 2465 | |
| 2466 | fi |
| 2467 | CPP=$ac_cv_prog_CPP |
| 2468 | else |
| 2469 | ac_cv_prog_CPP=$CPP |
| 2470 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2471 | echo "$as_me:$LINENO: result: $CPP" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2472 | echo "${ECHO_T}$CPP" >&6 |
| 2473 | ac_preproc_ok=false |
| 2474 | for ac_c_preproc_warn_flag in '' yes |
| 2475 | do |
| 2476 | # Use a header file that comes with gcc, so configuring glibc |
| 2477 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2478 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2479 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2480 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2481 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2482 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2483 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2484 | /* confdefs.h. */ |
| 2485 | _ACEOF |
| 2486 | cat confdefs.h >>conftest.$ac_ext |
| 2487 | cat >>conftest.$ac_ext <<_ACEOF |
| 2488 | /* end confdefs.h. */ |
| 2489 | #ifdef __STDC__ |
| 2490 | # include <limits.h> |
| 2491 | #else |
| 2492 | # include <assert.h> |
| 2493 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2494 | Syntax error |
| 2495 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2496 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2497 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2498 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2499 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2500 | rm -f conftest.er1 |
| 2501 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2503 | (exit $ac_status); } >/dev/null; then |
| 2504 | if test -s conftest.err; then |
| 2505 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2506 | else |
| 2507 | ac_cpp_err= |
| 2508 | fi |
| 2509 | else |
| 2510 | ac_cpp_err=yes |
| 2511 | fi |
| 2512 | if test -z "$ac_cpp_err"; then |
| 2513 | : |
| 2514 | else |
| 2515 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2517 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2518 | # Broken: fails on valid input. |
| 2519 | continue |
| 2520 | fi |
| 2521 | rm -f conftest.err conftest.$ac_ext |
| 2522 | |
| 2523 | # OK, works on sane cases. Now check whether non-existent headers |
| 2524 | # can be detected and how. |
| 2525 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2526 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2527 | /* confdefs.h. */ |
| 2528 | _ACEOF |
| 2529 | cat confdefs.h >>conftest.$ac_ext |
| 2530 | cat >>conftest.$ac_ext <<_ACEOF |
| 2531 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2532 | #include <ac_nonexistent.h> |
| 2533 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2534 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2535 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2536 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2537 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2538 | rm -f conftest.er1 |
| 2539 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2541 | (exit $ac_status); } >/dev/null; then |
| 2542 | if test -s conftest.err; then |
| 2543 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2544 | else |
| 2545 | ac_cpp_err= |
| 2546 | fi |
| 2547 | else |
| 2548 | ac_cpp_err=yes |
| 2549 | fi |
| 2550 | if test -z "$ac_cpp_err"; then |
| 2551 | # Broken: success on invalid input. |
| 2552 | continue |
| 2553 | else |
| 2554 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2556 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2557 | # Passes both tests. |
| 2558 | ac_preproc_ok=: |
| 2559 | break |
| 2560 | fi |
| 2561 | rm -f conftest.err conftest.$ac_ext |
| 2562 | |
| 2563 | done |
| 2564 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2565 | rm -f conftest.err conftest.$ac_ext |
| 2566 | if $ac_preproc_ok; then |
| 2567 | : |
| 2568 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2569 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2570 | See \`config.log' for more details." >&5 |
| 2571 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2572 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2573 | { (exit 1); exit 1; }; } |
| 2574 | fi |
| 2575 | |
| 2576 | ac_ext=c |
| 2577 | ac_cpp='$CPP $CPPFLAGS' |
| 2578 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2579 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2580 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2581 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2582 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 2583 | echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5 |
| 2584 | echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6 |
| 2585 | if test "${wine_cv_toolsdir+set}" = set; then |
| 2586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2587 | else |
| 2588 | if test -z "$with_wine_tools"; then |
| 2589 | if test "$cross_compiling" = "yes"; then |
| 2590 | { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5 |
| 2591 | echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;} |
| 2592 | { (exit 1); exit 1; }; } |
| 2593 | else |
| 2594 | wine_cv_toolsdir="\$(TOPOBJDIR)" |
| 2595 | fi |
| 2596 | elif test -d "$with_wine_tools/tools/winebuild"; then |
| 2597 | case $with_wine_tools in |
| 2598 | /*) wine_cv_toolsdir="$with_wine_tools" ;; |
| 2599 | *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;; |
| 2600 | esac |
| 2601 | else |
| 2602 | { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5 |
| 2603 | echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;} |
| 2604 | { (exit 1); exit 1; }; } |
| 2605 | fi |
| 2606 | fi |
| 2607 | echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5 |
| 2608 | echo "${ECHO_T}$wine_cv_toolsdir" >&6 |
| 2609 | TOOLSDIR=$wine_cv_toolsdir |
| 2610 | |
| 2611 | |
| 2612 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2613 | |
| 2614 | echo "$as_me:$LINENO: checking for X" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2615 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2616 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2617 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2618 | # Check whether --with-x or --without-x was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2619 | if test "${with_x+set}" = set; then |
| 2620 | withval="$with_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2621 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2622 | fi; |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2623 | # $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] | 2624 | if test "x$with_x" = xno; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2625 | # The user explicitly disabled X. |
| 2626 | have_x=disabled |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2627 | else |
| 2628 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2629 | # Both variables are already set. |
| 2630 | have_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2631 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2632 | if test "${ac_cv_have_x+set}" = set; then |
| 2633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2634 | else |
| 2635 | # 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] | 2636 | ac_x_includes=no ac_x_libraries=no |
| 2637 | rm -fr conftest.dir |
| 2638 | if mkdir conftest.dir; then |
| 2639 | cd conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2640 | # 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] | 2641 | cat >Imakefile <<'_ACEOF' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2642 | acfindx: |
| 2643 | @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] | 2644 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2645 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2646 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2647 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2648 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 2649 | for ac_extension in a so sl; do |
| 2650 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2651 | test -f $ac_im_libdir/libX11.$ac_extension; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2652 | ac_im_usrlibdir=$ac_im_libdir; break |
| 2653 | fi |
| 2654 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2655 | # Screen out bogus values from the imake configuration. They are |
| 2656 | # bogus both because they are the default anyway, and because |
| 2657 | # using them would break gcc on systems where it needs fixed includes. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2658 | case $ac_im_incroot in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2659 | /usr/include) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2660 | *) 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] | 2661 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2662 | case $ac_im_usrlibdir in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2663 | /usr/lib | /lib) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2664 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2665 | esac |
| 2666 | fi |
| 2667 | cd .. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2668 | rm -fr conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2669 | fi |
| 2670 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2671 | # Standard set of common directories for X headers. |
| 2672 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 2673 | ac_x_header_dirs=' |
| 2674 | /usr/X11/include |
| 2675 | /usr/X11R6/include |
| 2676 | /usr/X11R5/include |
| 2677 | /usr/X11R4/include |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2678 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2679 | /usr/include/X11 |
| 2680 | /usr/include/X11R6 |
| 2681 | /usr/include/X11R5 |
| 2682 | /usr/include/X11R4 |
| 2683 | |
| 2684 | /usr/local/X11/include |
| 2685 | /usr/local/X11R6/include |
| 2686 | /usr/local/X11R5/include |
| 2687 | /usr/local/X11R4/include |
| 2688 | |
| 2689 | /usr/local/include/X11 |
| 2690 | /usr/local/include/X11R6 |
| 2691 | /usr/local/include/X11R5 |
| 2692 | /usr/local/include/X11R4 |
| 2693 | |
| 2694 | /usr/X386/include |
| 2695 | /usr/x386/include |
| 2696 | /usr/XFree86/include/X11 |
| 2697 | |
| 2698 | /usr/include |
| 2699 | /usr/local/include |
| 2700 | /usr/unsupported/include |
| 2701 | /usr/athena/include |
| 2702 | /usr/local/x11r5/include |
| 2703 | /usr/lpp/Xamples/include |
| 2704 | |
| 2705 | /usr/openwin/include |
| 2706 | /usr/openwin/share/include' |
| 2707 | |
| 2708 | if test "$ac_x_includes" = no; then |
| 2709 | # Guess where to find include files, by looking for Intrinsic.h. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2710 | # First, try using that file with no special directory specified. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2711 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2712 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2713 | /* confdefs.h. */ |
| 2714 | _ACEOF |
| 2715 | cat confdefs.h >>conftest.$ac_ext |
| 2716 | cat >>conftest.$ac_ext <<_ACEOF |
| 2717 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2718 | #include <X11/Intrinsic.h> |
| 2719 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2720 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2721 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2722 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2723 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2724 | rm -f conftest.er1 |
| 2725 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2727 | (exit $ac_status); } >/dev/null; then |
| 2728 | if test -s conftest.err; then |
| 2729 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2730 | else |
| 2731 | ac_cpp_err= |
| 2732 | fi |
| 2733 | else |
| 2734 | ac_cpp_err=yes |
| 2735 | fi |
| 2736 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2737 | # We can compile using X headers with no special include directory. |
| 2738 | ac_x_includes= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2739 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2740 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2742 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2743 | for ac_dir in $ac_x_header_dirs; do |
| 2744 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 2745 | ac_x_includes=$ac_dir |
| 2746 | break |
| 2747 | fi |
| 2748 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2749 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2750 | rm -f conftest.err conftest.$ac_ext |
| 2751 | fi # $ac_x_includes = no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2752 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2753 | if test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2754 | # Check for the libraries. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2755 | # See if we find them without any special options. |
| 2756 | # Don't add to $LIBS permanently. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2757 | ac_save_LIBS=$LIBS |
| 2758 | LIBS="-lXt $LIBS" |
| 2759 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2760 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2761 | /* confdefs.h. */ |
| 2762 | _ACEOF |
| 2763 | cat confdefs.h >>conftest.$ac_ext |
| 2764 | cat >>conftest.$ac_ext <<_ACEOF |
| 2765 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2766 | #include <X11/Intrinsic.h> |
| 2767 | int |
| 2768 | main () |
| 2769 | { |
| 2770 | XtMalloc (0) |
| 2771 | ; |
| 2772 | return 0; |
| 2773 | } |
| 2774 | _ACEOF |
| 2775 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2777 | (eval $ac_link) 2>&5 |
| 2778 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2780 | (exit $ac_status); } && |
| 2781 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2783 | (eval $ac_try) 2>&5 |
| 2784 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2786 | (exit $ac_status); }; }; then |
| 2787 | LIBS=$ac_save_LIBS |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2788 | # We can link X programs with no special library path. |
| 2789 | ac_x_libraries= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2790 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2791 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2793 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2794 | LIBS=$ac_save_LIBS |
| 2795 | 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] | 2796 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2797 | # 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] | 2798 | for ac_extension in a so sl; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2799 | if test -r $ac_dir/libXt.$ac_extension; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2800 | ac_x_libraries=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2801 | break 2 |
| 2802 | fi |
| 2803 | done |
| 2804 | done |
| 2805 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2806 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2807 | fi # $ac_x_libraries = no |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2808 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2809 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2810 | # Didn't find X anywhere. Cache the known absence of X. |
| 2811 | ac_cv_have_x="have_x=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2812 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2813 | # Record where we found X for the cache. |
| 2814 | ac_cv_have_x="have_x=yes \ |
| 2815 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2816 | fi |
| 2817 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2818 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2819 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2820 | eval "$ac_cv_have_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2821 | fi # $with_x != no |
| 2822 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2823 | if test "$have_x" != yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2824 | echo "$as_me:$LINENO: result: $have_x" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2825 | echo "${ECHO_T}$have_x" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2826 | no_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2827 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2828 | # 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] | 2829 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 2830 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2831 | # Update the cache value to reflect the command line values. |
| 2832 | ac_cv_have_x="have_x=yes \ |
| 2833 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2834 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2835 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2836 | fi |
| 2837 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2838 | if test "$no_x" = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2839 | # 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] | 2840 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2841 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2842 | #define X_DISPLAY_MISSING 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2843 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2844 | |
| 2845 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2846 | else |
| 2847 | if test -n "$x_includes"; then |
| 2848 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 2849 | fi |
| 2850 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2851 | # It would also be nice to do this for all -L options, not just this one. |
| 2852 | if test -n "$x_libraries"; then |
| 2853 | X_LIBS="$X_LIBS -L$x_libraries" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2854 | # For Solaris; some versions of Sun CC require a space after -R and |
| 2855 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2856 | case `(uname -sr) 2>/dev/null` in |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2857 | "SunOS 5"*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2858 | 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] | 2859 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 2860 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 2861 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2862 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2863 | /* confdefs.h. */ |
| 2864 | _ACEOF |
| 2865 | cat confdefs.h >>conftest.$ac_ext |
| 2866 | cat >>conftest.$ac_ext <<_ACEOF |
| 2867 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2868 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2869 | int |
| 2870 | main () |
| 2871 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2872 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2873 | ; |
| 2874 | return 0; |
| 2875 | } |
| 2876 | _ACEOF |
| 2877 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2879 | (eval $ac_link) 2>&5 |
| 2880 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2882 | (exit $ac_status); } && |
| 2883 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2885 | (eval $ac_try) 2>&5 |
| 2886 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2888 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2889 | ac_R_nospace=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2890 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2891 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2893 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2894 | ac_R_nospace=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2895 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2896 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2897 | if test $ac_R_nospace = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2898 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2899 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2900 | X_LIBS="$X_LIBS -R$x_libraries" |
| 2901 | else |
| 2902 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2903 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2904 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2905 | /* confdefs.h. */ |
| 2906 | _ACEOF |
| 2907 | cat confdefs.h >>conftest.$ac_ext |
| 2908 | cat >>conftest.$ac_ext <<_ACEOF |
| 2909 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2910 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2911 | int |
| 2912 | main () |
| 2913 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2914 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2915 | ; |
| 2916 | return 0; |
| 2917 | } |
| 2918 | _ACEOF |
| 2919 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2921 | (eval $ac_link) 2>&5 |
| 2922 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2924 | (exit $ac_status); } && |
| 2925 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2927 | (eval $ac_try) 2>&5 |
| 2928 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2930 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2931 | ac_R_space=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2932 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2933 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2935 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2936 | ac_R_space=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2937 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2938 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2939 | if test $ac_R_space = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2940 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2941 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2942 | X_LIBS="$X_LIBS -R $x_libraries" |
| 2943 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2944 | echo "$as_me:$LINENO: result: neither works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2945 | echo "${ECHO_T}neither works" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2946 | fi |
| 2947 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2948 | LIBS=$ac_xsave_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2949 | esac |
| 2950 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2951 | |
| 2952 | # Check for system-dependent libraries X programs must link with. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2953 | # Do this before checking for the system-independent R6 libraries |
| 2954 | # (-lICE), since we may need -lsocket or whatever for X linking. |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2955 | |
| 2956 | if test "$ISC" = yes; then |
| 2957 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 2958 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2959 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 2960 | # libraries were built with DECnet support. And Karl Berry says |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2961 | # the Alpha needs dnet_stub (dnet does not exist). |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2962 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 2963 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2964 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2965 | /* confdefs.h. */ |
| 2966 | _ACEOF |
| 2967 | cat confdefs.h >>conftest.$ac_ext |
| 2968 | cat >>conftest.$ac_ext <<_ACEOF |
| 2969 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2970 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 2971 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2972 | #ifdef __cplusplus |
| 2973 | extern "C" |
| 2974 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2975 | /* 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] | 2976 | builtin and then its argument prototype would still apply. */ |
| 2977 | char XOpenDisplay (); |
| 2978 | int |
| 2979 | main () |
| 2980 | { |
| 2981 | XOpenDisplay (); |
| 2982 | ; |
| 2983 | return 0; |
| 2984 | } |
| 2985 | _ACEOF |
| 2986 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2988 | (eval $ac_link) 2>&5 |
| 2989 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2991 | (exit $ac_status); } && |
| 2992 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2994 | (eval $ac_try) 2>&5 |
| 2995 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2997 | (exit $ac_status); }; }; then |
| 2998 | : |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2999 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3000 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3002 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3003 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3004 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 3005 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 3006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3007 | else |
| 3008 | ac_check_lib_save_LIBS=$LIBS |
| 3009 | LIBS="-ldnet $LIBS" |
| 3010 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3011 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3012 | /* confdefs.h. */ |
| 3013 | _ACEOF |
| 3014 | cat confdefs.h >>conftest.$ac_ext |
| 3015 | cat >>conftest.$ac_ext <<_ACEOF |
| 3016 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3017 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3018 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3019 | #ifdef __cplusplus |
| 3020 | extern "C" |
| 3021 | #endif |
| 3022 | /* We use char because int might match the return type of a gcc2 |
| 3023 | builtin and then its argument prototype would still apply. */ |
| 3024 | char dnet_ntoa (); |
| 3025 | int |
| 3026 | main () |
| 3027 | { |
| 3028 | dnet_ntoa (); |
| 3029 | ; |
| 3030 | return 0; |
| 3031 | } |
| 3032 | _ACEOF |
| 3033 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3034 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3035 | (eval $ac_link) 2>&5 |
| 3036 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3038 | (exit $ac_status); } && |
| 3039 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3041 | (eval $ac_try) 2>&5 |
| 3042 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3044 | (exit $ac_status); }; }; then |
| 3045 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 3046 | else |
| 3047 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3049 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3050 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3051 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3052 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3053 | LIBS=$ac_check_lib_save_LIBS |
| 3054 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3055 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3056 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 3057 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3058 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3059 | fi |
| 3060 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3061 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3062 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3063 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 3064 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 3065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3066 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3067 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3068 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3069 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3070 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3071 | /* confdefs.h. */ |
| 3072 | _ACEOF |
| 3073 | cat confdefs.h >>conftest.$ac_ext |
| 3074 | cat >>conftest.$ac_ext <<_ACEOF |
| 3075 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3076 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3077 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3078 | #ifdef __cplusplus |
| 3079 | extern "C" |
| 3080 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3081 | /* 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] | 3082 | builtin and then its argument prototype would still apply. */ |
| 3083 | char dnet_ntoa (); |
| 3084 | int |
| 3085 | main () |
| 3086 | { |
| 3087 | dnet_ntoa (); |
| 3088 | ; |
| 3089 | return 0; |
| 3090 | } |
| 3091 | _ACEOF |
| 3092 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3094 | (eval $ac_link) 2>&5 |
| 3095 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3097 | (exit $ac_status); } && |
| 3098 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3100 | (eval $ac_try) 2>&5 |
| 3101 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3103 | (exit $ac_status); }; }; then |
| 3104 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3105 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3106 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3108 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3109 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3110 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3111 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3112 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3113 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3114 | 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] | 3115 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 3116 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3117 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3118 | fi |
| 3119 | |
| 3120 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3121 | fi |
| 3122 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3123 | LIBS="$ac_xsave_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3124 | |
| 3125 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 3126 | # to get the SysV transport functions. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3127 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3128 | # needs -lnsl. |
| 3129 | # The nsl library prevents programs from opening the X display |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3130 | # on Irix 5.2, according to T.E. Dickey. |
| 3131 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 3132 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3133 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3134 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 3135 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 3136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3137 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3138 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3139 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3140 | /* confdefs.h. */ |
| 3141 | _ACEOF |
| 3142 | cat confdefs.h >>conftest.$ac_ext |
| 3143 | cat >>conftest.$ac_ext <<_ACEOF |
| 3144 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3145 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3146 | which can conflict with char gethostbyname (); below. |
| 3147 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3148 | <limits.h> exists even on freestanding compilers. */ |
| 3149 | #ifdef __STDC__ |
| 3150 | # include <limits.h> |
| 3151 | #else |
| 3152 | # include <assert.h> |
| 3153 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3154 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3155 | #ifdef __cplusplus |
| 3156 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3157 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3158 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3159 | /* 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] | 3160 | builtin and then its argument prototype would still apply. */ |
| 3161 | char gethostbyname (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3162 | /* The GNU C library defines this for functions which it implements |
| 3163 | to always fail with ENOSYS. Some functions are actually named |
| 3164 | something starting with __ and the normal name is an alias. */ |
| 3165 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 3166 | choke me |
| 3167 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3168 | char (*f) () = gethostbyname; |
| 3169 | #endif |
| 3170 | #ifdef __cplusplus |
| 3171 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3172 | #endif |
| 3173 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3174 | int |
| 3175 | main () |
| 3176 | { |
| 3177 | return f != gethostbyname; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3178 | ; |
| 3179 | return 0; |
| 3180 | } |
| 3181 | _ACEOF |
| 3182 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3184 | (eval $ac_link) 2>&5 |
| 3185 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3187 | (exit $ac_status); } && |
| 3188 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3190 | (eval $ac_try) 2>&5 |
| 3191 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3193 | (exit $ac_status); }; }; then |
| 3194 | ac_cv_func_gethostbyname=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3195 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3196 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3198 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3199 | ac_cv_func_gethostbyname=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3200 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3202 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3203 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3204 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3205 | |
| 3206 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3207 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3208 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 3209 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 3210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3211 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3212 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3213 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3214 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3215 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3216 | /* confdefs.h. */ |
| 3217 | _ACEOF |
| 3218 | cat confdefs.h >>conftest.$ac_ext |
| 3219 | cat >>conftest.$ac_ext <<_ACEOF |
| 3220 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3221 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3222 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3223 | #ifdef __cplusplus |
| 3224 | extern "C" |
| 3225 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3226 | /* 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] | 3227 | builtin and then its argument prototype would still apply. */ |
| 3228 | char gethostbyname (); |
| 3229 | int |
| 3230 | main () |
| 3231 | { |
| 3232 | gethostbyname (); |
| 3233 | ; |
| 3234 | return 0; |
| 3235 | } |
| 3236 | _ACEOF |
| 3237 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3239 | (eval $ac_link) 2>&5 |
| 3240 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3242 | (exit $ac_status); } && |
| 3243 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3245 | (eval $ac_try) 2>&5 |
| 3246 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3248 | (exit $ac_status); }; }; then |
| 3249 | ac_cv_lib_nsl_gethostbyname=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3250 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3251 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3253 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3254 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3255 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3256 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3257 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3258 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3259 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3260 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 3261 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3262 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3263 | fi |
| 3264 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3265 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3266 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3267 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 3268 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 3269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3270 | else |
| 3271 | ac_check_lib_save_LIBS=$LIBS |
| 3272 | LIBS="-lbsd $LIBS" |
| 3273 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3274 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3275 | /* confdefs.h. */ |
| 3276 | _ACEOF |
| 3277 | cat confdefs.h >>conftest.$ac_ext |
| 3278 | cat >>conftest.$ac_ext <<_ACEOF |
| 3279 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3280 | |
| 3281 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3282 | #ifdef __cplusplus |
| 3283 | extern "C" |
| 3284 | #endif |
| 3285 | /* We use char because int might match the return type of a gcc2 |
| 3286 | builtin and then its argument prototype would still apply. */ |
| 3287 | char gethostbyname (); |
| 3288 | int |
| 3289 | main () |
| 3290 | { |
| 3291 | gethostbyname (); |
| 3292 | ; |
| 3293 | return 0; |
| 3294 | } |
| 3295 | _ACEOF |
| 3296 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3298 | (eval $ac_link) 2>&5 |
| 3299 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3301 | (exit $ac_status); } && |
| 3302 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3304 | (eval $ac_try) 2>&5 |
| 3305 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3307 | (exit $ac_status); }; }; then |
| 3308 | ac_cv_lib_bsd_gethostbyname=yes |
| 3309 | else |
| 3310 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3311 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3312 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3313 | ac_cv_lib_bsd_gethostbyname=no |
| 3314 | fi |
| 3315 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3316 | LIBS=$ac_check_lib_save_LIBS |
| 3317 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3318 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3319 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 3320 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 3321 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 3322 | fi |
| 3323 | |
| 3324 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3325 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3326 | |
| 3327 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3328 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 3329 | # 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] | 3330 | # on later versions), says Simon Leinen: it contains gethostby* |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3331 | # variants that don't use the name server (or something). -lsocket |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3332 | # must be given before -lnsl if both are needed. We assume that |
| 3333 | # if connect needs -lnsl, so does gethostbyname. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3334 | echo "$as_me:$LINENO: checking for connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3335 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 3336 | if test "${ac_cv_func_connect+set}" = set; then |
| 3337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3338 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3339 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3340 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3341 | /* confdefs.h. */ |
| 3342 | _ACEOF |
| 3343 | cat confdefs.h >>conftest.$ac_ext |
| 3344 | cat >>conftest.$ac_ext <<_ACEOF |
| 3345 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3346 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3347 | which can conflict with char connect (); below. |
| 3348 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3349 | <limits.h> exists even on freestanding compilers. */ |
| 3350 | #ifdef __STDC__ |
| 3351 | # include <limits.h> |
| 3352 | #else |
| 3353 | # include <assert.h> |
| 3354 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3355 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3356 | #ifdef __cplusplus |
| 3357 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3358 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3359 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3360 | /* 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] | 3361 | builtin and then its argument prototype would still apply. */ |
| 3362 | char connect (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3363 | /* The GNU C library defines this for functions which it implements |
| 3364 | to always fail with ENOSYS. Some functions are actually named |
| 3365 | something starting with __ and the normal name is an alias. */ |
| 3366 | #if defined (__stub_connect) || defined (__stub___connect) |
| 3367 | choke me |
| 3368 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3369 | char (*f) () = connect; |
| 3370 | #endif |
| 3371 | #ifdef __cplusplus |
| 3372 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3373 | #endif |
| 3374 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3375 | int |
| 3376 | main () |
| 3377 | { |
| 3378 | return f != connect; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3379 | ; |
| 3380 | return 0; |
| 3381 | } |
| 3382 | _ACEOF |
| 3383 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3385 | (eval $ac_link) 2>&5 |
| 3386 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3388 | (exit $ac_status); } && |
| 3389 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3391 | (eval $ac_try) 2>&5 |
| 3392 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3394 | (exit $ac_status); }; }; then |
| 3395 | ac_cv_func_connect=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3396 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3397 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3399 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3400 | ac_cv_func_connect=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3401 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3402 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3403 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3404 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3405 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3406 | |
| 3407 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3408 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3409 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 3410 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 3411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3412 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3413 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3414 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3415 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3416 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3417 | /* confdefs.h. */ |
| 3418 | _ACEOF |
| 3419 | cat confdefs.h >>conftest.$ac_ext |
| 3420 | cat >>conftest.$ac_ext <<_ACEOF |
| 3421 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3422 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3423 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3424 | #ifdef __cplusplus |
| 3425 | extern "C" |
| 3426 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3427 | /* 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] | 3428 | builtin and then its argument prototype would still apply. */ |
| 3429 | char connect (); |
| 3430 | int |
| 3431 | main () |
| 3432 | { |
| 3433 | connect (); |
| 3434 | ; |
| 3435 | return 0; |
| 3436 | } |
| 3437 | _ACEOF |
| 3438 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3440 | (eval $ac_link) 2>&5 |
| 3441 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3443 | (exit $ac_status); } && |
| 3444 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3446 | (eval $ac_try) 2>&5 |
| 3447 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3449 | (exit $ac_status); }; }; then |
| 3450 | ac_cv_lib_socket_connect=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3451 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3452 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3454 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3455 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3456 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3457 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3458 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3459 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3460 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3461 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 3462 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3463 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3464 | fi |
| 3465 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3466 | fi |
| 3467 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3468 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3469 | echo "$as_me:$LINENO: checking for remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3470 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 3471 | if test "${ac_cv_func_remove+set}" = set; then |
| 3472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3473 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3474 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3475 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3476 | /* confdefs.h. */ |
| 3477 | _ACEOF |
| 3478 | cat confdefs.h >>conftest.$ac_ext |
| 3479 | cat >>conftest.$ac_ext <<_ACEOF |
| 3480 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3481 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3482 | which can conflict with char remove (); below. |
| 3483 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3484 | <limits.h> exists even on freestanding compilers. */ |
| 3485 | #ifdef __STDC__ |
| 3486 | # include <limits.h> |
| 3487 | #else |
| 3488 | # include <assert.h> |
| 3489 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3490 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3491 | #ifdef __cplusplus |
| 3492 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3493 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3494 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3495 | /* 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] | 3496 | builtin and then its argument prototype would still apply. */ |
| 3497 | char remove (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3498 | /* The GNU C library defines this for functions which it implements |
| 3499 | to always fail with ENOSYS. Some functions are actually named |
| 3500 | something starting with __ and the normal name is an alias. */ |
| 3501 | #if defined (__stub_remove) || defined (__stub___remove) |
| 3502 | choke me |
| 3503 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3504 | char (*f) () = remove; |
| 3505 | #endif |
| 3506 | #ifdef __cplusplus |
| 3507 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3508 | #endif |
| 3509 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3510 | int |
| 3511 | main () |
| 3512 | { |
| 3513 | return f != remove; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3514 | ; |
| 3515 | return 0; |
| 3516 | } |
| 3517 | _ACEOF |
| 3518 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3520 | (eval $ac_link) 2>&5 |
| 3521 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3523 | (exit $ac_status); } && |
| 3524 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3526 | (eval $ac_try) 2>&5 |
| 3527 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3529 | (exit $ac_status); }; }; then |
| 3530 | ac_cv_func_remove=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3531 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3532 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3534 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3535 | ac_cv_func_remove=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3536 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3537 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3538 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3539 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3540 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3541 | |
| 3542 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3543 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3544 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 3545 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 3546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3547 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3548 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3549 | LIBS="-lposix $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3550 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3551 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3552 | /* confdefs.h. */ |
| 3553 | _ACEOF |
| 3554 | cat confdefs.h >>conftest.$ac_ext |
| 3555 | cat >>conftest.$ac_ext <<_ACEOF |
| 3556 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3557 | |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3558 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3559 | #ifdef __cplusplus |
| 3560 | extern "C" |
| 3561 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3562 | /* 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] | 3563 | builtin and then its argument prototype would still apply. */ |
| 3564 | char remove (); |
| 3565 | int |
| 3566 | main () |
| 3567 | { |
| 3568 | remove (); |
| 3569 | ; |
| 3570 | return 0; |
| 3571 | } |
| 3572 | _ACEOF |
| 3573 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3575 | (eval $ac_link) 2>&5 |
| 3576 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3578 | (exit $ac_status); } && |
| 3579 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3581 | (eval $ac_try) 2>&5 |
| 3582 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3584 | (exit $ac_status); }; }; then |
| 3585 | ac_cv_lib_posix_remove=yes |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3586 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3587 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3589 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3590 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3591 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3592 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3593 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3594 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3595 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3596 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 3597 | if test $ac_cv_lib_posix_remove = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3598 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3599 | fi |
| 3600 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3601 | fi |
| 3602 | |
| 3603 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3604 | echo "$as_me:$LINENO: checking for shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3605 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 3606 | if test "${ac_cv_func_shmat+set}" = set; then |
| 3607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3608 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3609 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3610 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3611 | /* confdefs.h. */ |
| 3612 | _ACEOF |
| 3613 | cat confdefs.h >>conftest.$ac_ext |
| 3614 | cat >>conftest.$ac_ext <<_ACEOF |
| 3615 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3616 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3617 | which can conflict with char shmat (); below. |
| 3618 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3619 | <limits.h> exists even on freestanding compilers. */ |
| 3620 | #ifdef __STDC__ |
| 3621 | # include <limits.h> |
| 3622 | #else |
| 3623 | # include <assert.h> |
| 3624 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3625 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3626 | #ifdef __cplusplus |
| 3627 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3628 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3629 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3630 | /* 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] | 3631 | builtin and then its argument prototype would still apply. */ |
| 3632 | char shmat (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3633 | /* The GNU C library defines this for functions which it implements |
| 3634 | to always fail with ENOSYS. Some functions are actually named |
| 3635 | something starting with __ and the normal name is an alias. */ |
| 3636 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 3637 | choke me |
| 3638 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3639 | char (*f) () = shmat; |
| 3640 | #endif |
| 3641 | #ifdef __cplusplus |
| 3642 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3643 | #endif |
| 3644 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3645 | int |
| 3646 | main () |
| 3647 | { |
| 3648 | return f != shmat; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3649 | ; |
| 3650 | return 0; |
| 3651 | } |
| 3652 | _ACEOF |
| 3653 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3654 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3655 | (eval $ac_link) 2>&5 |
| 3656 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3658 | (exit $ac_status); } && |
| 3659 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3661 | (eval $ac_try) 2>&5 |
| 3662 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3664 | (exit $ac_status); }; }; then |
| 3665 | ac_cv_func_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3666 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3667 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3669 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3670 | ac_cv_func_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3671 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3672 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3673 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3674 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3675 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3676 | |
| 3677 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3678 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3679 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 3680 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 3681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3682 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3683 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3684 | LIBS="-lipc $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3685 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3686 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3687 | /* confdefs.h. */ |
| 3688 | _ACEOF |
| 3689 | cat confdefs.h >>conftest.$ac_ext |
| 3690 | cat >>conftest.$ac_ext <<_ACEOF |
| 3691 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3692 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3693 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3694 | #ifdef __cplusplus |
| 3695 | extern "C" |
| 3696 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3697 | /* 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] | 3698 | builtin and then its argument prototype would still apply. */ |
| 3699 | char shmat (); |
| 3700 | int |
| 3701 | main () |
| 3702 | { |
| 3703 | shmat (); |
| 3704 | ; |
| 3705 | return 0; |
| 3706 | } |
| 3707 | _ACEOF |
| 3708 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3710 | (eval $ac_link) 2>&5 |
| 3711 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3713 | (exit $ac_status); } && |
| 3714 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3716 | (eval $ac_try) 2>&5 |
| 3717 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3719 | (exit $ac_status); }; }; then |
| 3720 | ac_cv_lib_ipc_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3721 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3722 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3724 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3725 | ac_cv_lib_ipc_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3726 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3727 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3728 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3729 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3730 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3731 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 3732 | if test $ac_cv_lib_ipc_shmat = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3733 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3734 | fi |
| 3735 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3736 | fi |
| 3737 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3738 | |
| 3739 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3740 | ac_save_LDFLAGS=$LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3741 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 3742 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 3743 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 3744 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 3745 | # These have to be linked with before -lX11, unlike the other |
| 3746 | # libraries we check for below, so use a different variable. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3747 | # John Interrante, Karl Berry |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3748 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3749 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 3750 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 3751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3752 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3753 | ac_check_lib_save_LIBS=$LIBS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3754 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3755 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3756 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3757 | /* confdefs.h. */ |
| 3758 | _ACEOF |
| 3759 | cat confdefs.h >>conftest.$ac_ext |
| 3760 | cat >>conftest.$ac_ext <<_ACEOF |
| 3761 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3762 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3763 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3764 | #ifdef __cplusplus |
| 3765 | extern "C" |
| 3766 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3767 | /* 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] | 3768 | builtin and then its argument prototype would still apply. */ |
| 3769 | char IceConnectionNumber (); |
| 3770 | int |
| 3771 | main () |
| 3772 | { |
| 3773 | IceConnectionNumber (); |
| 3774 | ; |
| 3775 | return 0; |
| 3776 | } |
| 3777 | _ACEOF |
| 3778 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3780 | (eval $ac_link) 2>&5 |
| 3781 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3783 | (exit $ac_status); } && |
| 3784 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3786 | (eval $ac_try) 2>&5 |
| 3787 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3789 | (exit $ac_status); }; }; then |
| 3790 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3791 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3792 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3794 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3795 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3796 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3797 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3798 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3799 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3800 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3801 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 3802 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3803 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3804 | fi |
| 3805 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3806 | LDFLAGS=$ac_save_LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3807 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3808 | fi |
| 3809 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3810 | for ac_prog in 'bison -y' byacc |
| 3811 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3812 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3813 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3814 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3815 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3816 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 3817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3818 | else |
| 3819 | if test -n "$YACC"; then |
| 3820 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 3821 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3823 | for as_dir in $PATH |
| 3824 | do |
| 3825 | IFS=$as_save_IFS |
| 3826 | test -z "$as_dir" && as_dir=. |
| 3827 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3828 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3829 | ac_cv_prog_YACC="$ac_prog" |
| 3830 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3831 | break 2 |
| 3832 | fi |
| 3833 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3834 | done |
| 3835 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3836 | fi |
| 3837 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3838 | YACC=$ac_cv_prog_YACC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3839 | if test -n "$YACC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3840 | echo "$as_me:$LINENO: result: $YACC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3841 | echo "${ECHO_T}$YACC" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3842 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3843 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3844 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3845 | fi |
| 3846 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3847 | test -n "$YACC" && break |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3848 | done |
| 3849 | test -n "$YACC" || YACC="yacc" |
| 3850 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3851 | for ac_prog in flex lex |
| 3852 | do |
| 3853 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3854 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3855 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3857 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 3858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3859 | else |
| 3860 | if test -n "$LEX"; then |
| 3861 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 3862 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3864 | for as_dir in $PATH |
| 3865 | do |
| 3866 | IFS=$as_save_IFS |
| 3867 | test -z "$as_dir" && as_dir=. |
| 3868 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3869 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3870 | ac_cv_prog_LEX="$ac_prog" |
| 3871 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3872 | break 2 |
| 3873 | fi |
| 3874 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3875 | done |
| 3876 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3877 | fi |
| 3878 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3879 | LEX=$ac_cv_prog_LEX |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3880 | if test -n "$LEX"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3881 | echo "$as_me:$LINENO: result: $LEX" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3882 | echo "${ECHO_T}$LEX" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3883 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3884 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3885 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3886 | fi |
| 3887 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3888 | test -n "$LEX" && break |
| 3889 | done |
| 3890 | test -n "$LEX" || LEX=":" |
| 3891 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3892 | if test -z "$LEXLIB" |
| 3893 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3894 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3895 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 3896 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 3897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3898 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3899 | ac_check_lib_save_LIBS=$LIBS |
| 3900 | LIBS="-lfl $LIBS" |
| 3901 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3902 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3903 | /* confdefs.h. */ |
| 3904 | _ACEOF |
| 3905 | cat confdefs.h >>conftest.$ac_ext |
| 3906 | cat >>conftest.$ac_ext <<_ACEOF |
| 3907 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3908 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3909 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3910 | #ifdef __cplusplus |
| 3911 | extern "C" |
| 3912 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3913 | /* 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] | 3914 | builtin and then its argument prototype would still apply. */ |
| 3915 | char yywrap (); |
| 3916 | int |
| 3917 | main () |
| 3918 | { |
| 3919 | yywrap (); |
| 3920 | ; |
| 3921 | return 0; |
| 3922 | } |
| 3923 | _ACEOF |
| 3924 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3926 | (eval $ac_link) 2>&5 |
| 3927 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3929 | (exit $ac_status); } && |
| 3930 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3932 | (eval $ac_try) 2>&5 |
| 3933 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3935 | (exit $ac_status); }; }; then |
| 3936 | ac_cv_lib_fl_yywrap=yes |
| 3937 | else |
| 3938 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3940 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3941 | ac_cv_lib_fl_yywrap=no |
| 3942 | fi |
| 3943 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3944 | LIBS=$ac_check_lib_save_LIBS |
| 3945 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3946 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3947 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 3948 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 3949 | LEXLIB="-lfl" |
| 3950 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3951 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3952 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 3953 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 3954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3955 | else |
| 3956 | ac_check_lib_save_LIBS=$LIBS |
| 3957 | LIBS="-ll $LIBS" |
| 3958 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3959 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3960 | /* confdefs.h. */ |
| 3961 | _ACEOF |
| 3962 | cat confdefs.h >>conftest.$ac_ext |
| 3963 | cat >>conftest.$ac_ext <<_ACEOF |
| 3964 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3965 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3966 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3967 | #ifdef __cplusplus |
| 3968 | extern "C" |
| 3969 | #endif |
| 3970 | /* We use char because int might match the return type of a gcc2 |
| 3971 | builtin and then its argument prototype would still apply. */ |
| 3972 | char yywrap (); |
| 3973 | int |
| 3974 | main () |
| 3975 | { |
| 3976 | yywrap (); |
| 3977 | ; |
| 3978 | return 0; |
| 3979 | } |
| 3980 | _ACEOF |
| 3981 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3983 | (eval $ac_link) 2>&5 |
| 3984 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3986 | (exit $ac_status); } && |
| 3987 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3989 | (eval $ac_try) 2>&5 |
| 3990 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3992 | (exit $ac_status); }; }; then |
| 3993 | ac_cv_lib_l_yywrap=yes |
| 3994 | else |
| 3995 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3997 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3998 | ac_cv_lib_l_yywrap=no |
| 3999 | fi |
| 4000 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4001 | LIBS=$ac_check_lib_save_LIBS |
| 4002 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4003 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4004 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 4005 | if test $ac_cv_lib_l_yywrap = yes; then |
| 4006 | LEXLIB="-ll" |
| 4007 | fi |
| 4008 | |
| 4009 | fi |
| 4010 | |
| 4011 | fi |
| 4012 | |
| 4013 | if test "x$LEX" != "x:"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4014 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4015 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 4016 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 4017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4018 | else |
| 4019 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 4020 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4021 | cat >conftest.l <<_ACEOF |
| 4022 | %% |
| 4023 | %% |
| 4024 | _ACEOF |
| 4025 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 4026 | (eval $LEX conftest.l) 2>&5 |
| 4027 | ac_status=$? |
| 4028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4029 | (exit $ac_status); } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4030 | if test -f lex.yy.c; then |
| 4031 | ac_cv_prog_lex_root=lex.yy |
| 4032 | elif test -f lexyy.c; then |
| 4033 | ac_cv_prog_lex_root=lexyy |
| 4034 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4035 | { { 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] | 4036 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 4037 | { (exit 1); exit 1; }; } |
| 4038 | fi |
| 4039 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4040 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4041 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4042 | rm -f conftest.l |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4043 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 4044 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4045 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4046 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 4047 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 4048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4049 | else |
| 4050 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 4051 | # default is implementation-dependent. Figure out which it is, since |
| 4052 | # not all implementations provide the %pointer and %array declarations. |
| 4053 | ac_cv_prog_lex_yytext_pointer=no |
| 4054 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 4055 | ac_save_LIBS=$LIBS |
| 4056 | LIBS="$LIBS $LEXLIB" |
| 4057 | cat >conftest.$ac_ext <<_ACEOF |
| 4058 | `cat $LEX_OUTPUT_ROOT.c` |
| 4059 | _ACEOF |
| 4060 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4062 | (eval $ac_link) 2>&5 |
| 4063 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4065 | (exit $ac_status); } && |
| 4066 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4068 | (eval $ac_try) 2>&5 |
| 4069 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4071 | (exit $ac_status); }; }; then |
| 4072 | ac_cv_prog_lex_yytext_pointer=yes |
| 4073 | else |
| 4074 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4076 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4077 | fi |
| 4078 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4079 | LIBS=$ac_save_LIBS |
| 4080 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 4081 | |
| 4082 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4083 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4084 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 4085 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 4086 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4087 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4088 | #define YYTEXT_POINTER 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4089 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4090 | |
| 4091 | fi |
| 4092 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4093 | fi |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4094 | |
| 4095 | for ac_prog in $YACC bison yacc |
| 4096 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4097 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4098 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4099 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4100 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4101 | if test "${ac_cv_prog_XYACC+set}" = set; then |
| 4102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4103 | else |
| 4104 | if test -n "$XYACC"; then |
| 4105 | ac_cv_prog_XYACC="$XYACC" # Let the user override the test. |
| 4106 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4108 | for as_dir in $PATH |
| 4109 | do |
| 4110 | IFS=$as_save_IFS |
| 4111 | test -z "$as_dir" && as_dir=. |
| 4112 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4113 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4114 | ac_cv_prog_XYACC="$ac_prog" |
| 4115 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4116 | break 2 |
| 4117 | fi |
| 4118 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4119 | done |
| 4120 | |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4121 | fi |
| 4122 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4123 | XYACC=$ac_cv_prog_XYACC |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4124 | if test -n "$XYACC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4125 | echo "$as_me:$LINENO: result: $XYACC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4126 | echo "${ECHO_T}$XYACC" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4127 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4128 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4129 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4130 | fi |
| 4131 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4132 | test -n "$XYACC" && break |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4133 | done |
| 4134 | test -n "$XYACC" || XYACC="none" |
| 4135 | |
| 4136 | if test "$XYACC" = "none" |
| 4137 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4138 | { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4139 | echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;} |
| 4140 | { (exit 1); exit 1; }; } |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4141 | fi |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4142 | for ac_prog in $LEX flex lex |
| 4143 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4144 | # 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] | 4145 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4146 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4147 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4148 | if test "${ac_cv_prog_XLEX+set}" = set; then |
| 4149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4150 | else |
| 4151 | if test -n "$XLEX"; then |
| 4152 | ac_cv_prog_XLEX="$XLEX" # Let the user override the test. |
| 4153 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4155 | for as_dir in $PATH |
| 4156 | do |
| 4157 | IFS=$as_save_IFS |
| 4158 | test -z "$as_dir" && as_dir=. |
| 4159 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4160 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4161 | ac_cv_prog_XLEX="$ac_prog" |
| 4162 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4163 | break 2 |
| 4164 | fi |
| 4165 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4166 | done |
| 4167 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4168 | fi |
| 4169 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4170 | XLEX=$ac_cv_prog_XLEX |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4171 | if test -n "$XLEX"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4172 | echo "$as_me:$LINENO: result: $XLEX" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4173 | echo "${ECHO_T}$XLEX" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4174 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4175 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4176 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4177 | fi |
| 4178 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4179 | test -n "$XLEX" && break |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4180 | done |
| 4181 | test -n "$XLEX" || XLEX="none" |
| 4182 | |
| 4183 | if test "$XLEX" = "none" |
| 4184 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4185 | { { 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] | 4186 | echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;} |
| 4187 | { (exit 1); exit 1; }; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4188 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4189 | |
| 4190 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4191 | for ac_prog in gas as |
| 4192 | do |
| 4193 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4194 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4195 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4196 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4197 | if test "${ac_cv_prog_AS+set}" = set; then |
| 4198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4199 | else |
| 4200 | if test -n "$AS"; then |
| 4201 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 4202 | else |
| 4203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4204 | for as_dir in $PATH |
| 4205 | do |
| 4206 | IFS=$as_save_IFS |
| 4207 | test -z "$as_dir" && as_dir=. |
| 4208 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4209 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4210 | ac_cv_prog_AS="$ac_tool_prefix$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4211 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4212 | break 2 |
| 4213 | fi |
| 4214 | done |
| 4215 | done |
| 4216 | |
| 4217 | fi |
| 4218 | fi |
| 4219 | AS=$ac_cv_prog_AS |
| 4220 | if test -n "$AS"; then |
| 4221 | echo "$as_me:$LINENO: result: $AS" >&5 |
| 4222 | echo "${ECHO_T}$AS" >&6 |
| 4223 | else |
| 4224 | echo "$as_me:$LINENO: result: no" >&5 |
| 4225 | echo "${ECHO_T}no" >&6 |
| 4226 | fi |
| 4227 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4228 | test -n "$AS" && break |
| 4229 | done |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4230 | fi |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4231 | if test -z "$AS"; then |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4232 | ac_ct_AS=$AS |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4233 | for ac_prog in gas as |
| 4234 | do |
| 4235 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4236 | set dummy $ac_prog; ac_word=$2 |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4237 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4238 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4239 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
| 4240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4241 | else |
| 4242 | if test -n "$ac_ct_AS"; then |
| 4243 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 4244 | else |
| 4245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4246 | for as_dir in $PATH |
| 4247 | do |
| 4248 | IFS=$as_save_IFS |
| 4249 | test -z "$as_dir" && as_dir=. |
| 4250 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4251 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4252 | ac_cv_prog_ac_ct_AS="$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4253 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4254 | break 2 |
| 4255 | fi |
| 4256 | done |
| 4257 | done |
| 4258 | |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4259 | fi |
| 4260 | fi |
| 4261 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 4262 | if test -n "$ac_ct_AS"; then |
| 4263 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
| 4264 | echo "${ECHO_T}$ac_ct_AS" >&6 |
| 4265 | else |
| 4266 | echo "$as_me:$LINENO: result: no" >&5 |
| 4267 | echo "${ECHO_T}no" >&6 |
| 4268 | fi |
| 4269 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4270 | test -n "$ac_ct_AS" && break |
| 4271 | done |
| 4272 | test -n "$ac_ct_AS" || ac_ct_AS="as" |
| 4273 | |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4274 | AS=$ac_ct_AS |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4275 | fi |
| 4276 | |
| 4277 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 4278 | # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. |
| 4279 | set dummy ${ac_tool_prefix}ld; ac_word=$2 |
| 4280 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4281 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4282 | if test "${ac_cv_prog_LD+set}" = set; then |
| 4283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4284 | else |
| 4285 | if test -n "$LD"; then |
| 4286 | ac_cv_prog_LD="$LD" # Let the user override the test. |
| 4287 | else |
| 4288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4289 | for as_dir in $PATH |
| 4290 | do |
| 4291 | IFS=$as_save_IFS |
| 4292 | test -z "$as_dir" && as_dir=. |
| 4293 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4294 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4295 | ac_cv_prog_LD="${ac_tool_prefix}ld" |
| 4296 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4297 | break 2 |
| 4298 | fi |
| 4299 | done |
| 4300 | done |
| 4301 | |
| 4302 | fi |
| 4303 | fi |
| 4304 | LD=$ac_cv_prog_LD |
| 4305 | if test -n "$LD"; then |
| 4306 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 4307 | echo "${ECHO_T}$LD" >&6 |
| 4308 | else |
| 4309 | echo "$as_me:$LINENO: result: no" >&5 |
| 4310 | echo "${ECHO_T}no" >&6 |
| 4311 | fi |
| 4312 | |
| 4313 | fi |
| 4314 | if test -z "$ac_cv_prog_LD"; then |
| 4315 | ac_ct_LD=$LD |
| 4316 | # Extract the first word of "ld", so it can be a program name with args. |
| 4317 | set dummy ld; ac_word=$2 |
| 4318 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4319 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4320 | if test "${ac_cv_prog_ac_ct_LD+set}" = set; then |
| 4321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4322 | else |
| 4323 | if test -n "$ac_ct_LD"; then |
| 4324 | ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. |
| 4325 | else |
| 4326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4327 | for as_dir in $PATH |
| 4328 | do |
| 4329 | IFS=$as_save_IFS |
| 4330 | test -z "$as_dir" && as_dir=. |
| 4331 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4332 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4333 | ac_cv_prog_ac_ct_LD="ld" |
| 4334 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4335 | break 2 |
| 4336 | fi |
| 4337 | done |
| 4338 | done |
| 4339 | |
| 4340 | test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld" |
| 4341 | fi |
| 4342 | fi |
| 4343 | ac_ct_LD=$ac_cv_prog_ac_ct_LD |
| 4344 | if test -n "$ac_ct_LD"; then |
| 4345 | echo "$as_me:$LINENO: result: $ac_ct_LD" >&5 |
| 4346 | echo "${ECHO_T}$ac_ct_LD" >&6 |
| 4347 | else |
| 4348 | echo "$as_me:$LINENO: result: no" >&5 |
| 4349 | echo "${ECHO_T}no" >&6 |
| 4350 | fi |
| 4351 | |
| 4352 | LD=$ac_ct_LD |
| 4353 | else |
| 4354 | LD="$ac_cv_prog_LD" |
| 4355 | fi |
| 4356 | |
| 4357 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4358 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 4359 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 4360 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4361 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4362 | if test "${ac_cv_prog_AR+set}" = set; then |
| 4363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4364 | else |
| 4365 | if test -n "$AR"; then |
| 4366 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4367 | else |
| 4368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4369 | for as_dir in $PATH |
| 4370 | do |
| 4371 | IFS=$as_save_IFS |
| 4372 | test -z "$as_dir" && as_dir=. |
| 4373 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4374 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4375 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 4376 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4377 | break 2 |
| 4378 | fi |
| 4379 | done |
| 4380 | done |
| 4381 | |
| 4382 | fi |
| 4383 | fi |
| 4384 | AR=$ac_cv_prog_AR |
| 4385 | if test -n "$AR"; then |
| 4386 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 4387 | echo "${ECHO_T}$AR" >&6 |
| 4388 | else |
| 4389 | echo "$as_me:$LINENO: result: no" >&5 |
| 4390 | echo "${ECHO_T}no" >&6 |
| 4391 | fi |
| 4392 | |
| 4393 | fi |
| 4394 | if test -z "$ac_cv_prog_AR"; then |
| 4395 | ac_ct_AR=$AR |
| 4396 | # Extract the first word of "ar", so it can be a program name with args. |
| 4397 | set dummy ar; ac_word=$2 |
| 4398 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4399 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4400 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 4401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4402 | else |
| 4403 | if test -n "$ac_ct_AR"; then |
| 4404 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4405 | else |
| 4406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4407 | for as_dir in $PATH |
| 4408 | do |
| 4409 | IFS=$as_save_IFS |
| 4410 | test -z "$as_dir" && as_dir=. |
| 4411 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4412 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4413 | ac_cv_prog_ac_ct_AR="ar" |
| 4414 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4415 | break 2 |
| 4416 | fi |
| 4417 | done |
| 4418 | done |
| 4419 | |
| 4420 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" |
| 4421 | fi |
| 4422 | fi |
| 4423 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4424 | if test -n "$ac_ct_AR"; then |
| 4425 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 4426 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 4427 | else |
| 4428 | echo "$as_me:$LINENO: result: no" >&5 |
| 4429 | echo "${ECHO_T}no" >&6 |
| 4430 | fi |
| 4431 | |
| 4432 | AR=$ac_ct_AR |
| 4433 | else |
| 4434 | AR="$ac_cv_prog_AR" |
| 4435 | fi |
| 4436 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4437 | if test -n "$ac_tool_prefix"; then |
| 4438 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4439 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4440 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4442 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4444 | else |
| 4445 | if test -n "$RANLIB"; then |
| 4446 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4447 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4449 | for as_dir in $PATH |
| 4450 | do |
| 4451 | IFS=$as_save_IFS |
| 4452 | test -z "$as_dir" && as_dir=. |
| 4453 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4454 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4455 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4456 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4457 | break 2 |
| 4458 | fi |
| 4459 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4460 | done |
| 4461 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4462 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4463 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4464 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4465 | if test -n "$RANLIB"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4466 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4467 | echo "${ECHO_T}$RANLIB" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4468 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4469 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4470 | echo "${ECHO_T}no" >&6 |
| 4471 | fi |
| 4472 | |
| 4473 | fi |
| 4474 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4475 | ac_ct_RANLIB=$RANLIB |
| 4476 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4477 | set dummy ranlib; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4478 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4479 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4480 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4482 | else |
| 4483 | if test -n "$ac_ct_RANLIB"; then |
| 4484 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4485 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4487 | for as_dir in $PATH |
| 4488 | do |
| 4489 | IFS=$as_save_IFS |
| 4490 | test -z "$as_dir" && as_dir=. |
| 4491 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4492 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4493 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4495 | break 2 |
| 4496 | fi |
| 4497 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4498 | done |
| 4499 | |
| 4500 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 4501 | fi |
| 4502 | fi |
| 4503 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4504 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4505 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4506 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 4507 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4508 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4509 | echo "${ECHO_T}no" >&6 |
| 4510 | fi |
| 4511 | |
| 4512 | RANLIB=$ac_ct_RANLIB |
| 4513 | else |
| 4514 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4515 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4516 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4517 | if test -n "$ac_tool_prefix"; then |
| 4518 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4519 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 4520 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4521 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4522 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 4523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4524 | else |
| 4525 | if test -n "$STRIP"; then |
| 4526 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4527 | else |
| 4528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4529 | for as_dir in $PATH |
| 4530 | do |
| 4531 | IFS=$as_save_IFS |
| 4532 | test -z "$as_dir" && as_dir=. |
| 4533 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4534 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4535 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 4536 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4537 | break 2 |
| 4538 | fi |
| 4539 | done |
| 4540 | done |
| 4541 | |
| 4542 | fi |
| 4543 | fi |
| 4544 | STRIP=$ac_cv_prog_STRIP |
| 4545 | if test -n "$STRIP"; then |
| 4546 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 4547 | echo "${ECHO_T}$STRIP" >&6 |
| 4548 | else |
| 4549 | echo "$as_me:$LINENO: result: no" >&5 |
| 4550 | echo "${ECHO_T}no" >&6 |
| 4551 | fi |
| 4552 | |
| 4553 | fi |
| 4554 | if test -z "$ac_cv_prog_STRIP"; then |
| 4555 | ac_ct_STRIP=$STRIP |
| 4556 | # Extract the first word of "strip", so it can be a program name with args. |
| 4557 | set dummy strip; ac_word=$2 |
| 4558 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4559 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4560 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 4561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4562 | else |
| 4563 | if test -n "$ac_ct_STRIP"; then |
| 4564 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4565 | else |
| 4566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4567 | for as_dir in $PATH |
| 4568 | do |
| 4569 | IFS=$as_save_IFS |
| 4570 | test -z "$as_dir" && as_dir=. |
| 4571 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4572 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4573 | ac_cv_prog_ac_ct_STRIP="strip" |
| 4574 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4575 | break 2 |
| 4576 | fi |
| 4577 | done |
| 4578 | done |
| 4579 | |
| 4580 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip" |
| 4581 | fi |
| 4582 | fi |
| 4583 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4584 | if test -n "$ac_ct_STRIP"; then |
| 4585 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 4586 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 4587 | else |
| 4588 | echo "$as_me:$LINENO: result: no" >&5 |
| 4589 | echo "${ECHO_T}no" >&6 |
| 4590 | fi |
| 4591 | |
| 4592 | STRIP=$ac_ct_STRIP |
| 4593 | else |
| 4594 | STRIP="$ac_cv_prog_STRIP" |
| 4595 | fi |
| 4596 | |
| 4597 | if test -n "$ac_tool_prefix"; then |
| 4598 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 4599 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 4600 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4602 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
| 4603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4604 | else |
| 4605 | if test -n "$WINDRES"; then |
| 4606 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 4607 | else |
| 4608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4609 | for as_dir in $PATH |
| 4610 | do |
| 4611 | IFS=$as_save_IFS |
| 4612 | test -z "$as_dir" && as_dir=. |
| 4613 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4614 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4615 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 4616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4617 | break 2 |
| 4618 | fi |
| 4619 | done |
| 4620 | done |
| 4621 | |
| 4622 | fi |
| 4623 | fi |
| 4624 | WINDRES=$ac_cv_prog_WINDRES |
| 4625 | if test -n "$WINDRES"; then |
| 4626 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
| 4627 | echo "${ECHO_T}$WINDRES" >&6 |
| 4628 | else |
| 4629 | echo "$as_me:$LINENO: result: no" >&5 |
| 4630 | echo "${ECHO_T}no" >&6 |
| 4631 | fi |
| 4632 | |
| 4633 | fi |
| 4634 | if test -z "$ac_cv_prog_WINDRES"; then |
| 4635 | ac_ct_WINDRES=$WINDRES |
| 4636 | # Extract the first word of "windres", so it can be a program name with args. |
| 4637 | set dummy windres; ac_word=$2 |
| 4638 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4639 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4640 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
| 4641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4642 | else |
| 4643 | if test -n "$ac_ct_WINDRES"; then |
| 4644 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 4645 | else |
| 4646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4647 | for as_dir in $PATH |
| 4648 | do |
| 4649 | IFS=$as_save_IFS |
| 4650 | test -z "$as_dir" && as_dir=. |
| 4651 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4652 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4653 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 4654 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4655 | break 2 |
| 4656 | fi |
| 4657 | done |
| 4658 | done |
| 4659 | |
| 4660 | test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false" |
| 4661 | fi |
| 4662 | fi |
| 4663 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 4664 | if test -n "$ac_ct_WINDRES"; then |
| 4665 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
| 4666 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 |
| 4667 | else |
| 4668 | echo "$as_me:$LINENO: result: no" >&5 |
| 4669 | echo "${ECHO_T}no" >&6 |
| 4670 | fi |
| 4671 | |
| 4672 | WINDRES=$ac_ct_WINDRES |
| 4673 | else |
| 4674 | WINDRES="$ac_cv_prog_WINDRES" |
| 4675 | fi |
| 4676 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4677 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4678 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4679 | LN_S=$as_ln_s |
| 4680 | if test "$LN_S" = "ln -s"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4681 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4682 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4683 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4684 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4685 | echo "${ECHO_T}no, using $LN_S" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4686 | fi |
| 4687 | |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 4688 | echo "$as_me:$LINENO: checking whether ln works" >&5 |
| 4689 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6 |
| 4690 | rm -f conf$$ conf$$.file |
| 4691 | echo >conf$$.file |
| 4692 | if ln conf$$.file conf$$ 2>/dev/null; then |
| 4693 | LN=ln |
| 4694 | |
| 4695 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4696 | echo "${ECHO_T}yes" >&6 |
| 4697 | else |
| 4698 | LN="cp -p" |
| 4699 | |
| 4700 | echo "$as_me:$LINENO: result: no, using $LN" >&5 |
| 4701 | echo "${ECHO_T}no, using $LN" >&6 |
| 4702 | fi |
| 4703 | rm -f conf$$ conf$$.file |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4704 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 4705 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4706 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4708 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 4709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4710 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4711 | case $LDCONFIG in |
| 4712 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4713 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 4714 | ;; |
| 4715 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bill Medland | 91372b3 | 2002-04-20 21:00:42 +0000 | [diff] [blame] | 4717 | for as_dir in /sbin /usr/sbin $PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4718 | do |
| 4719 | IFS=$as_save_IFS |
| 4720 | test -z "$as_dir" && as_dir=. |
| 4721 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4722 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4723 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4724 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4725 | break 2 |
| 4726 | fi |
| 4727 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4728 | done |
| 4729 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 4730 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4731 | ;; |
| 4732 | esac |
| 4733 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4734 | LDCONFIG=$ac_cv_path_LDCONFIG |
| 4735 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4736 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4737 | echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4738 | echo "${ECHO_T}$LDCONFIG" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4739 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4740 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4741 | echo "${ECHO_T}no" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4742 | fi |
| 4743 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4744 | # Find a good install program. We prefer a C program (faster), |
| 4745 | # so one script is as good as another. But avoid the broken or |
| 4746 | # incompatible versions: |
| 4747 | # SysV /etc/install, /usr/sbin/install |
| 4748 | # SunOS /usr/etc/install |
| 4749 | # IRIX /sbin/install |
| 4750 | # AIX /bin/install |
| 4751 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4752 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4753 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4754 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4755 | # ./install, which can be erroneously created by make from ./install.sh. |
| 4756 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4757 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 4758 | if test -z "$INSTALL"; then |
| 4759 | if test "${ac_cv_path_install+set}" = set; then |
| 4760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4761 | else |
| 4762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4763 | for as_dir in $PATH |
| 4764 | do |
| 4765 | IFS=$as_save_IFS |
| 4766 | test -z "$as_dir" && as_dir=. |
| 4767 | # Account for people who put trailing slashes in PATH elements. |
| 4768 | case $as_dir/ in |
| 4769 | ./ | .// | /cC/* | \ |
| 4770 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4771 | /usr/ucb/* ) ;; |
| 4772 | *) |
| 4773 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4774 | # Don't use installbsd from OSF since it installs stuff as root |
| 4775 | # by default. |
| 4776 | for ac_prog in ginstall scoinst install; do |
| 4777 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4778 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 4779 | if test $ac_prog = install && |
| 4780 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4781 | # AIX install. It has an incompatible calling convention. |
| 4782 | : |
| 4783 | elif test $ac_prog = install && |
| 4784 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4785 | # program-specific install script used by HP pwplus--don't use. |
| 4786 | : |
| 4787 | else |
| 4788 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4789 | break 3 |
| 4790 | fi |
| 4791 | fi |
| 4792 | done |
| 4793 | done |
| 4794 | ;; |
| 4795 | esac |
| 4796 | done |
| 4797 | |
| 4798 | |
| 4799 | fi |
| 4800 | if test "${ac_cv_path_install+set}" = set; then |
| 4801 | INSTALL=$ac_cv_path_install |
| 4802 | else |
| 4803 | # As a last resort, use the slow shell script. We don't cache a |
| 4804 | # path for INSTALL within a source directory, because that will |
| 4805 | # break other packages using the cache if that directory is |
| 4806 | # removed, or if the path is relative. |
| 4807 | INSTALL=$ac_install_sh |
| 4808 | fi |
| 4809 | fi |
| 4810 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4811 | echo "${ECHO_T}$INSTALL" >&6 |
| 4812 | |
| 4813 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4814 | # It thinks the first close brace ends the variable substitution. |
| 4815 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4816 | |
| 4817 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4818 | |
| 4819 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4820 | |
| 4821 | case "$INSTALL" in |
Alexandre Julliard | 8418d8f | 2002-12-24 02:39:47 +0000 | [diff] [blame] | 4822 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4823 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 4824 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4825 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4826 | for ac_prog in lclint lint |
| 4827 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4828 | # 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] | 4829 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4830 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4831 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4832 | if test "${ac_cv_prog_LINT+set}" = set; then |
| 4833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4834 | else |
| 4835 | if test -n "$LINT"; then |
| 4836 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 4837 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4839 | for as_dir in $PATH |
| 4840 | do |
| 4841 | IFS=$as_save_IFS |
| 4842 | test -z "$as_dir" && as_dir=. |
| 4843 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4844 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4845 | ac_cv_prog_LINT="$ac_prog" |
| 4846 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4847 | break 2 |
| 4848 | fi |
| 4849 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4850 | done |
| 4851 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4852 | fi |
| 4853 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4854 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4855 | if test -n "$LINT"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4856 | echo "$as_me:$LINENO: result: $LINT" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4857 | echo "${ECHO_T}$LINT" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4858 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4859 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4860 | echo "${ECHO_T}no" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4861 | fi |
| 4862 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4863 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4864 | done |
| 4865 | |
| 4866 | if test "$LINT" = "lint" |
| 4867 | then |
| 4868 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 4869 | fi |
| 4870 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4871 | |
| 4872 | |
Vincent Béron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame] | 4873 | for ac_prog in docbook2html db2html |
| 4874 | do |
| 4875 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4876 | set dummy $ac_prog; ac_word=$2 |
| 4877 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4878 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4879 | if test "${ac_cv_prog_DB2HTML+set}" = set; then |
| 4880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4881 | else |
| 4882 | if test -n "$DB2HTML"; then |
| 4883 | ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test. |
| 4884 | else |
| 4885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4886 | for as_dir in $PATH |
| 4887 | do |
| 4888 | IFS=$as_save_IFS |
| 4889 | test -z "$as_dir" && as_dir=. |
| 4890 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4891 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4892 | ac_cv_prog_DB2HTML="$ac_prog" |
| 4893 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4894 | break 2 |
| 4895 | fi |
| 4896 | done |
| 4897 | done |
| 4898 | |
| 4899 | fi |
| 4900 | fi |
| 4901 | DB2HTML=$ac_cv_prog_DB2HTML |
| 4902 | if test -n "$DB2HTML"; then |
| 4903 | echo "$as_me:$LINENO: result: $DB2HTML" >&5 |
| 4904 | echo "${ECHO_T}$DB2HTML" >&6 |
| 4905 | else |
| 4906 | echo "$as_me:$LINENO: result: no" >&5 |
| 4907 | echo "${ECHO_T}no" >&6 |
| 4908 | fi |
| 4909 | |
| 4910 | test -n "$DB2HTML" && break |
| 4911 | done |
| 4912 | test -n "$DB2HTML" || DB2HTML="false" |
| 4913 | |
| 4914 | |
| 4915 | |
| 4916 | for ac_prog in docbook2pdf db2pdf |
| 4917 | do |
| 4918 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4919 | set dummy $ac_prog; ac_word=$2 |
| 4920 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4921 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4922 | if test "${ac_cv_prog_DB2PDF+set}" = set; then |
| 4923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4924 | else |
| 4925 | if test -n "$DB2PDF"; then |
| 4926 | ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test. |
| 4927 | else |
| 4928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4929 | for as_dir in $PATH |
| 4930 | do |
| 4931 | IFS=$as_save_IFS |
| 4932 | test -z "$as_dir" && as_dir=. |
| 4933 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4934 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4935 | ac_cv_prog_DB2PDF="$ac_prog" |
| 4936 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4937 | break 2 |
| 4938 | fi |
| 4939 | done |
| 4940 | done |
| 4941 | |
| 4942 | fi |
| 4943 | fi |
| 4944 | DB2PDF=$ac_cv_prog_DB2PDF |
| 4945 | if test -n "$DB2PDF"; then |
| 4946 | echo "$as_me:$LINENO: result: $DB2PDF" >&5 |
| 4947 | echo "${ECHO_T}$DB2PDF" >&6 |
| 4948 | else |
| 4949 | echo "$as_me:$LINENO: result: no" >&5 |
| 4950 | echo "${ECHO_T}no" >&6 |
| 4951 | fi |
| 4952 | |
| 4953 | test -n "$DB2PDF" && break |
| 4954 | done |
| 4955 | test -n "$DB2PDF" || DB2PDF="false" |
| 4956 | |
| 4957 | |
| 4958 | |
| 4959 | for ac_prog in docbook2ps db2ps |
| 4960 | do |
| 4961 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4962 | set dummy $ac_prog; ac_word=$2 |
| 4963 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4965 | if test "${ac_cv_prog_DB2PS+set}" = set; then |
| 4966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4967 | else |
| 4968 | if test -n "$DB2PS"; then |
| 4969 | ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test. |
| 4970 | else |
| 4971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4972 | for as_dir in $PATH |
| 4973 | do |
| 4974 | IFS=$as_save_IFS |
| 4975 | test -z "$as_dir" && as_dir=. |
| 4976 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4977 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4978 | ac_cv_prog_DB2PS="$ac_prog" |
| 4979 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4980 | break 2 |
| 4981 | fi |
| 4982 | done |
| 4983 | done |
| 4984 | |
| 4985 | fi |
| 4986 | fi |
| 4987 | DB2PS=$ac_cv_prog_DB2PS |
| 4988 | if test -n "$DB2PS"; then |
| 4989 | echo "$as_me:$LINENO: result: $DB2PS" >&5 |
| 4990 | echo "${ECHO_T}$DB2PS" >&6 |
| 4991 | else |
| 4992 | echo "$as_me:$LINENO: result: no" >&5 |
| 4993 | echo "${ECHO_T}no" >&6 |
| 4994 | fi |
| 4995 | |
| 4996 | test -n "$DB2PS" && break |
| 4997 | done |
| 4998 | test -n "$DB2PS" || DB2PS="false" |
| 4999 | |
| 5000 | |
| 5001 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5002 | |
| 5003 | |
| 5004 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5005 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
| 5006 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
| 5007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | 79e44ab | 2000-12-05 04:13:36 +0000 | [diff] [blame] | 5008 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5009 | ac_check_lib_save_LIBS=$LIBS |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5010 | LIBS="-lm $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5011 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5012 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5013 | /* confdefs.h. */ |
| 5014 | _ACEOF |
| 5015 | cat confdefs.h >>conftest.$ac_ext |
| 5016 | cat >>conftest.$ac_ext <<_ACEOF |
| 5017 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5018 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5019 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5020 | #ifdef __cplusplus |
| 5021 | extern "C" |
| 5022 | #endif |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5023 | /* 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] | 5024 | builtin and then its argument prototype would still apply. */ |
| 5025 | char sqrt (); |
| 5026 | int |
| 5027 | main () |
| 5028 | { |
| 5029 | sqrt (); |
| 5030 | ; |
| 5031 | return 0; |
| 5032 | } |
| 5033 | _ACEOF |
| 5034 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5036 | (eval $ac_link) 2>&5 |
| 5037 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5039 | (exit $ac_status); } && |
| 5040 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5042 | (eval $ac_try) 2>&5 |
| 5043 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5045 | (exit $ac_status); }; }; then |
| 5046 | ac_cv_lib_m_sqrt=yes |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5047 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5048 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5050 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5051 | ac_cv_lib_m_sqrt=no |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5052 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5053 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5054 | LIBS=$ac_check_lib_save_LIBS |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5055 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5056 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5057 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
| 5058 | if test $ac_cv_lib_m_sqrt = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5059 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5060 | #define HAVE_LIBM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5061 | _ACEOF |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5062 | |
| 5063 | LIBS="-lm $LIBS" |
| 5064 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5065 | fi |
| 5066 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5067 | |
| 5068 | echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5069 | echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6 |
| 5070 | if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then |
| 5071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5072 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5073 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5074 | LIBS="-li386 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5075 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5076 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5077 | /* confdefs.h. */ |
| 5078 | _ACEOF |
| 5079 | cat confdefs.h >>conftest.$ac_ext |
| 5080 | cat >>conftest.$ac_ext <<_ACEOF |
| 5081 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5082 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 5083 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5084 | #ifdef __cplusplus |
| 5085 | extern "C" |
| 5086 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5087 | /* 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] | 5088 | builtin and then its argument prototype would still apply. */ |
| 5089 | char i386_set_ldt (); |
| 5090 | int |
| 5091 | main () |
| 5092 | { |
| 5093 | i386_set_ldt (); |
| 5094 | ; |
| 5095 | return 0; |
| 5096 | } |
| 5097 | _ACEOF |
| 5098 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5100 | (eval $ac_link) 2>&5 |
| 5101 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5103 | (exit $ac_status); } && |
| 5104 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5106 | (eval $ac_try) 2>&5 |
| 5107 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5109 | (exit $ac_status); }; }; then |
| 5110 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5111 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5112 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5114 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5115 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5116 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5117 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5118 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5119 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5120 | 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] | 5121 | echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6 |
| 5122 | if test $ac_cv_lib_i386_i386_set_ldt = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5123 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5124 | #define HAVE_LIBI386 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5125 | _ACEOF |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5126 | |
| 5127 | LIBS="-li386 $LIBS" |
| 5128 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5129 | fi |
| 5130 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5131 | |
| 5132 | echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5133 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
| 5134 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
| 5135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5136 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5137 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5138 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5139 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5140 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5141 | /* confdefs.h. */ |
| 5142 | _ACEOF |
| 5143 | cat confdefs.h >>conftest.$ac_ext |
| 5144 | cat >>conftest.$ac_ext <<_ACEOF |
| 5145 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5146 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5147 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5148 | #ifdef __cplusplus |
| 5149 | extern "C" |
| 5150 | #endif |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5151 | /* 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] | 5152 | builtin and then its argument prototype would still apply. */ |
| 5153 | char _oss_ioctl (); |
| 5154 | int |
| 5155 | main () |
| 5156 | { |
| 5157 | _oss_ioctl (); |
| 5158 | ; |
| 5159 | return 0; |
| 5160 | } |
| 5161 | _ACEOF |
| 5162 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5164 | (eval $ac_link) 2>&5 |
| 5165 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5167 | (exit $ac_status); } && |
| 5168 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5170 | (eval $ac_try) 2>&5 |
| 5171 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5173 | (exit $ac_status); }; }; then |
| 5174 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5175 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5176 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5178 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5179 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5180 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5181 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5182 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5183 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5184 | echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5185 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
| 5186 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5187 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5188 | #define HAVE_LIBOSSAUDIO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5189 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5190 | |
| 5191 | LIBS="-lossaudio $LIBS" |
| 5192 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5193 | fi |
| 5194 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5195 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5196 | for ac_func in iswalnum |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5197 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5198 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5199 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5200 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5201 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5203 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5204 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5205 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5206 | /* confdefs.h. */ |
| 5207 | _ACEOF |
| 5208 | cat confdefs.h >>conftest.$ac_ext |
| 5209 | cat >>conftest.$ac_ext <<_ACEOF |
| 5210 | /* end confdefs.h. */ |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5211 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5212 | which can conflict with char $ac_func (); below. |
| 5213 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5214 | <limits.h> exists even on freestanding compilers. */ |
| 5215 | #ifdef __STDC__ |
| 5216 | # include <limits.h> |
| 5217 | #else |
| 5218 | # include <assert.h> |
| 5219 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5220 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5221 | #ifdef __cplusplus |
| 5222 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5223 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5224 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5225 | /* 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] | 5226 | builtin and then its argument prototype would still apply. */ |
| 5227 | char $ac_func (); |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5228 | /* The GNU C library defines this for functions which it implements |
| 5229 | to always fail with ENOSYS. Some functions are actually named |
| 5230 | something starting with __ and the normal name is an alias. */ |
| 5231 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5232 | choke me |
| 5233 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5234 | char (*f) () = $ac_func; |
| 5235 | #endif |
| 5236 | #ifdef __cplusplus |
| 5237 | } |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5238 | #endif |
| 5239 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5240 | int |
| 5241 | main () |
| 5242 | { |
| 5243 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5244 | ; |
| 5245 | return 0; |
| 5246 | } |
| 5247 | _ACEOF |
| 5248 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5250 | (eval $ac_link) 2>&5 |
| 5251 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5253 | (exit $ac_status); } && |
| 5254 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5256 | (eval $ac_try) 2>&5 |
| 5257 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5259 | (exit $ac_status); }; }; then |
| 5260 | eval "$as_ac_var=yes" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5261 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5262 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5264 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5265 | eval "$as_ac_var=no" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5266 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5267 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5268 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5269 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5270 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5271 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5272 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5273 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5274 | _ACEOF |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5275 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5276 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5277 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5278 | echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5279 | echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6 |
| 5280 | if test "${ac_cv_lib_w_iswalnum+set}" = set; then |
| 5281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5282 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5283 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5284 | LIBS="-lw $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5285 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5286 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5287 | /* confdefs.h. */ |
| 5288 | _ACEOF |
| 5289 | cat confdefs.h >>conftest.$ac_ext |
| 5290 | cat >>conftest.$ac_ext <<_ACEOF |
| 5291 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5292 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5293 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5294 | #ifdef __cplusplus |
| 5295 | extern "C" |
| 5296 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5297 | /* 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] | 5298 | builtin and then its argument prototype would still apply. */ |
| 5299 | char iswalnum (); |
| 5300 | int |
| 5301 | main () |
| 5302 | { |
| 5303 | iswalnum (); |
| 5304 | ; |
| 5305 | return 0; |
| 5306 | } |
| 5307 | _ACEOF |
| 5308 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5310 | (eval $ac_link) 2>&5 |
| 5311 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5313 | (exit $ac_status); } && |
| 5314 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5316 | (eval $ac_try) 2>&5 |
| 5317 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5319 | (exit $ac_status); }; }; then |
| 5320 | ac_cv_lib_w_iswalnum=yes |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5321 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5322 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5324 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5325 | ac_cv_lib_w_iswalnum=no |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5326 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5327 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5328 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5329 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5330 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5331 | echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6 |
| 5332 | if test $ac_cv_lib_w_iswalnum = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5333 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5334 | #define HAVE_LIBW 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5335 | _ACEOF |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5336 | |
| 5337 | LIBS="-lw $LIBS" |
| 5338 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5339 | fi |
| 5340 | |
| 5341 | fi |
| 5342 | done |
| 5343 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5344 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5345 | for ac_func in gethostbyname |
| 5346 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5347 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5348 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5349 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5350 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5352 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5353 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5354 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5355 | /* confdefs.h. */ |
| 5356 | _ACEOF |
| 5357 | cat confdefs.h >>conftest.$ac_ext |
| 5358 | cat >>conftest.$ac_ext <<_ACEOF |
| 5359 | /* end confdefs.h. */ |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5360 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5361 | which can conflict with char $ac_func (); below. |
| 5362 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5363 | <limits.h> exists even on freestanding compilers. */ |
| 5364 | #ifdef __STDC__ |
| 5365 | # include <limits.h> |
| 5366 | #else |
| 5367 | # include <assert.h> |
| 5368 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5369 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5370 | #ifdef __cplusplus |
| 5371 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5372 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5373 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5374 | /* 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] | 5375 | builtin and then its argument prototype would still apply. */ |
| 5376 | char $ac_func (); |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5377 | /* The GNU C library defines this for functions which it implements |
| 5378 | to always fail with ENOSYS. Some functions are actually named |
| 5379 | something starting with __ and the normal name is an alias. */ |
| 5380 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5381 | choke me |
| 5382 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5383 | char (*f) () = $ac_func; |
| 5384 | #endif |
| 5385 | #ifdef __cplusplus |
| 5386 | } |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5387 | #endif |
| 5388 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5389 | int |
| 5390 | main () |
| 5391 | { |
| 5392 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5393 | ; |
| 5394 | return 0; |
| 5395 | } |
| 5396 | _ACEOF |
| 5397 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5399 | (eval $ac_link) 2>&5 |
| 5400 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5402 | (exit $ac_status); } && |
| 5403 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5405 | (eval $ac_try) 2>&5 |
| 5406 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5408 | (exit $ac_status); }; }; then |
| 5409 | eval "$as_ac_var=yes" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5410 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5411 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5413 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5414 | eval "$as_ac_var=no" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5415 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5416 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5417 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5418 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5419 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5420 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5421 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5422 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5423 | _ACEOF |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5424 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5425 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5426 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5427 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5428 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 5429 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 5430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5431 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5432 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5433 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5434 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5435 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5436 | /* confdefs.h. */ |
| 5437 | _ACEOF |
| 5438 | cat confdefs.h >>conftest.$ac_ext |
| 5439 | cat >>conftest.$ac_ext <<_ACEOF |
| 5440 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5441 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5442 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5443 | #ifdef __cplusplus |
| 5444 | extern "C" |
| 5445 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5446 | /* 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] | 5447 | builtin and then its argument prototype would still apply. */ |
| 5448 | char gethostbyname (); |
| 5449 | int |
| 5450 | main () |
| 5451 | { |
| 5452 | gethostbyname (); |
| 5453 | ; |
| 5454 | return 0; |
| 5455 | } |
| 5456 | _ACEOF |
| 5457 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5459 | (eval $ac_link) 2>&5 |
| 5460 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5462 | (exit $ac_status); } && |
| 5463 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5465 | (eval $ac_try) 2>&5 |
| 5466 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5468 | (exit $ac_status); }; }; then |
| 5469 | ac_cv_lib_nsl_gethostbyname=yes |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5470 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5471 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5473 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5474 | ac_cv_lib_nsl_gethostbyname=no |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5475 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5476 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5477 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5478 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5479 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5480 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 5481 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5482 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5483 | #define HAVE_LIBNSL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5484 | _ACEOF |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5485 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5486 | LIBS="-lnsl $LIBS" |
| 5487 | |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5488 | fi |
| 5489 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5490 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 5491 | done |
| 5492 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5493 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5494 | for ac_func in connect |
| 5495 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5496 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5497 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5498 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5499 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5501 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5502 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5503 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5504 | /* confdefs.h. */ |
| 5505 | _ACEOF |
| 5506 | cat confdefs.h >>conftest.$ac_ext |
| 5507 | cat >>conftest.$ac_ext <<_ACEOF |
| 5508 | /* end confdefs.h. */ |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5509 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5510 | which can conflict with char $ac_func (); below. |
| 5511 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5512 | <limits.h> exists even on freestanding compilers. */ |
| 5513 | #ifdef __STDC__ |
| 5514 | # include <limits.h> |
| 5515 | #else |
| 5516 | # include <assert.h> |
| 5517 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5518 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5519 | #ifdef __cplusplus |
| 5520 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5521 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5522 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5523 | /* 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] | 5524 | builtin and then its argument prototype would still apply. */ |
| 5525 | char $ac_func (); |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5526 | /* The GNU C library defines this for functions which it implements |
| 5527 | to always fail with ENOSYS. Some functions are actually named |
| 5528 | something starting with __ and the normal name is an alias. */ |
| 5529 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5530 | choke me |
| 5531 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5532 | char (*f) () = $ac_func; |
| 5533 | #endif |
| 5534 | #ifdef __cplusplus |
| 5535 | } |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5536 | #endif |
| 5537 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5538 | int |
| 5539 | main () |
| 5540 | { |
| 5541 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5542 | ; |
| 5543 | return 0; |
| 5544 | } |
| 5545 | _ACEOF |
| 5546 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5548 | (eval $ac_link) 2>&5 |
| 5549 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5551 | (exit $ac_status); } && |
| 5552 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5554 | (eval $ac_try) 2>&5 |
| 5555 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5557 | (exit $ac_status); }; }; then |
| 5558 | eval "$as_ac_var=yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5559 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5560 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5562 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5563 | eval "$as_ac_var=no" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5564 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5565 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5566 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5567 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5568 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5569 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5570 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5571 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5572 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5573 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5574 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5575 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5576 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5577 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 5578 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 5579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5580 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5581 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5582 | LIBS="-lsocket $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5583 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5584 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5585 | /* confdefs.h. */ |
| 5586 | _ACEOF |
| 5587 | cat confdefs.h >>conftest.$ac_ext |
| 5588 | cat >>conftest.$ac_ext <<_ACEOF |
| 5589 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5590 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5591 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5592 | #ifdef __cplusplus |
| 5593 | extern "C" |
| 5594 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5595 | /* 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] | 5596 | builtin and then its argument prototype would still apply. */ |
| 5597 | char connect (); |
| 5598 | int |
| 5599 | main () |
| 5600 | { |
| 5601 | connect (); |
| 5602 | ; |
| 5603 | return 0; |
| 5604 | } |
| 5605 | _ACEOF |
| 5606 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5608 | (eval $ac_link) 2>&5 |
| 5609 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5611 | (exit $ac_status); } && |
| 5612 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5614 | (eval $ac_try) 2>&5 |
| 5615 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5617 | (exit $ac_status); }; }; then |
| 5618 | ac_cv_lib_socket_connect=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5619 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5620 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5622 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5623 | ac_cv_lib_socket_connect=no |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5624 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5625 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5626 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5627 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5628 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5629 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 5630 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5631 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5632 | #define HAVE_LIBSOCKET 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5633 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5634 | |
| 5635 | LIBS="-lsocket $LIBS" |
| 5636 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5637 | fi |
| 5638 | |
| 5639 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 5640 | done |
| 5641 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5642 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5643 | for ac_func in inet_aton |
| 5644 | do |
| 5645 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5646 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5647 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5648 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5650 | else |
| 5651 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5652 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5653 | /* confdefs.h. */ |
| 5654 | _ACEOF |
| 5655 | cat confdefs.h >>conftest.$ac_ext |
| 5656 | cat >>conftest.$ac_ext <<_ACEOF |
| 5657 | /* end confdefs.h. */ |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5658 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5659 | which can conflict with char $ac_func (); below. |
| 5660 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5661 | <limits.h> exists even on freestanding compilers. */ |
| 5662 | #ifdef __STDC__ |
| 5663 | # include <limits.h> |
| 5664 | #else |
| 5665 | # include <assert.h> |
| 5666 | #endif |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5667 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5668 | #ifdef __cplusplus |
| 5669 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5670 | { |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5671 | #endif |
| 5672 | /* We use char because int might match the return type of a gcc2 |
| 5673 | builtin and then its argument prototype would still apply. */ |
| 5674 | char $ac_func (); |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5675 | /* The GNU C library defines this for functions which it implements |
| 5676 | to always fail with ENOSYS. Some functions are actually named |
| 5677 | something starting with __ and the normal name is an alias. */ |
| 5678 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5679 | choke me |
| 5680 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5681 | char (*f) () = $ac_func; |
| 5682 | #endif |
| 5683 | #ifdef __cplusplus |
| 5684 | } |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5685 | #endif |
| 5686 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5687 | int |
| 5688 | main () |
| 5689 | { |
| 5690 | return f != $ac_func; |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5691 | ; |
| 5692 | return 0; |
| 5693 | } |
| 5694 | _ACEOF |
| 5695 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5697 | (eval $ac_link) 2>&5 |
| 5698 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5700 | (exit $ac_status); } && |
| 5701 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5703 | (eval $ac_try) 2>&5 |
| 5704 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5706 | (exit $ac_status); }; }; then |
| 5707 | eval "$as_ac_var=yes" |
| 5708 | else |
| 5709 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5711 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5712 | eval "$as_ac_var=no" |
| 5713 | fi |
| 5714 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5715 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5716 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5717 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5718 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5719 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5720 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5721 | _ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5722 | |
| 5723 | else |
| 5724 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5725 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5726 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 5727 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 5728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5729 | else |
| 5730 | ac_check_lib_save_LIBS=$LIBS |
| 5731 | LIBS="-lresolv $LIBS" |
| 5732 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5733 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5734 | /* confdefs.h. */ |
| 5735 | _ACEOF |
| 5736 | cat confdefs.h >>conftest.$ac_ext |
| 5737 | cat >>conftest.$ac_ext <<_ACEOF |
| 5738 | /* end confdefs.h. */ |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5739 | |
| 5740 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5741 | #ifdef __cplusplus |
| 5742 | extern "C" |
| 5743 | #endif |
| 5744 | /* We use char because int might match the return type of a gcc2 |
| 5745 | builtin and then its argument prototype would still apply. */ |
| 5746 | char inet_aton (); |
| 5747 | int |
| 5748 | main () |
| 5749 | { |
| 5750 | inet_aton (); |
| 5751 | ; |
| 5752 | return 0; |
| 5753 | } |
| 5754 | _ACEOF |
| 5755 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5757 | (eval $ac_link) 2>&5 |
| 5758 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5760 | (exit $ac_status); } && |
| 5761 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5763 | (eval $ac_try) 2>&5 |
| 5764 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5766 | (exit $ac_status); }; }; then |
| 5767 | ac_cv_lib_resolv_inet_aton=yes |
| 5768 | else |
| 5769 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5771 | |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5772 | ac_cv_lib_resolv_inet_aton=no |
| 5773 | fi |
| 5774 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5775 | LIBS=$ac_check_lib_save_LIBS |
| 5776 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5777 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5778 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 5779 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5780 | cat >>confdefs.h <<_ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5781 | #define HAVE_LIBRESOLV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5782 | _ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5783 | |
| 5784 | LIBS="-lresolv $LIBS" |
| 5785 | |
| 5786 | fi |
| 5787 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5788 | fi |
| 5789 | done |
| 5790 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5791 | |
| 5792 | echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5793 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
| 5794 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 5795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5796 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5797 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5798 | LIBS="-lxpg4 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5799 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5800 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5801 | /* confdefs.h. */ |
| 5802 | _ACEOF |
| 5803 | cat confdefs.h >>conftest.$ac_ext |
| 5804 | cat >>conftest.$ac_ext <<_ACEOF |
| 5805 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5806 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5807 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5808 | #ifdef __cplusplus |
| 5809 | extern "C" |
| 5810 | #endif |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5811 | /* 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] | 5812 | builtin and then its argument prototype would still apply. */ |
| 5813 | char _xpg4_setrunelocale (); |
| 5814 | int |
| 5815 | main () |
| 5816 | { |
| 5817 | _xpg4_setrunelocale (); |
| 5818 | ; |
| 5819 | return 0; |
| 5820 | } |
| 5821 | _ACEOF |
| 5822 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5824 | (eval $ac_link) 2>&5 |
| 5825 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5827 | (exit $ac_status); } && |
| 5828 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5830 | (eval $ac_try) 2>&5 |
| 5831 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5833 | (exit $ac_status); }; }; then |
| 5834 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5835 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5836 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5838 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5839 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5840 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5841 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5842 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5843 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5844 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5845 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 |
| 5846 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5847 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5848 | #define HAVE_LIBXPG4 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5849 | _ACEOF |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5850 | |
| 5851 | LIBS="-lxpg4 $LIBS" |
| 5852 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5853 | fi |
| 5854 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5855 | |
| 5856 | echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5857 | echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6 |
| 5858 | if test "${ac_cv_lib_mmap_mmap+set}" = set; then |
| 5859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5860 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5861 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5862 | LIBS="-lmmap $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5863 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5864 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5865 | /* confdefs.h. */ |
| 5866 | _ACEOF |
| 5867 | cat confdefs.h >>conftest.$ac_ext |
| 5868 | cat >>conftest.$ac_ext <<_ACEOF |
| 5869 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5870 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5871 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5872 | #ifdef __cplusplus |
| 5873 | extern "C" |
| 5874 | #endif |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5875 | /* 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] | 5876 | builtin and then its argument prototype would still apply. */ |
| 5877 | char mmap (); |
| 5878 | int |
| 5879 | main () |
| 5880 | { |
| 5881 | mmap (); |
| 5882 | ; |
| 5883 | return 0; |
| 5884 | } |
| 5885 | _ACEOF |
| 5886 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5888 | (eval $ac_link) 2>&5 |
| 5889 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5891 | (exit $ac_status); } && |
| 5892 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5894 | (eval $ac_try) 2>&5 |
| 5895 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5897 | (exit $ac_status); }; }; then |
| 5898 | ac_cv_lib_mmap_mmap=yes |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5899 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5900 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5902 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5903 | ac_cv_lib_mmap_mmap=no |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5904 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5905 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5906 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5907 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5908 | echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5909 | echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6 |
| 5910 | if test $ac_cv_lib_mmap_mmap = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5911 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5912 | #define HAVE_LIBMMAP 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5913 | _ACEOF |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5914 | |
| 5915 | LIBS="-lmmap $LIBS" |
| 5916 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5917 | fi |
| 5918 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5919 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 5920 | JPEGLIB="" |
Alexandre Julliard | 562089b | 2001-12-31 22:28:35 +0000 | [diff] [blame] | 5921 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 5922 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 5923 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 5924 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 5925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5926 | else |
| 5927 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 5928 | then ac_cv_prog_egrep='grep -E' |
| 5929 | else ac_cv_prog_egrep='egrep' |
| 5930 | fi |
| 5931 | fi |
| 5932 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 5933 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 5934 | EGREP=$ac_cv_prog_egrep |
| 5935 | |
| 5936 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5937 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5938 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 5939 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5941 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5942 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5943 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5944 | /* confdefs.h. */ |
| 5945 | _ACEOF |
| 5946 | cat confdefs.h >>conftest.$ac_ext |
| 5947 | cat >>conftest.$ac_ext <<_ACEOF |
| 5948 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5949 | #include <stdlib.h> |
| 5950 | #include <stdarg.h> |
| 5951 | #include <string.h> |
| 5952 | #include <float.h> |
| 5953 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5954 | int |
| 5955 | main () |
| 5956 | { |
| 5957 | |
| 5958 | ; |
| 5959 | return 0; |
| 5960 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5961 | _ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5962 | rm -f conftest.$ac_objext |
| 5963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5964 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5965 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5967 | (exit $ac_status); } && |
| 5968 | { ac_try='test -s conftest.$ac_objext' |
| 5969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5970 | (eval $ac_try) 2>&5 |
| 5971 | ac_status=$? |
| 5972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5973 | (exit $ac_status); }; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5974 | ac_cv_header_stdc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5975 | else |
| 5976 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5978 | |
| 5979 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5980 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5981 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5982 | |
| 5983 | if test $ac_cv_header_stdc = yes; then |
| 5984 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5985 | cat >conftest.$ac_ext <<_ACEOF |
| 5986 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5987 | /* confdefs.h. */ |
| 5988 | _ACEOF |
| 5989 | cat confdefs.h >>conftest.$ac_ext |
| 5990 | cat >>conftest.$ac_ext <<_ACEOF |
| 5991 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5992 | #include <string.h> |
| 5993 | |
| 5994 | _ACEOF |
| 5995 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 5996 | $EGREP "memchr" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5997 | : |
| 5998 | else |
| 5999 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 6000 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6001 | rm -f conftest* |
| 6002 | |
| 6003 | fi |
| 6004 | |
| 6005 | if test $ac_cv_header_stdc = yes; then |
| 6006 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6007 | cat >conftest.$ac_ext <<_ACEOF |
| 6008 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6009 | /* confdefs.h. */ |
| 6010 | _ACEOF |
| 6011 | cat confdefs.h >>conftest.$ac_ext |
| 6012 | cat >>conftest.$ac_ext <<_ACEOF |
| 6013 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6014 | #include <stdlib.h> |
| 6015 | |
| 6016 | _ACEOF |
| 6017 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 6018 | $EGREP "free" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6019 | : |
| 6020 | else |
| 6021 | ac_cv_header_stdc=no |
| 6022 | fi |
| 6023 | rm -f conftest* |
| 6024 | |
| 6025 | fi |
| 6026 | |
| 6027 | if test $ac_cv_header_stdc = yes; then |
| 6028 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6029 | if test "$cross_compiling" = yes; then |
| 6030 | : |
| 6031 | else |
| 6032 | cat >conftest.$ac_ext <<_ACEOF |
| 6033 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6034 | /* confdefs.h. */ |
| 6035 | _ACEOF |
| 6036 | cat confdefs.h >>conftest.$ac_ext |
| 6037 | cat >>conftest.$ac_ext <<_ACEOF |
| 6038 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6039 | #include <ctype.h> |
| 6040 | #if ((' ' & 0x0FF) == 0x020) |
| 6041 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6042 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6043 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6044 | # define ISLOWER(c) \ |
| 6045 | (('a' <= (c) && (c) <= 'i') \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6046 | || ('j' <= (c) && (c) <= 'r') \ |
| 6047 | || ('s' <= (c) && (c) <= 'z')) |
| 6048 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6049 | #endif |
| 6050 | |
| 6051 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6052 | int |
| 6053 | main () |
| 6054 | { |
| 6055 | int i; |
| 6056 | for (i = 0; i < 256; i++) |
| 6057 | if (XOR (islower (i), ISLOWER (i)) |
| 6058 | || toupper (i) != TOUPPER (i)) |
| 6059 | exit(2); |
| 6060 | exit (0); |
| 6061 | } |
| 6062 | _ACEOF |
| 6063 | rm -f conftest$ac_exeext |
| 6064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6065 | (eval $ac_link) 2>&5 |
| 6066 | ac_status=$? |
| 6067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6068 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6070 | (eval $ac_try) 2>&5 |
| 6071 | ac_status=$? |
| 6072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6073 | (exit $ac_status); }; }; then |
| 6074 | : |
| 6075 | else |
| 6076 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6077 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6079 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6080 | ( exit $ac_status ) |
| 6081 | ac_cv_header_stdc=no |
| 6082 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 6083 | rm -f core 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] | 6084 | fi |
| 6085 | fi |
| 6086 | fi |
| 6087 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 6088 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 6089 | if test $ac_cv_header_stdc = yes; then |
| 6090 | |
| 6091 | cat >>confdefs.h <<\_ACEOF |
| 6092 | #define STDC_HEADERS 1 |
| 6093 | _ACEOF |
| 6094 | |
| 6095 | fi |
| 6096 | |
| 6097 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6098 | |
| 6099 | |
| 6100 | |
| 6101 | |
| 6102 | |
| 6103 | |
| 6104 | |
| 6105 | |
| 6106 | |
| 6107 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6108 | inttypes.h stdint.h unistd.h |
| 6109 | do |
| 6110 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6111 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6112 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6113 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6115 | else |
| 6116 | cat >conftest.$ac_ext <<_ACEOF |
| 6117 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6118 | /* confdefs.h. */ |
| 6119 | _ACEOF |
| 6120 | cat confdefs.h >>conftest.$ac_ext |
| 6121 | cat >>conftest.$ac_ext <<_ACEOF |
| 6122 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6123 | $ac_includes_default |
| 6124 | |
| 6125 | #include <$ac_header> |
| 6126 | _ACEOF |
| 6127 | rm -f conftest.$ac_objext |
| 6128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6129 | (eval $ac_compile) 2>&5 |
| 6130 | ac_status=$? |
| 6131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6132 | (exit $ac_status); } && |
| 6133 | { ac_try='test -s conftest.$ac_objext' |
| 6134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6135 | (eval $ac_try) 2>&5 |
| 6136 | ac_status=$? |
| 6137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6138 | (exit $ac_status); }; }; then |
| 6139 | eval "$as_ac_Header=yes" |
| 6140 | else |
| 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 | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6144 | eval "$as_ac_Header=no" |
| 6145 | fi |
| 6146 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6147 | fi |
| 6148 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6149 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6150 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6151 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6152 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6153 | _ACEOF |
| 6154 | |
| 6155 | fi |
| 6156 | |
| 6157 | done |
| 6158 | |
| 6159 | |
| 6160 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6161 | for ac_header in jpeglib.h |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6162 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6163 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6164 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6165 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6166 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6167 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6169 | fi |
| 6170 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6171 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6172 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6173 | # Is the header compilable? |
| 6174 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6175 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6176 | cat >conftest.$ac_ext <<_ACEOF |
| 6177 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6178 | /* confdefs.h. */ |
| 6179 | _ACEOF |
| 6180 | cat confdefs.h >>conftest.$ac_ext |
| 6181 | cat >>conftest.$ac_ext <<_ACEOF |
| 6182 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6183 | $ac_includes_default |
| 6184 | #include <$ac_header> |
| 6185 | _ACEOF |
| 6186 | rm -f conftest.$ac_objext |
| 6187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6188 | (eval $ac_compile) 2>&5 |
| 6189 | ac_status=$? |
| 6190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6191 | (exit $ac_status); } && |
| 6192 | { ac_try='test -s conftest.$ac_objext' |
| 6193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6194 | (eval $ac_try) 2>&5 |
| 6195 | ac_status=$? |
| 6196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6197 | (exit $ac_status); }; }; then |
| 6198 | ac_header_compiler=yes |
| 6199 | else |
| 6200 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6202 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6203 | ac_header_compiler=no |
| 6204 | fi |
| 6205 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6206 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6207 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6208 | |
| 6209 | # Is the header present? |
| 6210 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6211 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6212 | cat >conftest.$ac_ext <<_ACEOF |
| 6213 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6214 | /* confdefs.h. */ |
| 6215 | _ACEOF |
| 6216 | cat confdefs.h >>conftest.$ac_ext |
| 6217 | cat >>conftest.$ac_ext <<_ACEOF |
| 6218 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6219 | #include <$ac_header> |
| 6220 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6221 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6222 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6223 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 6224 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6225 | rm -f conftest.er1 |
| 6226 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6228 | (exit $ac_status); } >/dev/null; then |
| 6229 | if test -s conftest.err; then |
| 6230 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6231 | else |
| 6232 | ac_cpp_err= |
| 6233 | fi |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6234 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6235 | ac_cpp_err=yes |
| 6236 | fi |
| 6237 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6238 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6239 | else |
| 6240 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6242 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6243 | ac_header_preproc=no |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6244 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6245 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6246 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6247 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6248 | |
| 6249 | # So? What about this header? |
| 6250 | case $ac_header_compiler:$ac_header_preproc in |
| 6251 | yes:no ) |
| 6252 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6253 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6254 | { 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] | 6255 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6256 | ( |
| 6257 | cat <<\_ASBOX |
| 6258 | ## ------------------------------------ ## |
| 6259 | ## Report this to bug-autoconf@gnu.org. ## |
| 6260 | ## ------------------------------------ ## |
| 6261 | _ASBOX |
| 6262 | ) | |
| 6263 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6264 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6265 | no:yes ) |
| 6266 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6267 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6268 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6269 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6270 | { 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] | 6271 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6272 | ( |
| 6273 | cat <<\_ASBOX |
| 6274 | ## ------------------------------------ ## |
| 6275 | ## Report this to bug-autoconf@gnu.org. ## |
| 6276 | ## ------------------------------------ ## |
| 6277 | _ASBOX |
| 6278 | ) | |
| 6279 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6280 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6281 | esac |
| 6282 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6283 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6284 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6286 | else |
| 6287 | eval "$as_ac_Header=$ac_header_preproc" |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6288 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6289 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6290 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6291 | |
| 6292 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6293 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6294 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6295 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6296 | _ACEOF |
| 6297 | echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6298 | echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6 |
| 6299 | if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then |
| 6300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6301 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6302 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6303 | LIBS="-ljpeg $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6304 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6305 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6306 | /* confdefs.h. */ |
| 6307 | _ACEOF |
| 6308 | cat confdefs.h >>conftest.$ac_ext |
| 6309 | cat >>conftest.$ac_ext <<_ACEOF |
| 6310 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6311 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6312 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6313 | #ifdef __cplusplus |
| 6314 | extern "C" |
| 6315 | #endif |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6316 | /* 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] | 6317 | builtin and then its argument prototype would still apply. */ |
| 6318 | char jpeg_start_decompress (); |
| 6319 | int |
| 6320 | main () |
| 6321 | { |
| 6322 | jpeg_start_decompress (); |
| 6323 | ; |
| 6324 | return 0; |
| 6325 | } |
| 6326 | _ACEOF |
| 6327 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6329 | (eval $ac_link) 2>&5 |
| 6330 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6332 | (exit $ac_status); } && |
| 6333 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6335 | (eval $ac_try) 2>&5 |
| 6336 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6338 | (exit $ac_status); }; }; then |
| 6339 | ac_cv_lib_jpeg_jpeg_start_decompress=yes |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6340 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6341 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6343 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6344 | ac_cv_lib_jpeg_jpeg_start_decompress=no |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6345 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6346 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6347 | LIBS=$ac_check_lib_save_LIBS |
| 6348 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6349 | 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] | 6350 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6 |
| 6351 | if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6352 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6353 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6354 | #define HAVE_LIBJPEG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6355 | _ACEOF |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6356 | |
| 6357 | JPEGLIB="-ljpeg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6358 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6359 | fi |
| 6360 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6361 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6362 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6363 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6364 | done |
| 6365 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6366 | |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 6367 | GIFLIB="" |
| 6368 | |
| 6369 | |
| 6370 | for ac_header in gif_lib.h |
| 6371 | do |
| 6372 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6373 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6374 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6375 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6376 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6378 | fi |
| 6379 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6380 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6381 | else |
| 6382 | # Is the header compilable? |
| 6383 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6384 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6385 | cat >conftest.$ac_ext <<_ACEOF |
| 6386 | #line $LINENO "configure" |
| 6387 | /* confdefs.h. */ |
| 6388 | _ACEOF |
| 6389 | cat confdefs.h >>conftest.$ac_ext |
| 6390 | cat >>conftest.$ac_ext <<_ACEOF |
| 6391 | /* end confdefs.h. */ |
| 6392 | $ac_includes_default |
| 6393 | #include <$ac_header> |
| 6394 | _ACEOF |
| 6395 | rm -f conftest.$ac_objext |
| 6396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6397 | (eval $ac_compile) 2>&5 |
| 6398 | ac_status=$? |
| 6399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6400 | (exit $ac_status); } && |
| 6401 | { ac_try='test -s conftest.$ac_objext' |
| 6402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6403 | (eval $ac_try) 2>&5 |
| 6404 | ac_status=$? |
| 6405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6406 | (exit $ac_status); }; }; then |
| 6407 | ac_header_compiler=yes |
| 6408 | else |
| 6409 | echo "$as_me: failed program was:" >&5 |
| 6410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6411 | |
| 6412 | ac_header_compiler=no |
| 6413 | fi |
| 6414 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6415 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6416 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6417 | |
| 6418 | # Is the header present? |
| 6419 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6420 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6421 | cat >conftest.$ac_ext <<_ACEOF |
| 6422 | #line $LINENO "configure" |
| 6423 | /* confdefs.h. */ |
| 6424 | _ACEOF |
| 6425 | cat confdefs.h >>conftest.$ac_ext |
| 6426 | cat >>conftest.$ac_ext <<_ACEOF |
| 6427 | /* end confdefs.h. */ |
| 6428 | #include <$ac_header> |
| 6429 | _ACEOF |
| 6430 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6431 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6432 | ac_status=$? |
| 6433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6434 | rm -f conftest.er1 |
| 6435 | cat conftest.err >&5 |
| 6436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6437 | (exit $ac_status); } >/dev/null; then |
| 6438 | if test -s conftest.err; then |
| 6439 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6440 | else |
| 6441 | ac_cpp_err= |
| 6442 | fi |
| 6443 | else |
| 6444 | ac_cpp_err=yes |
| 6445 | fi |
| 6446 | if test -z "$ac_cpp_err"; then |
| 6447 | ac_header_preproc=yes |
| 6448 | else |
| 6449 | echo "$as_me: failed program was:" >&5 |
| 6450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6451 | |
| 6452 | ac_header_preproc=no |
| 6453 | fi |
| 6454 | rm -f conftest.err conftest.$ac_ext |
| 6455 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6456 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6457 | |
| 6458 | # So? What about this header? |
| 6459 | case $ac_header_compiler:$ac_header_preproc in |
| 6460 | yes:no ) |
| 6461 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6462 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6463 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6464 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6465 | ( |
| 6466 | cat <<\_ASBOX |
| 6467 | ## ------------------------------------ ## |
| 6468 | ## Report this to bug-autoconf@gnu.org. ## |
| 6469 | ## ------------------------------------ ## |
| 6470 | _ASBOX |
| 6471 | ) | |
| 6472 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6473 | ;; |
| 6474 | no:yes ) |
| 6475 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6476 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6477 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6478 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6479 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6480 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6481 | ( |
| 6482 | cat <<\_ASBOX |
| 6483 | ## ------------------------------------ ## |
| 6484 | ## Report this to bug-autoconf@gnu.org. ## |
| 6485 | ## ------------------------------------ ## |
| 6486 | _ASBOX |
| 6487 | ) | |
| 6488 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6489 | ;; |
| 6490 | esac |
| 6491 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6492 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6493 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6495 | else |
| 6496 | eval "$as_ac_Header=$ac_header_preproc" |
| 6497 | fi |
| 6498 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6499 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6500 | |
| 6501 | fi |
| 6502 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6503 | cat >>confdefs.h <<_ACEOF |
| 6504 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6505 | _ACEOF |
| 6506 | echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5 |
| 6507 | echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6 |
| 6508 | if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then |
| 6509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6510 | else |
| 6511 | ac_check_lib_save_LIBS=$LIBS |
| 6512 | LIBS="-lungif $LIBS" |
| 6513 | cat >conftest.$ac_ext <<_ACEOF |
| 6514 | #line $LINENO "configure" |
| 6515 | /* confdefs.h. */ |
| 6516 | _ACEOF |
| 6517 | cat confdefs.h >>conftest.$ac_ext |
| 6518 | cat >>conftest.$ac_ext <<_ACEOF |
| 6519 | /* end confdefs.h. */ |
| 6520 | |
| 6521 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6522 | #ifdef __cplusplus |
| 6523 | extern "C" |
| 6524 | #endif |
| 6525 | /* We use char because int might match the return type of a gcc2 |
| 6526 | builtin and then its argument prototype would still apply. */ |
| 6527 | char DGifOpen (); |
| 6528 | int |
| 6529 | main () |
| 6530 | { |
| 6531 | DGifOpen (); |
| 6532 | ; |
| 6533 | return 0; |
| 6534 | } |
| 6535 | _ACEOF |
| 6536 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6538 | (eval $ac_link) 2>&5 |
| 6539 | ac_status=$? |
| 6540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6541 | (exit $ac_status); } && |
| 6542 | { ac_try='test -s conftest$ac_exeext' |
| 6543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6544 | (eval $ac_try) 2>&5 |
| 6545 | ac_status=$? |
| 6546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6547 | (exit $ac_status); }; }; then |
| 6548 | ac_cv_lib_ungif_DGifOpen=yes |
| 6549 | else |
| 6550 | echo "$as_me: failed program was:" >&5 |
| 6551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6552 | |
| 6553 | ac_cv_lib_ungif_DGifOpen=no |
| 6554 | fi |
| 6555 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6556 | LIBS=$ac_check_lib_save_LIBS |
| 6557 | fi |
| 6558 | echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5 |
| 6559 | echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6 |
| 6560 | if test $ac_cv_lib_ungif_DGifOpen = yes; then |
| 6561 | |
| 6562 | cat >>confdefs.h <<\_ACEOF |
| 6563 | #define HAVE_LIBGIF 1 |
| 6564 | _ACEOF |
| 6565 | |
| 6566 | GIFLIB="-lungif" |
| 6567 | else |
| 6568 | echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5 |
| 6569 | echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6 |
| 6570 | if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then |
| 6571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6572 | else |
| 6573 | ac_check_lib_save_LIBS=$LIBS |
| 6574 | LIBS="-lgif $LIBS" |
| 6575 | cat >conftest.$ac_ext <<_ACEOF |
| 6576 | #line $LINENO "configure" |
| 6577 | /* confdefs.h. */ |
| 6578 | _ACEOF |
| 6579 | cat confdefs.h >>conftest.$ac_ext |
| 6580 | cat >>conftest.$ac_ext <<_ACEOF |
| 6581 | /* end confdefs.h. */ |
| 6582 | |
| 6583 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6584 | #ifdef __cplusplus |
| 6585 | extern "C" |
| 6586 | #endif |
| 6587 | /* We use char because int might match the return type of a gcc2 |
| 6588 | builtin and then its argument prototype would still apply. */ |
| 6589 | char DGifOpen (); |
| 6590 | int |
| 6591 | main () |
| 6592 | { |
| 6593 | DGifOpen (); |
| 6594 | ; |
| 6595 | return 0; |
| 6596 | } |
| 6597 | _ACEOF |
| 6598 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6600 | (eval $ac_link) 2>&5 |
| 6601 | ac_status=$? |
| 6602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6603 | (exit $ac_status); } && |
| 6604 | { ac_try='test -s conftest$ac_exeext' |
| 6605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6606 | (eval $ac_try) 2>&5 |
| 6607 | ac_status=$? |
| 6608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6609 | (exit $ac_status); }; }; then |
| 6610 | ac_cv_lib_gif_DGifOpen=yes |
| 6611 | else |
| 6612 | echo "$as_me: failed program was:" >&5 |
| 6613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6614 | |
| 6615 | ac_cv_lib_gif_DGifOpen=no |
| 6616 | fi |
| 6617 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6618 | LIBS=$ac_check_lib_save_LIBS |
| 6619 | fi |
| 6620 | echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5 |
| 6621 | echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6 |
| 6622 | if test $ac_cv_lib_gif_DGifOpen = yes; then |
| 6623 | cat >>confdefs.h <<\_ACEOF |
| 6624 | #define HAVE_LIBGIF 1 |
| 6625 | _ACEOF |
| 6626 | |
| 6627 | GIFLIB="-lgif" |
| 6628 | fi |
| 6629 | |
| 6630 | fi |
| 6631 | |
| 6632 | fi |
| 6633 | |
| 6634 | done |
| 6635 | |
| 6636 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6637 | |
| 6638 | |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 6639 | XFILES="" |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 6640 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 6641 | OPENGLFILES="" |
| 6642 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 6643 | GLU32FILES="" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 6644 | |
| 6645 | OPENGL_LIBS="" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6646 | if test "$have_x" = "yes" |
| 6647 | then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6648 | XLIB="-lXext -lX11" |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 6649 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 6650 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6651 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6652 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6653 | for ac_header in X11/Xlib.h |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 6654 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6655 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6656 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6657 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6658 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6659 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6661 | fi |
| 6662 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6663 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 6664 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6665 | # Is the header compilable? |
| 6666 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6667 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6668 | cat >conftest.$ac_ext <<_ACEOF |
| 6669 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6670 | /* confdefs.h. */ |
| 6671 | _ACEOF |
| 6672 | cat confdefs.h >>conftest.$ac_ext |
| 6673 | cat >>conftest.$ac_ext <<_ACEOF |
| 6674 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6675 | $ac_includes_default |
| 6676 | #include <$ac_header> |
| 6677 | _ACEOF |
| 6678 | rm -f conftest.$ac_objext |
| 6679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6680 | (eval $ac_compile) 2>&5 |
| 6681 | ac_status=$? |
| 6682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6683 | (exit $ac_status); } && |
| 6684 | { ac_try='test -s conftest.$ac_objext' |
| 6685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6686 | (eval $ac_try) 2>&5 |
| 6687 | ac_status=$? |
| 6688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6689 | (exit $ac_status); }; }; then |
| 6690 | ac_header_compiler=yes |
| 6691 | else |
| 6692 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6694 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6695 | ac_header_compiler=no |
| 6696 | fi |
| 6697 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6698 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6699 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6700 | |
| 6701 | # Is the header present? |
| 6702 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6703 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6704 | cat >conftest.$ac_ext <<_ACEOF |
| 6705 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6706 | /* confdefs.h. */ |
| 6707 | _ACEOF |
| 6708 | cat confdefs.h >>conftest.$ac_ext |
| 6709 | cat >>conftest.$ac_ext <<_ACEOF |
| 6710 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6711 | #include <$ac_header> |
| 6712 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6713 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6714 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6715 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 6716 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6717 | rm -f conftest.er1 |
| 6718 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6720 | (exit $ac_status); } >/dev/null; then |
| 6721 | if test -s conftest.err; then |
| 6722 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6723 | else |
| 6724 | ac_cpp_err= |
| 6725 | fi |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 6726 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6727 | ac_cpp_err=yes |
| 6728 | fi |
| 6729 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6730 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6731 | else |
| 6732 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6734 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6735 | ac_header_preproc=no |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 6736 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6737 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6738 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6739 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6740 | |
| 6741 | # So? What about this header? |
| 6742 | case $ac_header_compiler:$ac_header_preproc in |
| 6743 | yes:no ) |
| 6744 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6745 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6746 | { 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] | 6747 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6748 | ( |
| 6749 | cat <<\_ASBOX |
| 6750 | ## ------------------------------------ ## |
| 6751 | ## Report this to bug-autoconf@gnu.org. ## |
| 6752 | ## ------------------------------------ ## |
| 6753 | _ASBOX |
| 6754 | ) | |
| 6755 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6756 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6757 | no:yes ) |
| 6758 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6759 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6760 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6761 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6762 | { 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] | 6763 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6764 | ( |
| 6765 | cat <<\_ASBOX |
| 6766 | ## ------------------------------------ ## |
| 6767 | ## Report this to bug-autoconf@gnu.org. ## |
| 6768 | ## ------------------------------------ ## |
| 6769 | _ASBOX |
| 6770 | ) | |
| 6771 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6772 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6773 | esac |
| 6774 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6775 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6776 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6778 | else |
| 6779 | eval "$as_ac_Header=$ac_header_preproc" |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 6780 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6781 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6782 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6783 | |
| 6784 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6785 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6786 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6787 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6788 | _ACEOF |
| 6789 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6790 | |
| 6791 | for ac_header in X11/XKBlib.h |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6792 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6793 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6794 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6795 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6796 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6798 | else |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6799 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6800 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6801 | /* confdefs.h. */ |
| 6802 | _ACEOF |
| 6803 | cat confdefs.h >>conftest.$ac_ext |
| 6804 | cat >>conftest.$ac_ext <<_ACEOF |
| 6805 | /* end confdefs.h. */ |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6806 | #include <X11/Xlib.h> |
| 6807 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6808 | #include <$ac_header> |
| 6809 | _ACEOF |
| 6810 | rm -f conftest.$ac_objext |
| 6811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6812 | (eval $ac_compile) 2>&5 |
| 6813 | ac_status=$? |
| 6814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6815 | (exit $ac_status); } && |
| 6816 | { ac_try='test -s conftest.$ac_objext' |
| 6817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6818 | (eval $ac_try) 2>&5 |
| 6819 | ac_status=$? |
| 6820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6821 | (exit $ac_status); }; }; then |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6822 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6823 | else |
| 6824 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6826 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6827 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6828 | fi |
| 6829 | rm -f conftest.$ac_objext conftest.$ac_ext |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6830 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6831 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6832 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6833 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6834 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6835 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6836 | _ACEOF |
| 6837 | echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6838 | echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6 |
| 6839 | if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then |
| 6840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6841 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6842 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6843 | LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6844 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6845 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6846 | /* confdefs.h. */ |
| 6847 | _ACEOF |
| 6848 | cat confdefs.h >>conftest.$ac_ext |
| 6849 | cat >>conftest.$ac_ext <<_ACEOF |
| 6850 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6851 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6852 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6853 | #ifdef __cplusplus |
| 6854 | extern "C" |
| 6855 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6856 | /* 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] | 6857 | builtin and then its argument prototype would still apply. */ |
| 6858 | char XkbQueryExtension (); |
| 6859 | int |
| 6860 | main () |
| 6861 | { |
| 6862 | XkbQueryExtension (); |
| 6863 | ; |
| 6864 | return 0; |
| 6865 | } |
| 6866 | _ACEOF |
| 6867 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6868 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6869 | (eval $ac_link) 2>&5 |
| 6870 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6872 | (exit $ac_status); } && |
| 6873 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6875 | (eval $ac_try) 2>&5 |
| 6876 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6878 | (exit $ac_status); }; }; then |
| 6879 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6880 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6881 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6883 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6884 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6885 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6886 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6887 | LIBS=$ac_check_lib_save_LIBS |
| 6888 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6889 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6890 | echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6 |
| 6891 | if test $ac_cv_lib_X11_XkbQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6892 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6893 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6894 | #define HAVE_XKB 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6895 | _ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6896 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6897 | fi |
| 6898 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6899 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6900 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6901 | { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6902 | echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;} |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6903 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6904 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6905 | done |
| 6906 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6907 | |
| 6908 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6909 | for ac_header in X11/extensions/XShm.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6910 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6911 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6912 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6913 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6914 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6916 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6917 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6918 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6919 | /* confdefs.h. */ |
| 6920 | _ACEOF |
| 6921 | cat confdefs.h >>conftest.$ac_ext |
| 6922 | cat >>conftest.$ac_ext <<_ACEOF |
| 6923 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6924 | #include <X11/Xlib.h> |
| 6925 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6926 | #include <$ac_header> |
| 6927 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6928 | rm -f conftest.$ac_objext |
| 6929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6930 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6931 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6933 | (exit $ac_status); } && |
| 6934 | { ac_try='test -s conftest.$ac_objext' |
| 6935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6936 | (eval $ac_try) 2>&5 |
| 6937 | ac_status=$? |
| 6938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6939 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6940 | eval "$as_ac_Header=yes" |
| 6941 | else |
| 6942 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6944 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6945 | eval "$as_ac_Header=no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6946 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6947 | rm -f conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6948 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6949 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6950 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6951 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6952 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6953 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6954 | _ACEOF |
| 6955 | echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6956 | echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6 |
| 6957 | if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then |
| 6958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6959 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6960 | ac_check_lib_save_LIBS=$LIBS |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6961 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6962 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6963 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6964 | /* confdefs.h. */ |
| 6965 | _ACEOF |
| 6966 | cat confdefs.h >>conftest.$ac_ext |
| 6967 | cat >>conftest.$ac_ext <<_ACEOF |
| 6968 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6969 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6970 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6971 | #ifdef __cplusplus |
| 6972 | extern "C" |
| 6973 | #endif |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6974 | /* 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] | 6975 | builtin and then its argument prototype would still apply. */ |
| 6976 | char XShmQueryExtension (); |
| 6977 | int |
| 6978 | main () |
| 6979 | { |
| 6980 | XShmQueryExtension (); |
| 6981 | ; |
| 6982 | return 0; |
| 6983 | } |
| 6984 | _ACEOF |
| 6985 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6987 | (eval $ac_link) 2>&5 |
| 6988 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6990 | (exit $ac_status); } && |
| 6991 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6993 | (eval $ac_try) 2>&5 |
| 6994 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6996 | (exit $ac_status); }; }; then |
| 6997 | ac_cv_lib_Xext_XShmQueryExtension=yes |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6998 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6999 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7001 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7002 | ac_cv_lib_Xext_XShmQueryExtension=no |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7003 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7004 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7005 | LIBS=$ac_check_lib_save_LIBS |
| 7006 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7007 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7008 | echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6 |
| 7009 | if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7010 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7011 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7012 | #define HAVE_LIBXXSHM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7013 | _ACEOF |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7014 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7015 | fi |
| 7016 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7017 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7018 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7019 | { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7020 | echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;} |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7021 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7022 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7023 | done |
| 7024 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7025 | |
| 7026 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7027 | for ac_header in X11/Xutil.h |
| 7028 | do |
| 7029 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7030 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7031 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7032 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7034 | else |
| 7035 | cat >conftest.$ac_ext <<_ACEOF |
| 7036 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7037 | /* confdefs.h. */ |
| 7038 | _ACEOF |
| 7039 | cat confdefs.h >>conftest.$ac_ext |
| 7040 | cat >>conftest.$ac_ext <<_ACEOF |
| 7041 | /* end confdefs.h. */ |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7042 | #include <X11/Xlib.h> |
| 7043 | |
| 7044 | #include <$ac_header> |
| 7045 | _ACEOF |
| 7046 | rm -f conftest.$ac_objext |
| 7047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7048 | (eval $ac_compile) 2>&5 |
| 7049 | ac_status=$? |
| 7050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7051 | (exit $ac_status); } && |
| 7052 | { ac_try='test -s conftest.$ac_objext' |
| 7053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7054 | (eval $ac_try) 2>&5 |
| 7055 | ac_status=$? |
| 7056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7057 | (exit $ac_status); }; }; then |
| 7058 | eval "$as_ac_Header=yes" |
| 7059 | else |
| 7060 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7062 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7063 | eval "$as_ac_Header=no" |
| 7064 | fi |
| 7065 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7066 | fi |
| 7067 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7068 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7069 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7070 | cat >>confdefs.h <<_ACEOF |
| 7071 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7072 | _ACEOF |
| 7073 | |
| 7074 | fi |
| 7075 | |
| 7076 | done |
| 7077 | |
| 7078 | |
| 7079 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7080 | for ac_header in X11/extensions/shape.h |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7081 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7082 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7083 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7084 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7085 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7087 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7088 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7089 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7090 | /* confdefs.h. */ |
| 7091 | _ACEOF |
| 7092 | cat confdefs.h >>conftest.$ac_ext |
| 7093 | cat >>conftest.$ac_ext <<_ACEOF |
| 7094 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7095 | #include <X11/Xlib.h> |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7096 | #ifdef HAVE_X11_XUTIL_H |
| 7097 | # include <X11/Xutil.h> |
| 7098 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7099 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7100 | #include <$ac_header> |
| 7101 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7102 | rm -f conftest.$ac_objext |
| 7103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7104 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7105 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7107 | (exit $ac_status); } && |
| 7108 | { ac_try='test -s conftest.$ac_objext' |
| 7109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7110 | (eval $ac_try) 2>&5 |
| 7111 | ac_status=$? |
| 7112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7113 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7114 | eval "$as_ac_Header=yes" |
| 7115 | else |
| 7116 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7118 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7119 | eval "$as_ac_Header=no" |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7120 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7121 | rm -f conftest.$ac_objext conftest.$ac_ext |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7122 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7123 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7124 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7125 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7126 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7127 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7128 | _ACEOF |
| 7129 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7130 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 7131 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 7132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7133 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7134 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7135 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7136 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7137 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7138 | /* confdefs.h. */ |
| 7139 | _ACEOF |
| 7140 | cat confdefs.h >>conftest.$ac_ext |
| 7141 | cat >>conftest.$ac_ext <<_ACEOF |
| 7142 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7143 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7144 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7145 | #ifdef __cplusplus |
| 7146 | extern "C" |
| 7147 | #endif |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7148 | /* 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] | 7149 | builtin and then its argument prototype would still apply. */ |
| 7150 | char XShapeQueryExtension (); |
| 7151 | int |
| 7152 | main () |
| 7153 | { |
| 7154 | XShapeQueryExtension (); |
| 7155 | ; |
| 7156 | return 0; |
| 7157 | } |
| 7158 | _ACEOF |
| 7159 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7161 | (eval $ac_link) 2>&5 |
| 7162 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7164 | (exit $ac_status); } && |
| 7165 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7167 | (eval $ac_try) 2>&5 |
| 7168 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7170 | (exit $ac_status); }; }; then |
| 7171 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7172 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7173 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7175 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7176 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7177 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7178 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7179 | LIBS=$ac_check_lib_save_LIBS |
| 7180 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7181 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7182 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 7183 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7184 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7185 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7186 | #define HAVE_LIBXSHAPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7187 | _ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7188 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7189 | fi |
| 7190 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7191 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7192 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7193 | { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7194 | echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;} |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7195 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7196 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7197 | done |
| 7198 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7199 | |
| 7200 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7201 | for ac_header in X11/extensions/xf86dga.h |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7202 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7203 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7204 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7205 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7206 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7208 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7209 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7210 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7211 | /* confdefs.h. */ |
| 7212 | _ACEOF |
| 7213 | cat confdefs.h >>conftest.$ac_ext |
| 7214 | cat >>conftest.$ac_ext <<_ACEOF |
| 7215 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7216 | #include <X11/Xlib.h> |
| 7217 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7218 | #include <$ac_header> |
| 7219 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7220 | rm -f conftest.$ac_objext |
| 7221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7222 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7223 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7225 | (exit $ac_status); } && |
| 7226 | { ac_try='test -s conftest.$ac_objext' |
| 7227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7228 | (eval $ac_try) 2>&5 |
| 7229 | ac_status=$? |
| 7230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7231 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7232 | eval "$as_ac_Header=yes" |
| 7233 | else |
| 7234 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7236 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7237 | eval "$as_ac_Header=no" |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7238 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7239 | rm -f conftest.$ac_objext conftest.$ac_ext |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7240 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7241 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7242 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7243 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7244 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7245 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7246 | _ACEOF |
| 7247 | echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7248 | echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
| 7249 | if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then |
| 7250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7251 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7252 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 7253 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7254 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7255 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7256 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7257 | /* confdefs.h. */ |
| 7258 | _ACEOF |
| 7259 | cat confdefs.h >>conftest.$ac_ext |
| 7260 | cat >>conftest.$ac_ext <<_ACEOF |
| 7261 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7262 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7263 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7264 | #ifdef __cplusplus |
| 7265 | extern "C" |
| 7266 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7267 | /* 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] | 7268 | builtin and then its argument prototype would still apply. */ |
| 7269 | char XDGAQueryExtension (); |
| 7270 | int |
| 7271 | main () |
| 7272 | { |
| 7273 | XDGAQueryExtension (); |
| 7274 | ; |
| 7275 | return 0; |
| 7276 | } |
| 7277 | _ACEOF |
| 7278 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7280 | (eval $ac_link) 2>&5 |
| 7281 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7283 | (exit $ac_status); } && |
| 7284 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7286 | (eval $ac_try) 2>&5 |
| 7287 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7289 | (exit $ac_status); }; }; then |
| 7290 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7291 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7292 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7294 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7295 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=no |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7296 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7297 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7298 | LIBS=$ac_check_lib_save_LIBS |
| 7299 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7300 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7301 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6 |
| 7302 | if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7303 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7304 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7305 | #define HAVE_LIBXXF86DGA2 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7306 | _ACEOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 7307 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7308 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7309 | |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7310 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7311 | echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7312 | echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
| 7313 | if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then |
| 7314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7315 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7316 | ac_check_lib_save_LIBS=$LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7317 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 7318 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7319 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7320 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7321 | /* confdefs.h. */ |
| 7322 | _ACEOF |
| 7323 | cat confdefs.h >>conftest.$ac_ext |
| 7324 | cat >>conftest.$ac_ext <<_ACEOF |
| 7325 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7326 | |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7327 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7328 | #ifdef __cplusplus |
| 7329 | extern "C" |
| 7330 | #endif |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7331 | /* 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] | 7332 | builtin and then its argument prototype would still apply. */ |
| 7333 | char XF86DGAQueryExtension (); |
| 7334 | int |
| 7335 | main () |
| 7336 | { |
| 7337 | XF86DGAQueryExtension (); |
| 7338 | ; |
| 7339 | return 0; |
| 7340 | } |
| 7341 | _ACEOF |
| 7342 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7344 | (eval $ac_link) 2>&5 |
| 7345 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7347 | (exit $ac_status); } && |
| 7348 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7350 | (eval $ac_try) 2>&5 |
| 7351 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7353 | (exit $ac_status); }; }; then |
| 7354 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7355 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7356 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7358 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7359 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7360 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7361 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7362 | LIBS=$ac_check_lib_save_LIBS |
| 7363 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7364 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7365 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6 |
| 7366 | if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7367 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7368 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7369 | #define HAVE_LIBXXF86DGA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7370 | _ACEOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 7371 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7372 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7373 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7374 | fi |
| 7375 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7376 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7377 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7378 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7379 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7380 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7381 | { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7382 | echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;} |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7383 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7384 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7385 | done |
| 7386 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7387 | |
| 7388 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7389 | for ac_header in X11/extensions/xf86vmode.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7390 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7391 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7392 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7393 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7394 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7396 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7397 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7398 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7399 | /* confdefs.h. */ |
| 7400 | _ACEOF |
| 7401 | cat confdefs.h >>conftest.$ac_ext |
| 7402 | cat >>conftest.$ac_ext <<_ACEOF |
| 7403 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7404 | #include <X11/Xlib.h> |
| 7405 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7406 | #include <$ac_header> |
| 7407 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7408 | rm -f conftest.$ac_objext |
| 7409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7410 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7411 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7413 | (exit $ac_status); } && |
| 7414 | { ac_try='test -s conftest.$ac_objext' |
| 7415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7416 | (eval $ac_try) 2>&5 |
| 7417 | ac_status=$? |
| 7418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7419 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7420 | eval "$as_ac_Header=yes" |
| 7421 | else |
| 7422 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7424 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7425 | eval "$as_ac_Header=no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7426 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7427 | rm -f conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7428 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7429 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7430 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7431 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7432 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7433 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7434 | _ACEOF |
| 7435 | echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7436 | echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6 |
| 7437 | if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then |
| 7438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7439 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7440 | ac_check_lib_save_LIBS=$LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7441 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 7442 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7443 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7444 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7445 | /* confdefs.h. */ |
| 7446 | _ACEOF |
| 7447 | cat confdefs.h >>conftest.$ac_ext |
| 7448 | cat >>conftest.$ac_ext <<_ACEOF |
| 7449 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7450 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7451 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7452 | #ifdef __cplusplus |
| 7453 | extern "C" |
| 7454 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7455 | /* 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] | 7456 | builtin and then its argument prototype would still apply. */ |
| 7457 | char XF86VidModeQueryExtension (); |
| 7458 | int |
| 7459 | main () |
| 7460 | { |
| 7461 | XF86VidModeQueryExtension (); |
| 7462 | ; |
| 7463 | return 0; |
| 7464 | } |
| 7465 | _ACEOF |
| 7466 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7468 | (eval $ac_link) 2>&5 |
| 7469 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7471 | (exit $ac_status); } && |
| 7472 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7474 | (eval $ac_try) 2>&5 |
| 7475 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7477 | (exit $ac_status); }; }; then |
| 7478 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7479 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7480 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7482 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7483 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7484 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7485 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7486 | LIBS=$ac_check_lib_save_LIBS |
| 7487 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7488 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7489 | echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6 |
| 7490 | if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7491 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7492 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7493 | #define HAVE_LIBXXF86VM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7494 | _ACEOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7495 | |
| 7496 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7497 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7498 | fi |
| 7499 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7500 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7501 | else |
| 7502 | { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5 |
| 7503 | echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;} |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7504 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7505 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7506 | done |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7507 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7508 | |
| 7509 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7510 | for ac_header in X11/extensions/Xvlib.h |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7511 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7512 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7513 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7514 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7515 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7517 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7518 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7519 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7520 | /* confdefs.h. */ |
| 7521 | _ACEOF |
| 7522 | cat confdefs.h >>conftest.$ac_ext |
| 7523 | cat >>conftest.$ac_ext <<_ACEOF |
| 7524 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7525 | #include <X11/Xlib.h> |
| 7526 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7527 | #include <$ac_header> |
| 7528 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7529 | rm -f conftest.$ac_objext |
| 7530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7531 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7532 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7534 | (exit $ac_status); } && |
| 7535 | { ac_try='test -s conftest.$ac_objext' |
| 7536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7537 | (eval $ac_try) 2>&5 |
| 7538 | ac_status=$? |
| 7539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7540 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7541 | eval "$as_ac_Header=yes" |
| 7542 | else |
| 7543 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7545 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7546 | eval "$as_ac_Header=no" |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7547 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7548 | rm -f conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7549 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7550 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7551 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7552 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7553 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7554 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7555 | _ACEOF |
| 7556 | echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7557 | echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6 |
| 7558 | if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then |
| 7559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7560 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7561 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7562 | LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 7563 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7564 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7565 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7566 | /* confdefs.h. */ |
| 7567 | _ACEOF |
| 7568 | cat confdefs.h >>conftest.$ac_ext |
| 7569 | cat >>conftest.$ac_ext <<_ACEOF |
| 7570 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7571 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7572 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7573 | #ifdef __cplusplus |
| 7574 | extern "C" |
| 7575 | #endif |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7576 | /* 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] | 7577 | builtin and then its argument prototype would still apply. */ |
| 7578 | char XvShmCreateImage (); |
| 7579 | int |
| 7580 | main () |
| 7581 | { |
| 7582 | XvShmCreateImage (); |
| 7583 | ; |
| 7584 | return 0; |
| 7585 | } |
| 7586 | _ACEOF |
| 7587 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7589 | (eval $ac_link) 2>&5 |
| 7590 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7592 | (exit $ac_status); } && |
| 7593 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7595 | (eval $ac_try) 2>&5 |
| 7596 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7598 | (exit $ac_status); }; }; then |
| 7599 | ac_cv_lib_Xv_XvShmCreateImage=yes |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7600 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7601 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7603 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7604 | ac_cv_lib_Xv_XvShmCreateImage=no |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7605 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7606 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7607 | LIBS=$ac_check_lib_save_LIBS |
| 7608 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7609 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7610 | echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6 |
| 7611 | if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7612 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7613 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7614 | #define HAVE_XVIDEO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7615 | _ACEOF |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7616 | |
| 7617 | X_PRE_LIBS="$X_PRE_LIBS -lXv" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7618 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7619 | fi |
| 7620 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7621 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7622 | else |
| 7623 | { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5 |
| 7624 | echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;} |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7625 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7626 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7627 | done |
| 7628 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7629 | |
| 7630 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7631 | for ac_header in X11/extensions/Xrender.h |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7632 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7633 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7634 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7635 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7636 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7638 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7639 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7640 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7641 | /* confdefs.h. */ |
| 7642 | _ACEOF |
| 7643 | cat confdefs.h >>conftest.$ac_ext |
| 7644 | cat >>conftest.$ac_ext <<_ACEOF |
| 7645 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7646 | #include <X11/Xlib.h> |
| 7647 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7648 | #include <$ac_header> |
| 7649 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7650 | rm -f conftest.$ac_objext |
| 7651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7652 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7653 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7655 | (exit $ac_status); } && |
| 7656 | { ac_try='test -s conftest.$ac_objext' |
| 7657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7658 | (eval $ac_try) 2>&5 |
| 7659 | ac_status=$? |
| 7660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7661 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7662 | eval "$as_ac_Header=yes" |
| 7663 | else |
| 7664 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7666 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7667 | eval "$as_ac_Header=no" |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7668 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7669 | rm -f conftest.$ac_objext conftest.$ac_ext |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7670 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7671 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7672 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7673 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7674 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7675 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7676 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7677 | |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7678 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7679 | |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7680 | done |
| 7681 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7682 | |
| 7683 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7684 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7685 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7686 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7687 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 7688 | if test "x$with_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7689 | then |
Francois Gouget | 42dcd97 | 2002-01-29 17:52:28 +0000 | [diff] [blame] | 7690 | 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] | 7691 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7692 | { { 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] | 7693 | This prevents linking to OpenGL. Delete the file and restart configure." >&5 |
| 7694 | echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 7695 | This prevents linking to OpenGL. Delete the file and restart configure." >&2;} |
| 7696 | { (exit 1); exit 1; }; } |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 7697 | fi |
| 7698 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7699 | |
| 7700 | |
| 7701 | for ac_header in GL/gl.h GL/glx.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7702 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7703 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7704 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7705 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7706 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7707 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7709 | fi |
| 7710 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7711 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7712 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7713 | # Is the header compilable? |
| 7714 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7715 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7716 | cat >conftest.$ac_ext <<_ACEOF |
| 7717 | #line $LINENO "configure" |
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 | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7723 | $ac_includes_default |
| 7724 | #include <$ac_header> |
| 7725 | _ACEOF |
| 7726 | rm -f conftest.$ac_objext |
| 7727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7728 | (eval $ac_compile) 2>&5 |
| 7729 | ac_status=$? |
| 7730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7731 | (exit $ac_status); } && |
| 7732 | { ac_try='test -s conftest.$ac_objext' |
| 7733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7734 | (eval $ac_try) 2>&5 |
| 7735 | ac_status=$? |
| 7736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7737 | (exit $ac_status); }; }; then |
| 7738 | ac_header_compiler=yes |
| 7739 | else |
| 7740 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7742 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7743 | ac_header_compiler=no |
| 7744 | fi |
| 7745 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7746 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7747 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7748 | |
| 7749 | # Is the header present? |
| 7750 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7751 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7752 | cat >conftest.$ac_ext <<_ACEOF |
| 7753 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7754 | /* confdefs.h. */ |
| 7755 | _ACEOF |
| 7756 | cat confdefs.h >>conftest.$ac_ext |
| 7757 | cat >>conftest.$ac_ext <<_ACEOF |
| 7758 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7759 | #include <$ac_header> |
| 7760 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7761 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7762 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7763 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 7764 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7765 | rm -f conftest.er1 |
| 7766 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7768 | (exit $ac_status); } >/dev/null; then |
| 7769 | if test -s conftest.err; then |
| 7770 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7771 | else |
| 7772 | ac_cpp_err= |
| 7773 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7774 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7775 | ac_cpp_err=yes |
| 7776 | fi |
| 7777 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7778 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7779 | else |
| 7780 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7782 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7783 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7784 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7785 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7786 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7787 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7788 | |
| 7789 | # So? What about this header? |
| 7790 | case $ac_header_compiler:$ac_header_preproc in |
| 7791 | yes:no ) |
| 7792 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7793 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7794 | { 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] | 7795 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7796 | ( |
| 7797 | cat <<\_ASBOX |
| 7798 | ## ------------------------------------ ## |
| 7799 | ## Report this to bug-autoconf@gnu.org. ## |
| 7800 | ## ------------------------------------ ## |
| 7801 | _ASBOX |
| 7802 | ) | |
| 7803 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7804 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7805 | no:yes ) |
| 7806 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7807 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7808 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7809 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7810 | { 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] | 7811 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7812 | ( |
| 7813 | cat <<\_ASBOX |
| 7814 | ## ------------------------------------ ## |
| 7815 | ## Report this to bug-autoconf@gnu.org. ## |
| 7816 | ## ------------------------------------ ## |
| 7817 | _ASBOX |
| 7818 | ) | |
| 7819 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7820 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7821 | esac |
| 7822 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7823 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7824 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7826 | else |
| 7827 | eval "$as_ac_Header=$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7828 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7829 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7830 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7831 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7832 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7833 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7834 | cat >>confdefs.h <<_ACEOF |
| 7835 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7836 | _ACEOF |
| 7837 | |
| 7838 | fi |
| 7839 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7840 | done |
| 7841 | |
Marcus Meissner | 22a969b | 2000-08-08 20:46:50 +0000 | [diff] [blame] | 7842 | 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] | 7843 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7844 | |
| 7845 | for ac_header in GL/glext.h |
| 7846 | do |
| 7847 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7848 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7849 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7850 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7852 | else |
| 7853 | cat >conftest.$ac_ext <<_ACEOF |
| 7854 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7855 | /* confdefs.h. */ |
| 7856 | _ACEOF |
| 7857 | cat confdefs.h >>conftest.$ac_ext |
| 7858 | cat >>conftest.$ac_ext <<_ACEOF |
| 7859 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7860 | #include <GL/glx.h> |
| 7861 | |
| 7862 | #include <$ac_header> |
| 7863 | _ACEOF |
| 7864 | rm -f conftest.$ac_objext |
| 7865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7866 | (eval $ac_compile) 2>&5 |
| 7867 | ac_status=$? |
| 7868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7869 | (exit $ac_status); } && |
| 7870 | { ac_try='test -s conftest.$ac_objext' |
| 7871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7872 | (eval $ac_try) 2>&5 |
| 7873 | ac_status=$? |
| 7874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7875 | (exit $ac_status); }; }; then |
| 7876 | eval "$as_ac_Header=yes" |
| 7877 | else |
| 7878 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7880 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7881 | eval "$as_ac_Header=no" |
| 7882 | fi |
| 7883 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7884 | fi |
| 7885 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7886 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7887 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7888 | cat >>confdefs.h <<_ACEOF |
| 7889 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7890 | _ACEOF |
| 7891 | |
| 7892 | fi |
| 7893 | |
| 7894 | done |
| 7895 | |
| 7896 | echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7897 | echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6 |
| 7898 | if test "${wine_cv_opengl_version_OK+set}" = set; then |
| 7899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7900 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7901 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7902 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7903 | /* confdefs.h. */ |
| 7904 | _ACEOF |
| 7905 | cat confdefs.h >>conftest.$ac_ext |
| 7906 | cat >>conftest.$ac_ext <<_ACEOF |
| 7907 | /* end confdefs.h. */ |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7908 | #include <GL/gl.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7909 | int |
| 7910 | main () |
| 7911 | { |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7912 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7913 | ; |
| 7914 | return 0; |
| 7915 | } |
| 7916 | _ACEOF |
| 7917 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7919 | (eval $ac_compile) 2>&5 |
| 7920 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7922 | (exit $ac_status); } && |
| 7923 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7925 | (eval $ac_try) 2>&5 |
| 7926 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7928 | (exit $ac_status); }; }; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7929 | wine_cv_opengl_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7930 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7931 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7933 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7934 | wine_cv_opengl_version_OK="no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7935 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7936 | fi |
| 7937 | rm -f conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7938 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7939 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7940 | echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7941 | echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6 |
| 7942 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 7943 | if test "$wine_cv_opengl_version_OK" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7944 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7945 | echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7946 | echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6 |
| 7947 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then |
| 7948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7949 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7950 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 376ec88 | 2000-01-05 03:24:52 +0000 | [diff] [blame] | 7951 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7952 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7953 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7954 | /* confdefs.h. */ |
| 7955 | _ACEOF |
| 7956 | cat confdefs.h >>conftest.$ac_ext |
| 7957 | cat >>conftest.$ac_ext <<_ACEOF |
| 7958 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7959 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7960 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7961 | #ifdef __cplusplus |
| 7962 | extern "C" |
| 7963 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7964 | /* 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] | 7965 | builtin and then its argument prototype would still apply. */ |
| 7966 | char glXCreateContext (); |
| 7967 | int |
| 7968 | main () |
| 7969 | { |
| 7970 | glXCreateContext (); |
| 7971 | ; |
| 7972 | return 0; |
| 7973 | } |
| 7974 | _ACEOF |
| 7975 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7977 | (eval $ac_link) 2>&5 |
| 7978 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7980 | (exit $ac_status); } && |
| 7981 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7983 | (eval $ac_try) 2>&5 |
| 7984 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7986 | (exit $ac_status); }; }; then |
| 7987 | ac_cv_lib_GL_glXCreateContext=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7988 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7989 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7991 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7992 | ac_cv_lib_GL_glXCreateContext=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7993 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7994 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7995 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7996 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7997 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7998 | echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6 |
| 7999 | if test $ac_cv_lib_GL_glXCreateContext = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 8000 | OPENGL_LIBS="-lGL" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8001 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8002 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8003 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8004 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 8005 | if test "$ac_cv_lib_GL_glXCreateContext" = "yes" |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 8006 | then |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 8007 | OPENGLFILES='$(OPENGLFILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8008 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8009 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8010 | #define HAVE_OPENGL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8011 | _ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8012 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8013 | |
| 8014 | echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8015 | echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6 |
| 8016 | if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then |
| 8017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8018 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8019 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8020 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8021 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8022 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8023 | /* confdefs.h. */ |
| 8024 | _ACEOF |
| 8025 | cat confdefs.h >>conftest.$ac_ext |
| 8026 | cat >>conftest.$ac_ext <<_ACEOF |
| 8027 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8028 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8029 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8030 | #ifdef __cplusplus |
| 8031 | extern "C" |
| 8032 | #endif |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8033 | /* 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] | 8034 | builtin and then its argument prototype would still apply. */ |
| 8035 | char glXGetProcAddressARB (); |
| 8036 | int |
| 8037 | main () |
| 8038 | { |
| 8039 | glXGetProcAddressARB (); |
| 8040 | ; |
| 8041 | return 0; |
| 8042 | } |
| 8043 | _ACEOF |
| 8044 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8046 | (eval $ac_link) 2>&5 |
| 8047 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8049 | (exit $ac_status); } && |
| 8050 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8052 | (eval $ac_try) 2>&5 |
| 8053 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8055 | (exit $ac_status); }; }; then |
| 8056 | ac_cv_lib_GL_glXGetProcAddressARB=yes |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8057 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8058 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8060 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8061 | ac_cv_lib_GL_glXGetProcAddressARB=no |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8062 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8063 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8064 | LIBS=$ac_check_lib_save_LIBS |
| 8065 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8066 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8067 | echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6 |
| 8068 | if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8069 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8070 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8071 | #define HAVE_GLX_GETPROCADDRESS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8072 | _ACEOF |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8073 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8074 | fi |
| 8075 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8076 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 8077 | if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes" |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8078 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8079 | echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8080 | echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6 |
| 8081 | if test "${wine_cv_extension_prototypes+set}" = set; then |
| 8082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8083 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8084 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8085 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8086 | /* confdefs.h. */ |
| 8087 | _ACEOF |
| 8088 | cat confdefs.h >>conftest.$ac_ext |
| 8089 | cat >>conftest.$ac_ext <<_ACEOF |
| 8090 | /* end confdefs.h. */ |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8091 | #include <GL/gl.h> |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8092 | #ifdef HAVE_GL_GLEXT_H |
| 8093 | # include <GL/glext.h> |
| 8094 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8095 | |
| 8096 | int |
| 8097 | main () |
| 8098 | { |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8099 | PFNGLCOLORTABLEEXTPROC test_proc; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8100 | ; |
| 8101 | return 0; |
| 8102 | } |
| 8103 | _ACEOF |
| 8104 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8106 | (eval $ac_compile) 2>&5 |
| 8107 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8109 | (exit $ac_status); } && |
| 8110 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8112 | (eval $ac_try) 2>&5 |
| 8113 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8115 | (exit $ac_status); }; }; then |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 8116 | wine_cv_extension_prototypes="yes" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8117 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8118 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8120 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8121 | wine_cv_extension_prototypes="no" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8122 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8123 | fi |
| 8124 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8125 | |
| 8126 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8127 | echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8128 | echo "${ECHO_T}$wine_cv_extension_prototypes" >&6 |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 8129 | if test "$wine_cv_extension_prototypes" = "yes" |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 8130 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8131 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8132 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 8133 | #define HAVE_GLEXT_PROTOTYPES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8134 | _ACEOF |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 8135 | |
| 8136 | fi |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8137 | fi |
Alexandre Julliard | d6c0f9f | 2001-01-04 22:44:55 +0000 | [diff] [blame] | 8138 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8139 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8140 | echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8141 | echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6 |
| 8142 | if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then |
| 8143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8144 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8145 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 8146 | 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] | 8147 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8148 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8149 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8150 | /* confdefs.h. */ |
| 8151 | _ACEOF |
| 8152 | cat confdefs.h >>conftest.$ac_ext |
| 8153 | cat >>conftest.$ac_ext <<_ACEOF |
| 8154 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8155 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8156 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8157 | #ifdef __cplusplus |
| 8158 | extern "C" |
| 8159 | #endif |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8160 | /* 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] | 8161 | builtin and then its argument prototype would still apply. */ |
| 8162 | char gluLookAt (); |
| 8163 | int |
| 8164 | main () |
| 8165 | { |
| 8166 | gluLookAt (); |
| 8167 | ; |
| 8168 | return 0; |
| 8169 | } |
| 8170 | _ACEOF |
| 8171 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8173 | (eval $ac_link) 2>&5 |
| 8174 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8176 | (exit $ac_status); } && |
| 8177 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8179 | (eval $ac_try) 2>&5 |
| 8180 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8182 | (exit $ac_status); }; }; then |
| 8183 | ac_cv_lib_GLU_gluLookAt=yes |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8184 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8185 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8187 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8188 | ac_cv_lib_GLU_gluLookAt=no |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8189 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8190 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8191 | LIBS=$ac_check_lib_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8192 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8193 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8194 | echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6 |
| 8195 | if test $ac_cv_lib_GLU_gluLookAt = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 8196 | OPENGL_LIBS="$OPENGL_LIBS -lGLU" |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8197 | GLU32FILES='$(GLU32FILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8198 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8199 | fi |
| 8200 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8201 | fi |
| 8202 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8203 | fi |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 8204 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8205 | NASLIBS="" |
| 8206 | |
| 8207 | |
| 8208 | for ac_header in audio/audiolib.h |
| 8209 | do |
| 8210 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8211 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8212 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8213 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8214 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8216 | fi |
| 8217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8218 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8219 | else |
| 8220 | # Is the header compilable? |
| 8221 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8222 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8223 | cat >conftest.$ac_ext <<_ACEOF |
| 8224 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8225 | /* confdefs.h. */ |
| 8226 | _ACEOF |
| 8227 | cat confdefs.h >>conftest.$ac_ext |
| 8228 | cat >>conftest.$ac_ext <<_ACEOF |
| 8229 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8230 | $ac_includes_default |
| 8231 | #include <$ac_header> |
| 8232 | _ACEOF |
| 8233 | rm -f conftest.$ac_objext |
| 8234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8235 | (eval $ac_compile) 2>&5 |
| 8236 | ac_status=$? |
| 8237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8238 | (exit $ac_status); } && |
| 8239 | { ac_try='test -s conftest.$ac_objext' |
| 8240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8241 | (eval $ac_try) 2>&5 |
| 8242 | ac_status=$? |
| 8243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8244 | (exit $ac_status); }; }; then |
| 8245 | ac_header_compiler=yes |
| 8246 | else |
| 8247 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8249 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8250 | ac_header_compiler=no |
| 8251 | fi |
| 8252 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8253 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8254 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8255 | |
| 8256 | # Is the header present? |
| 8257 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8258 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8259 | cat >conftest.$ac_ext <<_ACEOF |
| 8260 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8261 | /* confdefs.h. */ |
| 8262 | _ACEOF |
| 8263 | cat confdefs.h >>conftest.$ac_ext |
| 8264 | cat >>conftest.$ac_ext <<_ACEOF |
| 8265 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8266 | #include <$ac_header> |
| 8267 | _ACEOF |
| 8268 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8269 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8270 | ac_status=$? |
| 8271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8272 | rm -f conftest.er1 |
| 8273 | cat conftest.err >&5 |
| 8274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8275 | (exit $ac_status); } >/dev/null; then |
| 8276 | if test -s conftest.err; then |
| 8277 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8278 | else |
| 8279 | ac_cpp_err= |
| 8280 | fi |
| 8281 | else |
| 8282 | ac_cpp_err=yes |
| 8283 | fi |
| 8284 | if test -z "$ac_cpp_err"; then |
| 8285 | ac_header_preproc=yes |
| 8286 | else |
| 8287 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8289 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8290 | ac_header_preproc=no |
| 8291 | fi |
| 8292 | rm -f conftest.err conftest.$ac_ext |
| 8293 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8294 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8295 | |
| 8296 | # So? What about this header? |
| 8297 | case $ac_header_compiler:$ac_header_preproc in |
| 8298 | yes:no ) |
| 8299 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8300 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8301 | { 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] | 8302 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8303 | ( |
| 8304 | cat <<\_ASBOX |
| 8305 | ## ------------------------------------ ## |
| 8306 | ## Report this to bug-autoconf@gnu.org. ## |
| 8307 | ## ------------------------------------ ## |
| 8308 | _ASBOX |
| 8309 | ) | |
| 8310 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8311 | ;; |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8312 | no:yes ) |
| 8313 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8314 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8315 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8316 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8317 | { 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] | 8318 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8319 | ( |
| 8320 | cat <<\_ASBOX |
| 8321 | ## ------------------------------------ ## |
| 8322 | ## Report this to bug-autoconf@gnu.org. ## |
| 8323 | ## ------------------------------------ ## |
| 8324 | _ASBOX |
| 8325 | ) | |
| 8326 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8327 | ;; |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8328 | esac |
| 8329 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8330 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8331 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8333 | else |
| 8334 | eval "$as_ac_Header=$ac_header_preproc" |
| 8335 | fi |
| 8336 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8337 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8338 | |
| 8339 | fi |
| 8340 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8341 | cat >>confdefs.h <<_ACEOF |
| 8342 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8343 | _ACEOF |
| 8344 | |
| 8345 | for ac_header in audio/soundlib.h |
| 8346 | do |
| 8347 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8348 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8349 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8350 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8352 | else |
| 8353 | cat >conftest.$ac_ext <<_ACEOF |
| 8354 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8355 | /* confdefs.h. */ |
| 8356 | _ACEOF |
| 8357 | cat confdefs.h >>conftest.$ac_ext |
| 8358 | cat >>conftest.$ac_ext <<_ACEOF |
| 8359 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8360 | #include <audio/audiolib.h> |
| 8361 | |
| 8362 | #include <$ac_header> |
| 8363 | _ACEOF |
| 8364 | rm -f conftest.$ac_objext |
| 8365 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8366 | (eval $ac_compile) 2>&5 |
| 8367 | ac_status=$? |
| 8368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8369 | (exit $ac_status); } && |
| 8370 | { ac_try='test -s conftest.$ac_objext' |
| 8371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8372 | (eval $ac_try) 2>&5 |
| 8373 | ac_status=$? |
| 8374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8375 | (exit $ac_status); }; }; then |
| 8376 | eval "$as_ac_Header=yes" |
| 8377 | else |
| 8378 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8380 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8381 | eval "$as_ac_Header=no" |
| 8382 | fi |
| 8383 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8384 | fi |
| 8385 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8386 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8387 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8388 | cat >>confdefs.h <<_ACEOF |
| 8389 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8390 | _ACEOF |
| 8391 | |
| 8392 | fi |
| 8393 | |
| 8394 | done |
| 8395 | |
| 8396 | echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5 |
| 8397 | echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6 |
| 8398 | if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then |
| 8399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8400 | else |
| 8401 | ac_check_lib_save_LIBS=$LIBS |
| 8402 | LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 8403 | cat >conftest.$ac_ext <<_ACEOF |
| 8404 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8405 | /* confdefs.h. */ |
| 8406 | _ACEOF |
| 8407 | cat confdefs.h >>conftest.$ac_ext |
| 8408 | cat >>conftest.$ac_ext <<_ACEOF |
| 8409 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8410 | |
| 8411 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8412 | #ifdef __cplusplus |
| 8413 | extern "C" |
| 8414 | #endif |
| 8415 | /* We use char because int might match the return type of a gcc2 |
| 8416 | builtin and then its argument prototype would still apply. */ |
| 8417 | char AuCreateFlow (); |
| 8418 | int |
| 8419 | main () |
| 8420 | { |
| 8421 | AuCreateFlow (); |
| 8422 | ; |
| 8423 | return 0; |
| 8424 | } |
| 8425 | _ACEOF |
| 8426 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8428 | (eval $ac_link) 2>&5 |
| 8429 | ac_status=$? |
| 8430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8431 | (exit $ac_status); } && |
| 8432 | { ac_try='test -s conftest$ac_exeext' |
| 8433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8434 | (eval $ac_try) 2>&5 |
| 8435 | ac_status=$? |
| 8436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8437 | (exit $ac_status); }; }; then |
| 8438 | ac_cv_lib_audio_AuCreateFlow=yes |
| 8439 | else |
| 8440 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8442 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8443 | ac_cv_lib_audio_AuCreateFlow=no |
| 8444 | fi |
| 8445 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8446 | LIBS=$ac_check_lib_save_LIBS |
| 8447 | fi |
| 8448 | echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5 |
| 8449 | echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6 |
| 8450 | if test $ac_cv_lib_audio_AuCreateFlow = yes; then |
| 8451 | |
| 8452 | cat >>confdefs.h <<\_ACEOF |
| 8453 | #define HAVE_NAS 1 |
| 8454 | _ACEOF |
| 8455 | |
| 8456 | NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS" |
| 8457 | fi |
| 8458 | |
| 8459 | fi |
| 8460 | |
| 8461 | done |
| 8462 | |
| 8463 | |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 8464 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 8465 | XFILES='$(XFILES)' |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 8466 | else |
| 8467 | XLIB="" |
| 8468 | X_CFLAGS="" |
| 8469 | X_LIBS="" |
| 8470 | fi |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 8471 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8472 | CURSESLIBS="" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8473 | if test "x$with_curses" != "xno" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 8474 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8475 | |
| 8476 | for ac_header in ncurses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8477 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8478 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8479 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8480 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8481 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8482 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8484 | fi |
| 8485 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8486 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8487 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8488 | # Is the header compilable? |
| 8489 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8490 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8491 | cat >conftest.$ac_ext <<_ACEOF |
| 8492 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8493 | /* confdefs.h. */ |
| 8494 | _ACEOF |
| 8495 | cat confdefs.h >>conftest.$ac_ext |
| 8496 | cat >>conftest.$ac_ext <<_ACEOF |
| 8497 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8498 | $ac_includes_default |
| 8499 | #include <$ac_header> |
| 8500 | _ACEOF |
| 8501 | rm -f conftest.$ac_objext |
| 8502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8503 | (eval $ac_compile) 2>&5 |
| 8504 | ac_status=$? |
| 8505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8506 | (exit $ac_status); } && |
| 8507 | { ac_try='test -s conftest.$ac_objext' |
| 8508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8509 | (eval $ac_try) 2>&5 |
| 8510 | ac_status=$? |
| 8511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8512 | (exit $ac_status); }; }; then |
| 8513 | ac_header_compiler=yes |
| 8514 | else |
| 8515 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8517 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8518 | ac_header_compiler=no |
| 8519 | fi |
| 8520 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8521 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8522 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8523 | |
| 8524 | # Is the header present? |
| 8525 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8526 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8527 | cat >conftest.$ac_ext <<_ACEOF |
| 8528 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8529 | /* confdefs.h. */ |
| 8530 | _ACEOF |
| 8531 | cat confdefs.h >>conftest.$ac_ext |
| 8532 | cat >>conftest.$ac_ext <<_ACEOF |
| 8533 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8534 | #include <$ac_header> |
| 8535 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8536 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8537 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8538 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8539 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8540 | rm -f conftest.er1 |
| 8541 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8543 | (exit $ac_status); } >/dev/null; then |
| 8544 | if test -s conftest.err; then |
| 8545 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8546 | else |
| 8547 | ac_cpp_err= |
| 8548 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8549 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8550 | ac_cpp_err=yes |
| 8551 | fi |
| 8552 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8553 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8554 | else |
| 8555 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8557 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8558 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8559 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8560 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8561 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8562 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8563 | |
| 8564 | # So? What about this header? |
| 8565 | case $ac_header_compiler:$ac_header_preproc in |
| 8566 | yes:no ) |
| 8567 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8568 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8569 | { 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] | 8570 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8571 | ( |
| 8572 | cat <<\_ASBOX |
| 8573 | ## ------------------------------------ ## |
| 8574 | ## Report this to bug-autoconf@gnu.org. ## |
| 8575 | ## ------------------------------------ ## |
| 8576 | _ASBOX |
| 8577 | ) | |
| 8578 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8579 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8580 | no:yes ) |
| 8581 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8582 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8583 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8584 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8585 | { 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] | 8586 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8587 | ( |
| 8588 | cat <<\_ASBOX |
| 8589 | ## ------------------------------------ ## |
| 8590 | ## Report this to bug-autoconf@gnu.org. ## |
| 8591 | ## ------------------------------------ ## |
| 8592 | _ASBOX |
| 8593 | ) | |
| 8594 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8595 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8596 | esac |
| 8597 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8598 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8599 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8601 | else |
| 8602 | eval "$as_ac_Header=$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8603 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8604 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8605 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8606 | |
| 8607 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8608 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8609 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8610 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8611 | _ACEOF |
| 8612 | echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8613 | echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6 |
| 8614 | if test "${ac_cv_lib_ncurses_waddch+set}" = set; then |
| 8615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8616 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8617 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8618 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8619 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8620 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8621 | /* confdefs.h. */ |
| 8622 | _ACEOF |
| 8623 | cat confdefs.h >>conftest.$ac_ext |
| 8624 | cat >>conftest.$ac_ext <<_ACEOF |
| 8625 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8626 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8627 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8628 | #ifdef __cplusplus |
| 8629 | extern "C" |
| 8630 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8631 | /* 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] | 8632 | builtin and then its argument prototype would still apply. */ |
| 8633 | char waddch (); |
| 8634 | int |
| 8635 | main () |
| 8636 | { |
| 8637 | waddch (); |
| 8638 | ; |
| 8639 | return 0; |
| 8640 | } |
| 8641 | _ACEOF |
| 8642 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8644 | (eval $ac_link) 2>&5 |
| 8645 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8647 | (exit $ac_status); } && |
| 8648 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8650 | (eval $ac_try) 2>&5 |
| 8651 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8653 | (exit $ac_status); }; }; then |
| 8654 | ac_cv_lib_ncurses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8655 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8656 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8658 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8659 | ac_cv_lib_ncurses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8660 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8661 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8662 | LIBS=$ac_check_lib_save_LIBS |
| 8663 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8664 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8665 | echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6 |
| 8666 | if test $ac_cv_lib_ncurses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8667 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8668 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8669 | #define HAVE_LIBNCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8670 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8671 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8672 | CURSESLIBS="-lncurses" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8673 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8674 | |
| 8675 | for ac_header in curses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8676 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8677 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8678 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8679 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8680 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8681 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8683 | fi |
| 8684 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8685 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8686 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8687 | # Is the header compilable? |
| 8688 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8689 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8690 | cat >conftest.$ac_ext <<_ACEOF |
| 8691 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8692 | /* confdefs.h. */ |
| 8693 | _ACEOF |
| 8694 | cat confdefs.h >>conftest.$ac_ext |
| 8695 | cat >>conftest.$ac_ext <<_ACEOF |
| 8696 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8697 | $ac_includes_default |
| 8698 | #include <$ac_header> |
| 8699 | _ACEOF |
| 8700 | rm -f conftest.$ac_objext |
| 8701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8702 | (eval $ac_compile) 2>&5 |
| 8703 | ac_status=$? |
| 8704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8705 | (exit $ac_status); } && |
| 8706 | { ac_try='test -s conftest.$ac_objext' |
| 8707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8708 | (eval $ac_try) 2>&5 |
| 8709 | ac_status=$? |
| 8710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8711 | (exit $ac_status); }; }; then |
| 8712 | ac_header_compiler=yes |
| 8713 | else |
| 8714 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8716 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8717 | ac_header_compiler=no |
| 8718 | fi |
| 8719 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8720 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8721 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8722 | |
| 8723 | # Is the header present? |
| 8724 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8725 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8726 | cat >conftest.$ac_ext <<_ACEOF |
| 8727 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8728 | /* confdefs.h. */ |
| 8729 | _ACEOF |
| 8730 | cat confdefs.h >>conftest.$ac_ext |
| 8731 | cat >>conftest.$ac_ext <<_ACEOF |
| 8732 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8733 | #include <$ac_header> |
| 8734 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8735 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8736 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8737 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8738 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8739 | rm -f conftest.er1 |
| 8740 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8742 | (exit $ac_status); } >/dev/null; then |
| 8743 | if test -s conftest.err; then |
| 8744 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8745 | else |
| 8746 | ac_cpp_err= |
| 8747 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8748 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8749 | ac_cpp_err=yes |
| 8750 | fi |
| 8751 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8752 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8753 | else |
| 8754 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8756 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8757 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8758 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8759 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8760 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8761 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8762 | |
| 8763 | # So? What about this header? |
| 8764 | case $ac_header_compiler:$ac_header_preproc in |
| 8765 | yes:no ) |
| 8766 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8767 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8768 | { 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] | 8769 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8770 | ( |
| 8771 | cat <<\_ASBOX |
| 8772 | ## ------------------------------------ ## |
| 8773 | ## Report this to bug-autoconf@gnu.org. ## |
| 8774 | ## ------------------------------------ ## |
| 8775 | _ASBOX |
| 8776 | ) | |
| 8777 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8778 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8779 | no:yes ) |
| 8780 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8781 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8782 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8783 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8784 | { 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] | 8785 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8786 | ( |
| 8787 | cat <<\_ASBOX |
| 8788 | ## ------------------------------------ ## |
| 8789 | ## Report this to bug-autoconf@gnu.org. ## |
| 8790 | ## ------------------------------------ ## |
| 8791 | _ASBOX |
| 8792 | ) | |
| 8793 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8794 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8795 | esac |
| 8796 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8797 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8798 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8800 | else |
| 8801 | eval "$as_ac_Header=$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8802 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8803 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8804 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8805 | |
| 8806 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8807 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8808 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8809 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8810 | _ACEOF |
| 8811 | echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8812 | echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6 |
| 8813 | if test "${ac_cv_lib_curses_waddch+set}" = set; then |
| 8814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8815 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8816 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8817 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8818 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8819 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8820 | /* confdefs.h. */ |
| 8821 | _ACEOF |
| 8822 | cat confdefs.h >>conftest.$ac_ext |
| 8823 | cat >>conftest.$ac_ext <<_ACEOF |
| 8824 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8825 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8826 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8827 | #ifdef __cplusplus |
| 8828 | extern "C" |
| 8829 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8830 | /* 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] | 8831 | builtin and then its argument prototype would still apply. */ |
| 8832 | char waddch (); |
| 8833 | int |
| 8834 | main () |
| 8835 | { |
| 8836 | waddch (); |
| 8837 | ; |
| 8838 | return 0; |
| 8839 | } |
| 8840 | _ACEOF |
| 8841 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8842 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8843 | (eval $ac_link) 2>&5 |
| 8844 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8846 | (exit $ac_status); } && |
| 8847 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8849 | (eval $ac_try) 2>&5 |
| 8850 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8852 | (exit $ac_status); }; }; then |
| 8853 | ac_cv_lib_curses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8854 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8855 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8857 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8858 | ac_cv_lib_curses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8859 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8860 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8861 | LIBS=$ac_check_lib_save_LIBS |
| 8862 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8863 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8864 | echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6 |
| 8865 | if test $ac_cv_lib_curses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8866 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8867 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8868 | #define HAVE_LIBCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8869 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8870 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8871 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8872 | fi |
| 8873 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8874 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8875 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8876 | done |
| 8877 | |
| 8878 | fi |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8879 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8880 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8881 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8882 | done |
| 8883 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8884 | saved_libs="$LIBS" |
| 8885 | LIBS="$CURSESLIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8886 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8887 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8888 | for ac_func in getbkgd resizeterm |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8889 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8890 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8891 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8892 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8893 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8895 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8896 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8897 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8898 | /* confdefs.h. */ |
| 8899 | _ACEOF |
| 8900 | cat confdefs.h >>conftest.$ac_ext |
| 8901 | cat >>conftest.$ac_ext <<_ACEOF |
| 8902 | /* end confdefs.h. */ |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8903 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8904 | which can conflict with char $ac_func (); below. |
| 8905 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8906 | <limits.h> exists even on freestanding compilers. */ |
| 8907 | #ifdef __STDC__ |
| 8908 | # include <limits.h> |
| 8909 | #else |
| 8910 | # include <assert.h> |
| 8911 | #endif |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8912 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8913 | #ifdef __cplusplus |
| 8914 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8915 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8916 | #endif |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8917 | /* 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] | 8918 | builtin and then its argument prototype would still apply. */ |
| 8919 | char $ac_func (); |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8920 | /* The GNU C library defines this for functions which it implements |
| 8921 | to always fail with ENOSYS. Some functions are actually named |
| 8922 | something starting with __ and the normal name is an alias. */ |
| 8923 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8924 | choke me |
| 8925 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8926 | char (*f) () = $ac_func; |
| 8927 | #endif |
| 8928 | #ifdef __cplusplus |
| 8929 | } |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8930 | #endif |
| 8931 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8932 | int |
| 8933 | main () |
| 8934 | { |
| 8935 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8936 | ; |
| 8937 | return 0; |
| 8938 | } |
| 8939 | _ACEOF |
| 8940 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8942 | (eval $ac_link) 2>&5 |
| 8943 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8945 | (exit $ac_status); } && |
| 8946 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8948 | (eval $ac_try) 2>&5 |
| 8949 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8951 | (exit $ac_status); }; }; then |
| 8952 | eval "$as_ac_var=yes" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8953 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8954 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8956 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8957 | eval "$as_ac_var=no" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8958 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8959 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8960 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8961 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8962 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8963 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8964 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8965 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8966 | _ACEOF |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8967 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8968 | fi |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8969 | done |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8970 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8971 | LIBS="$saved_libs" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8972 | fi |
| 8973 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8974 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8975 | # Extract the first word of "sane-config", so it can be a program name with args. |
| 8976 | set dummy sane-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8977 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8978 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8979 | if test "${ac_cv_prog_sane_devel+set}" = set; then |
| 8980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8981 | else |
| 8982 | if test -n "$sane_devel"; then |
| 8983 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. |
| 8984 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8986 | for as_dir in $PATH |
| 8987 | do |
| 8988 | IFS=$as_save_IFS |
| 8989 | test -z "$as_dir" && as_dir=. |
| 8990 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8991 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8992 | ac_cv_prog_sane_devel="sane-config" |
| 8993 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8994 | break 2 |
| 8995 | fi |
| 8996 | done |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8997 | done |
| 8998 | |
| 8999 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" |
| 9000 | fi |
| 9001 | fi |
| 9002 | sane_devel=$ac_cv_prog_sane_devel |
| 9003 | if test -n "$sane_devel"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9004 | echo "$as_me:$LINENO: result: $sane_devel" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9005 | echo "${ECHO_T}$sane_devel" >&6 |
| 9006 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9007 | echo "$as_me:$LINENO: result: no" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9008 | echo "${ECHO_T}no" >&6 |
| 9009 | fi |
| 9010 | |
| 9011 | if test "$sane_devel" = "no" |
| 9012 | then |
| 9013 | SANELIBS="" |
| 9014 | SANEINCL="" |
| 9015 | else |
| 9016 | SANELIBS="`$sane_devel --libs`" |
| 9017 | SANEINCL="`$sane_devel --cflags`" |
| 9018 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9019 | ac_save_LIBS="$LIBS" |
| 9020 | CPPFLAGS="$CPPFLAGS $SANEINCL" |
| 9021 | LIBS="$LIBS $SANELIBS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9022 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 9023 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9024 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 |
| 9025 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 9026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9027 | fi |
| 9028 | echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
| 9029 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9030 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9031 | # Is the header compilable? |
| 9032 | echo "$as_me:$LINENO: checking sane/sane.h usability" >&5 |
| 9033 | echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6 |
| 9034 | cat >conftest.$ac_ext <<_ACEOF |
| 9035 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9036 | /* confdefs.h. */ |
| 9037 | _ACEOF |
| 9038 | cat confdefs.h >>conftest.$ac_ext |
| 9039 | cat >>conftest.$ac_ext <<_ACEOF |
| 9040 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9041 | $ac_includes_default |
| 9042 | #include <sane/sane.h> |
| 9043 | _ACEOF |
| 9044 | rm -f conftest.$ac_objext |
| 9045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9046 | (eval $ac_compile) 2>&5 |
| 9047 | ac_status=$? |
| 9048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9049 | (exit $ac_status); } && |
| 9050 | { ac_try='test -s conftest.$ac_objext' |
| 9051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9052 | (eval $ac_try) 2>&5 |
| 9053 | ac_status=$? |
| 9054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9055 | (exit $ac_status); }; }; then |
| 9056 | ac_header_compiler=yes |
| 9057 | else |
| 9058 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9060 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9061 | ac_header_compiler=no |
| 9062 | fi |
| 9063 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9064 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9065 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9066 | |
| 9067 | # Is the header present? |
| 9068 | echo "$as_me:$LINENO: checking sane/sane.h presence" >&5 |
| 9069 | echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6 |
| 9070 | cat >conftest.$ac_ext <<_ACEOF |
| 9071 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9072 | /* confdefs.h. */ |
| 9073 | _ACEOF |
| 9074 | cat confdefs.h >>conftest.$ac_ext |
| 9075 | cat >>conftest.$ac_ext <<_ACEOF |
| 9076 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9077 | #include <sane/sane.h> |
| 9078 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9079 | 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] | 9080 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9081 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9082 | grep -v '^ *+' conftest.er1 >conftest.err |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9083 | rm -f conftest.er1 |
| 9084 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9086 | (exit $ac_status); } >/dev/null; then |
| 9087 | if test -s conftest.err; then |
| 9088 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9089 | else |
| 9090 | ac_cpp_err= |
| 9091 | fi |
| 9092 | else |
| 9093 | ac_cpp_err=yes |
| 9094 | fi |
| 9095 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9096 | ac_header_preproc=yes |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9097 | else |
| 9098 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9100 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9101 | ac_header_preproc=no |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9102 | fi |
| 9103 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9104 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9105 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9106 | |
| 9107 | # So? What about this header? |
| 9108 | case $ac_header_compiler:$ac_header_preproc in |
| 9109 | yes:no ) |
| 9110 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9111 | echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9112 | { 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] | 9113 | echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;} |
| 9114 | ( |
| 9115 | cat <<\_ASBOX |
| 9116 | ## ------------------------------------ ## |
| 9117 | ## Report this to bug-autoconf@gnu.org. ## |
| 9118 | ## ------------------------------------ ## |
| 9119 | _ASBOX |
| 9120 | ) | |
| 9121 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9122 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9123 | no:yes ) |
| 9124 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5 |
| 9125 | echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;} |
| 9126 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5 |
| 9127 | echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;} |
| 9128 | { 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] | 9129 | echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;} |
| 9130 | ( |
| 9131 | cat <<\_ASBOX |
| 9132 | ## ------------------------------------ ## |
| 9133 | ## Report this to bug-autoconf@gnu.org. ## |
| 9134 | ## ------------------------------------ ## |
| 9135 | _ASBOX |
| 9136 | ) | |
| 9137 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9138 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9139 | esac |
| 9140 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
| 9141 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 |
| 9142 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 9143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9144 | else |
| 9145 | ac_cv_header_sane_sane_h=$ac_header_preproc |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9146 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9147 | 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] | 9148 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9149 | |
| 9150 | fi |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9151 | if test $ac_cv_header_sane_sane_h = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9152 | echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9153 | echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6 |
| 9154 | if test "${ac_cv_lib_sane_sane_open+set}" = set; then |
| 9155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9156 | else |
| 9157 | ac_check_lib_save_LIBS=$LIBS |
| 9158 | LIBS="-lsane $LIBS" |
| 9159 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9160 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9161 | /* confdefs.h. */ |
| 9162 | _ACEOF |
| 9163 | cat confdefs.h >>conftest.$ac_ext |
| 9164 | cat >>conftest.$ac_ext <<_ACEOF |
| 9165 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9166 | |
| 9167 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9168 | #ifdef __cplusplus |
| 9169 | extern "C" |
| 9170 | #endif |
| 9171 | /* We use char because int might match the return type of a gcc2 |
| 9172 | builtin and then its argument prototype would still apply. */ |
| 9173 | char sane_open (); |
| 9174 | int |
| 9175 | main () |
| 9176 | { |
| 9177 | sane_open (); |
| 9178 | ; |
| 9179 | return 0; |
| 9180 | } |
| 9181 | _ACEOF |
| 9182 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9184 | (eval $ac_link) 2>&5 |
| 9185 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9187 | (exit $ac_status); } && |
| 9188 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9190 | (eval $ac_try) 2>&5 |
| 9191 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9193 | (exit $ac_status); }; }; then |
| 9194 | ac_cv_lib_sane_sane_open=yes |
| 9195 | else |
| 9196 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9198 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9199 | ac_cv_lib_sane_sane_open=no |
| 9200 | fi |
| 9201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9202 | LIBS=$ac_check_lib_save_LIBS |
| 9203 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9204 | 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] | 9205 | echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6 |
| 9206 | if test $ac_cv_lib_sane_sane_open = yes; then |
| 9207 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9208 | cat >>confdefs.h <<\_ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9209 | #define HAVE_SANE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9210 | _ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9211 | |
| 9212 | else |
| 9213 | SANELIBS="" |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 9214 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9215 | fi |
| 9216 | |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 9217 | else |
| 9218 | SANELIBS="" |
| 9219 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9220 | fi |
| 9221 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9222 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9223 | LIBS="$ac_save_LIBS" |
| 9224 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9225 | fi |
| 9226 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9227 | |
| 9228 | |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9229 | |
| 9230 | for ac_header in unicode/ubidi.h |
| 9231 | do |
| 9232 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9233 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9234 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9235 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9236 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9238 | fi |
| 9239 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9240 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9241 | else |
| 9242 | # Is the header compilable? |
| 9243 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9244 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9245 | cat >conftest.$ac_ext <<_ACEOF |
| 9246 | #line $LINENO "configure" |
| 9247 | /* confdefs.h. */ |
| 9248 | _ACEOF |
| 9249 | cat confdefs.h >>conftest.$ac_ext |
| 9250 | cat >>conftest.$ac_ext <<_ACEOF |
| 9251 | /* end confdefs.h. */ |
| 9252 | $ac_includes_default |
| 9253 | #include <$ac_header> |
| 9254 | _ACEOF |
| 9255 | rm -f conftest.$ac_objext |
| 9256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9257 | (eval $ac_compile) 2>&5 |
| 9258 | ac_status=$? |
| 9259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9260 | (exit $ac_status); } && |
| 9261 | { ac_try='test -s conftest.$ac_objext' |
| 9262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9263 | (eval $ac_try) 2>&5 |
| 9264 | ac_status=$? |
| 9265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9266 | (exit $ac_status); }; }; then |
| 9267 | ac_header_compiler=yes |
| 9268 | else |
| 9269 | echo "$as_me: failed program was:" >&5 |
| 9270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9271 | |
| 9272 | ac_header_compiler=no |
| 9273 | fi |
| 9274 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9275 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9276 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9277 | |
| 9278 | # Is the header present? |
| 9279 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9280 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9281 | cat >conftest.$ac_ext <<_ACEOF |
| 9282 | #line $LINENO "configure" |
| 9283 | /* confdefs.h. */ |
| 9284 | _ACEOF |
| 9285 | cat confdefs.h >>conftest.$ac_ext |
| 9286 | cat >>conftest.$ac_ext <<_ACEOF |
| 9287 | /* end confdefs.h. */ |
| 9288 | #include <$ac_header> |
| 9289 | _ACEOF |
| 9290 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9291 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9292 | ac_status=$? |
| 9293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9294 | rm -f conftest.er1 |
| 9295 | cat conftest.err >&5 |
| 9296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9297 | (exit $ac_status); } >/dev/null; then |
| 9298 | if test -s conftest.err; then |
| 9299 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9300 | else |
| 9301 | ac_cpp_err= |
| 9302 | fi |
| 9303 | else |
| 9304 | ac_cpp_err=yes |
| 9305 | fi |
| 9306 | if test -z "$ac_cpp_err"; then |
| 9307 | ac_header_preproc=yes |
| 9308 | else |
| 9309 | echo "$as_me: failed program was:" >&5 |
| 9310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9311 | |
| 9312 | ac_header_preproc=no |
| 9313 | fi |
| 9314 | rm -f conftest.err conftest.$ac_ext |
| 9315 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9316 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9317 | |
| 9318 | # So? What about this header? |
| 9319 | case $ac_header_compiler:$ac_header_preproc in |
| 9320 | yes:no ) |
| 9321 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9322 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9323 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9324 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9325 | ( |
| 9326 | cat <<\_ASBOX |
| 9327 | ## ------------------------------------ ## |
| 9328 | ## Report this to bug-autoconf@gnu.org. ## |
| 9329 | ## ------------------------------------ ## |
| 9330 | _ASBOX |
| 9331 | ) | |
| 9332 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9333 | ;; |
| 9334 | no:yes ) |
| 9335 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9336 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9337 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9338 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9339 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9340 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9341 | ( |
| 9342 | cat <<\_ASBOX |
| 9343 | ## ------------------------------------ ## |
| 9344 | ## Report this to bug-autoconf@gnu.org. ## |
| 9345 | ## ------------------------------------ ## |
| 9346 | _ASBOX |
| 9347 | ) | |
| 9348 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9349 | ;; |
| 9350 | esac |
| 9351 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9352 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9353 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9355 | else |
| 9356 | eval "$as_ac_Header=$ac_header_preproc" |
| 9357 | fi |
| 9358 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9359 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9360 | |
| 9361 | fi |
| 9362 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9363 | cat >>confdefs.h <<_ACEOF |
| 9364 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9365 | _ACEOF |
| 9366 | |
| 9367 | fi |
| 9368 | |
| 9369 | done |
| 9370 | |
| 9371 | if test "$ac_cv_header_unicode_ubidi_h" = "yes" |
| 9372 | then |
| 9373 | echo "$as_me:$LINENO: checking whether we can statically link the ICU libraries" >&5 |
| 9374 | echo $ECHO_N "checking whether we can statically link the ICU libraries... $ECHO_C" >&6 |
| 9375 | if test "${ac_cv_lib_icu+set}" = set; then |
| 9376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9377 | else |
| 9378 | saved_libs="$LIBS" |
| 9379 | ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}" |
| 9380 | ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}" |
| 9381 | ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}" |
| 9382 | LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s" |
| 9383 | cat >conftest.$ac_ext <<_ACEOF |
| 9384 | #line $LINENO "configure" |
| 9385 | /* confdefs.h. */ |
| 9386 | _ACEOF |
| 9387 | cat confdefs.h >>conftest.$ac_ext |
| 9388 | cat >>conftest.$ac_ext <<_ACEOF |
| 9389 | /* end confdefs.h. */ |
| 9390 | #include <unicode/ubidi.h> |
| 9391 | int |
| 9392 | main () |
| 9393 | { |
| 9394 | ubidi_open() |
| 9395 | ; |
| 9396 | return 0; |
| 9397 | } |
| 9398 | _ACEOF |
| 9399 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9401 | (eval $ac_link) 2>&5 |
| 9402 | ac_status=$? |
| 9403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9404 | (exit $ac_status); } && |
| 9405 | { ac_try='test -s conftest$ac_exeext' |
| 9406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9407 | (eval $ac_try) 2>&5 |
| 9408 | ac_status=$? |
| 9409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9410 | (exit $ac_status); }; }; then |
| 9411 | ac_cv_lib_icu="yes" |
| 9412 | else |
| 9413 | echo "$as_me: failed program was:" >&5 |
| 9414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9415 | |
| 9416 | ac_cv_lib_icu="no" |
| 9417 | fi |
| 9418 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9419 | LIBS="$saved_libs" |
| 9420 | fi |
| 9421 | echo "$as_me:$LINENO: result: $ac_cv_lib_icu" >&5 |
| 9422 | echo "${ECHO_T}$ac_cv_lib_icu" >&6 |
| 9423 | if test "$ac_cv_lib_icu" = "yes" |
| 9424 | then |
| 9425 | |
| 9426 | cat >>confdefs.h <<\_ACEOF |
| 9427 | #define HAVE_ICU 1 |
| 9428 | _ACEOF |
| 9429 | |
| 9430 | ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s" |
| 9431 | |
| 9432 | fi |
| 9433 | fi |
| 9434 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9435 | echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9436 | echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6 |
| 9437 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then |
| 9438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9439 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9440 | ac_check_lib_save_LIBS=$LIBS |
Dmitry Timoshkov | 8871a11 | 2001-11-06 22:26:53 +0000 | [diff] [blame] | 9441 | LIBS="-lfreetype $X_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9442 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9443 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9444 | /* confdefs.h. */ |
| 9445 | _ACEOF |
| 9446 | cat confdefs.h >>conftest.$ac_ext |
| 9447 | cat >>conftest.$ac_ext <<_ACEOF |
| 9448 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9449 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9450 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9451 | #ifdef __cplusplus |
| 9452 | extern "C" |
| 9453 | #endif |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9454 | /* 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] | 9455 | builtin and then its argument prototype would still apply. */ |
| 9456 | char FT_Init_FreeType (); |
| 9457 | int |
| 9458 | main () |
| 9459 | { |
| 9460 | FT_Init_FreeType (); |
| 9461 | ; |
| 9462 | return 0; |
| 9463 | } |
| 9464 | _ACEOF |
| 9465 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9467 | (eval $ac_link) 2>&5 |
| 9468 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9470 | (exit $ac_status); } && |
| 9471 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9473 | (eval $ac_try) 2>&5 |
| 9474 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9476 | (exit $ac_status); }; }; then |
| 9477 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9478 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9479 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9481 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9482 | ac_cv_lib_freetype_FT_Init_FreeType=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9483 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9484 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9485 | LIBS=$ac_check_lib_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9486 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9487 | 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] | 9488 | echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6 |
| 9489 | if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9490 | ft_lib=yes |
| 9491 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9492 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9493 | fi |
| 9494 | |
| 9495 | if test "$ft_lib" = "no" |
| 9496 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9497 | FREETYPEINCL="" |
| 9498 | wine_cv_msg_freetype=no |
| 9499 | else |
| 9500 | # Extract the first word of "freetype-config", so it can be a program name with args. |
| 9501 | set dummy freetype-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9502 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9503 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9504 | if test "${ac_cv_prog_ft_devel+set}" = set; then |
| 9505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9506 | else |
| 9507 | if test -n "$ft_devel"; then |
| 9508 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 9509 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9511 | for as_dir in $PATH |
| 9512 | do |
| 9513 | IFS=$as_save_IFS |
| 9514 | test -z "$as_dir" && as_dir=. |
| 9515 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9516 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9517 | ac_cv_prog_ft_devel="freetype-config" |
| 9518 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9519 | break 2 |
| 9520 | fi |
| 9521 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9522 | done |
| 9523 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9524 | test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no" |
| 9525 | fi |
| 9526 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9527 | ft_devel=$ac_cv_prog_ft_devel |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9528 | if test -n "$ft_devel"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9529 | echo "$as_me:$LINENO: result: $ft_devel" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9530 | echo "${ECHO_T}$ft_devel" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9531 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9532 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9533 | echo "${ECHO_T}no" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9534 | fi |
| 9535 | |
| 9536 | if test "$ft_devel" = "no" |
| 9537 | then |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9538 | # Extract the first word of "freetype2-config", so it can be a program name with args. |
| 9539 | set dummy freetype2-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9540 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9542 | if test "${ac_cv_prog_ft_devel2+set}" = set; then |
| 9543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9544 | else |
| 9545 | if test -n "$ft_devel2"; then |
| 9546 | ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test. |
| 9547 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9549 | for as_dir in $PATH |
| 9550 | do |
| 9551 | IFS=$as_save_IFS |
| 9552 | test -z "$as_dir" && as_dir=. |
| 9553 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9554 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9555 | ac_cv_prog_ft_devel2="freetype2-config" |
| 9556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9557 | break 2 |
| 9558 | fi |
| 9559 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9560 | done |
| 9561 | |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9562 | test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no" |
| 9563 | fi |
| 9564 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9565 | ft_devel2=$ac_cv_prog_ft_devel2 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9566 | if test -n "$ft_devel2"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9567 | echo "$as_me:$LINENO: result: $ft_devel2" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9568 | echo "${ECHO_T}$ft_devel2" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9569 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9570 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9571 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9572 | fi |
| 9573 | |
| 9574 | if test "$ft_devel2" = "freetype2-config" |
| 9575 | then |
| 9576 | ft_devel=$ft_devel2 |
| 9577 | fi |
| 9578 | fi |
| 9579 | if test "$ft_devel" = "no" |
| 9580 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9581 | FREETYPEINCL="" |
| 9582 | wine_cv_msg_freetype=yes |
| 9583 | else |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9584 | FREETYPEINCL=`$ft_devel --cflags` |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9585 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9586 | CPPFLAGS="$FREETYPEINCL $CPPFLAGS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9587 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9588 | |
| 9589 | |
| 9590 | |
| 9591 | |
| 9592 | |
| 9593 | |
| 9594 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9595 | for ac_header in freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9596 | freetype/ftglyph.h \ |
| 9597 | freetype/tttables.h \ |
| 9598 | freetype/ftnames.h \ |
| 9599 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 9600 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 9601 | freetype/ftoutln.h \ |
| 9602 | freetype/internal/sfnt.h |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9603 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9604 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9605 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9606 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9607 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9608 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9610 | fi |
| 9611 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9612 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9613 | else |
| 9614 | # Is the header compilable? |
| 9615 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9616 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9617 | cat >conftest.$ac_ext <<_ACEOF |
| 9618 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9619 | /* confdefs.h. */ |
| 9620 | _ACEOF |
| 9621 | cat confdefs.h >>conftest.$ac_ext |
| 9622 | cat >>conftest.$ac_ext <<_ACEOF |
| 9623 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9624 | $ac_includes_default |
| 9625 | #include <$ac_header> |
| 9626 | _ACEOF |
| 9627 | rm -f conftest.$ac_objext |
| 9628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9629 | (eval $ac_compile) 2>&5 |
| 9630 | ac_status=$? |
| 9631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9632 | (exit $ac_status); } && |
| 9633 | { ac_try='test -s conftest.$ac_objext' |
| 9634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9635 | (eval $ac_try) 2>&5 |
| 9636 | ac_status=$? |
| 9637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9638 | (exit $ac_status); }; }; then |
| 9639 | ac_header_compiler=yes |
| 9640 | else |
| 9641 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9643 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9644 | ac_header_compiler=no |
| 9645 | fi |
| 9646 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9647 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9648 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9649 | |
| 9650 | # Is the header present? |
| 9651 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9652 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9653 | cat >conftest.$ac_ext <<_ACEOF |
| 9654 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9655 | /* confdefs.h. */ |
| 9656 | _ACEOF |
| 9657 | cat confdefs.h >>conftest.$ac_ext |
| 9658 | cat >>conftest.$ac_ext <<_ACEOF |
| 9659 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9660 | #include <$ac_header> |
| 9661 | _ACEOF |
| 9662 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9663 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9664 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9665 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9666 | rm -f conftest.er1 |
| 9667 | cat conftest.err >&5 |
| 9668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9669 | (exit $ac_status); } >/dev/null; then |
| 9670 | if test -s conftest.err; then |
| 9671 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9672 | else |
| 9673 | ac_cpp_err= |
| 9674 | fi |
| 9675 | else |
| 9676 | ac_cpp_err=yes |
| 9677 | fi |
| 9678 | if test -z "$ac_cpp_err"; then |
| 9679 | ac_header_preproc=yes |
| 9680 | else |
| 9681 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9683 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9684 | ac_header_preproc=no |
| 9685 | fi |
| 9686 | rm -f conftest.err conftest.$ac_ext |
| 9687 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9688 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9689 | |
| 9690 | # So? What about this header? |
| 9691 | case $ac_header_compiler:$ac_header_preproc in |
| 9692 | yes:no ) |
| 9693 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9694 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9695 | { 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] | 9696 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9697 | ( |
| 9698 | cat <<\_ASBOX |
| 9699 | ## ------------------------------------ ## |
| 9700 | ## Report this to bug-autoconf@gnu.org. ## |
| 9701 | ## ------------------------------------ ## |
| 9702 | _ASBOX |
| 9703 | ) | |
| 9704 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9705 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9706 | no:yes ) |
| 9707 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9708 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9709 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9710 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9711 | { 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] | 9712 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9713 | ( |
| 9714 | cat <<\_ASBOX |
| 9715 | ## ------------------------------------ ## |
| 9716 | ## Report this to bug-autoconf@gnu.org. ## |
| 9717 | ## ------------------------------------ ## |
| 9718 | _ASBOX |
| 9719 | ) | |
| 9720 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9721 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9722 | esac |
| 9723 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9724 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9725 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9727 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9728 | eval "$as_ac_Header=$ac_header_preproc" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9729 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9730 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9731 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9732 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9733 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9734 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9735 | cat >>confdefs.h <<_ACEOF |
| 9736 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9737 | _ACEOF |
| 9738 | |
| 9739 | fi |
| 9740 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9741 | done |
| 9742 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9743 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9744 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9745 | /* confdefs.h. */ |
| 9746 | _ACEOF |
| 9747 | cat confdefs.h >>conftest.$ac_ext |
| 9748 | cat >>conftest.$ac_ext <<_ACEOF |
| 9749 | /* end confdefs.h. */ |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 9750 | #include <ft2build.h> |
| 9751 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9752 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9753 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9754 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9755 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9756 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9757 | rm -f conftest.er1 |
| 9758 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9760 | (exit $ac_status); } >/dev/null; then |
| 9761 | if test -s conftest.err; then |
| 9762 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9763 | else |
| 9764 | ac_cpp_err= |
| 9765 | fi |
| 9766 | else |
| 9767 | ac_cpp_err=yes |
| 9768 | fi |
| 9769 | if test -z "$ac_cpp_err"; then |
| 9770 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9771 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 9772 | #define HAVE_FREETYPE_FTTRIGON_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9773 | _ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 9774 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 9775 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 9776 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9777 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9779 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 9780 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 9781 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9782 | rm -f conftest.err conftest.$ac_ext |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9783 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 9784 | 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] | 9785 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9786 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9787 | cat >>confdefs.h <<\_ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 9788 | #define HAVE_FREETYPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9789 | _ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 9790 | |
| 9791 | wine_cv_msg_freetype=no |
| 9792 | else |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 9793 | FREETYPEINCL="" |
| 9794 | wine_cv_msg_freetype=yes |
| 9795 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9796 | fi |
| 9797 | fi |
| 9798 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9799 | |
| 9800 | echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9801 | echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6 |
| 9802 | if test "${ac_cv_c_ppdev+set}" = set; then |
| 9803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 9804 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9805 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9806 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9807 | /* confdefs.h. */ |
| 9808 | _ACEOF |
| 9809 | cat confdefs.h >>conftest.$ac_ext |
| 9810 | cat >>conftest.$ac_ext <<_ACEOF |
| 9811 | /* end confdefs.h. */ |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9812 | #include <linux/ppdev.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9813 | int |
| 9814 | main () |
| 9815 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9816 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9817 | ; |
| 9818 | return 0; |
| 9819 | } |
| 9820 | _ACEOF |
| 9821 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9823 | (eval $ac_compile) 2>&5 |
| 9824 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9826 | (exit $ac_status); } && |
| 9827 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9829 | (eval $ac_try) 2>&5 |
| 9830 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9832 | (exit $ac_status); }; }; then |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9833 | ac_cv_c_ppdev="yes" |
| 9834 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9835 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9837 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9838 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9839 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9840 | rm -f conftest.$ac_objext conftest.$ac_ext |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9841 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9842 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9843 | echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9844 | echo "${ECHO_T}$ac_cv_c_ppdev" >&6 |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9845 | if test "$ac_cv_c_ppdev" = "yes" |
| 9846 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9847 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9848 | cat >>confdefs.h <<\_ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9849 | #define HAVE_PPDEV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9850 | _ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9851 | |
| 9852 | fi |
| 9853 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9854 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
| 9855 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 |
| 9856 | if test "${ac_cv_c_va_copy+set}" = set; then |
| 9857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9858 | else |
| 9859 | cat >conftest.$ac_ext <<_ACEOF |
| 9860 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9861 | /* confdefs.h. */ |
| 9862 | _ACEOF |
| 9863 | cat confdefs.h >>conftest.$ac_ext |
| 9864 | cat >>conftest.$ac_ext <<_ACEOF |
| 9865 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9866 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9867 | int |
| 9868 | main () |
| 9869 | { |
| 9870 | va_list ap1, ap2; |
| 9871 | va_copy(ap1,ap2); |
| 9872 | |
| 9873 | ; |
| 9874 | return 0; |
| 9875 | } |
| 9876 | _ACEOF |
| 9877 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9879 | (eval $ac_link) 2>&5 |
| 9880 | ac_status=$? |
| 9881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9882 | (exit $ac_status); } && |
| 9883 | { ac_try='test -s conftest$ac_exeext' |
| 9884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9885 | (eval $ac_try) 2>&5 |
| 9886 | ac_status=$? |
| 9887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9888 | (exit $ac_status); }; }; then |
| 9889 | ac_cv_c_va_copy="yes" |
| 9890 | else |
| 9891 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9893 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9894 | ac_cv_c_va_copy="no" |
| 9895 | fi |
| 9896 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9897 | |
| 9898 | fi |
| 9899 | echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5 |
| 9900 | echo "${ECHO_T}$ac_cv_c_va_copy" >&6 |
| 9901 | if test "$ac_cv_c_va_copy" = "yes" |
| 9902 | then |
| 9903 | |
| 9904 | cat >>confdefs.h <<\_ACEOF |
| 9905 | #define HAVE_VA_COPY 1 |
| 9906 | _ACEOF |
| 9907 | |
| 9908 | fi |
| 9909 | echo "$as_me:$LINENO: checking for __va_copy" >&5 |
| 9910 | echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6 |
| 9911 | if test "${ac_cv_c___va_copy+set}" = set; then |
| 9912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9913 | else |
| 9914 | cat >conftest.$ac_ext <<_ACEOF |
| 9915 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9916 | /* confdefs.h. */ |
| 9917 | _ACEOF |
| 9918 | cat confdefs.h >>conftest.$ac_ext |
| 9919 | cat >>conftest.$ac_ext <<_ACEOF |
| 9920 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9921 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9922 | int |
| 9923 | main () |
| 9924 | { |
| 9925 | va_list ap1, ap2; |
| 9926 | __va_copy(ap1,ap2); |
| 9927 | |
| 9928 | ; |
| 9929 | return 0; |
| 9930 | } |
| 9931 | _ACEOF |
| 9932 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9934 | (eval $ac_link) 2>&5 |
| 9935 | ac_status=$? |
| 9936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9937 | (exit $ac_status); } && |
| 9938 | { ac_try='test -s conftest$ac_exeext' |
| 9939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9940 | (eval $ac_try) 2>&5 |
| 9941 | ac_status=$? |
| 9942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9943 | (exit $ac_status); }; }; then |
| 9944 | ac_cv_c___va_copy="yes" |
| 9945 | else |
| 9946 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9948 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9949 | ac_cv_c___va_copy="no" |
| 9950 | fi |
| 9951 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9952 | |
| 9953 | fi |
| 9954 | echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5 |
| 9955 | echo "${ECHO_T}$ac_cv_c___va_copy" >&6 |
| 9956 | if test "$ac_cv_c___va_copy" = "yes" |
| 9957 | then |
| 9958 | |
| 9959 | cat >>confdefs.h <<\_ACEOF |
| 9960 | #define HAVE___VA_COPY 1 |
| 9961 | _ACEOF |
| 9962 | |
| 9963 | fi |
| 9964 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9965 | |
| 9966 | |
| 9967 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9968 | for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9969 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9970 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9971 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9972 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9973 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9974 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9976 | fi |
| 9977 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9978 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9979 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9980 | # Is the header compilable? |
| 9981 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9982 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9983 | cat >conftest.$ac_ext <<_ACEOF |
| 9984 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9985 | /* confdefs.h. */ |
| 9986 | _ACEOF |
| 9987 | cat confdefs.h >>conftest.$ac_ext |
| 9988 | cat >>conftest.$ac_ext <<_ACEOF |
| 9989 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9990 | $ac_includes_default |
| 9991 | #include <$ac_header> |
| 9992 | _ACEOF |
| 9993 | rm -f conftest.$ac_objext |
| 9994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9995 | (eval $ac_compile) 2>&5 |
| 9996 | ac_status=$? |
| 9997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9998 | (exit $ac_status); } && |
| 9999 | { ac_try='test -s conftest.$ac_objext' |
| 10000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10001 | (eval $ac_try) 2>&5 |
| 10002 | ac_status=$? |
| 10003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10004 | (exit $ac_status); }; }; then |
| 10005 | ac_header_compiler=yes |
| 10006 | else |
| 10007 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10009 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10010 | ac_header_compiler=no |
| 10011 | fi |
| 10012 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10013 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10014 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10015 | |
| 10016 | # Is the header present? |
| 10017 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10018 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10019 | cat >conftest.$ac_ext <<_ACEOF |
| 10020 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10021 | /* confdefs.h. */ |
| 10022 | _ACEOF |
| 10023 | cat confdefs.h >>conftest.$ac_ext |
| 10024 | cat >>conftest.$ac_ext <<_ACEOF |
| 10025 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10026 | #include <$ac_header> |
| 10027 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10028 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10029 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10030 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10031 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10032 | rm -f conftest.er1 |
| 10033 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10035 | (exit $ac_status); } >/dev/null; then |
| 10036 | if test -s conftest.err; then |
| 10037 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10038 | else |
| 10039 | ac_cpp_err= |
| 10040 | fi |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10041 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10042 | ac_cpp_err=yes |
| 10043 | fi |
| 10044 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10045 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10046 | else |
| 10047 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10049 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10050 | ac_header_preproc=no |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10051 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10052 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10053 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10054 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10055 | |
| 10056 | # So? What about this header? |
| 10057 | case $ac_header_compiler:$ac_header_preproc in |
| 10058 | yes:no ) |
| 10059 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10060 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10061 | { 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] | 10062 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10063 | ( |
| 10064 | cat <<\_ASBOX |
| 10065 | ## ------------------------------------ ## |
| 10066 | ## Report this to bug-autoconf@gnu.org. ## |
| 10067 | ## ------------------------------------ ## |
| 10068 | _ASBOX |
| 10069 | ) | |
| 10070 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10071 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10072 | no:yes ) |
| 10073 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10074 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10075 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10076 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10077 | { 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] | 10078 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10079 | ( |
| 10080 | cat <<\_ASBOX |
| 10081 | ## ------------------------------------ ## |
| 10082 | ## Report this to bug-autoconf@gnu.org. ## |
| 10083 | ## ------------------------------------ ## |
| 10084 | _ASBOX |
| 10085 | ) | |
| 10086 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10087 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10088 | esac |
| 10089 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10090 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10091 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10093 | else |
| 10094 | eval "$as_ac_Header=$ac_header_preproc" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10095 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10096 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10097 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10098 | |
| 10099 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10100 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10101 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10102 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10103 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 10104 | break |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10105 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10106 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10107 | done |
| 10108 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10109 | |
| 10110 | echo "$as_me:$LINENO: checking for Open Sound System" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10111 | echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6 |
| 10112 | if test "${ac_cv_c_opensoundsystem+set}" = set; then |
| 10113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10114 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10115 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10116 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10117 | /* confdefs.h. */ |
| 10118 | _ACEOF |
| 10119 | cat confdefs.h >>conftest.$ac_ext |
| 10120 | cat >>conftest.$ac_ext <<_ACEOF |
| 10121 | /* end confdefs.h. */ |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10122 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 10123 | #if defined(HAVE_SYS_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10124 | #include <sys/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 10125 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10126 | #include <machine/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 10127 | #elif defined(HAVE_SOUNDCARD_H) |
| 10128 | #include <soundcard.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10129 | #endif |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10130 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10131 | int |
| 10132 | main () |
| 10133 | { |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10134 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10135 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 10136 | /* check for one of the Open Sound System specific SNDCTL_ defines */ |
| 10137 | #if !defined(SNDCTL_DSP_STEREO) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10138 | #error No open sound system |
| 10139 | #endif |
| 10140 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10141 | ; |
| 10142 | return 0; |
| 10143 | } |
| 10144 | _ACEOF |
| 10145 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10147 | (eval $ac_compile) 2>&5 |
| 10148 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10150 | (exit $ac_status); } && |
| 10151 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10153 | (eval $ac_try) 2>&5 |
| 10154 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10156 | (exit $ac_status); }; }; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10157 | ac_cv_c_opensoundsystem="yes" |
| 10158 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10159 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10161 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10162 | ac_cv_c_opensoundsystem="no" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10163 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10164 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10165 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10166 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10167 | echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10168 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 10169 | if test "$ac_cv_c_opensoundsystem" = "yes" |
| 10170 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10171 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10172 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 10173 | #define HAVE_OSS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10174 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 10175 | |
| 10176 | fi |
| 10177 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10178 | echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10179 | echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6 |
| 10180 | if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then |
| 10181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10182 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10183 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10184 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10185 | /* confdefs.h. */ |
| 10186 | _ACEOF |
| 10187 | cat confdefs.h >>conftest.$ac_ext |
| 10188 | cat >>conftest.$ac_ext <<_ACEOF |
| 10189 | /* end confdefs.h. */ |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10190 | |
| 10191 | #if defined(HAVE_SYS_SOUNDCARD_H) |
| 10192 | #include <sys/soundcard.h> |
| 10193 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
| 10194 | #include <machine/soundcard.h> |
| 10195 | #elif defined(HAVE_SOUNDCARD_H) |
| 10196 | #include <soundcard.h> |
| 10197 | #endif |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10198 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10199 | int |
| 10200 | main () |
| 10201 | { |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10202 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10203 | |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10204 | /* check for one of the Open Sound System specific SNDCTL_SEQ defines */ |
| 10205 | #if !defined(SNDCTL_SEQ_SYNC) |
| 10206 | #error No open sound system MIDI interface |
| 10207 | #endif |
| 10208 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10209 | ; |
| 10210 | return 0; |
| 10211 | } |
| 10212 | _ACEOF |
| 10213 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10215 | (eval $ac_compile) 2>&5 |
| 10216 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10218 | (exit $ac_status); } && |
| 10219 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10221 | (eval $ac_try) 2>&5 |
| 10222 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10224 | (exit $ac_status); }; }; then |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10225 | ac_cv_c_opensoundsystem_midi="yes" |
| 10226 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10227 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10229 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10230 | ac_cv_c_opensoundsystem_midi="no" |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10231 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10232 | rm -f conftest.$ac_objext conftest.$ac_ext |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10233 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10234 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10235 | echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10236 | |
| 10237 | if test "$ac_cv_c_opensoundsystem_midi" = "yes" |
| 10238 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10239 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10240 | cat >>confdefs.h <<\_ACEOF |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10241 | #define HAVE_OSS_MIDI 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10242 | _ACEOF |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 10243 | |
| 10244 | fi |
| 10245 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10246 | # Extract the first word of "artsc-config", so it can be a program name with args. |
| 10247 | set dummy artsc-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10248 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10249 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10250 | if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then |
| 10251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10252 | else |
| 10253 | case $ARTSCCONFIG in |
| 10254 | [\\/]* | ?:[\\/]*) |
| 10255 | ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path. |
| 10256 | ;; |
| 10257 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10259 | for as_dir in $PATH |
| 10260 | do |
| 10261 | IFS=$as_save_IFS |
| 10262 | test -z "$as_dir" && as_dir=. |
| 10263 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10264 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10265 | ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 10266 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10267 | break 2 |
| 10268 | fi |
| 10269 | done |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10270 | done |
| 10271 | |
| 10272 | ;; |
| 10273 | esac |
| 10274 | fi |
| 10275 | ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG |
| 10276 | |
| 10277 | if test -n "$ARTSCCONFIG"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10278 | echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10279 | echo "${ECHO_T}$ARTSCCONFIG" >&6 |
| 10280 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10281 | echo "$as_me:$LINENO: result: no" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10282 | echo "${ECHO_T}no" >&6 |
| 10283 | fi |
| 10284 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10285 | echo "$as_me:$LINENO: checking for aRts Sound server" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10286 | echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6 |
| 10287 | if test "${ac_cv_c_artsserver+set}" = set; then |
| 10288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10289 | else |
| 10290 | if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"'; |
| 10291 | then |
| 10292 | ac_cv_c_artsserver=no |
| 10293 | else |
| 10294 | ARTSC_CFLAGS=`$ARTSCCONFIG --cflags` |
| 10295 | ARTSC_LIBS=`$ARTSCCONFIG --libs` |
| 10296 | ac_cv_c_artsserver=no |
| 10297 | save_CFLAGS="$CFLAGS" |
| 10298 | CFLAGS="$CFLAGS $ARTSC_CFLAGS" |
| 10299 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10300 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10301 | /* confdefs.h. */ |
| 10302 | _ACEOF |
| 10303 | cat confdefs.h >>conftest.$ac_ext |
| 10304 | cat >>conftest.$ac_ext <<_ACEOF |
| 10305 | /* end confdefs.h. */ |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10306 | |
| 10307 | #include <artsc.h> |
| 10308 | |
| 10309 | int |
| 10310 | main () |
| 10311 | { |
| 10312 | |
| 10313 | arts_stream_t stream; |
| 10314 | |
| 10315 | ; |
| 10316 | return 0; |
| 10317 | } |
| 10318 | _ACEOF |
| 10319 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10321 | (eval $ac_compile) 2>&5 |
| 10322 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10324 | (exit $ac_status); } && |
| 10325 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10327 | (eval $ac_try) 2>&5 |
| 10328 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10330 | (exit $ac_status); }; }; then |
| 10331 | |
| 10332 | ac_cv_c_artsserver=yes |
| 10333 | |
| 10334 | else |
| 10335 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10337 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10338 | fi |
| 10339 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10340 | CFLAGS="$save_CFLAGS" |
| 10341 | fi |
| 10342 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10343 | echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10344 | echo "${ECHO_T}$ac_cv_c_artsserver" >&6 |
| 10345 | |
| 10346 | if test "$ac_cv_c_artsserver" = "yes" |
| 10347 | then |
| 10348 | ARTSLIBS=$ARTSC_LIBS |
| 10349 | |
| 10350 | ARTSINCL=$ARTSC_CFLAGS |
| 10351 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10352 | |
| 10353 | |
| 10354 | cat >>confdefs.h <<\_ACEOF |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10355 | #define HAVE_ARTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10356 | _ACEOF |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 10357 | |
| 10358 | fi |
| 10359 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10360 | ALSALIBS="" |
| 10361 | |
| 10362 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 10363 | |
| 10364 | for ac_header in alsa/asoundlib.h sys/asoundlib.h |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10365 | do |
| 10366 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10367 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10368 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10369 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10370 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10372 | fi |
| 10373 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10374 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10375 | else |
| 10376 | # Is the header compilable? |
| 10377 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10378 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10379 | cat >conftest.$ac_ext <<_ACEOF |
| 10380 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10381 | /* confdefs.h. */ |
| 10382 | _ACEOF |
| 10383 | cat confdefs.h >>conftest.$ac_ext |
| 10384 | cat >>conftest.$ac_ext <<_ACEOF |
| 10385 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10386 | $ac_includes_default |
| 10387 | #include <$ac_header> |
| 10388 | _ACEOF |
| 10389 | rm -f conftest.$ac_objext |
| 10390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10391 | (eval $ac_compile) 2>&5 |
| 10392 | ac_status=$? |
| 10393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10394 | (exit $ac_status); } && |
| 10395 | { ac_try='test -s conftest.$ac_objext' |
| 10396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10397 | (eval $ac_try) 2>&5 |
| 10398 | ac_status=$? |
| 10399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10400 | (exit $ac_status); }; }; then |
| 10401 | ac_header_compiler=yes |
| 10402 | else |
| 10403 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10405 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10406 | ac_header_compiler=no |
| 10407 | fi |
| 10408 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10409 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10410 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10411 | |
| 10412 | # Is the header present? |
| 10413 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10414 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10415 | cat >conftest.$ac_ext <<_ACEOF |
| 10416 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10417 | /* confdefs.h. */ |
| 10418 | _ACEOF |
| 10419 | cat confdefs.h >>conftest.$ac_ext |
| 10420 | cat >>conftest.$ac_ext <<_ACEOF |
| 10421 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10422 | #include <$ac_header> |
| 10423 | _ACEOF |
| 10424 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10425 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10426 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10427 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10428 | rm -f conftest.er1 |
| 10429 | cat conftest.err >&5 |
| 10430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10431 | (exit $ac_status); } >/dev/null; then |
| 10432 | if test -s conftest.err; then |
| 10433 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10434 | else |
| 10435 | ac_cpp_err= |
| 10436 | fi |
| 10437 | else |
| 10438 | ac_cpp_err=yes |
| 10439 | fi |
| 10440 | if test -z "$ac_cpp_err"; then |
| 10441 | ac_header_preproc=yes |
| 10442 | else |
| 10443 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10445 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10446 | ac_header_preproc=no |
| 10447 | fi |
| 10448 | rm -f conftest.err conftest.$ac_ext |
| 10449 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10450 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10451 | |
| 10452 | # So? What about this header? |
| 10453 | case $ac_header_compiler:$ac_header_preproc in |
| 10454 | yes:no ) |
| 10455 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10456 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10457 | { 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] | 10458 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10459 | ( |
| 10460 | cat <<\_ASBOX |
| 10461 | ## ------------------------------------ ## |
| 10462 | ## Report this to bug-autoconf@gnu.org. ## |
| 10463 | ## ------------------------------------ ## |
| 10464 | _ASBOX |
| 10465 | ) | |
| 10466 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10467 | ;; |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10468 | no:yes ) |
| 10469 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10470 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10471 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10472 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10473 | { 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] | 10474 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10475 | ( |
| 10476 | cat <<\_ASBOX |
| 10477 | ## ------------------------------------ ## |
| 10478 | ## Report this to bug-autoconf@gnu.org. ## |
| 10479 | ## ------------------------------------ ## |
| 10480 | _ASBOX |
| 10481 | ) | |
| 10482 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10483 | ;; |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10484 | esac |
| 10485 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10486 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10487 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10489 | else |
| 10490 | eval "$as_ac_Header=$ac_header_preproc" |
| 10491 | fi |
| 10492 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10493 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10494 | |
| 10495 | fi |
| 10496 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10497 | cat >>confdefs.h <<_ACEOF |
| 10498 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10499 | _ACEOF |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 10500 | break |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10501 | fi |
| 10502 | |
| 10503 | done |
| 10504 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 10505 | 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] | 10506 | then |
| 10507 | echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5 |
| 10508 | echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6 |
| 10509 | if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then |
| 10510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10511 | else |
| 10512 | ac_check_lib_save_LIBS=$LIBS |
| 10513 | LIBS="-lasound $LIBS" |
| 10514 | cat >conftest.$ac_ext <<_ACEOF |
| 10515 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10516 | /* confdefs.h. */ |
| 10517 | _ACEOF |
| 10518 | cat confdefs.h >>conftest.$ac_ext |
| 10519 | cat >>conftest.$ac_ext <<_ACEOF |
| 10520 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10521 | |
| 10522 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10523 | #ifdef __cplusplus |
| 10524 | extern "C" |
| 10525 | #endif |
| 10526 | /* We use char because int might match the return type of a gcc2 |
| 10527 | builtin and then its argument prototype would still apply. */ |
| 10528 | char snd_pcm_open (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10529 | int |
| 10530 | main () |
| 10531 | { |
| 10532 | snd_pcm_open (); |
| 10533 | ; |
| 10534 | return 0; |
| 10535 | } |
| 10536 | _ACEOF |
| 10537 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10539 | (eval $ac_link) 2>&5 |
| 10540 | ac_status=$? |
| 10541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10542 | (exit $ac_status); } && |
| 10543 | { ac_try='test -s conftest$ac_exeext' |
| 10544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10545 | (eval $ac_try) 2>&5 |
| 10546 | ac_status=$? |
| 10547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10548 | (exit $ac_status); }; }; then |
| 10549 | ac_cv_lib_asound_snd_pcm_open=yes |
| 10550 | else |
| 10551 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10553 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10554 | ac_cv_lib_asound_snd_pcm_open=no |
| 10555 | fi |
| 10556 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10557 | LIBS=$ac_check_lib_save_LIBS |
| 10558 | fi |
| 10559 | echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5 |
| 10560 | echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6 |
| 10561 | if test $ac_cv_lib_asound_snd_pcm_open = yes; then |
| 10562 | |
| 10563 | cat >>confdefs.h <<\_ACEOF |
| 10564 | #define HAVE_ALSA 1 |
| 10565 | _ACEOF |
| 10566 | |
| 10567 | ALSALIBS="-lasound" |
| 10568 | fi |
| 10569 | |
| 10570 | fi |
| 10571 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10572 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10573 | AUDIOIOLIBS="" |
| 10574 | |
| 10575 | |
| 10576 | for ac_header in libaudioio.h |
| 10577 | do |
| 10578 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10579 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10580 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10581 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10582 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10584 | fi |
| 10585 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10586 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10587 | else |
| 10588 | # Is the header compilable? |
| 10589 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10590 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10591 | cat >conftest.$ac_ext <<_ACEOF |
| 10592 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10593 | /* confdefs.h. */ |
| 10594 | _ACEOF |
| 10595 | cat confdefs.h >>conftest.$ac_ext |
| 10596 | cat >>conftest.$ac_ext <<_ACEOF |
| 10597 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10598 | $ac_includes_default |
| 10599 | #include <$ac_header> |
| 10600 | _ACEOF |
| 10601 | rm -f conftest.$ac_objext |
| 10602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10603 | (eval $ac_compile) 2>&5 |
| 10604 | ac_status=$? |
| 10605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10606 | (exit $ac_status); } && |
| 10607 | { ac_try='test -s conftest.$ac_objext' |
| 10608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10609 | (eval $ac_try) 2>&5 |
| 10610 | ac_status=$? |
| 10611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10612 | (exit $ac_status); }; }; then |
| 10613 | ac_header_compiler=yes |
| 10614 | else |
| 10615 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10617 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10618 | ac_header_compiler=no |
| 10619 | fi |
| 10620 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10621 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10622 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10623 | |
| 10624 | # Is the header present? |
| 10625 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10626 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10627 | cat >conftest.$ac_ext <<_ACEOF |
| 10628 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10629 | /* confdefs.h. */ |
| 10630 | _ACEOF |
| 10631 | cat confdefs.h >>conftest.$ac_ext |
| 10632 | cat >>conftest.$ac_ext <<_ACEOF |
| 10633 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10634 | #include <$ac_header> |
| 10635 | _ACEOF |
| 10636 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10637 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10638 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10639 | grep -v '^ *+' conftest.er1 >conftest.err |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10640 | rm -f conftest.er1 |
| 10641 | cat conftest.err >&5 |
| 10642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10643 | (exit $ac_status); } >/dev/null; then |
| 10644 | if test -s conftest.err; then |
| 10645 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10646 | else |
| 10647 | ac_cpp_err= |
| 10648 | fi |
| 10649 | else |
| 10650 | ac_cpp_err=yes |
| 10651 | fi |
| 10652 | if test -z "$ac_cpp_err"; then |
| 10653 | ac_header_preproc=yes |
| 10654 | else |
| 10655 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10657 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10658 | ac_header_preproc=no |
| 10659 | fi |
| 10660 | rm -f conftest.err conftest.$ac_ext |
| 10661 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10662 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10663 | |
| 10664 | # So? What about this header? |
| 10665 | case $ac_header_compiler:$ac_header_preproc in |
| 10666 | yes:no ) |
| 10667 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10668 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10669 | { 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] | 10670 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10671 | ( |
| 10672 | cat <<\_ASBOX |
| 10673 | ## ------------------------------------ ## |
| 10674 | ## Report this to bug-autoconf@gnu.org. ## |
| 10675 | ## ------------------------------------ ## |
| 10676 | _ASBOX |
| 10677 | ) | |
| 10678 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10679 | ;; |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10680 | no:yes ) |
| 10681 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10682 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10683 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10684 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10685 | { 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] | 10686 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10687 | ( |
| 10688 | cat <<\_ASBOX |
| 10689 | ## ------------------------------------ ## |
| 10690 | ## Report this to bug-autoconf@gnu.org. ## |
| 10691 | ## ------------------------------------ ## |
| 10692 | _ASBOX |
| 10693 | ) | |
| 10694 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10695 | ;; |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10696 | esac |
| 10697 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10698 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10699 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10701 | else |
| 10702 | eval "$as_ac_Header=$ac_header_preproc" |
| 10703 | fi |
| 10704 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10705 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10706 | |
| 10707 | fi |
| 10708 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10709 | cat >>confdefs.h <<_ACEOF |
| 10710 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10711 | _ACEOF |
| 10712 | echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5 |
| 10713 | echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6 |
| 10714 | if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then |
| 10715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10716 | else |
| 10717 | ac_check_lib_save_LIBS=$LIBS |
| 10718 | LIBS="-laudioio $LIBS" |
| 10719 | cat >conftest.$ac_ext <<_ACEOF |
| 10720 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10721 | /* confdefs.h. */ |
| 10722 | _ACEOF |
| 10723 | cat confdefs.h >>conftest.$ac_ext |
| 10724 | cat >>conftest.$ac_ext <<_ACEOF |
| 10725 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10726 | |
| 10727 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10728 | #ifdef __cplusplus |
| 10729 | extern "C" |
| 10730 | #endif |
| 10731 | /* We use char because int might match the return type of a gcc2 |
| 10732 | builtin and then its argument prototype would still apply. */ |
| 10733 | char AudioIOGetVersion (); |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10734 | int |
| 10735 | main () |
| 10736 | { |
| 10737 | AudioIOGetVersion (); |
| 10738 | ; |
| 10739 | return 0; |
| 10740 | } |
| 10741 | _ACEOF |
| 10742 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10744 | (eval $ac_link) 2>&5 |
| 10745 | ac_status=$? |
| 10746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10747 | (exit $ac_status); } && |
| 10748 | { ac_try='test -s conftest$ac_exeext' |
| 10749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10750 | (eval $ac_try) 2>&5 |
| 10751 | ac_status=$? |
| 10752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10753 | (exit $ac_status); }; }; then |
| 10754 | ac_cv_lib_audioio_AudioIOGetVersion=yes |
| 10755 | else |
| 10756 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10758 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10759 | ac_cv_lib_audioio_AudioIOGetVersion=no |
| 10760 | fi |
| 10761 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10762 | LIBS=$ac_check_lib_save_LIBS |
| 10763 | fi |
| 10764 | echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5 |
| 10765 | echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6 |
| 10766 | if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then |
| 10767 | AUDIOIOLIBS="-laudioio" |
| 10768 | |
| 10769 | cat >>confdefs.h <<\_ACEOF |
| 10770 | #define HAVE_LIBAUDIOIO 1 |
| 10771 | _ACEOF |
| 10772 | |
| 10773 | fi |
| 10774 | |
| 10775 | fi |
| 10776 | |
| 10777 | done |
| 10778 | |
| 10779 | |
| 10780 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10781 | echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10782 | echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6 |
| 10783 | if test "${ac_cv_mmap64_works+set}" = set; then |
| 10784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10785 | else |
| 10786 | if test "$cross_compiling" = yes; then |
| 10787 | ac_cv_mmap64_works="no" |
| 10788 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10789 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10790 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10791 | /* confdefs.h. */ |
| 10792 | _ACEOF |
| 10793 | cat confdefs.h >>conftest.$ac_ext |
| 10794 | cat >>conftest.$ac_ext <<_ACEOF |
| 10795 | /* end confdefs.h. */ |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10796 | |
| 10797 | #define _FILE_OFFSET_BITS 64 |
| 10798 | #include <stdio.h> |
| 10799 | #include <unistd.h> |
| 10800 | #include <fcntl.h> |
| 10801 | #include <sys/mman.h> |
| 10802 | #include <errno.h> |
| 10803 | |
| 10804 | int main(int argc,char **argv) { |
| 10805 | int fd = open("conftest.map",O_CREAT|O_RDWR,0600); |
| 10806 | if (fd == -1) exit(1); |
| 10807 | |
| 10808 | unlink("conftest.map"); |
| 10809 | |
| 10810 | write(fd,"test",4); |
| 10811 | |
| 10812 | if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) && |
| 10813 | (errno == EINVAL) |
| 10814 | ) { |
| 10815 | exit(1); |
| 10816 | } |
| 10817 | close(fd); |
| 10818 | fprintf(stderr,"success!\n"); |
| 10819 | exit(0); |
| 10820 | } |
| 10821 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10822 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10823 | _ACEOF |
| 10824 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10826 | (eval $ac_link) 2>&5 |
| 10827 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10829 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10831 | (eval $ac_try) 2>&5 |
| 10832 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10834 | (exit $ac_status); }; }; then |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10835 | ac_cv_mmap64_works="yes" |
| 10836 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10837 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10838 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10840 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10841 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10842 | ac_cv_mmap64_works="no" |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10843 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10844 | rm -f core 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] | 10845 | fi |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10846 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10847 | echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10848 | echo "${ECHO_T}$ac_cv_mmap64_works" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10849 | |
| 10850 | if test "$ac_cv_mmap64_works" = "yes" |
| 10851 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10852 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10853 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10854 | #define _FILE_OFFSET_BITS 64 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10855 | _ACEOF |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10856 | |
| 10857 | fi |
| 10858 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10859 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 10860 | EXTRACFLAGS="" |
| 10861 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10862 | if test "x${GCC}" = "xyes" |
| 10863 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 10864 | EXTRACFLAGS=-Wall |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 10865 | |
| 10866 | echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10867 | echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6 |
| 10868 | if test "${ac_cv_c_gcc_strength_bug+set}" = set; then |
| 10869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10870 | else |
| 10871 | if test "$cross_compiling" = yes; then |
| 10872 | ac_cv_c_gcc_strength_bug="yes" |
| 10873 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10874 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10875 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10876 | /* confdefs.h. */ |
| 10877 | _ACEOF |
| 10878 | cat confdefs.h >>conftest.$ac_ext |
| 10879 | cat >>conftest.$ac_ext <<_ACEOF |
| 10880 | /* end confdefs.h. */ |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10881 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 10882 | int L[4] = {0,1,2,3}; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10883 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 10884 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10885 | unsigned int B = 3; |
| 10886 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 10887 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 10888 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 10889 | L[i] = 4; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10890 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 10891 | exit( Array[1] != -2 || L[2] != 3); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10892 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10893 | _ACEOF |
| 10894 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10896 | (eval $ac_link) 2>&5 |
| 10897 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10899 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10901 | (eval $ac_try) 2>&5 |
| 10902 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10904 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10905 | ac_cv_c_gcc_strength_bug="no" |
| 10906 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10907 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10908 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10910 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10911 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10912 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10913 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10914 | rm -f core 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] | 10915 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10916 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10917 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10918 | echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10919 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 10920 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 10921 | EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10922 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10923 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10924 | 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] | 10925 | echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6 |
| 10926 | if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then |
| 10927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10928 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10929 | ac_wine_try_cflags_saved=$CFLAGS |
| 10930 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" |
| 10931 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10932 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10933 | /* confdefs.h. */ |
| 10934 | _ACEOF |
| 10935 | cat confdefs.h >>conftest.$ac_ext |
| 10936 | cat >>conftest.$ac_ext <<_ACEOF |
| 10937 | /* end confdefs.h. */ |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10938 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10939 | int |
| 10940 | main () |
| 10941 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10942 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10943 | ; |
| 10944 | return 0; |
| 10945 | } |
| 10946 | _ACEOF |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10947 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10949 | (eval $ac_link) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10950 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10952 | (exit $ac_status); } && |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10953 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10955 | (eval $ac_try) 2>&5 |
| 10956 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10958 | (exit $ac_status); }; }; then |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10959 | ac_cv_c_gcc_stack_boundary="yes" |
| 10960 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10961 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10963 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10964 | ac_cv_c_gcc_stack_boundary="no" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10965 | fi |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10966 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10967 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10968 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10969 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10970 | echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10971 | if test "$ac_cv_c_gcc_stack_boundary" = "yes" |
| 10972 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 10973 | EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10974 | fi |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 10975 | |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 10976 | echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5 |
| 10977 | echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6 |
| 10978 | if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then |
| 10979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10980 | else |
| 10981 | ac_wine_try_cflags_saved=$CFLAGS |
| 10982 | CFLAGS="$CFLAGS -fno-strict-aliasing" |
| 10983 | cat >conftest.$ac_ext <<_ACEOF |
| 10984 | #line $LINENO "configure" |
| 10985 | /* confdefs.h. */ |
| 10986 | _ACEOF |
| 10987 | cat confdefs.h >>conftest.$ac_ext |
| 10988 | cat >>conftest.$ac_ext <<_ACEOF |
| 10989 | /* end confdefs.h. */ |
| 10990 | |
| 10991 | int |
| 10992 | main () |
| 10993 | { |
| 10994 | |
| 10995 | ; |
| 10996 | return 0; |
| 10997 | } |
| 10998 | _ACEOF |
| 10999 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11001 | (eval $ac_link) 2>&5 |
| 11002 | ac_status=$? |
| 11003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11004 | (exit $ac_status); } && |
| 11005 | { ac_try='test -s conftest$ac_exeext' |
| 11006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11007 | (eval $ac_try) 2>&5 |
| 11008 | ac_status=$? |
| 11009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11010 | (exit $ac_status); }; }; then |
| 11011 | ac_cv_c_gcc_no_strict_aliasing="yes" |
| 11012 | else |
| 11013 | echo "$as_me: failed program was:" >&5 |
| 11014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11015 | |
| 11016 | ac_cv_c_gcc_no_strict_aliasing="no" |
| 11017 | fi |
| 11018 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11019 | CFLAGS=$ac_wine_try_cflags_saved |
| 11020 | fi |
| 11021 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5 |
| 11022 | echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6 |
| 11023 | if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes" |
| 11024 | then |
| 11025 | EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing" |
| 11026 | fi |
| 11027 | |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 11028 | echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5 |
| 11029 | echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6 |
| 11030 | if test "${ac_cv_c_gcc_gstabs+set}" = set; then |
| 11031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11032 | else |
| 11033 | ac_wine_try_cflags_saved=$CFLAGS |
| 11034 | CFLAGS="$CFLAGS -gstabs+" |
| 11035 | cat >conftest.$ac_ext <<_ACEOF |
| 11036 | #line $LINENO "configure" |
| 11037 | /* confdefs.h. */ |
| 11038 | _ACEOF |
| 11039 | cat confdefs.h >>conftest.$ac_ext |
| 11040 | cat >>conftest.$ac_ext <<_ACEOF |
| 11041 | /* end confdefs.h. */ |
| 11042 | |
| 11043 | int |
| 11044 | main () |
| 11045 | { |
| 11046 | |
| 11047 | ; |
| 11048 | return 0; |
| 11049 | } |
| 11050 | _ACEOF |
| 11051 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11052 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11053 | (eval $ac_link) 2>&5 |
| 11054 | ac_status=$? |
| 11055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11056 | (exit $ac_status); } && |
| 11057 | { ac_try='test -s conftest$ac_exeext' |
| 11058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11059 | (eval $ac_try) 2>&5 |
| 11060 | ac_status=$? |
| 11061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11062 | (exit $ac_status); }; }; then |
| 11063 | ac_cv_c_gcc_gstabs="yes" |
| 11064 | else |
| 11065 | echo "$as_me: failed program was:" >&5 |
| 11066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11067 | |
| 11068 | ac_cv_c_gcc_gstabs="no" |
| 11069 | fi |
| 11070 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11071 | CFLAGS=$ac_wine_try_cflags_saved |
| 11072 | fi |
| 11073 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5 |
| 11074 | echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6 |
| 11075 | if test "$ac_cv_c_gcc_gstabs" = "yes" |
| 11076 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 11077 | EXTRACFLAGS="$EXTRACFLAGS -gstabs+" |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 11078 | fi |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 11079 | |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 11080 | saved_CFLAGS="$CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 11081 | CFLAGS="$CFLAGS -Wpointer-arith -Werror" |
| 11082 | echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5 |
| 11083 | echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6 |
| 11084 | if test "${ac_cv_c_string_h_warnings+set}" = set; then |
| 11085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11086 | else |
| 11087 | cat >conftest.$ac_ext <<_ACEOF |
| 11088 | #line $LINENO "configure" |
| 11089 | /* confdefs.h. */ |
| 11090 | _ACEOF |
| 11091 | cat confdefs.h >>conftest.$ac_ext |
| 11092 | cat >>conftest.$ac_ext <<_ACEOF |
| 11093 | /* end confdefs.h. */ |
| 11094 | #include <string.h> |
| 11095 | int |
| 11096 | main () |
| 11097 | { |
| 11098 | |
| 11099 | ; |
| 11100 | return 0; |
| 11101 | } |
| 11102 | _ACEOF |
| 11103 | rm -f conftest.$ac_objext |
| 11104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11105 | (eval $ac_compile) 2>&5 |
| 11106 | ac_status=$? |
| 11107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11108 | (exit $ac_status); } && |
| 11109 | { ac_try='test -s conftest.$ac_objext' |
| 11110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11111 | (eval $ac_try) 2>&5 |
| 11112 | ac_status=$? |
| 11113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11114 | (exit $ac_status); }; }; then |
| 11115 | ac_cv_c_string_h_warnings=no |
| 11116 | else |
| 11117 | echo "$as_me: failed program was:" >&5 |
| 11118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11119 | |
| 11120 | ac_cv_c_string_h_warnings=yes |
| 11121 | fi |
| 11122 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11123 | fi |
| 11124 | echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5 |
| 11125 | echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6 |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 11126 | CFLAGS="$saved_CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 11127 | if test "$ac_cv_c_string_h_warnings" = "no" |
| 11128 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 11129 | EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 11130 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 11131 | fi |
| 11132 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11133 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11134 | echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5 |
| 11135 | echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6 |
| 11136 | if test "${ac_cv_asm_func_def+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 11138 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11139 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11140 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11141 | /* confdefs.h. */ |
| 11142 | _ACEOF |
| 11143 | cat confdefs.h >>conftest.$ac_ext |
| 11144 | cat >>conftest.$ac_ext <<_ACEOF |
| 11145 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 11146 | 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] | 11147 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11148 | int |
| 11149 | main () |
| 11150 | { |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 11151 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11152 | ; |
| 11153 | return 0; |
| 11154 | } |
| 11155 | _ACEOF |
| 11156 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11158 | (eval $ac_link) 2>&5 |
| 11159 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11161 | (exit $ac_status); } && |
| 11162 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11164 | (eval $ac_try) 2>&5 |
| 11165 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11167 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11168 | ac_cv_asm_func_def=".def" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 11169 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11170 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11172 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 11173 | cat >conftest.$ac_ext <<_ACEOF |
| 11174 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11175 | /* confdefs.h. */ |
| 11176 | _ACEOF |
| 11177 | cat confdefs.h >>conftest.$ac_ext |
| 11178 | cat >>conftest.$ac_ext <<_ACEOF |
| 11179 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 11180 | 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] | 11181 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 11182 | int |
| 11183 | main () |
| 11184 | { |
| 11185 | |
| 11186 | ; |
| 11187 | return 0; |
| 11188 | } |
| 11189 | _ACEOF |
| 11190 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11192 | (eval $ac_link) 2>&5 |
| 11193 | ac_status=$? |
| 11194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11195 | (exit $ac_status); } && |
| 11196 | { ac_try='test -s conftest$ac_exeext' |
| 11197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11198 | (eval $ac_try) 2>&5 |
| 11199 | ac_status=$? |
| 11200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11201 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11202 | ac_cv_asm_func_def=".type @function" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 11203 | else |
| 11204 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11206 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11207 | cat >conftest.$ac_ext <<_ACEOF |
| 11208 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11209 | /* confdefs.h. */ |
| 11210 | _ACEOF |
| 11211 | cat confdefs.h >>conftest.$ac_ext |
| 11212 | cat >>conftest.$ac_ext <<_ACEOF |
| 11213 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 11214 | 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] | 11215 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11216 | int |
| 11217 | main () |
| 11218 | { |
| 11219 | |
| 11220 | ; |
| 11221 | return 0; |
| 11222 | } |
| 11223 | _ACEOF |
| 11224 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11226 | (eval $ac_link) 2>&5 |
| 11227 | ac_status=$? |
| 11228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11229 | (exit $ac_status); } && |
| 11230 | { ac_try='test -s conftest$ac_exeext' |
| 11231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11232 | (eval $ac_try) 2>&5 |
| 11233 | ac_status=$? |
| 11234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11235 | (exit $ac_status); }; }; then |
| 11236 | ac_cv_asm_func_def=".type 2" |
| 11237 | else |
| 11238 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11240 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11241 | ac_cv_asm_func_def="unknown" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 11242 | fi |
| 11243 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 11244 | fi |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11245 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11246 | fi |
| 11247 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11248 | fi |
| 11249 | echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5 |
| 11250 | echo "${ECHO_T}$ac_cv_asm_func_def" >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 11251 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11252 | |
| 11253 | |
| 11254 | case "$ac_cv_asm_func_def" in |
| 11255 | ".def") |
| 11256 | cat >>confdefs.h <<\_ACEOF |
| 11257 | #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] | 11258 | _ACEOF |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11259 | ;; |
| 11260 | ".type @function") |
| 11261 | cat >>confdefs.h <<\_ACEOF |
| 11262 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function" |
| 11263 | _ACEOF |
| 11264 | ;; |
| 11265 | ".type 2") |
| 11266 | cat >>confdefs.h <<\_ACEOF |
| 11267 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2" |
| 11268 | _ACEOF |
| 11269 | ;; |
| 11270 | *) |
| 11271 | cat >>confdefs.h <<\_ACEOF |
| 11272 | #define __ASM_FUNC(name) "" |
| 11273 | _ACEOF |
| 11274 | ;; |
| 11275 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 11276 | |
| 11277 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11278 | 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] | 11279 | echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6 |
| 11280 | if test "${ac_cv_c_extern_prefix+set}" = set; then |
| 11281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 11282 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11283 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11284 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11285 | /* confdefs.h. */ |
| 11286 | _ACEOF |
| 11287 | cat confdefs.h >>conftest.$ac_ext |
| 11288 | cat >>conftest.$ac_ext <<_ACEOF |
| 11289 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 11290 | 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] | 11291 | extern int ac_test; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11292 | int |
| 11293 | main () |
| 11294 | { |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 11295 | if (ac_test) return 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11296 | ; |
| 11297 | return 0; |
| 11298 | } |
| 11299 | _ACEOF |
| 11300 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11302 | (eval $ac_link) 2>&5 |
| 11303 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11305 | (exit $ac_status); } && |
| 11306 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11308 | (eval $ac_try) 2>&5 |
| 11309 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11311 | (exit $ac_status); }; }; then |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 11312 | ac_cv_c_extern_prefix="yes" |
| 11313 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11314 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11316 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11317 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 11318 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11319 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 11320 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11321 | echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11322 | echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11323 | |
| 11324 | |
| 11325 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 11326 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 11327 | then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11328 | cat >>confdefs.h <<\_ACEOF |
| 11329 | #define __ASM_NAME(name) "_" name |
| 11330 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11331 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11332 | else |
| 11333 | cat >>confdefs.h <<\_ACEOF |
| 11334 | #define __ASM_NAME(name) name |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11335 | _ACEOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 11336 | |
| 11337 | fi |
| 11338 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11339 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11340 | echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11341 | echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6 |
| 11342 | if test "${ac_cv_c_asm_string+set}" = set; then |
| 11343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11344 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 11345 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11346 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11347 | /* confdefs.h. */ |
| 11348 | _ACEOF |
| 11349 | cat confdefs.h >>conftest.$ac_ext |
| 11350 | cat >>conftest.$ac_ext <<_ACEOF |
| 11351 | /* end confdefs.h. */ |
Marcus Meissner | 49163d5 | 2002-08-20 00:26:40 +0000 | [diff] [blame] | 11352 | 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] | 11353 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11354 | int |
| 11355 | main () |
| 11356 | { |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11357 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11358 | ; |
| 11359 | return 0; |
| 11360 | } |
| 11361 | _ACEOF |
| 11362 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11364 | (eval $ac_link) 2>&5 |
| 11365 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11367 | (exit $ac_status); } && |
| 11368 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11370 | (eval $ac_try) 2>&5 |
| 11371 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11373 | (exit $ac_status); }; }; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11374 | ac_cv_c_asm_string="yes" |
| 11375 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11376 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11378 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11379 | ac_cv_c_asm_string="no" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11380 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11381 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11382 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11383 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11384 | echo "${ECHO_T}$ac_cv_c_asm_string" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11385 | if test "$ac_cv_c_asm_string" = "yes" |
| 11386 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11387 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11388 | cat >>confdefs.h <<\_ACEOF |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 11389 | #define __ASM_STRING ".string" |
| 11390 | _ACEOF |
| 11391 | |
| 11392 | else |
| 11393 | echo "$as_me:$LINENO: checking whether assembler accepts .asciz" >&5 |
| 11394 | echo $ECHO_N "checking whether assembler accepts .asciz... $ECHO_C" >&6 |
| 11395 | if test "${ac_cv_c_asm_asciz+set}" = set; then |
| 11396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11397 | else |
| 11398 | cat >conftest.$ac_ext <<_ACEOF |
| 11399 | #line $LINENO "configure" |
| 11400 | /* confdefs.h. */ |
| 11401 | _ACEOF |
| 11402 | cat confdefs.h >>conftest.$ac_ext |
| 11403 | cat >>conftest.$ac_ext <<_ACEOF |
| 11404 | /* end confdefs.h. */ |
| 11405 | void ac_asm(void) { asm(".data\n\t.asciz \"test\"\n\t.text"); } |
| 11406 | |
| 11407 | int |
| 11408 | main () |
| 11409 | { |
| 11410 | |
| 11411 | ; |
| 11412 | return 0; |
| 11413 | } |
| 11414 | _ACEOF |
| 11415 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11416 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11417 | (eval $ac_link) 2>&5 |
| 11418 | ac_status=$? |
| 11419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11420 | (exit $ac_status); } && |
| 11421 | { ac_try='test -s conftest$ac_exeext' |
| 11422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11423 | (eval $ac_try) 2>&5 |
| 11424 | ac_status=$? |
| 11425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11426 | (exit $ac_status); }; }; then |
| 11427 | ac_cv_c_asm_asciz="yes" |
| 11428 | else |
| 11429 | echo "$as_me: failed program was:" >&5 |
| 11430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11431 | |
| 11432 | ac_cv_c_asm_asciz="no" |
| 11433 | fi |
| 11434 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11435 | fi |
| 11436 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_asciz" >&5 |
| 11437 | echo "${ECHO_T}$ac_cv_c_asm_asciz" >&6 |
| 11438 | if test "$ac_cv_c_asm_asciz" = "yes" |
| 11439 | then |
| 11440 | cat >>confdefs.h <<\_ACEOF |
| 11441 | #define __ASM_STRING ".asciz" |
| 11442 | _ACEOF |
| 11443 | |
| 11444 | else |
| 11445 | cat >>confdefs.h <<\_ACEOF |
| 11446 | #define __ASM_STRING ".ascii" |
| 11447 | _ACEOF |
| 11448 | |
| 11449 | fi |
| 11450 | fi |
| 11451 | |
| 11452 | |
| 11453 | echo "$as_me:$LINENO: checking whether assembler accepts .short" >&5 |
| 11454 | echo $ECHO_N "checking whether assembler accepts .short... $ECHO_C" >&6 |
| 11455 | if test "${ac_cv_c_asm_short+set}" = set; then |
| 11456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11457 | else |
| 11458 | cat >conftest.$ac_ext <<_ACEOF |
| 11459 | #line $LINENO "configure" |
| 11460 | /* confdefs.h. */ |
| 11461 | _ACEOF |
| 11462 | cat confdefs.h >>conftest.$ac_ext |
| 11463 | cat >>conftest.$ac_ext <<_ACEOF |
| 11464 | /* end confdefs.h. */ |
| 11465 | void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); } |
| 11466 | |
| 11467 | int |
| 11468 | main () |
| 11469 | { |
| 11470 | |
| 11471 | ; |
| 11472 | return 0; |
| 11473 | } |
| 11474 | _ACEOF |
| 11475 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11477 | (eval $ac_link) 2>&5 |
| 11478 | ac_status=$? |
| 11479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11480 | (exit $ac_status); } && |
| 11481 | { ac_try='test -s conftest$ac_exeext' |
| 11482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11483 | (eval $ac_try) 2>&5 |
| 11484 | ac_status=$? |
| 11485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11486 | (exit $ac_status); }; }; then |
| 11487 | ac_cv_c_asm_short="yes" |
| 11488 | else |
| 11489 | echo "$as_me: failed program was:" >&5 |
| 11490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11491 | |
| 11492 | ac_cv_c_asm_short="no" |
| 11493 | fi |
| 11494 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11495 | fi |
| 11496 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5 |
| 11497 | echo "${ECHO_T}$ac_cv_c_asm_short" >&6 |
| 11498 | if test "$ac_cv_c_asm_short" = "yes" |
| 11499 | then |
| 11500 | |
| 11501 | cat >>confdefs.h <<\_ACEOF |
| 11502 | #define __ASM_SHORT ".short" |
| 11503 | _ACEOF |
| 11504 | |
| 11505 | else |
| 11506 | cat >>confdefs.h <<\_ACEOF |
| 11507 | #define __ASM_SHORT ".half" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11508 | _ACEOF |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11509 | |
| 11510 | fi |
| 11511 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11512 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 11513 | DLLEXT="" |
| 11514 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 11515 | DLLFLAGS="-D_REENTRANT" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 11516 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11517 | DLLIBS="" |
| 11518 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 11519 | LDDLLFLAGS="" |
| 11520 | |
| 11521 | LDSHARED="" |
| 11522 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 11523 | LIBEXT="so" |
| 11524 | |
| 11525 | IMPLIBEXT="def" |
| 11526 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 11527 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 11528 | case $host_os in |
| 11529 | cygwin*|mingw32*) |
| 11530 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 11531 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 11532 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 11533 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11535 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 11536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11537 | else |
| 11538 | if test -n "$DLLTOOL"; then |
| 11539 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 11540 | else |
| 11541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11542 | for as_dir in $PATH |
| 11543 | do |
| 11544 | IFS=$as_save_IFS |
| 11545 | test -z "$as_dir" && as_dir=. |
| 11546 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11547 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11548 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 11549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11550 | break 2 |
| 11551 | fi |
| 11552 | done |
| 11553 | done |
| 11554 | |
| 11555 | fi |
| 11556 | fi |
| 11557 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 11558 | if test -n "$DLLTOOL"; then |
| 11559 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 11560 | echo "${ECHO_T}$DLLTOOL" >&6 |
| 11561 | else |
| 11562 | echo "$as_me:$LINENO: result: no" >&5 |
| 11563 | echo "${ECHO_T}no" >&6 |
| 11564 | fi |
| 11565 | |
| 11566 | fi |
| 11567 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 11568 | ac_ct_DLLTOOL=$DLLTOOL |
| 11569 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 11570 | set dummy dlltool; ac_word=$2 |
| 11571 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11572 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11573 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 11574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11575 | else |
| 11576 | if test -n "$ac_ct_DLLTOOL"; then |
| 11577 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 11578 | else |
| 11579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11580 | for as_dir in $PATH |
| 11581 | do |
| 11582 | IFS=$as_save_IFS |
| 11583 | test -z "$as_dir" && as_dir=. |
| 11584 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11585 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11586 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 11587 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11588 | break 2 |
| 11589 | fi |
| 11590 | done |
| 11591 | done |
| 11592 | |
| 11593 | test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" |
| 11594 | fi |
| 11595 | fi |
| 11596 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 11597 | if test -n "$ac_ct_DLLTOOL"; then |
| 11598 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 11599 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 |
| 11600 | else |
| 11601 | echo "$as_me:$LINENO: result: no" >&5 |
| 11602 | echo "${ECHO_T}no" >&6 |
| 11603 | fi |
| 11604 | |
| 11605 | DLLTOOL=$ac_ct_DLLTOOL |
| 11606 | else |
| 11607 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 11608 | fi |
| 11609 | |
| 11610 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 11611 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 11612 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 11613 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11614 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11615 | if test "${ac_cv_prog_DLLWRAP+set}" = set; then |
| 11616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11617 | else |
| 11618 | if test -n "$DLLWRAP"; then |
| 11619 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 11620 | else |
| 11621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11622 | for as_dir in $PATH |
| 11623 | do |
| 11624 | IFS=$as_save_IFS |
| 11625 | test -z "$as_dir" && as_dir=. |
| 11626 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11627 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 11628 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 11629 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11630 | break 2 |
| 11631 | fi |
| 11632 | done |
| 11633 | done |
| 11634 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 11635 | fi |
| 11636 | fi |
| 11637 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 11638 | if test -n "$DLLWRAP"; then |
| 11639 | echo "$as_me:$LINENO: result: $DLLWRAP" >&5 |
| 11640 | echo "${ECHO_T}$DLLWRAP" >&6 |
| 11641 | else |
| 11642 | echo "$as_me:$LINENO: result: no" >&5 |
| 11643 | echo "${ECHO_T}no" >&6 |
| 11644 | fi |
| 11645 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 11646 | fi |
| 11647 | if test -z "$ac_cv_prog_DLLWRAP"; then |
| 11648 | ac_ct_DLLWRAP=$DLLWRAP |
| 11649 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 11650 | set dummy dllwrap; ac_word=$2 |
| 11651 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11652 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11653 | if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then |
| 11654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11655 | else |
| 11656 | if test -n "$ac_ct_DLLWRAP"; then |
| 11657 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 11658 | else |
| 11659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11660 | for as_dir in $PATH |
| 11661 | do |
| 11662 | IFS=$as_save_IFS |
| 11663 | test -z "$as_dir" && as_dir=. |
| 11664 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11665 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11666 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
| 11667 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11668 | break 2 |
| 11669 | fi |
| 11670 | done |
| 11671 | done |
| 11672 | |
| 11673 | test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false" |
| 11674 | fi |
| 11675 | fi |
| 11676 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 11677 | if test -n "$ac_ct_DLLWRAP"; then |
| 11678 | echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5 |
| 11679 | echo "${ECHO_T}$ac_ct_DLLWRAP" >&6 |
| 11680 | else |
| 11681 | echo "$as_me:$LINENO: result: no" >&5 |
| 11682 | echo "${ECHO_T}no" >&6 |
| 11683 | fi |
| 11684 | |
| 11685 | DLLWRAP=$ac_ct_DLLWRAP |
| 11686 | else |
| 11687 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 11688 | fi |
| 11689 | |
| 11690 | if test "$DLLWRAP" = "false"; then |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11691 | LIBEXT="a" |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 11692 | else |
| 11693 | LIBEXT="dll" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11694 | fi |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 11695 | IMPLIBEXT="a" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11696 | ;; |
| 11697 | *) |
| 11698 | |
| 11699 | for ac_header in dlfcn.h |
| 11700 | do |
| 11701 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11702 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11703 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11704 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11705 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11707 | fi |
| 11708 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11709 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11710 | else |
| 11711 | # Is the header compilable? |
| 11712 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11713 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11714 | cat >conftest.$ac_ext <<_ACEOF |
| 11715 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11716 | /* confdefs.h. */ |
| 11717 | _ACEOF |
| 11718 | cat confdefs.h >>conftest.$ac_ext |
| 11719 | cat >>conftest.$ac_ext <<_ACEOF |
| 11720 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11721 | $ac_includes_default |
| 11722 | #include <$ac_header> |
| 11723 | _ACEOF |
| 11724 | rm -f conftest.$ac_objext |
| 11725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11726 | (eval $ac_compile) 2>&5 |
| 11727 | ac_status=$? |
| 11728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11729 | (exit $ac_status); } && |
| 11730 | { ac_try='test -s conftest.$ac_objext' |
| 11731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11732 | (eval $ac_try) 2>&5 |
| 11733 | ac_status=$? |
| 11734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11735 | (exit $ac_status); }; }; then |
| 11736 | ac_header_compiler=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 | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11741 | ac_header_compiler=no |
| 11742 | fi |
| 11743 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11744 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11745 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11746 | |
| 11747 | # Is the header present? |
| 11748 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11749 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11750 | cat >conftest.$ac_ext <<_ACEOF |
| 11751 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11752 | /* confdefs.h. */ |
| 11753 | _ACEOF |
| 11754 | cat confdefs.h >>conftest.$ac_ext |
| 11755 | cat >>conftest.$ac_ext <<_ACEOF |
| 11756 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11757 | #include <$ac_header> |
| 11758 | _ACEOF |
| 11759 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11760 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11761 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11762 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11763 | rm -f conftest.er1 |
| 11764 | cat conftest.err >&5 |
| 11765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11766 | (exit $ac_status); } >/dev/null; then |
| 11767 | if test -s conftest.err; then |
| 11768 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11769 | else |
| 11770 | ac_cpp_err= |
| 11771 | fi |
| 11772 | else |
| 11773 | ac_cpp_err=yes |
| 11774 | fi |
| 11775 | if test -z "$ac_cpp_err"; then |
| 11776 | ac_header_preproc=yes |
| 11777 | else |
| 11778 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11780 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11781 | ac_header_preproc=no |
| 11782 | fi |
| 11783 | rm -f conftest.err conftest.$ac_ext |
| 11784 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11785 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11786 | |
| 11787 | # So? What about this header? |
| 11788 | case $ac_header_compiler:$ac_header_preproc in |
| 11789 | yes:no ) |
| 11790 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11791 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11792 | { 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] | 11793 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11794 | ( |
| 11795 | cat <<\_ASBOX |
| 11796 | ## ------------------------------------ ## |
| 11797 | ## Report this to bug-autoconf@gnu.org. ## |
| 11798 | ## ------------------------------------ ## |
| 11799 | _ASBOX |
| 11800 | ) | |
| 11801 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11802 | ;; |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11803 | no:yes ) |
| 11804 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11805 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11806 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11807 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11808 | { 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] | 11809 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11810 | ( |
| 11811 | cat <<\_ASBOX |
| 11812 | ## ------------------------------------ ## |
| 11813 | ## Report this to bug-autoconf@gnu.org. ## |
| 11814 | ## ------------------------------------ ## |
| 11815 | _ASBOX |
| 11816 | ) | |
| 11817 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11818 | ;; |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11819 | esac |
| 11820 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11821 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11822 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11824 | else |
| 11825 | eval "$as_ac_Header=$ac_header_preproc" |
| 11826 | fi |
| 11827 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11828 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11829 | |
| 11830 | fi |
| 11831 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11832 | cat >>confdefs.h <<_ACEOF |
| 11833 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11834 | _ACEOF |
| 11835 | |
| 11836 | for ac_func in dlopen |
| 11837 | do |
| 11838 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11839 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11840 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11841 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11843 | else |
| 11844 | cat >conftest.$ac_ext <<_ACEOF |
| 11845 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11846 | /* confdefs.h. */ |
| 11847 | _ACEOF |
| 11848 | cat confdefs.h >>conftest.$ac_ext |
| 11849 | cat >>conftest.$ac_ext <<_ACEOF |
| 11850 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11851 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11852 | which can conflict with char $ac_func (); below. |
| 11853 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11854 | <limits.h> exists even on freestanding compilers. */ |
| 11855 | #ifdef __STDC__ |
| 11856 | # include <limits.h> |
| 11857 | #else |
| 11858 | # include <assert.h> |
| 11859 | #endif |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11860 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11861 | #ifdef __cplusplus |
| 11862 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11863 | { |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11864 | #endif |
| 11865 | /* We use char because int might match the return type of a gcc2 |
| 11866 | builtin and then its argument prototype would still apply. */ |
| 11867 | char $ac_func (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11868 | /* The GNU C library defines this for functions which it implements |
| 11869 | to always fail with ENOSYS. Some functions are actually named |
| 11870 | something starting with __ and the normal name is an alias. */ |
| 11871 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11872 | choke me |
| 11873 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11874 | char (*f) () = $ac_func; |
| 11875 | #endif |
| 11876 | #ifdef __cplusplus |
| 11877 | } |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11878 | #endif |
| 11879 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11880 | int |
| 11881 | main () |
| 11882 | { |
| 11883 | return f != $ac_func; |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11884 | ; |
| 11885 | return 0; |
| 11886 | } |
| 11887 | _ACEOF |
| 11888 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11890 | (eval $ac_link) 2>&5 |
| 11891 | ac_status=$? |
| 11892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11893 | (exit $ac_status); } && |
| 11894 | { ac_try='test -s conftest$ac_exeext' |
| 11895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11896 | (eval $ac_try) 2>&5 |
| 11897 | ac_status=$? |
| 11898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11899 | (exit $ac_status); }; }; then |
| 11900 | eval "$as_ac_var=yes" |
| 11901 | else |
| 11902 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11904 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11905 | eval "$as_ac_var=no" |
| 11906 | fi |
| 11907 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11908 | fi |
| 11909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11910 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11911 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11912 | cat >>confdefs.h <<_ACEOF |
| 11913 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11914 | _ACEOF |
| 11915 | |
| 11916 | else |
| 11917 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11918 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11919 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11921 | else |
| 11922 | ac_check_lib_save_LIBS=$LIBS |
| 11923 | LIBS="-ldl $LIBS" |
| 11924 | cat >conftest.$ac_ext <<_ACEOF |
| 11925 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11926 | /* confdefs.h. */ |
| 11927 | _ACEOF |
| 11928 | cat confdefs.h >>conftest.$ac_ext |
| 11929 | cat >>conftest.$ac_ext <<_ACEOF |
| 11930 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11931 | |
| 11932 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11933 | #ifdef __cplusplus |
| 11934 | extern "C" |
| 11935 | #endif |
| 11936 | /* We use char because int might match the return type of a gcc2 |
| 11937 | builtin and then its argument prototype would still apply. */ |
| 11938 | char dlopen (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11939 | int |
| 11940 | main () |
| 11941 | { |
| 11942 | dlopen (); |
| 11943 | ; |
| 11944 | return 0; |
| 11945 | } |
| 11946 | _ACEOF |
| 11947 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11949 | (eval $ac_link) 2>&5 |
| 11950 | ac_status=$? |
| 11951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11952 | (exit $ac_status); } && |
| 11953 | { ac_try='test -s conftest$ac_exeext' |
| 11954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11955 | (eval $ac_try) 2>&5 |
| 11956 | ac_status=$? |
| 11957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11958 | (exit $ac_status); }; }; then |
| 11959 | ac_cv_lib_dl_dlopen=yes |
| 11960 | else |
| 11961 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11963 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11964 | ac_cv_lib_dl_dlopen=no |
| 11965 | fi |
| 11966 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11967 | LIBS=$ac_check_lib_save_LIBS |
| 11968 | fi |
| 11969 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11970 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11971 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11972 | |
| 11973 | cat >>confdefs.h <<\_ACEOF |
| 11974 | #define HAVE_DLOPEN 1 |
| 11975 | _ACEOF |
| 11976 | |
| 11977 | DLLIBS="-ldl" |
| 11978 | else |
| 11979 | LIBEXT="a" |
| 11980 | fi |
| 11981 | |
| 11982 | fi |
| 11983 | done |
| 11984 | |
| 11985 | else |
| 11986 | LIBEXT="a" |
| 11987 | fi |
| 11988 | |
| 11989 | done |
| 11990 | |
| 11991 | |
| 11992 | if test "$LIBEXT" = "so" |
| 11993 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 11994 | DLLFLAGS="$DLLFLAGS -fPIC" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 11995 | DLLEXT=".so" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 11996 | 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] | 11997 | echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6 |
| 11998 | if test "${ac_cv_c_dll_gnuelf+set}" = set; then |
| 11999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 12000 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12001 | ac_wine_try_cflags_saved=$CFLAGS |
| 12002 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic" |
| 12003 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12004 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12005 | /* confdefs.h. */ |
| 12006 | _ACEOF |
| 12007 | cat confdefs.h >>conftest.$ac_ext |
| 12008 | cat >>conftest.$ac_ext <<_ACEOF |
| 12009 | /* end confdefs.h. */ |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 12010 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12011 | int |
| 12012 | main () |
| 12013 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12014 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12015 | ; |
| 12016 | return 0; |
| 12017 | } |
| 12018 | _ACEOF |
| 12019 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12021 | (eval $ac_link) 2>&5 |
| 12022 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12024 | (exit $ac_status); } && |
| 12025 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12027 | (eval $ac_try) 2>&5 |
| 12028 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12030 | (exit $ac_status); }; }; then |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 12031 | ac_cv_c_dll_gnuelf="yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 12032 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12033 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12035 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12036 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 12037 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12038 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12039 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12040 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12041 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12042 | echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 12043 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
| 12044 | then |
| 12045 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
| 12046 | LDDLLFLAGS="-Wl,-Bsymbolic" |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 12047 | echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5 |
| 12048 | echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6 |
| 12049 | if test "${ac_cv_c_dll_zdefs+set}" = set; then |
| 12050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12051 | else |
| 12052 | ac_wine_try_cflags_saved=$CFLAGS |
| 12053 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs" |
| 12054 | cat >conftest.$ac_ext <<_ACEOF |
| 12055 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12056 | /* confdefs.h. */ |
| 12057 | _ACEOF |
| 12058 | cat confdefs.h >>conftest.$ac_ext |
| 12059 | cat >>conftest.$ac_ext <<_ACEOF |
| 12060 | /* end confdefs.h. */ |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 12061 | |
| 12062 | int |
| 12063 | main () |
| 12064 | { |
| 12065 | |
| 12066 | ; |
| 12067 | return 0; |
| 12068 | } |
| 12069 | _ACEOF |
| 12070 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12071 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12072 | (eval $ac_link) 2>&5 |
| 12073 | ac_status=$? |
| 12074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12075 | (exit $ac_status); } && |
| 12076 | { ac_try='test -s conftest$ac_exeext' |
| 12077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12078 | (eval $ac_try) 2>&5 |
| 12079 | ac_status=$? |
| 12080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12081 | (exit $ac_status); }; }; then |
| 12082 | ac_cv_c_dll_zdefs="yes" |
| 12083 | else |
| 12084 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12086 | |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 12087 | ac_cv_c_dll_zdefs="no" |
| 12088 | fi |
| 12089 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12090 | CFLAGS=$ac_wine_try_cflags_saved |
| 12091 | fi |
| 12092 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5 |
| 12093 | echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6 |
| 12094 | if test "$ac_cv_c_dll_zdefs" = "yes" |
| 12095 | then |
| 12096 | LDDLLFLAGS="$LDDLLFLAGS,-z,defs" |
| 12097 | fi |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 12098 | echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x3c000000" >&5 |
| 12099 | echo $ECHO_N "checking whether we can relocate the executable to 0x3c000000... $ECHO_C" >&6 |
| 12100 | if test "${ac_cv_ld_reloc_exec+set}" = set; then |
| 12101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12102 | else |
| 12103 | saved_CFLAGS="$CFLAGS" |
| 12104 | CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x3c000100" |
| 12105 | if test "$cross_compiling" = yes; then |
| 12106 | ac_cv_ld_reloc_exec="no" |
| 12107 | else |
| 12108 | cat >conftest.$ac_ext <<_ACEOF |
| 12109 | #line $LINENO "configure" |
| 12110 | /* confdefs.h. */ |
| 12111 | _ACEOF |
| 12112 | cat confdefs.h >>conftest.$ac_ext |
| 12113 | cat >>conftest.$ac_ext <<_ACEOF |
| 12114 | /* end confdefs.h. */ |
| 12115 | #include <unistd.h> |
| 12116 | int main() { return (sbrk(32*1024*1024) == (void *)-1); } |
| 12117 | _ACEOF |
| 12118 | rm -f conftest$ac_exeext |
| 12119 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12120 | (eval $ac_link) 2>&5 |
| 12121 | ac_status=$? |
| 12122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12123 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12125 | (eval $ac_try) 2>&5 |
| 12126 | ac_status=$? |
| 12127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12128 | (exit $ac_status); }; }; then |
| 12129 | ac_cv_ld_reloc_exec="yes" |
| 12130 | else |
| 12131 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12132 | echo "$as_me: failed program was:" >&5 |
| 12133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12134 | |
| 12135 | ( exit $ac_status ) |
| 12136 | ac_cv_ld_reloc_exec="no" |
| 12137 | fi |
| 12138 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12139 | fi |
| 12140 | CFLAGS="$saved_CFLAGS" |
| 12141 | fi |
| 12142 | echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5 |
| 12143 | echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6 |
| 12144 | if test "$ac_cv_ld_reloc_exec" = "yes" |
| 12145 | then |
| 12146 | LDEXECFLAGS="-Wl,--section-start,.interp=0x3c000100" |
| 12147 | |
| 12148 | fi |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 12149 | else |
| 12150 | 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] | 12151 | echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6 |
| 12152 | if test "${ac_cv_c_dll_unixware+set}" = set; then |
| 12153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 12154 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12155 | ac_wine_try_cflags_saved=$CFLAGS |
| 12156 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
| 12157 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12158 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12159 | /* confdefs.h. */ |
| 12160 | _ACEOF |
| 12161 | cat confdefs.h >>conftest.$ac_ext |
| 12162 | cat >>conftest.$ac_ext <<_ACEOF |
| 12163 | /* end confdefs.h. */ |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 12164 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12165 | int |
| 12166 | main () |
| 12167 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12168 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12169 | ; |
| 12170 | return 0; |
| 12171 | } |
| 12172 | _ACEOF |
| 12173 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12175 | (eval $ac_link) 2>&5 |
| 12176 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12178 | (exit $ac_status); } && |
| 12179 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12181 | (eval $ac_try) 2>&5 |
| 12182 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12184 | (exit $ac_status); }; }; then |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 12185 | ac_cv_c_dll_unixware="yes" |
| 12186 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12187 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12189 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12190 | ac_cv_c_dll_unixware="no" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 12191 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12192 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12193 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12194 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12195 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12196 | echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 12197 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 12198 | then |
| 12199 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
| 12200 | LDDLLFLAGS="-Wl,-B,symbolic" |
| 12201 | fi |
| 12202 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 12203 | fi |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 12204 | |
| 12205 | CROSSTEST="" |
| 12206 | |
| 12207 | if test "$cross_compiling" = "no" |
| 12208 | then |
Hans Leidekker | b195d9f | 2003-04-12 00:00:57 +0000 | [diff] [blame] | 12209 | for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 12210 | do |
| 12211 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12212 | set dummy $ac_prog; ac_word=$2 |
| 12213 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12215 | if test "${ac_cv_prog_CROSSCC+set}" = set; then |
| 12216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12217 | else |
| 12218 | if test -n "$CROSSCC"; then |
| 12219 | ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test. |
| 12220 | else |
| 12221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12222 | for as_dir in $PATH |
| 12223 | do |
| 12224 | IFS=$as_save_IFS |
| 12225 | test -z "$as_dir" && as_dir=. |
| 12226 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12227 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12228 | ac_cv_prog_CROSSCC="$ac_prog" |
| 12229 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12230 | break 2 |
| 12231 | fi |
| 12232 | done |
| 12233 | done |
| 12234 | |
| 12235 | fi |
| 12236 | fi |
| 12237 | CROSSCC=$ac_cv_prog_CROSSCC |
| 12238 | if test -n "$CROSSCC"; then |
| 12239 | echo "$as_me:$LINENO: result: $CROSSCC" >&5 |
| 12240 | echo "${ECHO_T}$CROSSCC" >&6 |
| 12241 | else |
| 12242 | echo "$as_me:$LINENO: result: no" >&5 |
| 12243 | echo "${ECHO_T}no" >&6 |
| 12244 | fi |
| 12245 | |
| 12246 | test -n "$CROSSCC" && break |
| 12247 | done |
| 12248 | test -n "$CROSSCC" || CROSSCC="false" |
| 12249 | |
Hans Leidekker | b195d9f | 2003-04-12 00:00:57 +0000 | [diff] [blame] | 12250 | for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 12251 | do |
| 12252 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12253 | set dummy $ac_prog; ac_word=$2 |
| 12254 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12255 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12256 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 12257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12258 | else |
| 12259 | if test -n "$DLLTOOL"; then |
| 12260 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 12261 | else |
| 12262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12263 | for as_dir in $PATH |
| 12264 | do |
| 12265 | IFS=$as_save_IFS |
| 12266 | test -z "$as_dir" && as_dir=. |
| 12267 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12268 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12269 | ac_cv_prog_DLLTOOL="$ac_prog" |
| 12270 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12271 | break 2 |
| 12272 | fi |
| 12273 | done |
| 12274 | done |
| 12275 | |
| 12276 | fi |
| 12277 | fi |
| 12278 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 12279 | if test -n "$DLLTOOL"; then |
| 12280 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 12281 | echo "${ECHO_T}$DLLTOOL" >&6 |
| 12282 | else |
| 12283 | echo "$as_me:$LINENO: result: no" >&5 |
| 12284 | echo "${ECHO_T}no" >&6 |
| 12285 | fi |
| 12286 | |
| 12287 | test -n "$DLLTOOL" && break |
| 12288 | done |
| 12289 | test -n "$DLLTOOL" || DLLTOOL="false" |
| 12290 | |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 12291 | for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres |
| 12292 | do |
| 12293 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12294 | set dummy $ac_prog; ac_word=$2 |
| 12295 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12296 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12297 | if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then |
| 12298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12299 | else |
| 12300 | if test -n "$CROSSWINDRES"; then |
| 12301 | ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test. |
| 12302 | else |
| 12303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12304 | for as_dir in $PATH |
| 12305 | do |
| 12306 | IFS=$as_save_IFS |
| 12307 | test -z "$as_dir" && as_dir=. |
| 12308 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12309 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12310 | ac_cv_prog_CROSSWINDRES="$ac_prog" |
| 12311 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12312 | break 2 |
| 12313 | fi |
| 12314 | done |
| 12315 | done |
| 12316 | |
| 12317 | fi |
| 12318 | fi |
| 12319 | CROSSWINDRES=$ac_cv_prog_CROSSWINDRES |
| 12320 | if test -n "$CROSSWINDRES"; then |
| 12321 | echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5 |
| 12322 | echo "${ECHO_T}$CROSSWINDRES" >&6 |
| 12323 | else |
| 12324 | echo "$as_me:$LINENO: result: no" >&5 |
| 12325 | echo "${ECHO_T}no" >&6 |
| 12326 | fi |
| 12327 | |
| 12328 | test -n "$CROSSWINDRES" && break |
| 12329 | done |
| 12330 | test -n "$CROSSWINDRES" || CROSSWINDRES="false" |
| 12331 | |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 12332 | if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi |
| 12333 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 12334 | ;; |
| 12335 | esac |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 12336 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 12337 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12338 | { { 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] | 12339 | It is currently not possible to build Wine without shared library |
| 12340 | (.so) support to allow transparent switch between .so and .dll files. |
| 12341 | If you are using Linux, you will need a newer binutils. |
| 12342 | " >&5 |
| 12343 | echo "$as_me: error: could not find a way to build shared libraries. |
| 12344 | It is currently not possible to build Wine without shared library |
| 12345 | (.so) support to allow transparent switch between .so and .dll files. |
| 12346 | If you are using Linux, you will need a newer binutils. |
| 12347 | " >&2;} |
| 12348 | { (exit 1); exit 1; }; } |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 12349 | fi |
| 12350 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12351 | case $build_os in |
| 12352 | cygwin*|mingw32*) |
Alexandre Julliard | 7ab9a71 | 2003-03-21 05:06:48 +0000 | [diff] [blame] | 12353 | LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12354 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12355 | *) |
Alexandre Julliard | 7ab9a71 | 2003-03-21 05:06:48 +0000 | [diff] [blame] | 12356 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12357 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 12358 | esac |
| 12359 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12360 | CRTLIBS="" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12361 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 12362 | case $host_os in |
| 12363 | mingw32*) |
| 12364 | CRTLIBS="-lmsvcrt" ;; |
| 12365 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12366 | |
| 12367 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12368 | if test "$LIBEXT" = "so" |
| 12369 | then |
| 12370 | # Extract the first word of "ldd", so it can be a program name with args. |
| 12371 | set dummy ldd; ac_word=$2 |
| 12372 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12374 | if test "${ac_cv_path_LDD+set}" = set; then |
| 12375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12376 | else |
| 12377 | case $LDD in |
| 12378 | [\\/]* | ?:[\\/]*) |
| 12379 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. |
| 12380 | ;; |
| 12381 | *) |
| 12382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 12383 | as_dummy="/sbin:/usr/sbin:$PATH" |
| 12384 | for as_dir in $as_dummy |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12385 | do |
| 12386 | IFS=$as_save_IFS |
| 12387 | test -z "$as_dir" && as_dir=. |
| 12388 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12389 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12390 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" |
| 12391 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12392 | break 2 |
| 12393 | fi |
| 12394 | done |
| 12395 | done |
| 12396 | |
| 12397 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" |
| 12398 | ;; |
| 12399 | esac |
| 12400 | fi |
| 12401 | LDD=$ac_cv_path_LDD |
| 12402 | |
| 12403 | if test -n "$LDD"; then |
| 12404 | echo "$as_me:$LINENO: result: $LDD" >&5 |
| 12405 | echo "${ECHO_T}$LDD" >&6 |
| 12406 | else |
| 12407 | echo "$as_me:$LINENO: result: no" >&5 |
| 12408 | echo "${ECHO_T}no" >&6 |
| 12409 | fi |
| 12410 | |
| 12411 | |
| 12412 | echo "$as_me:$LINENO: checking for -lX11 soname" >&5 |
| 12413 | echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6 |
| 12414 | if test "${ac_cv_lib_soname_X11+set}" = set; then |
| 12415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12416 | else |
| 12417 | ac_get_soname_save_LIBS=$LIBS |
| 12418 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 12419 | cat >conftest.$ac_ext <<_ACEOF |
| 12420 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12421 | /* confdefs.h. */ |
| 12422 | _ACEOF |
| 12423 | cat confdefs.h >>conftest.$ac_ext |
| 12424 | cat >>conftest.$ac_ext <<_ACEOF |
| 12425 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12426 | |
| 12427 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12428 | #ifdef __cplusplus |
| 12429 | extern "C" |
| 12430 | #endif |
| 12431 | /* We use char because int might match the return type of a gcc2 |
| 12432 | builtin and then its argument prototype would still apply. */ |
| 12433 | char XCreateWindow (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12434 | int |
| 12435 | main () |
| 12436 | { |
| 12437 | XCreateWindow (); |
| 12438 | ; |
| 12439 | return 0; |
| 12440 | } |
| 12441 | _ACEOF |
| 12442 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12444 | (eval $ac_link) 2>&5 |
| 12445 | ac_status=$? |
| 12446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12447 | (exit $ac_status); } && |
| 12448 | { ac_try='test -s conftest$ac_exeext' |
| 12449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12450 | (eval $ac_try) 2>&5 |
| 12451 | ac_status=$? |
| 12452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12453 | (exit $ac_status); }; }; then |
Todd Vierling | 47f021c | 2003-07-26 20:27:47 +0000 | [diff] [blame] | 12454 | ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^ ]*\).*$/\1/'` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12455 | if test "x$ac_cv_lib_soname_X11" = "x" |
| 12456 | then |
| 12457 | ac_cv_lib_soname_X11="libX11.so" |
| 12458 | fi |
| 12459 | else |
| 12460 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12462 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12463 | ac_cv_lib_soname_X11="libX11.so" |
| 12464 | fi |
| 12465 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12466 | LIBS=$ac_get_soname_save_LIBS |
| 12467 | fi |
| 12468 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5 |
| 12469 | echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6 |
| 12470 | if test "x$ac_cv_lib_soname_X11" != xNONE |
| 12471 | then |
| 12472 | cat >>confdefs.h <<_ACEOF |
| 12473 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" |
| 12474 | _ACEOF |
| 12475 | fi |
| 12476 | |
| 12477 | echo "$as_me:$LINENO: checking for -lXext soname" >&5 |
| 12478 | echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6 |
| 12479 | if test "${ac_cv_lib_soname_Xext+set}" = set; then |
| 12480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12481 | else |
| 12482 | ac_get_soname_save_LIBS=$LIBS |
| 12483 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 12484 | cat >conftest.$ac_ext <<_ACEOF |
| 12485 | #line $LINENO "configure" |
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. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12491 | |
| 12492 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12493 | #ifdef __cplusplus |
| 12494 | extern "C" |
| 12495 | #endif |
| 12496 | /* We use char because int might match the return type of a gcc2 |
| 12497 | builtin and then its argument prototype would still apply. */ |
| 12498 | char XextCreateExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12499 | int |
| 12500 | main () |
| 12501 | { |
| 12502 | XextCreateExtension (); |
| 12503 | ; |
| 12504 | return 0; |
| 12505 | } |
| 12506 | _ACEOF |
| 12507 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12509 | (eval $ac_link) 2>&5 |
| 12510 | ac_status=$? |
| 12511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12512 | (exit $ac_status); } && |
| 12513 | { ac_try='test -s conftest$ac_exeext' |
| 12514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12515 | (eval $ac_try) 2>&5 |
| 12516 | ac_status=$? |
| 12517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12518 | (exit $ac_status); }; }; then |
Todd Vierling | 47f021c | 2003-07-26 20:27:47 +0000 | [diff] [blame] | 12519 | ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^ ]*\).*$/\1/'` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12520 | if test "x$ac_cv_lib_soname_Xext" = "x" |
| 12521 | then |
| 12522 | ac_cv_lib_soname_Xext="libXext.so" |
| 12523 | fi |
| 12524 | else |
| 12525 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12527 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12528 | ac_cv_lib_soname_Xext="libXext.so" |
| 12529 | fi |
| 12530 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12531 | LIBS=$ac_get_soname_save_LIBS |
| 12532 | fi |
| 12533 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5 |
| 12534 | echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6 |
| 12535 | if test "x$ac_cv_lib_soname_Xext" != xNONE |
| 12536 | then |
| 12537 | cat >>confdefs.h <<_ACEOF |
| 12538 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" |
| 12539 | _ACEOF |
| 12540 | fi |
| 12541 | |
| 12542 | echo "$as_me:$LINENO: checking for -lXrender soname" >&5 |
| 12543 | echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6 |
| 12544 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then |
| 12545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12546 | else |
| 12547 | ac_get_soname_save_LIBS=$LIBS |
| 12548 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 12549 | cat >conftest.$ac_ext <<_ACEOF |
| 12550 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12551 | /* confdefs.h. */ |
| 12552 | _ACEOF |
| 12553 | cat confdefs.h >>conftest.$ac_ext |
| 12554 | cat >>conftest.$ac_ext <<_ACEOF |
| 12555 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12556 | |
| 12557 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12558 | #ifdef __cplusplus |
| 12559 | extern "C" |
| 12560 | #endif |
| 12561 | /* We use char because int might match the return type of a gcc2 |
| 12562 | builtin and then its argument prototype would still apply. */ |
| 12563 | char XRenderQueryExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12564 | int |
| 12565 | main () |
| 12566 | { |
| 12567 | XRenderQueryExtension (); |
| 12568 | ; |
| 12569 | return 0; |
| 12570 | } |
| 12571 | _ACEOF |
| 12572 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12573 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12574 | (eval $ac_link) 2>&5 |
| 12575 | ac_status=$? |
| 12576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12577 | (exit $ac_status); } && |
| 12578 | { ac_try='test -s conftest$ac_exeext' |
| 12579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12580 | (eval $ac_try) 2>&5 |
| 12581 | ac_status=$? |
| 12582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12583 | (exit $ac_status); }; }; then |
Todd Vierling | 47f021c | 2003-07-26 20:27:47 +0000 | [diff] [blame] | 12584 | ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^ ]*\).*$/\1/'` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12585 | if test "x$ac_cv_lib_soname_Xrender" = "x" |
| 12586 | then |
| 12587 | ac_cv_lib_soname_Xrender="libXrender.so" |
| 12588 | fi |
| 12589 | else |
| 12590 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12592 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12593 | ac_cv_lib_soname_Xrender="libXrender.so" |
| 12594 | fi |
| 12595 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12596 | LIBS=$ac_get_soname_save_LIBS |
| 12597 | fi |
| 12598 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5 |
| 12599 | echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6 |
| 12600 | if test "x$ac_cv_lib_soname_Xrender" != xNONE |
| 12601 | then |
| 12602 | cat >>confdefs.h <<_ACEOF |
| 12603 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" |
| 12604 | _ACEOF |
| 12605 | fi |
| 12606 | |
| 12607 | echo "$as_me:$LINENO: checking for -lfreetype soname" >&5 |
| 12608 | echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6 |
| 12609 | if test "${ac_cv_lib_soname_freetype+set}" = set; then |
| 12610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12611 | else |
| 12612 | ac_get_soname_save_LIBS=$LIBS |
| 12613 | LIBS="-lfreetype $X_LIBS $LIBS" |
| 12614 | cat >conftest.$ac_ext <<_ACEOF |
| 12615 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12616 | /* confdefs.h. */ |
| 12617 | _ACEOF |
| 12618 | cat confdefs.h >>conftest.$ac_ext |
| 12619 | cat >>conftest.$ac_ext <<_ACEOF |
| 12620 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12621 | |
| 12622 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12623 | #ifdef __cplusplus |
| 12624 | extern "C" |
| 12625 | #endif |
| 12626 | /* We use char because int might match the return type of a gcc2 |
| 12627 | builtin and then its argument prototype would still apply. */ |
| 12628 | char FT_Init_FreeType (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12629 | int |
| 12630 | main () |
| 12631 | { |
| 12632 | FT_Init_FreeType (); |
| 12633 | ; |
| 12634 | return 0; |
| 12635 | } |
| 12636 | _ACEOF |
| 12637 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12639 | (eval $ac_link) 2>&5 |
| 12640 | ac_status=$? |
| 12641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12642 | (exit $ac_status); } && |
| 12643 | { ac_try='test -s conftest$ac_exeext' |
| 12644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12645 | (eval $ac_try) 2>&5 |
| 12646 | ac_status=$? |
| 12647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12648 | (exit $ac_status); }; }; then |
Todd Vierling | 47f021c | 2003-07-26 20:27:47 +0000 | [diff] [blame] | 12649 | ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^ ]*\).*$/\1/'` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12650 | if test "x$ac_cv_lib_soname_freetype" = "x" |
| 12651 | then |
| 12652 | ac_cv_lib_soname_freetype="libfreetype.so" |
| 12653 | fi |
| 12654 | else |
| 12655 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12657 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12658 | ac_cv_lib_soname_freetype="libfreetype.so" |
| 12659 | fi |
| 12660 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12661 | LIBS=$ac_get_soname_save_LIBS |
| 12662 | fi |
| 12663 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5 |
| 12664 | echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6 |
| 12665 | if test "x$ac_cv_lib_soname_freetype" != xNONE |
| 12666 | then |
| 12667 | cat >>confdefs.h <<_ACEOF |
| 12668 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
| 12669 | _ACEOF |
| 12670 | fi |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 12671 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 12672 | echo "$as_me:$LINENO: checking for -lGL soname" >&5 |
| 12673 | echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6 |
| 12674 | if test "${ac_cv_lib_soname_GL+set}" = set; then |
| 12675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12676 | else |
| 12677 | ac_get_soname_save_LIBS=$LIBS |
| 12678 | LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 12679 | cat >conftest.$ac_ext <<_ACEOF |
| 12680 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12681 | /* confdefs.h. */ |
| 12682 | _ACEOF |
| 12683 | cat confdefs.h >>conftest.$ac_ext |
| 12684 | cat >>conftest.$ac_ext <<_ACEOF |
| 12685 | /* end confdefs.h. */ |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 12686 | |
| 12687 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12688 | #ifdef __cplusplus |
| 12689 | extern "C" |
| 12690 | #endif |
| 12691 | /* We use char because int might match the return type of a gcc2 |
| 12692 | builtin and then its argument prototype would still apply. */ |
| 12693 | char glXQueryExtension (); |
| 12694 | int |
| 12695 | main () |
| 12696 | { |
| 12697 | glXQueryExtension (); |
| 12698 | ; |
| 12699 | return 0; |
| 12700 | } |
| 12701 | _ACEOF |
| 12702 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12704 | (eval $ac_link) 2>&5 |
| 12705 | ac_status=$? |
| 12706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12707 | (exit $ac_status); } && |
| 12708 | { ac_try='test -s conftest$ac_exeext' |
| 12709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12710 | (eval $ac_try) 2>&5 |
| 12711 | ac_status=$? |
| 12712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12713 | (exit $ac_status); }; }; then |
Todd Vierling | 47f021c | 2003-07-26 20:27:47 +0000 | [diff] [blame] | 12714 | ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^ ]*\).*$/\1/'` |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 12715 | if test "x$ac_cv_lib_soname_GL" = "x" |
| 12716 | then |
| 12717 | ac_cv_lib_soname_GL="libGL.so" |
| 12718 | fi |
| 12719 | else |
| 12720 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12722 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 12723 | ac_cv_lib_soname_GL="libGL.so" |
| 12724 | fi |
| 12725 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12726 | LIBS=$ac_get_soname_save_LIBS |
| 12727 | fi |
| 12728 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5 |
| 12729 | echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6 |
| 12730 | if test "x$ac_cv_lib_soname_GL" != xNONE |
| 12731 | then |
| 12732 | cat >>confdefs.h <<_ACEOF |
| 12733 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 12734 | _ACEOF |
| 12735 | fi |
| 12736 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 12737 | echo "$as_me:$LINENO: checking for -lcups soname" >&5 |
| 12738 | echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6 |
| 12739 | if test "${ac_cv_lib_soname_cups+set}" = set; then |
| 12740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12741 | else |
| 12742 | ac_get_soname_save_LIBS=$LIBS |
| 12743 | LIBS="-lcups $LIBS" |
| 12744 | cat >conftest.$ac_ext <<_ACEOF |
| 12745 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12746 | /* confdefs.h. */ |
| 12747 | _ACEOF |
| 12748 | cat confdefs.h >>conftest.$ac_ext |
| 12749 | cat >>conftest.$ac_ext <<_ACEOF |
| 12750 | /* end confdefs.h. */ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 12751 | |
| 12752 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12753 | #ifdef __cplusplus |
| 12754 | extern "C" |
| 12755 | #endif |
| 12756 | /* We use char because int might match the return type of a gcc2 |
| 12757 | builtin and then its argument prototype would still apply. */ |
| 12758 | char cupsGetDefault (); |
| 12759 | int |
| 12760 | main () |
| 12761 | { |
| 12762 | cupsGetDefault (); |
| 12763 | ; |
| 12764 | return 0; |
| 12765 | } |
| 12766 | _ACEOF |
| 12767 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12769 | (eval $ac_link) 2>&5 |
| 12770 | ac_status=$? |
| 12771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12772 | (exit $ac_status); } && |
| 12773 | { ac_try='test -s conftest$ac_exeext' |
| 12774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12775 | (eval $ac_try) 2>&5 |
| 12776 | ac_status=$? |
| 12777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12778 | (exit $ac_status); }; }; then |
Todd Vierling | 47f021c | 2003-07-26 20:27:47 +0000 | [diff] [blame] | 12779 | ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^ ]*\).*$/\1/'` |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 12780 | if test "x$ac_cv_lib_soname_cups" = "x" |
| 12781 | then |
| 12782 | ac_cv_lib_soname_cups="libcups.so" |
| 12783 | fi |
| 12784 | else |
| 12785 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12787 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 12788 | ac_cv_lib_soname_cups="libcups.so" |
| 12789 | fi |
| 12790 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12791 | LIBS=$ac_get_soname_save_LIBS |
| 12792 | fi |
| 12793 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5 |
| 12794 | echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6 |
| 12795 | if test "x$ac_cv_lib_soname_cups" != xNONE |
| 12796 | then |
| 12797 | cat >>confdefs.h <<_ACEOF |
| 12798 | #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups" |
| 12799 | _ACEOF |
| 12800 | fi |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 12801 | |
| 12802 | echo "$as_me:$LINENO: checking for -ljack soname" >&5 |
| 12803 | echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6 |
| 12804 | if test "${ac_cv_lib_soname_jack+set}" = set; then |
| 12805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12806 | else |
| 12807 | ac_get_soname_save_LIBS=$LIBS |
| 12808 | LIBS="-ljack $LIBS" |
| 12809 | cat >conftest.$ac_ext <<_ACEOF |
| 12810 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12811 | /* confdefs.h. */ |
| 12812 | _ACEOF |
| 12813 | cat confdefs.h >>conftest.$ac_ext |
| 12814 | cat >>conftest.$ac_ext <<_ACEOF |
| 12815 | /* end confdefs.h. */ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 12816 | |
| 12817 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12818 | #ifdef __cplusplus |
| 12819 | extern "C" |
| 12820 | #endif |
| 12821 | /* We use char because int might match the return type of a gcc2 |
| 12822 | builtin and then its argument prototype would still apply. */ |
| 12823 | char jack_client_new (); |
| 12824 | int |
| 12825 | main () |
| 12826 | { |
| 12827 | jack_client_new (); |
| 12828 | ; |
| 12829 | return 0; |
| 12830 | } |
| 12831 | _ACEOF |
| 12832 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12834 | (eval $ac_link) 2>&5 |
| 12835 | ac_status=$? |
| 12836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12837 | (exit $ac_status); } && |
| 12838 | { ac_try='test -s conftest$ac_exeext' |
| 12839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12840 | (eval $ac_try) 2>&5 |
| 12841 | ac_status=$? |
| 12842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12843 | (exit $ac_status); }; }; then |
Todd Vierling | 47f021c | 2003-07-26 20:27:47 +0000 | [diff] [blame] | 12844 | ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^ ]*\).*$/\1/'` |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 12845 | if test "x$ac_cv_lib_soname_jack" = "x" |
| 12846 | then |
| 12847 | ac_cv_lib_soname_jack="libjack.so" |
| 12848 | fi |
| 12849 | else |
| 12850 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12852 | |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 12853 | ac_cv_lib_soname_jack="libjack.so" |
| 12854 | fi |
| 12855 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12856 | LIBS=$ac_get_soname_save_LIBS |
| 12857 | fi |
| 12858 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5 |
| 12859 | echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6 |
| 12860 | if test "x$ac_cv_lib_soname_jack" != xNONE |
| 12861 | then |
| 12862 | cat >>confdefs.h <<_ACEOF |
| 12863 | #define SONAME_LIBJACK "$ac_cv_lib_soname_jack" |
| 12864 | _ACEOF |
| 12865 | fi |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 12866 | |
| 12867 | echo "$as_me:$LINENO: checking for -lssl soname" >&5 |
| 12868 | echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6 |
| 12869 | if test "${ac_cv_lib_soname_ssl+set}" = set; then |
| 12870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12871 | else |
| 12872 | ac_get_soname_save_LIBS=$LIBS |
| 12873 | LIBS="-lssl $LIBS" |
| 12874 | cat >conftest.$ac_ext <<_ACEOF |
| 12875 | #line $LINENO "configure" |
| 12876 | /* confdefs.h. */ |
| 12877 | _ACEOF |
| 12878 | cat confdefs.h >>conftest.$ac_ext |
| 12879 | cat >>conftest.$ac_ext <<_ACEOF |
| 12880 | /* end confdefs.h. */ |
| 12881 | |
| 12882 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12883 | #ifdef __cplusplus |
| 12884 | extern "C" |
| 12885 | #endif |
| 12886 | /* We use char because int might match the return type of a gcc2 |
| 12887 | builtin and then its argument prototype would still apply. */ |
| 12888 | char SSL_library_init (); |
| 12889 | int |
| 12890 | main () |
| 12891 | { |
| 12892 | SSL_library_init (); |
| 12893 | ; |
| 12894 | return 0; |
| 12895 | } |
| 12896 | _ACEOF |
| 12897 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12899 | (eval $ac_link) 2>&5 |
| 12900 | ac_status=$? |
| 12901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12902 | (exit $ac_status); } && |
| 12903 | { ac_try='test -s conftest$ac_exeext' |
| 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 |
Todd Vierling | 47f021c | 2003-07-26 20:27:47 +0000 | [diff] [blame] | 12909 | ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^ ]*\).*$/\1/'` |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 12910 | if test "x$ac_cv_lib_soname_ssl" = "x" |
| 12911 | then |
| 12912 | ac_cv_lib_soname_ssl="libssl.so" |
| 12913 | fi |
| 12914 | else |
| 12915 | echo "$as_me: failed program was:" >&5 |
| 12916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12917 | |
| 12918 | ac_cv_lib_soname_ssl="libssl.so" |
| 12919 | fi |
| 12920 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12921 | LIBS=$ac_get_soname_save_LIBS |
| 12922 | fi |
| 12923 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5 |
| 12924 | echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6 |
| 12925 | if test "x$ac_cv_lib_soname_ssl" != xNONE |
| 12926 | then |
| 12927 | cat >>confdefs.h <<_ACEOF |
| 12928 | #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl" |
| 12929 | _ACEOF |
| 12930 | fi |
| 12931 | |
| 12932 | echo "$as_me:$LINENO: checking for -lcrypto soname" >&5 |
| 12933 | echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6 |
| 12934 | if test "${ac_cv_lib_soname_crypto+set}" = set; then |
| 12935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12936 | else |
| 12937 | ac_get_soname_save_LIBS=$LIBS |
| 12938 | LIBS="-lcrypto $LIBS" |
| 12939 | cat >conftest.$ac_ext <<_ACEOF |
| 12940 | #line $LINENO "configure" |
| 12941 | /* confdefs.h. */ |
| 12942 | _ACEOF |
| 12943 | cat confdefs.h >>conftest.$ac_ext |
| 12944 | cat >>conftest.$ac_ext <<_ACEOF |
| 12945 | /* end confdefs.h. */ |
| 12946 | |
| 12947 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12948 | #ifdef __cplusplus |
| 12949 | extern "C" |
| 12950 | #endif |
| 12951 | /* We use char because int might match the return type of a gcc2 |
| 12952 | builtin and then its argument prototype would still apply. */ |
| 12953 | char BIO_new_socket (); |
| 12954 | int |
| 12955 | main () |
| 12956 | { |
| 12957 | BIO_new_socket (); |
| 12958 | ; |
| 12959 | return 0; |
| 12960 | } |
| 12961 | _ACEOF |
| 12962 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12964 | (eval $ac_link) 2>&5 |
| 12965 | ac_status=$? |
| 12966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12967 | (exit $ac_status); } && |
| 12968 | { ac_try='test -s conftest$ac_exeext' |
| 12969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12970 | (eval $ac_try) 2>&5 |
| 12971 | ac_status=$? |
| 12972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12973 | (exit $ac_status); }; }; then |
Todd Vierling | 47f021c | 2003-07-26 20:27:47 +0000 | [diff] [blame] | 12974 | ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^ ]*\).*$/\1/'` |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 12975 | if test "x$ac_cv_lib_soname_crypto" = "x" |
| 12976 | then |
| 12977 | ac_cv_lib_soname_crypto="libcrypto.so" |
| 12978 | fi |
| 12979 | else |
| 12980 | echo "$as_me: failed program was:" >&5 |
| 12981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12982 | |
| 12983 | ac_cv_lib_soname_crypto="libcrypto.so" |
| 12984 | fi |
| 12985 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12986 | LIBS=$ac_get_soname_save_LIBS |
| 12987 | fi |
| 12988 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5 |
| 12989 | echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6 |
| 12990 | if test "x$ac_cv_lib_soname_crypto" != xNONE |
| 12991 | then |
| 12992 | cat >>confdefs.h <<_ACEOF |
| 12993 | #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto" |
| 12994 | _ACEOF |
| 12995 | fi |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12996 | fi |
| 12997 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12998 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 12999 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13000 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 13001 | # for constant arguments. Useless! |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13002 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13003 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 13004 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 13005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13006 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13007 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13008 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13009 | /* confdefs.h. */ |
| 13010 | _ACEOF |
| 13011 | cat confdefs.h >>conftest.$ac_ext |
| 13012 | cat >>conftest.$ac_ext <<_ACEOF |
| 13013 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13014 | #include <alloca.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13015 | int |
| 13016 | main () |
| 13017 | { |
| 13018 | char *p = (char *) alloca (2 * sizeof (int)); |
| 13019 | ; |
| 13020 | return 0; |
| 13021 | } |
| 13022 | _ACEOF |
| 13023 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13024 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13025 | (eval $ac_link) 2>&5 |
| 13026 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13028 | (exit $ac_status); } && |
| 13029 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13031 | (eval $ac_try) 2>&5 |
| 13032 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13034 | (exit $ac_status); }; }; then |
| 13035 | ac_cv_working_alloca_h=yes |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13036 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13037 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13039 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13040 | ac_cv_working_alloca_h=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13041 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13042 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13043 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13044 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13045 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 13046 | if test $ac_cv_working_alloca_h = yes; then |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13047 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13048 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13049 | #define HAVE_ALLOCA_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13050 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13051 | |
| 13052 | fi |
| 13053 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13054 | echo "$as_me:$LINENO: checking for alloca" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13055 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 13056 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 13057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13058 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13059 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13060 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13061 | /* confdefs.h. */ |
| 13062 | _ACEOF |
| 13063 | cat confdefs.h >>conftest.$ac_ext |
| 13064 | cat >>conftest.$ac_ext <<_ACEOF |
| 13065 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13066 | #ifdef __GNUC__ |
| 13067 | # define alloca __builtin_alloca |
| 13068 | #else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 13069 | # ifdef _MSC_VER |
| 13070 | # include <malloc.h> |
| 13071 | # define alloca _alloca |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13072 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 13073 | # if HAVE_ALLOCA_H |
| 13074 | # include <alloca.h> |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13075 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 13076 | # ifdef _AIX |
| 13077 | #pragma alloca |
| 13078 | # else |
| 13079 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13080 | char *alloca (); |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 13081 | # endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13082 | # endif |
| 13083 | # endif |
| 13084 | # endif |
| 13085 | #endif |
| 13086 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13087 | int |
| 13088 | main () |
| 13089 | { |
| 13090 | char *p = (char *) alloca (1); |
| 13091 | ; |
| 13092 | return 0; |
| 13093 | } |
| 13094 | _ACEOF |
| 13095 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13097 | (eval $ac_link) 2>&5 |
| 13098 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13100 | (exit $ac_status); } && |
| 13101 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13103 | (eval $ac_try) 2>&5 |
| 13104 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13106 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13107 | ac_cv_func_alloca_works=yes |
| 13108 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13109 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13111 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13112 | ac_cv_func_alloca_works=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13113 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13114 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13115 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13116 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13117 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13118 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13119 | if test $ac_cv_func_alloca_works = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13120 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13121 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13122 | #define HAVE_ALLOCA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13123 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13124 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13125 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13126 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13127 | # that cause trouble. Some versions do not even contain alloca or |
| 13128 | # contain a buggy version. If you still want to use their alloca, |
| 13129 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 13130 | |
| 13131 | ALLOCA=alloca.$ac_objext |
| 13132 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13133 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13134 | #define C_ALLOCA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13135 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13136 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13137 | |
| 13138 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13139 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 13140 | if test "${ac_cv_os_cray+set}" = set; then |
| 13141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13142 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13143 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13144 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13145 | /* confdefs.h. */ |
| 13146 | _ACEOF |
| 13147 | cat confdefs.h >>conftest.$ac_ext |
| 13148 | cat >>conftest.$ac_ext <<_ACEOF |
| 13149 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13150 | #if defined(CRAY) && ! defined(CRAY2) |
| 13151 | webecray |
| 13152 | #else |
| 13153 | wenotbecray |
| 13154 | #endif |
| 13155 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13156 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13157 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13158 | $EGREP "webecray" >/dev/null 2>&1; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13159 | ac_cv_os_cray=yes |
| 13160 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13161 | ac_cv_os_cray=no |
| 13162 | fi |
| 13163 | rm -f conftest* |
| 13164 | |
| 13165 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13166 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13167 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13168 | if test $ac_cv_os_cray = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13169 | for ac_func in _getb67 GETB67 getb67; do |
| 13170 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13171 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13172 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13173 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13175 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13176 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13177 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13178 | /* confdefs.h. */ |
| 13179 | _ACEOF |
| 13180 | cat confdefs.h >>conftest.$ac_ext |
| 13181 | cat >>conftest.$ac_ext <<_ACEOF |
| 13182 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13183 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13184 | which can conflict with char $ac_func (); below. |
| 13185 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13186 | <limits.h> exists even on freestanding compilers. */ |
| 13187 | #ifdef __STDC__ |
| 13188 | # include <limits.h> |
| 13189 | #else |
| 13190 | # include <assert.h> |
| 13191 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13192 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13193 | #ifdef __cplusplus |
| 13194 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13195 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13196 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 13197 | /* 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] | 13198 | builtin and then its argument prototype would still apply. */ |
| 13199 | char $ac_func (); |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13200 | /* The GNU C library defines this for functions which it implements |
| 13201 | to always fail with ENOSYS. Some functions are actually named |
| 13202 | something starting with __ and the normal name is an alias. */ |
| 13203 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13204 | choke me |
| 13205 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13206 | char (*f) () = $ac_func; |
| 13207 | #endif |
| 13208 | #ifdef __cplusplus |
| 13209 | } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13210 | #endif |
| 13211 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13212 | int |
| 13213 | main () |
| 13214 | { |
| 13215 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13216 | ; |
| 13217 | return 0; |
| 13218 | } |
| 13219 | _ACEOF |
| 13220 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13222 | (eval $ac_link) 2>&5 |
| 13223 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13225 | (exit $ac_status); } && |
| 13226 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13228 | (eval $ac_try) 2>&5 |
| 13229 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13231 | (exit $ac_status); }; }; then |
| 13232 | eval "$as_ac_var=yes" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13233 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13234 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13236 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13237 | eval "$as_ac_var=no" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13238 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13239 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13240 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13241 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13242 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13243 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13244 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13245 | cat >>confdefs.h <<_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13246 | #define CRAY_STACKSEG_END $ac_func |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13247 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13248 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13249 | break |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13250 | fi |
| 13251 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13252 | done |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13253 | fi |
| 13254 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13255 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13256 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 13257 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 13258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13259 | else |
| 13260 | if test "$cross_compiling" = yes; then |
| 13261 | ac_cv_c_stack_direction=0 |
| 13262 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13263 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13264 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13265 | /* confdefs.h. */ |
| 13266 | _ACEOF |
| 13267 | cat confdefs.h >>conftest.$ac_ext |
| 13268 | cat >>conftest.$ac_ext <<_ACEOF |
| 13269 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13270 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13271 | find_stack_direction () |
| 13272 | { |
| 13273 | static char *addr = 0; |
| 13274 | auto char dummy; |
| 13275 | if (addr == 0) |
| 13276 | { |
| 13277 | addr = &dummy; |
| 13278 | return find_stack_direction (); |
| 13279 | } |
| 13280 | else |
| 13281 | return (&dummy > addr) ? 1 : -1; |
| 13282 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13283 | |
| 13284 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13285 | main () |
| 13286 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13287 | exit (find_stack_direction () < 0); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13288 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13289 | _ACEOF |
| 13290 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13292 | (eval $ac_link) 2>&5 |
| 13293 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13295 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13297 | (eval $ac_try) 2>&5 |
| 13298 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13300 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13301 | ac_cv_c_stack_direction=1 |
| 13302 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13303 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13304 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13306 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13307 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13308 | ac_cv_c_stack_direction=-1 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13309 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13310 | rm -f core 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] | 13311 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13312 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13313 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13314 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13315 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13316 | cat >>confdefs.h <<_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13317 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13318 | _ACEOF |
| 13319 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13320 | |
| 13321 | fi |
| 13322 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13323 | |
| 13324 | |
| 13325 | |
| 13326 | |
| 13327 | |
| 13328 | |
| 13329 | |
| 13330 | |
| 13331 | |
| 13332 | |
| 13333 | |
| 13334 | |
| 13335 | |
| 13336 | |
| 13337 | |
| 13338 | |
| 13339 | |
| 13340 | |
| 13341 | |
| 13342 | |
| 13343 | |
| 13344 | |
| 13345 | |
| 13346 | |
| 13347 | |
| 13348 | |
| 13349 | |
| 13350 | |
| 13351 | |
| 13352 | |
| 13353 | |
| 13354 | |
| 13355 | |
| 13356 | |
| 13357 | |
| 13358 | |
| 13359 | |
| 13360 | |
| 13361 | |
| 13362 | |
| 13363 | |
| 13364 | |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 13365 | |
| 13366 | |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 13367 | |
| 13368 | |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 13369 | |
Patrik Stridvall | 6caeb72 | 2002-11-25 21:12:26 +0000 | [diff] [blame] | 13370 | |
| 13371 | |
| 13372 | |
| 13373 | |
| 13374 | |
Alexandre Julliard | 8d7b8e5 | 2003-03-23 20:11:45 +0000 | [diff] [blame] | 13375 | |
Alexandre Julliard | c45bbad | 2003-04-01 00:12:02 +0000 | [diff] [blame] | 13376 | |
Alexandre Julliard | 6f7a204 | 2003-04-01 04:39:35 +0000 | [diff] [blame] | 13377 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13378 | for ac_func in \ |
| 13379 | _lwp_create \ |
Alexandre Julliard | 6f7a204 | 2003-04-01 04:39:35 +0000 | [diff] [blame] | 13380 | _lwp_self \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13381 | _pclose \ |
| 13382 | _popen \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 13383 | _snprintf \ |
Alexandre Julliard | c45bbad | 2003-04-01 00:12:02 +0000 | [diff] [blame] | 13384 | _spawnvp \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13385 | _stricmp \ |
| 13386 | _strnicmp \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 13387 | _vsnprintf \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 13388 | chsize \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13389 | clone \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 13390 | finite \ |
| 13391 | fpclass \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 13392 | ftruncate \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 13393 | ftruncate64 \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 13394 | getnetbyaddr \ |
| 13395 | getnetbyname \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 13396 | getopt_long \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13397 | getpagesize \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 13398 | getprotobyname \ |
| 13399 | getprotobynumber \ |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 13400 | getpwuid \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 13401 | getservbyport \ |
Alexandre Julliard | 8d7b8e5 | 2003-03-23 20:11:45 +0000 | [diff] [blame] | 13402 | gettimeofday \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 13403 | inet_network \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 13404 | lseek64 \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 13405 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13406 | memmove \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 13407 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13408 | pclose \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13409 | popen \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 13410 | pread \ |
Patrik Stridvall | 6caeb72 | 2002-11-25 21:12:26 +0000 | [diff] [blame] | 13411 | pthread_getspecific \ |
| 13412 | pthread_key_create \ |
| 13413 | pthread_mutex_lock \ |
| 13414 | pthread_mutex_unlock \ |
| 13415 | pthread_setspecific \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 13416 | pwrite \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13417 | rfork \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 13418 | select \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13419 | sendmsg \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 13420 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13421 | sigaltstack \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 13422 | snprintf \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 13423 | statfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 13424 | strcasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13425 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 13426 | strncasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13427 | tcgetattr \ |
| 13428 | timegm \ |
| 13429 | usleep \ |
| 13430 | vfscanf \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 13431 | vsnprintf \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13432 | wait4 \ |
| 13433 | waitpid \ |
| 13434 | |
| 13435 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13436 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13437 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13438 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13439 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13441 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13442 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13443 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13444 | /* confdefs.h. */ |
| 13445 | _ACEOF |
| 13446 | cat confdefs.h >>conftest.$ac_ext |
| 13447 | cat >>conftest.$ac_ext <<_ACEOF |
| 13448 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13449 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13450 | which can conflict with char $ac_func (); below. |
| 13451 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13452 | <limits.h> exists even on freestanding compilers. */ |
| 13453 | #ifdef __STDC__ |
| 13454 | # include <limits.h> |
| 13455 | #else |
| 13456 | # include <assert.h> |
| 13457 | #endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13458 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13459 | #ifdef __cplusplus |
| 13460 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13461 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13462 | #endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13463 | /* 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] | 13464 | builtin and then its argument prototype would still apply. */ |
| 13465 | char $ac_func (); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13466 | /* The GNU C library defines this for functions which it implements |
| 13467 | to always fail with ENOSYS. Some functions are actually named |
| 13468 | something starting with __ and the normal name is an alias. */ |
| 13469 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13470 | choke me |
| 13471 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13472 | char (*f) () = $ac_func; |
| 13473 | #endif |
| 13474 | #ifdef __cplusplus |
| 13475 | } |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 13476 | #endif |
| 13477 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13478 | int |
| 13479 | main () |
| 13480 | { |
| 13481 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13482 | ; |
| 13483 | return 0; |
| 13484 | } |
| 13485 | _ACEOF |
| 13486 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13488 | (eval $ac_link) 2>&5 |
| 13489 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13491 | (exit $ac_status); } && |
| 13492 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13494 | (eval $ac_try) 2>&5 |
| 13495 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13497 | (exit $ac_status); }; }; then |
| 13498 | eval "$as_ac_var=yes" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13499 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13500 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13502 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13503 | eval "$as_ac_var=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13504 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13505 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13506 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13507 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13508 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13509 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13510 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13511 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13512 | _ACEOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 13513 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13514 | fi |
| 13515 | done |
| 13516 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13517 | |
| 13518 | |
| 13519 | |
| 13520 | |
| 13521 | |
| 13522 | |
| 13523 | |
| 13524 | |
| 13525 | |
| 13526 | |
| 13527 | |
| 13528 | |
| 13529 | |
| 13530 | |
| 13531 | |
| 13532 | |
| 13533 | |
| 13534 | |
| 13535 | |
| 13536 | |
| 13537 | |
| 13538 | |
| 13539 | |
| 13540 | |
| 13541 | |
| 13542 | |
| 13543 | |
| 13544 | |
| 13545 | |
| 13546 | |
| 13547 | |
| 13548 | |
| 13549 | |
| 13550 | |
| 13551 | |
| 13552 | |
| 13553 | |
| 13554 | |
| 13555 | |
| 13556 | |
| 13557 | |
| 13558 | |
| 13559 | |
| 13560 | |
| 13561 | |
| 13562 | |
| 13563 | |
| 13564 | |
| 13565 | |
| 13566 | |
| 13567 | |
| 13568 | |
| 13569 | |
| 13570 | |
| 13571 | |
| 13572 | |
| 13573 | |
| 13574 | |
| 13575 | |
| 13576 | |
| 13577 | |
Laurent Pinchart | 0314a65 | 2002-05-01 22:01:30 +0000 | [diff] [blame] | 13578 | |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 13579 | |
| 13580 | |
| 13581 | |
Alexandre Julliard | 127ec92 | 2002-05-07 01:51:30 +0000 | [diff] [blame] | 13582 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 13583 | |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 13584 | |
| 13585 | |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 13586 | |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 13587 | |
Alexandre Julliard | b693895 | 2003-01-13 18:41:40 +0000 | [diff] [blame] | 13588 | |
Alexandre Julliard | c44555b | 2003-04-02 01:42:06 +0000 | [diff] [blame] | 13589 | |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 13590 | |
Yorick Hardy | c26b7db | 2003-05-19 21:46:09 +0000 | [diff] [blame] | 13591 | |
Yorick Hardy | b133454 | 2003-05-20 17:48:40 +0000 | [diff] [blame] | 13592 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 13593 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13594 | for ac_header in \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13595 | arpa/inet.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13596 | arpa/nameser.h \ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 13597 | cups/cups.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13598 | direct.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13599 | elf.h \ |
| 13600 | float.h \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 13601 | getopt.h \ |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 13602 | ieeefp.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13603 | io.h \ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 13604 | jack/jack.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13605 | libio.h \ |
Hidenori Takeshima | 01f78aa | 2000-07-09 12:19:09 +0000 | [diff] [blame] | 13606 | libutil.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13607 | link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13608 | linux/cdrom.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 13609 | linux/hdreg.h \ |
Marcus Meissner | c9b3b2e | 2000-12-12 00:38:58 +0000 | [diff] [blame] | 13610 | linux/input.h \ |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13611 | linux/joystick.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 13612 | linux/major.h \ |
Laurent Pinchart | 0314a65 | 2002-05-01 22:01:30 +0000 | [diff] [blame] | 13613 | linux/param.h \ |
Lawson Whitney | 533e7ee | 2002-02-19 18:41:56 +0000 | [diff] [blame] | 13614 | linux/serial.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13615 | linux/ucdrom.h \ |
Yorick Hardy | b133454 | 2003-05-20 17:48:40 +0000 | [diff] [blame] | 13616 | machine/cpu.h \ |
Hidenori Takeshima | 5d1a638 | 2000-11-26 04:00:53 +0000 | [diff] [blame] | 13617 | netdb.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13618 | netinet/in.h \ |
Patrik Stridvall | 7a4e599 | 2000-12-01 23:53:46 +0000 | [diff] [blame] | 13619 | netinet/in_systm.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13620 | netinet/tcp.h \ |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 13621 | netinet/tcp_fsm.h \ |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 13622 | openssl/ssl.h \ |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 13623 | pty.h \ |
Steven Edwards | ff4525c | 2002-06-24 23:00:25 +0000 | [diff] [blame] | 13624 | pwd.h \ |
Alexandre Julliard | b693895 | 2003-01-13 18:41:40 +0000 | [diff] [blame] | 13625 | regex.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13626 | sched.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 13627 | scsi/sg.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13628 | socket.h \ |
Bang Jun-Young | eda758e | 2001-12-14 22:47:19 +0000 | [diff] [blame] | 13629 | stdint.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13630 | strings.h \ |
| 13631 | sys/cdio.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 13632 | sys/errno.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13633 | sys/file.h \ |
| 13634 | sys/filio.h \ |
Michal Pasternak | 6098399 | 2002-03-29 18:04:43 +0000 | [diff] [blame] | 13635 | sys/inttypes.h \ |
Alexandre Julliard | c3e06df | 2002-05-14 23:18:23 +0000 | [diff] [blame] | 13636 | sys/ioctl.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13637 | sys/ipc.h \ |
Eric Pouech | 624cbd7 | 2001-08-10 22:29:21 +0000 | [diff] [blame] | 13638 | sys/link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13639 | sys/lwp.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 13640 | sys/mman.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13641 | sys/modem.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13642 | sys/msg.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13643 | sys/param.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 13644 | sys/poll.h \ |
Dimitrie O. Paun | 2af03e4 | 2000-11-29 20:04:09 +0000 | [diff] [blame] | 13645 | sys/ptrace.h \ |
Ulrich Weigand | 8a1bdb3 | 2000-01-30 22:22:22 +0000 | [diff] [blame] | 13646 | sys/reg.h \ |
Yorick Hardy | c26b7db | 2003-05-19 21:46:09 +0000 | [diff] [blame] | 13647 | sys/scsiio.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13648 | sys/shm.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 13649 | sys/signal.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13650 | sys/socket.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13651 | sys/sockio.h \ |
| 13652 | sys/statfs.h \ |
| 13653 | sys/strtio.h \ |
| 13654 | sys/syscall.h \ |
Alexandre Julliard | 127ec92 | 2002-05-07 01:51:30 +0000 | [diff] [blame] | 13655 | sys/sysctl.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13656 | sys/time.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 13657 | sys/times.h \ |
Steven Edwards | 45e5681 | 2002-10-31 03:41:56 +0000 | [diff] [blame] | 13658 | sys/uio.h \ |
| 13659 | sys/un.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13660 | sys/v86.h \ |
| 13661 | sys/v86intr.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13662 | sys/vfs.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13663 | sys/vm86.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 13664 | sys/wait.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13665 | syscall.h \ |
Alexandre Julliard | c3e06df | 2002-05-14 23:18:23 +0000 | [diff] [blame] | 13666 | termios.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13667 | unistd.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 13668 | utime.h \ |
Alexandre Julliard | c44555b | 2003-04-02 01:42:06 +0000 | [diff] [blame] | 13669 | valgrind/memcheck.h |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13670 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13671 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13672 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13673 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13674 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13675 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13676 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13678 | fi |
| 13679 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13680 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13681 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13682 | # Is the header compilable? |
| 13683 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 13684 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 13685 | cat >conftest.$ac_ext <<_ACEOF |
| 13686 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13687 | /* confdefs.h. */ |
| 13688 | _ACEOF |
| 13689 | cat confdefs.h >>conftest.$ac_ext |
| 13690 | cat >>conftest.$ac_ext <<_ACEOF |
| 13691 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13692 | $ac_includes_default |
| 13693 | #include <$ac_header> |
| 13694 | _ACEOF |
| 13695 | rm -f conftest.$ac_objext |
| 13696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13697 | (eval $ac_compile) 2>&5 |
| 13698 | ac_status=$? |
| 13699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13700 | (exit $ac_status); } && |
| 13701 | { ac_try='test -s conftest.$ac_objext' |
| 13702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13703 | (eval $ac_try) 2>&5 |
| 13704 | ac_status=$? |
| 13705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13706 | (exit $ac_status); }; }; then |
| 13707 | ac_header_compiler=yes |
| 13708 | else |
| 13709 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13711 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13712 | ac_header_compiler=no |
| 13713 | fi |
| 13714 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13715 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13716 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 13717 | |
| 13718 | # Is the header present? |
| 13719 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 13720 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 13721 | cat >conftest.$ac_ext <<_ACEOF |
| 13722 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13723 | /* confdefs.h. */ |
| 13724 | _ACEOF |
| 13725 | cat confdefs.h >>conftest.$ac_ext |
| 13726 | cat >>conftest.$ac_ext <<_ACEOF |
| 13727 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13728 | #include <$ac_header> |
| 13729 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13730 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13731 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13732 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13733 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13734 | rm -f conftest.er1 |
| 13735 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13737 | (exit $ac_status); } >/dev/null; then |
| 13738 | if test -s conftest.err; then |
| 13739 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13740 | else |
| 13741 | ac_cpp_err= |
| 13742 | fi |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13743 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13744 | ac_cpp_err=yes |
| 13745 | fi |
| 13746 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13747 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13748 | else |
| 13749 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13751 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13752 | ac_header_preproc=no |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13753 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13754 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13755 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13756 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13757 | |
| 13758 | # So? What about this header? |
| 13759 | case $ac_header_compiler:$ac_header_preproc in |
| 13760 | yes:no ) |
| 13761 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13762 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13763 | { 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] | 13764 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 13765 | ( |
| 13766 | cat <<\_ASBOX |
| 13767 | ## ------------------------------------ ## |
| 13768 | ## Report this to bug-autoconf@gnu.org. ## |
| 13769 | ## ------------------------------------ ## |
| 13770 | _ASBOX |
| 13771 | ) | |
| 13772 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13773 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13774 | no:yes ) |
| 13775 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 13776 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 13777 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 13778 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 13779 | { 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] | 13780 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 13781 | ( |
| 13782 | cat <<\_ASBOX |
| 13783 | ## ------------------------------------ ## |
| 13784 | ## Report this to bug-autoconf@gnu.org. ## |
| 13785 | ## ------------------------------------ ## |
| 13786 | _ASBOX |
| 13787 | ) | |
| 13788 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13789 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13790 | esac |
| 13791 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13792 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13793 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13795 | else |
| 13796 | eval "$as_ac_Header=$ac_header_preproc" |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13797 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13798 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13799 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13800 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13801 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13802 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13803 | cat >>confdefs.h <<_ACEOF |
| 13804 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13805 | _ACEOF |
| 13806 | |
| 13807 | fi |
| 13808 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13809 | done |
| 13810 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13811 | 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] | 13812 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 13813 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 13814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13815 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13816 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13817 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13818 | /* confdefs.h. */ |
| 13819 | _ACEOF |
| 13820 | cat confdefs.h >>conftest.$ac_ext |
| 13821 | cat >>conftest.$ac_ext <<_ACEOF |
| 13822 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13823 | #include <sys/types.h> |
| 13824 | #include <sys/stat.h> |
| 13825 | |
| 13826 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 13827 | # if S_ISBLK (S_IFDIR) |
| 13828 | You lose. |
| 13829 | # endif |
| 13830 | #endif |
| 13831 | |
| 13832 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 13833 | # if S_ISBLK (S_IFCHR) |
| 13834 | You lose. |
| 13835 | # endif |
| 13836 | #endif |
| 13837 | |
| 13838 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 13839 | # if S_ISLNK (S_IFREG) |
| 13840 | You lose. |
| 13841 | # endif |
| 13842 | #endif |
| 13843 | |
| 13844 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 13845 | # if S_ISSOCK (S_IFREG) |
| 13846 | You lose. |
| 13847 | # endif |
| 13848 | #endif |
| 13849 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13850 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13851 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13852 | $EGREP "You lose" >/dev/null 2>&1; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13853 | ac_cv_header_stat_broken=yes |
| 13854 | else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13855 | ac_cv_header_stat_broken=no |
| 13856 | fi |
| 13857 | rm -f conftest* |
| 13858 | |
| 13859 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13860 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13861 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13862 | if test $ac_cv_header_stat_broken = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13863 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13864 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13865 | #define STAT_MACROS_BROKEN 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13866 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13867 | |
| 13868 | fi |
| 13869 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13870 | |
| 13871 | |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 13872 | |
| 13873 | |
| 13874 | for ac_header in sys/mount.h sys/user.h |
| 13875 | do |
| 13876 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13877 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13878 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13879 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13881 | else |
| 13882 | cat >conftest.$ac_ext <<_ACEOF |
| 13883 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13884 | /* confdefs.h. */ |
| 13885 | _ACEOF |
| 13886 | cat confdefs.h >>conftest.$ac_ext |
| 13887 | cat >>conftest.$ac_ext <<_ACEOF |
| 13888 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 13889 | #include <sys/types.h> |
| 13890 | #if HAVE_SYS_PARAM_H |
| 13891 | # include <sys/param.h> |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 13892 | #endif |
| 13893 | |
| 13894 | #include <$ac_header> |
| 13895 | _ACEOF |
| 13896 | rm -f conftest.$ac_objext |
| 13897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13898 | (eval $ac_compile) 2>&5 |
| 13899 | ac_status=$? |
| 13900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13901 | (exit $ac_status); } && |
| 13902 | { ac_try='test -s conftest.$ac_objext' |
| 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_Header=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 | |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 13913 | eval "$as_ac_Header=no" |
| 13914 | fi |
| 13915 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13916 | fi |
| 13917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13918 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13919 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13920 | cat >>confdefs.h <<_ACEOF |
| 13921 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13922 | _ACEOF |
| 13923 | |
| 13924 | fi |
| 13925 | |
| 13926 | done |
| 13927 | |
| 13928 | |
| 13929 | |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 13930 | |
| 13931 | |
| 13932 | |
| 13933 | |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 13934 | 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] | 13935 | do |
| 13936 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13937 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13938 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13939 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13941 | else |
| 13942 | cat >conftest.$ac_ext <<_ACEOF |
| 13943 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13944 | /* confdefs.h. */ |
| 13945 | _ACEOF |
| 13946 | cat confdefs.h >>conftest.$ac_ext |
| 13947 | cat >>conftest.$ac_ext <<_ACEOF |
| 13948 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 13949 | #include <sys/types.h> |
Gerald Pfeifer | 87c369d | 2002-07-23 02:02:02 +0000 | [diff] [blame] | 13950 | #if HAVE_SYS_SOCKET_H |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 13951 | # include <sys/socket.h> |
| 13952 | #endif |
| 13953 | |
| 13954 | #include <$ac_header> |
| 13955 | _ACEOF |
| 13956 | rm -f conftest.$ac_objext |
| 13957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13958 | (eval $ac_compile) 2>&5 |
| 13959 | ac_status=$? |
| 13960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13961 | (exit $ac_status); } && |
| 13962 | { ac_try='test -s conftest.$ac_objext' |
| 13963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13964 | (eval $ac_try) 2>&5 |
| 13965 | ac_status=$? |
| 13966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13967 | (exit $ac_status); }; }; then |
| 13968 | eval "$as_ac_Header=yes" |
| 13969 | else |
| 13970 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13972 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 13973 | eval "$as_ac_Header=no" |
| 13974 | fi |
| 13975 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13976 | fi |
| 13977 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13978 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13979 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13980 | cat >>confdefs.h <<_ACEOF |
| 13981 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13982 | _ACEOF |
| 13983 | |
| 13984 | fi |
| 13985 | |
| 13986 | done |
| 13987 | |
| 13988 | |
| 13989 | |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 13990 | for ac_header in resolv.h |
| 13991 | do |
| 13992 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13993 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13994 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13995 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13997 | else |
| 13998 | cat >conftest.$ac_ext <<_ACEOF |
| 13999 | #line $LINENO "configure" |
| 14000 | /* confdefs.h. */ |
| 14001 | _ACEOF |
| 14002 | cat confdefs.h >>conftest.$ac_ext |
| 14003 | cat >>conftest.$ac_ext <<_ACEOF |
| 14004 | /* end confdefs.h. */ |
| 14005 | #include <sys/types.h> |
| 14006 | #if HAVE_SYS_SOCKET_H |
| 14007 | # include <sys/socket.h> |
| 14008 | #endif |
| 14009 | #if HAVE_NETINET_IN_H |
| 14010 | # include <netinet/in.h> |
| 14011 | #endif |
| 14012 | |
| 14013 | #include <$ac_header> |
| 14014 | _ACEOF |
| 14015 | rm -f conftest.$ac_objext |
| 14016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14017 | (eval $ac_compile) 2>&5 |
| 14018 | ac_status=$? |
| 14019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14020 | (exit $ac_status); } && |
| 14021 | { ac_try='test -s conftest.$ac_objext' |
| 14022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14023 | (eval $ac_try) 2>&5 |
| 14024 | ac_status=$? |
| 14025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14026 | (exit $ac_status); }; }; then |
| 14027 | eval "$as_ac_Header=yes" |
| 14028 | else |
| 14029 | echo "$as_me: failed program was:" >&5 |
| 14030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14031 | |
| 14032 | eval "$as_ac_Header=no" |
| 14033 | fi |
| 14034 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14035 | fi |
| 14036 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14037 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14038 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14039 | cat >>confdefs.h <<_ACEOF |
| 14040 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14041 | _ACEOF |
| 14042 | |
| 14043 | fi |
| 14044 | |
| 14045 | done |
| 14046 | |
| 14047 | |
| 14048 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 14049 | for ac_header in netinet/ip.h |
| 14050 | do |
| 14051 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14052 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14053 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14054 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14056 | else |
| 14057 | cat >conftest.$ac_ext <<_ACEOF |
| 14058 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14059 | /* confdefs.h. */ |
| 14060 | _ACEOF |
| 14061 | cat confdefs.h >>conftest.$ac_ext |
| 14062 | cat >>conftest.$ac_ext <<_ACEOF |
| 14063 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 14064 | #include <sys/types.h> |
| 14065 | #if HAVE_SYS_SOCKET_H |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 14066 | # include <sys/socket.h> |
| 14067 | #endif |
| 14068 | #if HAVE_NETINET_IN_SYSTM_H |
| 14069 | # include <netinet/in_systm.h> |
| 14070 | #endif |
| 14071 | |
| 14072 | #include <$ac_header> |
| 14073 | _ACEOF |
| 14074 | rm -f conftest.$ac_objext |
| 14075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14076 | (eval $ac_compile) 2>&5 |
| 14077 | ac_status=$? |
| 14078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14079 | (exit $ac_status); } && |
| 14080 | { ac_try='test -s conftest.$ac_objext' |
| 14081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14082 | (eval $ac_try) 2>&5 |
| 14083 | ac_status=$? |
| 14084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14085 | (exit $ac_status); }; }; then |
| 14086 | eval "$as_ac_Header=yes" |
| 14087 | else |
| 14088 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14090 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 14091 | eval "$as_ac_Header=no" |
| 14092 | fi |
| 14093 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14094 | fi |
| 14095 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14096 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14097 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14098 | cat >>confdefs.h <<_ACEOF |
| 14099 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14100 | _ACEOF |
| 14101 | |
| 14102 | fi |
| 14103 | |
| 14104 | done |
| 14105 | |
| 14106 | |
| 14107 | |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 14108 | for ac_header in ucontext.h |
| 14109 | do |
| 14110 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14111 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14112 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14113 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14115 | else |
| 14116 | cat >conftest.$ac_ext <<_ACEOF |
| 14117 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14118 | /* confdefs.h. */ |
| 14119 | _ACEOF |
| 14120 | cat confdefs.h >>conftest.$ac_ext |
| 14121 | cat >>conftest.$ac_ext <<_ACEOF |
| 14122 | /* end confdefs.h. */ |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 14123 | #include <signal.h> |
| 14124 | |
| 14125 | #include <$ac_header> |
| 14126 | _ACEOF |
| 14127 | rm -f conftest.$ac_objext |
| 14128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14129 | (eval $ac_compile) 2>&5 |
| 14130 | ac_status=$? |
| 14131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14132 | (exit $ac_status); } && |
| 14133 | { ac_try='test -s conftest.$ac_objext' |
| 14134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14135 | (eval $ac_try) 2>&5 |
| 14136 | ac_status=$? |
| 14137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14138 | (exit $ac_status); }; }; then |
| 14139 | eval "$as_ac_Header=yes" |
| 14140 | else |
| 14141 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14143 | |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 14144 | eval "$as_ac_Header=no" |
| 14145 | fi |
| 14146 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14147 | fi |
| 14148 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14149 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14150 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14151 | cat >>confdefs.h <<_ACEOF |
| 14152 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14153 | _ACEOF |
| 14154 | |
| 14155 | fi |
| 14156 | |
| 14157 | done |
| 14158 | |
| 14159 | |
| 14160 | |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 14161 | echo "$as_me:$LINENO: checking for GNU style IPX support" >&5 |
| 14162 | echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6 |
| 14163 | if test "${ac_cv_c_ipx_gnu+set}" = set; then |
| 14164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14165 | else |
| 14166 | cat >conftest.$ac_ext <<_ACEOF |
| 14167 | #line $LINENO "configure" |
| 14168 | /* confdefs.h. */ |
| 14169 | _ACEOF |
| 14170 | cat confdefs.h >>conftest.$ac_ext |
| 14171 | cat >>conftest.$ac_ext <<_ACEOF |
| 14172 | /* end confdefs.h. */ |
| 14173 | #include <sys/types.h> |
| 14174 | #ifdef HAVE_SYS_SOCKET_H |
| 14175 | # include <sys/socket.h> |
| 14176 | #endif |
| 14177 | #include <netipx/ipx.h> |
| 14178 | int |
| 14179 | main () |
| 14180 | { |
| 14181 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
| 14182 | ; |
| 14183 | return 0; |
| 14184 | } |
| 14185 | _ACEOF |
| 14186 | rm -f conftest.$ac_objext |
| 14187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14188 | (eval $ac_compile) 2>&5 |
| 14189 | ac_status=$? |
| 14190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14191 | (exit $ac_status); } && |
| 14192 | { ac_try='test -s conftest.$ac_objext' |
| 14193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14194 | (eval $ac_try) 2>&5 |
| 14195 | ac_status=$? |
| 14196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14197 | (exit $ac_status); }; }; then |
| 14198 | ac_cv_c_ipx_gnu="yes" |
| 14199 | else |
| 14200 | echo "$as_me: failed program was:" >&5 |
| 14201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14202 | |
| 14203 | ac_cv_c_ipx_gnu="no" |
| 14204 | fi |
| 14205 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14206 | |
| 14207 | fi |
| 14208 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5 |
| 14209 | echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6 |
| 14210 | if test "$ac_cv_c_ipx_gnu" = "yes" |
| 14211 | then |
| 14212 | |
| 14213 | cat >>confdefs.h <<\_ACEOF |
| 14214 | #define HAVE_IPX_GNU 1 |
| 14215 | _ACEOF |
| 14216 | |
| 14217 | fi |
| 14218 | |
| 14219 | if test "$ac_cv_c_ipx_gnu" = "no" |
| 14220 | then |
| 14221 | echo "$as_me:$LINENO: checking for linux style IPX support" >&5 |
| 14222 | echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6 |
| 14223 | if test "${ac_cv_c_ipx_linux+set}" = set; then |
| 14224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14225 | else |
| 14226 | cat >conftest.$ac_ext <<_ACEOF |
| 14227 | #line $LINENO "configure" |
| 14228 | /* confdefs.h. */ |
| 14229 | _ACEOF |
| 14230 | cat confdefs.h >>conftest.$ac_ext |
| 14231 | cat >>conftest.$ac_ext <<_ACEOF |
| 14232 | /* end confdefs.h. */ |
| 14233 | #include <sys/types.h> |
| 14234 | #ifdef HAVE_SYS_SOCKET_H |
| 14235 | # include <sys/socket.h> |
| 14236 | #endif |
| 14237 | #include <asm/types.h> |
| 14238 | #include <linux/ipx.h> |
| 14239 | int |
| 14240 | main () |
| 14241 | { |
| 14242 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
| 14243 | ; |
| 14244 | return 0; |
| 14245 | } |
| 14246 | _ACEOF |
| 14247 | rm -f conftest.$ac_objext |
| 14248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14249 | (eval $ac_compile) 2>&5 |
| 14250 | ac_status=$? |
| 14251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14252 | (exit $ac_status); } && |
| 14253 | { ac_try='test -s conftest.$ac_objext' |
| 14254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14255 | (eval $ac_try) 2>&5 |
| 14256 | ac_status=$? |
| 14257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14258 | (exit $ac_status); }; }; then |
| 14259 | ac_cv_c_ipx_linux="yes" |
| 14260 | else |
| 14261 | echo "$as_me: failed program was:" >&5 |
| 14262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14263 | |
| 14264 | ac_cv_c_ipx_linux="no" |
| 14265 | fi |
| 14266 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14267 | |
| 14268 | fi |
| 14269 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5 |
| 14270 | echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6 |
| 14271 | if test "$ac_cv_c_ipx_linux" = "yes" |
| 14272 | then |
| 14273 | |
| 14274 | cat >>confdefs.h <<\_ACEOF |
| 14275 | #define HAVE_IPX_LINUX 1 |
| 14276 | _ACEOF |
| 14277 | |
| 14278 | fi |
| 14279 | fi |
| 14280 | |
| 14281 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14282 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14283 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 14284 | if test "${ac_cv_c_const+set}" = set; then |
| 14285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14286 | else |
| 14287 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14288 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14289 | /* confdefs.h. */ |
| 14290 | _ACEOF |
| 14291 | cat confdefs.h >>conftest.$ac_ext |
| 14292 | cat >>conftest.$ac_ext <<_ACEOF |
| 14293 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14294 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14295 | int |
| 14296 | main () |
| 14297 | { |
| 14298 | /* FIXME: Include the comments suggested by Paul. */ |
| 14299 | #ifndef __cplusplus |
| 14300 | /* Ultrix mips cc rejects this. */ |
| 14301 | typedef int charset[2]; |
| 14302 | const charset x; |
| 14303 | /* SunOS 4.1.1 cc rejects this. */ |
| 14304 | char const *const *ccp; |
| 14305 | char **p; |
| 14306 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 14307 | struct point {int x, y;}; |
| 14308 | static struct point const zero = {0,0}; |
| 14309 | /* AIX XL C 1.02.0.0 rejects this. |
| 14310 | It does not let you subtract one const X* pointer from another in |
| 14311 | an arm of an if-expression whose if-part is not a constant |
| 14312 | expression */ |
| 14313 | const char *g = "string"; |
| 14314 | ccp = &g + (g ? g-g : 0); |
| 14315 | /* HPUX 7.0 cc rejects these. */ |
| 14316 | ++ccp; |
| 14317 | p = (char**) ccp; |
| 14318 | ccp = (char const *const *) p; |
| 14319 | { /* SCO 3.2v4 cc rejects this. */ |
| 14320 | char *t; |
| 14321 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14322 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14323 | *t++ = 0; |
| 14324 | } |
| 14325 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 14326 | int x[] = {25, 17}; |
| 14327 | const int *foo = &x[0]; |
| 14328 | ++foo; |
| 14329 | } |
| 14330 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 14331 | typedef const int *iptr; |
| 14332 | iptr p = 0; |
| 14333 | ++p; |
| 14334 | } |
| 14335 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 14336 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 14337 | struct s { int j; const int *ap[3]; }; |
| 14338 | struct s *b; b->j = 5; |
| 14339 | } |
| 14340 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 14341 | const int foo = 10; |
| 14342 | } |
| 14343 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14344 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14345 | ; |
| 14346 | return 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14347 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14348 | _ACEOF |
| 14349 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14351 | (eval $ac_compile) 2>&5 |
| 14352 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14354 | (exit $ac_status); } && |
| 14355 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14357 | (eval $ac_try) 2>&5 |
| 14358 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14360 | (exit $ac_status); }; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14361 | ac_cv_c_const=yes |
| 14362 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14363 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14365 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14366 | ac_cv_c_const=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14367 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14368 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14369 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14370 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14371 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14372 | if test $ac_cv_c_const = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14373 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14374 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14375 | #define const |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14376 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14377 | |
| 14378 | fi |
| 14379 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14380 | echo "$as_me:$LINENO: checking for inline" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14381 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 14382 | if test "${ac_cv_c_inline+set}" = set; then |
| 14383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 14384 | else |
| 14385 | ac_cv_c_inline=no |
| 14386 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14387 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14388 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14389 | /* confdefs.h. */ |
| 14390 | _ACEOF |
| 14391 | cat confdefs.h >>conftest.$ac_ext |
| 14392 | cat >>conftest.$ac_ext <<_ACEOF |
| 14393 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14394 | #ifndef __cplusplus |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14395 | typedef int foo_t; |
| 14396 | static $ac_kw foo_t static_foo () {return 0; } |
| 14397 | $ac_kw foo_t foo () {return 0; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14398 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 14399 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14400 | _ACEOF |
| 14401 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14403 | (eval $ac_compile) 2>&5 |
| 14404 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14406 | (exit $ac_status); } && |
| 14407 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14409 | (eval $ac_try) 2>&5 |
| 14410 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14412 | (exit $ac_status); }; }; then |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 14413 | ac_cv_c_inline=$ac_kw; break |
| 14414 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14415 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14417 | |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 14418 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14419 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 14420 | done |
| 14421 | |
| 14422 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14423 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14424 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 14425 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 14426 | inline | yes) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14427 | no) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14428 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14429 | #define inline |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14430 | _ACEOF |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 14431 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14432 | *) cat >>confdefs.h <<_ACEOF |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 14433 | #define inline $ac_cv_c_inline |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14434 | _ACEOF |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 14435 | ;; |
| 14436 | esac |
| 14437 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14438 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14439 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 14440 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 14441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14442 | else |
| 14443 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14444 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14445 | /* confdefs.h. */ |
| 14446 | _ACEOF |
| 14447 | cat confdefs.h >>conftest.$ac_ext |
| 14448 | cat >>conftest.$ac_ext <<_ACEOF |
| 14449 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14450 | $ac_includes_default |
| 14451 | int |
| 14452 | main () |
| 14453 | { |
| 14454 | if ((mode_t *) 0) |
| 14455 | return 0; |
| 14456 | if (sizeof (mode_t)) |
| 14457 | return 0; |
| 14458 | ; |
| 14459 | return 0; |
| 14460 | } |
| 14461 | _ACEOF |
| 14462 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14464 | (eval $ac_compile) 2>&5 |
| 14465 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14467 | (exit $ac_status); } && |
| 14468 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14470 | (eval $ac_try) 2>&5 |
| 14471 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14473 | (exit $ac_status); }; }; then |
| 14474 | ac_cv_type_mode_t=yes |
| 14475 | else |
| 14476 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14478 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14479 | ac_cv_type_mode_t=no |
| 14480 | fi |
| 14481 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14482 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14483 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14484 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 14485 | if test $ac_cv_type_mode_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14486 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14487 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14488 | #define HAVE_MODE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14489 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14490 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14491 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14492 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14493 | echo "$as_me:$LINENO: checking for off_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14494 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 14495 | if test "${ac_cv_type_off_t+set}" = set; then |
| 14496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14497 | else |
| 14498 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14499 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14500 | /* confdefs.h. */ |
| 14501 | _ACEOF |
| 14502 | cat confdefs.h >>conftest.$ac_ext |
| 14503 | cat >>conftest.$ac_ext <<_ACEOF |
| 14504 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14505 | $ac_includes_default |
| 14506 | int |
| 14507 | main () |
| 14508 | { |
| 14509 | if ((off_t *) 0) |
| 14510 | return 0; |
| 14511 | if (sizeof (off_t)) |
| 14512 | return 0; |
| 14513 | ; |
| 14514 | return 0; |
| 14515 | } |
| 14516 | _ACEOF |
| 14517 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14519 | (eval $ac_compile) 2>&5 |
| 14520 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14522 | (exit $ac_status); } && |
| 14523 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14525 | (eval $ac_try) 2>&5 |
| 14526 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14528 | (exit $ac_status); }; }; then |
| 14529 | ac_cv_type_off_t=yes |
| 14530 | else |
| 14531 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14533 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14534 | ac_cv_type_off_t=no |
| 14535 | fi |
| 14536 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14537 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14538 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14539 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 14540 | if test $ac_cv_type_off_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14541 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14542 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14543 | #define HAVE_OFF_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14544 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14545 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14546 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14547 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14548 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14549 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 14550 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 14551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14552 | else |
| 14553 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14554 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14555 | /* confdefs.h. */ |
| 14556 | _ACEOF |
| 14557 | cat confdefs.h >>conftest.$ac_ext |
| 14558 | cat >>conftest.$ac_ext <<_ACEOF |
| 14559 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14560 | $ac_includes_default |
| 14561 | int |
| 14562 | main () |
| 14563 | { |
| 14564 | if ((pid_t *) 0) |
| 14565 | return 0; |
| 14566 | if (sizeof (pid_t)) |
| 14567 | return 0; |
| 14568 | ; |
| 14569 | return 0; |
| 14570 | } |
| 14571 | _ACEOF |
| 14572 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14574 | (eval $ac_compile) 2>&5 |
| 14575 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14577 | (exit $ac_status); } && |
| 14578 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14580 | (eval $ac_try) 2>&5 |
| 14581 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14583 | (exit $ac_status); }; }; then |
| 14584 | ac_cv_type_pid_t=yes |
| 14585 | else |
| 14586 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14588 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14589 | ac_cv_type_pid_t=no |
| 14590 | fi |
| 14591 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14592 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14593 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14594 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 14595 | if test $ac_cv_type_pid_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14596 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14597 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14598 | #define HAVE_PID_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14599 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14600 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14601 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14602 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14603 | echo "$as_me:$LINENO: checking for size_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14604 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 14605 | if test "${ac_cv_type_size_t+set}" = set; then |
| 14606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14607 | else |
| 14608 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14609 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14610 | /* confdefs.h. */ |
| 14611 | _ACEOF |
| 14612 | cat confdefs.h >>conftest.$ac_ext |
| 14613 | cat >>conftest.$ac_ext <<_ACEOF |
| 14614 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14615 | $ac_includes_default |
| 14616 | int |
| 14617 | main () |
| 14618 | { |
| 14619 | if ((size_t *) 0) |
| 14620 | return 0; |
| 14621 | if (sizeof (size_t)) |
| 14622 | return 0; |
| 14623 | ; |
| 14624 | return 0; |
| 14625 | } |
| 14626 | _ACEOF |
| 14627 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14629 | (eval $ac_compile) 2>&5 |
| 14630 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14632 | (exit $ac_status); } && |
| 14633 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14635 | (eval $ac_try) 2>&5 |
| 14636 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14638 | (exit $ac_status); }; }; then |
| 14639 | ac_cv_type_size_t=yes |
| 14640 | else |
| 14641 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14643 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14644 | ac_cv_type_size_t=no |
| 14645 | fi |
| 14646 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14647 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14648 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14649 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 14650 | if test $ac_cv_type_size_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14651 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14652 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14653 | #define HAVE_SIZE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14654 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14655 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14656 | |
| 14657 | fi |
| 14658 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 14659 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
| 14660 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 14661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14662 | else |
| 14663 | cat >conftest.$ac_ext <<_ACEOF |
| 14664 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14665 | /* confdefs.h. */ |
| 14666 | _ACEOF |
| 14667 | cat confdefs.h >>conftest.$ac_ext |
| 14668 | cat >>conftest.$ac_ext <<_ACEOF |
| 14669 | /* end confdefs.h. */ |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14670 | $ac_includes_default |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14671 | int |
| 14672 | main () |
| 14673 | { |
| 14674 | if ((ssize_t *) 0) |
| 14675 | return 0; |
| 14676 | if (sizeof (ssize_t)) |
| 14677 | return 0; |
| 14678 | ; |
| 14679 | return 0; |
| 14680 | } |
| 14681 | _ACEOF |
| 14682 | rm -f conftest.$ac_objext |
| 14683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14684 | (eval $ac_compile) 2>&5 |
| 14685 | ac_status=$? |
| 14686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14687 | (exit $ac_status); } && |
| 14688 | { ac_try='test -s conftest.$ac_objext' |
| 14689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14690 | (eval $ac_try) 2>&5 |
| 14691 | ac_status=$? |
| 14692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14693 | (exit $ac_status); }; }; then |
| 14694 | ac_cv_type_ssize_t=yes |
| 14695 | else |
| 14696 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14698 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 14699 | ac_cv_type_ssize_t=no |
| 14700 | fi |
| 14701 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14702 | fi |
| 14703 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 14704 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 |
| 14705 | if test $ac_cv_type_ssize_t = yes; then |
| 14706 | |
| 14707 | cat >>confdefs.h <<_ACEOF |
| 14708 | #define HAVE_SSIZE_T 1 |
| 14709 | _ACEOF |
| 14710 | |
| 14711 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14712 | fi |
| 14713 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14714 | echo "$as_me:$LINENO: checking for long long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14715 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 14716 | if test "${ac_cv_type_long_long+set}" = set; then |
| 14717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14718 | else |
| 14719 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14720 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14721 | /* confdefs.h. */ |
| 14722 | _ACEOF |
| 14723 | cat confdefs.h >>conftest.$ac_ext |
| 14724 | cat >>conftest.$ac_ext <<_ACEOF |
| 14725 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14726 | $ac_includes_default |
| 14727 | int |
| 14728 | main () |
| 14729 | { |
| 14730 | if ((long long *) 0) |
| 14731 | return 0; |
| 14732 | if (sizeof (long long)) |
| 14733 | return 0; |
| 14734 | ; |
| 14735 | return 0; |
| 14736 | } |
| 14737 | _ACEOF |
| 14738 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14740 | (eval $ac_compile) 2>&5 |
| 14741 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14743 | (exit $ac_status); } && |
| 14744 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14746 | (eval $ac_try) 2>&5 |
| 14747 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14749 | (exit $ac_status); }; }; then |
| 14750 | ac_cv_type_long_long=yes |
| 14751 | else |
| 14752 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14754 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14755 | ac_cv_type_long_long=no |
| 14756 | fi |
| 14757 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14758 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14759 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14760 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 14761 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14762 | echo "$as_me:$LINENO: checking size of long long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14763 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 14764 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 14765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14766 | else |
| 14767 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14768 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 14769 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14770 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14771 | # This bug is HP SR number 8606223364. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14772 | if test "$cross_compiling" = yes; then |
| 14773 | # Depending upon the size, compute the lo and hi bounds. |
| 14774 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14775 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14776 | /* confdefs.h. */ |
| 14777 | _ACEOF |
| 14778 | cat confdefs.h >>conftest.$ac_ext |
| 14779 | cat >>conftest.$ac_ext <<_ACEOF |
| 14780 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14781 | $ac_includes_default |
| 14782 | int |
| 14783 | main () |
| 14784 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14785 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 14786 | test_array [0] = 0 |
| 14787 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14788 | ; |
| 14789 | return 0; |
| 14790 | } |
| 14791 | _ACEOF |
| 14792 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14794 | (eval $ac_compile) 2>&5 |
| 14795 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14797 | (exit $ac_status); } && |
| 14798 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14800 | (eval $ac_try) 2>&5 |
| 14801 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14803 | (exit $ac_status); }; }; then |
| 14804 | ac_lo=0 ac_mid=0 |
| 14805 | while :; do |
| 14806 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14807 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14808 | /* confdefs.h. */ |
| 14809 | _ACEOF |
| 14810 | cat confdefs.h >>conftest.$ac_ext |
| 14811 | cat >>conftest.$ac_ext <<_ACEOF |
| 14812 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14813 | $ac_includes_default |
| 14814 | int |
| 14815 | main () |
| 14816 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14817 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 14818 | test_array [0] = 0 |
| 14819 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14820 | ; |
| 14821 | return 0; |
| 14822 | } |
| 14823 | _ACEOF |
| 14824 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14826 | (eval $ac_compile) 2>&5 |
| 14827 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14829 | (exit $ac_status); } && |
| 14830 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14832 | (eval $ac_try) 2>&5 |
| 14833 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14835 | (exit $ac_status); }; }; then |
| 14836 | ac_hi=$ac_mid; break |
| 14837 | else |
| 14838 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14840 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14841 | ac_lo=`expr $ac_mid + 1` |
| 14842 | if test $ac_lo -le $ac_mid; then |
| 14843 | ac_lo= ac_hi= |
| 14844 | break |
| 14845 | fi |
| 14846 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14847 | fi |
| 14848 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14849 | done |
| 14850 | else |
| 14851 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14853 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14854 | cat >conftest.$ac_ext <<_ACEOF |
| 14855 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14856 | /* confdefs.h. */ |
| 14857 | _ACEOF |
| 14858 | cat confdefs.h >>conftest.$ac_ext |
| 14859 | cat >>conftest.$ac_ext <<_ACEOF |
| 14860 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14861 | $ac_includes_default |
| 14862 | int |
| 14863 | main () |
| 14864 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14865 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 14866 | test_array [0] = 0 |
| 14867 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14868 | ; |
| 14869 | return 0; |
| 14870 | } |
| 14871 | _ACEOF |
| 14872 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14874 | (eval $ac_compile) 2>&5 |
| 14875 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14877 | (exit $ac_status); } && |
| 14878 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14880 | (eval $ac_try) 2>&5 |
| 14881 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14883 | (exit $ac_status); }; }; then |
| 14884 | ac_hi=-1 ac_mid=-1 |
| 14885 | while :; do |
| 14886 | cat >conftest.$ac_ext <<_ACEOF |
| 14887 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14888 | /* confdefs.h. */ |
| 14889 | _ACEOF |
| 14890 | cat confdefs.h >>conftest.$ac_ext |
| 14891 | cat >>conftest.$ac_ext <<_ACEOF |
| 14892 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14893 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14894 | int |
| 14895 | main () |
| 14896 | { |
| 14897 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 14898 | test_array [0] = 0 |
| 14899 | |
| 14900 | ; |
| 14901 | return 0; |
| 14902 | } |
| 14903 | _ACEOF |
| 14904 | rm -f conftest.$ac_objext |
| 14905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14906 | (eval $ac_compile) 2>&5 |
| 14907 | ac_status=$? |
| 14908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14909 | (exit $ac_status); } && |
| 14910 | { ac_try='test -s conftest.$ac_objext' |
| 14911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14912 | (eval $ac_try) 2>&5 |
| 14913 | ac_status=$? |
| 14914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14915 | (exit $ac_status); }; }; then |
| 14916 | ac_lo=$ac_mid; break |
| 14917 | else |
| 14918 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14920 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14921 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14922 | if test $ac_mid -le $ac_hi; then |
| 14923 | ac_lo= ac_hi= |
| 14924 | break |
| 14925 | fi |
| 14926 | ac_mid=`expr 2 '*' $ac_mid` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14927 | fi |
| 14928 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14929 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14930 | else |
| 14931 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14933 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14934 | ac_lo= ac_hi= |
| 14935 | fi |
| 14936 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14937 | fi |
| 14938 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14939 | # Binary search between lo and hi bounds. |
| 14940 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14941 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14942 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14943 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14944 | /* confdefs.h. */ |
| 14945 | _ACEOF |
| 14946 | cat confdefs.h >>conftest.$ac_ext |
| 14947 | cat >>conftest.$ac_ext <<_ACEOF |
| 14948 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14949 | $ac_includes_default |
| 14950 | int |
| 14951 | main () |
| 14952 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14953 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 14954 | test_array [0] = 0 |
| 14955 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14956 | ; |
| 14957 | return 0; |
| 14958 | } |
| 14959 | _ACEOF |
| 14960 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14962 | (eval $ac_compile) 2>&5 |
| 14963 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14965 | (exit $ac_status); } && |
| 14966 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14968 | (eval $ac_try) 2>&5 |
| 14969 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14971 | (exit $ac_status); }; }; then |
| 14972 | ac_hi=$ac_mid |
| 14973 | else |
| 14974 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14976 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14977 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14978 | fi |
| 14979 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14980 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14981 | case $ac_lo in |
| 14982 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14983 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 14984 | See \`config.log' for more details." >&5 |
| 14985 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 14986 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14987 | { (exit 1); exit 1; }; } ;; |
| 14988 | esac |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14989 | else |
| 14990 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14991 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 14992 | See \`config.log' for more details." >&5 |
| 14993 | echo "$as_me: error: cannot run test program while cross compiling |
| 14994 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14995 | { (exit 1); exit 1; }; } |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14996 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14997 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14998 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14999 | /* confdefs.h. */ |
| 15000 | _ACEOF |
| 15001 | cat confdefs.h >>conftest.$ac_ext |
| 15002 | cat >>conftest.$ac_ext <<_ACEOF |
| 15003 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15004 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15005 | long longval () { return (long) (sizeof (long long)); } |
| 15006 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
| 15007 | #include <stdio.h> |
| 15008 | #include <stdlib.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15009 | int |
| 15010 | main () |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 15011 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15012 | |
| 15013 | FILE *f = fopen ("conftest.val", "w"); |
| 15014 | if (! f) |
| 15015 | exit (1); |
| 15016 | if (((long) (sizeof (long long))) < 0) |
| 15017 | { |
| 15018 | long i = longval (); |
| 15019 | if (i != ((long) (sizeof (long long)))) |
| 15020 | exit (1); |
| 15021 | fprintf (f, "%ld\n", i); |
| 15022 | } |
| 15023 | else |
| 15024 | { |
| 15025 | unsigned long i = ulongval (); |
| 15026 | if (i != ((long) (sizeof (long long)))) |
| 15027 | exit (1); |
| 15028 | fprintf (f, "%lu\n", i); |
| 15029 | } |
| 15030 | exit (ferror (f) || fclose (f) != 0); |
| 15031 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15032 | ; |
| 15033 | return 0; |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 15034 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15035 | _ACEOF |
| 15036 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15038 | (eval $ac_link) 2>&5 |
| 15039 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15041 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15043 | (eval $ac_try) 2>&5 |
| 15044 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15046 | (exit $ac_status); }; }; then |
| 15047 | ac_cv_sizeof_long_long=`cat conftest.val` |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 15048 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15049 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15050 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15052 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15053 | ( exit $ac_status ) |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15054 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 15055 | See \`config.log' for more details." >&5 |
| 15056 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 15057 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15058 | { (exit 1); exit 1; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15059 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15060 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15061 | fi |
| 15062 | fi |
| 15063 | rm -f conftest.val |
| 15064 | else |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 15065 | ac_cv_sizeof_long_long=0 |
| 15066 | fi |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 15067 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15068 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15069 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15070 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 15071 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15072 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 15073 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15074 | |
| 15075 | |
| 15076 | 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] | 15077 | echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6 |
| 15078 | if test "${wine_cv_linux_input_h+set}" = set; then |
| 15079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 15080 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15081 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15082 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15083 | /* confdefs.h. */ |
| 15084 | _ACEOF |
| 15085 | cat confdefs.h >>conftest.$ac_ext |
| 15086 | cat >>conftest.$ac_ext <<_ACEOF |
| 15087 | /* end confdefs.h. */ |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 15088 | |
| 15089 | #include <linux/input.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15090 | |
| 15091 | int |
| 15092 | main () |
| 15093 | { |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 15094 | |
| 15095 | int foo = EVIOCGBIT(EV_ABS,42); |
| 15096 | int bar = BTN_PINKIE; |
| 15097 | int fortytwo = 42; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15098 | |
| 15099 | ; |
| 15100 | return 0; |
| 15101 | } |
| 15102 | _ACEOF |
| 15103 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15105 | (eval $ac_compile) 2>&5 |
| 15106 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15108 | (exit $ac_status); } && |
| 15109 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15111 | (eval $ac_try) 2>&5 |
| 15112 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15114 | (exit $ac_status); }; }; then |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 15115 | wine_cv_linux_input_h=yes |
| 15116 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15117 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15119 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15120 | wine_cv_linux_input_h=no |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 15121 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15122 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 15123 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15124 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15125 | echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15126 | echo "${ECHO_T}$wine_cv_linux_input_h" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 15127 | if test "$wine_cv_linux_input_h" = "yes" |
| 15128 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15129 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15130 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 15131 | #define HAVE_CORRECT_LINUXINPUT_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15132 | _ACEOF |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 15133 | |
| 15134 | fi |
| 15135 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15136 | |
| 15137 | 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] | 15138 | echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6 |
| 15139 | if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then |
| 15140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 15141 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15142 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15143 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15144 | /* confdefs.h. */ |
| 15145 | _ACEOF |
| 15146 | cat confdefs.h >>conftest.$ac_ext |
| 15147 | cat >>conftest.$ac_ext <<_ACEOF |
| 15148 | /* end confdefs.h. */ |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 15149 | |
| 15150 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15151 | |
| 15152 | int |
| 15153 | main () |
| 15154 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 15155 | |
| 15156 | char *name=NULL; |
| 15157 | struct hostent he; |
| 15158 | struct hostent *result; |
| 15159 | char *buf=NULL; |
| 15160 | int bufsize=0; |
| 15161 | int res,errnr; |
| 15162 | char *addr=NULL; |
| 15163 | int addrlen=0; |
| 15164 | int addrtype=0; |
| 15165 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 15166 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15167 | |
| 15168 | ; |
| 15169 | return 0; |
| 15170 | } |
| 15171 | _ACEOF |
| 15172 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15174 | (eval $ac_compile) 2>&5 |
| 15175 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15177 | (exit $ac_status); } && |
| 15178 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15180 | (eval $ac_try) 2>&5 |
| 15181 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15183 | (exit $ac_status); }; }; then |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 15184 | wine_cv_linux_gethostbyname_r_6=yes |
| 15185 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15186 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15188 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15189 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 15190 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15191 | fi |
| 15192 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15193 | |
| 15194 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15195 | echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15196 | echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 15197 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 15198 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15199 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15200 | cat >>confdefs.h <<\_ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 15201 | #define HAVE_LINUX_GETHOSTBYNAME_R_6 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15202 | _ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 15203 | |
| 15204 | fi |
| 15205 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 15206 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15207 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15208 | 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] | 15209 | echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6 |
| 15210 | if test "${wine_cv_linux_joystick_22_api+set}" = set; then |
| 15211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15212 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15213 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15214 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15215 | /* confdefs.h. */ |
| 15216 | _ACEOF |
| 15217 | cat confdefs.h >>conftest.$ac_ext |
| 15218 | cat >>conftest.$ac_ext <<_ACEOF |
| 15219 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15220 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 15221 | #include <sys/ioctl.h> |
| 15222 | #include <linux/joystick.h> |
| 15223 | |
| 15224 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 15225 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 15226 | #error "no 2.2 header" |
| 15227 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15228 | |
| 15229 | int |
| 15230 | main () |
| 15231 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 15232 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15233 | ; |
| 15234 | return 0; |
| 15235 | } |
| 15236 | _ACEOF |
| 15237 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15239 | (eval $ac_compile) 2>&5 |
| 15240 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15242 | (exit $ac_status); } && |
| 15243 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15245 | (eval $ac_try) 2>&5 |
| 15246 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15248 | (exit $ac_status); }; }; then |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 15249 | wine_cv_linux_joystick_22_api=yes |
| 15250 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15251 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15253 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15254 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 15255 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15256 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 15257 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15258 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15259 | echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15260 | echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6 |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 15261 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 15262 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15263 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15264 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 15265 | #define HAVE_LINUX_22_JOYSTICK_API 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15266 | _ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 15267 | |
| 15268 | fi |
| 15269 | fi |
| 15270 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15271 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 15272 | if test "$ac_cv_header_sys_vfs_h" = "yes" |
| 15273 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15274 | echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15275 | echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6 |
| 15276 | if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then |
| 15277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 15278 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15279 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15280 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15281 | /* confdefs.h. */ |
| 15282 | _ACEOF |
| 15283 | cat confdefs.h >>conftest.$ac_ext |
| 15284 | cat >>conftest.$ac_ext <<_ACEOF |
| 15285 | /* end confdefs.h. */ |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 15286 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15287 | #include <sys/types.h> |
| 15288 | #ifdef HAVE_SYS_PARAM_H |
| 15289 | # include <sys/param.h> |
| 15290 | #endif |
| 15291 | #include <sys/vfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15292 | |
| 15293 | int |
| 15294 | main () |
| 15295 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15296 | |
| 15297 | struct statfs stfs; |
| 15298 | |
| 15299 | memset(&stfs,0,sizeof(stfs)); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15300 | |
| 15301 | ; |
| 15302 | return 0; |
| 15303 | } |
| 15304 | _ACEOF |
| 15305 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15307 | (eval $ac_compile) 2>&5 |
| 15308 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15310 | (exit $ac_status); } && |
| 15311 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15313 | (eval $ac_try) 2>&5 |
| 15314 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15316 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15317 | wine_cv_sys_vfs_has_statfs=yes |
| 15318 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15319 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15321 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15322 | wine_cv_sys_vfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15323 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15324 | fi |
| 15325 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15326 | |
| 15327 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15328 | echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15329 | echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15330 | if test "$wine_cv_sys_vfs_has_statfs" = "yes" |
| 15331 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15332 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15333 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15334 | #define STATFS_DEFINED_BY_SYS_VFS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15335 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15336 | |
| 15337 | fi |
| 15338 | fi |
| 15339 | |
| 15340 | if test "$ac_cv_header_sys_statfs_h" = "yes" |
| 15341 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15342 | echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15343 | echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6 |
| 15344 | if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then |
| 15345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15346 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15347 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15348 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15349 | /* confdefs.h. */ |
| 15350 | _ACEOF |
| 15351 | cat confdefs.h >>conftest.$ac_ext |
| 15352 | cat >>conftest.$ac_ext <<_ACEOF |
| 15353 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15354 | |
| 15355 | #include <sys/types.h> |
| 15356 | #ifdef HAVE_SYS_PARAM_H |
| 15357 | # include <sys/param.h> |
| 15358 | #endif |
| 15359 | #include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15360 | |
| 15361 | int |
| 15362 | main () |
| 15363 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15364 | |
| 15365 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15366 | |
| 15367 | ; |
| 15368 | return 0; |
| 15369 | } |
| 15370 | _ACEOF |
| 15371 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15373 | (eval $ac_compile) 2>&5 |
| 15374 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15376 | (exit $ac_status); } && |
| 15377 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15379 | (eval $ac_try) 2>&5 |
| 15380 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15382 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15383 | wine_cv_sys_statfs_has_statfs=yes |
| 15384 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15385 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15387 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15388 | wine_cv_sys_statfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15389 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15390 | fi |
| 15391 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15392 | |
| 15393 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15394 | echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15395 | echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15396 | if test "$wine_cv_sys_statfs_has_statfs" = "yes" |
| 15397 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15398 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15399 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15400 | #define STATFS_DEFINED_BY_SYS_STATFS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15401 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15402 | |
| 15403 | fi |
| 15404 | fi |
| 15405 | |
| 15406 | if test "$ac_cv_header_sys_mount_h" = "yes" |
| 15407 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15408 | echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15409 | echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6 |
| 15410 | if test "${wine_cv_sys_mount_has_statfs+set}" = set; then |
| 15411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15412 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15413 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15414 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15415 | /* confdefs.h. */ |
| 15416 | _ACEOF |
| 15417 | cat confdefs.h >>conftest.$ac_ext |
| 15418 | cat >>conftest.$ac_ext <<_ACEOF |
| 15419 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15420 | |
| 15421 | #include <sys/types.h> |
| 15422 | #ifdef HAVE_SYS_PARAM_H |
| 15423 | # include <sys/param.h> |
| 15424 | #endif |
| 15425 | #include <sys/mount.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15426 | |
| 15427 | int |
| 15428 | main () |
| 15429 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15430 | |
| 15431 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15432 | |
| 15433 | ; |
| 15434 | return 0; |
| 15435 | } |
| 15436 | _ACEOF |
| 15437 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15439 | (eval $ac_compile) 2>&5 |
| 15440 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15442 | (exit $ac_status); } && |
| 15443 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15445 | (eval $ac_try) 2>&5 |
| 15446 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15448 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15449 | wine_cv_sys_mount_has_statfs=yes |
| 15450 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15451 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15453 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15454 | wine_cv_sys_mount_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15455 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15456 | fi |
| 15457 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15458 | |
| 15459 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15460 | echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15461 | echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15462 | if test "$wine_cv_sys_mount_has_statfs" = "yes" |
| 15463 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15464 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15465 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15466 | #define STATFS_DEFINED_BY_SYS_MOUNT 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15467 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15468 | |
| 15469 | fi |
| 15470 | fi |
| 15471 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15472 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15473 | echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5 |
| 15474 | echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6 |
| 15475 | if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15477 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15478 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15479 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15480 | /* confdefs.h. */ |
| 15481 | _ACEOF |
| 15482 | cat confdefs.h >>conftest.$ac_ext |
| 15483 | cat >>conftest.$ac_ext <<_ACEOF |
| 15484 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15485 | #include <sys/types.h> |
| 15486 | #ifdef HAVE_SYS_PARAM_H |
| 15487 | # include <sys/param.h> |
| 15488 | #endif |
| 15489 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 15490 | # include <sys/mount.h> |
| 15491 | #else |
| 15492 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 15493 | # include <sys/vfs.h> |
| 15494 | # else |
| 15495 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 15496 | # include <sys/statfs.h> |
| 15497 | # endif |
| 15498 | # endif |
| 15499 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15500 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15501 | int |
| 15502 | main () |
| 15503 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15504 | static struct statfs ac_aggr; |
| 15505 | if (ac_aggr.f_bfree) |
| 15506 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15507 | ; |
| 15508 | return 0; |
| 15509 | } |
| 15510 | _ACEOF |
| 15511 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15513 | (eval $ac_compile) 2>&5 |
| 15514 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15516 | (exit $ac_status); } && |
| 15517 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15519 | (eval $ac_try) 2>&5 |
| 15520 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15522 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15523 | ac_cv_member_struct_statfs_f_bfree=yes |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15524 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15525 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15527 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15528 | cat >conftest.$ac_ext <<_ACEOF |
| 15529 | #line $LINENO "configure" |
| 15530 | /* confdefs.h. */ |
| 15531 | _ACEOF |
| 15532 | cat confdefs.h >>conftest.$ac_ext |
| 15533 | cat >>conftest.$ac_ext <<_ACEOF |
| 15534 | /* end confdefs.h. */ |
| 15535 | #include <sys/types.h> |
| 15536 | #ifdef HAVE_SYS_PARAM_H |
| 15537 | # include <sys/param.h> |
| 15538 | #endif |
| 15539 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 15540 | # include <sys/mount.h> |
| 15541 | #else |
| 15542 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 15543 | # include <sys/vfs.h> |
| 15544 | # else |
| 15545 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 15546 | # include <sys/statfs.h> |
| 15547 | # endif |
| 15548 | # endif |
| 15549 | #endif |
| 15550 | |
| 15551 | int |
| 15552 | main () |
| 15553 | { |
| 15554 | static struct statfs ac_aggr; |
| 15555 | if (sizeof ac_aggr.f_bfree) |
| 15556 | return 0; |
| 15557 | ; |
| 15558 | return 0; |
| 15559 | } |
| 15560 | _ACEOF |
| 15561 | rm -f conftest.$ac_objext |
| 15562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15563 | (eval $ac_compile) 2>&5 |
| 15564 | ac_status=$? |
| 15565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15566 | (exit $ac_status); } && |
| 15567 | { ac_try='test -s conftest.$ac_objext' |
| 15568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15569 | (eval $ac_try) 2>&5 |
| 15570 | ac_status=$? |
| 15571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15572 | (exit $ac_status); }; }; then |
| 15573 | ac_cv_member_struct_statfs_f_bfree=yes |
| 15574 | else |
| 15575 | echo "$as_me: failed program was:" >&5 |
| 15576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15577 | |
| 15578 | ac_cv_member_struct_statfs_f_bfree=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15579 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15580 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15581 | fi |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15582 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15583 | fi |
| 15584 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5 |
| 15585 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6 |
| 15586 | if test $ac_cv_member_struct_statfs_f_bfree = yes; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15587 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15588 | cat >>confdefs.h <<_ACEOF |
| 15589 | #define HAVE_STRUCT_STATFS_F_BFREE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15590 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15591 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15592 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 15593 | fi |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15594 | echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5 |
| 15595 | echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6 |
| 15596 | if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 15598 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15599 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15600 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15601 | /* confdefs.h. */ |
| 15602 | _ACEOF |
| 15603 | cat confdefs.h >>conftest.$ac_ext |
| 15604 | cat >>conftest.$ac_ext <<_ACEOF |
| 15605 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15606 | #include <sys/types.h> |
| 15607 | #ifdef HAVE_SYS_PARAM_H |
| 15608 | # include <sys/param.h> |
| 15609 | #endif |
| 15610 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 15611 | # include <sys/mount.h> |
| 15612 | #else |
| 15613 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 15614 | # include <sys/vfs.h> |
| 15615 | # else |
| 15616 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 15617 | # include <sys/statfs.h> |
| 15618 | # endif |
| 15619 | # endif |
| 15620 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15621 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15622 | int |
| 15623 | main () |
| 15624 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15625 | static struct statfs ac_aggr; |
| 15626 | if (ac_aggr.f_bavail) |
| 15627 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15628 | ; |
| 15629 | return 0; |
| 15630 | } |
| 15631 | _ACEOF |
| 15632 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15634 | (eval $ac_compile) 2>&5 |
| 15635 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15637 | (exit $ac_status); } && |
| 15638 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15640 | (eval $ac_try) 2>&5 |
| 15641 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15643 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15644 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 15645 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15646 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15648 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15649 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15650 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15651 | /* confdefs.h. */ |
| 15652 | _ACEOF |
| 15653 | cat confdefs.h >>conftest.$ac_ext |
| 15654 | cat >>conftest.$ac_ext <<_ACEOF |
| 15655 | /* end confdefs.h. */ |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 15656 | #include <sys/types.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15657 | #ifdef HAVE_SYS_PARAM_H |
| 15658 | # include <sys/param.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 15659 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15660 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 15661 | # include <sys/mount.h> |
| 15662 | #else |
| 15663 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 15664 | # include <sys/vfs.h> |
| 15665 | # else |
| 15666 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 15667 | # include <sys/statfs.h> |
| 15668 | # endif |
| 15669 | # endif |
| 15670 | #endif |
| 15671 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15672 | int |
| 15673 | main () |
| 15674 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15675 | static struct statfs ac_aggr; |
| 15676 | if (sizeof ac_aggr.f_bavail) |
| 15677 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15678 | ; |
| 15679 | return 0; |
| 15680 | } |
| 15681 | _ACEOF |
| 15682 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15684 | (eval $ac_compile) 2>&5 |
| 15685 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15687 | (exit $ac_status); } && |
| 15688 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15690 | (eval $ac_try) 2>&5 |
| 15691 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15693 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15694 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 15695 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15696 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15698 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15699 | ac_cv_member_struct_statfs_f_bavail=no |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 15700 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15701 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 15702 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15703 | rm -f conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 15704 | fi |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15705 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5 |
| 15706 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6 |
| 15707 | if test $ac_cv_member_struct_statfs_f_bavail = yes; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 15708 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15709 | cat >>confdefs.h <<_ACEOF |
| 15710 | #define HAVE_STRUCT_STATFS_F_BAVAIL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15711 | _ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 15712 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15713 | |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 15714 | fi |
| 15715 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15716 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15717 | echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5 |
| 15718 | echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6 |
| 15719 | if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 15721 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15722 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15723 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15724 | /* confdefs.h. */ |
| 15725 | _ACEOF |
| 15726 | cat confdefs.h >>conftest.$ac_ext |
| 15727 | cat >>conftest.$ac_ext <<_ACEOF |
| 15728 | /* end confdefs.h. */ |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 15729 | #include <sys/types.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 15730 | #ifdef HAVE_SYS_SOCKET_H |
| 15731 | # include <sys/socket.h> |
| 15732 | #endif |
| 15733 | #ifdef HAVE_SYS_UN_H |
| 15734 | # include <sys/un.h> |
| 15735 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15736 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15737 | int |
| 15738 | main () |
| 15739 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15740 | static struct msghdr ac_aggr; |
| 15741 | if (ac_aggr.msg_accrights) |
| 15742 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15743 | ; |
| 15744 | return 0; |
| 15745 | } |
| 15746 | _ACEOF |
| 15747 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15749 | (eval $ac_compile) 2>&5 |
| 15750 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15752 | (exit $ac_status); } && |
| 15753 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15755 | (eval $ac_try) 2>&5 |
| 15756 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15758 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15759 | ac_cv_member_struct_msghdr_msg_accrights=yes |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 15760 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15761 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15763 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15764 | cat >conftest.$ac_ext <<_ACEOF |
| 15765 | #line $LINENO "configure" |
| 15766 | /* confdefs.h. */ |
| 15767 | _ACEOF |
| 15768 | cat confdefs.h >>conftest.$ac_ext |
| 15769 | cat >>conftest.$ac_ext <<_ACEOF |
| 15770 | /* end confdefs.h. */ |
| 15771 | #include <sys/types.h> |
| 15772 | #ifdef HAVE_SYS_SOCKET_H |
| 15773 | # include <sys/socket.h> |
| 15774 | #endif |
| 15775 | #ifdef HAVE_SYS_UN_H |
| 15776 | # include <sys/un.h> |
| 15777 | #endif |
| 15778 | |
| 15779 | int |
| 15780 | main () |
| 15781 | { |
| 15782 | static struct msghdr ac_aggr; |
| 15783 | if (sizeof ac_aggr.msg_accrights) |
| 15784 | return 0; |
| 15785 | ; |
| 15786 | return 0; |
| 15787 | } |
| 15788 | _ACEOF |
| 15789 | rm -f conftest.$ac_objext |
| 15790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15791 | (eval $ac_compile) 2>&5 |
| 15792 | ac_status=$? |
| 15793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15794 | (exit $ac_status); } && |
| 15795 | { ac_try='test -s conftest.$ac_objext' |
| 15796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15797 | (eval $ac_try) 2>&5 |
| 15798 | ac_status=$? |
| 15799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15800 | (exit $ac_status); }; }; then |
| 15801 | ac_cv_member_struct_msghdr_msg_accrights=yes |
| 15802 | else |
| 15803 | echo "$as_me: failed program was:" >&5 |
| 15804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15805 | |
| 15806 | ac_cv_member_struct_msghdr_msg_accrights=no |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 15807 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15808 | rm -f conftest.$ac_objext conftest.$ac_ext |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 15809 | fi |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15810 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15811 | fi |
| 15812 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5 |
| 15813 | echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6 |
| 15814 | if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 15815 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15816 | cat >>confdefs.h <<_ACEOF |
| 15817 | #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15818 | _ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 15819 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 15820 | |
| 15821 | fi |
| 15822 | echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 15823 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6 |
| 15824 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
| 15825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15826 | else |
| 15827 | cat >conftest.$ac_ext <<_ACEOF |
| 15828 | #line $LINENO "configure" |
| 15829 | /* confdefs.h. */ |
| 15830 | _ACEOF |
| 15831 | cat confdefs.h >>conftest.$ac_ext |
| 15832 | cat >>conftest.$ac_ext <<_ACEOF |
| 15833 | /* end confdefs.h. */ |
| 15834 | #include <sys/types.h> |
| 15835 | #ifdef HAVE_SYS_SOCKET_H |
| 15836 | # include <sys/socket.h> |
| 15837 | #endif |
| 15838 | #ifdef HAVE_SYS_UN_H |
| 15839 | # include <sys/un.h> |
| 15840 | #endif |
| 15841 | |
| 15842 | int |
| 15843 | main () |
| 15844 | { |
| 15845 | static struct sockaddr ac_aggr; |
| 15846 | if (ac_aggr.sa_len) |
| 15847 | return 0; |
| 15848 | ; |
| 15849 | return 0; |
| 15850 | } |
| 15851 | _ACEOF |
| 15852 | rm -f conftest.$ac_objext |
| 15853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15854 | (eval $ac_compile) 2>&5 |
| 15855 | ac_status=$? |
| 15856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15857 | (exit $ac_status); } && |
| 15858 | { ac_try='test -s conftest.$ac_objext' |
| 15859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15860 | (eval $ac_try) 2>&5 |
| 15861 | ac_status=$? |
| 15862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15863 | (exit $ac_status); }; }; then |
| 15864 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 15865 | else |
| 15866 | echo "$as_me: failed program was:" >&5 |
| 15867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15868 | |
| 15869 | cat >conftest.$ac_ext <<_ACEOF |
| 15870 | #line $LINENO "configure" |
| 15871 | /* confdefs.h. */ |
| 15872 | _ACEOF |
| 15873 | cat confdefs.h >>conftest.$ac_ext |
| 15874 | cat >>conftest.$ac_ext <<_ACEOF |
| 15875 | /* end confdefs.h. */ |
| 15876 | #include <sys/types.h> |
| 15877 | #ifdef HAVE_SYS_SOCKET_H |
| 15878 | # include <sys/socket.h> |
| 15879 | #endif |
| 15880 | #ifdef HAVE_SYS_UN_H |
| 15881 | # include <sys/un.h> |
| 15882 | #endif |
| 15883 | |
| 15884 | int |
| 15885 | main () |
| 15886 | { |
| 15887 | static struct sockaddr ac_aggr; |
| 15888 | if (sizeof ac_aggr.sa_len) |
| 15889 | return 0; |
| 15890 | ; |
| 15891 | return 0; |
| 15892 | } |
| 15893 | _ACEOF |
| 15894 | rm -f conftest.$ac_objext |
| 15895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15896 | (eval $ac_compile) 2>&5 |
| 15897 | ac_status=$? |
| 15898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15899 | (exit $ac_status); } && |
| 15900 | { ac_try='test -s conftest.$ac_objext' |
| 15901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15902 | (eval $ac_try) 2>&5 |
| 15903 | ac_status=$? |
| 15904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15905 | (exit $ac_status); }; }; then |
| 15906 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 15907 | else |
| 15908 | echo "$as_me: failed program was:" >&5 |
| 15909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15910 | |
| 15911 | ac_cv_member_struct_sockaddr_sa_len=no |
| 15912 | fi |
| 15913 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15914 | fi |
| 15915 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15916 | fi |
| 15917 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 15918 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6 |
| 15919 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
| 15920 | |
| 15921 | cat >>confdefs.h <<_ACEOF |
| 15922 | #define HAVE_STRUCT_SOCKADDR_SA_LEN 1 |
| 15923 | _ACEOF |
| 15924 | |
| 15925 | |
| 15926 | fi |
| 15927 | echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5 |
| 15928 | echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6 |
| 15929 | if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then |
| 15930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15931 | else |
| 15932 | cat >conftest.$ac_ext <<_ACEOF |
| 15933 | #line $LINENO "configure" |
| 15934 | /* confdefs.h. */ |
| 15935 | _ACEOF |
| 15936 | cat confdefs.h >>conftest.$ac_ext |
| 15937 | cat >>conftest.$ac_ext <<_ACEOF |
| 15938 | /* end confdefs.h. */ |
| 15939 | #include <sys/types.h> |
| 15940 | #ifdef HAVE_SYS_SOCKET_H |
| 15941 | # include <sys/socket.h> |
| 15942 | #endif |
| 15943 | #ifdef HAVE_SYS_UN_H |
| 15944 | # include <sys/un.h> |
| 15945 | #endif |
| 15946 | |
| 15947 | int |
| 15948 | main () |
| 15949 | { |
| 15950 | static struct sockaddr_un ac_aggr; |
| 15951 | if (ac_aggr.sun_len) |
| 15952 | return 0; |
| 15953 | ; |
| 15954 | return 0; |
| 15955 | } |
| 15956 | _ACEOF |
| 15957 | rm -f conftest.$ac_objext |
| 15958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15959 | (eval $ac_compile) 2>&5 |
| 15960 | ac_status=$? |
| 15961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15962 | (exit $ac_status); } && |
| 15963 | { ac_try='test -s conftest.$ac_objext' |
| 15964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15965 | (eval $ac_try) 2>&5 |
| 15966 | ac_status=$? |
| 15967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15968 | (exit $ac_status); }; }; then |
| 15969 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 15970 | else |
| 15971 | echo "$as_me: failed program was:" >&5 |
| 15972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15973 | |
| 15974 | cat >conftest.$ac_ext <<_ACEOF |
| 15975 | #line $LINENO "configure" |
| 15976 | /* confdefs.h. */ |
| 15977 | _ACEOF |
| 15978 | cat confdefs.h >>conftest.$ac_ext |
| 15979 | cat >>conftest.$ac_ext <<_ACEOF |
| 15980 | /* end confdefs.h. */ |
| 15981 | #include <sys/types.h> |
| 15982 | #ifdef HAVE_SYS_SOCKET_H |
| 15983 | # include <sys/socket.h> |
| 15984 | #endif |
| 15985 | #ifdef HAVE_SYS_UN_H |
| 15986 | # include <sys/un.h> |
| 15987 | #endif |
| 15988 | |
| 15989 | int |
| 15990 | main () |
| 15991 | { |
| 15992 | static struct sockaddr_un ac_aggr; |
| 15993 | if (sizeof ac_aggr.sun_len) |
| 15994 | return 0; |
| 15995 | ; |
| 15996 | return 0; |
| 15997 | } |
| 15998 | _ACEOF |
| 15999 | rm -f conftest.$ac_objext |
| 16000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16001 | (eval $ac_compile) 2>&5 |
| 16002 | ac_status=$? |
| 16003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16004 | (exit $ac_status); } && |
| 16005 | { ac_try='test -s conftest.$ac_objext' |
| 16006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16007 | (eval $ac_try) 2>&5 |
| 16008 | ac_status=$? |
| 16009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16010 | (exit $ac_status); }; }; then |
| 16011 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 16012 | else |
| 16013 | echo "$as_me: failed program was:" >&5 |
| 16014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16015 | |
| 16016 | ac_cv_member_struct_sockaddr_un_sun_len=no |
| 16017 | fi |
| 16018 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16019 | fi |
| 16020 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16021 | fi |
| 16022 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5 |
| 16023 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6 |
| 16024 | if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then |
| 16025 | |
| 16026 | cat >>confdefs.h <<_ACEOF |
| 16027 | #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 |
| 16028 | _ACEOF |
| 16029 | |
| 16030 | |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 16031 | fi |
| 16032 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16033 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 16034 | echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5 |
| 16035 | echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6 |
| 16036 | if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then |
| 16037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16038 | else |
| 16039 | cat >conftest.$ac_ext <<_ACEOF |
| 16040 | #line $LINENO "configure" |
| 16041 | /* confdefs.h. */ |
| 16042 | _ACEOF |
| 16043 | cat confdefs.h >>conftest.$ac_ext |
| 16044 | cat >>conftest.$ac_ext <<_ACEOF |
| 16045 | /* end confdefs.h. */ |
| 16046 | #include <signal.h> |
| 16047 | |
| 16048 | int |
| 16049 | main () |
| 16050 | { |
| 16051 | static siginfo_t ac_aggr; |
| 16052 | if (ac_aggr.si_fd) |
| 16053 | return 0; |
| 16054 | ; |
| 16055 | return 0; |
| 16056 | } |
| 16057 | _ACEOF |
| 16058 | rm -f conftest.$ac_objext |
| 16059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16060 | (eval $ac_compile) 2>&5 |
| 16061 | ac_status=$? |
| 16062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16063 | (exit $ac_status); } && |
| 16064 | { ac_try='test -s conftest.$ac_objext' |
| 16065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16066 | (eval $ac_try) 2>&5 |
| 16067 | ac_status=$? |
| 16068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16069 | (exit $ac_status); }; }; then |
| 16070 | ac_cv_member_siginfo_t_si_fd=yes |
| 16071 | else |
| 16072 | echo "$as_me: failed program was:" >&5 |
| 16073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16074 | |
| 16075 | cat >conftest.$ac_ext <<_ACEOF |
| 16076 | #line $LINENO "configure" |
| 16077 | /* confdefs.h. */ |
| 16078 | _ACEOF |
| 16079 | cat confdefs.h >>conftest.$ac_ext |
| 16080 | cat >>conftest.$ac_ext <<_ACEOF |
| 16081 | /* end confdefs.h. */ |
| 16082 | #include <signal.h> |
| 16083 | |
| 16084 | int |
| 16085 | main () |
| 16086 | { |
| 16087 | static siginfo_t ac_aggr; |
| 16088 | if (sizeof ac_aggr.si_fd) |
| 16089 | return 0; |
| 16090 | ; |
| 16091 | return 0; |
| 16092 | } |
| 16093 | _ACEOF |
| 16094 | rm -f conftest.$ac_objext |
| 16095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16096 | (eval $ac_compile) 2>&5 |
| 16097 | ac_status=$? |
| 16098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16099 | (exit $ac_status); } && |
| 16100 | { ac_try='test -s conftest.$ac_objext' |
| 16101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16102 | (eval $ac_try) 2>&5 |
| 16103 | ac_status=$? |
| 16104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16105 | (exit $ac_status); }; }; then |
| 16106 | ac_cv_member_siginfo_t_si_fd=yes |
| 16107 | else |
| 16108 | echo "$as_me: failed program was:" >&5 |
| 16109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16110 | |
| 16111 | ac_cv_member_siginfo_t_si_fd=no |
| 16112 | fi |
| 16113 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16114 | fi |
| 16115 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16116 | fi |
| 16117 | echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5 |
| 16118 | echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6 |
| 16119 | if test $ac_cv_member_siginfo_t_si_fd = yes; then |
| 16120 | |
| 16121 | cat >>confdefs.h <<_ACEOF |
| 16122 | #define HAVE_SIGINFO_T_SI_FD 1 |
| 16123 | _ACEOF |
| 16124 | |
| 16125 | |
| 16126 | fi |
| 16127 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16128 | |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 16129 | echo "$as_me:$LINENO: checking for struct option.name" >&5 |
| 16130 | echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6 |
| 16131 | if test "${ac_cv_member_struct_option_name+set}" = set; then |
| 16132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16133 | else |
| 16134 | cat >conftest.$ac_ext <<_ACEOF |
| 16135 | #line $LINENO "configure" |
| 16136 | /* confdefs.h. */ |
| 16137 | _ACEOF |
| 16138 | cat confdefs.h >>conftest.$ac_ext |
| 16139 | cat >>conftest.$ac_ext <<_ACEOF |
| 16140 | /* end confdefs.h. */ |
| 16141 | #ifdef HAVE_GETOPT_H |
| 16142 | #include <getopt.h> |
| 16143 | #endif |
| 16144 | |
| 16145 | int |
| 16146 | main () |
| 16147 | { |
| 16148 | static struct option ac_aggr; |
| 16149 | if (ac_aggr.name) |
| 16150 | return 0; |
| 16151 | ; |
| 16152 | return 0; |
| 16153 | } |
| 16154 | _ACEOF |
| 16155 | rm -f conftest.$ac_objext |
| 16156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16157 | (eval $ac_compile) 2>&5 |
| 16158 | ac_status=$? |
| 16159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16160 | (exit $ac_status); } && |
| 16161 | { ac_try='test -s conftest.$ac_objext' |
| 16162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16163 | (eval $ac_try) 2>&5 |
| 16164 | ac_status=$? |
| 16165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16166 | (exit $ac_status); }; }; then |
| 16167 | ac_cv_member_struct_option_name=yes |
| 16168 | else |
| 16169 | echo "$as_me: failed program was:" >&5 |
| 16170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16171 | |
| 16172 | cat >conftest.$ac_ext <<_ACEOF |
| 16173 | #line $LINENO "configure" |
| 16174 | /* confdefs.h. */ |
| 16175 | _ACEOF |
| 16176 | cat confdefs.h >>conftest.$ac_ext |
| 16177 | cat >>conftest.$ac_ext <<_ACEOF |
| 16178 | /* end confdefs.h. */ |
| 16179 | #ifdef HAVE_GETOPT_H |
| 16180 | #include <getopt.h> |
| 16181 | #endif |
| 16182 | |
| 16183 | int |
| 16184 | main () |
| 16185 | { |
| 16186 | static struct option ac_aggr; |
| 16187 | if (sizeof ac_aggr.name) |
| 16188 | return 0; |
| 16189 | ; |
| 16190 | return 0; |
| 16191 | } |
| 16192 | _ACEOF |
| 16193 | rm -f conftest.$ac_objext |
| 16194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16195 | (eval $ac_compile) 2>&5 |
| 16196 | ac_status=$? |
| 16197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16198 | (exit $ac_status); } && |
| 16199 | { ac_try='test -s conftest.$ac_objext' |
| 16200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16201 | (eval $ac_try) 2>&5 |
| 16202 | ac_status=$? |
| 16203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16204 | (exit $ac_status); }; }; then |
| 16205 | ac_cv_member_struct_option_name=yes |
| 16206 | else |
| 16207 | echo "$as_me: failed program was:" >&5 |
| 16208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16209 | |
| 16210 | ac_cv_member_struct_option_name=no |
| 16211 | fi |
| 16212 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16213 | fi |
| 16214 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16215 | fi |
| 16216 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5 |
| 16217 | echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6 |
| 16218 | if test $ac_cv_member_struct_option_name = yes; then |
| 16219 | |
| 16220 | cat >>confdefs.h <<_ACEOF |
| 16221 | #define HAVE_STRUCT_OPTION_NAME 1 |
| 16222 | _ACEOF |
| 16223 | |
| 16224 | |
| 16225 | fi |
| 16226 | |
| 16227 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16228 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 16229 | case $host_cpu in |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16230 | *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] | 16231 | 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] | 16232 | if test "${ac_cv_cpp_def___i386__+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 16234 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16235 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16236 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16237 | /* confdefs.h. */ |
| 16238 | _ACEOF |
| 16239 | cat confdefs.h >>conftest.$ac_ext |
| 16240 | cat >>conftest.$ac_ext <<_ACEOF |
| 16241 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16242 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 16243 | yes |
| 16244 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16245 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 16246 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16247 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16248 | ac_cv_cpp_def___i386__=yes |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 16249 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16250 | ac_cv_cpp_def___i386__=no |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 16251 | fi |
| 16252 | rm -f conftest* |
| 16253 | |
| 16254 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16255 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5 |
| 16256 | echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6 |
| 16257 | if test $ac_cv_cpp_def___i386__ = yes; then |
| 16258 | CFLAGS="$CFLAGS -D__i386__" |
| 16259 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 16260 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16261 | ;; |
| 16262 | *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] | 16263 | 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] | 16264 | if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 16265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16266 | else |
| 16267 | cat >conftest.$ac_ext <<_ACEOF |
| 16268 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16269 | /* confdefs.h. */ |
| 16270 | _ACEOF |
| 16271 | cat confdefs.h >>conftest.$ac_ext |
| 16272 | cat >>conftest.$ac_ext <<_ACEOF |
| 16273 | /* end confdefs.h. */ |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 16274 | #ifndef __ALPHA__ |
| 16275 | yes |
| 16276 | #endif |
| 16277 | _ACEOF |
| 16278 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 16279 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16280 | ac_cv_cpp_def___ALPHA__=yes |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 16281 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16282 | ac_cv_cpp_def___ALPHA__=no |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 16283 | fi |
| 16284 | rm -f conftest* |
| 16285 | |
| 16286 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16287 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5 |
| 16288 | echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6 |
| 16289 | if test $ac_cv_cpp_def___ALPHA__ = yes; then |
| 16290 | CFLAGS="$CFLAGS -D__ALPHA__" |
| 16291 | LINTFLAGS="$LINTFLAGS -D__ALPHA__" |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 16292 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16293 | ;; |
| 16294 | *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] | 16295 | 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] | 16296 | if test "${ac_cv_cpp_def___sparc__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 16297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16298 | else |
| 16299 | cat >conftest.$ac_ext <<_ACEOF |
| 16300 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16301 | /* confdefs.h. */ |
| 16302 | _ACEOF |
| 16303 | cat confdefs.h >>conftest.$ac_ext |
| 16304 | cat >>conftest.$ac_ext <<_ACEOF |
| 16305 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 16306 | #ifndef __sparc__ |
| 16307 | yes |
| 16308 | #endif |
| 16309 | _ACEOF |
| 16310 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16311 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16312 | ac_cv_cpp_def___sparc__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 16313 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16314 | ac_cv_cpp_def___sparc__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 16315 | fi |
| 16316 | rm -f conftest* |
| 16317 | |
| 16318 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16319 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5 |
| 16320 | echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6 |
| 16321 | if test $ac_cv_cpp_def___sparc__ = yes; then |
| 16322 | CFLAGS="$CFLAGS -D__sparc__" |
| 16323 | LINTFLAGS="$LINTFLAGS -D__sparc__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 16324 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16325 | ;; |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 16326 | *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5 |
| 16327 | echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6 |
| 16328 | if test "${ac_cv_cpp_def___powerpc__+set}" = set; then |
| 16329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16330 | else |
| 16331 | cat >conftest.$ac_ext <<_ACEOF |
| 16332 | #line $LINENO "configure" |
| 16333 | /* confdefs.h. */ |
| 16334 | _ACEOF |
| 16335 | cat confdefs.h >>conftest.$ac_ext |
| 16336 | cat >>conftest.$ac_ext <<_ACEOF |
| 16337 | /* end confdefs.h. */ |
| 16338 | #ifndef __powerpc__ |
| 16339 | yes |
| 16340 | #endif |
| 16341 | _ACEOF |
| 16342 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 16343 | $EGREP "yes" >/dev/null 2>&1; then |
| 16344 | ac_cv_cpp_def___powerpc__=yes |
| 16345 | else |
| 16346 | ac_cv_cpp_def___powerpc__=no |
| 16347 | fi |
| 16348 | rm -f conftest* |
| 16349 | |
| 16350 | fi |
| 16351 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5 |
| 16352 | echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6 |
| 16353 | if test $ac_cv_cpp_def___powerpc__ = yes; then |
| 16354 | CFLAGS="$CFLAGS -D__powerpc__" |
| 16355 | LINTFLAGS="$LINTFLAGS -D__powerpc__" |
| 16356 | fi |
| 16357 | ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16358 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 16359 | |
| 16360 | case $host_vendor in |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16361 | *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] | 16362 | 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] | 16363 | if test "${ac_cv_cpp_def___sun__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 16364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16365 | else |
| 16366 | cat >conftest.$ac_ext <<_ACEOF |
| 16367 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16368 | /* confdefs.h. */ |
| 16369 | _ACEOF |
| 16370 | cat confdefs.h >>conftest.$ac_ext |
| 16371 | cat >>conftest.$ac_ext <<_ACEOF |
| 16372 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 16373 | #ifndef __sun__ |
| 16374 | yes |
| 16375 | #endif |
| 16376 | _ACEOF |
| 16377 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16378 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16379 | ac_cv_cpp_def___sun__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 16380 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16381 | ac_cv_cpp_def___sun__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 16382 | fi |
| 16383 | rm -f conftest* |
| 16384 | |
| 16385 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16386 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5 |
| 16387 | echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6 |
| 16388 | if test $ac_cv_cpp_def___sun__ = yes; then |
| 16389 | CFLAGS="$CFLAGS -D__sun__" |
| 16390 | LINTFLAGS="$LINTFLAGS -D__sun__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 16391 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 16392 | ;; |
| 16393 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 16394 | |
| 16395 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16396 | |
| 16397 | |
| 16398 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16399 | ac_config_commands="$ac_config_commands controls" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16400 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16401 | ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 16402 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16403 | ac_config_commands="$ac_config_commands dlls/ddraw/dclipper" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 16404 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16405 | ac_config_commands="$ac_config_commands dlls/ddraw/ddraw" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 16406 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16407 | ac_config_commands="$ac_config_commands dlls/ddraw/direct3d" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 16408 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16409 | ac_config_commands="$ac_config_commands dlls/ddraw/dpalette" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 16410 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16411 | ac_config_commands="$ac_config_commands dlls/ddraw/dsurface" |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 16412 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16413 | ac_config_commands="$ac_config_commands dlls/dinput/joystick" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16414 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16415 | ac_config_commands="$ac_config_commands dlls/dinput/keyboard" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16416 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16417 | ac_config_commands="$ac_config_commands dlls/dinput/mouse" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16418 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16419 | ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 16420 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16421 | ac_config_commands="$ac_config_commands dlls/gdi/mfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 16422 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16423 | ac_config_commands="$ac_config_commands dlls/kernel/messages" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16424 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16425 | ac_config_commands="$ac_config_commands dlls/user/dde" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16426 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16427 | ac_config_commands="$ac_config_commands dlls/user/resources" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16428 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16429 | ac_config_commands="$ac_config_commands dlls/wineps/data" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16430 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16431 | ac_config_commands="$ac_config_commands files" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16432 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16433 | ac_config_commands="$ac_config_commands graphics" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16434 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16435 | ac_config_commands="$ac_config_commands graphics/x11drv" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16436 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16437 | ac_config_commands="$ac_config_commands if1632" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16438 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16439 | ac_config_commands="$ac_config_commands include/wine" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16440 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16441 | ac_config_commands="$ac_config_commands loader" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16442 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16443 | ac_config_commands="$ac_config_commands loader/ne" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16444 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16445 | ac_config_commands="$ac_config_commands memory" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16446 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16447 | ac_config_commands="$ac_config_commands misc" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16448 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16449 | ac_config_commands="$ac_config_commands msdos" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16450 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16451 | ac_config_commands="$ac_config_commands objects" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16452 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16453 | ac_config_commands="$ac_config_commands programs/regapi/tests" |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 16454 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16455 | ac_config_commands="$ac_config_commands programs/regedit/tests" |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 16456 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16457 | ac_config_commands="$ac_config_commands relay32" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16458 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16459 | ac_config_commands="$ac_config_commands scheduler" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16460 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16461 | ac_config_commands="$ac_config_commands win32" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16462 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16463 | ac_config_commands="$ac_config_commands windows" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16464 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 16465 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 16466 | MAKE_RULES=Make.rules |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16467 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16468 | |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 16469 | MAKE_DLL_RULES=dlls/Makedll.rules |
| 16470 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16471 | |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 16472 | MAKE_TEST_RULES=dlls/Maketest.rules |
| 16473 | |
| 16474 | |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 16475 | MAKE_LIB_RULES=libs/Makelib.rules |
| 16476 | |
| 16477 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 16478 | MAKE_PROG_RULES=programs/Makeprog.rules |
| 16479 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16480 | |
Mike McCormack | 6386edc | 2003-08-13 01:27:48 +0000 | [diff] [blame^] | 16481 | 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/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/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/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/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/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrtd/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/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/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/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/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/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/winenas/Makefile dlls/winmm/winejack/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/uuid/Makefile libs/wine/Makefile libs/wpp/Makefile miscemu/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/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/wmc/Makefile tools/wrc/Makefile" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16482 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 16483 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16484 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16485 | # This file is a shell script that caches the results of configure |
| 16486 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16487 | # scripts and configure runs, see configure's option --config-cache. |
| 16488 | # It is not useful on other systems. If it contains results you don't |
| 16489 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16490 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16491 | # config.status only pays attention to the cache file if you give it |
| 16492 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16493 | # |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16494 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16495 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16496 | # following values. |
| 16497 | |
| 16498 | _ACEOF |
| 16499 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 16500 | # The following way of writing the cache mishandles newlines in values, |
| 16501 | # but we know of no workaround that is simple, portable, and efficient. |
| 16502 | # So, don't put newlines in cache variables' values. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16503 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16504 | # 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] | 16505 | { |
| 16506 | (set) 2>&1 | |
| 16507 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 16508 | *ac_space=\ *) |
| 16509 | # `set' does not quote correctly, so add quotes (double-quote |
| 16510 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16511 | sed -n \ |
| 16512 | "s/'/'\\\\''/g; |
| 16513 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 16514 | ;; |
| 16515 | *) |
| 16516 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 16517 | sed -n \ |
| 16518 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 16519 | ;; |
| 16520 | esac; |
| 16521 | } | |
| 16522 | sed ' |
| 16523 | t clear |
| 16524 | : clear |
| 16525 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16526 | t end |
| 16527 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16528 | : end' >>confcache |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16529 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16530 | if test -w $cache_file; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16531 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 16532 | cat confcache >$cache_file |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16533 | else |
| 16534 | echo "not updating unwritable cache $cache_file" |
| 16535 | fi |
| 16536 | fi |
| 16537 | rm -f confcache |
| 16538 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16539 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16540 | # Let make expand exec_prefix. |
| 16541 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 16542 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16543 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16544 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16545 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16546 | # (actually we leave an empty line to preserve line numbers). |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16547 | if test "x$srcdir" = x.; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16548 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16549 | s/:*\$(srcdir):*/:/; |
| 16550 | s/:*\${srcdir}:*/:/; |
| 16551 | s/:*@srcdir@:*/:/; |
| 16552 | s/^\([^=]*=[ ]*\):*/\1/; |
| 16553 | s/:*$//; |
| 16554 | s/^[^=]*=[ ]*$//; |
| 16555 | }' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16556 | fi |
| 16557 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16558 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16559 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16560 | ac_libobjs= |
| 16561 | ac_ltlibobjs= |
| 16562 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16563 | # 1. Remove the extension, and $U if already installed. |
| 16564 | ac_i=`echo "$ac_i" | |
| 16565 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 16566 | # 2. Add them. |
| 16567 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 16568 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 16569 | done |
| 16570 | LIBOBJS=$ac_libobjs |
| 16571 | |
| 16572 | LTLIBOBJS=$ac_ltlibobjs |
| 16573 | |
| 16574 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16575 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16576 | : ${CONFIG_STATUS=./config.status} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16577 | ac_clean_files_save=$ac_clean_files |
| 16578 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16579 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16580 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16581 | cat >$CONFIG_STATUS <<_ACEOF |
| 16582 | #! $SHELL |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16583 | # Generated by $as_me. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16584 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16585 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16586 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16587 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16588 | debug=false |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16589 | ac_cs_recheck=false |
| 16590 | ac_cs_silent=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16591 | SHELL=\${CONFIG_SHELL-$SHELL} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16592 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16593 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16594 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16595 | ## --------------------- ## |
| 16596 | ## M4sh Initialization. ## |
| 16597 | ## --------------------- ## |
| 16598 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16599 | # Be Bourne compatible |
| 16600 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16601 | emulate sh |
| 16602 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16603 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 16604 | # is contrary to our usage. Disable this feature. |
| 16605 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16606 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 16607 | set -o posix |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 16608 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16609 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16610 | # Support unset when possible. |
| 16611 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 16612 | as_unset=unset |
| 16613 | else |
| 16614 | as_unset=false |
| 16615 | fi |
| 16616 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16617 | |
| 16618 | # Work around bugs in pre-3.0 UWIN ksh. |
| 16619 | $as_unset ENV MAIL MAILPATH |
| 16620 | PS1='$ ' |
| 16621 | PS2='> ' |
| 16622 | PS4='+ ' |
| 16623 | |
| 16624 | # NLS nuisances. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16625 | for as_var in \ |
| 16626 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 16627 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 16628 | LC_TELEPHONE LC_TIME |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16629 | do |
| 16630 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 16631 | eval $as_var=C; export $as_var |
| 16632 | else |
| 16633 | $as_unset $as_var |
| 16634 | fi |
| 16635 | done |
| 16636 | |
| 16637 | # Required to use basename. |
| 16638 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16639 | as_expr=expr |
| 16640 | else |
| 16641 | as_expr=false |
| 16642 | fi |
| 16643 | |
| 16644 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 16645 | as_basename=basename |
| 16646 | else |
| 16647 | as_basename=false |
| 16648 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16649 | |
| 16650 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16651 | # Name of the executable. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16652 | as_me=`$as_basename "$0" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16653 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16654 | X"$0" : 'X\(//\)$' \| \ |
| 16655 | X"$0" : 'X\(/\)$' \| \ |
| 16656 | . : '\(.\)' 2>/dev/null || |
| 16657 | echo X/"$0" | |
| 16658 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 16659 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 16660 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 16661 | s/.*/./; q'` |
| 16662 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16663 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16664 | # PATH needs CR, and LINENO needs CR and PATH. |
| 16665 | # Avoid depending upon Character Ranges. |
| 16666 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16667 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16668 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16669 | as_cr_digits='0123456789' |
| 16670 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16671 | |
| 16672 | # The user is always right. |
| 16673 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16674 | echo "#! /bin/sh" >conf$$.sh |
| 16675 | echo "exit 0" >>conf$$.sh |
| 16676 | chmod +x conf$$.sh |
| 16677 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16678 | PATH_SEPARATOR=';' |
| 16679 | else |
| 16680 | PATH_SEPARATOR=: |
| 16681 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16682 | rm -f conf$$.sh |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16683 | fi |
| 16684 | |
| 16685 | |
| 16686 | as_lineno_1=$LINENO |
| 16687 | as_lineno_2=$LINENO |
| 16688 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16689 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16690 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 16691 | # Find who we are. Look in the path if we contain no path at all |
| 16692 | # relative or not. |
| 16693 | case $0 in |
| 16694 | *[\\/]* ) as_myself=$0 ;; |
| 16695 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16696 | for as_dir in $PATH |
| 16697 | do |
| 16698 | IFS=$as_save_IFS |
| 16699 | test -z "$as_dir" && as_dir=. |
| 16700 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16701 | done |
| 16702 | |
| 16703 | ;; |
| 16704 | esac |
| 16705 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16706 | # in which case we are not to be found in the path. |
| 16707 | if test "x$as_myself" = x; then |
| 16708 | as_myself=$0 |
| 16709 | fi |
| 16710 | if test ! -f "$as_myself"; then |
| 16711 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 16712 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 16713 | { (exit 1); exit 1; }; } |
| 16714 | fi |
| 16715 | case $CONFIG_SHELL in |
| 16716 | '') |
| 16717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16718 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 16719 | do |
| 16720 | IFS=$as_save_IFS |
| 16721 | test -z "$as_dir" && as_dir=. |
| 16722 | for as_base in sh bash ksh sh5; do |
| 16723 | case $as_dir in |
| 16724 | /*) |
| 16725 | if ("$as_dir/$as_base" -c ' |
| 16726 | as_lineno_1=$LINENO |
| 16727 | as_lineno_2=$LINENO |
| 16728 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16729 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16730 | 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] | 16731 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 16732 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16733 | CONFIG_SHELL=$as_dir/$as_base |
| 16734 | export CONFIG_SHELL |
| 16735 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 16736 | fi;; |
| 16737 | esac |
| 16738 | done |
| 16739 | done |
| 16740 | ;; |
| 16741 | esac |
| 16742 | |
| 16743 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16744 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16745 | # line-number line before each line; the second 'sed' does the real |
| 16746 | # work. The second script uses 'N' to pair each line-number line |
| 16747 | # with the numbered line, and appends trailing '-' during |
| 16748 | # substitution so that $LINENO is not a special case at line end. |
| 16749 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16750 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16751 | sed '=' <$as_myself | |
| 16752 | sed ' |
| 16753 | N |
| 16754 | s,$,-, |
| 16755 | : loop |
| 16756 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16757 | t loop |
| 16758 | s,-$,, |
| 16759 | s,^['$as_cr_digits']*\n,, |
| 16760 | ' >$as_me.lineno && |
| 16761 | chmod +x $as_me.lineno || |
| 16762 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16763 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 16764 | { (exit 1); exit 1; }; } |
| 16765 | |
| 16766 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16767 | # (the dirname of $[0] is not the place where we might find the |
| 16768 | # original and so on. Autoconf is especially sensible to this). |
| 16769 | . ./$as_me.lineno |
| 16770 | # Exit status is that of the last command. |
| 16771 | exit |
| 16772 | } |
| 16773 | |
| 16774 | |
| 16775 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 16776 | *c*,-n*) ECHO_N= ECHO_C=' |
| 16777 | ' ECHO_T=' ' ;; |
| 16778 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 16779 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 16780 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16781 | |
| 16782 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16783 | as_expr=expr |
| 16784 | else |
| 16785 | as_expr=false |
| 16786 | fi |
| 16787 | |
| 16788 | rm -f conf$$ conf$$.exe conf$$.file |
| 16789 | echo >conf$$.file |
| 16790 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16791 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 16792 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 16793 | if test -f conf$$.exe; then |
| 16794 | # Don't use ln at all; we don't have any links |
| 16795 | as_ln_s='cp -p' |
| 16796 | else |
| 16797 | as_ln_s='ln -s' |
| 16798 | fi |
| 16799 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16800 | as_ln_s=ln |
| 16801 | else |
| 16802 | as_ln_s='cp -p' |
| 16803 | fi |
| 16804 | rm -f conf$$ conf$$.exe conf$$.file |
| 16805 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16806 | if mkdir -p . 2>/dev/null; then |
| 16807 | as_mkdir_p=: |
| 16808 | else |
| 16809 | as_mkdir_p=false |
| 16810 | fi |
| 16811 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16812 | as_executable_p="test -f" |
| 16813 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16814 | # Sed expression to map a string onto a valid CPP name. |
| 16815 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16816 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16817 | # Sed expression to map a string onto a valid variable name. |
| 16818 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 16819 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16820 | |
| 16821 | # IFS |
| 16822 | # We need space, tab and new line, in precisely that order. |
| 16823 | as_nl=' |
| 16824 | ' |
| 16825 | IFS=" $as_nl" |
| 16826 | |
| 16827 | # CDPATH. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16828 | $as_unset CDPATH |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16829 | |
| 16830 | exec 6>&1 |
| 16831 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16832 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 16833 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16834 | # values after options handling. Logging --version etc. is OK. |
| 16835 | exec 5>>config.log |
| 16836 | { |
| 16837 | echo |
| 16838 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16839 | ## Running $as_me. ## |
| 16840 | _ASBOX |
| 16841 | } >&5 |
| 16842 | cat >&5 <<_CSEOF |
| 16843 | |
Alexandre Julliard | e4cc8c0 | 2003-07-09 23:30:36 +0000 | [diff] [blame] | 16844 | This file was extended by Wine $as_me 20030709, which was |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16845 | generated by GNU Autoconf 2.57. Invocation command line was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16846 | |
| 16847 | CONFIG_FILES = $CONFIG_FILES |
| 16848 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16849 | CONFIG_LINKS = $CONFIG_LINKS |
| 16850 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16851 | $ $0 $@ |
| 16852 | |
| 16853 | _CSEOF |
| 16854 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 16855 | echo >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16856 | _ACEOF |
| 16857 | |
| 16858 | # Files that config.status was made for. |
| 16859 | if test -n "$ac_config_files"; then |
| 16860 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 16861 | fi |
| 16862 | |
| 16863 | if test -n "$ac_config_headers"; then |
| 16864 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 16865 | fi |
| 16866 | |
| 16867 | if test -n "$ac_config_links"; then |
| 16868 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 16869 | fi |
| 16870 | |
| 16871 | if test -n "$ac_config_commands"; then |
| 16872 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 16873 | fi |
| 16874 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16875 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16876 | |
| 16877 | ac_cs_usage="\ |
| 16878 | \`$as_me' instantiates files from templates according to the |
| 16879 | current configuration. |
| 16880 | |
| 16881 | Usage: $0 [OPTIONS] [FILE]... |
| 16882 | |
| 16883 | -h, --help print this help, then exit |
| 16884 | -V, --version print version number, then exit |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16885 | -q, --quiet do not print progress messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16886 | -d, --debug don't remove temporary files |
| 16887 | --recheck update $as_me by reconfiguring in the same conditions |
| 16888 | --file=FILE[:TEMPLATE] |
| 16889 | instantiate the configuration file FILE |
| 16890 | --header=FILE[:TEMPLATE] |
| 16891 | instantiate the configuration header FILE |
| 16892 | |
| 16893 | Configuration files: |
| 16894 | $config_files |
| 16895 | |
| 16896 | Configuration headers: |
| 16897 | $config_headers |
| 16898 | |
| 16899 | Configuration commands: |
| 16900 | $config_commands |
| 16901 | |
| 16902 | Report bugs to <bug-autoconf@gnu.org>." |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16903 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 16904 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16905 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16906 | ac_cs_version="\\ |
Alexandre Julliard | e4cc8c0 | 2003-07-09 23:30:36 +0000 | [diff] [blame] | 16907 | Wine config.status 20030709 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16908 | configured by $0, generated by GNU Autoconf 2.57, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16909 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16910 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16911 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 16912 | Free Software Foundation, Inc. |
| 16913 | This config.status script is free software; the Free Software Foundation |
| 16914 | gives unlimited permission to copy, distribute and modify it." |
| 16915 | srcdir=$srcdir |
| 16916 | INSTALL="$INSTALL" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16917 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16918 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16919 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16920 | # If no file are specified by the user, then we need to provide default |
| 16921 | # value. By we need to know if files were specified by the user. |
| 16922 | ac_need_defaults=: |
| 16923 | while test $# != 0 |
| 16924 | do |
| 16925 | case $1 in |
| 16926 | --*=*) |
| 16927 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 16928 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16929 | ac_shift=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16930 | ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16931 | -*) |
| 16932 | ac_option=$1 |
| 16933 | ac_optarg=$2 |
| 16934 | ac_shift=shift |
| 16935 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16936 | *) # This is not an option, so the user has probably given explicit |
| 16937 | # arguments. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16938 | ac_option=$1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16939 | ac_need_defaults=false;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16940 | esac |
| 16941 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16942 | case $ac_option in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16943 | # Handling of the options. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16944 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16945 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16946 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16947 | ac_cs_recheck=: ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16948 | --version | --vers* | -V ) |
| 16949 | echo "$ac_cs_version"; exit 0 ;; |
| 16950 | --he | --h) |
| 16951 | # Conflict between --help and --header |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16952 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16953 | Try \`$0 --help' for more information." >&5 |
| 16954 | echo "$as_me: error: ambiguous option: $1 |
| 16955 | Try \`$0 --help' for more information." >&2;} |
| 16956 | { (exit 1); exit 1; }; };; |
| 16957 | --help | --hel | -h ) |
| 16958 | echo "$ac_cs_usage"; exit 0 ;; |
| 16959 | --debug | --d* | -d ) |
| 16960 | debug=: ;; |
| 16961 | --file | --fil | --fi | --f ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16962 | $ac_shift |
| 16963 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16964 | ac_need_defaults=false;; |
| 16965 | --header | --heade | --head | --hea ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16966 | $ac_shift |
| 16967 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16968 | ac_need_defaults=false;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16969 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 16970 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 16971 | ac_cs_silent=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16972 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16973 | # This is an error. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16974 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16975 | Try \`$0 --help' for more information." >&5 |
| 16976 | echo "$as_me: error: unrecognized option: $1 |
| 16977 | Try \`$0 --help' for more information." >&2;} |
| 16978 | { (exit 1); exit 1; }; } ;; |
| 16979 | |
| 16980 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 16981 | |
| 16982 | esac |
| 16983 | shift |
| 16984 | done |
| 16985 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16986 | ac_configure_extra_args= |
| 16987 | |
| 16988 | if $ac_cs_silent; then |
| 16989 | exec 6>/dev/null |
| 16990 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 16991 | fi |
| 16992 | |
| 16993 | _ACEOF |
| 16994 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16995 | if \$ac_cs_recheck; then |
| 16996 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 16997 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 16998 | fi |
| 16999 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17000 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17001 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17002 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17003 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17004 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17005 | |
| 17006 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17007 | for ac_config_target in $ac_config_targets |
| 17008 | do |
| 17009 | case "$ac_config_target" in |
| 17010 | # Handling of arguments. |
| 17011 | "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
| 17012 | "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 17013 | "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;; |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 17014 | "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17015 | "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
| 17016 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17017 | "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;; |
| 17018 | "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 17019 | "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17020 | "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;; |
| 17021 | "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;; |
Patrik Stridvall | d1447fa | 2002-11-19 00:47:12 +0000 | [diff] [blame] | 17022 | "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;; |
John K. Hohm | 34909c2 | 2002-05-14 21:50:56 +0000 | [diff] [blame] | 17023 | "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17024 | "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;; |
Uwe Bonnes | 2c4fd42 | 2003-05-15 23:58:48 +0000 | [diff] [blame] | 17025 | "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17026 | "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;; |
| 17027 | "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;; |
| 17028 | "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;; |
Dmitry Timoshkov | 5a23a00 | 2003-01-02 19:34:14 +0000 | [diff] [blame] | 17029 | "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;; |
Sylvain Petreolle | 3a99d8b | 2002-06-25 23:23:03 +0000 | [diff] [blame] | 17030 | "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;; |
Alexandre Julliard | aa1bdc4 | 2003-07-01 01:11:13 +0000 | [diff] [blame] | 17031 | "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;; |
Enrico Horn | eaae705 | 2003-01-24 01:08:15 +0000 | [diff] [blame] | 17032 | "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;; |
Raphael Junqueira | e31ae92 | 2002-12-17 01:15:15 +0000 | [diff] [blame] | 17033 | "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17034 | "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;; |
| 17035 | "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;; |
| 17036 | "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;; |
| 17037 | "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;; |
Ove Kaaven | d2d08f0 | 2002-06-14 00:39:44 +0000 | [diff] [blame] | 17038 | "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 17039 | "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;; |
| 17040 | "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;; |
| 17041 | "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;; |
| 17042 | "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;; |
| 17043 | "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;; |
| 17044 | "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;; |
| 17045 | "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;; |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 17046 | "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 17047 | "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17048 | "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;; |
| 17049 | "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 17050 | "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17051 | "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;; |
Francois Gouget | d523a45 | 2002-12-05 19:19:41 +0000 | [diff] [blame] | 17052 | "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17053 | "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;; |
Patrik Stridvall | 928ecb4 | 2002-10-02 19:58:27 +0000 | [diff] [blame] | 17054 | "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17055 | "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;; |
| 17056 | "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;; |
| 17057 | "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;; |
| 17058 | "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;; |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 17059 | "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17060 | "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 17061 | "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17062 | "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;; |
| 17063 | "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;; |
| 17064 | "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;; |
| 17065 | "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;; |
Hidenori Takeshima | 0307f6d | 2002-03-23 20:18:11 +0000 | [diff] [blame] | 17066 | "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;; |
Eric Pouech | bed67fc | 2002-05-22 02:00:05 +0000 | [diff] [blame] | 17067 | "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;; |
Hidenori Takeshima | bcb9c46 | 2002-03-22 19:16:10 +0000 | [diff] [blame] | 17068 | "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;; |
Eric Pouech | b706b23 | 2002-06-04 17:53:46 +0000 | [diff] [blame] | 17069 | "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17070 | "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;; |
Mike McCormack | 6386edc | 2003-08-13 01:27:48 +0000 | [diff] [blame^] | 17071 | "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17072 | "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;; |
Mike McCormack | f6be044 | 2002-04-08 23:56:14 +0000 | [diff] [blame] | 17073 | "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17074 | "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17075 | "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;; |
Uwe Bonnes | a768fa3 | 2002-10-30 23:49:03 +0000 | [diff] [blame] | 17076 | "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17077 | "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;; |
Adam Gundy | 19a1513 | 2003-04-04 19:37:57 +0000 | [diff] [blame] | 17078 | "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17079 | "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;; |
Michael Günnewig | 288b8ee | 2002-10-08 00:40:05 +0000 | [diff] [blame] | 17080 | "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;; |
André Johansen | 2123c13 | 2003-08-02 00:52:02 +0000 | [diff] [blame] | 17081 | "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17082 | "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;; |
Andriy Palamarchuk | b812c90 | 2002-09-11 02:35:17 +0000 | [diff] [blame] | 17083 | "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17084 | "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;; |
Jon Griffiths | 1da2971 | 2002-08-15 22:08:40 +0000 | [diff] [blame] | 17085 | "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17086 | "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;; |
| 17087 | "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;; |
Eric Pouech | 5caccaf | 2003-06-23 03:43:00 +0000 | [diff] [blame] | 17088 | "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17089 | "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 17090 | "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17091 | "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;; |
| 17092 | "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;; |
| 17093 | "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;; |
| 17094 | "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;; |
| 17095 | "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;; |
| 17096 | "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;; |
| 17097 | "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;; |
| 17098 | "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;; |
| 17099 | "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;; |
| 17100 | "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;; |
| 17101 | "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;; |
Greg Turner | ac89cc2 | 2002-10-07 21:54:07 +0000 | [diff] [blame] | 17102 | "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17103 | "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;; |
| 17104 | "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;; |
| 17105 | "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;; |
| 17106 | "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;; |
Andriy Palamarchuk | 5b5bea0 | 2002-08-27 01:34:33 +0000 | [diff] [blame] | 17107 | "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17108 | "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;; |
| 17109 | "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 17110 | "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;; |
Patrik Stridvall | 4c692b9 | 2002-04-29 18:43:35 +0000 | [diff] [blame] | 17111 | "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17112 | "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;; |
| 17113 | "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;; |
| 17114 | "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;; |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 17115 | "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17116 | "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;; |
| 17117 | "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;; |
Patrik Stridvall | 9398d9c | 2002-11-12 01:13:10 +0000 | [diff] [blame] | 17118 | "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17119 | "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 17120 | "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17121 | "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;; |
| 17122 | "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;; |
| 17123 | "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;; |
| 17124 | "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;; |
| 17125 | "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;; |
| 17126 | "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 17127 | "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17128 | "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;; |
| 17129 | "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;; |
| 17130 | "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;; |
| 17131 | "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;; |
| 17132 | "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;; |
| 17133 | "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;; |
| 17134 | "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;; |
| 17135 | "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;; |
Francois Gouget | 4ce2837 | 2002-11-04 23:47:49 +0000 | [diff] [blame] | 17136 | "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17137 | "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;; |
Eric Pouech | a120ce0 | 2002-06-28 17:40:16 +0000 | [diff] [blame] | 17138 | "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;; |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 17139 | "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;; |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 17140 | "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;; |
| 17141 | "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;; |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 17142 | "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17143 | "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;; |
| 17144 | "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;; |
| 17145 | "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 17146 | "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17147 | "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;; |
Stefan Leichter | 88b1106 | 2003-01-15 00:50:48 +0000 | [diff] [blame] | 17148 | "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;; |
Patrik Stridvall | 5caddc7 | 2002-12-17 01:49:16 +0000 | [diff] [blame] | 17149 | "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17150 | "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;; |
| 17151 | "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;; |
| 17152 | "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;; |
| 17153 | "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;; |
| 17154 | "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17155 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
Alexandre Julliard | 6a9fe36 | 2003-03-19 22:09:16 +0000 | [diff] [blame] | 17156 | "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;; |
| 17157 | "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;; |
Alexandre Julliard | 7ab9a71 | 2003-03-21 05:06:48 +0000 | [diff] [blame] | 17158 | "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;; |
Alexandre Julliard | 6692d39 | 2003-03-20 01:30:11 +0000 | [diff] [blame] | 17159 | "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;; |
Alexandre Julliard | 2d1c790 | 2003-03-22 20:40:48 +0000 | [diff] [blame] | 17160 | "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;; |
Alexandre Julliard | e1a9b10 | 2003-05-01 03:16:21 +0000 | [diff] [blame] | 17161 | "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17162 | "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17163 | "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;; |
| 17164 | "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;; |
| 17165 | "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;; |
| 17166 | "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;; |
| 17167 | "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;; |
Alexandre Julliard | acfda14 | 2002-05-20 19:18:16 +0000 | [diff] [blame] | 17168 | "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17169 | "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;; |
| 17170 | "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;; |
| 17171 | "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;; |
| 17172 | "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;; |
Andriy Palamarchuk | 4e2e176 | 2002-04-11 23:58:40 +0000 | [diff] [blame] | 17173 | "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;; |
Andriy Palamarchuk | 2f0d85c | 2002-04-29 23:47:39 +0000 | [diff] [blame] | 17174 | "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17175 | "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;; |
Alexandre Julliard | d77294a | 2002-12-02 21:17:04 +0000 | [diff] [blame] | 17176 | "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;; |
Alberto Massari | 15e8e0a | 2002-11-15 01:41:20 +0000 | [diff] [blame] | 17177 | "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;; |
Dan Kegel | ba02ae4 | 2003-01-21 20:14:36 +0000 | [diff] [blame] | 17178 | "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17179 | "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;; |
| 17180 | "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;; |
| 17181 | "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;; |
Shachar Shemesh | 175d059 | 2003-01-04 02:52:05 +0000 | [diff] [blame] | 17182 | "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;; |
Dimitrie O. Paun | 82ce2cc | 2003-03-31 19:41:55 +0000 | [diff] [blame] | 17183 | "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17184 | "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;; |
Alexandre Julliard | f264bd3 | 2002-09-13 17:54:27 +0000 | [diff] [blame] | 17185 | "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;; |
Alexandre Julliard | 65a4216 | 2002-06-04 21:29:40 +0000 | [diff] [blame] | 17186 | "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;; |
Mike McCormack | 88090b4 | 2003-05-21 18:50:53 +0000 | [diff] [blame] | 17187 | "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17188 | "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;; |
Mike Wetherell | 0d8a9fa | 2002-05-05 20:31:54 +0000 | [diff] [blame] | 17189 | "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;; |
Alexandre Julliard | fedc411 | 2003-04-27 00:47:58 +0000 | [diff] [blame] | 17190 | "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17191 | "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;; |
| 17192 | "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17193 | "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; |
| 17194 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
Alexandre Julliard | 7d4ee77 | 2002-07-16 03:20:45 +0000 | [diff] [blame] | 17195 | "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17196 | "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;; |
| 17197 | "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;; |
| 17198 | "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;; |
| 17199 | "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;; |
| 17200 | "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 17201 | "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17202 | "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;; |
| 17203 | "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;; |
| 17204 | "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;; |
| 17205 | "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;; |
| 17206 | "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;; |
| 17207 | "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;; |
| 17208 | "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;; |
| 17209 | "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;; |
| 17210 | "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;; |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 17211 | "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;; |
| 17212 | "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17213 | "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;; |
| 17214 | "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;; |
| 17215 | "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;; |
| 17216 | "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 17217 | "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;; |
| 17218 | "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;; |
| 17219 | "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;; |
| 17220 | "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17221 | "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 17222 | "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;; |
| 17223 | "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;; |
| 17224 | "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;; |
| 17225 | "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;; |
| 17226 | "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;; |
| 17227 | "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;; |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 17228 | "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;; |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 17229 | "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 17230 | "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;; |
| 17231 | "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;; |
| 17232 | "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;; |
| 17233 | "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17234 | "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17235 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17236 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 17237 | { (exit 1); exit 1; }; };; |
| 17238 | esac |
| 17239 | done |
| 17240 | |
| 17241 | # If the user did not use the arguments to specify the items to instantiate, |
| 17242 | # then the envvar interface is used. Set only those that are not. |
| 17243 | # We use the long form for the default assignment because of an extremely |
| 17244 | # bizarre bug on SunOS 4.1.3. |
| 17245 | if $ac_need_defaults; then |
| 17246 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17247 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 17248 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 17249 | fi |
| 17250 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17251 | # Have a temporary directory for convenience. Make it in the build tree |
| 17252 | # simply because there is no reason to put it here, and in addition, |
| 17253 | # creating and moving files from /tmp can sometimes cause problems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17254 | # Create a temporary directory, and hook for its removal unless debugging. |
| 17255 | $debug || |
| 17256 | { |
| 17257 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 17258 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 17259 | } |
| 17260 | |
| 17261 | # Create a (secure) tmp directory for tmp files. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17262 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17263 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17264 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17265 | test -n "$tmp" && test -d "$tmp" |
| 17266 | } || |
| 17267 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17268 | tmp=./confstat$$-$RANDOM |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17269 | (umask 077 && mkdir $tmp) |
| 17270 | } || |
| 17271 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17272 | echo "$me: cannot create a temporary directory in ." >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17273 | { (exit 1); exit 1; } |
| 17274 | } |
| 17275 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17276 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17277 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17278 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17279 | |
| 17280 | # |
| 17281 | # CONFIG_FILES section. |
| 17282 | # |
| 17283 | |
| 17284 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 17285 | # This happens for instance when ./config.status config.h |
| 17286 | if test -n "\$CONFIG_FILES"; then |
| 17287 | # Protect against being on the right side of a sed subst in config.status. |
| 17288 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 17289 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 17290 | s,@SHELL@,$SHELL,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17291 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 17292 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 17293 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 17294 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 17295 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 17296 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17297 | s,@exec_prefix@,$exec_prefix,;t t |
| 17298 | s,@prefix@,$prefix,;t t |
| 17299 | s,@program_transform_name@,$program_transform_name,;t t |
| 17300 | s,@bindir@,$bindir,;t t |
| 17301 | s,@sbindir@,$sbindir,;t t |
| 17302 | s,@libexecdir@,$libexecdir,;t t |
| 17303 | s,@datadir@,$datadir,;t t |
| 17304 | s,@sysconfdir@,$sysconfdir,;t t |
| 17305 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 17306 | s,@localstatedir@,$localstatedir,;t t |
| 17307 | s,@libdir@,$libdir,;t t |
| 17308 | s,@includedir@,$includedir,;t t |
| 17309 | s,@oldincludedir@,$oldincludedir,;t t |
| 17310 | s,@infodir@,$infodir,;t t |
| 17311 | s,@mandir@,$mandir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17312 | s,@build_alias@,$build_alias,;t t |
| 17313 | s,@host_alias@,$host_alias,;t t |
| 17314 | s,@target_alias@,$target_alias,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17315 | s,@DEFS@,$DEFS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17316 | s,@ECHO_C@,$ECHO_C,;t t |
| 17317 | s,@ECHO_N@,$ECHO_N,;t t |
| 17318 | s,@ECHO_T@,$ECHO_T,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17319 | s,@LIBS@,$LIBS,;t t |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 17320 | s,@WIN16_FILES@,$WIN16_FILES,;t t |
| 17321 | s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t |
Alexandre Julliard | 6a9cea9 | 2003-04-03 02:54:54 +0000 | [diff] [blame] | 17322 | s,@LIBPTHREAD@,$LIBPTHREAD,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17323 | s,@build@,$build,;t t |
| 17324 | s,@build_cpu@,$build_cpu,;t t |
| 17325 | s,@build_vendor@,$build_vendor,;t t |
| 17326 | s,@build_os@,$build_os,;t t |
| 17327 | s,@host@,$host,;t t |
| 17328 | s,@host_cpu@,$host_cpu,;t t |
| 17329 | s,@host_vendor@,$host_vendor,;t t |
| 17330 | s,@host_os@,$host_os,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17331 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 17332 | s,@CC@,$CC,;t t |
| 17333 | s,@CFLAGS@,$CFLAGS,;t t |
| 17334 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 17335 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 17336 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 17337 | s,@EXEEXT@,$EXEEXT,;t t |
| 17338 | s,@OBJEXT@,$OBJEXT,;t t |
| 17339 | s,@CPP@,$CPP,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 17340 | s,@TOOLSDIR@,$TOOLSDIR,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17341 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 17342 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 17343 | s,@X_LIBS@,$X_LIBS,;t t |
| 17344 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
| 17345 | s,@YACC@,$YACC,;t t |
| 17346 | s,@LEX@,$LEX,;t t |
| 17347 | s,@LEXLIB@,$LEXLIB,;t t |
| 17348 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
| 17349 | s,@XYACC@,$XYACC,;t t |
| 17350 | s,@XLEX@,$XLEX,;t t |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 17351 | s,@AS@,$AS,;t t |
| 17352 | s,@ac_ct_AS@,$ac_ct_AS,;t t |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 17353 | s,@LD@,$LD,;t t |
| 17354 | s,@ac_ct_LD@,$ac_ct_LD,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 17355 | s,@AR@,$AR,;t t |
| 17356 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17357 | s,@RANLIB@,$RANLIB,;t t |
| 17358 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 17359 | s,@STRIP@,$STRIP,;t t |
| 17360 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 17361 | s,@WINDRES@,$WINDRES,;t t |
| 17362 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17363 | s,@LN_S@,$LN_S,;t t |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 17364 | s,@LN@,$LN,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17365 | s,@LDCONFIG@,$LDCONFIG,;t t |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17366 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 17367 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 17368 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17369 | s,@LINT@,$LINT,;t t |
| 17370 | s,@LINTFLAGS@,$LINTFLAGS,;t t |
Vincent Béron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame] | 17371 | s,@DB2HTML@,$DB2HTML,;t t |
| 17372 | s,@DB2PDF@,$DB2PDF,;t t |
| 17373 | s,@DB2PS@,$DB2PS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17374 | s,@JPEGLIB@,$JPEGLIB,;t t |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17375 | s,@EGREP@,$EGREP,;t t |
Marcus Meissner | 728bedc | 2003-01-09 06:04:33 +0000 | [diff] [blame] | 17376 | s,@GIFLIB@,$GIFLIB,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17377 | s,@XLIB@,$XLIB,;t t |
| 17378 | s,@XFILES@,$XFILES,;t t |
| 17379 | s,@OPENGLFILES@,$OPENGLFILES,;t t |
| 17380 | s,@GLU32FILES@,$GLU32FILES,;t t |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 17381 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 17382 | s,@NASLIBS@,$NASLIBS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17383 | s,@CURSESLIBS@,$CURSESLIBS,;t t |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 17384 | s,@sane_devel@,$sane_devel,;t t |
| 17385 | s,@SANELIBS@,$SANELIBS,;t t |
| 17386 | s,@SANEINCL@,$SANEINCL,;t t |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 17387 | s,@ICULIBS@,$ICULIBS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17388 | s,@ft_devel@,$ft_devel,;t t |
| 17389 | s,@ft_devel2@,$ft_devel2,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17390 | s,@FREETYPEINCL@,$FREETYPEINCL,;t t |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 17391 | s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t |
| 17392 | s,@ARTSLIBS@,$ARTSLIBS,;t t |
| 17393 | s,@ARTSINCL@,$ARTSINCL,;t t |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 17394 | s,@ALSALIBS@,$ALSALIBS,;t t |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 17395 | s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 17396 | s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 17397 | s,@DLLEXT@,$DLLEXT,;t t |
| 17398 | s,@DLLFLAGS@,$DLLFLAGS,;t t |
| 17399 | s,@DLLIBS@,$DLLIBS,;t t |
| 17400 | s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t |
| 17401 | s,@LDSHARED@,$LDSHARED,;t t |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 17402 | s,@LIBEXT@,$LIBEXT,;t t |
| 17403 | s,@IMPLIBEXT@,$IMPLIBEXT,;t t |
| 17404 | s,@DLLTOOL@,$DLLTOOL,;t t |
| 17405 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17406 | s,@DLLWRAP@,$DLLWRAP,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 17407 | s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 17408 | s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 17409 | s,@CROSSTEST@,$CROSSTEST,;t t |
| 17410 | s,@CROSSCC@,$CROSSCC,;t t |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 17411 | s,@CROSSWINDRES@,$CROSSWINDRES,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17412 | s,@LDPATH@,$LDPATH,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 17413 | s,@CRTLIBS@,$CRTLIBS,;t t |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 17414 | s,@LDD@,$LDD,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17415 | s,@ALLOCA@,$ALLOCA,;t t |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17416 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 17417 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17418 | /@MAKE_RULES@/r $MAKE_RULES |
| 17419 | s,@MAKE_RULES@,,;t t |
| 17420 | /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES |
| 17421 | s,@MAKE_DLL_RULES@,,;t t |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 17422 | /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES |
| 17423 | s,@MAKE_TEST_RULES@,,;t t |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 17424 | /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES |
| 17425 | s,@MAKE_LIB_RULES@,,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17426 | /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES |
| 17427 | s,@MAKE_PROG_RULES@,,;t t |
| 17428 | CEOF |
| 17429 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17430 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17431 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17432 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17433 | # Split the substitutions into bite-sized pieces for seds with |
| 17434 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 17435 | ac_max_sed_lines=48 |
| 17436 | ac_sed_frag=1 # Number of current file. |
| 17437 | ac_beg=1 # First line for current file. |
| 17438 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 17439 | ac_more_lines=: |
| 17440 | ac_sed_cmds= |
| 17441 | while $ac_more_lines; do |
| 17442 | if test $ac_beg -gt 1; then |
| 17443 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17444 | else |
| 17445 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17446 | fi |
| 17447 | if test ! -s $tmp/subs.frag; then |
| 17448 | ac_more_lines=false |
| 17449 | else |
| 17450 | # The purpose of the label and of the branching condition is to |
| 17451 | # speed up the sed processing (if there are no `@' at all, there |
| 17452 | # is no need to browse any of the substitutions). |
| 17453 | # These are the two extra sed commands mentioned above. |
| 17454 | (echo ':t |
| 17455 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 17456 | if test -z "$ac_sed_cmds"; then |
| 17457 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17458 | else |
| 17459 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17460 | fi |
| 17461 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 17462 | ac_beg=$ac_end |
| 17463 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 17464 | fi |
| 17465 | done |
| 17466 | if test -z "$ac_sed_cmds"; then |
| 17467 | ac_sed_cmds=cat |
| 17468 | fi |
| 17469 | fi # test -n "$CONFIG_FILES" |
| 17470 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17471 | _ACEOF |
| 17472 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17473 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 17474 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 17475 | case $ac_file in |
| 17476 | - | *:- | *:-:* ) # input from stdin |
| 17477 | cat >$tmp/stdin |
| 17478 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17479 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17480 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17481 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17482 | * ) ac_file_in=$ac_file.in ;; |
| 17483 | esac |
| 17484 | |
| 17485 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17486 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17487 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17488 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17489 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17490 | X"$ac_file" : 'X\(/\)' \| \ |
| 17491 | . : '\(.\)' 2>/dev/null || |
| 17492 | echo X"$ac_file" | |
| 17493 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17494 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17495 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17496 | /^X\(\/\).*/{ s//\1/; q; } |
| 17497 | s/.*/./; q'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17498 | { if $as_mkdir_p; then |
| 17499 | mkdir -p "$ac_dir" |
| 17500 | else |
| 17501 | as_dir="$ac_dir" |
| 17502 | as_dirs= |
| 17503 | while test ! -d "$as_dir"; do |
| 17504 | as_dirs="$as_dir $as_dirs" |
| 17505 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 17506 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17507 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 17508 | X"$as_dir" : 'X\(//\)$' \| \ |
| 17509 | X"$as_dir" : 'X\(/\)' \| \ |
| 17510 | . : '\(.\)' 2>/dev/null || |
| 17511 | echo X"$as_dir" | |
| 17512 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17513 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17514 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17515 | /^X\(\/\).*/{ s//\1/; q; } |
| 17516 | s/.*/./; q'` |
| 17517 | done |
| 17518 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 17519 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 17520 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 17521 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17522 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17523 | ac_builddir=. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17524 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17525 | if test "$ac_dir" != .; then |
| 17526 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 17527 | # A "../" for each directory in $ac_dir_suffix. |
| 17528 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 17529 | else |
| 17530 | ac_dir_suffix= ac_top_builddir= |
| 17531 | fi |
| 17532 | |
| 17533 | case $srcdir in |
| 17534 | .) # No --srcdir option. We are building in place. |
| 17535 | ac_srcdir=. |
| 17536 | if test -z "$ac_top_builddir"; then |
| 17537 | ac_top_srcdir=. |
| 17538 | else |
| 17539 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 17540 | fi ;; |
| 17541 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 17542 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17543 | ac_top_srcdir=$srcdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17544 | *) # Relative path. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17545 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 17546 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 17547 | esac |
| 17548 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 17549 | # absolute. |
| 17550 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17551 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17552 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 17553 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 17554 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17555 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17556 | case $INSTALL in |
| 17557 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17558 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 17559 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 17560 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17561 | if test x"$ac_file" != x-; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17562 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17563 | echo "$as_me: creating $ac_file" >&6;} |
| 17564 | rm -f "$ac_file" |
| 17565 | fi |
| 17566 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17567 | # use $as_me), people would be surprised to read: |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17568 | # /* config.h. Generated by config.status. */ |
| 17569 | if test x"$ac_file" = x-; then |
| 17570 | configure_input= |
| 17571 | else |
| 17572 | configure_input="$ac_file. " |
| 17573 | fi |
| 17574 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 17575 | sed 's,.*/,,'` by configure." |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 17576 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17577 | # First look for the input files in the build tree, otherwise in the |
| 17578 | # src tree. |
| 17579 | ac_file_inputs=`IFS=: |
| 17580 | for f in $ac_file_in; do |
| 17581 | case $f in |
| 17582 | -) echo $tmp/stdin ;; |
| 17583 | [\\/$]*) |
| 17584 | # Absolute (can't be DOS-style, as IFS=:) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17585 | 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] | 17586 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17587 | { (exit 1); exit 1; }; } |
| 17588 | echo $f;; |
| 17589 | *) # Relative |
| 17590 | if test -f "$f"; then |
| 17591 | # Build tree |
| 17592 | echo $f |
| 17593 | elif test -f "$srcdir/$f"; then |
| 17594 | # Source tree |
| 17595 | echo $srcdir/$f |
| 17596 | else |
| 17597 | # /dev/null tree |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17598 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17599 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17600 | { (exit 1); exit 1; }; } |
| 17601 | fi;; |
| 17602 | esac |
| 17603 | done` || { (exit 1); exit 1; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17604 | _ACEOF |
| 17605 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17606 | sed "$ac_vpsub |
| 17607 | $extrasub |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17608 | _ACEOF |
| 17609 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17610 | :t |
| 17611 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 17612 | s,@configure_input@,$configure_input,;t t |
| 17613 | s,@srcdir@,$ac_srcdir,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17614 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17615 | s,@top_srcdir@,$ac_top_srcdir,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17616 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 17617 | s,@builddir@,$ac_builddir,;t t |
| 17618 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 17619 | s,@top_builddir@,$ac_top_builddir,;t t |
| 17620 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17621 | s,@INSTALL@,$ac_INSTALL,;t t |
| 17622 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 17623 | rm -f $tmp/stdin |
| 17624 | if test x"$ac_file" != x-; then |
| 17625 | mv $tmp/out $ac_file |
| 17626 | else |
| 17627 | cat $tmp/out |
| 17628 | rm -f $tmp/out |
| 17629 | fi |
| 17630 | |
| 17631 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17632 | _ACEOF |
| 17633 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17634 | |
| 17635 | # |
| 17636 | # CONFIG_HEADER section. |
| 17637 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17638 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17639 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 17640 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 17641 | # |
| 17642 | # ac_d sets the value in "#define NAME VALUE" lines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17643 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 17644 | ac_dB='[ ].*$,\1#\2' |
| 17645 | ac_dC=' ' |
| 17646 | ac_dD=',;t' |
| 17647 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 17648 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 17649 | ac_uB='$,\1#\2define\3' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17650 | ac_uC=' ' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17651 | ac_uD=',;t' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17652 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17653 | 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] | 17654 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17655 | case $ac_file in |
| 17656 | - | *:- | *:-:* ) # input from stdin |
| 17657 | cat >$tmp/stdin |
| 17658 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17659 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17660 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17661 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17662 | * ) ac_file_in=$ac_file.in ;; |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17663 | esac |
| 17664 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17665 | 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] | 17666 | echo "$as_me: creating $ac_file" >&6;} |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17667 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17668 | # First look for the input files in the build tree, otherwise in the |
| 17669 | # src tree. |
| 17670 | ac_file_inputs=`IFS=: |
| 17671 | for f in $ac_file_in; do |
| 17672 | case $f in |
| 17673 | -) echo $tmp/stdin ;; |
| 17674 | [\\/$]*) |
| 17675 | # Absolute (can't be DOS-style, as IFS=:) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17676 | 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] | 17677 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17678 | { (exit 1); exit 1; }; } |
| 17679 | echo $f;; |
| 17680 | *) # Relative |
| 17681 | if test -f "$f"; then |
| 17682 | # Build tree |
| 17683 | echo $f |
| 17684 | elif test -f "$srcdir/$f"; then |
| 17685 | # Source tree |
| 17686 | echo $srcdir/$f |
| 17687 | else |
| 17688 | # /dev/null tree |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17689 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17690 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17691 | { (exit 1); exit 1; }; } |
| 17692 | fi;; |
| 17693 | esac |
| 17694 | done` || { (exit 1); exit 1; } |
| 17695 | # Remove the trailing spaces. |
| 17696 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17697 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17698 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17699 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17700 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 17701 | # `conftest.undefs', that substitutes the proper values into |
| 17702 | # config.h.in to produce config.h. The first handles `#define' |
| 17703 | # templates, and the second `#undef' templates. |
| 17704 | # And first: Protect against being on the right side of a sed subst in |
| 17705 | # config.status. Protect against being in an unquoted here document |
| 17706 | # in config.status. |
| 17707 | rm -f conftest.defines conftest.undefs |
| 17708 | # Using a here document instead of a string reduces the quoting nightmare. |
| 17709 | # Putting comments in sed scripts is not portable. |
| 17710 | # |
| 17711 | # `end' is used to avoid that the second main sed command (meant for |
| 17712 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 17713 | # See the Autoconf documentation for `clear'. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17714 | cat >confdef2sed.sed <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17715 | s/[\\&,]/\\&/g |
| 17716 | s,[\\$`],\\&,g |
| 17717 | t clear |
| 17718 | : clear |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17719 | 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] | 17720 | t end |
| 17721 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 17722 | : end |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17723 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17724 | # If some macros were called several times there might be several times |
| 17725 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 17726 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 17727 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 17728 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 17729 | rm -f confdef2sed.sed |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17730 | |
| 17731 | # This sed command replaces #undef with comments. This is necessary, for |
| 17732 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 17733 | # on some systems where configure will not decide to define it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17734 | cat >>conftest.undefs <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17735 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17736 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17737 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17738 | # Break up conftest.defines because some shells have a limit on the size |
| 17739 | # of here documents, and old seds have small limits too (100 cmds). |
| 17740 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17741 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17742 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 17743 | echo ' :' >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17744 | rm -f conftest.tail |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17745 | while grep . conftest.defines >/dev/null |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17746 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17747 | # Write a limited-size here document to $tmp/defines.sed. |
| 17748 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 17749 | # Speed up: don't consider the non `#define' lines. |
| 17750 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 17751 | # Work around the forget-to-reset-the-flag bug. |
| 17752 | echo 't clr' >>$CONFIG_STATUS |
| 17753 | echo ': clr' >>$CONFIG_STATUS |
| 17754 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17755 | echo 'CEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17756 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 17757 | rm -f $tmp/in |
| 17758 | mv $tmp/out $tmp/in |
| 17759 | ' >>$CONFIG_STATUS |
| 17760 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 17761 | rm -f conftest.defines |
| 17762 | mv conftest.tail conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17763 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17764 | rm -f conftest.defines |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17765 | echo ' fi # grep' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17766 | echo >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17767 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17768 | # Break up conftest.undefs because some shells have a limit on the size |
| 17769 | # of here documents, and old seds have small limits too (100 cmds). |
| 17770 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 17771 | rm -f conftest.tail |
| 17772 | while grep . conftest.undefs >/dev/null |
| 17773 | do |
| 17774 | # Write a limited-size here document to $tmp/undefs.sed. |
| 17775 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 17776 | # Speed up: don't consider the non `#undef' |
| 17777 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 17778 | # Work around the forget-to-reset-the-flag bug. |
| 17779 | echo 't clr' >>$CONFIG_STATUS |
| 17780 | echo ': clr' >>$CONFIG_STATUS |
| 17781 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 17782 | echo 'CEOF |
| 17783 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 17784 | rm -f $tmp/in |
| 17785 | mv $tmp/out $tmp/in |
| 17786 | ' >>$CONFIG_STATUS |
| 17787 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 17788 | rm -f conftest.undefs |
| 17789 | mv conftest.tail conftest.undefs |
| 17790 | done |
| 17791 | rm -f conftest.undefs |
| 17792 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17793 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17794 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17795 | # use $as_me), people would be surprised to read: |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17796 | # /* config.h. Generated by config.status. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17797 | if test x"$ac_file" = x-; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17798 | echo "/* Generated by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17799 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17800 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17801 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17802 | cat $tmp/in >>$tmp/config.h |
| 17803 | rm -f $tmp/in |
| 17804 | if test x"$ac_file" != x-; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17805 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17806 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17807 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 17808 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17809 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17810 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17811 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17812 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17813 | X"$ac_file" : 'X\(/\)' \| \ |
| 17814 | . : '\(.\)' 2>/dev/null || |
| 17815 | echo X"$ac_file" | |
| 17816 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17817 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17818 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17819 | /^X\(\/\).*/{ s//\1/; q; } |
| 17820 | s/.*/./; q'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17821 | { if $as_mkdir_p; then |
| 17822 | mkdir -p "$ac_dir" |
| 17823 | else |
| 17824 | as_dir="$ac_dir" |
| 17825 | as_dirs= |
| 17826 | while test ! -d "$as_dir"; do |
| 17827 | as_dirs="$as_dir $as_dirs" |
| 17828 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 17829 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17830 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 17831 | X"$as_dir" : 'X\(//\)$' \| \ |
| 17832 | X"$as_dir" : 'X\(/\)' \| \ |
| 17833 | . : '\(.\)' 2>/dev/null || |
| 17834 | echo X"$as_dir" | |
| 17835 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17836 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17837 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17838 | /^X\(\/\).*/{ s//\1/; q; } |
| 17839 | s/.*/./; q'` |
| 17840 | done |
| 17841 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 17842 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 17843 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 17844 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 17845 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17846 | rm -f $ac_file |
| 17847 | mv $tmp/config.h $ac_file |
| 17848 | fi |
| 17849 | else |
| 17850 | cat $tmp/config.h |
| 17851 | rm -f $tmp/config.h |
| 17852 | fi |
| 17853 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17854 | _ACEOF |
| 17855 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17856 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17857 | # |
| 17858 | # CONFIG_COMMANDS section. |
| 17859 | # |
| 17860 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 17861 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 17862 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17863 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 17864 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17865 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 17866 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 17867 | X"$ac_dest" : 'X\(/\)' \| \ |
| 17868 | . : '\(.\)' 2>/dev/null || |
| 17869 | echo X"$ac_dest" | |
| 17870 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17871 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17872 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17873 | /^X\(\/\).*/{ s//\1/; q; } |
| 17874 | s/.*/./; q'` |
| 17875 | ac_builddir=. |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 17876 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17877 | if test "$ac_dir" != .; then |
| 17878 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 17879 | # A "../" for each directory in $ac_dir_suffix. |
| 17880 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17881 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17882 | ac_dir_suffix= ac_top_builddir= |
| 17883 | fi |
| 17884 | |
| 17885 | case $srcdir in |
| 17886 | .) # No --srcdir option. We are building in place. |
| 17887 | ac_srcdir=. |
| 17888 | if test -z "$ac_top_builddir"; then |
| 17889 | ac_top_srcdir=. |
| 17890 | else |
| 17891 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 17892 | fi ;; |
| 17893 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 17894 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17895 | ac_top_srcdir=$srcdir ;; |
| 17896 | *) # Relative path. |
| 17897 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 17898 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 17899 | esac |
| 17900 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 17901 | # absolute. |
| 17902 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17903 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17904 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 17905 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 17906 | |
| 17907 | |
| 17908 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 17909 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 17910 | case $ac_dest in |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 17911 | controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5 |
| 17912 | echo "$as_me: creating controls" >&6;} && mkdir "controls") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17913 | dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5 |
| 17914 | echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;; |
| 17915 | dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5 |
| 17916 | echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;; |
| 17917 | dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5 |
| 17918 | echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;; |
| 17919 | dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5 |
| 17920 | echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;; |
| 17921 | dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5 |
| 17922 | echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;; |
| 17923 | dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5 |
| 17924 | echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;; |
| 17925 | dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5 |
| 17926 | echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;; |
| 17927 | dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5 |
| 17928 | echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;; |
| 17929 | dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5 |
| 17930 | echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;; |
| 17931 | dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5 |
| 17932 | echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;; |
| 17933 | dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5 |
| 17934 | echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17935 | dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5 |
| 17936 | echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17937 | dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5 |
| 17938 | echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;; |
| 17939 | dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5 |
| 17940 | echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17941 | dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5 |
| 17942 | echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 17943 | files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5 |
| 17944 | echo "$as_me: creating files" >&6;} && mkdir "files") ;; |
| 17945 | graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5 |
| 17946 | echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;; |
| 17947 | graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5 |
| 17948 | echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;; |
| 17949 | if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5 |
| 17950 | echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17951 | include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5 |
| 17952 | echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 17953 | loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5 |
| 17954 | echo "$as_me: creating loader" >&6;} && mkdir "loader") ;; |
| 17955 | loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5 |
| 17956 | echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;; |
| 17957 | memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5 |
| 17958 | echo "$as_me: creating memory" >&6;} && mkdir "memory") ;; |
| 17959 | misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5 |
| 17960 | echo "$as_me: creating misc" >&6;} && mkdir "misc") ;; |
| 17961 | msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5 |
| 17962 | echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;; |
| 17963 | objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5 |
| 17964 | echo "$as_me: creating objects" >&6;} && mkdir "objects") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17965 | programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5 |
| 17966 | echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;; |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 17967 | programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5 |
| 17968 | echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 17969 | relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5 |
| 17970 | echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;; |
| 17971 | scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5 |
| 17972 | echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;; |
| 17973 | win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5 |
| 17974 | echo "$as_me: creating win32" >&6;} && mkdir "win32") ;; |
| 17975 | windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5 |
| 17976 | echo "$as_me: creating windows" >&6;} && mkdir "windows") ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17977 | esac |
| 17978 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17979 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17980 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17981 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 17982 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17983 | { (exit 0); exit 0; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17984 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17985 | chmod +x $CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17986 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17987 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17988 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17989 | # configure is writing to config.log, and then calls config.status. |
| 17990 | # config.status does its own redirection, appending to config.log. |
| 17991 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17992 | # by configure, so config.status won't be able to write to it; its |
| 17993 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17994 | # effectively closing config.log, so it can be properly (re)opened and |
| 17995 | # appended to by config.status. When coming back to configure, we |
| 17996 | # need to make the FD available again. |
| 17997 | if test "$no_create" != yes; then |
| 17998 | ac_cs_success=: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17999 | ac_config_status_args= |
| 18000 | test "$silent" = yes && |
| 18001 | ac_config_status_args="$ac_config_status_args --quiet" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18002 | exec 5>/dev/null |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18003 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18004 | exec 5>>config.log |
| 18005 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 18006 | # would make configure fail if this is the last instruction. |
| 18007 | $ac_cs_success || { (exit 1); exit 1; } |
| 18008 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 18009 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18010 | |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 18011 | if test "$have_x" = "no" |
| 18012 | then |
| 18013 | echo |
| 18014 | echo "*** Warning: X development files not found. Wine will be built without" |
| 18015 | echo "*** X support, which currently does not work, and would probably not be" |
| 18016 | 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] | 18017 | echo "*** Xlib/Xfree86 at the very least." |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 18018 | fi |
| 18019 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 18020 | if test "$wine_cv_opengl_version_OK" = "no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 18021 | then |
| 18022 | echo |
| 18023 | echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 18024 | echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." |
| 18025 | fi |
| 18026 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 18027 | if test "$wine_cv_msg_freetype" = "yes" |
| 18028 | then |
| 18029 | echo |
| 18030 | echo "*** Note: Your system appears to have the FreeType 2 runtime libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18031 | echo "*** installed, but 'freetype-config' is not in your PATH. Install the" |
| 18032 | echo "*** freetype-devel package (or its equivalent on your distribution) to" |
| 18033 | echo "*** enable Wine to use TrueType fonts." |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 18034 | fi |
| 18035 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 18036 | echo |
Steffen Moeller | 1511bae | 1999-02-17 15:27:03 +0000 | [diff] [blame] | 18037 | echo "Configure finished. Do 'make depend && make' to compile Wine." |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 18038 | echo |
| 18039 | |