Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | |
| 3 | # From configure.in configure.in 1.00 |
| 4 | # Guess values for system-dependent variables and create Makefiles. |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 5 | # Generated automatically using autoconf version 2.13 |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 6 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7 | # |
| 8 | # This configure script is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy, distribute and modify it. |
| 10 | |
| 11 | # Defaults: |
| 12 | ac_help= |
| 13 | ac_default_prefix=/usr/local |
| 14 | # Any additions from configure.in: |
| 15 | ac_help="$ac_help |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 16 | --disable-debug compile out all debugging messages" |
| 17 | ac_help="$ac_help |
Andreas Mohr | 18a9d74 | 2001-01-17 21:52:42 +0000 | [diff] [blame] | 18 | --enable-opengl force usage of OpenGL even if the latter is thread-safe via pthread" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 19 | ac_help="$ac_help |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 20 | --disable-trace compile out TRACE messages" |
| 21 | ac_help="$ac_help |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 22 | --without-curses do not use curses" |
| 23 | ac_help="$ac_help |
Patrik Stridvall | f638aef | 1998-12-07 09:36:13 +0000 | [diff] [blame] | 24 | --without-reentrant-x compile for use with non-reentrant X libraries" |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 25 | ac_help="$ac_help |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 26 | --with-x use the X Window System" |
| 27 | |
| 28 | # Initialize some variables set by options. |
| 29 | # The variables have the same names as the options, with |
| 30 | # dashes changed to underlines. |
| 31 | build=NONE |
| 32 | cache_file=./config.cache |
| 33 | exec_prefix=NONE |
| 34 | host=NONE |
| 35 | no_create= |
| 36 | nonopt=NONE |
| 37 | no_recursion= |
| 38 | prefix=NONE |
| 39 | program_prefix=NONE |
| 40 | program_suffix=NONE |
| 41 | program_transform_name=s,x,x, |
| 42 | silent= |
| 43 | site= |
| 44 | srcdir= |
| 45 | target=NONE |
| 46 | verbose= |
| 47 | x_includes=NONE |
| 48 | x_libraries=NONE |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 49 | bindir='${exec_prefix}/bin' |
| 50 | sbindir='${exec_prefix}/sbin' |
| 51 | libexecdir='${exec_prefix}/libexec' |
| 52 | datadir='${prefix}/share' |
| 53 | sysconfdir='${prefix}/etc' |
| 54 | sharedstatedir='${prefix}/com' |
| 55 | localstatedir='${prefix}/var' |
| 56 | libdir='${exec_prefix}/lib' |
| 57 | includedir='${prefix}/include' |
| 58 | oldincludedir='/usr/include' |
| 59 | infodir='${prefix}/info' |
| 60 | mandir='${prefix}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 61 | |
| 62 | # Initialize some other variables. |
| 63 | subdirs= |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 64 | MFLAGS= MAKEFLAGS= |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 65 | SHELL=${CONFIG_SHELL-/bin/sh} |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 66 | # Maximum number of lines to put in a shell here document. |
| 67 | ac_max_here_lines=12 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 68 | |
| 69 | ac_prev= |
| 70 | for ac_option |
| 71 | do |
| 72 | |
| 73 | # If the previous option needs an argument, assign it. |
| 74 | if test -n "$ac_prev"; then |
| 75 | eval "$ac_prev=\$ac_option" |
| 76 | ac_prev= |
| 77 | continue |
| 78 | fi |
| 79 | |
| 80 | case "$ac_option" in |
| 81 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 82 | *) ac_optarg= ;; |
| 83 | esac |
| 84 | |
| 85 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 86 | |
| 87 | case "$ac_option" in |
| 88 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 89 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 90 | ac_prev=bindir ;; |
| 91 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 92 | bindir="$ac_optarg" ;; |
| 93 | |
| 94 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 95 | ac_prev=build ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 96 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 97 | build="$ac_optarg" ;; |
| 98 | |
| 99 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 100 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 101 | ac_prev=cache_file ;; |
| 102 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 103 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 104 | cache_file="$ac_optarg" ;; |
| 105 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 106 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 107 | ac_prev=datadir ;; |
| 108 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 109 | | --da=*) |
| 110 | datadir="$ac_optarg" ;; |
| 111 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 112 | -disable-* | --disable-*) |
| 113 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 114 | # Reject names that are not valid shell variable names. |
| 115 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 116 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 117 | fi |
| 118 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 119 | eval "enable_${ac_feature}=no" ;; |
| 120 | |
| 121 | -enable-* | --enable-*) |
| 122 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 123 | # Reject names that are not valid shell variable names. |
| 124 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 125 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 126 | fi |
| 127 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 128 | case "$ac_option" in |
| 129 | *=*) ;; |
| 130 | *) ac_optarg=yes ;; |
| 131 | esac |
| 132 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 133 | |
| 134 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 135 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 136 | | --exec | --exe | --ex) |
| 137 | ac_prev=exec_prefix ;; |
| 138 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 139 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 140 | | --exec=* | --exe=* | --ex=*) |
| 141 | exec_prefix="$ac_optarg" ;; |
| 142 | |
| 143 | -gas | --gas | --ga | --g) |
| 144 | # Obsolete; use --with-gas. |
| 145 | with_gas=yes ;; |
| 146 | |
| 147 | -help | --help | --hel | --he) |
| 148 | # Omit some internal or obsolete options to make the list less imposing. |
| 149 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 150 | cat << EOF |
| 151 | Usage: configure [options] [host] |
| 152 | Options: [defaults in brackets after descriptions] |
| 153 | Configuration: |
| 154 | --cache-file=FILE cache test results in FILE |
| 155 | --help print this message |
| 156 | --no-create do not create output files |
| 157 | --quiet, --silent do not print \`checking...' messages |
| 158 | --version print the version of autoconf that created configure |
| 159 | Directory and file names: |
| 160 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 161 | [$ac_default_prefix] |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 162 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 163 | [same as prefix] |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 164 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 165 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 166 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 167 | --datadir=DIR read-only architecture-independent data in DIR |
| 168 | [PREFIX/share] |
| 169 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 170 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 171 | [PREFIX/com] |
| 172 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 173 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 174 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 175 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 176 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 177 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 178 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 179 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 180 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 181 | --program-transform-name=PROGRAM |
| 182 | run sed PROGRAM on installed program names |
| 183 | EOF |
| 184 | cat << EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 185 | Host type: |
| 186 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 187 | --host=HOST configure for HOST [guessed] |
| 188 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 189 | Features and packages: |
| 190 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 191 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 192 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 193 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 194 | --x-includes=DIR X include files are in DIR |
| 195 | --x-libraries=DIR X library files are in DIR |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 196 | EOF |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 197 | if test -n "$ac_help"; then |
| 198 | echo "--enable and --with options recognized:$ac_help" |
| 199 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 200 | exit 0 ;; |
| 201 | |
| 202 | -host | --host | --hos | --ho) |
| 203 | ac_prev=host ;; |
| 204 | -host=* | --host=* | --hos=* | --ho=*) |
| 205 | host="$ac_optarg" ;; |
| 206 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 207 | -includedir | --includedir | --includedi | --included | --include \ |
| 208 | | --includ | --inclu | --incl | --inc) |
| 209 | ac_prev=includedir ;; |
| 210 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 211 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 212 | includedir="$ac_optarg" ;; |
| 213 | |
| 214 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 215 | ac_prev=infodir ;; |
| 216 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 217 | infodir="$ac_optarg" ;; |
| 218 | |
| 219 | -libdir | --libdir | --libdi | --libd) |
| 220 | ac_prev=libdir ;; |
| 221 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 222 | libdir="$ac_optarg" ;; |
| 223 | |
| 224 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 225 | | --libexe | --libex | --libe) |
| 226 | ac_prev=libexecdir ;; |
| 227 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 228 | | --libexe=* | --libex=* | --libe=*) |
| 229 | libexecdir="$ac_optarg" ;; |
| 230 | |
| 231 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 232 | | --localstate | --localstat | --localsta | --localst \ |
| 233 | | --locals | --local | --loca | --loc | --lo) |
| 234 | ac_prev=localstatedir ;; |
| 235 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 236 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 237 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 238 | localstatedir="$ac_optarg" ;; |
| 239 | |
| 240 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 241 | ac_prev=mandir ;; |
| 242 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 243 | mandir="$ac_optarg" ;; |
| 244 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 245 | -nfp | --nfp | --nf) |
| 246 | # Obsolete; use --without-fp. |
| 247 | with_fp=no ;; |
| 248 | |
| 249 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 250 | | --no-cr | --no-c) |
| 251 | no_create=yes ;; |
| 252 | |
| 253 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 254 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 255 | no_recursion=yes ;; |
| 256 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 257 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 258 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 259 | | --oldin | --oldi | --old | --ol | --o) |
| 260 | ac_prev=oldincludedir ;; |
| 261 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 262 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 263 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 264 | oldincludedir="$ac_optarg" ;; |
| 265 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 266 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 267 | ac_prev=prefix ;; |
| 268 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 269 | prefix="$ac_optarg" ;; |
| 270 | |
| 271 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 272 | | --program-pre | --program-pr | --program-p) |
| 273 | ac_prev=program_prefix ;; |
| 274 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 275 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 276 | program_prefix="$ac_optarg" ;; |
| 277 | |
| 278 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 279 | | --program-suf | --program-su | --program-s) |
| 280 | ac_prev=program_suffix ;; |
| 281 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 282 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 283 | program_suffix="$ac_optarg" ;; |
| 284 | |
| 285 | -program-transform-name | --program-transform-name \ |
| 286 | | --program-transform-nam | --program-transform-na \ |
| 287 | | --program-transform-n | --program-transform- \ |
| 288 | | --program-transform | --program-transfor \ |
| 289 | | --program-transfo | --program-transf \ |
| 290 | | --program-trans | --program-tran \ |
| 291 | | --progr-tra | --program-tr | --program-t) |
| 292 | ac_prev=program_transform_name ;; |
| 293 | -program-transform-name=* | --program-transform-name=* \ |
| 294 | | --program-transform-nam=* | --program-transform-na=* \ |
| 295 | | --program-transform-n=* | --program-transform-=* \ |
| 296 | | --program-transform=* | --program-transfor=* \ |
| 297 | | --program-transfo=* | --program-transf=* \ |
| 298 | | --program-trans=* | --program-tran=* \ |
| 299 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 300 | program_transform_name="$ac_optarg" ;; |
| 301 | |
| 302 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 303 | | -silent | --silent | --silen | --sile | --sil) |
| 304 | silent=yes ;; |
| 305 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 306 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 307 | ac_prev=sbindir ;; |
| 308 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 309 | | --sbi=* | --sb=*) |
| 310 | sbindir="$ac_optarg" ;; |
| 311 | |
| 312 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 313 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 314 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 315 | | --sha | --sh) |
| 316 | ac_prev=sharedstatedir ;; |
| 317 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 318 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 319 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 320 | | --sha=* | --sh=*) |
| 321 | sharedstatedir="$ac_optarg" ;; |
| 322 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 323 | -site | --site | --sit) |
| 324 | ac_prev=site ;; |
| 325 | -site=* | --site=* | --sit=*) |
| 326 | site="$ac_optarg" ;; |
| 327 | |
| 328 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 329 | ac_prev=srcdir ;; |
| 330 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 331 | srcdir="$ac_optarg" ;; |
| 332 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 333 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 334 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 335 | ac_prev=sysconfdir ;; |
| 336 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 337 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 338 | sysconfdir="$ac_optarg" ;; |
| 339 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 340 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 341 | ac_prev=target ;; |
| 342 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 343 | target="$ac_optarg" ;; |
| 344 | |
| 345 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 346 | verbose=yes ;; |
| 347 | |
| 348 | -version | --version | --versio | --versi | --vers) |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 349 | echo "configure generated by autoconf version 2.13" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 350 | exit 0 ;; |
| 351 | |
| 352 | -with-* | --with-*) |
| 353 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 354 | # Reject names that are not valid shell variable names. |
| 355 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 356 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 357 | fi |
| 358 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 359 | case "$ac_option" in |
| 360 | *=*) ;; |
| 361 | *) ac_optarg=yes ;; |
| 362 | esac |
| 363 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 364 | |
| 365 | -without-* | --without-*) |
| 366 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 367 | # Reject names that are not valid shell variable names. |
| 368 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 369 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 370 | fi |
| 371 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 372 | eval "with_${ac_package}=no" ;; |
| 373 | |
| 374 | --x) |
| 375 | # Obsolete; use --with-x. |
| 376 | with_x=yes ;; |
| 377 | |
| 378 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 379 | | --x-incl | --x-inc | --x-in | --x-i) |
| 380 | ac_prev=x_includes ;; |
| 381 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 382 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 383 | x_includes="$ac_optarg" ;; |
| 384 | |
| 385 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 386 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 387 | ac_prev=x_libraries ;; |
| 388 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 389 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 390 | x_libraries="$ac_optarg" ;; |
| 391 | |
| 392 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 393 | ;; |
| 394 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 395 | *) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 396 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 397 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 398 | fi |
| 399 | if test "x$nonopt" != xNONE; then |
| 400 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 401 | fi |
| 402 | nonopt="$ac_option" |
| 403 | ;; |
| 404 | |
| 405 | esac |
| 406 | done |
| 407 | |
| 408 | if test -n "$ac_prev"; then |
| 409 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 410 | fi |
| 411 | |
| 412 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 413 | |
| 414 | # File descriptor usage: |
| 415 | # 0 standard input |
| 416 | # 1 file creation |
| 417 | # 2 errors and warnings |
| 418 | # 3 some systems may open it to /dev/tty |
| 419 | # 4 used on the Kubota Titan |
| 420 | # 6 checking for... messages and results |
| 421 | # 5 compiler messages saved in config.log |
| 422 | if test "$silent" = yes; then |
| 423 | exec 6>/dev/null |
| 424 | else |
| 425 | exec 6>&1 |
| 426 | fi |
| 427 | exec 5>./config.log |
| 428 | |
| 429 | echo "\ |
| 430 | This file contains any messages produced by compilers while |
| 431 | running configure, to aid debugging if configure makes a mistake. |
| 432 | " 1>&5 |
| 433 | |
| 434 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 435 | # Also quote any args containing shell metacharacters. |
| 436 | ac_configure_args= |
| 437 | for ac_arg |
| 438 | do |
| 439 | case "$ac_arg" in |
| 440 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 441 | | --no-cr | --no-c) ;; |
| 442 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 443 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 444 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 445 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 446 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 447 | esac |
| 448 | done |
| 449 | |
| 450 | # NLS nuisances. |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 451 | # Only set these to C if already set. These must not be set unconditionally |
| 452 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 453 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 454 | # Non-C LC_CTYPE values break the ctype check. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 455 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 456 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 457 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 458 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 459 | |
| 460 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 461 | rm -rf conftest* confdefs.h |
| 462 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 463 | echo > confdefs.h |
| 464 | |
| 465 | # A filename unique to this package, relative to the directory that |
| 466 | # configure is in, which we can look for to find out if srcdir is correct. |
| 467 | ac_unique_file=controls/edit.c |
| 468 | |
| 469 | # Find the source files, if location was not specified. |
| 470 | if test -z "$srcdir"; then |
| 471 | ac_srcdir_defaulted=yes |
| 472 | # Try the directory containing this script, then its parent. |
| 473 | ac_prog=$0 |
| 474 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 475 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 476 | srcdir=$ac_confdir |
| 477 | if test ! -r $srcdir/$ac_unique_file; then |
| 478 | srcdir=.. |
| 479 | fi |
| 480 | else |
| 481 | ac_srcdir_defaulted=no |
| 482 | fi |
| 483 | if test ! -r $srcdir/$ac_unique_file; then |
| 484 | if test "$ac_srcdir_defaulted" = yes; then |
| 485 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 486 | else |
| 487 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 488 | fi |
| 489 | fi |
| 490 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 491 | |
| 492 | # Prefer explicitly selected file to automatically selected ones. |
| 493 | if test -z "$CONFIG_SITE"; then |
| 494 | if test "x$prefix" != xNONE; then |
| 495 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 496 | else |
| 497 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 498 | fi |
| 499 | fi |
| 500 | for ac_site_file in $CONFIG_SITE; do |
| 501 | if test -r "$ac_site_file"; then |
| 502 | echo "loading site script $ac_site_file" |
| 503 | . "$ac_site_file" |
| 504 | fi |
| 505 | done |
| 506 | |
| 507 | if test -r "$cache_file"; then |
| 508 | echo "loading cache $cache_file" |
| 509 | . $cache_file |
| 510 | else |
| 511 | echo "creating cache $cache_file" |
| 512 | > $cache_file |
| 513 | fi |
| 514 | |
| 515 | ac_ext=c |
| 516 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 517 | ac_cpp='$CPP $CPPFLAGS' |
| 518 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 519 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 520 | cross_compiling=$ac_cv_prog_cc_cross |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 521 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 522 | ac_exeext= |
| 523 | ac_objext=o |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 524 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 525 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 526 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 527 | ac_n= ac_c=' |
| 528 | ' ac_t=' ' |
| 529 | else |
| 530 | ac_n=-n ac_c= ac_t= |
| 531 | fi |
| 532 | else |
| 533 | ac_n= ac_c='\c' ac_t= |
| 534 | fi |
| 535 | |
| 536 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 537 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 538 | ac_aux_dir= |
| 539 | for ac_dir in tools $srcdir/tools; do |
| 540 | if test -f $ac_dir/install-sh; then |
| 541 | ac_aux_dir=$ac_dir |
| 542 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 543 | break |
| 544 | elif test -f $ac_dir/install.sh; then |
| 545 | ac_aux_dir=$ac_dir |
| 546 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 547 | break |
| 548 | fi |
| 549 | done |
| 550 | if test -z "$ac_aux_dir"; then |
| 551 | { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; } |
| 552 | fi |
| 553 | ac_config_guess=$ac_aux_dir/config.guess |
| 554 | ac_config_sub=$ac_aux_dir/config.sub |
| 555 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 556 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 557 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 558 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 559 | LIBEXT=so # library type .so or .a |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 560 | TRACE_MSGS=yes # the TRACE() macro |
| 561 | DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros. |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 562 | CURSES=yes |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 563 | OPENGL=normal |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 564 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 565 | # Check whether --enable-debug or --disable-debug was given. |
| 566 | if test "${enable_debug+set}" = set; then |
| 567 | enableval="$enable_debug" |
| 568 | if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi |
| 569 | fi |
| 570 | |
| 571 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 572 | # Check whether --enable-opengl or --disable-opengl was given. |
| 573 | if test "${enable_opengl+set}" = set; then |
| 574 | enableval="$enable_opengl" |
| 575 | if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi |
| 576 | fi |
| 577 | |
| 578 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 579 | # Check whether --enable-trace or --disable-trace was given. |
| 580 | if test "${enable_trace+set}" = set; then |
| 581 | enableval="$enable_trace" |
| 582 | if test "$enableval" = "no"; then TRACE_MSGS="no"; fi |
| 583 | fi |
| 584 | |
| 585 | |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 586 | # Check whether --with-curses or --without-curses was given. |
| 587 | if test "${with_curses+set}" = set; then |
| 588 | withval="$with_curses" |
| 589 | if test "$withval" = "no"; then CURSES="no"; fi |
| 590 | fi |
| 591 | |
| 592 | |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 593 | # Check whether --with-reentrant-x or --without-reentrant-x was given. |
| 594 | if test "${with_reentrant_x+set}" = set; then |
| 595 | withval="$with_reentrant_x" |
| 596 | : |
| 597 | fi |
| 598 | |
| 599 | |
Alexandre Julliard | b7258be | 1995-09-01 15:57:28 +0000 | [diff] [blame] | 600 | |
Alexandre Julliard | b7258be | 1995-09-01 15:57:28 +0000 | [diff] [blame] | 601 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 602 | if test "$DEBUG_MSGS" = "no" |
| 603 | then |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 604 | OPTIONS="$OPTIONS -DNO_DEBUG_MSGS" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 605 | fi |
| 606 | |
| 607 | if test "$TRACE_MSGS" = "no" -o "$DEBUG_MSGS" = "no" |
| 608 | then |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 609 | OPTIONS="$OPTIONS -DNO_TRACE_MSGS" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 610 | fi |
| 611 | |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 612 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 613 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 614 | echo "configure:615: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 615 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 616 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 617 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 618 | else |
| 619 | cat > conftestmake <<\EOF |
| 620 | all: |
| 621 | @echo 'ac_maketemp="${MAKE}"' |
| 622 | EOF |
| 623 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 624 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 625 | if test -n "$ac_maketemp"; then |
| 626 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 627 | else |
| 628 | eval ac_cv_prog_make_${ac_make}_set=no |
| 629 | fi |
| 630 | rm -f conftestmake |
| 631 | fi |
| 632 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 633 | echo "$ac_t""yes" 1>&6 |
| 634 | SET_MAKE= |
| 635 | else |
| 636 | echo "$ac_t""no" 1>&6 |
| 637 | SET_MAKE="MAKE=${MAKE-make}" |
| 638 | fi |
| 639 | |
| 640 | # Extract the first word of "gcc", so it can be a program name with args. |
| 641 | set dummy gcc; ac_word=$2 |
| 642 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 643 | echo "configure:644: checking for $ac_word" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 644 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 645 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 646 | else |
| 647 | if test -n "$CC"; then |
| 648 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 649 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 650 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 651 | ac_dummy="$PATH" |
| 652 | for ac_dir in $ac_dummy; do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 653 | test -z "$ac_dir" && ac_dir=. |
| 654 | if test -f $ac_dir/$ac_word; then |
| 655 | ac_cv_prog_CC="gcc" |
| 656 | break |
| 657 | fi |
| 658 | done |
| 659 | IFS="$ac_save_ifs" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 660 | fi |
| 661 | fi |
| 662 | CC="$ac_cv_prog_CC" |
| 663 | if test -n "$CC"; then |
| 664 | echo "$ac_t""$CC" 1>&6 |
| 665 | else |
| 666 | echo "$ac_t""no" 1>&6 |
| 667 | fi |
| 668 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 669 | if test -z "$CC"; then |
| 670 | # Extract the first word of "cc", so it can be a program name with args. |
| 671 | set dummy cc; ac_word=$2 |
| 672 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 673 | echo "configure:674: checking for $ac_word" >&5 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 674 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 675 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 676 | else |
| 677 | if test -n "$CC"; then |
| 678 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 679 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 680 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 681 | ac_prog_rejected=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 682 | ac_dummy="$PATH" |
| 683 | for ac_dir in $ac_dummy; do |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 684 | test -z "$ac_dir" && ac_dir=. |
| 685 | if test -f $ac_dir/$ac_word; then |
| 686 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 687 | ac_prog_rejected=yes |
| 688 | continue |
| 689 | fi |
| 690 | ac_cv_prog_CC="cc" |
| 691 | break |
| 692 | fi |
| 693 | done |
| 694 | IFS="$ac_save_ifs" |
| 695 | if test $ac_prog_rejected = yes; then |
| 696 | # We found a bogon in the path, so make sure we never use it. |
| 697 | set dummy $ac_cv_prog_CC |
| 698 | shift |
| 699 | if test $# -gt 0; then |
| 700 | # We chose a different compiler from the bogus one. |
| 701 | # However, it has the same basename, so the bogon will be chosen |
| 702 | # first if we set CC to just the basename; use the full file name. |
| 703 | shift |
| 704 | set dummy "$ac_dir/$ac_word" "$@" |
| 705 | shift |
| 706 | ac_cv_prog_CC="$@" |
| 707 | fi |
| 708 | fi |
| 709 | fi |
| 710 | fi |
| 711 | CC="$ac_cv_prog_CC" |
| 712 | if test -n "$CC"; then |
| 713 | echo "$ac_t""$CC" 1>&6 |
| 714 | else |
| 715 | echo "$ac_t""no" 1>&6 |
| 716 | fi |
| 717 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 718 | if test -z "$CC"; then |
| 719 | case "`uname -s`" in |
| 720 | *win32* | *WIN32*) |
| 721 | # Extract the first word of "cl", so it can be a program name with args. |
| 722 | set dummy cl; ac_word=$2 |
| 723 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 724 | echo "configure:725: checking for $ac_word" >&5 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 725 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 726 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 727 | else |
| 728 | if test -n "$CC"; then |
| 729 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 730 | else |
| 731 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 732 | ac_dummy="$PATH" |
| 733 | for ac_dir in $ac_dummy; do |
| 734 | test -z "$ac_dir" && ac_dir=. |
| 735 | if test -f $ac_dir/$ac_word; then |
| 736 | ac_cv_prog_CC="cl" |
| 737 | break |
| 738 | fi |
| 739 | done |
| 740 | IFS="$ac_save_ifs" |
| 741 | fi |
| 742 | fi |
| 743 | CC="$ac_cv_prog_CC" |
| 744 | if test -n "$CC"; then |
| 745 | echo "$ac_t""$CC" 1>&6 |
| 746 | else |
| 747 | echo "$ac_t""no" 1>&6 |
| 748 | fi |
| 749 | ;; |
| 750 | esac |
| 751 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 752 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 753 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 754 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 755 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 756 | echo "configure:757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 757 | |
| 758 | ac_ext=c |
| 759 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 760 | ac_cpp='$CPP $CPPFLAGS' |
| 761 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 762 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 763 | cross_compiling=$ac_cv_prog_cc_cross |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 764 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 765 | cat > conftest.$ac_ext << EOF |
| 766 | |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 767 | #line 768 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 768 | #include "confdefs.h" |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 769 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 770 | main(){return(0);} |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 771 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 772 | if { (eval echo configure:773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 773 | ac_cv_prog_cc_works=yes |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 774 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 775 | if (./conftest; exit) 2>/dev/null; then |
| 776 | ac_cv_prog_cc_cross=no |
| 777 | else |
| 778 | ac_cv_prog_cc_cross=yes |
| 779 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 780 | else |
| 781 | echo "configure: failed program was:" >&5 |
| 782 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 783 | ac_cv_prog_cc_works=no |
| 784 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 785 | rm -fr conftest* |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 786 | ac_ext=c |
| 787 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 788 | ac_cpp='$CPP $CPPFLAGS' |
| 789 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 790 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 791 | cross_compiling=$ac_cv_prog_cc_cross |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 792 | |
| 793 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 794 | if test $ac_cv_prog_cc_works = no; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 795 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 796 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 797 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 798 | echo "configure:799: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 799 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 800 | cross_compiling=$ac_cv_prog_cc_cross |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 801 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 802 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 803 | echo "configure:804: checking whether we are using GNU C" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 804 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 805 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 806 | else |
| 807 | cat > conftest.c <<EOF |
| 808 | #ifdef __GNUC__ |
| 809 | yes; |
| 810 | #endif |
| 811 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 812 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 813 | ac_cv_prog_gcc=yes |
| 814 | else |
| 815 | ac_cv_prog_gcc=no |
| 816 | fi |
| 817 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 818 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 819 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 820 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 821 | if test $ac_cv_prog_gcc = yes; then |
| 822 | GCC=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 823 | else |
| 824 | GCC= |
| 825 | fi |
| 826 | |
| 827 | ac_test_CFLAGS="${CFLAGS+set}" |
| 828 | ac_save_CFLAGS="$CFLAGS" |
| 829 | CFLAGS= |
| 830 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 831 | echo "configure:832: checking whether ${CC-cc} accepts -g" >&5 |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 832 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 833 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 834 | else |
| 835 | echo 'void f(){}' > conftest.c |
| 836 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 837 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 838 | else |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 839 | ac_cv_prog_cc_g=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 840 | fi |
| 841 | rm -f conftest* |
| 842 | |
| 843 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 844 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 845 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 846 | if test "$ac_test_CFLAGS" = set; then |
| 847 | CFLAGS="$ac_save_CFLAGS" |
| 848 | elif test $ac_cv_prog_cc_g = yes; then |
| 849 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 850 | CFLAGS="-g -O2" |
| 851 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 852 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 853 | fi |
| 854 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 855 | if test "$GCC" = yes; then |
| 856 | CFLAGS="-O2" |
| 857 | else |
| 858 | CFLAGS= |
| 859 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 860 | fi |
| 861 | |
| 862 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 863 | echo "configure:864: checking how to run the C preprocessor" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 864 | # On Suns, sometimes $CPP names a directory. |
| 865 | if test -n "$CPP" && test -d "$CPP"; then |
| 866 | CPP= |
| 867 | fi |
| 868 | if test -z "$CPP"; then |
| 869 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 870 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 871 | else |
| 872 | # This must be in double quotes, not single quotes, because CPP may get |
| 873 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 874 | CPP="${CC-cc} -E" |
| 875 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 876 | # not just through cpp. |
| 877 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 878 | #line 879 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 879 | #include "confdefs.h" |
| 880 | #include <assert.h> |
| 881 | Syntax Error |
| 882 | EOF |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 883 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 884 | { (eval echo configure:885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 885 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 886 | if test -z "$ac_err"; then |
| 887 | : |
| 888 | else |
| 889 | echo "$ac_err" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 890 | echo "configure: failed program was:" >&5 |
| 891 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 892 | rm -rf conftest* |
| 893 | CPP="${CC-cc} -E -traditional-cpp" |
| 894 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 895 | #line 896 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 896 | #include "confdefs.h" |
| 897 | #include <assert.h> |
| 898 | Syntax Error |
| 899 | EOF |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 900 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 901 | { (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 902 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 903 | if test -z "$ac_err"; then |
| 904 | : |
| 905 | else |
| 906 | echo "$ac_err" >&5 |
| 907 | echo "configure: failed program was:" >&5 |
| 908 | cat conftest.$ac_ext >&5 |
| 909 | rm -rf conftest* |
| 910 | CPP="${CC-cc} -nologo -E" |
| 911 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 912 | #line 913 "configure" |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 913 | #include "confdefs.h" |
| 914 | #include <assert.h> |
| 915 | Syntax Error |
| 916 | EOF |
| 917 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 918 | { (eval echo configure:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 919 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 920 | if test -z "$ac_err"; then |
| 921 | : |
| 922 | else |
| 923 | echo "$ac_err" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 924 | echo "configure: failed program was:" >&5 |
| 925 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 926 | rm -rf conftest* |
| 927 | CPP=/lib/cpp |
| 928 | fi |
| 929 | rm -f conftest* |
| 930 | fi |
| 931 | rm -f conftest* |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 932 | fi |
| 933 | rm -f conftest* |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 934 | ac_cv_prog_CPP="$CPP" |
| 935 | fi |
| 936 | CPP="$ac_cv_prog_CPP" |
| 937 | else |
| 938 | ac_cv_prog_CPP="$CPP" |
| 939 | fi |
| 940 | echo "$ac_t""$CPP" 1>&6 |
| 941 | |
| 942 | # If we find X, set shell vars x_includes and x_libraries to the |
| 943 | # paths, otherwise set no_x=yes. |
| 944 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
| 945 | # --without-x overrides everything else, but does not touch the cache. |
| 946 | echo $ac_n "checking for X""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 947 | echo "configure:948: checking for X" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 948 | |
| 949 | # Check whether --with-x or --without-x was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 950 | if test "${with_x+set}" = set; then |
| 951 | withval="$with_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 952 | : |
| 953 | fi |
| 954 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 955 | # $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] | 956 | if test "x$with_x" = xno; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 957 | # The user explicitly disabled X. |
| 958 | have_x=disabled |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 959 | else |
| 960 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 961 | # Both variables are already set. |
| 962 | have_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 963 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 964 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 965 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 966 | else |
| 967 | # One or both of the vars are not set, and there is no cached value. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 968 | ac_x_includes=NO ac_x_libraries=NO |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 969 | rm -fr conftestdir |
| 970 | if mkdir conftestdir; then |
| 971 | cd conftestdir |
| 972 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 973 | cat > Imakefile <<'EOF' |
| 974 | acfindx: |
| 975 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 976 | EOF |
| 977 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 978 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 979 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 980 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 981 | for ac_extension in a so sl; do |
| 982 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 983 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 984 | ac_im_usrlibdir=$ac_im_libdir; break |
| 985 | fi |
| 986 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 987 | # Screen out bogus values from the imake configuration. They are |
| 988 | # bogus both because they are the default anyway, and because |
| 989 | # using them would break gcc on systems where it needs fixed includes. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 990 | case "$ac_im_incroot" in |
| 991 | /usr/include) ;; |
| 992 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
| 993 | esac |
| 994 | case "$ac_im_usrlibdir" in |
| 995 | /usr/lib | /lib) ;; |
| 996 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
| 997 | esac |
| 998 | fi |
| 999 | cd .. |
| 1000 | rm -fr conftestdir |
| 1001 | fi |
| 1002 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1003 | if test "$ac_x_includes" = NO; then |
| 1004 | # Guess where to find include files, by looking for this one X11 .h file. |
| 1005 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
| 1006 | |
| 1007 | # First, try using that file with no special directory specified. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1008 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1009 | #line 1010 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1010 | #include "confdefs.h" |
| 1011 | #include <$x_direct_test_include> |
| 1012 | EOF |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1013 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1014 | { (eval echo configure:1015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1015 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1016 | if test -z "$ac_err"; then |
| 1017 | rm -rf conftest* |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1018 | # We can compile using X headers with no special include directory. |
| 1019 | ac_x_includes= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1020 | else |
| 1021 | echo "$ac_err" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1022 | echo "configure: failed program was:" >&5 |
| 1023 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1024 | rm -rf conftest* |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1025 | # Look for the header file in a standard set of common directories. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1026 | # Check X11 before X11Rn because it is often a symlink to the current release. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1027 | for ac_dir in \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1028 | /usr/X11/include \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1029 | /usr/X11R6/include \ |
| 1030 | /usr/X11R5/include \ |
| 1031 | /usr/X11R4/include \ |
| 1032 | \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1033 | /usr/include/X11 \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1034 | /usr/include/X11R6 \ |
| 1035 | /usr/include/X11R5 \ |
| 1036 | /usr/include/X11R4 \ |
| 1037 | \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1038 | /usr/local/X11/include \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1039 | /usr/local/X11R6/include \ |
| 1040 | /usr/local/X11R5/include \ |
| 1041 | /usr/local/X11R4/include \ |
| 1042 | \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1043 | /usr/local/include/X11 \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1044 | /usr/local/include/X11R6 \ |
| 1045 | /usr/local/include/X11R5 \ |
| 1046 | /usr/local/include/X11R4 \ |
| 1047 | \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1048 | /usr/X386/include \ |
| 1049 | /usr/x386/include \ |
| 1050 | /usr/XFree86/include/X11 \ |
| 1051 | \ |
| 1052 | /usr/include \ |
| 1053 | /usr/local/include \ |
| 1054 | /usr/unsupported/include \ |
| 1055 | /usr/athena/include \ |
| 1056 | /usr/local/x11r5/include \ |
| 1057 | /usr/lpp/Xamples/include \ |
| 1058 | \ |
| 1059 | /usr/openwin/include \ |
| 1060 | /usr/openwin/share/include \ |
| 1061 | ; \ |
| 1062 | do |
| 1063 | if test -r "$ac_dir/$x_direct_test_include"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1064 | ac_x_includes=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1065 | break |
| 1066 | fi |
| 1067 | done |
| 1068 | fi |
| 1069 | rm -f conftest* |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1070 | fi # $ac_x_includes = NO |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1071 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1072 | if test "$ac_x_libraries" = NO; then |
| 1073 | # Check for the libraries. |
| 1074 | |
| 1075 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
| 1076 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
| 1077 | |
| 1078 | # See if we find them without any special options. |
| 1079 | # Don't add to $LIBS permanently. |
| 1080 | ac_save_LIBS="$LIBS" |
| 1081 | LIBS="-l$x_direct_test_library $LIBS" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1082 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1083 | #line 1084 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1084 | #include "confdefs.h" |
| 1085 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1086 | int main() { |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1087 | ${x_direct_test_function}() |
| 1088 | ; return 0; } |
| 1089 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1090 | if { (eval echo configure:1091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1091 | rm -rf conftest* |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1092 | LIBS="$ac_save_LIBS" |
| 1093 | # We can link X programs with no special library path. |
| 1094 | ac_x_libraries= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1095 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1096 | echo "configure: failed program was:" >&5 |
| 1097 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1098 | rm -rf conftest* |
| 1099 | LIBS="$ac_save_LIBS" |
| 1100 | # First see if replacing the include by lib works. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1101 | # Check X11 before X11Rn because it is often a symlink to the current release. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1102 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1103 | /usr/X11/lib \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1104 | /usr/X11R6/lib \ |
| 1105 | /usr/X11R5/lib \ |
| 1106 | /usr/X11R4/lib \ |
| 1107 | \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1108 | /usr/lib/X11 \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1109 | /usr/lib/X11R6 \ |
| 1110 | /usr/lib/X11R5 \ |
| 1111 | /usr/lib/X11R4 \ |
| 1112 | \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1113 | /usr/local/X11/lib \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1114 | /usr/local/X11R6/lib \ |
| 1115 | /usr/local/X11R5/lib \ |
| 1116 | /usr/local/X11R4/lib \ |
| 1117 | \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1118 | /usr/local/lib/X11 \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1119 | /usr/local/lib/X11R6 \ |
| 1120 | /usr/local/lib/X11R5 \ |
| 1121 | /usr/local/lib/X11R4 \ |
| 1122 | \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1123 | /usr/X386/lib \ |
| 1124 | /usr/x386/lib \ |
| 1125 | /usr/XFree86/lib/X11 \ |
| 1126 | \ |
| 1127 | /usr/lib \ |
| 1128 | /usr/local/lib \ |
| 1129 | /usr/unsupported/lib \ |
| 1130 | /usr/athena/lib \ |
| 1131 | /usr/local/x11r5/lib \ |
| 1132 | /usr/lpp/Xamples/lib \ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1133 | /lib/usr/lib/X11 \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1134 | \ |
| 1135 | /usr/openwin/lib \ |
| 1136 | /usr/openwin/share/lib \ |
| 1137 | ; \ |
| 1138 | do |
| 1139 | for ac_extension in a so sl; do |
| 1140 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1141 | ac_x_libraries=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1142 | break 2 |
| 1143 | fi |
| 1144 | done |
| 1145 | done |
| 1146 | fi |
| 1147 | rm -f conftest* |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1148 | fi # $ac_x_libraries = NO |
| 1149 | |
| 1150 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
| 1151 | # Didn't find X anywhere. Cache the known absence of X. |
| 1152 | ac_cv_have_x="have_x=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1153 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1154 | # Record where we found X for the cache. |
| 1155 | ac_cv_have_x="have_x=yes \ |
| 1156 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1157 | fi |
| 1158 | fi |
| 1159 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1160 | eval "$ac_cv_have_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1161 | fi # $with_x != no |
| 1162 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1163 | if test "$have_x" != yes; then |
| 1164 | echo "$ac_t""$have_x" 1>&6 |
| 1165 | no_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1166 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1167 | # 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] | 1168 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 1169 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1170 | # Update the cache value to reflect the command line values. |
| 1171 | ac_cv_have_x="have_x=yes \ |
| 1172 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1173 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
| 1174 | fi |
| 1175 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1176 | if test "$no_x" = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1177 | # Not all programs may use this symbol, but it does not hurt to define it. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1178 | cat >> confdefs.h <<\EOF |
| 1179 | #define X_DISPLAY_MISSING 1 |
| 1180 | EOF |
| 1181 | |
| 1182 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1183 | else |
| 1184 | if test -n "$x_includes"; then |
| 1185 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 1186 | fi |
| 1187 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1188 | # It would also be nice to do this for all -L options, not just this one. |
| 1189 | if test -n "$x_libraries"; then |
| 1190 | X_LIBS="$X_LIBS -L$x_libraries" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1191 | # For Solaris; some versions of Sun CC require a space after -R and |
| 1192 | # others require no space. Words are not sufficient . . . . |
| 1193 | case "`(uname -sr) 2>/dev/null`" in |
| 1194 | "SunOS 5"*) |
| 1195 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1196 | echo "configure:1197: checking whether -R must be followed by a space" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1197 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
| 1198 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1199 | #line 1200 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1200 | #include "confdefs.h" |
| 1201 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1202 | int main() { |
| 1203 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1204 | ; return 0; } |
| 1205 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1206 | if { (eval echo configure:1207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1207 | rm -rf conftest* |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1208 | ac_R_nospace=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1209 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1210 | echo "configure: failed program was:" >&5 |
| 1211 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1212 | rm -rf conftest* |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1213 | ac_R_nospace=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1214 | fi |
| 1215 | rm -f conftest* |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1216 | if test $ac_R_nospace = yes; then |
| 1217 | echo "$ac_t""no" 1>&6 |
| 1218 | X_LIBS="$X_LIBS -R$x_libraries" |
| 1219 | else |
| 1220 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 1221 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1222 | #line 1223 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1223 | #include "confdefs.h" |
| 1224 | |
| 1225 | int main() { |
| 1226 | |
| 1227 | ; return 0; } |
| 1228 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1229 | if { (eval echo configure:1230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1230 | rm -rf conftest* |
| 1231 | ac_R_space=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1232 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1233 | echo "configure: failed program was:" >&5 |
| 1234 | cat conftest.$ac_ext >&5 |
| 1235 | rm -rf conftest* |
| 1236 | ac_R_space=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1237 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1238 | rm -f conftest* |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1239 | if test $ac_R_space = yes; then |
| 1240 | echo "$ac_t""yes" 1>&6 |
| 1241 | X_LIBS="$X_LIBS -R $x_libraries" |
| 1242 | else |
| 1243 | echo "$ac_t""neither works" 1>&6 |
| 1244 | fi |
| 1245 | fi |
| 1246 | LIBS="$ac_xsave_LIBS" |
| 1247 | esac |
| 1248 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1249 | |
| 1250 | # Check for system-dependent libraries X programs must link with. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1251 | # Do this before checking for the system-independent R6 libraries |
| 1252 | # (-lICE), since we may need -lsocket or whatever for X linking. |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1253 | |
| 1254 | if test "$ISC" = yes; then |
| 1255 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 1256 | else |
| 1257 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
| 1258 | # libraries were built with DECnet support. And karl@cs.umb.edu says |
| 1259 | # the Alpha needs dnet_stub (dnet does not exist). |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1260 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1261 | echo "configure:1262: checking for dnet_ntoa in -ldnet" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1262 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1263 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1264 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1265 | else |
| 1266 | ac_save_LIBS="$LIBS" |
| 1267 | LIBS="-ldnet $LIBS" |
| 1268 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1269 | #line 1270 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1270 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1271 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1272 | /* We use char because int might match the return type of a gcc2 |
| 1273 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1274 | char dnet_ntoa(); |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1275 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1276 | int main() { |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1277 | dnet_ntoa() |
| 1278 | ; return 0; } |
| 1279 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1280 | if { (eval echo configure:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1281 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1282 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1283 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1284 | echo "configure: failed program was:" >&5 |
| 1285 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1286 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1287 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1288 | fi |
| 1289 | rm -f conftest* |
| 1290 | LIBS="$ac_save_LIBS" |
| 1291 | |
| 1292 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1293 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1294 | echo "$ac_t""yes" 1>&6 |
| 1295 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 1296 | else |
| 1297 | echo "$ac_t""no" 1>&6 |
| 1298 | fi |
| 1299 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1300 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1301 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1302 | echo "configure:1303: checking for dnet_ntoa in -ldnet_stub" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1303 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1304 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1305 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1306 | else |
| 1307 | ac_save_LIBS="$LIBS" |
| 1308 | LIBS="-ldnet_stub $LIBS" |
| 1309 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1310 | #line 1311 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1311 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1312 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1313 | /* We use char because int might match the return type of a gcc2 |
| 1314 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1315 | char dnet_ntoa(); |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1316 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1317 | int main() { |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1318 | dnet_ntoa() |
| 1319 | ; return 0; } |
| 1320 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1321 | if { (eval echo configure:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1322 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1323 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1324 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1325 | echo "configure: failed program was:" >&5 |
| 1326 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1327 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1328 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1329 | fi |
| 1330 | rm -f conftest* |
| 1331 | LIBS="$ac_save_LIBS" |
| 1332 | |
| 1333 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1334 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1335 | echo "$ac_t""yes" 1>&6 |
| 1336 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 1337 | else |
| 1338 | echo "$ac_t""no" 1>&6 |
| 1339 | fi |
| 1340 | |
| 1341 | fi |
| 1342 | |
| 1343 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 1344 | # to get the SysV transport functions. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1345 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 1346 | # needs -lnsl. |
| 1347 | # The nsl library prevents programs from opening the X display |
| 1348 | # on Irix 5.2, according to dickey@clark.net. |
| 1349 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1350 | echo "configure:1351: checking for gethostbyname" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1351 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
| 1352 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1353 | else |
| 1354 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1355 | #line 1356 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1356 | #include "confdefs.h" |
| 1357 | /* System header to define __stub macros and hopefully few prototypes, |
| 1358 | which can conflict with char gethostbyname(); below. */ |
| 1359 | #include <assert.h> |
| 1360 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1361 | /* We use char because int might match the return type of a gcc2 |
| 1362 | builtin and then its argument prototype would still apply. */ |
| 1363 | char gethostbyname(); |
| 1364 | |
| 1365 | int main() { |
| 1366 | |
| 1367 | /* The GNU C library defines this for functions which it implements |
| 1368 | to always fail with ENOSYS. Some functions are actually named |
| 1369 | something starting with __ and the normal name is an alias. */ |
| 1370 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 1371 | choke me |
| 1372 | #else |
| 1373 | gethostbyname(); |
| 1374 | #endif |
| 1375 | |
| 1376 | ; return 0; } |
| 1377 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1378 | if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1379 | rm -rf conftest* |
| 1380 | eval "ac_cv_func_gethostbyname=yes" |
| 1381 | else |
| 1382 | echo "configure: failed program was:" >&5 |
| 1383 | cat conftest.$ac_ext >&5 |
| 1384 | rm -rf conftest* |
| 1385 | eval "ac_cv_func_gethostbyname=no" |
| 1386 | fi |
| 1387 | rm -f conftest* |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1388 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1389 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1390 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
| 1391 | echo "$ac_t""yes" 1>&6 |
| 1392 | : |
| 1393 | else |
| 1394 | echo "$ac_t""no" 1>&6 |
| 1395 | fi |
| 1396 | |
| 1397 | if test $ac_cv_func_gethostbyname = no; then |
| 1398 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1399 | echo "configure:1400: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1400 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1401 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1402 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1403 | else |
| 1404 | ac_save_LIBS="$LIBS" |
| 1405 | LIBS="-lnsl $LIBS" |
| 1406 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1407 | #line 1408 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1408 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1409 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1410 | /* We use char because int might match the return type of a gcc2 |
| 1411 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1412 | char gethostbyname(); |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1413 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1414 | int main() { |
| 1415 | gethostbyname() |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1416 | ; return 0; } |
| 1417 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1418 | if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1419 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1420 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1421 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1422 | echo "configure: failed program was:" >&5 |
| 1423 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1424 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1425 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1426 | fi |
| 1427 | rm -f conftest* |
| 1428 | LIBS="$ac_save_LIBS" |
| 1429 | |
| 1430 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1431 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1432 | echo "$ac_t""yes" 1>&6 |
| 1433 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 1434 | else |
| 1435 | echo "$ac_t""no" 1>&6 |
| 1436 | fi |
| 1437 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1438 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1439 | |
| 1440 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1441 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 1442 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 1443 | # on later versions), says simon@lia.di.epfl.ch: it contains |
| 1444 | # gethostby* variants that don't use the nameserver (or something). |
| 1445 | # -lsocket must be given before -lnsl if both are needed. |
| 1446 | # We assume that if connect needs -lnsl, so does gethostbyname. |
| 1447 | echo $ac_n "checking for connect""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1448 | echo "configure:1449: checking for connect" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1449 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
| 1450 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1451 | else |
| 1452 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1453 | #line 1454 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1454 | #include "confdefs.h" |
| 1455 | /* System header to define __stub macros and hopefully few prototypes, |
| 1456 | which can conflict with char connect(); below. */ |
| 1457 | #include <assert.h> |
| 1458 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1459 | /* We use char because int might match the return type of a gcc2 |
| 1460 | builtin and then its argument prototype would still apply. */ |
| 1461 | char connect(); |
| 1462 | |
| 1463 | int main() { |
| 1464 | |
| 1465 | /* The GNU C library defines this for functions which it implements |
| 1466 | to always fail with ENOSYS. Some functions are actually named |
| 1467 | something starting with __ and the normal name is an alias. */ |
| 1468 | #if defined (__stub_connect) || defined (__stub___connect) |
| 1469 | choke me |
| 1470 | #else |
| 1471 | connect(); |
| 1472 | #endif |
| 1473 | |
| 1474 | ; return 0; } |
| 1475 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1476 | if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1477 | rm -rf conftest* |
| 1478 | eval "ac_cv_func_connect=yes" |
| 1479 | else |
| 1480 | echo "configure: failed program was:" >&5 |
| 1481 | cat conftest.$ac_ext >&5 |
| 1482 | rm -rf conftest* |
| 1483 | eval "ac_cv_func_connect=no" |
| 1484 | fi |
| 1485 | rm -f conftest* |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1486 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1487 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1488 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
| 1489 | echo "$ac_t""yes" 1>&6 |
| 1490 | : |
| 1491 | else |
| 1492 | echo "$ac_t""no" 1>&6 |
| 1493 | fi |
| 1494 | |
| 1495 | if test $ac_cv_func_connect = no; then |
| 1496 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1497 | echo "configure:1498: checking for connect in -lsocket" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1498 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1499 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1500 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1501 | else |
| 1502 | ac_save_LIBS="$LIBS" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1503 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1504 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1505 | #line 1506 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1506 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1507 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1508 | /* We use char because int might match the return type of a gcc2 |
| 1509 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1510 | char connect(); |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1511 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1512 | int main() { |
| 1513 | connect() |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1514 | ; return 0; } |
| 1515 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1516 | if { (eval echo configure:1517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1517 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1518 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1519 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1520 | echo "configure: failed program was:" >&5 |
| 1521 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1522 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1523 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1524 | fi |
| 1525 | rm -f conftest* |
| 1526 | LIBS="$ac_save_LIBS" |
| 1527 | |
| 1528 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1529 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1530 | echo "$ac_t""yes" 1>&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1531 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1532 | else |
| 1533 | echo "$ac_t""no" 1>&6 |
| 1534 | fi |
| 1535 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1536 | fi |
| 1537 | |
| 1538 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
| 1539 | echo $ac_n "checking for remove""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1540 | echo "configure:1541: checking for remove" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1541 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
| 1542 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1543 | else |
| 1544 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1545 | #line 1546 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1546 | #include "confdefs.h" |
| 1547 | /* System header to define __stub macros and hopefully few prototypes, |
| 1548 | which can conflict with char remove(); below. */ |
| 1549 | #include <assert.h> |
| 1550 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1551 | /* We use char because int might match the return type of a gcc2 |
| 1552 | builtin and then its argument prototype would still apply. */ |
| 1553 | char remove(); |
| 1554 | |
| 1555 | int main() { |
| 1556 | |
| 1557 | /* The GNU C library defines this for functions which it implements |
| 1558 | to always fail with ENOSYS. Some functions are actually named |
| 1559 | something starting with __ and the normal name is an alias. */ |
| 1560 | #if defined (__stub_remove) || defined (__stub___remove) |
| 1561 | choke me |
| 1562 | #else |
| 1563 | remove(); |
| 1564 | #endif |
| 1565 | |
| 1566 | ; return 0; } |
| 1567 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1568 | if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1569 | rm -rf conftest* |
| 1570 | eval "ac_cv_func_remove=yes" |
| 1571 | else |
| 1572 | echo "configure: failed program was:" >&5 |
| 1573 | cat conftest.$ac_ext >&5 |
| 1574 | rm -rf conftest* |
| 1575 | eval "ac_cv_func_remove=no" |
| 1576 | fi |
| 1577 | rm -f conftest* |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1578 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1579 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1580 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
| 1581 | echo "$ac_t""yes" 1>&6 |
| 1582 | : |
| 1583 | else |
| 1584 | echo "$ac_t""no" 1>&6 |
| 1585 | fi |
| 1586 | |
| 1587 | if test $ac_cv_func_remove = no; then |
| 1588 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1589 | echo "configure:1590: checking for remove in -lposix" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1590 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1591 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1592 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1593 | else |
| 1594 | ac_save_LIBS="$LIBS" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1595 | LIBS="-lposix $LIBS" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1596 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1597 | #line 1598 "configure" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1598 | #include "confdefs.h" |
| 1599 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1600 | /* We use char because int might match the return type of a gcc2 |
| 1601 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1602 | char remove(); |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1603 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1604 | int main() { |
| 1605 | remove() |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1606 | ; return 0; } |
| 1607 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1608 | if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1609 | rm -rf conftest* |
| 1610 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1611 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1612 | echo "configure: failed program was:" >&5 |
| 1613 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1614 | rm -rf conftest* |
| 1615 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1616 | fi |
| 1617 | rm -f conftest* |
| 1618 | LIBS="$ac_save_LIBS" |
| 1619 | |
| 1620 | fi |
| 1621 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1622 | echo "$ac_t""yes" 1>&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1623 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1624 | else |
| 1625 | echo "$ac_t""no" 1>&6 |
| 1626 | fi |
| 1627 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1628 | fi |
| 1629 | |
| 1630 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| 1631 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1632 | echo "configure:1633: checking for shmat" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1633 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
| 1634 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1635 | else |
| 1636 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1637 | #line 1638 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1638 | #include "confdefs.h" |
| 1639 | /* System header to define __stub macros and hopefully few prototypes, |
| 1640 | which can conflict with char shmat(); below. */ |
| 1641 | #include <assert.h> |
| 1642 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1643 | /* We use char because int might match the return type of a gcc2 |
| 1644 | builtin and then its argument prototype would still apply. */ |
| 1645 | char shmat(); |
| 1646 | |
| 1647 | int main() { |
| 1648 | |
| 1649 | /* The GNU C library defines this for functions which it implements |
| 1650 | to always fail with ENOSYS. Some functions are actually named |
| 1651 | something starting with __ and the normal name is an alias. */ |
| 1652 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 1653 | choke me |
| 1654 | #else |
| 1655 | shmat(); |
| 1656 | #endif |
| 1657 | |
| 1658 | ; return 0; } |
| 1659 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1660 | if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1661 | rm -rf conftest* |
| 1662 | eval "ac_cv_func_shmat=yes" |
| 1663 | else |
| 1664 | echo "configure: failed program was:" >&5 |
| 1665 | cat conftest.$ac_ext >&5 |
| 1666 | rm -rf conftest* |
| 1667 | eval "ac_cv_func_shmat=no" |
| 1668 | fi |
| 1669 | rm -f conftest* |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1670 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1671 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1672 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then |
| 1673 | echo "$ac_t""yes" 1>&6 |
| 1674 | : |
| 1675 | else |
| 1676 | echo "$ac_t""no" 1>&6 |
| 1677 | fi |
| 1678 | |
| 1679 | if test $ac_cv_func_shmat = no; then |
| 1680 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1681 | echo "configure:1682: checking for shmat in -lipc" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1682 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
| 1683 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1684 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1685 | else |
| 1686 | ac_save_LIBS="$LIBS" |
| 1687 | LIBS="-lipc $LIBS" |
| 1688 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1689 | #line 1690 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1690 | #include "confdefs.h" |
| 1691 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1692 | /* We use char because int might match the return type of a gcc2 |
| 1693 | builtin and then its argument prototype would still apply. */ |
| 1694 | char shmat(); |
| 1695 | |
| 1696 | int main() { |
| 1697 | shmat() |
| 1698 | ; return 0; } |
| 1699 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1700 | if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1701 | rm -rf conftest* |
| 1702 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1703 | else |
| 1704 | echo "configure: failed program was:" >&5 |
| 1705 | cat conftest.$ac_ext >&5 |
| 1706 | rm -rf conftest* |
| 1707 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1708 | fi |
| 1709 | rm -f conftest* |
| 1710 | LIBS="$ac_save_LIBS" |
| 1711 | |
| 1712 | fi |
| 1713 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1714 | echo "$ac_t""yes" 1>&6 |
| 1715 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 1716 | else |
| 1717 | echo "$ac_t""no" 1>&6 |
| 1718 | fi |
| 1719 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1720 | fi |
| 1721 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1722 | |
| 1723 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 1724 | ac_save_LDFLAGS="$LDFLAGS" |
| 1725 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 1726 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 1727 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 1728 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 1729 | # These have to be linked with before -lX11, unlike the other |
| 1730 | # libraries we check for below, so use a different variable. |
| 1731 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
| 1732 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1733 | echo "configure:1734: checking for IceConnectionNumber in -lICE" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1734 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
| 1735 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1736 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1737 | else |
| 1738 | ac_save_LIBS="$LIBS" |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1739 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1740 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1741 | #line 1742 "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1742 | #include "confdefs.h" |
| 1743 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1744 | /* We use char because int might match the return type of a gcc2 |
| 1745 | builtin and then its argument prototype would still apply. */ |
| 1746 | char IceConnectionNumber(); |
| 1747 | |
| 1748 | int main() { |
| 1749 | IceConnectionNumber() |
| 1750 | ; return 0; } |
| 1751 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1752 | if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1753 | rm -rf conftest* |
| 1754 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1755 | else |
| 1756 | echo "configure: failed program was:" >&5 |
| 1757 | cat conftest.$ac_ext >&5 |
| 1758 | rm -rf conftest* |
| 1759 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1760 | fi |
| 1761 | rm -f conftest* |
| 1762 | LIBS="$ac_save_LIBS" |
| 1763 | |
| 1764 | fi |
| 1765 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1766 | echo "$ac_t""yes" 1>&6 |
| 1767 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 1768 | else |
| 1769 | echo "$ac_t""no" 1>&6 |
| 1770 | fi |
| 1771 | |
| 1772 | LDFLAGS="$ac_save_LDFLAGS" |
| 1773 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1774 | fi |
| 1775 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1776 | for ac_prog in 'bison -y' byacc |
| 1777 | do |
| 1778 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1779 | set dummy $ac_prog; ac_word=$2 |
| 1780 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1781 | echo "configure:1782: checking for $ac_word" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1782 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
| 1783 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1784 | else |
| 1785 | if test -n "$YACC"; then |
| 1786 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 1787 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1788 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1789 | ac_dummy="$PATH" |
| 1790 | for ac_dir in $ac_dummy; do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1791 | test -z "$ac_dir" && ac_dir=. |
| 1792 | if test -f $ac_dir/$ac_word; then |
| 1793 | ac_cv_prog_YACC="$ac_prog" |
| 1794 | break |
| 1795 | fi |
| 1796 | done |
| 1797 | IFS="$ac_save_ifs" |
| 1798 | fi |
| 1799 | fi |
| 1800 | YACC="$ac_cv_prog_YACC" |
| 1801 | if test -n "$YACC"; then |
| 1802 | echo "$ac_t""$YACC" 1>&6 |
| 1803 | else |
| 1804 | echo "$ac_t""no" 1>&6 |
| 1805 | fi |
| 1806 | |
| 1807 | test -n "$YACC" && break |
| 1808 | done |
| 1809 | test -n "$YACC" || YACC="yacc" |
| 1810 | |
| 1811 | # Extract the first word of "flex", so it can be a program name with args. |
| 1812 | set dummy flex; ac_word=$2 |
| 1813 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1814 | echo "configure:1815: checking for $ac_word" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1815 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
| 1816 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1817 | else |
| 1818 | if test -n "$LEX"; then |
| 1819 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 1820 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1821 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1822 | ac_dummy="$PATH" |
| 1823 | for ac_dir in $ac_dummy; do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1824 | test -z "$ac_dir" && ac_dir=. |
| 1825 | if test -f $ac_dir/$ac_word; then |
| 1826 | ac_cv_prog_LEX="flex" |
| 1827 | break |
| 1828 | fi |
| 1829 | done |
| 1830 | IFS="$ac_save_ifs" |
| 1831 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" |
| 1832 | fi |
| 1833 | fi |
| 1834 | LEX="$ac_cv_prog_LEX" |
| 1835 | if test -n "$LEX"; then |
| 1836 | echo "$ac_t""$LEX" 1>&6 |
| 1837 | else |
| 1838 | echo "$ac_t""no" 1>&6 |
| 1839 | fi |
| 1840 | |
| 1841 | if test -z "$LEXLIB" |
| 1842 | then |
| 1843 | case "$LEX" in |
| 1844 | flex*) ac_lib=fl ;; |
| 1845 | *) ac_lib=l ;; |
| 1846 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1847 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1848 | echo "configure:1849: checking for yywrap in -l$ac_lib" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1849 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1850 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1851 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1852 | else |
| 1853 | ac_save_LIBS="$LIBS" |
| 1854 | LIBS="-l$ac_lib $LIBS" |
| 1855 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1856 | #line 1857 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1857 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1858 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1859 | /* We use char because int might match the return type of a gcc2 |
| 1860 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1861 | char yywrap(); |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1862 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1863 | int main() { |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1864 | yywrap() |
| 1865 | ; return 0; } |
| 1866 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1867 | if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1868 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1869 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1870 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1871 | echo "configure: failed program was:" >&5 |
| 1872 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1873 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1874 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1875 | fi |
| 1876 | rm -f conftest* |
| 1877 | LIBS="$ac_save_LIBS" |
| 1878 | |
| 1879 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1880 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1881 | echo "$ac_t""yes" 1>&6 |
| 1882 | LEXLIB="-l$ac_lib" |
| 1883 | else |
| 1884 | echo "$ac_t""no" 1>&6 |
| 1885 | fi |
| 1886 | |
| 1887 | fi |
| 1888 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 1889 | for ac_prog in $LEX flex lex |
| 1890 | do |
| 1891 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1892 | set dummy $ac_prog; ac_word=$2 |
| 1893 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1894 | echo "configure:1895: checking for $ac_word" >&5 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 1895 | if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then |
| 1896 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1897 | else |
| 1898 | if test -n "$XLEX"; then |
| 1899 | ac_cv_prog_XLEX="$XLEX" # Let the user override the test. |
| 1900 | else |
| 1901 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1902 | ac_dummy="$PATH" |
| 1903 | for ac_dir in $ac_dummy; do |
| 1904 | test -z "$ac_dir" && ac_dir=. |
| 1905 | if test -f $ac_dir/$ac_word; then |
| 1906 | ac_cv_prog_XLEX="$ac_prog" |
| 1907 | break |
| 1908 | fi |
| 1909 | done |
| 1910 | IFS="$ac_save_ifs" |
| 1911 | fi |
| 1912 | fi |
| 1913 | XLEX="$ac_cv_prog_XLEX" |
| 1914 | if test -n "$XLEX"; then |
| 1915 | echo "$ac_t""$XLEX" 1>&6 |
| 1916 | else |
| 1917 | echo "$ac_t""no" 1>&6 |
| 1918 | fi |
| 1919 | |
| 1920 | test -n "$XLEX" && break |
| 1921 | done |
| 1922 | test -n "$XLEX" || XLEX="none" |
| 1923 | |
| 1924 | if test "$XLEX" = "none" |
| 1925 | then |
| 1926 | echo "*** Error: No suitable lex found. ***" |
| 1927 | echo " Please install the 'flex' package." |
| 1928 | exit 1 |
| 1929 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1930 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1931 | set dummy ranlib; ac_word=$2 |
| 1932 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1933 | echo "configure:1934: checking for $ac_word" >&5 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1934 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1935 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1936 | else |
| 1937 | if test -n "$RANLIB"; then |
| 1938 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1939 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1940 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1941 | ac_dummy="$PATH" |
| 1942 | for ac_dir in $ac_dummy; do |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1943 | test -z "$ac_dir" && ac_dir=. |
| 1944 | if test -f $ac_dir/$ac_word; then |
| 1945 | ac_cv_prog_RANLIB="ranlib" |
| 1946 | break |
| 1947 | fi |
| 1948 | done |
| 1949 | IFS="$ac_save_ifs" |
| 1950 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1951 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1952 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1953 | RANLIB="$ac_cv_prog_RANLIB" |
| 1954 | if test -n "$RANLIB"; then |
| 1955 | echo "$ac_t""$RANLIB" 1>&6 |
| 1956 | else |
| 1957 | echo "$ac_t""no" 1>&6 |
| 1958 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1959 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1960 | # Find a good install program. We prefer a C program (faster), |
| 1961 | # so one script is as good as another. But avoid the broken or |
| 1962 | # incompatible versions: |
| 1963 | # SysV /etc/install, /usr/sbin/install |
| 1964 | # SunOS /usr/etc/install |
| 1965 | # IRIX /sbin/install |
| 1966 | # AIX /bin/install |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1967 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1968 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1969 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1970 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1971 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 1972 | echo "configure:1973: checking for a BSD compatible install" >&5 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1973 | if test -z "$INSTALL"; then |
| 1974 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1975 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1976 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1977 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1978 | for ac_dir in $PATH; do |
| 1979 | # Account for people who put trailing slashes in PATH elements. |
| 1980 | case "$ac_dir/" in |
| 1981 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1982 | *) |
| 1983 | # OSF1 and SCO ODT 3.0 have their own names for install. |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1984 | # Don't use installbsd from OSF since it installs stuff as root |
| 1985 | # by default. |
| 1986 | for ac_prog in ginstall scoinst install; do |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1987 | if test -f $ac_dir/$ac_prog; then |
| 1988 | if test $ac_prog = install && |
| 1989 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1990 | # AIX install. It has an incompatible calling convention. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1991 | : |
| 1992 | else |
| 1993 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1994 | break 2 |
| 1995 | fi |
| 1996 | fi |
| 1997 | done |
| 1998 | ;; |
| 1999 | esac |
| 2000 | done |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2001 | IFS="$ac_save_IFS" |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2002 | |
| 2003 | fi |
| 2004 | if test "${ac_cv_path_install+set}" = set; then |
| 2005 | INSTALL="$ac_cv_path_install" |
| 2006 | else |
| 2007 | # As a last resort, use the slow shell script. We don't cache a |
| 2008 | # path for INSTALL within a source directory, because that will |
| 2009 | # break other packages using the cache if that directory is |
| 2010 | # removed, or if the path is relative. |
| 2011 | INSTALL="$ac_install_sh" |
| 2012 | fi |
| 2013 | fi |
| 2014 | echo "$ac_t""$INSTALL" 1>&6 |
| 2015 | |
| 2016 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2017 | # It thinks the first close brace ends the variable substitution. |
| 2018 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2019 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2020 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 2021 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2022 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2023 | |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 2024 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2025 | echo "configure:2026: checking whether ln -s works" >&5 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 2026 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 2027 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2028 | else |
| 2029 | rm -f conftestdata |
| 2030 | if ln -s X conftestdata 2>/dev/null |
| 2031 | then |
| 2032 | rm -f conftestdata |
| 2033 | ac_cv_prog_LN_S="ln -s" |
| 2034 | else |
| 2035 | ac_cv_prog_LN_S=ln |
| 2036 | fi |
| 2037 | fi |
| 2038 | LN_S="$ac_cv_prog_LN_S" |
| 2039 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| 2040 | echo "$ac_t""yes" 1>&6 |
| 2041 | else |
| 2042 | echo "$ac_t""no" 1>&6 |
| 2043 | fi |
| 2044 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 2045 | # Extract the first word of "c2man", so it can be a program name with args. |
| 2046 | set dummy c2man; ac_word=$2 |
| 2047 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2048 | echo "configure:2049: checking for $ac_word" >&5 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 2049 | if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then |
| 2050 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2051 | else |
| 2052 | if test -n "$C2MAN"; then |
| 2053 | ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test. |
| 2054 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2055 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2056 | ac_dummy="$PATH" |
| 2057 | for ac_dir in $ac_dummy; do |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 2058 | test -z "$ac_dir" && ac_dir=. |
| 2059 | if test -f $ac_dir/$ac_word; then |
| 2060 | ac_cv_prog_C2MAN="c2man" |
| 2061 | break |
| 2062 | fi |
| 2063 | done |
| 2064 | IFS="$ac_save_ifs" |
Mike McCormack | e0df32f | 2000-08-11 21:15:21 +0000 | [diff] [blame] | 2065 | test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 2066 | fi |
| 2067 | fi |
| 2068 | C2MAN="$ac_cv_prog_C2MAN" |
| 2069 | if test -n "$C2MAN"; then |
| 2070 | echo "$ac_t""$C2MAN" 1>&6 |
| 2071 | else |
| 2072 | echo "$ac_t""no" 1>&6 |
| 2073 | fi |
| 2074 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 2075 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 2076 | set dummy ldconfig; ac_word=$2 |
| 2077 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2078 | echo "configure:2079: checking for $ac_word" >&5 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 2079 | if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then |
| 2080 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2081 | else |
| 2082 | case "$LDCONFIG" in |
| 2083 | /*) |
| 2084 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 2085 | ;; |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2086 | ?:/*) |
| 2087 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path. |
| 2088 | ;; |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 2089 | *) |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2090 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2091 | ac_dummy="/sbin:/usr/sbin:$PATH" |
| 2092 | for ac_dir in $ac_dummy; do |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 2093 | test -z "$ac_dir" && ac_dir=. |
| 2094 | if test -f $ac_dir/$ac_word; then |
| 2095 | ac_cv_path_LDCONFIG="$ac_dir/$ac_word" |
| 2096 | break |
| 2097 | fi |
| 2098 | done |
| 2099 | IFS="$ac_save_ifs" |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 2100 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 2101 | ;; |
| 2102 | esac |
| 2103 | fi |
| 2104 | LDCONFIG="$ac_cv_path_LDCONFIG" |
| 2105 | if test -n "$LDCONFIG"; then |
| 2106 | echo "$ac_t""$LDCONFIG" 1>&6 |
| 2107 | else |
| 2108 | echo "$ac_t""no" 1>&6 |
| 2109 | fi |
| 2110 | |
Dimitrie O. Paun | 79e44ab | 2000-12-05 04:13:36 +0000 | [diff] [blame] | 2111 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2112 | echo "configure:2113: checking for Cygwin environment" >&5 |
Dimitrie O. Paun | 79e44ab | 2000-12-05 04:13:36 +0000 | [diff] [blame] | 2113 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
| 2114 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2115 | else |
| 2116 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2117 | #line 2118 "configure" |
Dimitrie O. Paun | 79e44ab | 2000-12-05 04:13:36 +0000 | [diff] [blame] | 2118 | #include "confdefs.h" |
| 2119 | |
| 2120 | int main() { |
| 2121 | |
| 2122 | #ifndef __CYGWIN__ |
| 2123 | #define __CYGWIN__ __CYGWIN32__ |
| 2124 | #endif |
| 2125 | return __CYGWIN__; |
| 2126 | ; return 0; } |
| 2127 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2128 | if { (eval echo configure:2129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Dimitrie O. Paun | 79e44ab | 2000-12-05 04:13:36 +0000 | [diff] [blame] | 2129 | rm -rf conftest* |
| 2130 | ac_cv_cygwin=yes |
| 2131 | else |
| 2132 | echo "configure: failed program was:" >&5 |
| 2133 | cat conftest.$ac_ext >&5 |
| 2134 | rm -rf conftest* |
| 2135 | ac_cv_cygwin=no |
| 2136 | fi |
| 2137 | rm -f conftest* |
| 2138 | rm -f conftest* |
| 2139 | fi |
| 2140 | |
| 2141 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
| 2142 | CYGWIN= |
| 2143 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 2144 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 2145 | set dummy dllwrap; ac_word=$2 |
| 2146 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2147 | echo "configure:2148: checking for $ac_word" >&5 |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 2148 | if eval "test \"`echo '$''{'ac_cv_prog_DLLWRAP'+set}'`\" = set"; then |
| 2149 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2150 | else |
| 2151 | if test -n "$DLLWRAP"; then |
| 2152 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 2153 | else |
| 2154 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2155 | ac_dummy="$PATH" |
| 2156 | for ac_dir in $ac_dummy; do |
| 2157 | test -z "$ac_dir" && ac_dir=. |
| 2158 | if test -f $ac_dir/$ac_word; then |
| 2159 | ac_cv_prog_DLLWRAP="dllwrap" |
| 2160 | break |
| 2161 | fi |
| 2162 | done |
| 2163 | IFS="$ac_save_ifs" |
| 2164 | test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false" |
| 2165 | fi |
| 2166 | fi |
| 2167 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 2168 | if test -n "$DLLWRAP"; then |
| 2169 | echo "$ac_t""$DLLWRAP" 1>&6 |
| 2170 | else |
| 2171 | echo "$ac_t""no" 1>&6 |
| 2172 | fi |
| 2173 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 2174 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 2175 | for ac_prog in lclint lint |
| 2176 | do |
| 2177 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2178 | set dummy $ac_prog; ac_word=$2 |
| 2179 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2180 | echo "configure:2181: checking for $ac_word" >&5 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 2181 | if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then |
| 2182 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2183 | else |
| 2184 | if test -n "$LINT"; then |
| 2185 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 2186 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2187 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2188 | ac_dummy="$PATH" |
| 2189 | for ac_dir in $ac_dummy; do |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 2190 | test -z "$ac_dir" && ac_dir=. |
| 2191 | if test -f $ac_dir/$ac_word; then |
| 2192 | ac_cv_prog_LINT="$ac_prog" |
| 2193 | break |
| 2194 | fi |
| 2195 | done |
| 2196 | IFS="$ac_save_ifs" |
| 2197 | fi |
| 2198 | fi |
| 2199 | LINT="$ac_cv_prog_LINT" |
| 2200 | if test -n "$LINT"; then |
| 2201 | echo "$ac_t""$LINT" 1>&6 |
| 2202 | else |
| 2203 | echo "$ac_t""no" 1>&6 |
| 2204 | fi |
| 2205 | |
| 2206 | test -n "$LINT" && break |
| 2207 | done |
| 2208 | |
| 2209 | if test "$LINT" = "lint" |
| 2210 | then |
| 2211 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 2212 | fi |
| 2213 | |
| 2214 | |
| 2215 | |
Dimitrie O. Paun | 79e44ab | 2000-12-05 04:13:36 +0000 | [diff] [blame] | 2216 | if test "$CYGWIN" = "yes" |
| 2217 | then |
| 2218 | LDCOMBINE="ld -r --enable-stdcall-fixup" |
| 2219 | else |
| 2220 | LDCOMBINE="ld -r" |
| 2221 | fi |
| 2222 | |
| 2223 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 2224 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 2225 | echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2226 | echo "configure:2227: checking for sqrt in -lm" >&5 |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 2227 | ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
| 2228 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2229 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2230 | else |
| 2231 | ac_save_LIBS="$LIBS" |
| 2232 | LIBS="-lm $LIBS" |
| 2233 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2234 | #line 2235 "configure" |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 2235 | #include "confdefs.h" |
| 2236 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2237 | /* We use char because int might match the return type of a gcc2 |
| 2238 | builtin and then its argument prototype would still apply. */ |
| 2239 | char sqrt(); |
| 2240 | |
| 2241 | int main() { |
| 2242 | sqrt() |
| 2243 | ; return 0; } |
| 2244 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2245 | if { (eval echo configure:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 2246 | rm -rf conftest* |
| 2247 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2248 | else |
| 2249 | echo "configure: failed program was:" >&5 |
| 2250 | cat conftest.$ac_ext >&5 |
| 2251 | rm -rf conftest* |
| 2252 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2253 | fi |
| 2254 | rm -f conftest* |
| 2255 | LIBS="$ac_save_LIBS" |
| 2256 | |
| 2257 | fi |
| 2258 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2259 | echo "$ac_t""yes" 1>&6 |
| 2260 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2261 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2262 | cat >> confdefs.h <<EOF |
| 2263 | #define $ac_tr_lib 1 |
| 2264 | EOF |
| 2265 | |
| 2266 | LIBS="-lm $LIBS" |
| 2267 | |
| 2268 | else |
| 2269 | echo "$ac_t""no" 1>&6 |
| 2270 | fi |
| 2271 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2272 | echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2273 | echo "configure:2274: checking for i386_set_ldt in -li386" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2274 | ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2275 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 2276 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2277 | else |
| 2278 | ac_save_LIBS="$LIBS" |
| 2279 | LIBS="-li386 $LIBS" |
| 2280 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2281 | #line 2282 "configure" |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 2282 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 2283 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2284 | /* We use char because int might match the return type of a gcc2 |
| 2285 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 2286 | char i386_set_ldt(); |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 2287 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2288 | int main() { |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 2289 | i386_set_ldt() |
| 2290 | ; return 0; } |
| 2291 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2292 | if { (eval echo configure:2293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 2293 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2294 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 2295 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2296 | echo "configure: failed program was:" >&5 |
| 2297 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 2298 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2299 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 2300 | fi |
| 2301 | rm -f conftest* |
| 2302 | LIBS="$ac_save_LIBS" |
| 2303 | |
| 2304 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2305 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 2306 | echo "$ac_t""yes" 1>&6 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 2307 | ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2308 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2309 | cat >> confdefs.h <<EOF |
| 2310 | #define $ac_tr_lib 1 |
| 2311 | EOF |
| 2312 | |
| 2313 | LIBS="-li386 $LIBS" |
| 2314 | |
| 2315 | else |
| 2316 | echo "$ac_t""no" 1>&6 |
| 2317 | fi |
| 2318 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 2319 | echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2320 | echo "configure:2321: checking for _oss_ioctl in -lossaudio" >&5 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 2321 | ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'` |
| 2322 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2323 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2324 | else |
| 2325 | ac_save_LIBS="$LIBS" |
| 2326 | LIBS="-lossaudio $LIBS" |
| 2327 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2328 | #line 2329 "configure" |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 2329 | #include "confdefs.h" |
| 2330 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2331 | /* We use char because int might match the return type of a gcc2 |
| 2332 | builtin and then its argument prototype would still apply. */ |
| 2333 | char _oss_ioctl(); |
| 2334 | |
| 2335 | int main() { |
| 2336 | _oss_ioctl() |
| 2337 | ; return 0; } |
| 2338 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2339 | if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 2340 | rm -rf conftest* |
| 2341 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2342 | else |
| 2343 | echo "configure: failed program was:" >&5 |
| 2344 | cat conftest.$ac_ext >&5 |
| 2345 | rm -rf conftest* |
| 2346 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2347 | fi |
| 2348 | rm -f conftest* |
| 2349 | LIBS="$ac_save_LIBS" |
| 2350 | |
| 2351 | fi |
| 2352 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2353 | echo "$ac_t""yes" 1>&6 |
| 2354 | ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2355 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2356 | cat >> confdefs.h <<EOF |
| 2357 | #define $ac_tr_lib 1 |
| 2358 | EOF |
| 2359 | |
| 2360 | LIBS="-lossaudio $LIBS" |
| 2361 | |
| 2362 | else |
| 2363 | echo "$ac_t""no" 1>&6 |
| 2364 | fi |
| 2365 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 2366 | for ac_func in iswalnum |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2367 | do |
| 2368 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2369 | echo "configure:2370: checking for $ac_func" >&5 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2370 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2371 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2372 | else |
| 2373 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2374 | #line 2375 "configure" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2375 | #include "confdefs.h" |
| 2376 | /* System header to define __stub macros and hopefully few prototypes, |
| 2377 | which can conflict with char $ac_func(); below. */ |
| 2378 | #include <assert.h> |
| 2379 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2380 | /* We use char because int might match the return type of a gcc2 |
| 2381 | builtin and then its argument prototype would still apply. */ |
| 2382 | char $ac_func(); |
| 2383 | |
| 2384 | int main() { |
| 2385 | |
| 2386 | /* The GNU C library defines this for functions which it implements |
| 2387 | to always fail with ENOSYS. Some functions are actually named |
| 2388 | something starting with __ and the normal name is an alias. */ |
| 2389 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2390 | choke me |
| 2391 | #else |
| 2392 | $ac_func(); |
| 2393 | #endif |
| 2394 | |
| 2395 | ; return 0; } |
| 2396 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2397 | if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 2398 | rm -rf conftest* |
| 2399 | eval "ac_cv_func_$ac_func=yes" |
| 2400 | else |
| 2401 | echo "configure: failed program was:" >&5 |
| 2402 | cat conftest.$ac_ext >&5 |
| 2403 | rm -rf conftest* |
| 2404 | eval "ac_cv_func_$ac_func=no" |
| 2405 | fi |
| 2406 | rm -f conftest* |
| 2407 | fi |
| 2408 | |
| 2409 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2410 | echo "$ac_t""yes" 1>&6 |
| 2411 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2412 | cat >> confdefs.h <<EOF |
| 2413 | #define $ac_tr_func 1 |
| 2414 | EOF |
| 2415 | |
| 2416 | else |
| 2417 | echo "$ac_t""no" 1>&6 |
| 2418 | echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2419 | echo "configure:2420: checking for iswalnum in -lw" >&5 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 2420 | ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'` |
| 2421 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2422 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2423 | else |
| 2424 | ac_save_LIBS="$LIBS" |
| 2425 | LIBS="-lw $LIBS" |
| 2426 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2427 | #line 2428 "configure" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 2428 | #include "confdefs.h" |
| 2429 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2430 | /* We use char because int might match the return type of a gcc2 |
| 2431 | builtin and then its argument prototype would still apply. */ |
| 2432 | char iswalnum(); |
| 2433 | |
| 2434 | int main() { |
| 2435 | iswalnum() |
| 2436 | ; return 0; } |
| 2437 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2438 | if { (eval echo configure:2439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 2439 | rm -rf conftest* |
| 2440 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2441 | else |
| 2442 | echo "configure: failed program was:" >&5 |
| 2443 | cat conftest.$ac_ext >&5 |
| 2444 | rm -rf conftest* |
| 2445 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2446 | fi |
| 2447 | rm -f conftest* |
| 2448 | LIBS="$ac_save_LIBS" |
| 2449 | |
| 2450 | fi |
| 2451 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2452 | echo "$ac_t""yes" 1>&6 |
| 2453 | ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \ |
| 2454 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2455 | cat >> confdefs.h <<EOF |
| 2456 | #define $ac_tr_lib 1 |
| 2457 | EOF |
| 2458 | |
| 2459 | LIBS="-lw $LIBS" |
| 2460 | |
| 2461 | else |
| 2462 | echo "$ac_t""no" 1>&6 |
| 2463 | fi |
| 2464 | |
| 2465 | fi |
| 2466 | done |
| 2467 | |
| 2468 | for ac_func in gethostbyname |
| 2469 | do |
| 2470 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2471 | echo "configure:2472: checking for $ac_func" >&5 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 2472 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2473 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2474 | else |
| 2475 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2476 | #line 2477 "configure" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 2477 | #include "confdefs.h" |
| 2478 | /* System header to define __stub macros and hopefully few prototypes, |
| 2479 | which can conflict with char $ac_func(); below. */ |
| 2480 | #include <assert.h> |
| 2481 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2482 | /* We use char because int might match the return type of a gcc2 |
| 2483 | builtin and then its argument prototype would still apply. */ |
| 2484 | char $ac_func(); |
| 2485 | |
| 2486 | int main() { |
| 2487 | |
| 2488 | /* The GNU C library defines this for functions which it implements |
| 2489 | to always fail with ENOSYS. Some functions are actually named |
| 2490 | something starting with __ and the normal name is an alias. */ |
| 2491 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2492 | choke me |
| 2493 | #else |
| 2494 | $ac_func(); |
| 2495 | #endif |
| 2496 | |
| 2497 | ; return 0; } |
| 2498 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2499 | if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2500 | rm -rf conftest* |
| 2501 | eval "ac_cv_func_$ac_func=yes" |
| 2502 | else |
| 2503 | echo "configure: failed program was:" >&5 |
| 2504 | cat conftest.$ac_ext >&5 |
| 2505 | rm -rf conftest* |
| 2506 | eval "ac_cv_func_$ac_func=no" |
| 2507 | fi |
| 2508 | rm -f conftest* |
| 2509 | fi |
| 2510 | |
| 2511 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2512 | echo "$ac_t""yes" 1>&6 |
| 2513 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2514 | cat >> confdefs.h <<EOF |
| 2515 | #define $ac_tr_func 1 |
| 2516 | EOF |
| 2517 | |
| 2518 | else |
| 2519 | echo "$ac_t""no" 1>&6 |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 2520 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2521 | echo "configure:2522: checking for gethostbyname in -lnsl" >&5 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2522 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
| 2523 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2524 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2525 | else |
| 2526 | ac_save_LIBS="$LIBS" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 2527 | LIBS="-lnsl $LIBS" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2528 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2529 | #line 2530 "configure" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2530 | #include "confdefs.h" |
| 2531 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2532 | /* We use char because int might match the return type of a gcc2 |
| 2533 | builtin and then its argument prototype would still apply. */ |
| 2534 | char gethostbyname(); |
| 2535 | |
| 2536 | int main() { |
| 2537 | gethostbyname() |
| 2538 | ; return 0; } |
| 2539 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2540 | if { (eval echo configure:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2541 | rm -rf conftest* |
| 2542 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2543 | else |
| 2544 | echo "configure: failed program was:" >&5 |
| 2545 | cat conftest.$ac_ext >&5 |
| 2546 | rm -rf conftest* |
| 2547 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2548 | fi |
| 2549 | rm -f conftest* |
| 2550 | LIBS="$ac_save_LIBS" |
| 2551 | |
| 2552 | fi |
| 2553 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2554 | echo "$ac_t""yes" 1>&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 2555 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \ |
| 2556 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2557 | cat >> confdefs.h <<EOF |
| 2558 | #define $ac_tr_lib 1 |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 2559 | EOF |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 2560 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 2561 | LIBS="-lnsl $LIBS" |
| 2562 | |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 2563 | else |
| 2564 | echo "$ac_t""no" 1>&6 |
| 2565 | fi |
| 2566 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 2567 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 2568 | done |
| 2569 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2570 | for ac_func in connect |
| 2571 | do |
| 2572 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2573 | echo "configure:2574: checking for $ac_func" >&5 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2574 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2575 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2576 | else |
| 2577 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2578 | #line 2579 "configure" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2579 | #include "confdefs.h" |
| 2580 | /* System header to define __stub macros and hopefully few prototypes, |
| 2581 | which can conflict with char $ac_func(); below. */ |
| 2582 | #include <assert.h> |
| 2583 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2584 | /* We use char because int might match the return type of a gcc2 |
| 2585 | builtin and then its argument prototype would still apply. */ |
| 2586 | char $ac_func(); |
| 2587 | |
| 2588 | int main() { |
| 2589 | |
| 2590 | /* The GNU C library defines this for functions which it implements |
| 2591 | to always fail with ENOSYS. Some functions are actually named |
| 2592 | something starting with __ and the normal name is an alias. */ |
| 2593 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2594 | choke me |
| 2595 | #else |
| 2596 | $ac_func(); |
| 2597 | #endif |
| 2598 | |
| 2599 | ; return 0; } |
| 2600 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2601 | if { (eval echo configure:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2602 | rm -rf conftest* |
| 2603 | eval "ac_cv_func_$ac_func=yes" |
| 2604 | else |
| 2605 | echo "configure: failed program was:" >&5 |
| 2606 | cat conftest.$ac_ext >&5 |
| 2607 | rm -rf conftest* |
| 2608 | eval "ac_cv_func_$ac_func=no" |
| 2609 | fi |
| 2610 | rm -f conftest* |
| 2611 | fi |
| 2612 | |
| 2613 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2614 | echo "$ac_t""yes" 1>&6 |
| 2615 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2616 | cat >> confdefs.h <<EOF |
| 2617 | #define $ac_tr_func 1 |
| 2618 | EOF |
| 2619 | |
| 2620 | else |
| 2621 | echo "$ac_t""no" 1>&6 |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 2622 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2623 | echo "configure:2624: checking for connect in -lsocket" >&5 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2624 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
| 2625 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2626 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2627 | else |
| 2628 | ac_save_LIBS="$LIBS" |
| 2629 | LIBS="-lsocket $LIBS" |
| 2630 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2631 | #line 2632 "configure" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2632 | #include "confdefs.h" |
| 2633 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2634 | /* We use char because int might match the return type of a gcc2 |
| 2635 | builtin and then its argument prototype would still apply. */ |
| 2636 | char connect(); |
| 2637 | |
| 2638 | int main() { |
| 2639 | connect() |
| 2640 | ; return 0; } |
| 2641 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2642 | if { (eval echo configure:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2643 | rm -rf conftest* |
| 2644 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2645 | else |
| 2646 | echo "configure: failed program was:" >&5 |
| 2647 | cat conftest.$ac_ext >&5 |
| 2648 | rm -rf conftest* |
| 2649 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2650 | fi |
| 2651 | rm -f conftest* |
| 2652 | LIBS="$ac_save_LIBS" |
| 2653 | |
| 2654 | fi |
| 2655 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2656 | echo "$ac_t""yes" 1>&6 |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 2657 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \ |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 2658 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2659 | cat >> confdefs.h <<EOF |
| 2660 | #define $ac_tr_lib 1 |
| 2661 | EOF |
| 2662 | |
| 2663 | LIBS="-lsocket $LIBS" |
| 2664 | |
| 2665 | else |
| 2666 | echo "$ac_t""no" 1>&6 |
| 2667 | fi |
| 2668 | |
| 2669 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 2670 | done |
| 2671 | |
Satsuki Fujishima | 66fb607 | 2001-03-19 19:19:59 +0000 | [diff] [blame] | 2672 | echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2673 | echo "configure:2674: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
Satsuki Fujishima | 66fb607 | 2001-03-19 19:19:59 +0000 | [diff] [blame] | 2674 | ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'` |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2675 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2676 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2677 | else |
| 2678 | ac_save_LIBS="$LIBS" |
| 2679 | LIBS="-lxpg4 $LIBS" |
| 2680 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2681 | #line 2682 "configure" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2682 | #include "confdefs.h" |
| 2683 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2684 | /* We use char because int might match the return type of a gcc2 |
| 2685 | builtin and then its argument prototype would still apply. */ |
Satsuki Fujishima | 66fb607 | 2001-03-19 19:19:59 +0000 | [diff] [blame] | 2686 | char _xpg4_setrunelocale(); |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2687 | |
| 2688 | int main() { |
Satsuki Fujishima | 66fb607 | 2001-03-19 19:19:59 +0000 | [diff] [blame] | 2689 | _xpg4_setrunelocale() |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2690 | ; return 0; } |
| 2691 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2692 | if { (eval echo configure:2693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2693 | rm -rf conftest* |
| 2694 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2695 | else |
| 2696 | echo "configure: failed program was:" >&5 |
| 2697 | cat conftest.$ac_ext >&5 |
| 2698 | rm -rf conftest* |
| 2699 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2700 | fi |
| 2701 | rm -f conftest* |
| 2702 | LIBS="$ac_save_LIBS" |
| 2703 | |
| 2704 | fi |
| 2705 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2706 | echo "$ac_t""yes" 1>&6 |
| 2707 | ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2708 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2709 | cat >> confdefs.h <<EOF |
| 2710 | #define $ac_tr_lib 1 |
| 2711 | EOF |
| 2712 | |
| 2713 | LIBS="-lxpg4 $LIBS" |
| 2714 | |
| 2715 | else |
| 2716 | echo "$ac_t""no" 1>&6 |
| 2717 | fi |
| 2718 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 2719 | echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2720 | echo "configure:2721: checking for mmap in -lmmap" >&5 |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 2721 | ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'` |
| 2722 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2723 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2724 | else |
| 2725 | ac_save_LIBS="$LIBS" |
| 2726 | LIBS="-lmmap $LIBS" |
| 2727 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2728 | #line 2729 "configure" |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 2729 | #include "confdefs.h" |
| 2730 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2731 | /* We use char because int might match the return type of a gcc2 |
| 2732 | builtin and then its argument prototype would still apply. */ |
| 2733 | char mmap(); |
| 2734 | |
| 2735 | int main() { |
| 2736 | mmap() |
| 2737 | ; return 0; } |
| 2738 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2739 | if { (eval echo configure:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 2740 | rm -rf conftest* |
| 2741 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2742 | else |
| 2743 | echo "configure: failed program was:" >&5 |
| 2744 | cat conftest.$ac_ext >&5 |
| 2745 | rm -rf conftest* |
| 2746 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2747 | fi |
| 2748 | rm -f conftest* |
| 2749 | LIBS="$ac_save_LIBS" |
| 2750 | |
| 2751 | fi |
| 2752 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2753 | echo "$ac_t""yes" 1>&6 |
| 2754 | ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2755 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2756 | cat >> confdefs.h <<EOF |
| 2757 | #define $ac_tr_lib 1 |
| 2758 | EOF |
| 2759 | |
| 2760 | LIBS="-lmmap $LIBS" |
| 2761 | |
| 2762 | else |
| 2763 | echo "$ac_t""no" 1>&6 |
| 2764 | fi |
| 2765 | |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 2766 | for ac_func in openpty |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 2767 | do |
| 2768 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2769 | echo "configure:2770: checking for $ac_func" >&5 |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 2770 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2771 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2772 | else |
| 2773 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2774 | #line 2775 "configure" |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 2775 | #include "confdefs.h" |
| 2776 | /* System header to define __stub macros and hopefully few prototypes, |
| 2777 | which can conflict with char $ac_func(); below. */ |
| 2778 | #include <assert.h> |
| 2779 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2780 | /* We use char because int might match the return type of a gcc2 |
| 2781 | builtin and then its argument prototype would still apply. */ |
| 2782 | char $ac_func(); |
| 2783 | |
| 2784 | int main() { |
| 2785 | |
| 2786 | /* The GNU C library defines this for functions which it implements |
| 2787 | to always fail with ENOSYS. Some functions are actually named |
| 2788 | something starting with __ and the normal name is an alias. */ |
| 2789 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2790 | choke me |
| 2791 | #else |
| 2792 | $ac_func(); |
| 2793 | #endif |
| 2794 | |
| 2795 | ; return 0; } |
| 2796 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2797 | if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 2798 | rm -rf conftest* |
| 2799 | eval "ac_cv_func_$ac_func=yes" |
| 2800 | else |
| 2801 | echo "configure: failed program was:" >&5 |
| 2802 | cat conftest.$ac_ext >&5 |
| 2803 | rm -rf conftest* |
| 2804 | eval "ac_cv_func_$ac_func=no" |
| 2805 | fi |
| 2806 | rm -f conftest* |
| 2807 | fi |
| 2808 | |
| 2809 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2810 | echo "$ac_t""yes" 1>&6 |
| 2811 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2812 | cat >> confdefs.h <<EOF |
| 2813 | #define $ac_tr_func 1 |
| 2814 | EOF |
| 2815 | |
| 2816 | else |
| 2817 | echo "$ac_t""no" 1>&6 |
| 2818 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2819 | echo "configure:2820: checking for openpty in -lutil" >&5 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 2820 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
| 2821 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2822 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2823 | else |
| 2824 | ac_save_LIBS="$LIBS" |
| 2825 | LIBS="-lutil $LIBS" |
| 2826 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2827 | #line 2828 "configure" |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 2828 | #include "confdefs.h" |
| 2829 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2830 | /* We use char because int might match the return type of a gcc2 |
| 2831 | builtin and then its argument prototype would still apply. */ |
| 2832 | char openpty(); |
| 2833 | |
| 2834 | int main() { |
| 2835 | openpty() |
| 2836 | ; return 0; } |
| 2837 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2838 | if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 2839 | rm -rf conftest* |
| 2840 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2841 | else |
| 2842 | echo "configure: failed program was:" >&5 |
| 2843 | cat conftest.$ac_ext >&5 |
| 2844 | rm -rf conftest* |
| 2845 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2846 | fi |
| 2847 | rm -f conftest* |
| 2848 | LIBS="$ac_save_LIBS" |
| 2849 | |
| 2850 | fi |
| 2851 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2852 | echo "$ac_t""yes" 1>&6 |
| 2853 | cat >> confdefs.h <<\EOF |
| 2854 | #define HAVE_OPENPTY 1 |
| 2855 | EOF |
| 2856 | |
| 2857 | LIBS="$LIBS -lutil" |
| 2858 | |
| 2859 | else |
| 2860 | echo "$ac_t""no" 1>&6 |
| 2861 | fi |
| 2862 | |
| 2863 | fi |
| 2864 | done |
| 2865 | |
| 2866 | |
| 2867 | for ac_hdr in dlfcn.h |
| 2868 | do |
| 2869 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2870 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2871 | echo "configure:2872: checking for $ac_hdr" >&5 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 2872 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2873 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2874 | else |
| 2875 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2876 | #line 2877 "configure" |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 2877 | #include "confdefs.h" |
| 2878 | #include <$ac_hdr> |
| 2879 | EOF |
| 2880 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2881 | { (eval echo configure:2882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2882 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 2883 | if test -z "$ac_err"; then |
| 2884 | rm -rf conftest* |
| 2885 | eval "ac_cv_header_$ac_safe=yes" |
| 2886 | else |
| 2887 | echo "$ac_err" >&5 |
| 2888 | echo "configure: failed program was:" >&5 |
| 2889 | cat conftest.$ac_ext >&5 |
| 2890 | rm -rf conftest* |
| 2891 | eval "ac_cv_header_$ac_safe=no" |
| 2892 | fi |
| 2893 | rm -f conftest* |
| 2894 | fi |
| 2895 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2896 | echo "$ac_t""yes" 1>&6 |
| 2897 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2898 | cat >> confdefs.h <<EOF |
| 2899 | #define $ac_tr_hdr 1 |
| 2900 | EOF |
| 2901 | for ac_func in dlopen |
| 2902 | do |
| 2903 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2904 | echo "configure:2905: checking for $ac_func" >&5 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 2905 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2906 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2907 | else |
| 2908 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2909 | #line 2910 "configure" |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 2910 | #include "confdefs.h" |
| 2911 | /* System header to define __stub macros and hopefully few prototypes, |
| 2912 | which can conflict with char $ac_func(); below. */ |
| 2913 | #include <assert.h> |
| 2914 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2915 | /* We use char because int might match the return type of a gcc2 |
| 2916 | builtin and then its argument prototype would still apply. */ |
| 2917 | char $ac_func(); |
| 2918 | |
| 2919 | int main() { |
| 2920 | |
| 2921 | /* The GNU C library defines this for functions which it implements |
| 2922 | to always fail with ENOSYS. Some functions are actually named |
| 2923 | something starting with __ and the normal name is an alias. */ |
| 2924 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2925 | choke me |
| 2926 | #else |
| 2927 | $ac_func(); |
| 2928 | #endif |
| 2929 | |
| 2930 | ; return 0; } |
| 2931 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2932 | if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 2933 | rm -rf conftest* |
| 2934 | eval "ac_cv_func_$ac_func=yes" |
| 2935 | else |
| 2936 | echo "configure: failed program was:" >&5 |
| 2937 | cat conftest.$ac_ext >&5 |
| 2938 | rm -rf conftest* |
| 2939 | eval "ac_cv_func_$ac_func=no" |
| 2940 | fi |
| 2941 | rm -f conftest* |
| 2942 | fi |
| 2943 | |
| 2944 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2945 | echo "$ac_t""yes" 1>&6 |
| 2946 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2947 | cat >> confdefs.h <<EOF |
| 2948 | #define $ac_tr_func 1 |
| 2949 | EOF |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 2950 | |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 2951 | else |
| 2952 | echo "$ac_t""no" 1>&6 |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 2953 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2954 | echo "configure:2955: checking for dlopen in -ldl" >&5 |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 2955 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
| 2956 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2957 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2958 | else |
| 2959 | ac_save_LIBS="$LIBS" |
| 2960 | LIBS="-ldl $LIBS" |
| 2961 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2962 | #line 2963 "configure" |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 2963 | #include "confdefs.h" |
| 2964 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2965 | /* We use char because int might match the return type of a gcc2 |
| 2966 | builtin and then its argument prototype would still apply. */ |
| 2967 | char dlopen(); |
| 2968 | |
| 2969 | int main() { |
| 2970 | dlopen() |
| 2971 | ; return 0; } |
| 2972 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 2973 | if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 2974 | rm -rf conftest* |
| 2975 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2976 | else |
| 2977 | echo "configure: failed program was:" >&5 |
| 2978 | cat conftest.$ac_ext >&5 |
| 2979 | rm -rf conftest* |
| 2980 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2981 | fi |
| 2982 | rm -f conftest* |
| 2983 | LIBS="$ac_save_LIBS" |
| 2984 | |
| 2985 | fi |
| 2986 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2987 | echo "$ac_t""yes" 1>&6 |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 2988 | cat >> confdefs.h <<\EOF |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 2989 | #define HAVE_DLOPEN 1 |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 2990 | EOF |
| 2991 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 2992 | LIBS="$LIBS -ldl" |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 2993 | else |
| 2994 | echo "$ac_t""no" 1>&6 |
Alexandre Julliard | e1e7537 | 2000-04-24 17:17:49 +0000 | [diff] [blame] | 2995 | LIBEXT="a" |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 2996 | fi |
| 2997 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 2998 | |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 2999 | fi |
| 3000 | done |
| 3001 | |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 3002 | else |
| 3003 | echo "$ac_t""no" 1>&6 |
Alexandre Julliard | e1e7537 | 2000-04-24 17:17:49 +0000 | [diff] [blame] | 3004 | LIBEXT="a" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 3005 | |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 3006 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 3007 | done |
Marcus Meissner | 8220bc9 | 1998-10-11 11:10:27 +0000 | [diff] [blame] | 3008 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 3009 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 3010 | JPEGLIB="" |
| 3011 | |
| 3012 | for ac_hdr in jpeglib.h |
| 3013 | do |
| 3014 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3015 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 3016 | echo "configure:3017: checking for $ac_hdr" >&5 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 3017 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3018 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3019 | else |
| 3020 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 3021 | #line 3022 "configure" |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 3022 | #include "confdefs.h" |
| 3023 | #include <$ac_hdr> |
| 3024 | EOF |
| 3025 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 3026 | { (eval echo configure:3027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 3027 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 3028 | if test -z "$ac_err"; then |
| 3029 | rm -rf conftest* |
| 3030 | eval "ac_cv_header_$ac_safe=yes" |
| 3031 | else |
| 3032 | echo "$ac_err" >&5 |
| 3033 | echo "configure: failed program was:" >&5 |
| 3034 | cat conftest.$ac_ext >&5 |
| 3035 | rm -rf conftest* |
| 3036 | eval "ac_cv_header_$ac_safe=no" |
| 3037 | fi |
| 3038 | rm -f conftest* |
| 3039 | fi |
| 3040 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3041 | echo "$ac_t""yes" 1>&6 |
| 3042 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3043 | cat >> confdefs.h <<EOF |
| 3044 | #define $ac_tr_hdr 1 |
| 3045 | EOF |
| 3046 | echo $ac_n "checking for jpeg_start_decompress in -ljpeg""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 3047 | echo "configure:3048: checking for jpeg_start_decompress in -ljpeg" >&5 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 3048 | ac_lib_var=`echo jpeg'_'jpeg_start_decompress | sed 'y%./+-%__p_%'` |
| 3049 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3050 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3051 | else |
| 3052 | ac_save_LIBS="$LIBS" |
| 3053 | LIBS="-ljpeg $LIBS" |
| 3054 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 3055 | #line 3056 "configure" |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 3056 | #include "confdefs.h" |
| 3057 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3058 | /* We use char because int might match the return type of a gcc2 |
| 3059 | builtin and then its argument prototype would still apply. */ |
| 3060 | char jpeg_start_decompress(); |
| 3061 | |
| 3062 | int main() { |
| 3063 | jpeg_start_decompress() |
| 3064 | ; return 0; } |
| 3065 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 3066 | if { (eval echo configure:3067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 3067 | rm -rf conftest* |
| 3068 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3069 | else |
| 3070 | echo "configure: failed program was:" >&5 |
| 3071 | cat conftest.$ac_ext >&5 |
| 3072 | rm -rf conftest* |
| 3073 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3074 | fi |
| 3075 | rm -f conftest* |
| 3076 | LIBS="$ac_save_LIBS" |
| 3077 | |
| 3078 | fi |
| 3079 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3080 | echo "$ac_t""yes" 1>&6 |
| 3081 | cat >> confdefs.h <<\EOF |
| 3082 | #define HAVE_LIBJPEG 1 |
| 3083 | EOF |
| 3084 | |
| 3085 | JPEGLIB="-ljpeg" |
| 3086 | |
| 3087 | else |
| 3088 | echo "$ac_t""no" 1>&6 |
| 3089 | fi |
| 3090 | |
| 3091 | |
| 3092 | else |
| 3093 | echo "$ac_t""no" 1>&6 |
| 3094 | fi |
| 3095 | done |
| 3096 | |
| 3097 | |
| 3098 | |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 3099 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 3100 | |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 3101 | XFILES="" |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 3102 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 3103 | OPENGLFILES="" |
| 3104 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 3105 | GLU32FILES="" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 3106 | if test "$have_x" = "yes" |
| 3107 | then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3108 | XLIB="-lXext -lX11" |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 3109 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 3110 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 3111 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3112 | for ac_hdr in X11/xpm.h |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 3113 | do |
| 3114 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3115 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 3116 | echo "configure:3117: checking for $ac_hdr" >&5 |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 3117 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3118 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3119 | else |
| 3120 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 3121 | #line 3122 "configure" |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 3122 | #include "confdefs.h" |
| 3123 | #include <$ac_hdr> |
| 3124 | EOF |
| 3125 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 3126 | { (eval echo configure:3127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3127 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 3128 | if test -z "$ac_err"; then |
| 3129 | rm -rf conftest* |
| 3130 | eval "ac_cv_header_$ac_safe=yes" |
| 3131 | else |
| 3132 | echo "$ac_err" >&5 |
| 3133 | echo "configure: failed program was:" >&5 |
| 3134 | cat conftest.$ac_ext >&5 |
| 3135 | rm -rf conftest* |
| 3136 | eval "ac_cv_header_$ac_safe=no" |
| 3137 | fi |
| 3138 | rm -f conftest* |
| 3139 | fi |
| 3140 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3141 | echo "$ac_t""yes" 1>&6 |
| 3142 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3143 | cat >> confdefs.h <<EOF |
| 3144 | #define $ac_tr_hdr 1 |
| 3145 | EOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3146 | echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6 |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 3147 | echo "configure:3148: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3148 | ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'` |
| 3149 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3150 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3151 | else |
| 3152 | ac_save_LIBS="$LIBS" |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3153 | LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 3154 | $LIBS" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3155 | cat > conftest.$ac_ext <<EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 3156 | #line 3157 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3157 | #include "confdefs.h" |
| 3158 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3159 | /* We use char because int might match the return type of a gcc2 |
| 3160 | builtin and then its argument prototype would still apply. */ |
| 3161 | char XpmCreatePixmapFromData(); |
| 3162 | |
| 3163 | int main() { |
| 3164 | XpmCreatePixmapFromData() |
| 3165 | ; return 0; } |
| 3166 | EOF |
François Gouget | 2663b80 | 2001-11-06 19:01:05 +0000 | [diff] [blame] | 3167 | if { (eval echo configure:3168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3168 | rm -rf conftest* |
| 3169 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3170 | else |
| 3171 | echo "configure: failed program was:" >&5 |
| 3172 | cat conftest.$ac_ext >&5 |
| 3173 | rm -rf conftest* |
| 3174 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3175 | fi |
| 3176 | rm -f conftest* |
| 3177 | LIBS="$ac_save_LIBS" |
| 3178 | |
| 3179 | fi |
| 3180 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3181 | echo "$ac_t""yes" 1>&6 |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3182 | cat >> confdefs.h <<\EOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3183 | #define HAVE_LIBXXPM 1 |
| 3184 | EOF |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 3185 | |
| 3186 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3187 | else |
| 3188 | echo "$ac_t""no" 1>&6 |
| 3189 | fi |
| 3190 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3191 | |
| 3192 | else |
| 3193 | echo "$ac_t""no" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3194 | echo "Couldn't find the xpm development header X11/xpm.h" |
| 3195 | echo "Install the following packages:" |
Andreas Mohr | f359895 | 2001-10-02 17:49:20 +0000 | [diff] [blame] | 3196 | echo "Red Hat < 7.1 : xpm xpm-devel" |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 3197 | echo "Red Hat >= 7.1 : XFree86-devel" |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3198 | echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static" |
Marcus Meissner | 284995e | 2000-03-04 19:21:49 +0000 | [diff] [blame] | 3199 | echo "SuSE : xpm" |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3200 | echo "Debian/Corel Linux: xpm4g xpm4g-dev" |
François Gouget | 01036f4 | 2001-11-05 23:52:54 +0000 | [diff] [blame] | 3201 | echo "Solaris 8 : SFWxpm" |
Marcus Meissner | cb99b0e | 1999-12-20 04:10:06 +0000 | [diff] [blame] | 3202 | echo |
| 3203 | echo "Or get the sources from ftp.x.org and all its mirror sites from " |
| 3204 | echo "the directory /contrib/libraries." |
| 3205 | echo |
| 3206 | exit 1 |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3207 | |
| 3208 | |
| 3209 | fi |
| 3210 | done |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3211 | |
Marcus Meissner | cb99b0e | 1999-12-20 04:10:06 +0000 | [diff] [blame] | 3212 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3213 | for ac_hdr in X11/Xlib.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3214 | do |
| 3215 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3216 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3217 | echo "configure:3218: checking for $ac_hdr" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3218 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3219 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3220 | else |
| 3221 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3222 | #line 3223 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3223 | #include "confdefs.h" |
| 3224 | #include <$ac_hdr> |
| 3225 | EOF |
| 3226 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3227 | { (eval echo configure:3228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3228 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3229 | if test -z "$ac_err"; then |
| 3230 | rm -rf conftest* |
| 3231 | eval "ac_cv_header_$ac_safe=yes" |
| 3232 | else |
| 3233 | echo "$ac_err" >&5 |
| 3234 | echo "configure: failed program was:" >&5 |
| 3235 | cat conftest.$ac_ext >&5 |
| 3236 | rm -rf conftest* |
| 3237 | eval "ac_cv_header_$ac_safe=no" |
| 3238 | fi |
| 3239 | rm -f conftest* |
| 3240 | fi |
| 3241 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3242 | echo "$ac_t""yes" 1>&6 |
| 3243 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3244 | cat >> confdefs.h <<EOF |
| 3245 | #define $ac_tr_hdr 1 |
| 3246 | EOF |
| 3247 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3248 | for ac_hdr in X11/XKBlib.h |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3249 | do |
| 3250 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3251 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3252 | echo "configure:3253: checking for $ac_hdr" >&5 |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3253 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3254 | echo $ac_n "(cached) $ac_c" 1>&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3255 | else |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3256 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3257 | #line 3258 "configure" |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3258 | #include "confdefs.h" |
| 3259 | #include <$ac_hdr> |
| 3260 | EOF |
| 3261 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3262 | { (eval echo configure:3263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3263 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 3264 | if test -z "$ac_err"; then |
| 3265 | rm -rf conftest* |
| 3266 | eval "ac_cv_header_$ac_safe=yes" |
| 3267 | else |
| 3268 | echo "$ac_err" >&5 |
| 3269 | echo "configure: failed program was:" >&5 |
| 3270 | cat conftest.$ac_ext >&5 |
| 3271 | rm -rf conftest* |
| 3272 | eval "ac_cv_header_$ac_safe=no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3273 | fi |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3274 | rm -f conftest* |
| 3275 | fi |
| 3276 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3277 | echo "$ac_t""yes" 1>&6 |
| 3278 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3279 | cat >> confdefs.h <<EOF |
| 3280 | #define $ac_tr_hdr 1 |
| 3281 | EOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3282 | echo $ac_n "checking for XkbQueryExtension in -lX11""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3283 | echo "configure:3284: checking for XkbQueryExtension in -lX11" >&5 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3284 | ac_lib_var=`echo X11'_'XkbQueryExtension | sed 'y%./+-%__p_%'` |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3285 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3286 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3287 | else |
| 3288 | ac_save_LIBS="$LIBS" |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3289 | LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3290 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3291 | #line 3292 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3292 | #include "confdefs.h" |
| 3293 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3294 | /* We use char because int might match the return type of a gcc2 |
| 3295 | builtin and then its argument prototype would still apply. */ |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3296 | char XkbQueryExtension(); |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3297 | |
| 3298 | int main() { |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3299 | XkbQueryExtension() |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3300 | ; return 0; } |
| 3301 | EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3302 | if { (eval echo configure:3303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3303 | rm -rf conftest* |
| 3304 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3305 | else |
| 3306 | echo "configure: failed program was:" >&5 |
| 3307 | cat conftest.$ac_ext >&5 |
| 3308 | rm -rf conftest* |
| 3309 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3310 | fi |
| 3311 | rm -f conftest* |
| 3312 | LIBS="$ac_save_LIBS" |
| 3313 | |
| 3314 | fi |
| 3315 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3316 | echo "$ac_t""yes" 1>&6 |
| 3317 | cat >> confdefs.h <<\EOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3318 | #define HAVE_XKB 1 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3319 | EOF |
| 3320 | |
| 3321 | else |
| 3322 | echo "$ac_t""no" 1>&6 |
| 3323 | fi |
| 3324 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3325 | |
| 3326 | else |
| 3327 | echo "$ac_t""no" 1>&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3328 | echo "configure: warning: XKB extension not found!!" 1>&2 |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3329 | |
| 3330 | fi |
| 3331 | done |
| 3332 | |
| 3333 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3334 | for ac_hdr in X11/extensions/XShm.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3335 | do |
| 3336 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3337 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3338 | echo "configure:3339: checking for $ac_hdr" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3339 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3340 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3341 | else |
| 3342 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3343 | #line 3344 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3344 | #include "confdefs.h" |
| 3345 | #include <$ac_hdr> |
| 3346 | EOF |
| 3347 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3348 | { (eval echo configure:3349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3349 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3350 | if test -z "$ac_err"; then |
| 3351 | rm -rf conftest* |
| 3352 | eval "ac_cv_header_$ac_safe=yes" |
| 3353 | else |
| 3354 | echo "$ac_err" >&5 |
| 3355 | echo "configure: failed program was:" >&5 |
| 3356 | cat conftest.$ac_ext >&5 |
| 3357 | rm -rf conftest* |
| 3358 | eval "ac_cv_header_$ac_safe=no" |
| 3359 | fi |
| 3360 | rm -f conftest* |
| 3361 | fi |
| 3362 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3363 | echo "$ac_t""yes" 1>&6 |
| 3364 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3365 | cat >> confdefs.h <<EOF |
| 3366 | #define $ac_tr_hdr 1 |
| 3367 | EOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3368 | echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3369 | echo "configure:3370: checking for XShmQueryExtension in -lXext" >&5 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3370 | ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'` |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 3371 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3372 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3373 | else |
| 3374 | ac_save_LIBS="$LIBS" |
| 3375 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 3376 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3377 | #line 3378 "configure" |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 3378 | #include "confdefs.h" |
| 3379 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3380 | /* We use char because int might match the return type of a gcc2 |
| 3381 | builtin and then its argument prototype would still apply. */ |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3382 | char XShmQueryExtension(); |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 3383 | |
| 3384 | int main() { |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3385 | XShmQueryExtension() |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 3386 | ; return 0; } |
| 3387 | EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3388 | if { (eval echo configure:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 3389 | rm -rf conftest* |
| 3390 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3391 | else |
| 3392 | echo "configure: failed program was:" >&5 |
| 3393 | cat conftest.$ac_ext >&5 |
| 3394 | rm -rf conftest* |
| 3395 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3396 | fi |
| 3397 | rm -f conftest* |
| 3398 | LIBS="$ac_save_LIBS" |
| 3399 | |
| 3400 | fi |
| 3401 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3402 | echo "$ac_t""yes" 1>&6 |
| 3403 | cat >> confdefs.h <<\EOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3404 | #define HAVE_LIBXXSHM 1 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 3405 | EOF |
| 3406 | |
| 3407 | else |
| 3408 | echo "$ac_t""no" 1>&6 |
| 3409 | fi |
| 3410 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3411 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 3412 | else |
| 3413 | echo "$ac_t""no" 1>&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3414 | echo "configure: warning: Xshm extension not found!!" 1>&2 |
| 3415 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 3416 | fi |
| 3417 | done |
| 3418 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3419 | |
| 3420 | for ac_hdr in X11/extensions/shape.h |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 3421 | do |
| 3422 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3423 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3424 | echo "configure:3425: checking for $ac_hdr" >&5 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 3425 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3426 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3427 | else |
| 3428 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3429 | #line 3430 "configure" |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 3430 | #include "confdefs.h" |
| 3431 | #include <$ac_hdr> |
| 3432 | EOF |
| 3433 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3434 | { (eval echo configure:3435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 3435 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 3436 | if test -z "$ac_err"; then |
| 3437 | rm -rf conftest* |
| 3438 | eval "ac_cv_header_$ac_safe=yes" |
| 3439 | else |
| 3440 | echo "$ac_err" >&5 |
| 3441 | echo "configure: failed program was:" >&5 |
| 3442 | cat conftest.$ac_ext >&5 |
| 3443 | rm -rf conftest* |
| 3444 | eval "ac_cv_header_$ac_safe=no" |
| 3445 | fi |
| 3446 | rm -f conftest* |
| 3447 | fi |
| 3448 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3449 | echo "$ac_t""yes" 1>&6 |
| 3450 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3451 | cat >> confdefs.h <<EOF |
| 3452 | #define $ac_tr_hdr 1 |
| 3453 | EOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3454 | echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3455 | echo "configure:3456: checking for XShapeQueryExtension in -lXext" >&5 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3456 | ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'` |
| 3457 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3458 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3459 | else |
| 3460 | ac_save_LIBS="$LIBS" |
| 3461 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 3462 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3463 | #line 3464 "configure" |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3464 | #include "confdefs.h" |
| 3465 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3466 | /* We use char because int might match the return type of a gcc2 |
| 3467 | builtin and then its argument prototype would still apply. */ |
| 3468 | char XShapeQueryExtension(); |
| 3469 | |
| 3470 | int main() { |
| 3471 | XShapeQueryExtension() |
| 3472 | ; return 0; } |
| 3473 | EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3474 | if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3475 | rm -rf conftest* |
| 3476 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3477 | else |
| 3478 | echo "configure: failed program was:" >&5 |
| 3479 | cat conftest.$ac_ext >&5 |
| 3480 | rm -rf conftest* |
| 3481 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3482 | fi |
| 3483 | rm -f conftest* |
| 3484 | LIBS="$ac_save_LIBS" |
| 3485 | |
| 3486 | fi |
| 3487 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3488 | echo "$ac_t""yes" 1>&6 |
| 3489 | cat >> confdefs.h <<\EOF |
| 3490 | #define HAVE_LIBXSHAPE 1 |
| 3491 | EOF |
| 3492 | |
| 3493 | else |
| 3494 | echo "$ac_t""no" 1>&6 |
| 3495 | fi |
| 3496 | |
| 3497 | |
| 3498 | else |
| 3499 | echo "$ac_t""no" 1>&6 |
| 3500 | echo "configure: warning: XShape extension not found!!" 1>&2 |
| 3501 | |
| 3502 | fi |
| 3503 | done |
| 3504 | |
| 3505 | |
| 3506 | for ac_hdr in X11/extensions/xf86dga.h |
| 3507 | do |
| 3508 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3509 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3510 | echo "configure:3511: checking for $ac_hdr" >&5 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3511 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3512 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3513 | else |
| 3514 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3515 | #line 3516 "configure" |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3516 | #include "confdefs.h" |
| 3517 | #include <$ac_hdr> |
| 3518 | EOF |
| 3519 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3520 | { (eval echo configure:3521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 3521 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 3522 | if test -z "$ac_err"; then |
| 3523 | rm -rf conftest* |
| 3524 | eval "ac_cv_header_$ac_safe=yes" |
| 3525 | else |
| 3526 | echo "$ac_err" >&5 |
| 3527 | echo "configure: failed program was:" >&5 |
| 3528 | cat conftest.$ac_ext >&5 |
| 3529 | rm -rf conftest* |
| 3530 | eval "ac_cv_header_$ac_safe=no" |
| 3531 | fi |
| 3532 | rm -f conftest* |
| 3533 | fi |
| 3534 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3535 | echo "$ac_t""yes" 1>&6 |
| 3536 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3537 | cat >> confdefs.h <<EOF |
| 3538 | #define $ac_tr_hdr 1 |
| 3539 | EOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3540 | echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3541 | echo "configure:3542: checking for XDGAQueryExtension in -lXxf86dga" >&5 |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 3542 | ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'` |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3543 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3544 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3545 | else |
| 3546 | ac_save_LIBS="$LIBS" |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 3547 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3548 | $LIBS" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3549 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3550 | #line 3551 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3551 | #include "confdefs.h" |
| 3552 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3553 | /* We use char because int might match the return type of a gcc2 |
| 3554 | builtin and then its argument prototype would still apply. */ |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 3555 | char XDGAQueryExtension(); |
| 3556 | |
| 3557 | int main() { |
| 3558 | XDGAQueryExtension() |
| 3559 | ; return 0; } |
| 3560 | EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3561 | if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 3562 | rm -rf conftest* |
| 3563 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3564 | else |
| 3565 | echo "configure: failed program was:" >&5 |
| 3566 | cat conftest.$ac_ext >&5 |
| 3567 | rm -rf conftest* |
| 3568 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3569 | fi |
| 3570 | rm -f conftest* |
| 3571 | LIBS="$ac_save_LIBS" |
| 3572 | |
| 3573 | fi |
| 3574 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3575 | echo "$ac_t""yes" 1>&6 |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3576 | cat >> confdefs.h <<\EOF |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 3577 | #define HAVE_LIBXXF86DGA2 1 |
| 3578 | EOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 3579 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3580 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3581 | |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 3582 | else |
| 3583 | echo "$ac_t""no" 1>&6 |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3584 | echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3585 | echo "configure:3586: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 3586 | ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'` |
| 3587 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3588 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3589 | else |
| 3590 | ac_save_LIBS="$LIBS" |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3591 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 3592 | $LIBS" |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 3593 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3594 | #line 3595 "configure" |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 3595 | #include "confdefs.h" |
| 3596 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3597 | /* We use char because int might match the return type of a gcc2 |
| 3598 | builtin and then its argument prototype would still apply. */ |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3599 | char XF86DGAQueryExtension(); |
| 3600 | |
| 3601 | int main() { |
| 3602 | XF86DGAQueryExtension() |
| 3603 | ; return 0; } |
| 3604 | EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3605 | if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3606 | rm -rf conftest* |
| 3607 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3608 | else |
| 3609 | echo "configure: failed program was:" >&5 |
| 3610 | cat conftest.$ac_ext >&5 |
| 3611 | rm -rf conftest* |
| 3612 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3613 | fi |
| 3614 | rm -f conftest* |
| 3615 | LIBS="$ac_save_LIBS" |
| 3616 | |
| 3617 | fi |
| 3618 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3619 | echo "$ac_t""yes" 1>&6 |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3620 | cat >> confdefs.h <<\EOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3621 | #define HAVE_LIBXXF86DGA 1 |
| 3622 | EOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 3623 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3624 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3625 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3626 | else |
| 3627 | echo "$ac_t""no" 1>&6 |
| 3628 | fi |
| 3629 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3630 | |
| 3631 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3632 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3633 | |
| 3634 | else |
| 3635 | echo "$ac_t""no" 1>&6 |
| 3636 | echo "configure: warning: DGA extension not found!!" 1>&2 |
| 3637 | |
| 3638 | fi |
| 3639 | done |
| 3640 | |
| 3641 | |
| 3642 | for ac_hdr in X11/extensions/xf86vmode.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3643 | do |
| 3644 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3645 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3646 | echo "configure:3647: checking for $ac_hdr" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3647 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3648 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3649 | else |
| 3650 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3651 | #line 3652 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3652 | #include "confdefs.h" |
| 3653 | #include <$ac_hdr> |
| 3654 | EOF |
| 3655 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3656 | { (eval echo configure:3657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3657 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3658 | if test -z "$ac_err"; then |
| 3659 | rm -rf conftest* |
| 3660 | eval "ac_cv_header_$ac_safe=yes" |
| 3661 | else |
| 3662 | echo "$ac_err" >&5 |
| 3663 | echo "configure: failed program was:" >&5 |
| 3664 | cat conftest.$ac_ext >&5 |
| 3665 | rm -rf conftest* |
| 3666 | eval "ac_cv_header_$ac_safe=no" |
| 3667 | fi |
| 3668 | rm -f conftest* |
| 3669 | fi |
| 3670 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3671 | echo "$ac_t""yes" 1>&6 |
| 3672 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3673 | cat >> confdefs.h <<EOF |
| 3674 | #define $ac_tr_hdr 1 |
| 3675 | EOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3676 | echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3677 | echo "configure:3678: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3678 | ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'` |
| 3679 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3680 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3681 | else |
| 3682 | ac_save_LIBS="$LIBS" |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3683 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 3684 | $LIBS" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3685 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3686 | #line 3687 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3687 | #include "confdefs.h" |
| 3688 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3689 | /* We use char because int might match the return type of a gcc2 |
| 3690 | builtin and then its argument prototype would still apply. */ |
| 3691 | char XF86VidModeQueryExtension(); |
| 3692 | |
| 3693 | int main() { |
| 3694 | XF86VidModeQueryExtension() |
| 3695 | ; return 0; } |
| 3696 | EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3697 | if { (eval echo configure:3698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3698 | rm -rf conftest* |
| 3699 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3700 | else |
| 3701 | echo "configure: failed program was:" >&5 |
| 3702 | cat conftest.$ac_ext >&5 |
| 3703 | rm -rf conftest* |
| 3704 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3705 | fi |
| 3706 | rm -f conftest* |
| 3707 | LIBS="$ac_save_LIBS" |
| 3708 | |
| 3709 | fi |
| 3710 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3711 | echo "$ac_t""yes" 1>&6 |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3712 | cat >> confdefs.h <<\EOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3713 | #define HAVE_LIBXXF86VM 1 |
| 3714 | EOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3715 | |
| 3716 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" |
| 3717 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3718 | else |
| 3719 | echo "$ac_t""no" 1>&6 |
| 3720 | fi |
| 3721 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3722 | |
| 3723 | else |
| 3724 | echo "$ac_t""no" 1>&6 |
| 3725 | echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2 |
| 3726 | |
| 3727 | fi |
| 3728 | done |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 3729 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 3730 | |
| 3731 | for ac_hdr in X11/extensions/Xvlib.h |
| 3732 | do |
| 3733 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3734 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3735 | echo "configure:3736: checking for $ac_hdr" >&5 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 3736 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3737 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3738 | else |
| 3739 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3740 | #line 3741 "configure" |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 3741 | #include "confdefs.h" |
| 3742 | #include <$ac_hdr> |
| 3743 | EOF |
| 3744 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3745 | { (eval echo configure:3746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 3746 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 3747 | if test -z "$ac_err"; then |
| 3748 | rm -rf conftest* |
| 3749 | eval "ac_cv_header_$ac_safe=yes" |
| 3750 | else |
| 3751 | echo "$ac_err" >&5 |
| 3752 | echo "configure: failed program was:" >&5 |
| 3753 | cat conftest.$ac_ext >&5 |
| 3754 | rm -rf conftest* |
| 3755 | eval "ac_cv_header_$ac_safe=no" |
| 3756 | fi |
| 3757 | rm -f conftest* |
| 3758 | fi |
| 3759 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3760 | echo "$ac_t""yes" 1>&6 |
| 3761 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3762 | cat >> confdefs.h <<EOF |
| 3763 | #define $ac_tr_hdr 1 |
| 3764 | EOF |
| 3765 | echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3766 | echo "configure:3767: checking for XvShmCreateImage in -lXv" >&5 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 3767 | ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'` |
| 3768 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3769 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3770 | else |
| 3771 | ac_save_LIBS="$LIBS" |
| 3772 | LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 3773 | $LIBS" |
| 3774 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3775 | #line 3776 "configure" |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 3776 | #include "confdefs.h" |
| 3777 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3778 | /* We use char because int might match the return type of a gcc2 |
| 3779 | builtin and then its argument prototype would still apply. */ |
| 3780 | char XvShmCreateImage(); |
| 3781 | |
| 3782 | int main() { |
| 3783 | XvShmCreateImage() |
| 3784 | ; return 0; } |
| 3785 | EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3786 | if { (eval echo configure:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 3787 | rm -rf conftest* |
| 3788 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3789 | else |
| 3790 | echo "configure: failed program was:" >&5 |
| 3791 | cat conftest.$ac_ext >&5 |
| 3792 | rm -rf conftest* |
| 3793 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3794 | fi |
| 3795 | rm -f conftest* |
| 3796 | LIBS="$ac_save_LIBS" |
| 3797 | |
| 3798 | fi |
| 3799 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3800 | echo "$ac_t""yes" 1>&6 |
| 3801 | cat >> confdefs.h <<\EOF |
| 3802 | #define HAVE_XVIDEO 1 |
| 3803 | EOF |
| 3804 | |
| 3805 | X_PRE_LIBS="$X_PRE_LIBS -lXv" |
| 3806 | |
| 3807 | else |
| 3808 | echo "$ac_t""no" 1>&6 |
| 3809 | fi |
| 3810 | |
| 3811 | |
| 3812 | else |
| 3813 | echo "$ac_t""no" 1>&6 |
| 3814 | echo "configure: warning: XVideo extension not found !!" 1>&2 |
| 3815 | |
| 3816 | fi |
| 3817 | done |
| 3818 | |
| 3819 | |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 3820 | for ac_hdr in X11/extensions/Xrender.h |
| 3821 | do |
| 3822 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3823 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3824 | echo "configure:3825: checking for $ac_hdr" >&5 |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 3825 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3826 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3827 | else |
| 3828 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3829 | #line 3830 "configure" |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 3830 | #include "confdefs.h" |
| 3831 | #include <$ac_hdr> |
| 3832 | EOF |
| 3833 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3834 | { (eval echo configure:3835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 3835 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 3836 | if test -z "$ac_err"; then |
| 3837 | rm -rf conftest* |
| 3838 | eval "ac_cv_header_$ac_safe=yes" |
| 3839 | else |
| 3840 | echo "$ac_err" >&5 |
| 3841 | echo "configure: failed program was:" >&5 |
| 3842 | cat conftest.$ac_ext >&5 |
| 3843 | rm -rf conftest* |
| 3844 | eval "ac_cv_header_$ac_safe=no" |
| 3845 | fi |
| 3846 | rm -f conftest* |
| 3847 | fi |
| 3848 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3849 | echo "$ac_t""yes" 1>&6 |
| 3850 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3851 | cat >> confdefs.h <<EOF |
| 3852 | #define $ac_tr_hdr 1 |
| 3853 | EOF |
| 3854 | echo $ac_n "checking for XRenderQueryExtension in -lXrender""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3855 | echo "configure:3856: checking for XRenderQueryExtension in -lXrender" >&5 |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 3856 | ac_lib_var=`echo Xrender'_'XRenderQueryExtension | sed 'y%./+-%__p_%'` |
| 3857 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3858 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3859 | else |
| 3860 | ac_save_LIBS="$LIBS" |
| 3861 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 3862 | $LIBS" |
| 3863 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3864 | #line 3865 "configure" |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 3865 | #include "confdefs.h" |
| 3866 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3867 | /* We use char because int might match the return type of a gcc2 |
| 3868 | builtin and then its argument prototype would still apply. */ |
| 3869 | char XRenderQueryExtension(); |
| 3870 | |
| 3871 | int main() { |
| 3872 | XRenderQueryExtension() |
| 3873 | ; return 0; } |
| 3874 | EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3875 | if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 3876 | rm -rf conftest* |
| 3877 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3878 | else |
| 3879 | echo "configure: failed program was:" >&5 |
| 3880 | cat conftest.$ac_ext >&5 |
| 3881 | rm -rf conftest* |
| 3882 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3883 | fi |
| 3884 | rm -f conftest* |
| 3885 | LIBS="$ac_save_LIBS" |
| 3886 | |
| 3887 | fi |
| 3888 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3889 | echo "$ac_t""yes" 1>&6 |
| 3890 | cat >> confdefs.h <<\EOF |
| 3891 | #define HAVE_LIBXRENDER 1 |
| 3892 | EOF |
| 3893 | |
| 3894 | X_PRE_LIBS="$X_PRE_LIBS -lXrender" |
| 3895 | |
| 3896 | else |
| 3897 | echo "$ac_t""no" 1>&6 |
| 3898 | fi |
| 3899 | |
| 3900 | |
| 3901 | else |
| 3902 | echo "$ac_t""no" 1>&6 |
| 3903 | echo "configure: warning: XRender extension not found !!" 1>&2 |
| 3904 | |
| 3905 | fi |
| 3906 | done |
| 3907 | |
| 3908 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 3909 | |
| 3910 | |
| 3911 | else |
| 3912 | echo "$ac_t""no" 1>&6 |
| 3913 | fi |
| 3914 | done |
| 3915 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 3916 | if test $OPENGL = "yes" -o $OPENGL = "normal" |
| 3917 | then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 3918 | for ac_hdr in GL/gl.h GL/glx.h GL/glext.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3919 | do |
| 3920 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3921 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3922 | echo "configure:3923: checking for $ac_hdr" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3923 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3924 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3925 | else |
| 3926 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3927 | #line 3928 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3928 | #include "confdefs.h" |
| 3929 | #include <$ac_hdr> |
| 3930 | EOF |
| 3931 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3932 | { (eval echo configure:3933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3933 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 3934 | if test -z "$ac_err"; then |
| 3935 | rm -rf conftest* |
| 3936 | eval "ac_cv_header_$ac_safe=yes" |
| 3937 | else |
| 3938 | echo "$ac_err" >&5 |
| 3939 | echo "configure: failed program was:" >&5 |
| 3940 | cat conftest.$ac_ext >&5 |
| 3941 | rm -rf conftest* |
| 3942 | eval "ac_cv_header_$ac_safe=no" |
| 3943 | fi |
| 3944 | rm -f conftest* |
| 3945 | fi |
| 3946 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3947 | echo "$ac_t""yes" 1>&6 |
| 3948 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3949 | cat >> confdefs.h <<EOF |
| 3950 | #define $ac_tr_hdr 1 |
| 3951 | EOF |
| 3952 | |
| 3953 | else |
| 3954 | echo "$ac_t""no" 1>&6 |
| 3955 | fi |
| 3956 | done |
| 3957 | |
Marcus Meissner | 22a969b | 2000-08-08 20:46:50 +0000 | [diff] [blame] | 3958 | 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] | 3959 | then |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 3960 | echo $ac_n "checking for up-to-date OpenGL version""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3961 | echo "configure:3962: checking for up-to-date OpenGL version" >&5 |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 3962 | if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 3963 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3964 | else |
| 3965 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3966 | #line 3967 "configure" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 3967 | #include "confdefs.h" |
| 3968 | #include <GL/gl.h> |
| 3969 | int main() { |
| 3970 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
| 3971 | ; return 0; } |
| 3972 | EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3973 | if { (eval echo configure:3974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 3974 | rm -rf conftest* |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 3975 | wine_cv_opengl_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 3976 | else |
| 3977 | echo "configure: failed program was:" >&5 |
| 3978 | cat conftest.$ac_ext >&5 |
| 3979 | rm -rf conftest* |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 3980 | wine_cv_opengl_version_OK="no" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 3981 | |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 3982 | fi |
| 3983 | rm -f conftest* |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 3984 | |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 3985 | fi |
| 3986 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 3987 | echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 3988 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 3989 | echo $ac_n "checking for thread-safe OpenGL version""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3990 | echo "configure:3991: checking for thread-safe OpenGL version" >&5 |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 3991 | if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 3992 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3993 | else |
| 3994 | saved_libs=$LIBS |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 3995 | LIBS="$X_LIBS -lGL" |
| 3996 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 3997 | #line 3998 "configure" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 3998 | #include "confdefs.h" |
| 3999 | |
| 4000 | int main() { |
| 4001 | pthread_getspecific(); |
| 4002 | ; return 0; } |
| 4003 | EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 4004 | if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 4005 | rm -rf conftest* |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 4006 | wine_cv_opengl_version_threadsafe="yes" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 4007 | else |
| 4008 | echo "configure: failed program was:" >&5 |
| 4009 | cat conftest.$ac_ext >&5 |
| 4010 | rm -rf conftest* |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 4011 | wine_cv_opengl_version_threadsafe="no" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 4012 | fi |
| 4013 | rm -f conftest* |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 4014 | LIBS=$saved_libs |
| 4015 | |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 4016 | fi |
| 4017 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 4018 | echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6 |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 4019 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 4020 | if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \) |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 4021 | then |
| 4022 | echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 4023 | echo "configure:4024: checking for glXCreateContext in -lGL" >&5 |
Lionel Ulmer | 5d68f79 | 1999-07-23 19:33:24 +0000 | [diff] [blame] | 4024 | ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'` |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4025 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4026 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4027 | else |
| 4028 | ac_save_LIBS="$LIBS" |
Marcus Meissner | 376ec88 | 2000-01-05 03:24:52 +0000 | [diff] [blame] | 4029 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4030 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 4031 | #line 4032 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4032 | #include "confdefs.h" |
| 4033 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4034 | /* We use char because int might match the return type of a gcc2 |
| 4035 | builtin and then its argument prototype would still apply. */ |
Lionel Ulmer | 5d68f79 | 1999-07-23 19:33:24 +0000 | [diff] [blame] | 4036 | char glXCreateContext(); |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4037 | |
| 4038 | int main() { |
Lionel Ulmer | 5d68f79 | 1999-07-23 19:33:24 +0000 | [diff] [blame] | 4039 | glXCreateContext() |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4040 | ; return 0; } |
| 4041 | EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 4042 | if { (eval echo configure:4043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4043 | rm -rf conftest* |
| 4044 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4045 | else |
| 4046 | echo "configure: failed program was:" >&5 |
| 4047 | cat conftest.$ac_ext >&5 |
| 4048 | rm -rf conftest* |
| 4049 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4050 | fi |
| 4051 | rm -f conftest* |
| 4052 | LIBS="$ac_save_LIBS" |
| 4053 | |
| 4054 | fi |
| 4055 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4056 | echo "$ac_t""yes" 1>&6 |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 4057 | X_PRE_LIBS="$X_PRE_LIBS -lGL" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 4058 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4059 | else |
| 4060 | echo "$ac_t""no" 1>&6 |
| 4061 | fi |
| 4062 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 4063 | |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 4064 | if test $ac_cv_lib_GL_glXCreateContext = "yes" |
| 4065 | then |
Marcus Meissner | 22a969b | 2000-08-08 20:46:50 +0000 | [diff] [blame] | 4066 | |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 4067 | OPENGLFILES='$(OPENGLFILES)' |
| 4068 | cat >> confdefs.h <<\EOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 4069 | #define HAVE_OPENGL 1 |
| 4070 | EOF |
| 4071 | |
Marcus Meissner | 22a969b | 2000-08-08 20:46:50 +0000 | [diff] [blame] | 4072 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 4073 | echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 4074 | echo "configure:4075: checking for glXGetProcAddressARB in -lGL" >&5 |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 4075 | ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'` |
| 4076 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4077 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4078 | else |
| 4079 | ac_save_LIBS="$LIBS" |
| 4080 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
| 4081 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 4082 | #line 4083 "configure" |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 4083 | #include "confdefs.h" |
| 4084 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4085 | /* We use char because int might match the return type of a gcc2 |
| 4086 | builtin and then its argument prototype would still apply. */ |
| 4087 | char glXGetProcAddressARB(); |
| 4088 | |
| 4089 | int main() { |
| 4090 | glXGetProcAddressARB() |
| 4091 | ; return 0; } |
| 4092 | EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 4093 | if { (eval echo configure:4094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 4094 | rm -rf conftest* |
| 4095 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4096 | else |
| 4097 | echo "configure: failed program was:" >&5 |
| 4098 | cat conftest.$ac_ext >&5 |
| 4099 | rm -rf conftest* |
| 4100 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4101 | fi |
| 4102 | rm -f conftest* |
| 4103 | LIBS="$ac_save_LIBS" |
| 4104 | |
| 4105 | fi |
| 4106 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4107 | echo "$ac_t""yes" 1>&6 |
| 4108 | cat >> confdefs.h <<\EOF |
| 4109 | #define HAVE_GLX_GETPROCADDRESS 1 |
| 4110 | EOF |
| 4111 | |
| 4112 | else |
| 4113 | echo "$ac_t""no" 1>&6 |
| 4114 | fi |
| 4115 | |
| 4116 | |
| 4117 | if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes" |
| 4118 | then |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 4119 | echo $ac_n "checking for OpenGL extension functions prototypes""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 4120 | echo "configure:4121: checking for OpenGL extension functions prototypes" >&5 |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 4121 | if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then |
| 4122 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4123 | else |
| 4124 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 4125 | #line 4126 "configure" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 4126 | #include "confdefs.h" |
| 4127 | #include <GL/gl.h> |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 4128 | #ifdef HAVE_GL_GLEXT_H |
| 4129 | # include <GL/glext.h> |
| 4130 | #endif |
| 4131 | |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 4132 | int main() { |
| 4133 | PFNGLCOLORTABLEEXTPROC test_proc; |
| 4134 | ; return 0; } |
| 4135 | EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 4136 | if { (eval echo configure:4137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 4137 | rm -rf conftest* |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 4138 | wine_cv_extension_prototypes="yes" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 4139 | else |
| 4140 | echo "configure: failed program was:" >&5 |
| 4141 | cat conftest.$ac_ext >&5 |
| 4142 | rm -rf conftest* |
| 4143 | wine_cv_extension_prototypes="no" |
| 4144 | |
| 4145 | fi |
| 4146 | rm -f conftest* |
| 4147 | |
| 4148 | fi |
| 4149 | |
| 4150 | echo "$ac_t""$wine_cv_extension_prototypes" 1>&6 |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 4151 | if test $wine_cv_extension_prototypes = "yes" |
| 4152 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 4153 | cat >> confdefs.h <<\EOF |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 4154 | #define HAVE_GLEXT_PROTOTYPES 1 |
| 4155 | EOF |
| 4156 | |
| 4157 | fi |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 4158 | fi |
Alexandre Julliard | d6c0f9f | 2001-01-04 22:44:55 +0000 | [diff] [blame] | 4159 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 4160 | fi |
Marcus Meissner | 6e9ab40 | 2001-08-08 23:21:16 +0000 | [diff] [blame] | 4161 | echo $ac_n "checking for gluLookAt in -lGLU""... $ac_c" 1>&6 |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 4162 | echo "configure:4163: checking for gluLookAt in -lGLU" >&5 |
Marcus Meissner | 6e9ab40 | 2001-08-08 23:21:16 +0000 | [diff] [blame] | 4163 | ac_lib_var=`echo GLU'_'gluLookAt | sed 'y%./+-%__p_%'` |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 4164 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4165 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4166 | else |
| 4167 | ac_save_LIBS="$LIBS" |
| 4168 | LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS |
| 4169 | $LIBS" |
| 4170 | cat > conftest.$ac_ext <<EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 4171 | #line 4172 "configure" |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 4172 | #include "confdefs.h" |
| 4173 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4174 | /* We use char because int might match the return type of a gcc2 |
| 4175 | builtin and then its argument prototype would still apply. */ |
Marcus Meissner | 6e9ab40 | 2001-08-08 23:21:16 +0000 | [diff] [blame] | 4176 | char gluLookAt(); |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 4177 | |
| 4178 | int main() { |
Marcus Meissner | 6e9ab40 | 2001-08-08 23:21:16 +0000 | [diff] [blame] | 4179 | gluLookAt() |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 4180 | ; return 0; } |
| 4181 | EOF |
Andreas Mohr | a69c039 | 2001-12-26 20:40:47 +0000 | [diff] [blame] | 4182 | if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 4183 | rm -rf conftest* |
| 4184 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4185 | else |
| 4186 | echo "configure: failed program was:" >&5 |
| 4187 | cat conftest.$ac_ext >&5 |
| 4188 | rm -rf conftest* |
| 4189 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4190 | fi |
| 4191 | rm -f conftest* |
| 4192 | LIBS="$ac_save_LIBS" |
| 4193 | |
| 4194 | fi |
| 4195 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4196 | echo "$ac_t""yes" 1>&6 |
| 4197 | X_PRE_LIBS="$X_PRE_LIBS -lGLU" |
| 4198 | GLU32FILES='$(GLU32FILES)' |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 4199 | |
| 4200 | else |
| 4201 | echo "$ac_t""no" 1>&6 |
| 4202 | fi |
| 4203 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 4204 | fi |
| 4205 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4206 | fi |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 4207 | |
| 4208 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 4209 | XFILES='$(XFILES)' |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4210 | else |
| 4211 | XLIB="" |
| 4212 | X_CFLAGS="" |
| 4213 | X_LIBS="" |
| 4214 | fi |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 4215 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4216 | CURSESLIBS="" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 4217 | if test "$CURSES" = "yes" |
| 4218 | then |
| 4219 | for ac_hdr in ncurses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4220 | do |
| 4221 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4222 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4223 | echo "configure:4224: checking for $ac_hdr" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4224 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4225 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4226 | else |
| 4227 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4228 | #line 4229 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4229 | #include "confdefs.h" |
| 4230 | #include <$ac_hdr> |
| 4231 | EOF |
| 4232 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4233 | { (eval echo configure:4234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 4234 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4235 | if test -z "$ac_err"; then |
| 4236 | rm -rf conftest* |
| 4237 | eval "ac_cv_header_$ac_safe=yes" |
| 4238 | else |
| 4239 | echo "$ac_err" >&5 |
| 4240 | echo "configure: failed program was:" >&5 |
| 4241 | cat conftest.$ac_ext >&5 |
| 4242 | rm -rf conftest* |
| 4243 | eval "ac_cv_header_$ac_safe=no" |
| 4244 | fi |
| 4245 | rm -f conftest* |
| 4246 | fi |
| 4247 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4248 | echo "$ac_t""yes" 1>&6 |
| 4249 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4250 | cat >> confdefs.h <<EOF |
| 4251 | #define $ac_tr_hdr 1 |
| 4252 | EOF |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 4253 | echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4254 | echo "configure:4255: checking for waddch in -lncurses" >&5 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 4255 | ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'` |
| 4256 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4257 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4258 | else |
| 4259 | ac_save_LIBS="$LIBS" |
| 4260 | LIBS="-lncurses $LIBS" |
| 4261 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4262 | #line 4263 "configure" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 4263 | #include "confdefs.h" |
| 4264 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4265 | /* We use char because int might match the return type of a gcc2 |
| 4266 | builtin and then its argument prototype would still apply. */ |
| 4267 | char waddch(); |
| 4268 | |
| 4269 | int main() { |
| 4270 | waddch() |
| 4271 | ; return 0; } |
| 4272 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4273 | if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 4274 | rm -rf conftest* |
| 4275 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4276 | else |
| 4277 | echo "configure: failed program was:" >&5 |
| 4278 | cat conftest.$ac_ext >&5 |
| 4279 | rm -rf conftest* |
| 4280 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4281 | fi |
| 4282 | rm -f conftest* |
| 4283 | LIBS="$ac_save_LIBS" |
| 4284 | |
| 4285 | fi |
| 4286 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4287 | echo "$ac_t""yes" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4288 | cat >> confdefs.h <<\EOF |
| 4289 | #define HAVE_LIBNCURSES 1 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 4290 | EOF |
| 4291 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4292 | CURSESLIBS="-lncurses" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 4293 | else |
| 4294 | echo "$ac_t""no" 1>&6 |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 4295 | for ac_hdr in curses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4296 | do |
| 4297 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4298 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4299 | echo "configure:4300: checking for $ac_hdr" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4300 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4301 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4302 | else |
| 4303 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4304 | #line 4305 "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4305 | #include "confdefs.h" |
| 4306 | #include <$ac_hdr> |
| 4307 | EOF |
| 4308 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4309 | { (eval echo configure:4310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 4310 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 4311 | if test -z "$ac_err"; then |
| 4312 | rm -rf conftest* |
| 4313 | eval "ac_cv_header_$ac_safe=yes" |
| 4314 | else |
| 4315 | echo "$ac_err" >&5 |
| 4316 | echo "configure: failed program was:" >&5 |
| 4317 | cat conftest.$ac_ext >&5 |
| 4318 | rm -rf conftest* |
| 4319 | eval "ac_cv_header_$ac_safe=no" |
| 4320 | fi |
| 4321 | rm -f conftest* |
| 4322 | fi |
| 4323 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4324 | echo "$ac_t""yes" 1>&6 |
| 4325 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4326 | cat >> confdefs.h <<EOF |
| 4327 | #define $ac_tr_hdr 1 |
| 4328 | EOF |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 4329 | echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4330 | echo "configure:4331: checking for waddch in -lcurses" >&5 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 4331 | ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'` |
| 4332 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4333 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4334 | else |
| 4335 | ac_save_LIBS="$LIBS" |
| 4336 | LIBS="-lcurses $LIBS" |
| 4337 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4338 | #line 4339 "configure" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 4339 | #include "confdefs.h" |
| 4340 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4341 | /* We use char because int might match the return type of a gcc2 |
| 4342 | builtin and then its argument prototype would still apply. */ |
| 4343 | char waddch(); |
| 4344 | |
| 4345 | int main() { |
| 4346 | waddch() |
| 4347 | ; return 0; } |
| 4348 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4349 | if { (eval echo configure:4350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 4350 | rm -rf conftest* |
| 4351 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4352 | else |
| 4353 | echo "configure: failed program was:" >&5 |
| 4354 | cat conftest.$ac_ext >&5 |
| 4355 | rm -rf conftest* |
| 4356 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4357 | fi |
| 4358 | rm -f conftest* |
| 4359 | LIBS="$ac_save_LIBS" |
| 4360 | |
| 4361 | fi |
| 4362 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4363 | echo "$ac_t""yes" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4364 | cat >> confdefs.h <<\EOF |
| 4365 | #define HAVE_LIBCURSES 1 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 4366 | EOF |
| 4367 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4368 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 4369 | else |
| 4370 | echo "$ac_t""no" 1>&6 |
| 4371 | fi |
| 4372 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 4373 | else |
| 4374 | echo "$ac_t""no" 1>&6 |
| 4375 | fi |
| 4376 | done |
| 4377 | |
| 4378 | fi |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4379 | |
| 4380 | else |
| 4381 | echo "$ac_t""no" 1>&6 |
| 4382 | fi |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 4383 | done |
| 4384 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4385 | saved_libs="$LIBS" |
| 4386 | LIBS="$CURSESLIBS $LIBS" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 4387 | for ac_func in getbkgd resizeterm |
| 4388 | do |
| 4389 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4390 | echo "configure:4391: checking for $ac_func" >&5 |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 4391 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 4392 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4393 | else |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 4394 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4395 | #line 4396 "configure" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 4396 | #include "confdefs.h" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 4397 | /* System header to define __stub macros and hopefully few prototypes, |
| 4398 | which can conflict with char $ac_func(); below. */ |
| 4399 | #include <assert.h> |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 4400 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4401 | /* We use char because int might match the return type of a gcc2 |
| 4402 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 4403 | char $ac_func(); |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 4404 | |
| 4405 | int main() { |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 4406 | |
| 4407 | /* The GNU C library defines this for functions which it implements |
| 4408 | to always fail with ENOSYS. Some functions are actually named |
| 4409 | something starting with __ and the normal name is an alias. */ |
| 4410 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4411 | choke me |
| 4412 | #else |
| 4413 | $ac_func(); |
| 4414 | #endif |
| 4415 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 4416 | ; return 0; } |
| 4417 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4418 | if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 4419 | rm -rf conftest* |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 4420 | eval "ac_cv_func_$ac_func=yes" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 4421 | else |
| 4422 | echo "configure: failed program was:" >&5 |
| 4423 | cat conftest.$ac_ext >&5 |
| 4424 | rm -rf conftest* |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 4425 | eval "ac_cv_func_$ac_func=no" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 4426 | fi |
| 4427 | rm -f conftest* |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 4428 | fi |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 4429 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 4430 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4431 | echo "$ac_t""yes" 1>&6 |
| 4432 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4433 | cat >> confdefs.h <<EOF |
| 4434 | #define $ac_tr_func 1 |
| 4435 | EOF |
| 4436 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 4437 | else |
| 4438 | echo "$ac_t""no" 1>&6 |
| 4439 | fi |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 4440 | done |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 4441 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4442 | LIBS="$saved_libs" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 4443 | fi |
| 4444 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4445 | |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 4446 | CUPSLIBS="" |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 4447 | wine_cv_warn_cups_h=no |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 4448 | echo $ac_n "checking for cupsGetPPD in -lcups""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4449 | echo "configure:4450: checking for cupsGetPPD in -lcups" >&5 |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 4450 | ac_lib_var=`echo cups'_'cupsGetPPD | sed 'y%./+-%__p_%'` |
| 4451 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4452 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4453 | else |
| 4454 | ac_save_LIBS="$LIBS" |
| 4455 | LIBS="-lcups $LIBS" |
| 4456 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4457 | #line 4458 "configure" |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 4458 | #include "confdefs.h" |
| 4459 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4460 | /* We use char because int might match the return type of a gcc2 |
| 4461 | builtin and then its argument prototype would still apply. */ |
| 4462 | char cupsGetPPD(); |
| 4463 | |
| 4464 | int main() { |
| 4465 | cupsGetPPD() |
| 4466 | ; return 0; } |
| 4467 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4468 | if { (eval echo configure:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 4469 | rm -rf conftest* |
| 4470 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4471 | else |
| 4472 | echo "configure: failed program was:" >&5 |
| 4473 | cat conftest.$ac_ext >&5 |
| 4474 | rm -rf conftest* |
| 4475 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4476 | fi |
| 4477 | rm -f conftest* |
| 4478 | LIBS="$ac_save_LIBS" |
| 4479 | |
| 4480 | fi |
| 4481 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4482 | echo "$ac_t""yes" 1>&6 |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 4483 | ac_safe=`echo "cups/cups.h" | sed 'y%./+-%__p_%'` |
| 4484 | echo $ac_n "checking for cups/cups.h""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4485 | echo "configure:4486: checking for cups/cups.h" >&5 |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 4486 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4487 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4488 | else |
| 4489 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4490 | #line 4491 "configure" |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 4491 | #include "confdefs.h" |
| 4492 | #include <cups/cups.h> |
| 4493 | EOF |
| 4494 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4495 | { (eval echo configure:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 4496 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4497 | if test -z "$ac_err"; then |
| 4498 | rm -rf conftest* |
| 4499 | eval "ac_cv_header_$ac_safe=yes" |
| 4500 | else |
| 4501 | echo "$ac_err" >&5 |
| 4502 | echo "configure: failed program was:" >&5 |
| 4503 | cat conftest.$ac_ext >&5 |
| 4504 | rm -rf conftest* |
| 4505 | eval "ac_cv_header_$ac_safe=no" |
| 4506 | fi |
| 4507 | rm -f conftest* |
| 4508 | fi |
| 4509 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4510 | echo "$ac_t""yes" 1>&6 |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 4511 | cat >> confdefs.h <<\EOF |
| 4512 | #define HAVE_CUPS 1 |
| 4513 | EOF |
| 4514 | |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 4515 | CUPSLIBS="-lcups" |
| 4516 | else |
| 4517 | echo "$ac_t""no" 1>&6 |
| 4518 | wine_cv_warn_cups_h=yes |
| 4519 | fi |
| 4520 | |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 4521 | |
| 4522 | else |
| 4523 | echo "$ac_t""no" 1>&6 |
| 4524 | fi |
| 4525 | |
| 4526 | |
| 4527 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 4528 | echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4529 | echo "configure:4530: checking for FT_Init_FreeType in -lfreetype" >&5 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 4530 | ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'` |
| 4531 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4532 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4533 | else |
| 4534 | ac_save_LIBS="$LIBS" |
Dmitry Timoshkov | 8871a11 | 2001-11-06 22:26:53 +0000 | [diff] [blame] | 4535 | LIBS="-lfreetype $X_LIBS $LIBS" |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 4536 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4537 | #line 4538 "configure" |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 4538 | #include "confdefs.h" |
| 4539 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4540 | /* We use char because int might match the return type of a gcc2 |
| 4541 | builtin and then its argument prototype would still apply. */ |
| 4542 | char FT_Init_FreeType(); |
| 4543 | |
| 4544 | int main() { |
| 4545 | FT_Init_FreeType() |
| 4546 | ; return 0; } |
| 4547 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4548 | if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 4549 | rm -rf conftest* |
| 4550 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4551 | else |
| 4552 | echo "configure: failed program was:" >&5 |
| 4553 | cat conftest.$ac_ext >&5 |
| 4554 | rm -rf conftest* |
| 4555 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4556 | fi |
| 4557 | rm -f conftest* |
| 4558 | LIBS="$ac_save_LIBS" |
| 4559 | |
| 4560 | fi |
| 4561 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4562 | echo "$ac_t""yes" 1>&6 |
| 4563 | ft_lib=yes |
| 4564 | else |
| 4565 | echo "$ac_t""no" 1>&6 |
| 4566 | ft_lib=no |
| 4567 | fi |
| 4568 | |
| 4569 | if test "$ft_lib" = "no" |
| 4570 | then |
| 4571 | FREETYPELIBS="" |
| 4572 | FREETYPEINCL="" |
| 4573 | wine_cv_msg_freetype=no |
| 4574 | else |
| 4575 | # Extract the first word of "freetype-config", so it can be a program name with args. |
| 4576 | set dummy freetype-config; ac_word=$2 |
| 4577 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4578 | echo "configure:4579: checking for $ac_word" >&5 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 4579 | if eval "test \"`echo '$''{'ac_cv_prog_ft_devel'+set}'`\" = set"; then |
| 4580 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4581 | else |
| 4582 | if test -n "$ft_devel"; then |
| 4583 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 4584 | else |
| 4585 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4586 | ac_dummy="$PATH" |
| 4587 | for ac_dir in $ac_dummy; do |
| 4588 | test -z "$ac_dir" && ac_dir=. |
| 4589 | if test -f $ac_dir/$ac_word; then |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 4590 | ac_cv_prog_ft_devel="freetype-config" |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 4591 | break |
| 4592 | fi |
| 4593 | done |
| 4594 | IFS="$ac_save_ifs" |
| 4595 | test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no" |
| 4596 | fi |
| 4597 | fi |
| 4598 | ft_devel="$ac_cv_prog_ft_devel" |
| 4599 | if test -n "$ft_devel"; then |
| 4600 | echo "$ac_t""$ft_devel" 1>&6 |
| 4601 | else |
| 4602 | echo "$ac_t""no" 1>&6 |
| 4603 | fi |
| 4604 | |
| 4605 | if test "$ft_devel" = "no" |
| 4606 | then |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 4607 | # Extract the first word of "freetype2-config", so it can be a program name with args. |
| 4608 | set dummy freetype2-config; ac_word=$2 |
| 4609 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4610 | echo "configure:4611: checking for $ac_word" >&5 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 4611 | if eval "test \"`echo '$''{'ac_cv_prog_ft_devel2'+set}'`\" = set"; then |
| 4612 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4613 | else |
| 4614 | if test -n "$ft_devel2"; then |
| 4615 | ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test. |
| 4616 | else |
| 4617 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4618 | ac_dummy="$PATH" |
| 4619 | for ac_dir in $ac_dummy; do |
| 4620 | test -z "$ac_dir" && ac_dir=. |
| 4621 | if test -f $ac_dir/$ac_word; then |
| 4622 | ac_cv_prog_ft_devel2="freetype2-config" |
| 4623 | break |
| 4624 | fi |
| 4625 | done |
| 4626 | IFS="$ac_save_ifs" |
| 4627 | test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no" |
| 4628 | fi |
| 4629 | fi |
| 4630 | ft_devel2="$ac_cv_prog_ft_devel2" |
| 4631 | if test -n "$ft_devel2"; then |
| 4632 | echo "$ac_t""$ft_devel2" 1>&6 |
| 4633 | else |
| 4634 | echo "$ac_t""no" 1>&6 |
| 4635 | fi |
| 4636 | |
| 4637 | if test "$ft_devel2" = "freetype2-config" |
| 4638 | then |
| 4639 | ft_devel=$ft_devel2 |
| 4640 | fi |
| 4641 | fi |
| 4642 | if test "$ft_devel" = "no" |
| 4643 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 4644 | FREETYPELIBS="" |
| 4645 | FREETYPEINCL="" |
| 4646 | wine_cv_msg_freetype=yes |
| 4647 | else |
| 4648 | cat >> confdefs.h <<\EOF |
| 4649 | #define HAVE_FREETYPE 1 |
| 4650 | EOF |
| 4651 | |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 4652 | FREETYPELIBS=`$ft_devel --libs` |
| 4653 | FREETYPEINCL=`$ft_devel --cflags` |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 4654 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 4655 | CPPFLAGS="$FREETYPEINCL $CPPFLAGS" |
| 4656 | for ac_hdr in freetype/freetype.h \ |
| 4657 | freetype/ftglyph.h \ |
| 4658 | freetype/tttables.h \ |
| 4659 | freetype/ftnames.h \ |
| 4660 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 4661 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 4662 | freetype/ftoutln.h \ |
| 4663 | freetype/internal/sfnt.h |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 4664 | do |
| 4665 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4666 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4667 | echo "configure:4668: checking for $ac_hdr" >&5 |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 4668 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4669 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4670 | else |
| 4671 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4672 | #line 4673 "configure" |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 4673 | #include "confdefs.h" |
| 4674 | #include <$ac_hdr> |
| 4675 | EOF |
| 4676 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4677 | { (eval echo configure:4678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 4678 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4679 | if test -z "$ac_err"; then |
| 4680 | rm -rf conftest* |
| 4681 | eval "ac_cv_header_$ac_safe=yes" |
| 4682 | else |
| 4683 | echo "$ac_err" >&5 |
| 4684 | echo "configure: failed program was:" >&5 |
| 4685 | cat conftest.$ac_ext >&5 |
| 4686 | rm -rf conftest* |
| 4687 | eval "ac_cv_header_$ac_safe=no" |
| 4688 | fi |
| 4689 | rm -f conftest* |
| 4690 | fi |
| 4691 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4692 | echo "$ac_t""yes" 1>&6 |
| 4693 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4694 | cat >> confdefs.h <<EOF |
| 4695 | #define $ac_tr_hdr 1 |
| 4696 | EOF |
| 4697 | |
| 4698 | else |
| 4699 | echo "$ac_t""no" 1>&6 |
| 4700 | fi |
| 4701 | done |
| 4702 | |
| 4703 | CPPFLAGS="$ac_save_CPPFLAGS" |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 4704 | wine_cv_msg_freetype=no |
| 4705 | fi |
| 4706 | fi |
| 4707 | |
| 4708 | |
| 4709 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 4710 | echo $ac_n "checking for parport header/ppdev.h""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4711 | echo "configure:4712: checking for parport header/ppdev.h" >&5 |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 4712 | if eval "test \"`echo '$''{'ac_cv_c_ppdev'+set}'`\" = set"; then |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 4713 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4714 | else |
| 4715 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4716 | #line 4717 "configure" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 4717 | #include "confdefs.h" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 4718 | #include <linux/ppdev.h> |
| 4719 | int main() { |
| 4720 | ioctl (1,PPCLAIM,0) |
| 4721 | ; return 0; } |
| 4722 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4723 | if { (eval echo configure:4724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 4724 | rm -rf conftest* |
| 4725 | ac_cv_c_ppdev="yes" |
| 4726 | else |
| 4727 | echo "configure: failed program was:" >&5 |
| 4728 | cat conftest.$ac_ext >&5 |
| 4729 | rm -rf conftest* |
| 4730 | ac_cv_c_ppdev="no" |
| 4731 | fi |
| 4732 | rm -f conftest* |
| 4733 | |
| 4734 | fi |
| 4735 | |
| 4736 | echo "$ac_t""$ac_cv_c_ppdev" 1>&6 |
| 4737 | if test "$ac_cv_c_ppdev" = "yes" |
| 4738 | then |
| 4739 | cat >> confdefs.h <<\EOF |
| 4740 | #define HAVE_PPDEV 1 |
| 4741 | EOF |
| 4742 | |
| 4743 | fi |
| 4744 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 4745 | echo $ac_n "checking for GNU style IPX support""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4746 | echo "configure:4747: checking for GNU style IPX support" >&5 |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 4747 | if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then |
| 4748 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4749 | else |
| 4750 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4751 | #line 4752 "configure" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 4752 | #include "confdefs.h" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 4753 | #include <sys/socket.h> |
| 4754 | #include <netipx/ipx.h> |
| 4755 | int main() { |
| 4756 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
| 4757 | ; return 0; } |
| 4758 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4759 | if { (eval echo configure:4760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 4760 | rm -rf conftest* |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 4761 | ac_cv_c_ipx_gnu="yes" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 4762 | else |
| 4763 | echo "configure: failed program was:" >&5 |
| 4764 | cat conftest.$ac_ext >&5 |
| 4765 | rm -rf conftest* |
| 4766 | ac_cv_c_ipx_gnu="no" |
| 4767 | fi |
| 4768 | rm -f conftest* |
| 4769 | |
| 4770 | fi |
| 4771 | |
| 4772 | echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6 |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 4773 | if test "$ac_cv_c_ipx_gnu" = "yes" |
| 4774 | then |
| 4775 | cat >> confdefs.h <<\EOF |
| 4776 | #define HAVE_IPX_GNU 1 |
| 4777 | EOF |
| 4778 | |
| 4779 | fi |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 4780 | |
| 4781 | if test "$ac_cv_c_ipx_gnu" = "no" |
| 4782 | then |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 4783 | echo $ac_n "checking for linux style IPX support""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4784 | echo "configure:4785: checking for linux style IPX support" >&5 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 4785 | if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then |
| 4786 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4787 | else |
| 4788 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4789 | #line 4790 "configure" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 4790 | #include "confdefs.h" |
| 4791 | #include <sys/socket.h> |
| 4792 | #include <asm/types.h> |
| 4793 | #include <linux/ipx.h> |
| 4794 | int main() { |
| 4795 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
| 4796 | ; return 0; } |
| 4797 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4798 | if { (eval echo configure:4799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 4799 | rm -rf conftest* |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 4800 | ac_cv_c_ipx_linux="yes" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 4801 | else |
| 4802 | echo "configure: failed program was:" >&5 |
| 4803 | cat conftest.$ac_ext >&5 |
| 4804 | rm -rf conftest* |
| 4805 | ac_cv_c_ipx_linux="no" |
| 4806 | fi |
| 4807 | rm -f conftest* |
| 4808 | |
| 4809 | fi |
| 4810 | |
| 4811 | echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6 |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 4812 | if test "$ac_cv_c_ipx_linux" = "yes" |
| 4813 | then |
| 4814 | cat >> confdefs.h <<\EOF |
| 4815 | #define HAVE_IPX_LINUX 1 |
| 4816 | EOF |
| 4817 | |
| 4818 | fi |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 4819 | fi |
| 4820 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4821 | for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4822 | do |
| 4823 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4824 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4825 | echo "configure:4826: checking for $ac_hdr" >&5 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4826 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4827 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4828 | else |
| 4829 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4830 | #line 4831 "configure" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4831 | #include "confdefs.h" |
| 4832 | #include <$ac_hdr> |
| 4833 | EOF |
| 4834 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4835 | { (eval echo configure:4836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 4836 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4837 | if test -z "$ac_err"; then |
| 4838 | rm -rf conftest* |
| 4839 | eval "ac_cv_header_$ac_safe=yes" |
| 4840 | else |
| 4841 | echo "$ac_err" >&5 |
| 4842 | echo "configure: failed program was:" >&5 |
| 4843 | cat conftest.$ac_ext >&5 |
| 4844 | rm -rf conftest* |
| 4845 | eval "ac_cv_header_$ac_safe=no" |
| 4846 | fi |
| 4847 | rm -f conftest* |
| 4848 | fi |
| 4849 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4850 | echo "$ac_t""yes" 1>&6 |
| 4851 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4852 | cat >> confdefs.h <<EOF |
| 4853 | #define $ac_tr_hdr 1 |
| 4854 | EOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4855 | break |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4856 | else |
| 4857 | echo "$ac_t""no" 1>&6 |
| 4858 | fi |
| 4859 | done |
| 4860 | |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 4861 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 4862 | echo $ac_n "checking for Open Sound System""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4863 | echo "configure:4864: checking for Open Sound System" >&5 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 4864 | if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then |
| 4865 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4866 | else |
| 4867 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4868 | #line 4869 "configure" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 4869 | #include "confdefs.h" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4870 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4871 | #if defined(HAVE_SYS_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4872 | #include <sys/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4873 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4874 | #include <machine/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4875 | #elif defined(HAVE_SOUNDCARD_H) |
| 4876 | #include <soundcard.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4877 | #endif |
| 4878 | |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 4879 | int main() { |
| 4880 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4881 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 4882 | /* check for one of the Open Sound System specific SNDCTL_ defines */ |
| 4883 | #if !defined(SNDCTL_DSP_STEREO) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 4884 | #error No open sound system |
| 4885 | #endif |
| 4886 | |
| 4887 | ; return 0; } |
| 4888 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4889 | if { (eval echo configure:4890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 4890 | rm -rf conftest* |
| 4891 | ac_cv_c_opensoundsystem="yes" |
| 4892 | else |
| 4893 | echo "configure: failed program was:" >&5 |
| 4894 | cat conftest.$ac_ext >&5 |
| 4895 | rm -rf conftest* |
| 4896 | ac_cv_c_opensoundsystem="no" |
| 4897 | fi |
| 4898 | rm -f conftest* |
| 4899 | fi |
| 4900 | |
| 4901 | echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6 |
| 4902 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 4903 | if test "$ac_cv_c_opensoundsystem" = "yes" |
| 4904 | then |
| 4905 | cat >> confdefs.h <<\EOF |
| 4906 | #define HAVE_OSS 1 |
| 4907 | EOF |
| 4908 | |
| 4909 | fi |
| 4910 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 4911 | echo $ac_n "checking for Open Sound System/MIDI interface""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4912 | echo "configure:4913: checking for Open Sound System/MIDI interface" >&5 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 4913 | if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then |
| 4914 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4915 | else |
| 4916 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4917 | #line 4918 "configure" |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 4918 | #include "confdefs.h" |
| 4919 | |
| 4920 | #if defined(HAVE_SYS_SOUNDCARD_H) |
| 4921 | #include <sys/soundcard.h> |
| 4922 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
| 4923 | #include <machine/soundcard.h> |
| 4924 | #elif defined(HAVE_SOUNDCARD_H) |
| 4925 | #include <soundcard.h> |
| 4926 | #endif |
| 4927 | |
| 4928 | int main() { |
| 4929 | |
| 4930 | |
| 4931 | /* check for one of the Open Sound System specific SNDCTL_SEQ defines */ |
| 4932 | #if !defined(SNDCTL_SEQ_SYNC) |
| 4933 | #error No open sound system MIDI interface |
| 4934 | #endif |
| 4935 | |
| 4936 | ; return 0; } |
| 4937 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4938 | if { (eval echo configure:4939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 4939 | rm -rf conftest* |
| 4940 | ac_cv_c_opensoundsystem_midi="yes" |
| 4941 | else |
| 4942 | echo "configure: failed program was:" >&5 |
| 4943 | cat conftest.$ac_ext >&5 |
| 4944 | rm -rf conftest* |
| 4945 | ac_cv_c_opensoundsystem_midi="no" |
| 4946 | fi |
| 4947 | rm -f conftest* |
| 4948 | fi |
| 4949 | |
| 4950 | echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6 |
| 4951 | |
| 4952 | if test "$ac_cv_c_opensoundsystem_midi" = "yes" |
| 4953 | then |
| 4954 | cat >> confdefs.h <<\EOF |
| 4955 | #define HAVE_OSS_MIDI 1 |
| 4956 | EOF |
| 4957 | |
| 4958 | fi |
| 4959 | |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4960 | if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi |
| 4961 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4962 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 4963 | echo $ac_n "checking whether mmap64 works defined as mmap""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4964 | echo "configure:4965: checking whether mmap64 works defined as mmap" >&5 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 4965 | if eval "test \"`echo '$''{'ac_cv_mmap64_works'+set}'`\" = set"; then |
| 4966 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4967 | else |
| 4968 | if test "$cross_compiling" = yes; then |
| 4969 | ac_cv_mmap64_works="no" |
| 4970 | else |
| 4971 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 4972 | #line 4973 "configure" |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 4973 | #include "confdefs.h" |
| 4974 | |
| 4975 | #define _FILE_OFFSET_BITS 64 |
| 4976 | #include <stdio.h> |
| 4977 | #include <unistd.h> |
| 4978 | #include <fcntl.h> |
| 4979 | #include <sys/mman.h> |
| 4980 | #include <errno.h> |
| 4981 | |
| 4982 | int main(int argc,char **argv) { |
| 4983 | int fd = open("conftest.map",O_CREAT|O_RDWR,0600); |
| 4984 | if (fd == -1) exit(1); |
| 4985 | |
| 4986 | unlink("conftest.map"); |
| 4987 | |
| 4988 | write(fd,"test",4); |
| 4989 | |
| 4990 | if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) && |
| 4991 | (errno == EINVAL) |
| 4992 | ) { |
| 4993 | exit(1); |
| 4994 | } |
| 4995 | close(fd); |
| 4996 | fprintf(stderr,"success!\n"); |
| 4997 | exit(0); |
| 4998 | } |
| 4999 | |
| 5000 | |
| 5001 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5002 | if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 5003 | then |
| 5004 | ac_cv_mmap64_works="yes" |
| 5005 | else |
| 5006 | echo "configure: failed program was:" >&5 |
| 5007 | cat conftest.$ac_ext >&5 |
| 5008 | rm -fr conftest* |
| 5009 | ac_cv_mmap64_works="no" |
| 5010 | fi |
| 5011 | rm -fr conftest* |
| 5012 | fi |
| 5013 | |
| 5014 | fi |
| 5015 | |
| 5016 | echo "$ac_t""$ac_cv_mmap64_works" 1>&6 |
| 5017 | |
| 5018 | if test "$ac_cv_mmap64_works" = "yes" |
| 5019 | then |
| 5020 | cat >> confdefs.h <<\EOF |
| 5021 | #define _FILE_OFFSET_BITS 64 |
| 5022 | EOF |
| 5023 | |
| 5024 | fi |
| 5025 | |
| 5026 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 5027 | if test "x${GCC}" = "xyes" |
| 5028 | then |
| 5029 | CFLAGS="$CFLAGS -Wall" |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 5030 | echo $ac_n "checking for gcc strength-reduce bug""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5031 | echo "configure:5032: checking for gcc strength-reduce bug" >&5 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 5032 | if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then |
| 5033 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5034 | else |
| 5035 | if test "$cross_compiling" = yes; then |
| 5036 | ac_cv_c_gcc_strength_bug="yes" |
| 5037 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5038 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5039 | #line 5040 "configure" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 5040 | #include "confdefs.h" |
| 5041 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 5042 | int L[4] = {0,1,2,3}; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 5043 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 5044 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 5045 | unsigned int B = 3; |
| 5046 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 5047 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 5048 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 5049 | L[i] = 4; |
| 5050 | |
| 5051 | exit( Array[1] != -2 || L[2] != 3); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 5052 | } |
| 5053 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5054 | if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5055 | then |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 5056 | ac_cv_c_gcc_strength_bug="no" |
| 5057 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5058 | echo "configure: failed program was:" >&5 |
| 5059 | cat conftest.$ac_ext >&5 |
| 5060 | rm -fr conftest* |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 5061 | ac_cv_c_gcc_strength_bug="yes" |
| 5062 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5063 | rm -fr conftest* |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 5064 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5065 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 5066 | fi |
| 5067 | |
| 5068 | echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6 |
| 5069 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 5070 | then |
| 5071 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 5072 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 5073 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 5074 | echo $ac_n "checking for gcc -mpreferred-stack-boundary=2 support""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5075 | echo "configure:5076: checking for gcc -mpreferred-stack-boundary=2 support" >&5 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 5076 | if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then |
| 5077 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5078 | else |
| 5079 | saved_cflags=$CFLAGS |
| 5080 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" |
| 5081 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5082 | #line 5083 "configure" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 5083 | #include "confdefs.h" |
| 5084 | |
| 5085 | int main() { |
| 5086 | return 0 |
| 5087 | ; return 0; } |
| 5088 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5089 | if { (eval echo configure:5090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 5090 | rm -rf conftest* |
| 5091 | ac_cv_c_gcc_stack_boundary="yes" |
| 5092 | else |
| 5093 | echo "configure: failed program was:" >&5 |
| 5094 | cat conftest.$ac_ext >&5 |
| 5095 | rm -rf conftest* |
| 5096 | ac_cv_c_gcc_stack_boundary="no" |
| 5097 | fi |
| 5098 | rm -f conftest* |
| 5099 | CFLAGS=$saved_cflags |
| 5100 | |
| 5101 | fi |
| 5102 | |
| 5103 | echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6 |
| 5104 | if test "$ac_cv_c_gcc_stack_boundary" = "yes" |
| 5105 | then |
| 5106 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" |
| 5107 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 5108 | fi |
| 5109 | |
| 5110 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 5111 | echo $ac_n "checking whether .type must sit inside a .def directive""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5112 | echo "configure:5113: checking whether .type must sit inside a .def directive" >&5 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 5113 | if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then |
| 5114 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5115 | else |
| 5116 | saved_libs=$LIBS |
| 5117 | LIBS="conftest_asm.s $LIBS" |
| 5118 | cat > conftest_asm.s <<EOF |
| 5119 | .globl _ac_test |
| 5120 | .def _ac_test; .scl 2; .type 32; .endef |
| 5121 | _ac_test: |
| 5122 | .long 0 |
| 5123 | EOF |
| 5124 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5125 | #line 5126 "configure" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 5126 | #include "confdefs.h" |
| 5127 | |
| 5128 | int main() { |
| 5129 | |
| 5130 | ; return 0; } |
| 5131 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5132 | if { (eval echo configure:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 5133 | rm -rf conftest* |
| 5134 | ac_cv_c_type_in_def="yes" |
| 5135 | else |
| 5136 | echo "configure: failed program was:" >&5 |
| 5137 | cat conftest.$ac_ext >&5 |
| 5138 | rm -rf conftest* |
| 5139 | ac_cv_c_type_in_def="no" |
| 5140 | fi |
| 5141 | rm -f conftest* |
| 5142 | LIBS=$saved_libs |
| 5143 | fi |
| 5144 | |
| 5145 | echo "$ac_t""$ac_cv_c_type_in_def" 1>&6 |
| 5146 | if test "$ac_cv_c_type_in_def" = "yes" |
| 5147 | then |
| 5148 | cat >> confdefs.h <<\EOF |
| 5149 | #define NEED_TYPE_IN_DEF 1 |
| 5150 | EOF |
| 5151 | |
| 5152 | fi |
| 5153 | |
| 5154 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 5155 | echo $ac_n "checking whether external symbols need an underscore prefix""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5156 | echo "configure:5157: checking whether external symbols need an underscore prefix" >&5 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 5157 | if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then |
| 5158 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5159 | else |
| 5160 | saved_libs=$LIBS |
| 5161 | LIBS="conftest_asm.s $LIBS" |
| 5162 | cat > conftest_asm.s <<EOF |
| 5163 | .globl _ac_test |
| 5164 | _ac_test: |
| 5165 | .long 0 |
| 5166 | EOF |
| 5167 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5168 | #line 5169 "configure" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 5169 | #include "confdefs.h" |
| 5170 | extern int ac_test; |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5171 | int main() { |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 5172 | if (ac_test) return 1 |
| 5173 | ; return 0; } |
| 5174 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5175 | if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 5176 | rm -rf conftest* |
| 5177 | ac_cv_c_extern_prefix="yes" |
| 5178 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5179 | echo "configure: failed program was:" >&5 |
| 5180 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 5181 | rm -rf conftest* |
| 5182 | ac_cv_c_extern_prefix="no" |
| 5183 | fi |
| 5184 | rm -f conftest* |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 5185 | LIBS=$saved_libs |
| 5186 | fi |
| 5187 | |
| 5188 | echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6 |
| 5189 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 5190 | then |
| 5191 | cat >> confdefs.h <<\EOF |
| 5192 | #define NEED_UNDERSCORE_PREFIX 1 |
| 5193 | EOF |
| 5194 | |
| 5195 | fi |
| 5196 | |
| 5197 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 5198 | echo $ac_n "checking whether assembler accepts .string""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5199 | echo "configure:5200: checking whether assembler accepts .string" >&5 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 5200 | if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then |
| 5201 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5202 | else |
| 5203 | saved_libs=$LIBS |
| 5204 | LIBS="conftest_asm.s $LIBS" |
| 5205 | cat > conftest_asm.s <<EOF |
| 5206 | .string "test" |
| 5207 | EOF |
| 5208 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5209 | #line 5210 "configure" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 5210 | #include "confdefs.h" |
| 5211 | |
| 5212 | int main() { |
| 5213 | |
| 5214 | ; return 0; } |
| 5215 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5216 | if { (eval echo configure:5217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 5217 | rm -rf conftest* |
| 5218 | ac_cv_c_asm_string="yes" |
| 5219 | else |
| 5220 | echo "configure: failed program was:" >&5 |
| 5221 | cat conftest.$ac_ext >&5 |
| 5222 | rm -rf conftest* |
| 5223 | ac_cv_c_asm_string="no" |
| 5224 | fi |
| 5225 | rm -f conftest* |
| 5226 | LIBS=$saved_libs |
| 5227 | fi |
| 5228 | |
| 5229 | echo "$ac_t""$ac_cv_c_asm_string" 1>&6 |
| 5230 | if test "$ac_cv_c_asm_string" = "yes" |
| 5231 | then |
| 5232 | cat >> confdefs.h <<\EOF |
| 5233 | #define HAVE_ASM_STRING 1 |
| 5234 | EOF |
| 5235 | |
| 5236 | fi |
| 5237 | |
| 5238 | |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 5239 | LDSHARED="" |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 5240 | LDDLLFLAGS="" |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 5241 | if test "$LIBEXT" = "so" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5242 | then |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 5243 | echo $ac_n "checking whether we can build a GNU style ELF dll""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5244 | echo "configure:5245: checking whether we can build a GNU style ELF dll" >&5 |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 5245 | if eval "test \"`echo '$''{'ac_cv_c_dll_gnuelf'+set}'`\" = set"; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5246 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5247 | else |
| 5248 | saved_cflags=$CFLAGS |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 5249 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5250 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5251 | #line 5252 "configure" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5252 | #include "confdefs.h" |
| 5253 | |
| 5254 | int main() { |
| 5255 | return 1 |
| 5256 | ; return 0; } |
| 5257 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5258 | if { (eval echo configure:5259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5259 | rm -rf conftest* |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 5260 | ac_cv_c_dll_gnuelf="yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5261 | else |
| 5262 | echo "configure: failed program was:" >&5 |
| 5263 | cat conftest.$ac_ext >&5 |
| 5264 | rm -rf conftest* |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 5265 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5266 | fi |
| 5267 | rm -f conftest* |
| 5268 | CFLAGS=$saved_cflags |
| 5269 | |
| 5270 | fi |
| 5271 | |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 5272 | echo "$ac_t""$ac_cv_c_dll_gnuelf" 1>&6 |
| 5273 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5274 | then |
Jeremy White | c7b4ed7 | 2001-07-14 00:49:50 +0000 | [diff] [blame] | 5275 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 5276 | LDDLLFLAGS="-Wl,-Bsymbolic" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5277 | else |
Patrik Stridvall | a9ee4a2 | 2000-01-30 00:36:50 +0000 | [diff] [blame] | 5278 | echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5279 | echo "configure:5280: checking whether we can build a UnixWare (Solaris) dll" >&5 |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5280 | if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 5281 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5282 | else |
| 5283 | saved_cflags=$CFLAGS |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 5284 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 5285 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5286 | #line 5287 "configure" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 5287 | #include "confdefs.h" |
| 5288 | |
| 5289 | int main() { |
| 5290 | return 1 |
| 5291 | ; return 0; } |
| 5292 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5293 | if { (eval echo configure:5294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5294 | rm -rf conftest* |
| 5295 | ac_cv_c_dll_unixware="yes" |
| 5296 | else |
| 5297 | echo "configure: failed program was:" >&5 |
| 5298 | cat conftest.$ac_ext >&5 |
| 5299 | rm -rf conftest* |
| 5300 | ac_cv_c_dll_unixware="no" |
| 5301 | fi |
| 5302 | rm -f conftest* |
| 5303 | CFLAGS=$saved_cflags |
| 5304 | |
| 5305 | fi |
| 5306 | |
| 5307 | echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6 |
| 5308 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 5309 | then |
Jeremy White | c7b4ed7 | 2001-07-14 00:49:50 +0000 | [diff] [blame] | 5310 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 5311 | LDDLLFLAGS="-Wl,-B,symbolic" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 5312 | fi |
| 5313 | fi |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 5314 | if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 5315 | then |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 5316 | LIBEXT="a" |
| 5317 | if test "$DLLWRAP" = "dllwrap"; then |
| 5318 | if test "$CYGWIN" = "yes"; then |
| 5319 | echo "*** use dllwrap for building shared library." |
| 5320 | LIBEXT="dll" |
| 5321 | fi |
| 5322 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5323 | fi |
| 5324 | fi |
| 5325 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 5326 | if test "$LIBEXT" = "a"; then |
| 5327 | echo "*** It is currently not possible to build WINE without shared" |
| 5328 | echo "*** library (.so) support to allow transparent switch between .so" |
| 5329 | echo "*** and .dll files." |
| 5330 | echo "*** If you are using Linux, you will need a newer binutils." |
| 5331 | exit 1 |
| 5332 | fi |
| 5333 | |
Alexandre Julliard | 0adad95 | 2000-01-26 01:45:58 +0000 | [diff] [blame] | 5334 | DLLFLAGS="" |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 5335 | LDPATH="" |
Alexandre Julliard | 0adad95 | 2000-01-26 01:45:58 +0000 | [diff] [blame] | 5336 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 5337 | if test "$LIBEXT" = "so"; then |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 5338 | DLLFLAGS="-fPIC" |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 5339 | LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\"" |
| 5340 | elif test "$LIBEXT" = "dll"; then |
| 5341 | #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 5342 | LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\"" |
Patrik Stridvall | a9ee4a2 | 2000-01-30 00:36:50 +0000 | [diff] [blame] | 5343 | fi |
Alexandre Julliard | 0adad95 | 2000-01-26 01:45:58 +0000 | [diff] [blame] | 5344 | |
| 5345 | |
| 5346 | |
| 5347 | |
| 5348 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5349 | |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 5350 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 5351 | |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5352 | |
| 5353 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5354 | wine_cv_libc_reentrant=no |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5355 | |
| 5356 | echo $ac_n "checking for reentrant libc: __errno_location""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5357 | echo "configure:5358: checking for reentrant libc: __errno_location" >&5 |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5358 | if eval "test \"`echo '$''{'wine_cv_libc_r___errno_location'+set}'`\" = set"; then |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5359 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5360 | else |
| 5361 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5362 | wine_cv_libc_r___errno_location=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5363 | else |
| 5364 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5365 | #line 5366 "configure" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5366 | #include "confdefs.h" |
| 5367 | int myerrno = 0; |
| 5368 | char buf[256]; |
| 5369 | int *__errno_location(){return &myerrno;} |
| 5370 | main(){connect(0,buf,255); exit(!myerrno);} |
| 5371 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5372 | if { (eval echo configure:5373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5373 | then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5374 | wine_cv_libc_r___errno_location=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5375 | else |
| 5376 | echo "configure: failed program was:" >&5 |
| 5377 | cat conftest.$ac_ext >&5 |
| 5378 | rm -fr conftest* |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5379 | wine_cv_libc_r___errno_location=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5380 | fi |
| 5381 | rm -fr conftest* |
| 5382 | fi |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 5383 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5384 | |
| 5385 | fi |
| 5386 | |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5387 | echo "$ac_t""$wine_cv_libc_r___errno_location" 1>&6 |
| 5388 | if test "$wine_cv_libc_r___errno_location" = "yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5389 | then |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5390 | wine_cv_libc_reentrant=__errno_location |
| 5391 | fi |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5392 | |
| 5393 | |
| 5394 | echo $ac_n "checking for reentrant libc: __error""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5395 | echo "configure:5396: checking for reentrant libc: __error" >&5 |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5396 | if eval "test \"`echo '$''{'wine_cv_libc_r___error'+set}'`\" = set"; then |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5397 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5398 | else |
| 5399 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5400 | wine_cv_libc_r___error=yes |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 5401 | else |
| 5402 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5403 | #line 5404 "configure" |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 5404 | #include "confdefs.h" |
| 5405 | int myerrno = 0; |
| 5406 | char buf[256]; |
| 5407 | int *__error(){return &myerrno;} |
| 5408 | main(){connect(0,buf,255); exit(!myerrno);} |
| 5409 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5410 | if { (eval echo configure:5411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 5411 | then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5412 | wine_cv_libc_r___error=yes |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 5413 | else |
| 5414 | echo "configure: failed program was:" >&5 |
| 5415 | cat conftest.$ac_ext >&5 |
| 5416 | rm -fr conftest* |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5417 | wine_cv_libc_r___error=no |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 5418 | fi |
| 5419 | rm -fr conftest* |
| 5420 | fi |
| 5421 | |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 5422 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5423 | fi |
| 5424 | |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5425 | echo "$ac_t""$wine_cv_libc_r___error" 1>&6 |
| 5426 | if test "$wine_cv_libc_r___error" = "yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5427 | then |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5428 | wine_cv_libc_reentrant=__error |
| 5429 | fi |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5430 | |
| 5431 | |
| 5432 | echo $ac_n "checking for reentrant libc: ___errno""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5433 | echo "configure:5434: checking for reentrant libc: ___errno" >&5 |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5434 | if eval "test \"`echo '$''{'wine_cv_libc_r____errno'+set}'`\" = set"; then |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5435 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5436 | else |
| 5437 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5438 | wine_cv_libc_r____errno=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5439 | else |
| 5440 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5441 | #line 5442 "configure" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5442 | #include "confdefs.h" |
| 5443 | int myerrno = 0; |
| 5444 | char buf[256]; |
| 5445 | int *___errno(){return &myerrno;} |
| 5446 | main(){connect(0,buf,255); exit(!myerrno);} |
| 5447 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5448 | if { (eval echo configure:5449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5449 | then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5450 | wine_cv_libc_r____errno=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5451 | else |
| 5452 | echo "configure: failed program was:" >&5 |
| 5453 | cat conftest.$ac_ext >&5 |
| 5454 | rm -fr conftest* |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5455 | wine_cv_libc_r____errno=no |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5456 | fi |
| 5457 | rm -fr conftest* |
| 5458 | fi |
| 5459 | |
| 5460 | |
| 5461 | fi |
| 5462 | |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5463 | echo "$ac_t""$wine_cv_libc_r____errno" 1>&6 |
| 5464 | if test "$wine_cv_libc_r____errno" = "yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5465 | then |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5466 | wine_cv_libc_reentrant=___errno |
| 5467 | fi |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5468 | |
| 5469 | |
| 5470 | echo $ac_n "checking for reentrant libc: __thr_errno""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5471 | echo "configure:5472: checking for reentrant libc: __thr_errno" >&5 |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5472 | if eval "test \"`echo '$''{'wine_cv_libc_r___thr_errno'+set}'`\" = set"; then |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5473 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5474 | else |
| 5475 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5476 | wine_cv_libc_r___thr_errno=yes |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5477 | else |
| 5478 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5479 | #line 5480 "configure" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5480 | #include "confdefs.h" |
| 5481 | int myerrno = 0; |
| 5482 | char buf[256]; |
| 5483 | int *__thr_errno(){return &myerrno;} |
| 5484 | main(){connect(0,buf,255); exit(!myerrno);} |
| 5485 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5486 | if { (eval echo configure:5487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5487 | then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5488 | wine_cv_libc_r___thr_errno=yes |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5489 | else |
| 5490 | echo "configure: failed program was:" >&5 |
| 5491 | cat conftest.$ac_ext >&5 |
| 5492 | rm -fr conftest* |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5493 | wine_cv_libc_r___thr_errno=no |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5494 | fi |
| 5495 | rm -fr conftest* |
| 5496 | fi |
| 5497 | |
| 5498 | |
| 5499 | fi |
| 5500 | |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5501 | echo "$ac_t""$wine_cv_libc_r___thr_errno" 1>&6 |
| 5502 | if test "$wine_cv_libc_r___thr_errno" = "yes" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5503 | then |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5504 | wine_cv_libc_reentrant=__thr_errno |
| 5505 | fi |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5506 | |
| 5507 | |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 5508 | echo $ac_n "checking for reentrant libc: __errno""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5509 | echo "configure:5510: checking for reentrant libc: __errno" >&5 |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 5510 | if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then |
| 5511 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5512 | else |
| 5513 | if test "$cross_compiling" = yes; then |
| 5514 | wine_cv_libc_r___errno=yes |
| 5515 | else |
| 5516 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5517 | #line 5518 "configure" |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 5518 | #include "confdefs.h" |
| 5519 | int myerrno = 0; |
| 5520 | char buf[256]; |
| 5521 | int *__errno(){return &myerrno;} |
| 5522 | main(){connect(0,buf,255); exit(!myerrno);} |
| 5523 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5524 | if { (eval echo configure:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 5525 | then |
| 5526 | wine_cv_libc_r___errno=yes |
| 5527 | else |
| 5528 | echo "configure: failed program was:" >&5 |
| 5529 | cat conftest.$ac_ext >&5 |
| 5530 | rm -fr conftest* |
| 5531 | wine_cv_libc_r___errno=no |
| 5532 | fi |
| 5533 | rm -fr conftest* |
| 5534 | fi |
| 5535 | |
| 5536 | |
| 5537 | fi |
| 5538 | |
| 5539 | echo "$ac_t""$wine_cv_libc_r___errno" 1>&6 |
| 5540 | if test "$wine_cv_libc_r___errno" = "yes" |
| 5541 | then |
| 5542 | wine_cv_libc_reentrant=__errno |
| 5543 | fi |
| 5544 | |
| 5545 | |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5546 | if test "$wine_cv_libc_reentrant" != "no" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5547 | then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 5548 | cat >> confdefs.h <<EOF |
| 5549 | #define ERRNO_LOCATION $wine_cv_libc_reentrant |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5550 | EOF |
| 5551 | |
| 5552 | fi |
| 5553 | |
| 5554 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5555 | if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5556 | then |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 5557 | echo $ac_n "checking for reentrant X libraries""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5558 | echo "configure:5559: checking for reentrant X libraries" >&5 |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 5559 | if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then |
| 5560 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5561 | else |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5562 | if test "x$with_reentrant_x" = "xno" |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 5563 | then |
| 5564 | wine_cv_x_reentrant=no |
| 5565 | else |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5566 | libX11_check=none |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 5567 | for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 5568 | if test -r $dir/libX11.so; then |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 5569 | libX11_check="-D $dir/libX11.so" |
| 5570 | break 1 |
| 5571 | fi |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 5572 | if test -r $dir/libX11.a; then |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 5573 | libX11_check="$dir/libX11.a" |
| 5574 | break 1 |
| 5575 | fi |
| 5576 | done |
| 5577 | if test "$libX11_check" != "none"; then |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5578 | if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1 |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 5579 | then |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 5580 | wine_cv_x_reentrant=yes |
| 5581 | else |
| 5582 | wine_cv_x_reentrant=no |
| 5583 | fi |
| 5584 | else |
| 5585 | wine_cv_x_reentrant=unknown |
| 5586 | fi |
| 5587 | fi |
| 5588 | fi |
| 5589 | |
| 5590 | echo "$ac_t""$wine_cv_x_reentrant" 1>&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5591 | else |
| 5592 | wine_cv_x_reentrant=no |
| 5593 | fi |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 5594 | if test "$wine_cv_x_reentrant" = "no" |
| 5595 | then |
| 5596 | cat >> confdefs.h <<\EOF |
| 5597 | #define NO_REENTRANT_X11 1 |
| 5598 | EOF |
| 5599 | |
| 5600 | fi |
| 5601 | |
| 5602 | |
Francois Gouget | ae5e93e | 1999-11-13 23:02:06 +0000 | [diff] [blame] | 5603 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5604 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 5605 | # for constant arguments. Useless! |
| 5606 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5607 | echo "configure:5608: checking for working alloca.h" >&5 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5608 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
| 5609 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5610 | else |
| 5611 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5612 | #line 5613 "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5613 | #include "confdefs.h" |
| 5614 | #include <alloca.h> |
| 5615 | int main() { |
Patrik Stridvall | 87f48fc | 2001-06-19 03:30:13 +0000 | [diff] [blame] | 5616 | char *p = alloca(2 * sizeof(int)); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5617 | ; return 0; } |
| 5618 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5619 | if { (eval echo configure:5620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5620 | rm -rf conftest* |
| 5621 | ac_cv_header_alloca_h=yes |
| 5622 | else |
| 5623 | echo "configure: failed program was:" >&5 |
| 5624 | cat conftest.$ac_ext >&5 |
| 5625 | rm -rf conftest* |
| 5626 | ac_cv_header_alloca_h=no |
| 5627 | fi |
| 5628 | rm -f conftest* |
| 5629 | fi |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5630 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5631 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
| 5632 | if test $ac_cv_header_alloca_h = yes; then |
| 5633 | cat >> confdefs.h <<\EOF |
| 5634 | #define HAVE_ALLOCA_H 1 |
| 5635 | EOF |
| 5636 | |
| 5637 | fi |
| 5638 | |
| 5639 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5640 | echo "configure:5641: checking for alloca" >&5 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5641 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
| 5642 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5643 | else |
| 5644 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5645 | #line 5646 "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5646 | #include "confdefs.h" |
| 5647 | |
| 5648 | #ifdef __GNUC__ |
| 5649 | # define alloca __builtin_alloca |
| 5650 | #else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 5651 | # ifdef _MSC_VER |
| 5652 | # include <malloc.h> |
| 5653 | # define alloca _alloca |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5654 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 5655 | # if HAVE_ALLOCA_H |
| 5656 | # include <alloca.h> |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5657 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 5658 | # ifdef _AIX |
| 5659 | #pragma alloca |
| 5660 | # else |
| 5661 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5662 | char *alloca (); |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 5663 | # endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5664 | # endif |
| 5665 | # endif |
| 5666 | # endif |
| 5667 | #endif |
| 5668 | |
| 5669 | int main() { |
| 5670 | char *p = (char *) alloca(1); |
| 5671 | ; return 0; } |
| 5672 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5673 | if { (eval echo configure:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5674 | rm -rf conftest* |
| 5675 | ac_cv_func_alloca_works=yes |
| 5676 | else |
| 5677 | echo "configure: failed program was:" >&5 |
| 5678 | cat conftest.$ac_ext >&5 |
| 5679 | rm -rf conftest* |
| 5680 | ac_cv_func_alloca_works=no |
| 5681 | fi |
| 5682 | rm -f conftest* |
| 5683 | fi |
| 5684 | |
| 5685 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
| 5686 | if test $ac_cv_func_alloca_works = yes; then |
| 5687 | cat >> confdefs.h <<\EOF |
| 5688 | #define HAVE_ALLOCA 1 |
| 5689 | EOF |
| 5690 | |
| 5691 | fi |
| 5692 | |
| 5693 | if test $ac_cv_func_alloca_works = no; then |
| 5694 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 5695 | # that cause trouble. Some versions do not even contain alloca or |
| 5696 | # contain a buggy version. If you still want to use their alloca, |
| 5697 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 5698 | ALLOCA=alloca.${ac_objext} |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5699 | cat >> confdefs.h <<\EOF |
| 5700 | #define C_ALLOCA 1 |
| 5701 | EOF |
| 5702 | |
| 5703 | |
| 5704 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5705 | echo "configure:5706: checking whether alloca needs Cray hooks" >&5 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5706 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
| 5707 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5708 | else |
| 5709 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5710 | #line 5711 "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5711 | #include "confdefs.h" |
| 5712 | #if defined(CRAY) && ! defined(CRAY2) |
| 5713 | webecray |
| 5714 | #else |
| 5715 | wenotbecray |
| 5716 | #endif |
| 5717 | |
| 5718 | EOF |
| 5719 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5720 | egrep "webecray" >/dev/null 2>&1; then |
| 5721 | rm -rf conftest* |
| 5722 | ac_cv_os_cray=yes |
| 5723 | else |
| 5724 | rm -rf conftest* |
| 5725 | ac_cv_os_cray=no |
| 5726 | fi |
| 5727 | rm -f conftest* |
| 5728 | |
| 5729 | fi |
| 5730 | |
| 5731 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
| 5732 | if test $ac_cv_os_cray = yes; then |
| 5733 | for ac_func in _getb67 GETB67 getb67; do |
| 5734 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5735 | echo "configure:5736: checking for $ac_func" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5736 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 5737 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5738 | else |
| 5739 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5740 | #line 5741 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5741 | #include "confdefs.h" |
| 5742 | /* System header to define __stub macros and hopefully few prototypes, |
| 5743 | which can conflict with char $ac_func(); below. */ |
| 5744 | #include <assert.h> |
| 5745 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5746 | /* We use char because int might match the return type of a gcc2 |
| 5747 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 5748 | char $ac_func(); |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5749 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5750 | int main() { |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5751 | |
| 5752 | /* The GNU C library defines this for functions which it implements |
| 5753 | to always fail with ENOSYS. Some functions are actually named |
| 5754 | something starting with __ and the normal name is an alias. */ |
| 5755 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5756 | choke me |
| 5757 | #else |
| 5758 | $ac_func(); |
| 5759 | #endif |
| 5760 | |
| 5761 | ; return 0; } |
| 5762 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5763 | if { (eval echo configure:5764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5764 | rm -rf conftest* |
| 5765 | eval "ac_cv_func_$ac_func=yes" |
| 5766 | else |
| 5767 | echo "configure: failed program was:" >&5 |
| 5768 | cat conftest.$ac_ext >&5 |
| 5769 | rm -rf conftest* |
| 5770 | eval "ac_cv_func_$ac_func=no" |
| 5771 | fi |
| 5772 | rm -f conftest* |
| 5773 | fi |
| 5774 | |
| 5775 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5776 | echo "$ac_t""yes" 1>&6 |
| 5777 | cat >> confdefs.h <<EOF |
| 5778 | #define CRAY_STACKSEG_END $ac_func |
| 5779 | EOF |
| 5780 | |
| 5781 | break |
| 5782 | else |
| 5783 | echo "$ac_t""no" 1>&6 |
| 5784 | fi |
| 5785 | |
| 5786 | done |
| 5787 | fi |
| 5788 | |
| 5789 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5790 | echo "configure:5791: checking stack direction for C alloca" >&5 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5791 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
| 5792 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5793 | else |
| 5794 | if test "$cross_compiling" = yes; then |
| 5795 | ac_cv_c_stack_direction=0 |
| 5796 | else |
| 5797 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5798 | #line 5799 "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5799 | #include "confdefs.h" |
| 5800 | find_stack_direction () |
| 5801 | { |
| 5802 | static char *addr = 0; |
| 5803 | auto char dummy; |
| 5804 | if (addr == 0) |
| 5805 | { |
| 5806 | addr = &dummy; |
| 5807 | return find_stack_direction (); |
| 5808 | } |
| 5809 | else |
| 5810 | return (&dummy > addr) ? 1 : -1; |
| 5811 | } |
| 5812 | main () |
| 5813 | { |
| 5814 | exit (find_stack_direction() < 0); |
| 5815 | } |
| 5816 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5817 | if { (eval echo configure:5818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5818 | then |
| 5819 | ac_cv_c_stack_direction=1 |
| 5820 | else |
| 5821 | echo "configure: failed program was:" >&5 |
| 5822 | cat conftest.$ac_ext >&5 |
| 5823 | rm -fr conftest* |
| 5824 | ac_cv_c_stack_direction=-1 |
| 5825 | fi |
| 5826 | rm -fr conftest* |
| 5827 | fi |
| 5828 | |
| 5829 | fi |
| 5830 | |
| 5831 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
| 5832 | cat >> confdefs.h <<EOF |
| 5833 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 5834 | EOF |
| 5835 | |
| 5836 | fi |
| 5837 | |
| 5838 | for ac_func in \ |
Eric Pouech | f61d7e0 | 2000-04-29 16:44:19 +0000 | [diff] [blame] | 5839 | __libc_fork \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5840 | _lwp_create \ |
| 5841 | clone \ |
Andreas Mohr | a7ca2ba | 2001-01-12 23:07:11 +0000 | [diff] [blame] | 5842 | ecvt \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 5843 | finite \ |
| 5844 | fpclass \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 5845 | ftruncate64 \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 5846 | getnetbyaddr \ |
| 5847 | getnetbyname \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5848 | getpagesize \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 5849 | getprotobyname \ |
| 5850 | getprotobynumber \ |
Dimitrie O. Paun | 1ec253d | 2000-12-01 20:47:11 +0000 | [diff] [blame] | 5851 | getrlimit \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 5852 | getservbyport \ |
| 5853 | getsockopt \ |
| 5854 | inet_network \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 5855 | lseek64 \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 5856 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5857 | memmove \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 5858 | mmap \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5859 | rfork \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 5860 | select \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5861 | sendmsg \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 5862 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5863 | sigaltstack \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 5864 | statfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 5865 | strcasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5866 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 5867 | strncasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5868 | tcgetattr \ |
| 5869 | timegm \ |
| 5870 | usleep \ |
| 5871 | vfscanf \ |
| 5872 | wait4 \ |
| 5873 | waitpid \ |
| 5874 | |
| 5875 | do |
| 5876 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5877 | echo "configure:5878: checking for $ac_func" >&5 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5878 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 5879 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5880 | else |
| 5881 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5882 | #line 5883 "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 5883 | #include "confdefs.h" |
| 5884 | /* System header to define __stub macros and hopefully few prototypes, |
| 5885 | which can conflict with char $ac_func(); below. */ |
| 5886 | #include <assert.h> |
| 5887 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5888 | /* We use char because int might match the return type of a gcc2 |
| 5889 | builtin and then its argument prototype would still apply. */ |
| 5890 | char $ac_func(); |
| 5891 | |
| 5892 | int main() { |
| 5893 | |
| 5894 | /* The GNU C library defines this for functions which it implements |
| 5895 | to always fail with ENOSYS. Some functions are actually named |
| 5896 | something starting with __ and the normal name is an alias. */ |
| 5897 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5898 | choke me |
| 5899 | #else |
| 5900 | $ac_func(); |
| 5901 | #endif |
| 5902 | |
| 5903 | ; return 0; } |
| 5904 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5905 | if { (eval echo configure:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5906 | rm -rf conftest* |
| 5907 | eval "ac_cv_func_$ac_func=yes" |
| 5908 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 5909 | echo "configure: failed program was:" >&5 |
| 5910 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5911 | rm -rf conftest* |
| 5912 | eval "ac_cv_func_$ac_func=no" |
| 5913 | fi |
| 5914 | rm -f conftest* |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5915 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 5916 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5917 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5918 | echo "$ac_t""yes" 1>&6 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 5919 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5920 | cat >> confdefs.h <<EOF |
| 5921 | #define $ac_tr_func 1 |
| 5922 | EOF |
| 5923 | |
| 5924 | else |
| 5925 | echo "$ac_t""no" 1>&6 |
| 5926 | fi |
| 5927 | done |
| 5928 | |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5929 | |
| 5930 | |
| 5931 | for ac_hdr in \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 5932 | arpa/inet.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5933 | arpa/nameser.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5934 | elf.h \ |
| 5935 | float.h \ |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5936 | ieeefp.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5937 | libio.h \ |
Hidenori Takeshima | 01f78aa | 2000-07-09 12:19:09 +0000 | [diff] [blame] | 5938 | libutil.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 5939 | link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5940 | linux/cdrom.h \ |
Marcus Meissner | c9b3b2e | 2000-12-12 00:38:58 +0000 | [diff] [blame] | 5941 | linux/input.h \ |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 5942 | linux/joystick.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5943 | linux/ucdrom.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5944 | net/if.h \ |
Hidenori Takeshima | 5d1a638 | 2000-11-26 04:00:53 +0000 | [diff] [blame] | 5945 | netdb.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5946 | netinet/in.h \ |
Patrik Stridvall | 7a4e599 | 2000-12-01 23:53:46 +0000 | [diff] [blame] | 5947 | netinet/in_systm.h \ |
| 5948 | netinet/ip.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 5949 | netinet/tcp.h \ |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5950 | pty.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5951 | resolv.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 5952 | sched.h \ |
| 5953 | socket.h \ |
Bang Jun-Young | eda758e | 2001-12-14 22:47:19 +0000 | [diff] [blame] | 5954 | stdint.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5955 | strings.h \ |
| 5956 | sys/cdio.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5957 | sys/errno.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5958 | sys/file.h \ |
| 5959 | sys/filio.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 5960 | sys/ipc.h \ |
Eric Pouech | 624cbd7 | 2001-08-10 22:29:21 +0000 | [diff] [blame] | 5961 | sys/link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5962 | sys/lwp.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5963 | sys/mman.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5964 | sys/modem.h \ |
| 5965 | sys/mount.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 5966 | sys/msg.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5967 | sys/param.h \ |
Dimitrie O. Paun | 2af03e4 | 2000-11-29 20:04:09 +0000 | [diff] [blame] | 5968 | sys/ptrace.h \ |
Ulrich Weigand | 8a1bdb3 | 2000-01-30 22:22:22 +0000 | [diff] [blame] | 5969 | sys/reg.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 5970 | sys/signal.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 5971 | sys/shm.h \ |
| 5972 | sys/socket.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5973 | sys/sockio.h \ |
| 5974 | sys/statfs.h \ |
| 5975 | sys/strtio.h \ |
| 5976 | sys/syscall.h \ |
Dimitrie O. Paun | 2af03e4 | 2000-11-29 20:04:09 +0000 | [diff] [blame] | 5977 | sys/user.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 5978 | sys/wait.h \ |
| 5979 | sys/v86.h \ |
| 5980 | sys/v86intr.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5981 | sys/vfs.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 5982 | sys/vm86.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5983 | syscall.h \ |
Patrik Stridvall | 7a4e599 | 2000-12-01 23:53:46 +0000 | [diff] [blame] | 5984 | ucontext.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 5985 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5986 | do |
| 5987 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5988 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5989 | echo "configure:5990: checking for $ac_hdr" >&5 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5990 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5991 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5992 | else |
| 5993 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5994 | #line 5995 "configure" |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5995 | #include "confdefs.h" |
| 5996 | #include <$ac_hdr> |
| 5997 | EOF |
| 5998 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 5999 | { (eval echo configure:6000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 6000 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 6001 | if test -z "$ac_err"; then |
| 6002 | rm -rf conftest* |
| 6003 | eval "ac_cv_header_$ac_safe=yes" |
| 6004 | else |
| 6005 | echo "$ac_err" >&5 |
| 6006 | echo "configure: failed program was:" >&5 |
| 6007 | cat conftest.$ac_ext >&5 |
| 6008 | rm -rf conftest* |
| 6009 | eval "ac_cv_header_$ac_safe=no" |
| 6010 | fi |
| 6011 | rm -f conftest* |
| 6012 | fi |
| 6013 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 6014 | echo "$ac_t""yes" 1>&6 |
| 6015 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 6016 | cat >> confdefs.h <<EOF |
| 6017 | #define $ac_tr_hdr 1 |
| 6018 | EOF |
| 6019 | |
| 6020 | else |
| 6021 | echo "$ac_t""no" 1>&6 |
| 6022 | fi |
| 6023 | done |
| 6024 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6025 | echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6026 | echo "configure:6027: checking whether stat file-mode macros are broken" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6027 | if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then |
| 6028 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6029 | else |
| 6030 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6031 | #line 6032 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6032 | #include "confdefs.h" |
| 6033 | #include <sys/types.h> |
| 6034 | #include <sys/stat.h> |
| 6035 | |
| 6036 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 6037 | # if S_ISBLK (S_IFDIR) |
| 6038 | You lose. |
| 6039 | # endif |
| 6040 | #endif |
| 6041 | |
| 6042 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 6043 | # if S_ISBLK (S_IFCHR) |
| 6044 | You lose. |
| 6045 | # endif |
| 6046 | #endif |
| 6047 | |
| 6048 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 6049 | # if S_ISLNK (S_IFREG) |
| 6050 | You lose. |
| 6051 | # endif |
| 6052 | #endif |
| 6053 | |
| 6054 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 6055 | # if S_ISSOCK (S_IFREG) |
| 6056 | You lose. |
| 6057 | # endif |
| 6058 | #endif |
| 6059 | |
| 6060 | EOF |
| 6061 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6062 | egrep "You lose" >/dev/null 2>&1; then |
| 6063 | rm -rf conftest* |
| 6064 | ac_cv_header_stat_broken=yes |
| 6065 | else |
| 6066 | rm -rf conftest* |
| 6067 | ac_cv_header_stat_broken=no |
| 6068 | fi |
| 6069 | rm -f conftest* |
| 6070 | |
| 6071 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 6072 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6073 | echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 |
| 6074 | if test $ac_cv_header_stat_broken = yes; then |
| 6075 | cat >> confdefs.h <<\EOF |
| 6076 | #define STAT_MACROS_BROKEN 1 |
| 6077 | EOF |
| 6078 | |
| 6079 | fi |
| 6080 | |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 6081 | |
| 6082 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6083 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6084 | echo "configure:6085: checking for working const" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6085 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 6086 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6087 | else |
| 6088 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6089 | #line 6090 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6090 | #include "confdefs.h" |
| 6091 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 6092 | int main() { |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6093 | |
| 6094 | /* Ultrix mips cc rejects this. */ |
Patrik Stridvall | 87f48fc | 2001-06-19 03:30:13 +0000 | [diff] [blame] | 6095 | typedef int charset[2]; const charset x; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6096 | /* SunOS 4.1.1 cc rejects this. */ |
| 6097 | char const *const *ccp; |
| 6098 | char **p; |
| 6099 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 6100 | struct point {int x, y;}; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 6101 | static struct point const zero = {0,0}; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6102 | /* AIX XL C 1.02.0.0 rejects this. |
| 6103 | It does not let you subtract one const X* pointer from another in an arm |
| 6104 | of an if-expression whose if-part is not a constant expression */ |
| 6105 | const char *g = "string"; |
| 6106 | ccp = &g + (g ? g-g : 0); |
| 6107 | /* HPUX 7.0 cc rejects these. */ |
| 6108 | ++ccp; |
| 6109 | p = (char**) ccp; |
| 6110 | ccp = (char const *const *) p; |
| 6111 | { /* SCO 3.2v4 cc rejects this. */ |
| 6112 | char *t; |
| 6113 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 6114 | |
| 6115 | *t++ = 0; |
| 6116 | } |
| 6117 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 6118 | int x[] = {25, 17}; |
| 6119 | const int *foo = &x[0]; |
| 6120 | ++foo; |
| 6121 | } |
| 6122 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 6123 | typedef const int *iptr; |
| 6124 | iptr p = 0; |
| 6125 | ++p; |
| 6126 | } |
| 6127 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 6128 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 6129 | struct s { int j; const int *ap[3]; }; |
| 6130 | struct s *b; b->j = 5; |
| 6131 | } |
| 6132 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6133 | const int foo = 10; |
| 6134 | } |
| 6135 | |
| 6136 | ; return 0; } |
| 6137 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6138 | if { (eval echo configure:6139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6139 | rm -rf conftest* |
| 6140 | ac_cv_c_const=yes |
| 6141 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 6142 | echo "configure: failed program was:" >&5 |
| 6143 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6144 | rm -rf conftest* |
| 6145 | ac_cv_c_const=no |
| 6146 | fi |
| 6147 | rm -f conftest* |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6148 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 6149 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6150 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 6151 | if test $ac_cv_c_const = no; then |
| 6152 | cat >> confdefs.h <<\EOF |
| 6153 | #define const |
| 6154 | EOF |
| 6155 | |
| 6156 | fi |
| 6157 | |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 6158 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6159 | echo "configure:6160: checking for inline" >&5 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 6160 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
| 6161 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6162 | else |
| 6163 | ac_cv_c_inline=no |
| 6164 | for ac_kw in inline __inline__ __inline; do |
| 6165 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6166 | #line 6167 "configure" |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 6167 | #include "confdefs.h" |
| 6168 | |
| 6169 | int main() { |
Patrik Stridvall | 87f48fc | 2001-06-19 03:30:13 +0000 | [diff] [blame] | 6170 | } $ac_kw foo() { |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 6171 | ; return 0; } |
| 6172 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6173 | if { (eval echo configure:6174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 6174 | rm -rf conftest* |
| 6175 | ac_cv_c_inline=$ac_kw; break |
| 6176 | else |
| 6177 | echo "configure: failed program was:" >&5 |
| 6178 | cat conftest.$ac_ext >&5 |
| 6179 | fi |
| 6180 | rm -f conftest* |
| 6181 | done |
| 6182 | |
| 6183 | fi |
| 6184 | |
| 6185 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 6186 | case "$ac_cv_c_inline" in |
| 6187 | inline | yes) ;; |
| 6188 | no) cat >> confdefs.h <<\EOF |
| 6189 | #define inline |
| 6190 | EOF |
| 6191 | ;; |
| 6192 | *) cat >> confdefs.h <<EOF |
| 6193 | #define inline $ac_cv_c_inline |
| 6194 | EOF |
| 6195 | ;; |
| 6196 | esac |
| 6197 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6198 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6199 | echo "configure:6200: checking for ANSI C header files" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6200 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 6201 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6202 | else |
| 6203 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6204 | #line 6205 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6205 | #include "confdefs.h" |
| 6206 | #include <stdlib.h> |
| 6207 | #include <stdarg.h> |
| 6208 | #include <string.h> |
| 6209 | #include <float.h> |
| 6210 | EOF |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 6211 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6212 | { (eval echo configure:6213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 6213 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6214 | if test -z "$ac_err"; then |
| 6215 | rm -rf conftest* |
| 6216 | ac_cv_header_stdc=yes |
| 6217 | else |
| 6218 | echo "$ac_err" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 6219 | echo "configure: failed program was:" >&5 |
| 6220 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6221 | rm -rf conftest* |
| 6222 | ac_cv_header_stdc=no |
| 6223 | fi |
| 6224 | rm -f conftest* |
| 6225 | |
| 6226 | if test $ac_cv_header_stdc = yes; then |
| 6227 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6228 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6229 | #line 6230 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6230 | #include "confdefs.h" |
| 6231 | #include <string.h> |
| 6232 | EOF |
| 6233 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6234 | egrep "memchr" >/dev/null 2>&1; then |
| 6235 | : |
| 6236 | else |
| 6237 | rm -rf conftest* |
| 6238 | ac_cv_header_stdc=no |
| 6239 | fi |
| 6240 | rm -f conftest* |
| 6241 | |
| 6242 | fi |
| 6243 | |
| 6244 | if test $ac_cv_header_stdc = yes; then |
| 6245 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6246 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6247 | #line 6248 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6248 | #include "confdefs.h" |
| 6249 | #include <stdlib.h> |
| 6250 | EOF |
| 6251 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6252 | egrep "free" >/dev/null 2>&1; then |
| 6253 | : |
| 6254 | else |
| 6255 | rm -rf conftest* |
| 6256 | ac_cv_header_stdc=no |
| 6257 | fi |
| 6258 | rm -f conftest* |
| 6259 | |
| 6260 | fi |
| 6261 | |
| 6262 | if test $ac_cv_header_stdc = yes; then |
| 6263 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6264 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 6265 | : |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6266 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 6267 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6268 | #line 6269 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6269 | #include "confdefs.h" |
| 6270 | #include <ctype.h> |
| 6271 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6272 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6273 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6274 | int main () { int i; for (i = 0; i < 256; i++) |
| 6275 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 6276 | exit (0); } |
| 6277 | |
| 6278 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6279 | if { (eval echo configure:6280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 6280 | then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6281 | : |
| 6282 | else |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 6283 | echo "configure: failed program was:" >&5 |
| 6284 | cat conftest.$ac_ext >&5 |
| 6285 | rm -fr conftest* |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6286 | ac_cv_header_stdc=no |
| 6287 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6288 | rm -fr conftest* |
| 6289 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 6290 | |
| 6291 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6292 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 6293 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6294 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 6295 | if test $ac_cv_header_stdc = yes; then |
| 6296 | cat >> confdefs.h <<\EOF |
| 6297 | #define STDC_HEADERS 1 |
| 6298 | EOF |
| 6299 | |
| 6300 | fi |
| 6301 | |
| 6302 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6303 | echo "configure:6304: checking for size_t" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6304 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 6305 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6306 | else |
| 6307 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6308 | #line 6309 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6309 | #include "confdefs.h" |
| 6310 | #include <sys/types.h> |
| 6311 | #if STDC_HEADERS |
| 6312 | #include <stdlib.h> |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 6313 | #include <stddef.h> |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6314 | #endif |
| 6315 | EOF |
| 6316 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 6317 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6318 | rm -rf conftest* |
| 6319 | ac_cv_type_size_t=yes |
| 6320 | else |
| 6321 | rm -rf conftest* |
| 6322 | ac_cv_type_size_t=no |
| 6323 | fi |
| 6324 | rm -f conftest* |
| 6325 | |
| 6326 | fi |
| 6327 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 6328 | if test $ac_cv_type_size_t = no; then |
| 6329 | cat >> confdefs.h <<\EOF |
| 6330 | #define size_t unsigned |
| 6331 | EOF |
| 6332 | |
| 6333 | fi |
| 6334 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6335 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6336 | echo "configure:6337: checking size of long long" >&5 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6337 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
| 6338 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6339 | else |
| 6340 | if test "$cross_compiling" = yes; then |
| 6341 | ac_cv_sizeof_long_long=0 |
| 6342 | else |
| 6343 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6344 | #line 6345 "configure" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6345 | #include "confdefs.h" |
| 6346 | #include <stdio.h> |
Patrik Stridvall | 87f48fc | 2001-06-19 03:30:13 +0000 | [diff] [blame] | 6347 | #include <sys/types.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6348 | main() |
| 6349 | { |
| 6350 | FILE *f=fopen("conftestval", "w"); |
| 6351 | if (!f) exit(1); |
| 6352 | fprintf(f, "%d\n", sizeof(long long)); |
| 6353 | exit(0); |
| 6354 | } |
| 6355 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6356 | if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6357 | then |
| 6358 | ac_cv_sizeof_long_long=`cat conftestval` |
| 6359 | else |
| 6360 | echo "configure: failed program was:" >&5 |
| 6361 | cat conftest.$ac_ext >&5 |
| 6362 | rm -fr conftest* |
| 6363 | ac_cv_sizeof_long_long=0 |
| 6364 | fi |
| 6365 | rm -fr conftest* |
| 6366 | fi |
| 6367 | |
| 6368 | fi |
| 6369 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 6370 | cat >> confdefs.h <<EOF |
| 6371 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 6372 | EOF |
| 6373 | |
| 6374 | |
| 6375 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 6376 | echo $ac_n "checking whether linux/input.h is for real""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6377 | echo "configure:6378: checking whether linux/input.h is for real" >&5 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 6378 | if eval "test \"`echo '$''{'wine_cv_linux_input_h'+set}'`\" = set"; then |
| 6379 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6380 | else |
| 6381 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6382 | #line 6383 "configure" |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 6383 | #include "confdefs.h" |
| 6384 | |
| 6385 | #include <linux/input.h> |
| 6386 | |
| 6387 | int main() { |
| 6388 | |
| 6389 | int foo = EVIOCGBIT(EV_ABS,42); |
| 6390 | int bar = BTN_PINKIE; |
| 6391 | int fortytwo = 42; |
| 6392 | |
| 6393 | ; return 0; } |
| 6394 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6395 | if { (eval echo configure:6396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 6396 | rm -rf conftest* |
| 6397 | wine_cv_linux_input_h=yes |
| 6398 | else |
| 6399 | echo "configure: failed program was:" >&5 |
| 6400 | cat conftest.$ac_ext >&5 |
| 6401 | rm -rf conftest* |
| 6402 | wine_cv_linux_input_h=no |
| 6403 | fi |
| 6404 | rm -f conftest* |
| 6405 | |
| 6406 | fi |
| 6407 | |
| 6408 | echo "$ac_t""$wine_cv_linux_input_h" 1>&6 |
| 6409 | if test "$wine_cv_linux_input_h" = "yes" |
| 6410 | then |
| 6411 | cat >> confdefs.h <<\EOF |
| 6412 | #define HAVE_CORRECT_LINUXINPUT_H 1 |
| 6413 | EOF |
| 6414 | |
| 6415 | fi |
| 6416 | |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 6417 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 6418 | echo $ac_n "checking whether we can use re-entrant gethostbyname_r Linux style""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6419 | echo "configure:6420: checking whether we can use re-entrant gethostbyname_r Linux style" >&5 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 6420 | if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then |
| 6421 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6422 | else |
| 6423 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6424 | #line 6425 "configure" |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 6425 | #include "confdefs.h" |
| 6426 | |
| 6427 | #include <netdb.h> |
| 6428 | |
| 6429 | int main() { |
| 6430 | |
| 6431 | char *name=NULL; |
| 6432 | struct hostent he; |
| 6433 | struct hostent *result; |
| 6434 | char *buf=NULL; |
| 6435 | int bufsize=0; |
| 6436 | int res,errnr; |
| 6437 | char *addr=NULL; |
| 6438 | int addrlen=0; |
| 6439 | int addrtype=0; |
| 6440 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 6441 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
| 6442 | |
| 6443 | ; return 0; } |
| 6444 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6445 | if { (eval echo configure:6446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 6446 | rm -rf conftest* |
| 6447 | wine_cv_linux_gethostbyname_r_6=yes |
| 6448 | else |
| 6449 | echo "configure: failed program was:" >&5 |
| 6450 | cat conftest.$ac_ext >&5 |
| 6451 | rm -rf conftest* |
| 6452 | wine_cv_linux_gethostbyname_r_6=no |
| 6453 | |
| 6454 | fi |
| 6455 | rm -f conftest* |
| 6456 | |
| 6457 | fi |
| 6458 | |
| 6459 | echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6 |
| 6460 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 6461 | then |
| 6462 | cat >> confdefs.h <<\EOF |
| 6463 | #define HAVE_LINUX_GETHOSTBYNAME_R_6 1 |
| 6464 | EOF |
| 6465 | |
| 6466 | fi |
| 6467 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 6468 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 6469 | then |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 6470 | echo $ac_n "checking whether linux/joystick.h uses the Linux 2.2+ API""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6471 | echo "configure:6472: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5 |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 6472 | if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 6473 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6474 | else |
| 6475 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6476 | #line 6477 "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 6477 | #include "confdefs.h" |
| 6478 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 6479 | #include <sys/ioctl.h> |
| 6480 | #include <linux/joystick.h> |
| 6481 | |
| 6482 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 6483 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 6484 | #error "no 2.2 header" |
| 6485 | #endif |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 6486 | |
| 6487 | int main() { |
| 6488 | /*empty*/ |
| 6489 | ; return 0; } |
| 6490 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6491 | if { (eval echo configure:6492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 6492 | rm -rf conftest* |
| 6493 | wine_cv_linux_joystick_22_api=yes |
| 6494 | else |
| 6495 | echo "configure: failed program was:" >&5 |
| 6496 | cat conftest.$ac_ext >&5 |
| 6497 | rm -rf conftest* |
| 6498 | wine_cv_linux_joystick_22_api=no |
| 6499 | fi |
| 6500 | rm -f conftest* |
| 6501 | |
| 6502 | fi |
| 6503 | |
| 6504 | echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6 |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 6505 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 6506 | then |
| 6507 | cat >> confdefs.h <<\EOF |
| 6508 | #define HAVE_LINUX_22_JOYSTICK_API 1 |
| 6509 | EOF |
| 6510 | |
| 6511 | fi |
| 6512 | fi |
| 6513 | |
| 6514 | |
| 6515 | if test "$ac_cv_header_sys_vfs_h" = "yes" |
| 6516 | then |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 6517 | echo $ac_n "checking whether sys/vfs.h defines statfs""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6518 | echo "configure:6519: checking whether sys/vfs.h defines statfs" >&5 |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 6519 | if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then |
| 6520 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6521 | else |
| 6522 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6523 | #line 6524 "configure" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 6524 | #include "confdefs.h" |
| 6525 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 6526 | #include <sys/types.h> |
| 6527 | #ifdef HAVE_SYS_PARAM_H |
| 6528 | # include <sys/param.h> |
| 6529 | #endif |
| 6530 | #include <sys/vfs.h> |
| 6531 | |
| 6532 | int main() { |
| 6533 | |
| 6534 | struct statfs stfs; |
| 6535 | |
| 6536 | memset(&stfs,0,sizeof(stfs)); |
| 6537 | |
| 6538 | ; return 0; } |
| 6539 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6540 | if { (eval echo configure:6541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 6541 | rm -rf conftest* |
| 6542 | wine_cv_sys_vfs_has_statfs=yes |
| 6543 | else |
| 6544 | echo "configure: failed program was:" >&5 |
| 6545 | cat conftest.$ac_ext >&5 |
| 6546 | rm -rf conftest* |
| 6547 | wine_cv_sys_vfs_has_statfs=no |
| 6548 | |
| 6549 | fi |
| 6550 | rm -f conftest* |
| 6551 | |
| 6552 | fi |
| 6553 | |
| 6554 | echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6 |
| 6555 | if test "$wine_cv_sys_vfs_has_statfs" = "yes" |
| 6556 | then |
| 6557 | cat >> confdefs.h <<\EOF |
| 6558 | #define STATFS_DEFINED_BY_SYS_VFS 1 |
| 6559 | EOF |
| 6560 | |
| 6561 | fi |
| 6562 | fi |
| 6563 | |
| 6564 | if test "$ac_cv_header_sys_statfs_h" = "yes" |
| 6565 | then |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 6566 | echo $ac_n "checking whether sys/statfs.h defines statfs""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6567 | echo "configure:6568: checking whether sys/statfs.h defines statfs" >&5 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 6568 | if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then |
| 6569 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6570 | else |
| 6571 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6572 | #line 6573 "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 6573 | #include "confdefs.h" |
| 6574 | |
| 6575 | #include <sys/types.h> |
| 6576 | #ifdef HAVE_SYS_PARAM_H |
| 6577 | # include <sys/param.h> |
| 6578 | #endif |
| 6579 | #include <sys/statfs.h> |
| 6580 | |
| 6581 | int main() { |
| 6582 | |
| 6583 | struct statfs stfs; |
| 6584 | |
| 6585 | ; return 0; } |
| 6586 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6587 | if { (eval echo configure:6588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 6588 | rm -rf conftest* |
| 6589 | wine_cv_sys_statfs_has_statfs=yes |
| 6590 | else |
| 6591 | echo "configure: failed program was:" >&5 |
| 6592 | cat conftest.$ac_ext >&5 |
| 6593 | rm -rf conftest* |
| 6594 | wine_cv_sys_statfs_has_statfs=no |
| 6595 | |
| 6596 | fi |
| 6597 | rm -f conftest* |
| 6598 | |
| 6599 | fi |
| 6600 | |
| 6601 | echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6 |
| 6602 | if test "$wine_cv_sys_statfs_has_statfs" = "yes" |
| 6603 | then |
| 6604 | cat >> confdefs.h <<\EOF |
| 6605 | #define STATFS_DEFINED_BY_SYS_STATFS 1 |
| 6606 | EOF |
| 6607 | |
| 6608 | fi |
| 6609 | fi |
| 6610 | |
| 6611 | if test "$ac_cv_header_sys_mount_h" = "yes" |
| 6612 | then |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 6613 | echo $ac_n "checking whether sys/mount.h defines statfs""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6614 | echo "configure:6615: checking whether sys/mount.h defines statfs" >&5 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 6615 | if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then |
| 6616 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6617 | else |
| 6618 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6619 | #line 6620 "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 6620 | #include "confdefs.h" |
| 6621 | |
| 6622 | #include <sys/types.h> |
| 6623 | #ifdef HAVE_SYS_PARAM_H |
| 6624 | # include <sys/param.h> |
| 6625 | #endif |
| 6626 | #include <sys/mount.h> |
| 6627 | |
| 6628 | int main() { |
| 6629 | |
| 6630 | struct statfs stfs; |
| 6631 | |
| 6632 | ; return 0; } |
| 6633 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6634 | if { (eval echo configure:6635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 6635 | rm -rf conftest* |
| 6636 | wine_cv_sys_mount_has_statfs=yes |
| 6637 | else |
| 6638 | echo "configure: failed program was:" >&5 |
| 6639 | cat conftest.$ac_ext >&5 |
| 6640 | rm -rf conftest* |
| 6641 | wine_cv_sys_mount_has_statfs=no |
| 6642 | |
| 6643 | fi |
| 6644 | rm -f conftest* |
| 6645 | |
| 6646 | fi |
| 6647 | |
| 6648 | echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6 |
| 6649 | if test "$wine_cv_sys_mount_has_statfs" = "yes" |
| 6650 | then |
| 6651 | cat >> confdefs.h <<\EOF |
| 6652 | #define STATFS_DEFINED_BY_SYS_MOUNT 1 |
| 6653 | EOF |
| 6654 | |
| 6655 | fi |
| 6656 | fi |
| 6657 | |
| 6658 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 6659 | echo $ac_n "checking for statfs.f_bfree""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6660 | echo "configure:6661: checking for statfs.f_bfree" >&5 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 6661 | if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then |
| 6662 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6663 | else |
| 6664 | if test "x$statfs_bfree" = "xno" |
| 6665 | then |
| 6666 | wine_cv_statfs_bfree=no |
| 6667 | else |
| 6668 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6669 | #line 6670 "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 6670 | #include "confdefs.h" |
| 6671 | |
| 6672 | #include <sys/types.h> |
| 6673 | #ifdef HAVE_SYS_PARAM_H |
| 6674 | # include <sys/param.h> |
| 6675 | #endif |
| 6676 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 6677 | # include <sys/mount.h> |
| 6678 | #else |
| 6679 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 6680 | # include <sys/vfs.h> |
| 6681 | # else |
| 6682 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 6683 | # include <sys/statfs.h> |
| 6684 | # endif |
| 6685 | # endif |
| 6686 | #endif |
| 6687 | |
| 6688 | int main() { |
| 6689 | |
| 6690 | struct statfs stfs; |
| 6691 | |
| 6692 | stfs.f_bfree++; |
| 6693 | |
| 6694 | ; return 0; } |
| 6695 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6696 | if { (eval echo configure:6697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 6697 | rm -rf conftest* |
| 6698 | wine_cv_statfs_bfree=yes |
| 6699 | else |
| 6700 | echo "configure: failed program was:" >&5 |
| 6701 | cat conftest.$ac_ext >&5 |
| 6702 | rm -rf conftest* |
| 6703 | wine_cv_statfs_bfree=no |
| 6704 | |
| 6705 | fi |
| 6706 | rm -f conftest* |
| 6707 | fi |
| 6708 | fi |
| 6709 | |
| 6710 | echo "$ac_t""$wine_cv_statfs_bfree" 1>&6 |
| 6711 | if test "$wine_cv_statfs_bfree" = "yes" |
| 6712 | then |
| 6713 | cat >> confdefs.h <<\EOF |
| 6714 | #define STATFS_HAS_BFREE 1 |
| 6715 | EOF |
| 6716 | |
| 6717 | fi |
| 6718 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 6719 | echo $ac_n "checking for statfs.f_bavail""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6720 | echo "configure:6721: checking for statfs.f_bavail" >&5 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6721 | if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then |
| 6722 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6723 | else |
| 6724 | if test "x$statfs_bavail" = "xno" |
| 6725 | then |
| 6726 | wine_cv_statfs_bavail=no |
| 6727 | else |
| 6728 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6729 | #line 6730 "configure" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6730 | #include "confdefs.h" |
| 6731 | |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 6732 | #include <sys/types.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6733 | #ifdef HAVE_SYS_PARAM_H |
| 6734 | # include <sys/param.h> |
| 6735 | #endif |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 6736 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6737 | # include <sys/mount.h> |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 6738 | #else |
| 6739 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 6740 | # include <sys/vfs.h> |
| 6741 | # else |
| 6742 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 6743 | # include <sys/statfs.h> |
| 6744 | # endif |
| 6745 | # endif |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6746 | #endif |
| 6747 | |
| 6748 | int main() { |
| 6749 | |
| 6750 | struct statfs stfs; |
| 6751 | |
| 6752 | stfs.f_bavail++; |
| 6753 | |
| 6754 | ; return 0; } |
| 6755 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6756 | if { (eval echo configure:6757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 6757 | rm -rf conftest* |
| 6758 | wine_cv_statfs_bavail=yes |
| 6759 | else |
| 6760 | echo "configure: failed program was:" >&5 |
| 6761 | cat conftest.$ac_ext >&5 |
| 6762 | rm -rf conftest* |
| 6763 | wine_cv_statfs_bavail=no |
| 6764 | |
| 6765 | fi |
| 6766 | rm -f conftest* |
| 6767 | fi |
| 6768 | fi |
| 6769 | |
| 6770 | echo "$ac_t""$wine_cv_statfs_bavail" 1>&6 |
| 6771 | if test "$wine_cv_statfs_bavail" = "yes" |
| 6772 | then |
| 6773 | cat >> confdefs.h <<\EOF |
| 6774 | #define STATFS_HAS_BAVAIL 1 |
| 6775 | EOF |
| 6776 | |
| 6777 | fi |
| 6778 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 6779 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 6780 | echo $ac_n "checking for msg_accrights in struct msghdr""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6781 | echo "configure:6782: checking for msg_accrights in struct msghdr" >&5 |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 6782 | if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then |
| 6783 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6784 | else |
| 6785 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6786 | #line 6787 "configure" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 6787 | #include "confdefs.h" |
| 6788 | #include <sys/types.h> |
| 6789 | #include <sys/socket.h> |
| 6790 | int main() { |
| 6791 | struct msghdr hdr; hdr.msg_accrights=0 |
| 6792 | ; return 0; } |
| 6793 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6794 | if { (eval echo configure:6795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 6795 | rm -rf conftest* |
| 6796 | ac_cv_c_msg_accrights="yes" |
| 6797 | else |
| 6798 | echo "configure: failed program was:" >&5 |
| 6799 | cat conftest.$ac_ext >&5 |
| 6800 | rm -rf conftest* |
| 6801 | ac_cv_c_msg_accrights="no" |
| 6802 | fi |
| 6803 | rm -f conftest* |
| 6804 | fi |
| 6805 | |
| 6806 | echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6 |
| 6807 | if test "$ac_cv_c_msg_accrights" = "yes" |
| 6808 | then |
| 6809 | cat >> confdefs.h <<\EOF |
| 6810 | #define HAVE_MSGHDR_ACCRIGHTS 1 |
| 6811 | EOF |
| 6812 | |
| 6813 | fi |
| 6814 | |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 6815 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 6816 | echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6817 | echo "configure:6818: checking for sa_len in struct sockaddr" >&5 |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 6818 | if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sa_len'+set}'`\" = set"; then |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 6819 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6820 | else |
| 6821 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6822 | #line 6823 "configure" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 6823 | #include "confdefs.h" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 6824 | #include <sys/types.h> |
| 6825 | #include <sys/socket.h> |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 6826 | |
| 6827 | int main() { |
| 6828 | static struct sockaddr addr; addr.sa_len = 1 |
| 6829 | ; return 0; } |
| 6830 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6831 | if { (eval echo configure:6832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 6832 | rm -rf conftest* |
| 6833 | ac_cv_c_sockaddr_sa_len="yes" |
| 6834 | else |
| 6835 | echo "configure: failed program was:" >&5 |
| 6836 | cat conftest.$ac_ext >&5 |
| 6837 | rm -rf conftest* |
| 6838 | ac_cv_c_sockaddr_sa_len="no" |
| 6839 | fi |
| 6840 | rm -f conftest* |
| 6841 | fi |
| 6842 | |
| 6843 | echo "$ac_t""$ac_cv_c_sockaddr_sa_len" 1>&6 |
| 6844 | if test "$ac_cv_c_sockaddr_sa_len" = "yes" |
| 6845 | then |
| 6846 | cat >> confdefs.h <<\EOF |
| 6847 | #define HAVE_SOCKADDR_SA_LEN 1 |
| 6848 | EOF |
| 6849 | |
| 6850 | fi |
| 6851 | |
| 6852 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 6853 | echo $ac_n "checking for sun_len in struct sockaddr_un""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6854 | echo "configure:6855: checking for sun_len in struct sockaddr_un" >&5 |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 6855 | if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sun_len'+set}'`\" = set"; then |
| 6856 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6857 | else |
| 6858 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6859 | #line 6860 "configure" |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 6860 | #include "confdefs.h" |
| 6861 | #include <sys/types.h> |
| 6862 | #include <sys/socket.h> |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 6863 | #include <sys/un.h> |
| 6864 | int main() { |
| 6865 | static struct sockaddr_un addr; addr.sun_len = 1 |
| 6866 | ; return 0; } |
| 6867 | EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6868 | if { (eval echo configure:6869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 6869 | rm -rf conftest* |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 6870 | ac_cv_c_sockaddr_sun_len="yes" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 6871 | else |
| 6872 | echo "configure: failed program was:" >&5 |
| 6873 | cat conftest.$ac_ext >&5 |
| 6874 | rm -rf conftest* |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 6875 | ac_cv_c_sockaddr_sun_len="no" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 6876 | fi |
| 6877 | rm -f conftest* |
| 6878 | fi |
| 6879 | |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 6880 | echo "$ac_t""$ac_cv_c_sockaddr_sun_len" 1>&6 |
| 6881 | if test "$ac_cv_c_sockaddr_sun_len" = "yes" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 6882 | then |
| 6883 | cat >> confdefs.h <<\EOF |
| 6884 | #define HAVE_SOCKADDR_SUN_LEN 1 |
| 6885 | EOF |
| 6886 | |
| 6887 | fi |
| 6888 | |
| 6889 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 6890 | echo $ac_n "checking whether we need to define __i386__""... $ac_c" 1>&6 |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6891 | echo "configure:6892: checking whether we need to define __i386__" >&5 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 6892 | if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then |
| 6893 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6894 | else |
| 6895 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 6896 | #line 6897 "configure" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 6897 | #include "confdefs.h" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 6898 | #if (defined(i386) || defined(__i386)) && !defined(__i386__) |
| 6899 | yes |
| 6900 | #endif |
| 6901 | EOF |
| 6902 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6903 | egrep "yes" >/dev/null 2>&1; then |
| 6904 | rm -rf conftest* |
| 6905 | ac_cv_cpp_def_i386="yes" |
| 6906 | else |
| 6907 | rm -rf conftest* |
| 6908 | ac_cv_cpp_def_i386="no" |
| 6909 | fi |
| 6910 | rm -f conftest* |
| 6911 | |
| 6912 | fi |
| 6913 | |
| 6914 | echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6 |
| 6915 | if test "$ac_cv_cpp_def_i386" = "yes" |
| 6916 | then |
| 6917 | CFLAGS="$CFLAGS -D__i386__" |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 6918 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 6919 | fi |
| 6920 | |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 6921 | GCC_NO_BUILTIN="" |
| 6922 | if test "$GCC" = "yes" |
| 6923 | then |
| 6924 | GCC_NO_BUILTIN="-fno-builtin" |
| 6925 | fi |
| 6926 | |
| 6927 | |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 6928 | |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 6929 | cat >> confdefs.h <<\EOF |
| 6930 | #define __WINE_CONFIG_H 1 |
| 6931 | EOF |
| 6932 | |
| 6933 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 6934 | |
| 6935 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 6936 | MAKE_RULES=Make.rules |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6937 | |
| 6938 | |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 6939 | MAKE_DLL_RULES=dlls/Makedll.rules |
| 6940 | |
| 6941 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 6942 | MAKE_PROG_RULES=programs/Makeprog.rules |
| 6943 | |
| 6944 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6945 | trap '' 1 2 15 |
| 6946 | cat > confcache <<\EOF |
| 6947 | # This file is a shell script that caches the results of configure |
| 6948 | # tests run on this system so they can be shared between configure |
| 6949 | # scripts and configure runs. It is not useful on other systems. |
| 6950 | # If it contains results you don't want to keep, you may remove or edit it. |
| 6951 | # |
| 6952 | # By default, configure uses ./config.cache as the cache file, |
| 6953 | # creating it if it does not exist already. You can give configure |
| 6954 | # the --cache-file=FILE option to use a different cache file; that is |
| 6955 | # what configure does when it calls configure scripts in |
| 6956 | # subdirectories, so they share the cache. |
| 6957 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 6958 | # config.status only pays attention to the cache file if you give it the |
| 6959 | # --recheck option to rerun configure. |
| 6960 | # |
| 6961 | EOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 6962 | # The following way of writing the cache mishandles newlines in values, |
| 6963 | # but we know of no workaround that is simple, portable, and efficient. |
| 6964 | # So, don't put newlines in cache variables' values. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6965 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6966 | # and sets the high bit in the cache file unless we assign to the vars. |
| 6967 | (set) 2>&1 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 6968 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 6969 | *ac_space=\ *) |
| 6970 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 6971 | # turns \\\\ into \\, and sed turns \\ into \). |
| 6972 | sed -n \ |
| 6973 | -e "s/'/'\\\\''/g" \ |
| 6974 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 6975 | ;; |
| 6976 | *) |
| 6977 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 6978 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 6979 | ;; |
| 6980 | esac >> confcache |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 6981 | if cmp -s $cache_file confcache; then |
| 6982 | : |
| 6983 | else |
| 6984 | if test -w $cache_file; then |
| 6985 | echo "updating cache $cache_file" |
| 6986 | cat confcache > $cache_file |
| 6987 | else |
| 6988 | echo "not updating unwritable cache $cache_file" |
| 6989 | fi |
| 6990 | fi |
| 6991 | rm -f confcache |
| 6992 | |
| 6993 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 6994 | |
| 6995 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6996 | # Let make expand exec_prefix. |
| 6997 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6998 | |
| 6999 | # Any assignment to VPATH causes Sun make to only execute |
| 7000 | # the first set of double-colon rules, so remove it if not needed. |
| 7001 | # If there is a colon in the path, we need to keep it. |
| 7002 | if test "x$srcdir" = x.; then |
| 7003 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 7004 | fi |
| 7005 | |
| 7006 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 7007 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 7008 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7009 | |
| 7010 | # Without the "./", some shells look in PATH for config.status. |
| 7011 | : ${CONFIG_STATUS=./config.status} |
| 7012 | |
| 7013 | echo creating $CONFIG_STATUS |
| 7014 | rm -f $CONFIG_STATUS |
| 7015 | cat > $CONFIG_STATUS <<EOF |
| 7016 | #! /bin/sh |
| 7017 | # Generated automatically by configure. |
| 7018 | # Run this file to recreate the current configuration. |
| 7019 | # This directory was configured as follows, |
| 7020 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 7021 | # |
| 7022 | # $0 $ac_configure_args |
| 7023 | # |
| 7024 | # Compiler output produced by configure, useful for debugging |
| 7025 | # configure, is in ./config.log if it exists. |
| 7026 | |
| 7027 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 7028 | for ac_option |
| 7029 | do |
| 7030 | case "\$ac_option" in |
| 7031 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 7032 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 7033 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 7034 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 7035 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7036 | exit 0 ;; |
| 7037 | -help | --help | --hel | --he | --h) |
| 7038 | echo "\$ac_cs_usage"; exit 0 ;; |
| 7039 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 7040 | esac |
| 7041 | done |
| 7042 | |
| 7043 | ac_given_srcdir=$srcdir |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7044 | ac_given_INSTALL="$INSTALL" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7045 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7046 | trap 'rm -fr `echo " |
| 7047 | Make.rules |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 7048 | dlls/Makedll.rules |
| 7049 | programs/Makeprog.rules |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7050 | Makefile |
Joseph Pranevich | 791cd6a | 1998-12-02 19:58:08 +0000 | [diff] [blame] | 7051 | console/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7052 | controls/Makefile |
| 7053 | debugger/Makefile |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 7054 | dlls/Makefile |
Juergen Schmied | f7b0de3 | 1999-01-03 12:48:29 +0000 | [diff] [blame] | 7055 | dlls/advapi32/Makefile |
Hidenori Takeshima | 1c53a7f | 2001-11-06 00:41:05 +0000 | [diff] [blame] | 7056 | dlls/avicap32/Makefile |
Marcus Meissner | b3d1a22 | 1999-03-13 18:07:44 +0000 | [diff] [blame] | 7057 | dlls/avifil32/Makefile |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 7058 | dlls/comctl32/Makefile |
Klaas van Gend | c912749 | 1999-02-28 20:05:11 +0000 | [diff] [blame] | 7059 | dlls/commdlg/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 7060 | dlls/crtdll/Makefile |
| 7061 | dlls/dciman32/Makefile |
Alexandre Julliard | ddce652 | 2000-03-17 16:58:10 +0000 | [diff] [blame] | 7062 | dlls/ddraw/Makefile |
Hidenori Takeshima | b4be998 | 2001-10-23 20:35:23 +0000 | [diff] [blame] | 7063 | dlls/devenum/Makefile |
Alexandre Julliard | ddce652 | 2000-03-17 16:58:10 +0000 | [diff] [blame] | 7064 | dlls/dinput/Makefile |
Alexandre Julliard | c607532 | 2000-07-09 11:19:35 +0000 | [diff] [blame] | 7065 | dlls/dplay/Makefile |
Peter Hunnisett | 22b861c | 1999-09-28 16:35:32 +0000 | [diff] [blame] | 7066 | dlls/dplayx/Makefile |
Eric Pouech | 68944c2 | 1999-10-24 18:42:42 +0000 | [diff] [blame] | 7067 | dlls/dsound/Makefile |
Alexandre Julliard | 1dac57f | 2000-03-19 12:08:09 +0000 | [diff] [blame] | 7068 | dlls/gdi/Makefile |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7069 | dlls/glu32/Makefile |
Francois Gouget | edf3e43 | 1999-11-07 21:22:17 +0000 | [diff] [blame] | 7070 | dlls/icmp/Makefile |
Patrik Stridvall | 8295c86 | 1998-10-11 17:09:05 +0000 | [diff] [blame] | 7071 | dlls/imagehlp/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 7072 | dlls/imm32/Makefile |
Dimitrie O. Paun | 36b5b6b | 2000-06-03 00:07:44 +0000 | [diff] [blame] | 7073 | dlls/kernel/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 7074 | dlls/lzexpand/Makefile |
Hidenori Takeshima | 1a8b339 | 2001-09-14 21:36:30 +0000 | [diff] [blame] | 7075 | dlls/mapi32/Makefile |
Ulrich Weigand | bb1984e | 1999-08-07 14:32:33 +0000 | [diff] [blame] | 7076 | dlls/mpr/Makefile |
Patrik Stridvall | 8295c86 | 1998-10-11 17:09:05 +0000 | [diff] [blame] | 7077 | dlls/msacm/Makefile |
Hidenori Takeshima | b4be998 | 2001-10-23 20:35:23 +0000 | [diff] [blame] | 7078 | dlls/msdmo/Makefile |
Hidenori Takeshima | 1a8b339 | 2001-09-14 21:36:30 +0000 | [diff] [blame] | 7079 | dlls/msimg32/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 7080 | dlls/msnet32/Makefile |
Hidenori Takeshima | 1c53a7f | 2001-11-06 00:41:05 +0000 | [diff] [blame] | 7081 | dlls/msrle32/Makefile |
Jon Griffiths | 1db20bf | 2001-01-10 23:59:25 +0000 | [diff] [blame] | 7082 | dlls/msvcrt/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 7083 | dlls/msvideo/Makefile |
Mike McCormack | 2e40b96 | 2001-11-06 17:52:36 +0000 | [diff] [blame] | 7084 | dlls/netapi32/Makefile |
Marcus Meissner | 51505b1 | 1998-11-01 14:00:21 +0000 | [diff] [blame] | 7085 | dlls/ntdll/Makefile |
Alexandre Julliard | 8551f8c | 1999-12-11 23:56:46 +0000 | [diff] [blame] | 7086 | dlls/odbc32/Makefile |
Ulrich Weigand | 2a722f4 | 1999-09-19 18:36:53 +0000 | [diff] [blame] | 7087 | dlls/ole32/Makefile |
| 7088 | dlls/oleaut32/Makefile |
| 7089 | dlls/olecli/Makefile |
| 7090 | dlls/oledlg/Makefile |
Sean Langley | 58c71d4 | 2000-02-07 16:26:56 +0000 | [diff] [blame] | 7091 | dlls/olepro32/Makefile |
Ulrich Weigand | 2a722f4 | 1999-09-19 18:36:53 +0000 | [diff] [blame] | 7092 | dlls/olesvr/Makefile |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7093 | dlls/opengl32/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7094 | dlls/psapi/Makefile |
Hidenori Takeshima | b4be998 | 2001-10-23 20:35:23 +0000 | [diff] [blame] | 7095 | dlls/qcap/Makefile |
Hidenori Takeshima | b7d4b4e | 2001-07-02 18:57:22 +0000 | [diff] [blame] | 7096 | dlls/quartz/Makefile |
Marcus Meissner | 30ef877 | 1998-12-11 13:26:26 +0000 | [diff] [blame] | 7097 | dlls/rasapi32/Makefile |
Hidenori Takeshima | e75f9fb | 2000-05-03 18:12:19 +0000 | [diff] [blame] | 7098 | dlls/richedit/Makefile |
Huw D M Davies | 10b1b23 | 2000-07-15 19:53:50 +0000 | [diff] [blame] | 7099 | dlls/rpcrt4/Makefile |
Mike McCormack | dc2461e | 2000-07-15 21:35:55 +0000 | [diff] [blame] | 7100 | dlls/serialui/Makefile |
Francois Jacques | df5e579 | 2000-07-08 18:27:03 +0000 | [diff] [blame] | 7101 | dlls/setupapi/Makefile |
John R. Sheets | bc80a3b | 2001-01-11 22:32:44 +0000 | [diff] [blame] | 7102 | dlls/shdocvw/Makefile |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 7103 | dlls/shell32/Makefile |
Alexandre Julliard | c607532 | 2000-07-09 11:19:35 +0000 | [diff] [blame] | 7104 | dlls/shfolder/Makefile |
| 7105 | dlls/shlwapi/Makefile |
Hidenori Takeshima | 1a8b339 | 2001-09-14 21:36:30 +0000 | [diff] [blame] | 7106 | dlls/sti/Makefile |
Andreas Mohr | 5aa96c1 | 1999-03-14 12:34:25 +0000 | [diff] [blame] | 7107 | dlls/tapi32/Makefile |
Alexandre Julliard | 1dac57f | 2000-03-19 12:08:09 +0000 | [diff] [blame] | 7108 | dlls/ttydrv/Makefile |
Hidenori Takeshima | 1a8b339 | 2001-09-14 21:36:30 +0000 | [diff] [blame] | 7109 | dlls/url/Makefile |
Alexandre Julliard | 819fa8c | 2000-04-11 20:07:00 +0000 | [diff] [blame] | 7110 | dlls/urlmon/Makefile |
Alexandre Julliard | 1dac57f | 2000-03-19 12:08:09 +0000 | [diff] [blame] | 7111 | dlls/user/Makefile |
Ulrich Weigand | d43a46a | 1999-01-31 10:11:04 +0000 | [diff] [blame] | 7112 | dlls/version/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 7113 | dlls/win32s/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7114 | dlls/winaspi/Makefile |
Ove Kaaven | e5557b3 | 2000-12-26 00:22:45 +0000 | [diff] [blame] | 7115 | dlls/winedos/Makefile |
Dimitrie O. Paun | 84bde6a | 2000-05-30 20:27:23 +0000 | [diff] [blame] | 7116 | dlls/wineps/Makefile |
Alexandre Julliard | 819fa8c | 2000-04-11 20:07:00 +0000 | [diff] [blame] | 7117 | dlls/wininet/Makefile |
Eric Pouech | 68944c2 | 1999-10-24 18:42:42 +0000 | [diff] [blame] | 7118 | dlls/winmm/Makefile |
Eric Pouech | 2a3b0a1 | 2000-02-26 13:14:04 +0000 | [diff] [blame] | 7119 | dlls/winmm/joystick/Makefile |
Eric Pouech | 68944c2 | 1999-10-24 18:42:42 +0000 | [diff] [blame] | 7120 | dlls/winmm/mcianim/Makefile |
| 7121 | dlls/winmm/mciavi/Makefile |
| 7122 | dlls/winmm/mcicda/Makefile |
| 7123 | dlls/winmm/mciseq/Makefile |
| 7124 | dlls/winmm/mciwave/Makefile |
Eric Pouech | abe7227 | 1999-10-31 02:23:49 +0000 | [diff] [blame] | 7125 | dlls/winmm/midimap/Makefile |
| 7126 | dlls/winmm/wavemap/Makefile |
Eric Pouech | 68944c2 | 1999-10-24 18:42:42 +0000 | [diff] [blame] | 7127 | dlls/winmm/wineoss/Makefile |
Hidenori Takeshima | 9c67213 | 2000-12-14 21:56:18 +0000 | [diff] [blame] | 7128 | dlls/winnls/Makefile |
Alexandre Julliard | de07869 | 2000-01-23 22:07:15 +0000 | [diff] [blame] | 7129 | dlls/winsock/Makefile |
Huw D M Davies | e39b676 | 1999-05-17 16:20:51 +0000 | [diff] [blame] | 7130 | dlls/winspool/Makefile |
Rein Klazes | 2a4c68b | 2001-04-16 19:36:12 +0000 | [diff] [blame] | 7131 | dlls/wintrust/Makefile |
Alexandre Julliard | c607532 | 2000-07-09 11:19:35 +0000 | [diff] [blame] | 7132 | dlls/wow32/Makefile |
| 7133 | dlls/wsock32/Makefile |
Alexandre Julliard | 1dac57f | 2000-03-19 12:08:09 +0000 | [diff] [blame] | 7134 | dlls/x11drv/Makefile |
Alexandre Julliard | d37eb36 | 1997-07-20 16:23:21 +0000 | [diff] [blame] | 7135 | documentation/Makefile |
Alexandre Julliard | d6baf1b | 1999-07-18 15:47:22 +0000 | [diff] [blame] | 7136 | documentation/wine.conf.man |
Marcus Meissner | 5a70c97 | 1999-06-05 09:00:21 +0000 | [diff] [blame] | 7137 | documentation/wine.man |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 7138 | files/Makefile |
Alexandre Julliard | 0e270f4 | 1996-08-24 18:26:35 +0000 | [diff] [blame] | 7139 | graphics/Makefile |
Huw D M Davies | 3a24f3f | 1999-05-02 10:15:16 +0000 | [diff] [blame] | 7140 | graphics/enhmetafiledrv/Makefile |
Alexandre Julliard | bf9130a | 1996-10-13 17:45:47 +0000 | [diff] [blame] | 7141 | graphics/metafiledrv/Makefile |
Alexandre Julliard | 0e270f4 | 1996-08-24 18:26:35 +0000 | [diff] [blame] | 7142 | graphics/win16drv/Makefile |
| 7143 | graphics/x11drv/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7144 | if1632/Makefile |
James Juran | c70dc83 | 1999-02-13 12:18:33 +0000 | [diff] [blame] | 7145 | include/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7146 | library/Makefile |
| 7147 | libtest/Makefile |
| 7148 | loader/Makefile |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 7149 | loader/dos/Makefile |
Andreas Mohr | 4eefb96 | 2000-08-01 00:27:35 +0000 | [diff] [blame] | 7150 | loader/ne/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7151 | memory/Makefile |
| 7152 | misc/Makefile |
| 7153 | miscemu/Makefile |
Alexandre Julliard | 9ea19e5 | 1997-01-01 17:29:55 +0000 | [diff] [blame] | 7154 | msdos/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7155 | objects/Makefile |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 7156 | ole/Makefile |
Alexandre Julliard | 02ed4c2 | 1996-03-02 19:34:10 +0000 | [diff] [blame] | 7157 | programs/Makefile |
Andreas Mohr | 4eefb96 | 2000-08-01 00:27:35 +0000 | [diff] [blame] | 7158 | programs/avitools/Makefile |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 7159 | programs/clock/Makefile |
Eric Williams | 30008a0 | 1999-02-05 17:40:47 +0000 | [diff] [blame] | 7160 | programs/cmdlgtst/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7161 | programs/control/Makefile |
Alexandre Julliard | 44ed71f | 1997-12-21 19:17:50 +0000 | [diff] [blame] | 7162 | programs/notepad/Makefile |
Andreas Mohr | 4eefb96 | 2000-08-01 00:27:35 +0000 | [diff] [blame] | 7163 | programs/osversioncheck/Makefile |
Alexandre Julliard | 02ed4c2 | 1996-03-02 19:34:10 +0000 | [diff] [blame] | 7164 | programs/progman/Makefile |
Sylvain St.Germain | 1bb0e66 | 1999-03-14 14:00:22 +0000 | [diff] [blame] | 7165 | programs/regapi/Makefile |
Andreas Mohr | 4eefb96 | 2000-08-01 00:27:35 +0000 | [diff] [blame] | 7166 | programs/regtest/Makefile |
| 7167 | programs/uninstaller/Makefile |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 7168 | programs/view/Makefile |
Dave Pickles | 74f440e | 1999-06-06 15:24:04 +0000 | [diff] [blame] | 7169 | programs/wcmd/Makefile |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 7170 | programs/wineconsole/Makefile |
Joshua Thielen | a3f2380 | 2000-03-15 19:06:39 +0000 | [diff] [blame] | 7171 | programs/winemine/Makefile |
Alexandre Julliard | fc68434 | 2001-03-21 21:41:27 +0000 | [diff] [blame] | 7172 | programs/winetest/Makefile |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 7173 | programs/winhelp/Makefile |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 7174 | programs/winver/Makefile |
Alexandre Julliard | 44ed71f | 1997-12-21 19:17:50 +0000 | [diff] [blame] | 7175 | relay32/Makefile |
Alexandre Julliard | 9ea19e5 | 1997-01-01 17:29:55 +0000 | [diff] [blame] | 7176 | scheduler/Makefile |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 7177 | server/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7178 | tools/Makefile |
Patrik Stridvall | 647ac51 | 2001-07-30 20:21:34 +0000 | [diff] [blame] | 7179 | tools/winapi/Makefile |
Alexandre Julliard | e482eeb | 2000-06-23 20:15:35 +0000 | [diff] [blame] | 7180 | tools/winebuild/Makefile |
Eric Pouech | d786a12 | 2001-09-07 16:04:38 +0000 | [diff] [blame] | 7181 | tools/winedump/Makefile |
Jeremy White | f9f030b | 2000-11-05 20:06:56 +0000 | [diff] [blame] | 7182 | tools/winelauncher |
Bertho Stultiens | 3085591 | 2000-06-13 04:34:41 +0000 | [diff] [blame] | 7183 | tools/wmc/Makefile |
Andreas Mohr | 4eefb96 | 2000-08-01 00:27:35 +0000 | [diff] [blame] | 7184 | tools/wrc/Makefile |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 7185 | tsx11/Makefile |
Alexandre Julliard | fb270dd | 2000-06-09 05:27:21 +0000 | [diff] [blame] | 7186 | unicode/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7187 | win32/Makefile |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7188 | windows/Makefile |
| 7189 | windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7190 | EOF |
| 7191 | cat >> $CONFIG_STATUS <<EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7192 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7193 | # Protect against being on the right side of a sed subst in config.status. |
| 7194 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 7195 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7196 | $ac_vpsub |
| 7197 | $extrasub |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 7198 | s%@SHELL@%$SHELL%g |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7199 | s%@CFLAGS@%$CFLAGS%g |
| 7200 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 7201 | s%@CXXFLAGS@%$CXXFLAGS%g |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 7202 | s%@FFLAGS@%$FFLAGS%g |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7203 | s%@DEFS@%$DEFS%g |
| 7204 | s%@LDFLAGS@%$LDFLAGS%g |
| 7205 | s%@LIBS@%$LIBS%g |
| 7206 | s%@exec_prefix@%$exec_prefix%g |
| 7207 | s%@prefix@%$prefix%g |
| 7208 | s%@program_transform_name@%$program_transform_name%g |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7209 | s%@bindir@%$bindir%g |
| 7210 | s%@sbindir@%$sbindir%g |
| 7211 | s%@libexecdir@%$libexecdir%g |
| 7212 | s%@datadir@%$datadir%g |
| 7213 | s%@sysconfdir@%$sysconfdir%g |
| 7214 | s%@sharedstatedir@%$sharedstatedir%g |
| 7215 | s%@localstatedir@%$localstatedir%g |
| 7216 | s%@libdir@%$libdir%g |
| 7217 | s%@includedir@%$includedir%g |
| 7218 | s%@oldincludedir@%$oldincludedir%g |
| 7219 | s%@infodir@%$infodir%g |
| 7220 | s%@mandir@%$mandir%g |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 7221 | s%@OPTIONS@%$OPTIONS%g |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7222 | s%@SET_MAKE@%$SET_MAKE%g |
| 7223 | s%@CC@%$CC%g |
| 7224 | s%@CPP@%$CPP%g |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 7225 | s%@X_CFLAGS@%$X_CFLAGS%g |
| 7226 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g |
| 7227 | s%@X_LIBS@%$X_LIBS%g |
| 7228 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7229 | s%@YACC@%$YACC%g |
| 7230 | s%@LEX@%$LEX%g |
| 7231 | s%@LEXLIB@%$LEXLIB%g |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 7232 | s%@XLEX@%$XLEX%g |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 7233 | s%@RANLIB@%$RANLIB%g |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7234 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 7235 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7236 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 7237 | s%@LN_S@%$LN_S%g |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 7238 | s%@C2MAN@%$C2MAN%g |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 7239 | s%@LDCONFIG@%$LDCONFIG%g |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 7240 | s%@DLLWRAP@%$DLLWRAP%g |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 7241 | s%@LINT@%$LINT%g |
| 7242 | s%@LINTFLAGS@%$LINTFLAGS%g |
Dimitrie O. Paun | 79e44ab | 2000-12-05 04:13:36 +0000 | [diff] [blame] | 7243 | s%@LDCOMBINE@%$LDCOMBINE%g |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 7244 | s%@JPEGLIB@%$JPEGLIB%g |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7245 | s%@XLIB@%$XLIB%g |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 7246 | s%@XFILES@%$XFILES%g |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7247 | s%@OPENGLFILES@%$OPENGLFILES%g |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7248 | s%@GLU32FILES@%$GLU32FILES%g |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame^] | 7249 | s%@CURSESLIBS@%$CURSESLIBS%g |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 7250 | s%@CUPSLIBS@%$CUPSLIBS%g |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 7251 | s%@ft_devel@%$ft_devel%g |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 7252 | s%@ft_devel2@%$ft_devel2%g |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 7253 | s%@FREETYPELIBS@%$FREETYPELIBS%g |
| 7254 | s%@FREETYPEINCL@%$FREETYPEINCL%g |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 7255 | s%@DLLFLAGS@%$DLLFLAGS%g |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 7256 | s%@LDSHARED@%$LDSHARED%g |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 7257 | s%@LDDLLFLAGS@%$LDDLLFLAGS%g |
Alexandre Julliard | 0adad95 | 2000-01-26 01:45:58 +0000 | [diff] [blame] | 7258 | s%@LIBEXT@%$LIBEXT%g |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 7259 | s%@LDPATH@%$LDPATH%g |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 7260 | s%@ALLOCA@%$ALLOCA%g |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 7261 | s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 7262 | /@MAKE_RULES@/r $MAKE_RULES |
| 7263 | s%@MAKE_RULES@%%g |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 7264 | /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES |
| 7265 | s%@MAKE_DLL_RULES@%%g |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 7266 | /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES |
| 7267 | s%@MAKE_PROG_RULES@%%g |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7268 | |
| 7269 | CEOF |
| 7270 | EOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 7271 | |
| 7272 | cat >> $CONFIG_STATUS <<\EOF |
| 7273 | |
| 7274 | # Split the substitutions into bite-sized pieces for seds with |
| 7275 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 7276 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 7277 | ac_file=1 # Number of current file. |
| 7278 | ac_beg=1 # First line for current file. |
| 7279 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 7280 | ac_more_lines=: |
| 7281 | ac_sed_cmds="" |
| 7282 | while $ac_more_lines; do |
| 7283 | if test $ac_beg -gt 1; then |
| 7284 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 7285 | else |
| 7286 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 7287 | fi |
| 7288 | if test ! -s conftest.s$ac_file; then |
| 7289 | ac_more_lines=false |
| 7290 | rm -f conftest.s$ac_file |
| 7291 | else |
| 7292 | if test -z "$ac_sed_cmds"; then |
| 7293 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 7294 | else |
| 7295 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 7296 | fi |
| 7297 | ac_file=`expr $ac_file + 1` |
| 7298 | ac_beg=$ac_end |
| 7299 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 7300 | fi |
| 7301 | done |
| 7302 | if test -z "$ac_sed_cmds"; then |
| 7303 | ac_sed_cmds=cat |
| 7304 | fi |
| 7305 | EOF |
| 7306 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7307 | cat >> $CONFIG_STATUS <<EOF |
| 7308 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7309 | CONFIG_FILES=\${CONFIG_FILES-"Make.rules |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 7310 | dlls/Makedll.rules |
| 7311 | programs/Makeprog.rules |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7312 | Makefile |
Joseph Pranevich | 791cd6a | 1998-12-02 19:58:08 +0000 | [diff] [blame] | 7313 | console/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7314 | controls/Makefile |
| 7315 | debugger/Makefile |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 7316 | dlls/Makefile |
Juergen Schmied | f7b0de3 | 1999-01-03 12:48:29 +0000 | [diff] [blame] | 7317 | dlls/advapi32/Makefile |
Hidenori Takeshima | 1c53a7f | 2001-11-06 00:41:05 +0000 | [diff] [blame] | 7318 | dlls/avicap32/Makefile |
Marcus Meissner | b3d1a22 | 1999-03-13 18:07:44 +0000 | [diff] [blame] | 7319 | dlls/avifil32/Makefile |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 7320 | dlls/comctl32/Makefile |
Klaas van Gend | c912749 | 1999-02-28 20:05:11 +0000 | [diff] [blame] | 7321 | dlls/commdlg/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 7322 | dlls/crtdll/Makefile |
| 7323 | dlls/dciman32/Makefile |
Alexandre Julliard | ddce652 | 2000-03-17 16:58:10 +0000 | [diff] [blame] | 7324 | dlls/ddraw/Makefile |
Hidenori Takeshima | b4be998 | 2001-10-23 20:35:23 +0000 | [diff] [blame] | 7325 | dlls/devenum/Makefile |
Alexandre Julliard | ddce652 | 2000-03-17 16:58:10 +0000 | [diff] [blame] | 7326 | dlls/dinput/Makefile |
Alexandre Julliard | c607532 | 2000-07-09 11:19:35 +0000 | [diff] [blame] | 7327 | dlls/dplay/Makefile |
Peter Hunnisett | 22b861c | 1999-09-28 16:35:32 +0000 | [diff] [blame] | 7328 | dlls/dplayx/Makefile |
Eric Pouech | 68944c2 | 1999-10-24 18:42:42 +0000 | [diff] [blame] | 7329 | dlls/dsound/Makefile |
Alexandre Julliard | 1dac57f | 2000-03-19 12:08:09 +0000 | [diff] [blame] | 7330 | dlls/gdi/Makefile |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7331 | dlls/glu32/Makefile |
Francois Gouget | edf3e43 | 1999-11-07 21:22:17 +0000 | [diff] [blame] | 7332 | dlls/icmp/Makefile |
Patrik Stridvall | 8295c86 | 1998-10-11 17:09:05 +0000 | [diff] [blame] | 7333 | dlls/imagehlp/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 7334 | dlls/imm32/Makefile |
Dimitrie O. Paun | 36b5b6b | 2000-06-03 00:07:44 +0000 | [diff] [blame] | 7335 | dlls/kernel/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 7336 | dlls/lzexpand/Makefile |
Hidenori Takeshima | 1a8b339 | 2001-09-14 21:36:30 +0000 | [diff] [blame] | 7337 | dlls/mapi32/Makefile |
Ulrich Weigand | bb1984e | 1999-08-07 14:32:33 +0000 | [diff] [blame] | 7338 | dlls/mpr/Makefile |
Patrik Stridvall | 8295c86 | 1998-10-11 17:09:05 +0000 | [diff] [blame] | 7339 | dlls/msacm/Makefile |
Hidenori Takeshima | b4be998 | 2001-10-23 20:35:23 +0000 | [diff] [blame] | 7340 | dlls/msdmo/Makefile |
Hidenori Takeshima | 1a8b339 | 2001-09-14 21:36:30 +0000 | [diff] [blame] | 7341 | dlls/msimg32/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 7342 | dlls/msnet32/Makefile |
Hidenori Takeshima | 1c53a7f | 2001-11-06 00:41:05 +0000 | [diff] [blame] | 7343 | dlls/msrle32/Makefile |
Jon Griffiths | 1db20bf | 2001-01-10 23:59:25 +0000 | [diff] [blame] | 7344 | dlls/msvcrt/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 7345 | dlls/msvideo/Makefile |
Mike McCormack | 2e40b96 | 2001-11-06 17:52:36 +0000 | [diff] [blame] | 7346 | dlls/netapi32/Makefile |
Marcus Meissner | 51505b1 | 1998-11-01 14:00:21 +0000 | [diff] [blame] | 7347 | dlls/ntdll/Makefile |
Alexandre Julliard | 8551f8c | 1999-12-11 23:56:46 +0000 | [diff] [blame] | 7348 | dlls/odbc32/Makefile |
Ulrich Weigand | 2a722f4 | 1999-09-19 18:36:53 +0000 | [diff] [blame] | 7349 | dlls/ole32/Makefile |
| 7350 | dlls/oleaut32/Makefile |
| 7351 | dlls/olecli/Makefile |
| 7352 | dlls/oledlg/Makefile |
Sean Langley | 58c71d4 | 2000-02-07 16:26:56 +0000 | [diff] [blame] | 7353 | dlls/olepro32/Makefile |
Ulrich Weigand | 2a722f4 | 1999-09-19 18:36:53 +0000 | [diff] [blame] | 7354 | dlls/olesvr/Makefile |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7355 | dlls/opengl32/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7356 | dlls/psapi/Makefile |
Hidenori Takeshima | b4be998 | 2001-10-23 20:35:23 +0000 | [diff] [blame] | 7357 | dlls/qcap/Makefile |
Hidenori Takeshima | b7d4b4e | 2001-07-02 18:57:22 +0000 | [diff] [blame] | 7358 | dlls/quartz/Makefile |
Marcus Meissner | 30ef877 | 1998-12-11 13:26:26 +0000 | [diff] [blame] | 7359 | dlls/rasapi32/Makefile |
Hidenori Takeshima | e75f9fb | 2000-05-03 18:12:19 +0000 | [diff] [blame] | 7360 | dlls/richedit/Makefile |
Huw D M Davies | 10b1b23 | 2000-07-15 19:53:50 +0000 | [diff] [blame] | 7361 | dlls/rpcrt4/Makefile |
Mike McCormack | dc2461e | 2000-07-15 21:35:55 +0000 | [diff] [blame] | 7362 | dlls/serialui/Makefile |
Francois Jacques | df5e579 | 2000-07-08 18:27:03 +0000 | [diff] [blame] | 7363 | dlls/setupapi/Makefile |
John R. Sheets | bc80a3b | 2001-01-11 22:32:44 +0000 | [diff] [blame] | 7364 | dlls/shdocvw/Makefile |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 7365 | dlls/shell32/Makefile |
Alexandre Julliard | c607532 | 2000-07-09 11:19:35 +0000 | [diff] [blame] | 7366 | dlls/shfolder/Makefile |
| 7367 | dlls/shlwapi/Makefile |
Hidenori Takeshima | 1a8b339 | 2001-09-14 21:36:30 +0000 | [diff] [blame] | 7368 | dlls/sti/Makefile |
Andreas Mohr | 5aa96c1 | 1999-03-14 12:34:25 +0000 | [diff] [blame] | 7369 | dlls/tapi32/Makefile |
Alexandre Julliard | 1dac57f | 2000-03-19 12:08:09 +0000 | [diff] [blame] | 7370 | dlls/ttydrv/Makefile |
Hidenori Takeshima | 1a8b339 | 2001-09-14 21:36:30 +0000 | [diff] [blame] | 7371 | dlls/url/Makefile |
Alexandre Julliard | 819fa8c | 2000-04-11 20:07:00 +0000 | [diff] [blame] | 7372 | dlls/urlmon/Makefile |
Alexandre Julliard | 1dac57f | 2000-03-19 12:08:09 +0000 | [diff] [blame] | 7373 | dlls/user/Makefile |
Ulrich Weigand | d43a46a | 1999-01-31 10:11:04 +0000 | [diff] [blame] | 7374 | dlls/version/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 7375 | dlls/win32s/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7376 | dlls/winaspi/Makefile |
Ove Kaaven | e5557b3 | 2000-12-26 00:22:45 +0000 | [diff] [blame] | 7377 | dlls/winedos/Makefile |
Dimitrie O. Paun | 84bde6a | 2000-05-30 20:27:23 +0000 | [diff] [blame] | 7378 | dlls/wineps/Makefile |
Alexandre Julliard | 819fa8c | 2000-04-11 20:07:00 +0000 | [diff] [blame] | 7379 | dlls/wininet/Makefile |
Eric Pouech | 68944c2 | 1999-10-24 18:42:42 +0000 | [diff] [blame] | 7380 | dlls/winmm/Makefile |
Eric Pouech | 2a3b0a1 | 2000-02-26 13:14:04 +0000 | [diff] [blame] | 7381 | dlls/winmm/joystick/Makefile |
Eric Pouech | 68944c2 | 1999-10-24 18:42:42 +0000 | [diff] [blame] | 7382 | dlls/winmm/mcianim/Makefile |
| 7383 | dlls/winmm/mciavi/Makefile |
| 7384 | dlls/winmm/mcicda/Makefile |
| 7385 | dlls/winmm/mciseq/Makefile |
| 7386 | dlls/winmm/mciwave/Makefile |
Eric Pouech | abe7227 | 1999-10-31 02:23:49 +0000 | [diff] [blame] | 7387 | dlls/winmm/midimap/Makefile |
| 7388 | dlls/winmm/wavemap/Makefile |
Eric Pouech | 68944c2 | 1999-10-24 18:42:42 +0000 | [diff] [blame] | 7389 | dlls/winmm/wineoss/Makefile |
Hidenori Takeshima | 9c67213 | 2000-12-14 21:56:18 +0000 | [diff] [blame] | 7390 | dlls/winnls/Makefile |
Alexandre Julliard | de07869 | 2000-01-23 22:07:15 +0000 | [diff] [blame] | 7391 | dlls/winsock/Makefile |
Huw D M Davies | e39b676 | 1999-05-17 16:20:51 +0000 | [diff] [blame] | 7392 | dlls/winspool/Makefile |
Rein Klazes | 2a4c68b | 2001-04-16 19:36:12 +0000 | [diff] [blame] | 7393 | dlls/wintrust/Makefile |
Alexandre Julliard | c607532 | 2000-07-09 11:19:35 +0000 | [diff] [blame] | 7394 | dlls/wow32/Makefile |
| 7395 | dlls/wsock32/Makefile |
Alexandre Julliard | 1dac57f | 2000-03-19 12:08:09 +0000 | [diff] [blame] | 7396 | dlls/x11drv/Makefile |
Alexandre Julliard | d37eb36 | 1997-07-20 16:23:21 +0000 | [diff] [blame] | 7397 | documentation/Makefile |
Alexandre Julliard | d6baf1b | 1999-07-18 15:47:22 +0000 | [diff] [blame] | 7398 | documentation/wine.conf.man |
Marcus Meissner | 5a70c97 | 1999-06-05 09:00:21 +0000 | [diff] [blame] | 7399 | documentation/wine.man |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 7400 | files/Makefile |
Alexandre Julliard | 0e270f4 | 1996-08-24 18:26:35 +0000 | [diff] [blame] | 7401 | graphics/Makefile |
Huw D M Davies | 3a24f3f | 1999-05-02 10:15:16 +0000 | [diff] [blame] | 7402 | graphics/enhmetafiledrv/Makefile |
Alexandre Julliard | bf9130a | 1996-10-13 17:45:47 +0000 | [diff] [blame] | 7403 | graphics/metafiledrv/Makefile |
Alexandre Julliard | 0e270f4 | 1996-08-24 18:26:35 +0000 | [diff] [blame] | 7404 | graphics/win16drv/Makefile |
| 7405 | graphics/x11drv/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7406 | if1632/Makefile |
James Juran | c70dc83 | 1999-02-13 12:18:33 +0000 | [diff] [blame] | 7407 | include/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7408 | library/Makefile |
| 7409 | libtest/Makefile |
| 7410 | loader/Makefile |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 7411 | loader/dos/Makefile |
Andreas Mohr | 4eefb96 | 2000-08-01 00:27:35 +0000 | [diff] [blame] | 7412 | loader/ne/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7413 | memory/Makefile |
| 7414 | misc/Makefile |
| 7415 | miscemu/Makefile |
Alexandre Julliard | 9ea19e5 | 1997-01-01 17:29:55 +0000 | [diff] [blame] | 7416 | msdos/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7417 | objects/Makefile |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 7418 | ole/Makefile |
Alexandre Julliard | 02ed4c2 | 1996-03-02 19:34:10 +0000 | [diff] [blame] | 7419 | programs/Makefile |
Andreas Mohr | 4eefb96 | 2000-08-01 00:27:35 +0000 | [diff] [blame] | 7420 | programs/avitools/Makefile |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 7421 | programs/clock/Makefile |
Eric Williams | 30008a0 | 1999-02-05 17:40:47 +0000 | [diff] [blame] | 7422 | programs/cmdlgtst/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7423 | programs/control/Makefile |
Alexandre Julliard | 44ed71f | 1997-12-21 19:17:50 +0000 | [diff] [blame] | 7424 | programs/notepad/Makefile |
Andreas Mohr | 4eefb96 | 2000-08-01 00:27:35 +0000 | [diff] [blame] | 7425 | programs/osversioncheck/Makefile |
Alexandre Julliard | 02ed4c2 | 1996-03-02 19:34:10 +0000 | [diff] [blame] | 7426 | programs/progman/Makefile |
Sylvain St.Germain | 1bb0e66 | 1999-03-14 14:00:22 +0000 | [diff] [blame] | 7427 | programs/regapi/Makefile |
Andreas Mohr | 4eefb96 | 2000-08-01 00:27:35 +0000 | [diff] [blame] | 7428 | programs/regtest/Makefile |
| 7429 | programs/uninstaller/Makefile |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 7430 | programs/view/Makefile |
Dave Pickles | 74f440e | 1999-06-06 15:24:04 +0000 | [diff] [blame] | 7431 | programs/wcmd/Makefile |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 7432 | programs/wineconsole/Makefile |
Joshua Thielen | a3f2380 | 2000-03-15 19:06:39 +0000 | [diff] [blame] | 7433 | programs/winemine/Makefile |
Alexandre Julliard | fc68434 | 2001-03-21 21:41:27 +0000 | [diff] [blame] | 7434 | programs/winetest/Makefile |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 7435 | programs/winhelp/Makefile |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 7436 | programs/winver/Makefile |
Alexandre Julliard | 44ed71f | 1997-12-21 19:17:50 +0000 | [diff] [blame] | 7437 | relay32/Makefile |
Alexandre Julliard | 9ea19e5 | 1997-01-01 17:29:55 +0000 | [diff] [blame] | 7438 | scheduler/Makefile |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 7439 | server/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7440 | tools/Makefile |
Patrik Stridvall | 647ac51 | 2001-07-30 20:21:34 +0000 | [diff] [blame] | 7441 | tools/winapi/Makefile |
Alexandre Julliard | e482eeb | 2000-06-23 20:15:35 +0000 | [diff] [blame] | 7442 | tools/winebuild/Makefile |
Eric Pouech | d786a12 | 2001-09-07 16:04:38 +0000 | [diff] [blame] | 7443 | tools/winedump/Makefile |
Jeremy White | f9f030b | 2000-11-05 20:06:56 +0000 | [diff] [blame] | 7444 | tools/winelauncher |
Bertho Stultiens | 3085591 | 2000-06-13 04:34:41 +0000 | [diff] [blame] | 7445 | tools/wmc/Makefile |
Andreas Mohr | 4eefb96 | 2000-08-01 00:27:35 +0000 | [diff] [blame] | 7446 | tools/wrc/Makefile |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 7447 | tsx11/Makefile |
Alexandre Julliard | fb270dd | 2000-06-09 05:27:21 +0000 | [diff] [blame] | 7448 | unicode/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7449 | win32/Makefile |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7450 | windows/Makefile |
| 7451 | windows/x11drv/Makefile "} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7452 | EOF |
| 7453 | cat >> $CONFIG_STATUS <<\EOF |
| 7454 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7455 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7456 | case "$ac_file" in |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7457 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7458 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 7459 | *) ac_file_in="${ac_file}.in" ;; |
| 7460 | esac |
| 7461 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 7462 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7463 | |
| 7464 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 7465 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 7466 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 7467 | # The file is in a subdirectory. |
| 7468 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 7469 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 7470 | # A "../" for each directory in $ac_dir_suffix. |
| 7471 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 7472 | else |
| 7473 | ac_dir_suffix= ac_dots= |
| 7474 | fi |
| 7475 | |
| 7476 | case "$ac_given_srcdir" in |
| 7477 | .) srcdir=. |
| 7478 | if test -z "$ac_dots"; then top_srcdir=. |
| 7479 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 7480 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 7481 | *) # Relative path. |
| 7482 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 7483 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 7484 | esac |
| 7485 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7486 | case "$ac_given_INSTALL" in |
| 7487 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 7488 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 7489 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 7490 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7491 | echo creating "$ac_file" |
| 7492 | rm -f "$ac_file" |
| 7493 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 7494 | case "$ac_file" in |
| 7495 | *Makefile*) ac_comsub="1i\\ |
| 7496 | # $configure_input" ;; |
| 7497 | *) ac_comsub= ;; |
| 7498 | esac |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7499 | |
| 7500 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7501 | sed -e "$ac_comsub |
| 7502 | s%@configure_input@%$configure_input%g |
| 7503 | s%@srcdir@%$srcdir%g |
| 7504 | s%@top_srcdir@%$top_srcdir%g |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7505 | s%@INSTALL@%$INSTALL%g |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7506 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7507 | fi; done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 7508 | rm -f conftest.s* |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7509 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 7510 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 7511 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 7512 | # |
| 7513 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 7514 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 7515 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
| 7516 | ac_dC='\3' |
| 7517 | ac_dD='%g' |
| 7518 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
| 7519 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7520 | ac_uB='\([ ]\)%\1#\2define\3' |
| 7521 | ac_uC=' ' |
| 7522 | ac_uD='\4%g' |
| 7523 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 7524 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7525 | ac_eB='$%\1#\2define\3' |
| 7526 | ac_eC=' ' |
| 7527 | ac_eD='%g' |
| 7528 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7529 | if test "${CONFIG_HEADERS+set}" != set; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 7530 | EOF |
| 7531 | cat >> $CONFIG_STATUS <<EOF |
| 7532 | CONFIG_HEADERS="include/config.h" |
| 7533 | EOF |
| 7534 | cat >> $CONFIG_STATUS <<\EOF |
| 7535 | fi |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 7536 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7537 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 7538 | case "$ac_file" in |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7539 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 7540 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 7541 | *) ac_file_in="${ac_file}.in" ;; |
| 7542 | esac |
| 7543 | |
| 7544 | echo creating $ac_file |
| 7545 | |
| 7546 | rm -f conftest.frag conftest.in conftest.out |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7547 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 7548 | cat $ac_file_inputs > conftest.in |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 7549 | |
| 7550 | EOF |
| 7551 | |
| 7552 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 7553 | # the proper values into config.h.in to produce config.h. And first: |
| 7554 | # Protect against being on the right side of a sed subst in config.status. |
| 7555 | # Protect against being in an unquoted here document in config.status. |
| 7556 | rm -f conftest.vals |
| 7557 | cat > conftest.hdr <<\EOF |
| 7558 | s/[\\&%]/\\&/g |
| 7559 | s%[\\$`]%\\&%g |
| 7560 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
| 7561 | s%ac_d%ac_u%gp |
| 7562 | s%ac_u%ac_e%gp |
| 7563 | EOF |
| 7564 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 7565 | rm -f conftest.hdr |
| 7566 | |
| 7567 | # This sed command replaces #undef with comments. This is necessary, for |
| 7568 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 7569 | # on some systems where configure will not decide to define it. |
| 7570 | cat >> conftest.vals <<\EOF |
| 7571 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 7572 | EOF |
| 7573 | |
| 7574 | # Break up conftest.vals because some shells have a limit on |
| 7575 | # the size of here documents, and old seds have small limits too. |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 7576 | |
| 7577 | rm -f conftest.tail |
| 7578 | while : |
| 7579 | do |
| 7580 | ac_lines=`grep -c . conftest.vals` |
| 7581 | # grep -c gives empty output for an empty file on some AIX systems. |
| 7582 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 7583 | # Write a limited-size here document to conftest.frag. |
| 7584 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 7585 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 7586 | echo 'CEOF |
| 7587 | sed -f conftest.frag conftest.in > conftest.out |
| 7588 | rm -f conftest.in |
| 7589 | mv conftest.out conftest.in |
| 7590 | ' >> $CONFIG_STATUS |
| 7591 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 7592 | rm -f conftest.vals |
| 7593 | mv conftest.tail conftest.vals |
| 7594 | done |
| 7595 | rm -f conftest.vals |
| 7596 | |
| 7597 | cat >> $CONFIG_STATUS <<\EOF |
| 7598 | rm -f conftest.frag conftest.h |
| 7599 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
| 7600 | cat conftest.in >> conftest.h |
| 7601 | rm -f conftest.in |
| 7602 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
| 7603 | echo "$ac_file is unchanged" |
| 7604 | rm -f conftest.h |
| 7605 | else |
| 7606 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 7607 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 7608 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 7609 | # The file is in a subdirectory. |
| 7610 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 7611 | fi |
| 7612 | rm -f $ac_file |
| 7613 | mv conftest.h $ac_file |
| 7614 | fi |
| 7615 | fi; done |
| 7616 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7617 | EOF |
| 7618 | cat >> $CONFIG_STATUS <<EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7619 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 7620 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7621 | EOF |
| 7622 | cat >> $CONFIG_STATUS <<\EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7623 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 7624 | extra_subdirs="\ |
| 7625 | dlls/ddraw/d3ddevice \ |
| 7626 | dlls/ddraw/dclipper \ |
| 7627 | dlls/ddraw/ddraw \ |
| 7628 | dlls/ddraw/direct3d \ |
| 7629 | dlls/ddraw/dpalette \ |
| 7630 | dlls/ddraw/dsurface \ |
Lionel Ulmer | 6301e94 | 2000-11-05 20:25:02 +0000 | [diff] [blame] | 7631 | dlls/dinput/joystick \ |
| 7632 | dlls/dinput/keyboard \ |
| 7633 | dlls/dinput/mouse \ |
Alexandre Julliard | d1d0905 | 2000-07-30 13:39:52 +0000 | [diff] [blame] | 7634 | dlls/kernel/messages \ |
Dmitry Timoshkov | 3b725f6 | 2001-06-29 19:20:18 +0000 | [diff] [blame] | 7635 | dlls/user/dde \ |
Alexandre Julliard | 2affae5 | 2000-10-23 21:32:05 +0000 | [diff] [blame] | 7636 | dlls/user/resources \ |
Ian Pilcher | 55d2e57 | 2001-05-29 22:06:10 +0000 | [diff] [blame] | 7637 | dlls/wineps/data \ |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 7638 | " |
| 7639 | for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done |
| 7640 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7641 | exit 0 |
| 7642 | EOF |
| 7643 | chmod +x $CONFIG_STATUS |
| 7644 | rm -fr confdefs* $ac_clean_files |
| 7645 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 7646 | |
| 7647 | |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 7648 | if test "$have_x" = "no" |
| 7649 | then |
| 7650 | echo |
| 7651 | echo "*** Warning: X development files not found. Wine will be built without" |
| 7652 | echo "*** X support, which currently does not work, and would probably not be" |
| 7653 | echo "*** what you want anyway. You will need to install devel packages of" |
| 7654 | echo "*** Xlib/Xfree86 and Xpm at the very least." |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 7655 | elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no" |
| 7656 | then |
| 7657 | echo |
| 7658 | echo "*** Warning: Xpm development files not found. Wine will be built without" |
| 7659 | echo "*** Xpm support, which currently does not work. You will need to install" |
| 7660 | echo "*** devel packages of Xpm." |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 7661 | fi |
| 7662 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7663 | if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes" |
| 7664 | then |
| 7665 | echo |
| 7666 | echo "*** Warning: resizeterm not found in ncurses. Wine will be built without" |
| 7667 | echo "*** terminal resize support. Consider upgrading ncurses." |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7668 | fi |
| 7669 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7670 | if test "$wine_cv_libc_reentrant" = "no" |
| 7671 | then |
| 7672 | echo |
| 7673 | echo "*** Warning: non-reentrant libc detected. Wine will be build without" |
| 7674 | echo "*** thread support. Consider upgrading libc to a more recent" |
| 7675 | echo "*** reentrant version of libc." |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 7676 | fi |
| 7677 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7678 | if test "$wine_cv_opengl_version_OK" = "no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7679 | then |
| 7680 | echo |
| 7681 | echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 7682 | echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." |
| 7683 | fi |
| 7684 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7685 | if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 7686 | then |
| 7687 | echo |
| 7688 | echo "*** Warning: the OpenGL version you have installed relies on libpthread for" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7689 | echo "*** thread-safety. To prevent crashes, OpenGL support has been removed." |
Andreas Mohr | 18a9d74 | 2001-01-17 21:52:42 +0000 | [diff] [blame] | 7690 | echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine," |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7691 | echo "*** start configure with '--enable-opengl' to force OpenGL support." |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7692 | fi |
| 7693 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7694 | if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7695 | then |
| 7696 | echo |
Alexandre Julliard | d6c0f9f | 2001-01-04 22:44:55 +0000 | [diff] [blame] | 7697 | echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7698 | echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL" |
| 7699 | echo "*** support before reporting bugs." |
| 7700 | fi |
| 7701 | |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 7702 | if test "$wine_cv_warn_cups_h" = "yes" |
| 7703 | then |
| 7704 | echo |
| 7705 | echo "*** Note: You have cups runtime libraries, but no development" |
| 7706 | echo "*** libraries. Install the cups-devel package or whichever package" |
| 7707 | echo "*** contains cups.h to enable CUPS support in WINE." |
| 7708 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7709 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 7710 | if test "$wine_cv_msg_freetype" = "yes" |
| 7711 | then |
| 7712 | echo |
| 7713 | echo "*** Note: Your system appears to have the FreeType 2 runtime libraries" |
| 7714 | echo "*** installed, but 'freetype-config' is not in your PATH. Install the" |
| 7715 | echo "*** freetype-devel package (or its equivalent on your distribution) to" |
| 7716 | echo "*** enable Wine to use TrueType fonts." |
| 7717 | fi |
| 7718 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7719 | echo |
Steffen Moeller | 1511bae | 1999-02-17 15:27:03 +0000 | [diff] [blame] | 7720 | echo "Configure finished. Do 'make depend && make' to compile Wine." |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7721 | echo |
| 7722 | |