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. |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5 | # Generated automatically using autoconf version 2.10-patched |
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 | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 16 | --with-library build Wine as a library instead of an emulator" |
| 17 | ac_help="$ac_help |
Alexandre Julliard | 7e56f68 | 1996-01-31 19:02:28 +0000 | [diff] [blame] | 18 | --with-dll build Wine as a DLL instead of an emulator" |
| 19 | ac_help="$ac_help |
Alexandre Julliard | b7258be | 1995-09-01 15:57:28 +0000 | [diff] [blame] | 20 | --with-ipc use inter-process communication for DDE" |
| 21 | ac_help="$ac_help |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 22 | --with-x use the X Window System" |
| 23 | |
| 24 | # Initialize some variables set by options. |
| 25 | # The variables have the same names as the options, with |
| 26 | # dashes changed to underlines. |
| 27 | build=NONE |
| 28 | cache_file=./config.cache |
| 29 | exec_prefix=NONE |
| 30 | host=NONE |
| 31 | no_create= |
| 32 | nonopt=NONE |
| 33 | no_recursion= |
| 34 | prefix=NONE |
| 35 | program_prefix=NONE |
| 36 | program_suffix=NONE |
| 37 | program_transform_name=s,x,x, |
| 38 | silent= |
| 39 | site= |
| 40 | srcdir= |
| 41 | target=NONE |
| 42 | verbose= |
| 43 | x_includes=NONE |
| 44 | x_libraries=NONE |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 45 | bindir='${exec_prefix}/bin' |
| 46 | sbindir='${exec_prefix}/sbin' |
| 47 | libexecdir='${exec_prefix}/libexec' |
| 48 | datadir='${prefix}/share' |
| 49 | sysconfdir='${prefix}/etc' |
| 50 | sharedstatedir='${prefix}/com' |
| 51 | localstatedir='${prefix}/var' |
| 52 | libdir='${exec_prefix}/lib' |
| 53 | includedir='${prefix}/include' |
| 54 | oldincludedir='/usr/include' |
| 55 | infodir='${prefix}/info' |
| 56 | mandir='${prefix}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 57 | |
| 58 | # Initialize some other variables. |
| 59 | subdirs= |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 60 | MFLAGS= MAKEFLAGS= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 61 | |
| 62 | ac_prev= |
| 63 | for ac_option |
| 64 | do |
| 65 | |
| 66 | # If the previous option needs an argument, assign it. |
| 67 | if test -n "$ac_prev"; then |
| 68 | eval "$ac_prev=\$ac_option" |
| 69 | ac_prev= |
| 70 | continue |
| 71 | fi |
| 72 | |
| 73 | case "$ac_option" in |
| 74 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 75 | *) ac_optarg= ;; |
| 76 | esac |
| 77 | |
| 78 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 79 | |
| 80 | case "$ac_option" in |
| 81 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 82 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 83 | ac_prev=bindir ;; |
| 84 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 85 | bindir="$ac_optarg" ;; |
| 86 | |
| 87 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 88 | ac_prev=build ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 89 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 90 | build="$ac_optarg" ;; |
| 91 | |
| 92 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 93 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 94 | ac_prev=cache_file ;; |
| 95 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 96 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 97 | cache_file="$ac_optarg" ;; |
| 98 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 99 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 100 | ac_prev=datadir ;; |
| 101 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 102 | | --da=*) |
| 103 | datadir="$ac_optarg" ;; |
| 104 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 105 | -disable-* | --disable-*) |
| 106 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 107 | # Reject names that are not valid shell variable names. |
| 108 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 109 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 110 | fi |
| 111 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 112 | eval "enable_${ac_feature}=no" ;; |
| 113 | |
| 114 | -enable-* | --enable-*) |
| 115 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 116 | # Reject names that are not valid shell variable names. |
| 117 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 118 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 119 | fi |
| 120 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 121 | case "$ac_option" in |
| 122 | *=*) ;; |
| 123 | *) ac_optarg=yes ;; |
| 124 | esac |
| 125 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 126 | |
| 127 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 128 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 129 | | --exec | --exe | --ex) |
| 130 | ac_prev=exec_prefix ;; |
| 131 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 132 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 133 | | --exec=* | --exe=* | --ex=*) |
| 134 | exec_prefix="$ac_optarg" ;; |
| 135 | |
| 136 | -gas | --gas | --ga | --g) |
| 137 | # Obsolete; use --with-gas. |
| 138 | with_gas=yes ;; |
| 139 | |
| 140 | -help | --help | --hel | --he) |
| 141 | # Omit some internal or obsolete options to make the list less imposing. |
| 142 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 143 | cat << EOF |
| 144 | Usage: configure [options] [host] |
| 145 | Options: [defaults in brackets after descriptions] |
| 146 | Configuration: |
| 147 | --cache-file=FILE cache test results in FILE |
| 148 | --help print this message |
| 149 | --no-create do not create output files |
| 150 | --quiet, --silent do not print \`checking...' messages |
| 151 | --version print the version of autoconf that created configure |
| 152 | Directory and file names: |
| 153 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 154 | [$ac_default_prefix] |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 155 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 156 | [same as prefix] |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 157 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 158 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 159 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 160 | --datadir=DIR read-only architecture-independent data in DIR |
| 161 | [PREFIX/share] |
| 162 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 163 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 164 | [PREFIX/com] |
| 165 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 166 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 167 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 168 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 169 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 170 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 171 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 172 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 173 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 174 | --program-transform-name=PROGRAM |
| 175 | run sed PROGRAM on installed program names |
| 176 | EOF |
| 177 | cat << EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 178 | Host type: |
| 179 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 180 | --host=HOST configure for HOST [guessed] |
| 181 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 182 | Features and packages: |
| 183 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 184 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 185 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 186 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 187 | --x-includes=DIR X include files are in DIR |
| 188 | --x-libraries=DIR X library files are in DIR |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 189 | EOF |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 190 | if test -n "$ac_help"; then |
| 191 | echo "--enable and --with options recognized:$ac_help" |
| 192 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 193 | exit 0 ;; |
| 194 | |
| 195 | -host | --host | --hos | --ho) |
| 196 | ac_prev=host ;; |
| 197 | -host=* | --host=* | --hos=* | --ho=*) |
| 198 | host="$ac_optarg" ;; |
| 199 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 200 | -includedir | --includedir | --includedi | --included | --include \ |
| 201 | | --includ | --inclu | --incl | --inc) |
| 202 | ac_prev=includedir ;; |
| 203 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 204 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 205 | includedir="$ac_optarg" ;; |
| 206 | |
| 207 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 208 | ac_prev=infodir ;; |
| 209 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 210 | infodir="$ac_optarg" ;; |
| 211 | |
| 212 | -libdir | --libdir | --libdi | --libd) |
| 213 | ac_prev=libdir ;; |
| 214 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 215 | libdir="$ac_optarg" ;; |
| 216 | |
| 217 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 218 | | --libexe | --libex | --libe) |
| 219 | ac_prev=libexecdir ;; |
| 220 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 221 | | --libexe=* | --libex=* | --libe=*) |
| 222 | libexecdir="$ac_optarg" ;; |
| 223 | |
| 224 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 225 | | --localstate | --localstat | --localsta | --localst \ |
| 226 | | --locals | --local | --loca | --loc | --lo) |
| 227 | ac_prev=localstatedir ;; |
| 228 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 229 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 230 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 231 | localstatedir="$ac_optarg" ;; |
| 232 | |
| 233 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 234 | ac_prev=mandir ;; |
| 235 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 236 | mandir="$ac_optarg" ;; |
| 237 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 238 | -nfp | --nfp | --nf) |
| 239 | # Obsolete; use --without-fp. |
| 240 | with_fp=no ;; |
| 241 | |
| 242 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 243 | | --no-cr | --no-c) |
| 244 | no_create=yes ;; |
| 245 | |
| 246 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 247 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 248 | no_recursion=yes ;; |
| 249 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 250 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 251 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 252 | | --oldin | --oldi | --old | --ol | --o) |
| 253 | ac_prev=oldincludedir ;; |
| 254 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 255 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 256 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 257 | oldincludedir="$ac_optarg" ;; |
| 258 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 259 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 260 | ac_prev=prefix ;; |
| 261 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 262 | prefix="$ac_optarg" ;; |
| 263 | |
| 264 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 265 | | --program-pre | --program-pr | --program-p) |
| 266 | ac_prev=program_prefix ;; |
| 267 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 268 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 269 | program_prefix="$ac_optarg" ;; |
| 270 | |
| 271 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 272 | | --program-suf | --program-su | --program-s) |
| 273 | ac_prev=program_suffix ;; |
| 274 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 275 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 276 | program_suffix="$ac_optarg" ;; |
| 277 | |
| 278 | -program-transform-name | --program-transform-name \ |
| 279 | | --program-transform-nam | --program-transform-na \ |
| 280 | | --program-transform-n | --program-transform- \ |
| 281 | | --program-transform | --program-transfor \ |
| 282 | | --program-transfo | --program-transf \ |
| 283 | | --program-trans | --program-tran \ |
| 284 | | --progr-tra | --program-tr | --program-t) |
| 285 | ac_prev=program_transform_name ;; |
| 286 | -program-transform-name=* | --program-transform-name=* \ |
| 287 | | --program-transform-nam=* | --program-transform-na=* \ |
| 288 | | --program-transform-n=* | --program-transform-=* \ |
| 289 | | --program-transform=* | --program-transfor=* \ |
| 290 | | --program-transfo=* | --program-transf=* \ |
| 291 | | --program-trans=* | --program-tran=* \ |
| 292 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 293 | program_transform_name="$ac_optarg" ;; |
| 294 | |
| 295 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 296 | | -silent | --silent | --silen | --sile | --sil) |
| 297 | silent=yes ;; |
| 298 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 299 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 300 | ac_prev=sbindir ;; |
| 301 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 302 | | --sbi=* | --sb=*) |
| 303 | sbindir="$ac_optarg" ;; |
| 304 | |
| 305 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 306 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 307 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 308 | | --sha | --sh) |
| 309 | ac_prev=sharedstatedir ;; |
| 310 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 311 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 312 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 313 | | --sha=* | --sh=*) |
| 314 | sharedstatedir="$ac_optarg" ;; |
| 315 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 316 | -site | --site | --sit) |
| 317 | ac_prev=site ;; |
| 318 | -site=* | --site=* | --sit=*) |
| 319 | site="$ac_optarg" ;; |
| 320 | |
| 321 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 322 | ac_prev=srcdir ;; |
| 323 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 324 | srcdir="$ac_optarg" ;; |
| 325 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 326 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 327 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 328 | ac_prev=sysconfdir ;; |
| 329 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 330 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 331 | sysconfdir="$ac_optarg" ;; |
| 332 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 333 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 334 | ac_prev=target ;; |
| 335 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 336 | target="$ac_optarg" ;; |
| 337 | |
| 338 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 339 | verbose=yes ;; |
| 340 | |
| 341 | -version | --version | --versio | --versi | --vers) |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 342 | echo "configure generated by autoconf version 2.10-patched" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 343 | exit 0 ;; |
| 344 | |
| 345 | -with-* | --with-*) |
| 346 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 347 | # Reject names that are not valid shell variable names. |
| 348 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 349 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 350 | fi |
| 351 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 352 | case "$ac_option" in |
| 353 | *=*) ;; |
| 354 | *) ac_optarg=yes ;; |
| 355 | esac |
| 356 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 357 | |
| 358 | -without-* | --without-*) |
| 359 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 360 | # Reject names that are not valid shell variable names. |
| 361 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 362 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 363 | fi |
| 364 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 365 | eval "with_${ac_package}=no" ;; |
| 366 | |
| 367 | --x) |
| 368 | # Obsolete; use --with-x. |
| 369 | with_x=yes ;; |
| 370 | |
| 371 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 372 | | --x-incl | --x-inc | --x-in | --x-i) |
| 373 | ac_prev=x_includes ;; |
| 374 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 375 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 376 | x_includes="$ac_optarg" ;; |
| 377 | |
| 378 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 379 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 380 | ac_prev=x_libraries ;; |
| 381 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 382 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 383 | x_libraries="$ac_optarg" ;; |
| 384 | |
| 385 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 386 | ;; |
| 387 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 388 | *) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 389 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 390 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 391 | fi |
| 392 | if test "x$nonopt" != xNONE; then |
| 393 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 394 | fi |
| 395 | nonopt="$ac_option" |
| 396 | ;; |
| 397 | |
| 398 | esac |
| 399 | done |
| 400 | |
| 401 | if test -n "$ac_prev"; then |
| 402 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 403 | fi |
| 404 | |
| 405 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 406 | |
| 407 | # File descriptor usage: |
| 408 | # 0 standard input |
| 409 | # 1 file creation |
| 410 | # 2 errors and warnings |
| 411 | # 3 some systems may open it to /dev/tty |
| 412 | # 4 used on the Kubota Titan |
| 413 | # 6 checking for... messages and results |
| 414 | # 5 compiler messages saved in config.log |
| 415 | if test "$silent" = yes; then |
| 416 | exec 6>/dev/null |
| 417 | else |
| 418 | exec 6>&1 |
| 419 | fi |
| 420 | exec 5>./config.log |
| 421 | |
| 422 | echo "\ |
| 423 | This file contains any messages produced by compilers while |
| 424 | running configure, to aid debugging if configure makes a mistake. |
| 425 | " 1>&5 |
| 426 | |
| 427 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 428 | # Also quote any args containing shell metacharacters. |
| 429 | ac_configure_args= |
| 430 | for ac_arg |
| 431 | do |
| 432 | case "$ac_arg" in |
| 433 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 434 | | --no-cr | --no-c) ;; |
| 435 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 436 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 437 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 438 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 439 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 440 | esac |
| 441 | done |
| 442 | |
| 443 | # NLS nuisances. |
| 444 | # Only set LANG and LC_ALL to C if already set. |
| 445 | # These must not be set unconditionally because not all systems understand |
| 446 | # e.g. LANG=C (notably SCO). |
| 447 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 448 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 449 | |
| 450 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 451 | rm -rf conftest* confdefs.h |
| 452 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 453 | echo > confdefs.h |
| 454 | |
| 455 | # A filename unique to this package, relative to the directory that |
| 456 | # configure is in, which we can look for to find out if srcdir is correct. |
| 457 | ac_unique_file=controls/edit.c |
| 458 | |
| 459 | # Find the source files, if location was not specified. |
| 460 | if test -z "$srcdir"; then |
| 461 | ac_srcdir_defaulted=yes |
| 462 | # Try the directory containing this script, then its parent. |
| 463 | ac_prog=$0 |
| 464 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 465 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 466 | srcdir=$ac_confdir |
| 467 | if test ! -r $srcdir/$ac_unique_file; then |
| 468 | srcdir=.. |
| 469 | fi |
| 470 | else |
| 471 | ac_srcdir_defaulted=no |
| 472 | fi |
| 473 | if test ! -r $srcdir/$ac_unique_file; then |
| 474 | if test "$ac_srcdir_defaulted" = yes; then |
| 475 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 476 | else |
| 477 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 478 | fi |
| 479 | fi |
| 480 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 481 | |
| 482 | # Prefer explicitly selected file to automatically selected ones. |
| 483 | if test -z "$CONFIG_SITE"; then |
| 484 | if test "x$prefix" != xNONE; then |
| 485 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 486 | else |
| 487 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 488 | fi |
| 489 | fi |
| 490 | for ac_site_file in $CONFIG_SITE; do |
| 491 | if test -r "$ac_site_file"; then |
| 492 | echo "loading site script $ac_site_file" |
| 493 | . "$ac_site_file" |
| 494 | fi |
| 495 | done |
| 496 | |
| 497 | if test -r "$cache_file"; then |
| 498 | echo "loading cache $cache_file" |
| 499 | . $cache_file |
| 500 | else |
| 501 | echo "creating cache $cache_file" |
| 502 | > $cache_file |
| 503 | fi |
| 504 | |
| 505 | ac_ext=c |
| 506 | # 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] | 507 | ac_cpp='$CPP $CPPFLAGS' |
| 508 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 509 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 510 | |
| 511 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 512 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 513 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 514 | ac_n= ac_c=' |
| 515 | ' ac_t=' ' |
| 516 | else |
| 517 | ac_n=-n ac_c= ac_t= |
| 518 | fi |
| 519 | else |
| 520 | ac_n= ac_c='\c' ac_t= |
| 521 | fi |
| 522 | |
| 523 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 524 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 525 | ac_aux_dir= |
| 526 | for ac_dir in tools $srcdir/tools; do |
| 527 | if test -f $ac_dir/install-sh; then |
| 528 | ac_aux_dir=$ac_dir |
| 529 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 530 | break |
| 531 | elif test -f $ac_dir/install.sh; then |
| 532 | ac_aux_dir=$ac_dir |
| 533 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 534 | break |
| 535 | fi |
| 536 | done |
| 537 | if test -z "$ac_aux_dir"; then |
| 538 | { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; } |
| 539 | fi |
| 540 | ac_config_guess=$ac_aux_dir/config.guess |
| 541 | ac_config_sub=$ac_aux_dir/config.sub |
| 542 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 543 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 544 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 545 | # We want these before the checks, so the checks can modify their values. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 546 | test -z "$CFLAGS" && CFLAGS="-g -O2" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 547 | test -z "$LDFLAGS" && LDFLAGS=-g |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 548 | test -z "$LDLIBS" && LDLIBS=-lm |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 549 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 550 | |
| 551 | # Check whether --with-library or --without-library was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 552 | if test "${with_library+set}" = set; then |
| 553 | withval="$with_library" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 554 | OPTIONS="-DWINELIB" MAIN_TARGET="libwine.a" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 555 | else |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 556 | OPTIONS="" MAIN_TARGET="wine" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 557 | fi |
| 558 | |
| 559 | |
Alexandre Julliard | 7e56f68 | 1996-01-31 19:02:28 +0000 | [diff] [blame] | 560 | # Check whether --with-dll or --without-dll was given. |
| 561 | if test "${with_dll+set}" = set; then |
| 562 | withval="$with_dll" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 563 | OPTIONS="-DWINELIB -DWINELIBDLL" MAIN_TARGET="libwine.so.1.0" CFLAGS="$CFLAGS -fPIC" |
Alexandre Julliard | 7e56f68 | 1996-01-31 19:02:28 +0000 | [diff] [blame] | 564 | fi |
| 565 | |
| 566 | |
Alexandre Julliard | b7258be | 1995-09-01 15:57:28 +0000 | [diff] [blame] | 567 | # Check whether --with-ipc or --without-ipc was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 568 | if test "${with_ipc+set}" = set; then |
| 569 | withval="$with_ipc" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 570 | OPTIONS="$OPTIONS -DCONFIG_IPC" |
Alexandre Julliard | b7258be | 1995-09-01 15:57:28 +0000 | [diff] [blame] | 571 | fi |
| 572 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 573 | |
Alexandre Julliard | b7258be | 1995-09-01 15:57:28 +0000 | [diff] [blame] | 574 | |
Alexandre Julliard | b7258be | 1995-09-01 15:57:28 +0000 | [diff] [blame] | 575 | |
| 576 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 577 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 578 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| 579 | set dummy ${MAKE-make}; ac_make=$2 |
| 580 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 581 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 582 | else |
| 583 | cat > conftestmake <<\EOF |
| 584 | all: |
| 585 | @echo 'ac_maketemp="${MAKE}"' |
| 586 | EOF |
| 587 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 588 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 589 | if test -n "$ac_maketemp"; then |
| 590 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 591 | else |
| 592 | eval ac_cv_prog_make_${ac_make}_set=no |
| 593 | fi |
| 594 | rm -f conftestmake |
| 595 | fi |
| 596 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 597 | echo "$ac_t""yes" 1>&6 |
| 598 | SET_MAKE= |
| 599 | else |
| 600 | echo "$ac_t""no" 1>&6 |
| 601 | SET_MAKE="MAKE=${MAKE-make}" |
| 602 | fi |
| 603 | |
| 604 | # Extract the first word of "gcc", so it can be a program name with args. |
| 605 | set dummy gcc; ac_word=$2 |
| 606 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 607 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 608 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 609 | else |
| 610 | if test -n "$CC"; then |
| 611 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 612 | else |
| 613 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 614 | for ac_dir in $PATH; do |
| 615 | test -z "$ac_dir" && ac_dir=. |
| 616 | if test -f $ac_dir/$ac_word; then |
| 617 | ac_cv_prog_CC="gcc" |
| 618 | break |
| 619 | fi |
| 620 | done |
| 621 | IFS="$ac_save_ifs" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 622 | fi |
| 623 | fi |
| 624 | CC="$ac_cv_prog_CC" |
| 625 | if test -n "$CC"; then |
| 626 | echo "$ac_t""$CC" 1>&6 |
| 627 | else |
| 628 | echo "$ac_t""no" 1>&6 |
| 629 | fi |
| 630 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 631 | if test -z "$CC"; then |
| 632 | # Extract the first word of "cc", so it can be a program name with args. |
| 633 | set dummy cc; ac_word=$2 |
| 634 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 635 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 636 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 637 | else |
| 638 | if test -n "$CC"; then |
| 639 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 640 | else |
| 641 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 642 | ac_prog_rejected=no |
| 643 | for ac_dir in $PATH; do |
| 644 | test -z "$ac_dir" && ac_dir=. |
| 645 | if test -f $ac_dir/$ac_word; then |
| 646 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 647 | ac_prog_rejected=yes |
| 648 | continue |
| 649 | fi |
| 650 | ac_cv_prog_CC="cc" |
| 651 | break |
| 652 | fi |
| 653 | done |
| 654 | IFS="$ac_save_ifs" |
| 655 | if test $ac_prog_rejected = yes; then |
| 656 | # We found a bogon in the path, so make sure we never use it. |
| 657 | set dummy $ac_cv_prog_CC |
| 658 | shift |
| 659 | if test $# -gt 0; then |
| 660 | # We chose a different compiler from the bogus one. |
| 661 | # However, it has the same basename, so the bogon will be chosen |
| 662 | # first if we set CC to just the basename; use the full file name. |
| 663 | shift |
| 664 | set dummy "$ac_dir/$ac_word" "$@" |
| 665 | shift |
| 666 | ac_cv_prog_CC="$@" |
| 667 | fi |
| 668 | fi |
| 669 | fi |
| 670 | fi |
| 671 | CC="$ac_cv_prog_CC" |
| 672 | if test -n "$CC"; then |
| 673 | echo "$ac_t""$CC" 1>&6 |
| 674 | else |
| 675 | echo "$ac_t""no" 1>&6 |
| 676 | fi |
| 677 | |
| 678 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 679 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 680 | |
| 681 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 682 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 683 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 684 | else |
| 685 | cat > conftest.c <<EOF |
| 686 | #ifdef __GNUC__ |
| 687 | yes; |
| 688 | #endif |
| 689 | EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 690 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:691: \"$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] | 691 | ac_cv_prog_gcc=yes |
| 692 | else |
| 693 | ac_cv_prog_gcc=no |
| 694 | fi |
| 695 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 696 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 697 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 698 | if test $ac_cv_prog_gcc = yes; then |
| 699 | GCC=yes |
| 700 | if test "${CFLAGS+set}" != set; then |
| 701 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 702 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then |
| 703 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 704 | else |
| 705 | echo 'void f(){}' > conftest.c |
| 706 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 707 | ac_cv_prog_gcc_g=yes |
| 708 | else |
| 709 | ac_cv_prog_gcc_g=no |
| 710 | fi |
| 711 | rm -f conftest* |
| 712 | |
| 713 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 714 | |
| 715 | echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 716 | if test $ac_cv_prog_gcc_g = yes; then |
| 717 | CFLAGS="-g -O" |
| 718 | else |
| 719 | CFLAGS="-O" |
| 720 | fi |
| 721 | fi |
| 722 | else |
| 723 | GCC= |
| 724 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
| 725 | fi |
| 726 | |
| 727 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 728 | # On Suns, sometimes $CPP names a directory. |
| 729 | if test -n "$CPP" && test -d "$CPP"; then |
| 730 | CPP= |
| 731 | fi |
| 732 | if test -z "$CPP"; then |
| 733 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 734 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 735 | else |
| 736 | # This must be in double quotes, not single quotes, because CPP may get |
| 737 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 738 | CPP="${CC-cc} -E" |
| 739 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 740 | # not just through cpp. |
| 741 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 742 | #line 743 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 743 | #include "confdefs.h" |
| 744 | #include <assert.h> |
| 745 | Syntax Error |
| 746 | EOF |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 747 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 748 | { (eval echo configure:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 749 | ac_err=`grep -v '^ *+' conftest.out` |
| 750 | if test -z "$ac_err"; then |
| 751 | : |
| 752 | else |
| 753 | echo "$ac_err" >&5 |
| 754 | rm -rf conftest* |
| 755 | CPP="${CC-cc} -E -traditional-cpp" |
| 756 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 757 | #line 758 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 758 | #include "confdefs.h" |
| 759 | #include <assert.h> |
| 760 | Syntax Error |
| 761 | EOF |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 762 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 763 | { (eval echo configure:764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 764 | ac_err=`grep -v '^ *+' conftest.out` |
| 765 | if test -z "$ac_err"; then |
| 766 | : |
| 767 | else |
| 768 | echo "$ac_err" >&5 |
| 769 | rm -rf conftest* |
| 770 | CPP=/lib/cpp |
| 771 | fi |
| 772 | rm -f conftest* |
| 773 | fi |
| 774 | rm -f conftest* |
| 775 | ac_cv_prog_CPP="$CPP" |
| 776 | fi |
| 777 | CPP="$ac_cv_prog_CPP" |
| 778 | else |
| 779 | ac_cv_prog_CPP="$CPP" |
| 780 | fi |
| 781 | echo "$ac_t""$CPP" 1>&6 |
| 782 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 783 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
| 784 | if test -d /etc/conf/kconfig.d && |
| 785 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
| 786 | then |
| 787 | echo "$ac_t""yes" 1>&6 |
| 788 | ISC=yes # If later tests want to check for ISC. |
| 789 | cat >> confdefs.h <<\EOF |
| 790 | #define _POSIX_SOURCE 1 |
| 791 | EOF |
| 792 | |
| 793 | if test "$GCC" = yes; then |
| 794 | CC="$CC -posix" |
| 795 | else |
| 796 | CC="$CC -Xp" |
| 797 | fi |
| 798 | else |
| 799 | echo "$ac_t""no" 1>&6 |
| 800 | ISC= |
| 801 | fi |
| 802 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 803 | # If we find X, set shell vars x_includes and x_libraries to the |
| 804 | # paths, otherwise set no_x=yes. |
| 805 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
| 806 | # --without-x overrides everything else, but does not touch the cache. |
| 807 | echo $ac_n "checking for X""... $ac_c" 1>&6 |
| 808 | |
| 809 | # Check whether --with-x or --without-x was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 810 | if test "${with_x+set}" = set; then |
| 811 | withval="$with_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 812 | : |
| 813 | fi |
| 814 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 815 | # $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] | 816 | if test "x$with_x" = xno; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 817 | # The user explicitly disabled X. |
| 818 | have_x=disabled |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 819 | else |
| 820 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 821 | # Both variables are already set. |
| 822 | have_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 823 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 824 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 825 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 826 | else |
| 827 | # 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] | 828 | ac_x_includes=NO ac_x_libraries=NO |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 829 | rm -fr conftestdir |
| 830 | if mkdir conftestdir; then |
| 831 | cd conftestdir |
| 832 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 833 | cat > Imakefile <<'EOF' |
| 834 | acfindx: |
| 835 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 836 | EOF |
| 837 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 838 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 839 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 840 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 841 | for ac_extension in a so sl; do |
| 842 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 843 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 844 | ac_im_usrlibdir=$ac_im_libdir; break |
| 845 | fi |
| 846 | done |
| 847 | # Screen out bogus values from the imake configuration. |
| 848 | case "$ac_im_incroot" in |
| 849 | /usr/include) ;; |
| 850 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
| 851 | esac |
| 852 | case "$ac_im_usrlibdir" in |
| 853 | /usr/lib | /lib) ;; |
| 854 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
| 855 | esac |
| 856 | fi |
| 857 | cd .. |
| 858 | rm -fr conftestdir |
| 859 | fi |
| 860 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 861 | if test "$ac_x_includes" = NO; then |
| 862 | # Guess where to find include files, by looking for this one X11 .h file. |
| 863 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
| 864 | |
| 865 | # First, try using that file with no special directory specified. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 866 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 867 | #line 868 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 868 | #include "confdefs.h" |
| 869 | #include <$x_direct_test_include> |
| 870 | EOF |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 871 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 872 | { (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 873 | ac_err=`grep -v '^ *+' conftest.out` |
| 874 | if test -z "$ac_err"; then |
| 875 | rm -rf conftest* |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 876 | # We can compile using X headers with no special include directory. |
| 877 | ac_x_includes= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 878 | else |
| 879 | echo "$ac_err" >&5 |
| 880 | rm -rf conftest* |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 881 | # Look for the header file in a standard set of common directories. |
| 882 | for ac_dir in \ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 883 | /usr/X11R6/include \ |
| 884 | /usr/X11R5/include \ |
| 885 | /usr/X11R4/include \ |
| 886 | \ |
| 887 | /usr/include/X11R6 \ |
| 888 | /usr/include/X11R5 \ |
| 889 | /usr/include/X11R4 \ |
| 890 | \ |
| 891 | /usr/local/X11R6/include \ |
| 892 | /usr/local/X11R5/include \ |
| 893 | /usr/local/X11R4/include \ |
| 894 | \ |
| 895 | /usr/local/include/X11R6 \ |
| 896 | /usr/local/include/X11R5 \ |
| 897 | /usr/local/include/X11R4 \ |
| 898 | \ |
| 899 | /usr/X11/include \ |
| 900 | /usr/include/X11 \ |
| 901 | /usr/local/X11/include \ |
| 902 | /usr/local/include/X11 \ |
| 903 | \ |
| 904 | /usr/X386/include \ |
| 905 | /usr/x386/include \ |
| 906 | /usr/XFree86/include/X11 \ |
| 907 | \ |
| 908 | /usr/include \ |
| 909 | /usr/local/include \ |
| 910 | /usr/unsupported/include \ |
| 911 | /usr/athena/include \ |
| 912 | /usr/local/x11r5/include \ |
| 913 | /usr/lpp/Xamples/include \ |
| 914 | \ |
| 915 | /usr/openwin/include \ |
| 916 | /usr/openwin/share/include \ |
| 917 | ; \ |
| 918 | do |
| 919 | if test -r "$ac_dir/$x_direct_test_include"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 920 | ac_x_includes=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 921 | break |
| 922 | fi |
| 923 | done |
| 924 | fi |
| 925 | rm -f conftest* |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 926 | fi # $ac_x_includes = NO |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 927 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 928 | if test "$ac_x_libraries" = NO; then |
| 929 | # Check for the libraries. |
| 930 | |
| 931 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
| 932 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
| 933 | |
| 934 | # See if we find them without any special options. |
| 935 | # Don't add to $LIBS permanently. |
| 936 | ac_save_LIBS="$LIBS" |
| 937 | LIBS="-l$x_direct_test_library $LIBS" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 938 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 939 | #line 940 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 940 | #include "confdefs.h" |
| 941 | |
| 942 | int main() { return 0; } |
| 943 | int t() { |
| 944 | ${x_direct_test_function}() |
| 945 | ; return 0; } |
| 946 | EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 947 | if { (eval echo configure:948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 948 | rm -rf conftest* |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 949 | LIBS="$ac_save_LIBS" |
| 950 | # We can link X programs with no special library path. |
| 951 | ac_x_libraries= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 952 | else |
| 953 | rm -rf conftest* |
| 954 | LIBS="$ac_save_LIBS" |
| 955 | # First see if replacing the include by lib works. |
| 956 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
| 957 | /usr/X11R6/lib \ |
| 958 | /usr/X11R5/lib \ |
| 959 | /usr/X11R4/lib \ |
| 960 | \ |
| 961 | /usr/lib/X11R6 \ |
| 962 | /usr/lib/X11R5 \ |
| 963 | /usr/lib/X11R4 \ |
| 964 | \ |
| 965 | /usr/local/X11R6/lib \ |
| 966 | /usr/local/X11R5/lib \ |
| 967 | /usr/local/X11R4/lib \ |
| 968 | \ |
| 969 | /usr/local/lib/X11R6 \ |
| 970 | /usr/local/lib/X11R5 \ |
| 971 | /usr/local/lib/X11R4 \ |
| 972 | \ |
| 973 | /usr/X11/lib \ |
| 974 | /usr/lib/X11 \ |
| 975 | /usr/local/X11/lib \ |
| 976 | /usr/local/lib/X11 \ |
| 977 | \ |
| 978 | /usr/X386/lib \ |
| 979 | /usr/x386/lib \ |
| 980 | /usr/XFree86/lib/X11 \ |
| 981 | \ |
| 982 | /usr/lib \ |
| 983 | /usr/local/lib \ |
| 984 | /usr/unsupported/lib \ |
| 985 | /usr/athena/lib \ |
| 986 | /usr/local/x11r5/lib \ |
| 987 | /usr/lpp/Xamples/lib \ |
| 988 | \ |
| 989 | /usr/openwin/lib \ |
| 990 | /usr/openwin/share/lib \ |
| 991 | ; \ |
| 992 | do |
| 993 | for ac_extension in a so sl; do |
| 994 | 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] | 995 | ac_x_libraries=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 996 | break 2 |
| 997 | fi |
| 998 | done |
| 999 | done |
| 1000 | fi |
| 1001 | rm -f conftest* |
| 1002 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1003 | fi # $ac_x_libraries = NO |
| 1004 | |
| 1005 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
| 1006 | # Didn't find X anywhere. Cache the known absence of X. |
| 1007 | ac_cv_have_x="have_x=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1008 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1009 | # Record where we found X for the cache. |
| 1010 | ac_cv_have_x="have_x=yes \ |
| 1011 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1012 | fi |
| 1013 | fi |
| 1014 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1015 | eval "$ac_cv_have_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1016 | fi # $with_x != no |
| 1017 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1018 | if test "$have_x" != yes; then |
| 1019 | echo "$ac_t""$have_x" 1>&6 |
| 1020 | no_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1021 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1022 | # 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] | 1023 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 1024 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1025 | # Update the cache value to reflect the command line values. |
| 1026 | ac_cv_have_x="have_x=yes \ |
| 1027 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1028 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
| 1029 | fi |
| 1030 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1031 | if test "$no_x" = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1032 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 1033 | X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING" |
| 1034 | else |
| 1035 | if test -n "$x_includes"; then |
| 1036 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 1037 | fi |
| 1038 | |
| 1039 | # It would be nice to have a more robust check for the -R ld option than |
| 1040 | # just checking for Solaris. |
| 1041 | # It would also be nice to do this for all -L options, not just this one. |
| 1042 | if test -n "$x_libraries"; then |
| 1043 | X_LIBS="$X_LIBS -L$x_libraries" |
| 1044 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 1045 | uname -r | grep '^5' >/dev/null; then |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1046 | X_LIBS="$X_LIBS -R $x_libraries" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1047 | fi |
| 1048 | fi |
| 1049 | |
| 1050 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 1051 | |
| 1052 | ac_save_LDFLAGS="$LDFLAGS" |
| 1053 | LDFLAGS="$LDFLAGS -L$x_libraries" |
| 1054 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 1055 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 1056 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 1057 | # These have to be linked with before -lX11, unlike the other |
| 1058 | # libraries we check for below, so use a different variable. |
| 1059 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
| 1060 | echo $ac_n "checking for -lICE""... $ac_c" 1>&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1061 | ac_lib_var=`echo ICE'_'IceConnectionNumber | tr './+\055' '__p_'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1062 | 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] | 1063 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1064 | else |
| 1065 | ac_save_LIBS="$LIBS" |
| 1066 | LIBS="-lICE $LIBS" |
| 1067 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1068 | #line 1069 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1069 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1070 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1071 | /* We use char because int might match the return type of a gcc2 |
| 1072 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1073 | char IceConnectionNumber(); |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1074 | |
| 1075 | int main() { return 0; } |
| 1076 | int t() { |
| 1077 | IceConnectionNumber() |
| 1078 | ; return 0; } |
| 1079 | EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1080 | if { (eval echo configure:1081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1081 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1082 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1083 | else |
| 1084 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1085 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1086 | fi |
| 1087 | rm -f conftest* |
| 1088 | LIBS="$ac_save_LIBS" |
| 1089 | |
| 1090 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1091 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1092 | echo "$ac_t""yes" 1>&6 |
| 1093 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 1094 | else |
| 1095 | echo "$ac_t""no" 1>&6 |
| 1096 | fi |
| 1097 | |
| 1098 | LDFLAGS="$ac_save_LDFLAGS" |
| 1099 | |
| 1100 | # Check for system-dependent libraries X programs must link with. |
| 1101 | |
| 1102 | if test "$ISC" = yes; then |
| 1103 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 1104 | else |
| 1105 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
| 1106 | # libraries were built with DECnet support. And karl@cs.umb.edu says |
| 1107 | # the Alpha needs dnet_stub (dnet does not exist). |
| 1108 | echo $ac_n "checking for -ldnet""... $ac_c" 1>&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1109 | ac_lib_var=`echo dnet'_'dnet_ntoa | tr './+\055' '__p_'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1110 | 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] | 1111 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1112 | else |
| 1113 | ac_save_LIBS="$LIBS" |
| 1114 | LIBS="-ldnet $LIBS" |
| 1115 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1116 | #line 1117 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1117 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1118 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1119 | /* We use char because int might match the return type of a gcc2 |
| 1120 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1121 | char dnet_ntoa(); |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1122 | |
| 1123 | int main() { return 0; } |
| 1124 | int t() { |
| 1125 | dnet_ntoa() |
| 1126 | ; return 0; } |
| 1127 | EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1128 | if { (eval echo configure:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1129 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1130 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1131 | else |
| 1132 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1133 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1134 | fi |
| 1135 | rm -f conftest* |
| 1136 | LIBS="$ac_save_LIBS" |
| 1137 | |
| 1138 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1139 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1140 | echo "$ac_t""yes" 1>&6 |
| 1141 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 1142 | else |
| 1143 | echo "$ac_t""no" 1>&6 |
| 1144 | fi |
| 1145 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1146 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1147 | echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1148 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | tr './+\055' '__p_'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1149 | 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] | 1150 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1151 | else |
| 1152 | ac_save_LIBS="$LIBS" |
| 1153 | LIBS="-ldnet_stub $LIBS" |
| 1154 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1155 | #line 1156 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1156 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1157 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1158 | /* We use char because int might match the return type of a gcc2 |
| 1159 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1160 | char dnet_ntoa(); |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1161 | |
| 1162 | int main() { return 0; } |
| 1163 | int t() { |
| 1164 | dnet_ntoa() |
| 1165 | ; return 0; } |
| 1166 | EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1167 | if { (eval echo configure:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1168 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1169 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1170 | else |
| 1171 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1172 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1173 | fi |
| 1174 | rm -f conftest* |
| 1175 | LIBS="$ac_save_LIBS" |
| 1176 | |
| 1177 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1178 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1179 | echo "$ac_t""yes" 1>&6 |
| 1180 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 1181 | else |
| 1182 | echo "$ac_t""no" 1>&6 |
| 1183 | fi |
| 1184 | |
| 1185 | fi |
| 1186 | |
| 1187 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 1188 | # to get the SysV transport functions. |
| 1189 | # Not sure which flavor of 386 UNIX this is, but it seems harmless to |
| 1190 | # check for it. |
| 1191 | echo $ac_n "checking for -lnsl""... $ac_c" 1>&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1192 | ac_lib_var=`echo nsl'_'t_accept | tr './+\055' '__p_'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1193 | 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] | 1194 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1195 | else |
| 1196 | ac_save_LIBS="$LIBS" |
| 1197 | LIBS="-lnsl $LIBS" |
| 1198 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1199 | #line 1200 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1200 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1201 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1202 | /* We use char because int might match the return type of a gcc2 |
| 1203 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1204 | char t_accept(); |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1205 | |
| 1206 | int main() { return 0; } |
| 1207 | int t() { |
| 1208 | t_accept() |
| 1209 | ; return 0; } |
| 1210 | EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1211 | if { (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1212 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1213 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1214 | else |
| 1215 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1216 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1217 | fi |
| 1218 | rm -f conftest* |
| 1219 | LIBS="$ac_save_LIBS" |
| 1220 | |
| 1221 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1222 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1223 | echo "$ac_t""yes" 1>&6 |
| 1224 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 1225 | else |
| 1226 | echo "$ac_t""no" 1>&6 |
| 1227 | fi |
| 1228 | |
| 1229 | |
| 1230 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 1231 | # socket/setsockopt and other routines are undefined under SCO ODT 2.0. |
| 1232 | # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch. |
| 1233 | if test "`(uname) 2>/dev/null`" != IRIX; then |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1234 | if test $ac_cv_lib_nsl_t_accept = no; then |
| 1235 | echo $ac_n "checking for -lsocket""... $ac_c" 1>&6 |
| 1236 | ac_lib_var=`echo socket'_'socket | tr './+\055' '__p_'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1237 | 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] | 1238 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1239 | else |
| 1240 | ac_save_LIBS="$LIBS" |
| 1241 | LIBS="-lsocket $LIBS" |
| 1242 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1243 | #line 1244 "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1244 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1245 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1246 | /* We use char because int might match the return type of a gcc2 |
| 1247 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1248 | char socket(); |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1249 | |
| 1250 | int main() { return 0; } |
| 1251 | int t() { |
| 1252 | socket() |
| 1253 | ; return 0; } |
| 1254 | EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1255 | if { (eval echo configure:1256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1256 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1257 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1258 | else |
| 1259 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1260 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1261 | fi |
| 1262 | rm -f conftest* |
| 1263 | LIBS="$ac_save_LIBS" |
| 1264 | |
| 1265 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1266 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1267 | echo "$ac_t""yes" 1>&6 |
| 1268 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket" |
| 1269 | else |
| 1270 | echo "$ac_t""no" 1>&6 |
| 1271 | fi |
| 1272 | |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1273 | else |
| 1274 | # If we found -lnsl, use it to check for -lsocket. -- AJ |
| 1275 | echo $ac_n "checking for -lsocket""... $ac_c" 1>&6 |
| 1276 | ac_lib_var=`echo socket'_'socket | tr './+\055' '__p_'` |
| 1277 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1278 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1279 | else |
| 1280 | ac_save_LIBS="$LIBS" |
| 1281 | LIBS="-lsocket -lnsl $LIBS" |
| 1282 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1283 | #line 1284 "configure" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1284 | #include "confdefs.h" |
| 1285 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1286 | /* We use char because int might match the return type of a gcc2 |
| 1287 | builtin and then its argument prototype would still apply. */ |
| 1288 | char socket(); |
| 1289 | |
| 1290 | int main() { return 0; } |
| 1291 | int t() { |
| 1292 | socket() |
| 1293 | ; return 0; } |
| 1294 | EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1295 | if { (eval echo configure:1296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1296 | rm -rf conftest* |
| 1297 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1298 | else |
| 1299 | rm -rf conftest* |
| 1300 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1301 | fi |
| 1302 | rm -f conftest* |
| 1303 | LIBS="$ac_save_LIBS" |
| 1304 | |
| 1305 | fi |
| 1306 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1307 | echo "$ac_t""yes" 1>&6 |
| 1308 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket" |
| 1309 | else |
| 1310 | echo "$ac_t""no" 1>&6 |
| 1311 | fi |
| 1312 | |
| 1313 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1314 | fi |
| 1315 | fi |
| 1316 | fi |
| 1317 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1318 | for ac_prog in 'bison -y' byacc |
| 1319 | do |
| 1320 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1321 | set dummy $ac_prog; ac_word=$2 |
| 1322 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1323 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
| 1324 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1325 | else |
| 1326 | if test -n "$YACC"; then |
| 1327 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 1328 | else |
| 1329 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1330 | for ac_dir in $PATH; do |
| 1331 | test -z "$ac_dir" && ac_dir=. |
| 1332 | if test -f $ac_dir/$ac_word; then |
| 1333 | ac_cv_prog_YACC="$ac_prog" |
| 1334 | break |
| 1335 | fi |
| 1336 | done |
| 1337 | IFS="$ac_save_ifs" |
| 1338 | fi |
| 1339 | fi |
| 1340 | YACC="$ac_cv_prog_YACC" |
| 1341 | if test -n "$YACC"; then |
| 1342 | echo "$ac_t""$YACC" 1>&6 |
| 1343 | else |
| 1344 | echo "$ac_t""no" 1>&6 |
| 1345 | fi |
| 1346 | |
| 1347 | test -n "$YACC" && break |
| 1348 | done |
| 1349 | test -n "$YACC" || YACC="yacc" |
| 1350 | |
| 1351 | # Extract the first word of "flex", so it can be a program name with args. |
| 1352 | set dummy flex; ac_word=$2 |
| 1353 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1354 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
| 1355 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1356 | else |
| 1357 | if test -n "$LEX"; then |
| 1358 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 1359 | else |
| 1360 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1361 | for ac_dir in $PATH; do |
| 1362 | test -z "$ac_dir" && ac_dir=. |
| 1363 | if test -f $ac_dir/$ac_word; then |
| 1364 | ac_cv_prog_LEX="flex" |
| 1365 | break |
| 1366 | fi |
| 1367 | done |
| 1368 | IFS="$ac_save_ifs" |
| 1369 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" |
| 1370 | fi |
| 1371 | fi |
| 1372 | LEX="$ac_cv_prog_LEX" |
| 1373 | if test -n "$LEX"; then |
| 1374 | echo "$ac_t""$LEX" 1>&6 |
| 1375 | else |
| 1376 | echo "$ac_t""no" 1>&6 |
| 1377 | fi |
| 1378 | |
| 1379 | if test -z "$LEXLIB" |
| 1380 | then |
| 1381 | case "$LEX" in |
| 1382 | flex*) ac_lib=fl ;; |
| 1383 | *) ac_lib=l ;; |
| 1384 | esac |
| 1385 | echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1386 | ac_lib_var=`echo $ac_lib'_'yywrap | tr './+\055' '__p_'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1387 | 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] | 1388 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1389 | else |
| 1390 | ac_save_LIBS="$LIBS" |
| 1391 | LIBS="-l$ac_lib $LIBS" |
| 1392 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1393 | #line 1394 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1394 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1395 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1396 | /* We use char because int might match the return type of a gcc2 |
| 1397 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1398 | char yywrap(); |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1399 | |
| 1400 | int main() { return 0; } |
| 1401 | int t() { |
| 1402 | yywrap() |
| 1403 | ; return 0; } |
| 1404 | EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1405 | if { (eval echo configure:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1406 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1407 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1408 | else |
| 1409 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1410 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1411 | fi |
| 1412 | rm -f conftest* |
| 1413 | LIBS="$ac_save_LIBS" |
| 1414 | |
| 1415 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1416 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1417 | echo "$ac_t""yes" 1>&6 |
| 1418 | LEXLIB="-l$ac_lib" |
| 1419 | else |
| 1420 | echo "$ac_t""no" 1>&6 |
| 1421 | fi |
| 1422 | |
| 1423 | fi |
| 1424 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1425 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1426 | set dummy ranlib; ac_word=$2 |
| 1427 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1428 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1429 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1430 | else |
| 1431 | if test -n "$RANLIB"; then |
| 1432 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1433 | else |
| 1434 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1435 | for ac_dir in $PATH; do |
| 1436 | test -z "$ac_dir" && ac_dir=. |
| 1437 | if test -f $ac_dir/$ac_word; then |
| 1438 | ac_cv_prog_RANLIB="ranlib" |
| 1439 | break |
| 1440 | fi |
| 1441 | done |
| 1442 | IFS="$ac_save_ifs" |
| 1443 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1444 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1445 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1446 | RANLIB="$ac_cv_prog_RANLIB" |
| 1447 | if test -n "$RANLIB"; then |
| 1448 | echo "$ac_t""$RANLIB" 1>&6 |
| 1449 | else |
| 1450 | echo "$ac_t""no" 1>&6 |
| 1451 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1452 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1453 | # Find a good install program. We prefer a C program (faster), |
| 1454 | # so one script is as good as another. But avoid the broken or |
| 1455 | # incompatible versions: |
| 1456 | # SysV /etc/install, /usr/sbin/install |
| 1457 | # SunOS /usr/etc/install |
| 1458 | # IRIX /sbin/install |
| 1459 | # AIX /bin/install |
| 1460 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1461 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1462 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1463 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| 1464 | if test -z "$INSTALL"; then |
| 1465 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1466 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1467 | else |
| 1468 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1469 | for ac_dir in $PATH; do |
| 1470 | # Account for people who put trailing slashes in PATH elements. |
| 1471 | case "$ac_dir/" in |
| 1472 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1473 | *) |
| 1474 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1475 | for ac_prog in ginstall installbsd scoinst install; do |
| 1476 | if test -f $ac_dir/$ac_prog; then |
| 1477 | if test $ac_prog = install && |
| 1478 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1479 | # AIX install. It has an incompatible calling convention. |
| 1480 | # OSF/1 installbsd also uses dspmsg, but is usable. |
| 1481 | : |
| 1482 | else |
| 1483 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1484 | break 2 |
| 1485 | fi |
| 1486 | fi |
| 1487 | done |
| 1488 | ;; |
| 1489 | esac |
| 1490 | done |
| 1491 | IFS="$ac_save_ifs" |
| 1492 | |
| 1493 | fi |
| 1494 | if test "${ac_cv_path_install+set}" = set; then |
| 1495 | INSTALL="$ac_cv_path_install" |
| 1496 | else |
| 1497 | # As a last resort, use the slow shell script. We don't cache a |
| 1498 | # path for INSTALL within a source directory, because that will |
| 1499 | # break other packages using the cache if that directory is |
| 1500 | # removed, or if the path is relative. |
| 1501 | INSTALL="$ac_install_sh" |
| 1502 | fi |
| 1503 | fi |
| 1504 | echo "$ac_t""$INSTALL" 1>&6 |
| 1505 | |
| 1506 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1507 | # It thinks the first close brace ends the variable substitution. |
| 1508 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1509 | |
| 1510 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1511 | |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 1512 | echo $ac_n "checking for -li386""... $ac_c" 1>&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1513 | ac_lib_var=`echo i386'_'i386_set_ldt | tr './+\055' '__p_'` |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1514 | 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] | 1515 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1516 | else |
| 1517 | ac_save_LIBS="$LIBS" |
| 1518 | LIBS="-li386 $LIBS" |
| 1519 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1520 | #line 1521 "configure" |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 1521 | #include "confdefs.h" |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1522 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1523 | /* We use char because int might match the return type of a gcc2 |
| 1524 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 1525 | char i386_set_ldt(); |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 1526 | |
| 1527 | int main() { return 0; } |
| 1528 | int t() { |
| 1529 | i386_set_ldt() |
| 1530 | ; return 0; } |
| 1531 | EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1532 | if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 1533 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1534 | eval "ac_cv_lib_$ac_lib_var=yes" |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 1535 | else |
| 1536 | rm -rf conftest* |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1537 | eval "ac_cv_lib_$ac_lib_var=no" |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 1538 | fi |
| 1539 | rm -f conftest* |
| 1540 | LIBS="$ac_save_LIBS" |
| 1541 | |
| 1542 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1543 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 1544 | echo "$ac_t""yes" 1>&6 |
| 1545 | LDLIBS="$LDLIBS -li386" |
| 1546 | else |
| 1547 | echo "$ac_t""no" 1>&6 |
| 1548 | fi |
| 1549 | |
| 1550 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1551 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 1552 | if test "x${GCC}" = "xyes" |
| 1553 | then |
| 1554 | CFLAGS="$CFLAGS -Wall" |
| 1555 | # If we cannot run a trivial program, we must be cross compiling. |
| 1556 | echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 |
| 1557 | if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then |
| 1558 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1559 | else |
| 1560 | if test "$cross_compiling" = yes; then |
| 1561 | ac_cv_c_cross=yes |
| 1562 | else |
| 1563 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1564 | #line 1565 "configure" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 1565 | #include "confdefs.h" |
| 1566 | main(){return(0);} |
| 1567 | EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1568 | { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 1569 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
| 1570 | ac_cv_c_cross=no |
| 1571 | else |
| 1572 | ac_cv_c_cross=yes |
| 1573 | fi |
| 1574 | fi |
| 1575 | rm -fr conftest* |
| 1576 | fi |
| 1577 | |
| 1578 | echo "$ac_t""$ac_cv_c_cross" 1>&6 |
| 1579 | cross_compiling=$ac_cv_c_cross |
| 1580 | |
| 1581 | echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6 |
| 1582 | if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then |
| 1583 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1584 | else |
| 1585 | if test "$cross_compiling" = yes; then |
| 1586 | ac_cv_c_gcc_strength_bug="yes" |
| 1587 | else |
| 1588 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1589 | #line 1590 "configure" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 1590 | #include "confdefs.h" |
| 1591 | |
| 1592 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 1593 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 1594 | unsigned int B = 3; |
| 1595 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 1596 | for(i=0; i<B; i++) Array[i] = i - 3; |
| 1597 | exit( Array[1] != -2 ); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 1598 | } |
| 1599 | EOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1600 | { (eval echo configure:1601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 1601 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
| 1602 | ac_cv_c_gcc_strength_bug="no" |
| 1603 | else |
| 1604 | ac_cv_c_gcc_strength_bug="yes" |
| 1605 | fi |
| 1606 | fi |
| 1607 | rm -fr conftest* |
| 1608 | fi |
| 1609 | |
| 1610 | echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6 |
| 1611 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 1612 | then |
| 1613 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 1614 | fi |
| 1615 | fi |
| 1616 | |
| 1617 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame^] | 1618 | echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6 |
| 1619 | if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then |
| 1620 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1621 | else |
| 1622 | saved_libs=$LIBS |
| 1623 | LIBS="conftest_asm.s $LIBS" |
| 1624 | cat > conftest_asm.s <<EOF |
| 1625 | .globl _ac_test |
| 1626 | _ac_test: |
| 1627 | .long 0 |
| 1628 | EOF |
| 1629 | cat > conftest.$ac_ext <<EOF |
| 1630 | #line 1631 "configure" |
| 1631 | #include "confdefs.h" |
| 1632 | extern int ac_test; |
| 1633 | int main() { return 0; } |
| 1634 | int t() { |
| 1635 | if (ac_test) return 1 |
| 1636 | ; return 0; } |
| 1637 | EOF |
| 1638 | if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
| 1639 | rm -rf conftest* |
| 1640 | ac_cv_c_extern_prefix="yes" |
| 1641 | else |
| 1642 | rm -rf conftest* |
| 1643 | ac_cv_c_extern_prefix="no" |
| 1644 | fi |
| 1645 | rm -f conftest* |
| 1646 | |
| 1647 | LIBS=$saved_libs |
| 1648 | fi |
| 1649 | |
| 1650 | echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6 |
| 1651 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 1652 | then |
| 1653 | cat >> confdefs.h <<\EOF |
| 1654 | #define NEED_UNDERSCORE_PREFIX 1 |
| 1655 | EOF |
| 1656 | |
| 1657 | fi |
| 1658 | |
| 1659 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1660 | for ac_func in memmove tcgetattr usleep |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1661 | do |
| 1662 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 1663 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 1664 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1665 | else |
| 1666 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame^] | 1667 | #line 1668 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1668 | #include "confdefs.h" |
| 1669 | /* System header to define __stub macros and hopefully few prototypes, |
| 1670 | which can conflict with char $ac_func(); below. */ |
| 1671 | #include <assert.h> |
| 1672 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 1673 | /* We use char because int might match the return type of a gcc2 |
| 1674 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1675 | char $ac_func(); |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1676 | |
| 1677 | int main() { return 0; } |
| 1678 | int t() { |
| 1679 | |
| 1680 | /* The GNU C library defines this for functions which it implements |
| 1681 | to always fail with ENOSYS. Some functions are actually named |
| 1682 | something starting with __ and the normal name is an alias. */ |
| 1683 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 1684 | choke me |
| 1685 | #else |
| 1686 | $ac_func(); |
| 1687 | #endif |
| 1688 | |
| 1689 | ; return 0; } |
| 1690 | EOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame^] | 1691 | if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1692 | rm -rf conftest* |
| 1693 | eval "ac_cv_func_$ac_func=yes" |
| 1694 | else |
| 1695 | rm -rf conftest* |
| 1696 | eval "ac_cv_func_$ac_func=no" |
| 1697 | fi |
| 1698 | rm -f conftest* |
| 1699 | |
| 1700 | fi |
| 1701 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 1702 | echo "$ac_t""yes" 1>&6 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1703 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1704 | cat >> confdefs.h <<EOF |
| 1705 | #define $ac_tr_func 1 |
| 1706 | EOF |
| 1707 | |
| 1708 | else |
| 1709 | echo "$ac_t""no" 1>&6 |
| 1710 | fi |
| 1711 | done |
| 1712 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1713 | echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 |
| 1714 | if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then |
| 1715 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1716 | else |
| 1717 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame^] | 1718 | #line 1719 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1719 | #include "confdefs.h" |
| 1720 | #include <sys/types.h> |
| 1721 | #include <sys/stat.h> |
| 1722 | |
| 1723 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 1724 | # if S_ISBLK (S_IFDIR) |
| 1725 | You lose. |
| 1726 | # endif |
| 1727 | #endif |
| 1728 | |
| 1729 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 1730 | # if S_ISBLK (S_IFCHR) |
| 1731 | You lose. |
| 1732 | # endif |
| 1733 | #endif |
| 1734 | |
| 1735 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 1736 | # if S_ISLNK (S_IFREG) |
| 1737 | You lose. |
| 1738 | # endif |
| 1739 | #endif |
| 1740 | |
| 1741 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 1742 | # if S_ISSOCK (S_IFREG) |
| 1743 | You lose. |
| 1744 | # endif |
| 1745 | #endif |
| 1746 | |
| 1747 | EOF |
| 1748 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1749 | egrep "You lose" >/dev/null 2>&1; then |
| 1750 | rm -rf conftest* |
| 1751 | ac_cv_header_stat_broken=yes |
| 1752 | else |
| 1753 | rm -rf conftest* |
| 1754 | ac_cv_header_stat_broken=no |
| 1755 | fi |
| 1756 | rm -f conftest* |
| 1757 | |
| 1758 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1759 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1760 | echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 |
| 1761 | if test $ac_cv_header_stat_broken = yes; then |
| 1762 | cat >> confdefs.h <<\EOF |
| 1763 | #define STAT_MACROS_BROKEN 1 |
| 1764 | EOF |
| 1765 | |
| 1766 | fi |
| 1767 | |
| 1768 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
| 1769 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 1770 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1771 | else |
| 1772 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame^] | 1773 | #line 1774 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1774 | #include "confdefs.h" |
| 1775 | |
| 1776 | int main() { return 0; } |
| 1777 | int t() { |
| 1778 | |
| 1779 | /* Ultrix mips cc rejects this. */ |
| 1780 | typedef int charset[2]; const charset x; |
| 1781 | /* SunOS 4.1.1 cc rejects this. */ |
| 1782 | char const *const *ccp; |
| 1783 | char **p; |
| 1784 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 1785 | struct point {int x, y;}; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1786 | static struct point const zero = {0,0}; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1787 | /* AIX XL C 1.02.0.0 rejects this. |
| 1788 | It does not let you subtract one const X* pointer from another in an arm |
| 1789 | of an if-expression whose if-part is not a constant expression */ |
| 1790 | const char *g = "string"; |
| 1791 | ccp = &g + (g ? g-g : 0); |
| 1792 | /* HPUX 7.0 cc rejects these. */ |
| 1793 | ++ccp; |
| 1794 | p = (char**) ccp; |
| 1795 | ccp = (char const *const *) p; |
| 1796 | { /* SCO 3.2v4 cc rejects this. */ |
| 1797 | char *t; |
| 1798 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 1799 | |
| 1800 | *t++ = 0; |
| 1801 | } |
| 1802 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 1803 | int x[] = {25, 17}; |
| 1804 | const int *foo = &x[0]; |
| 1805 | ++foo; |
| 1806 | } |
| 1807 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 1808 | typedef const int *iptr; |
| 1809 | iptr p = 0; |
| 1810 | ++p; |
| 1811 | } |
| 1812 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 1813 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 1814 | struct s { int j; const int *ap[3]; }; |
| 1815 | struct s *b; b->j = 5; |
| 1816 | } |
| 1817 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 1818 | const int foo = 10; |
| 1819 | } |
| 1820 | |
| 1821 | ; return 0; } |
| 1822 | EOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame^] | 1823 | if { (eval echo configure:1824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1824 | rm -rf conftest* |
| 1825 | ac_cv_c_const=yes |
| 1826 | else |
| 1827 | rm -rf conftest* |
| 1828 | ac_cv_c_const=no |
| 1829 | fi |
| 1830 | rm -f conftest* |
| 1831 | |
| 1832 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1833 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1834 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 1835 | if test $ac_cv_c_const = no; then |
| 1836 | cat >> confdefs.h <<\EOF |
| 1837 | #define const |
| 1838 | EOF |
| 1839 | |
| 1840 | fi |
| 1841 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1842 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 1843 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1844 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1845 | else |
| 1846 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame^] | 1847 | #line 1848 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1848 | #include "confdefs.h" |
| 1849 | #include <stdlib.h> |
| 1850 | #include <stdarg.h> |
| 1851 | #include <string.h> |
| 1852 | #include <float.h> |
| 1853 | EOF |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1854 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame^] | 1855 | { (eval echo configure:1856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1856 | ac_err=`grep -v '^ *+' conftest.out` |
| 1857 | if test -z "$ac_err"; then |
| 1858 | rm -rf conftest* |
| 1859 | ac_cv_header_stdc=yes |
| 1860 | else |
| 1861 | echo "$ac_err" >&5 |
| 1862 | rm -rf conftest* |
| 1863 | ac_cv_header_stdc=no |
| 1864 | fi |
| 1865 | rm -f conftest* |
| 1866 | |
| 1867 | if test $ac_cv_header_stdc = yes; then |
| 1868 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1869 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame^] | 1870 | #line 1871 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1871 | #include "confdefs.h" |
| 1872 | #include <string.h> |
| 1873 | EOF |
| 1874 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1875 | egrep "memchr" >/dev/null 2>&1; then |
| 1876 | : |
| 1877 | else |
| 1878 | rm -rf conftest* |
| 1879 | ac_cv_header_stdc=no |
| 1880 | fi |
| 1881 | rm -f conftest* |
| 1882 | |
| 1883 | fi |
| 1884 | |
| 1885 | if test $ac_cv_header_stdc = yes; then |
| 1886 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1887 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame^] | 1888 | #line 1889 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1889 | #include "confdefs.h" |
| 1890 | #include <stdlib.h> |
| 1891 | EOF |
| 1892 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1893 | egrep "free" >/dev/null 2>&1; then |
| 1894 | : |
| 1895 | else |
| 1896 | rm -rf conftest* |
| 1897 | ac_cv_header_stdc=no |
| 1898 | fi |
| 1899 | rm -f conftest* |
| 1900 | |
| 1901 | fi |
| 1902 | |
| 1903 | if test $ac_cv_header_stdc = yes; then |
| 1904 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1905 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1906 | : |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1907 | else |
| 1908 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame^] | 1909 | #line 1910 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1910 | #include "confdefs.h" |
| 1911 | #include <ctype.h> |
| 1912 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1913 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 1914 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 1915 | int main () { int i; for (i = 0; i < 256; i++) |
| 1916 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1917 | exit (0); } |
| 1918 | |
| 1919 | EOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame^] | 1920 | { (eval echo configure:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1921 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
| 1922 | : |
| 1923 | else |
| 1924 | ac_cv_header_stdc=no |
| 1925 | fi |
| 1926 | fi |
| 1927 | rm -fr conftest* |
| 1928 | fi |
| 1929 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1930 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1931 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 1932 | if test $ac_cv_header_stdc = yes; then |
| 1933 | cat >> confdefs.h <<\EOF |
| 1934 | #define STDC_HEADERS 1 |
| 1935 | EOF |
| 1936 | |
| 1937 | fi |
| 1938 | |
| 1939 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
| 1940 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 1941 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1942 | else |
| 1943 | cat > conftest.$ac_ext <<EOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame^] | 1944 | #line 1945 "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1945 | #include "confdefs.h" |
| 1946 | #include <sys/types.h> |
| 1947 | #if STDC_HEADERS |
| 1948 | #include <stdlib.h> |
| 1949 | #endif |
| 1950 | EOF |
| 1951 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1952 | egrep "size_t" >/dev/null 2>&1; then |
| 1953 | rm -rf conftest* |
| 1954 | ac_cv_type_size_t=yes |
| 1955 | else |
| 1956 | rm -rf conftest* |
| 1957 | ac_cv_type_size_t=no |
| 1958 | fi |
| 1959 | rm -f conftest* |
| 1960 | |
| 1961 | fi |
| 1962 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 1963 | if test $ac_cv_type_size_t = no; then |
| 1964 | cat >> confdefs.h <<\EOF |
| 1965 | #define size_t unsigned |
| 1966 | EOF |
| 1967 | |
| 1968 | fi |
| 1969 | |
| 1970 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1971 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1972 | MAKE_RULES=Make.rules |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1973 | |
| 1974 | |
| 1975 | trap '' 1 2 15 |
| 1976 | cat > confcache <<\EOF |
| 1977 | # This file is a shell script that caches the results of configure |
| 1978 | # tests run on this system so they can be shared between configure |
| 1979 | # scripts and configure runs. It is not useful on other systems. |
| 1980 | # If it contains results you don't want to keep, you may remove or edit it. |
| 1981 | # |
| 1982 | # By default, configure uses ./config.cache as the cache file, |
| 1983 | # creating it if it does not exist already. You can give configure |
| 1984 | # the --cache-file=FILE option to use a different cache file; that is |
| 1985 | # what configure does when it calls configure scripts in |
| 1986 | # subdirectories, so they share the cache. |
| 1987 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 1988 | # config.status only pays attention to the cache file if you give it the |
| 1989 | # --recheck option to rerun configure. |
| 1990 | # |
| 1991 | EOF |
| 1992 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 1993 | # and sets the high bit in the cache file unless we assign to the vars. |
| 1994 | (set) 2>&1 | |
| 1995 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ |
| 1996 | >> confcache |
| 1997 | if cmp -s $cache_file confcache; then |
| 1998 | : |
| 1999 | else |
| 2000 | if test -w $cache_file; then |
| 2001 | echo "updating cache $cache_file" |
| 2002 | cat confcache > $cache_file |
| 2003 | else |
| 2004 | echo "not updating unwritable cache $cache_file" |
| 2005 | fi |
| 2006 | fi |
| 2007 | rm -f confcache |
| 2008 | |
| 2009 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 2010 | |
| 2011 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 2012 | # Let make expand exec_prefix. |
| 2013 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 2014 | |
| 2015 | # Any assignment to VPATH causes Sun make to only execute |
| 2016 | # the first set of double-colon rules, so remove it if not needed. |
| 2017 | # If there is a colon in the path, we need to keep it. |
| 2018 | if test "x$srcdir" = x.; then |
| 2019 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 2020 | fi |
| 2021 | |
| 2022 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 2023 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 2024 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2025 | |
| 2026 | # Without the "./", some shells look in PATH for config.status. |
| 2027 | : ${CONFIG_STATUS=./config.status} |
| 2028 | |
| 2029 | echo creating $CONFIG_STATUS |
| 2030 | rm -f $CONFIG_STATUS |
| 2031 | cat > $CONFIG_STATUS <<EOF |
| 2032 | #! /bin/sh |
| 2033 | # Generated automatically by configure. |
| 2034 | # Run this file to recreate the current configuration. |
| 2035 | # This directory was configured as follows, |
| 2036 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 2037 | # |
| 2038 | # $0 $ac_configure_args |
| 2039 | # |
| 2040 | # Compiler output produced by configure, useful for debugging |
| 2041 | # configure, is in ./config.log if it exists. |
| 2042 | |
| 2043 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 2044 | for ac_option |
| 2045 | do |
| 2046 | case "\$ac_option" in |
| 2047 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 2048 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 2049 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 2050 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2051 | echo "$CONFIG_STATUS generated by autoconf version 2.10-patched" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2052 | exit 0 ;; |
| 2053 | -help | --help | --hel | --he | --h) |
| 2054 | echo "\$ac_cs_usage"; exit 0 ;; |
| 2055 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 2056 | esac |
| 2057 | done |
| 2058 | |
| 2059 | ac_given_srcdir=$srcdir |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2060 | ac_given_INSTALL="$INSTALL" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2061 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2062 | trap 'rm -fr `echo " |
| 2063 | Make.rules |
| 2064 | Makefile |
| 2065 | controls/Makefile |
| 2066 | debugger/Makefile |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 2067 | files/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2068 | if1632/Makefile |
| 2069 | ipc/Makefile |
| 2070 | library/Makefile |
| 2071 | libtest/Makefile |
| 2072 | loader/Makefile |
| 2073 | memory/Makefile |
| 2074 | misc/Makefile |
| 2075 | miscemu/Makefile |
| 2076 | multimedia/Makefile |
| 2077 | objects/Makefile |
Alexandre Julliard | 02ed4c2 | 1996-03-02 19:34:10 +0000 | [diff] [blame] | 2078 | programs/Makefile |
| 2079 | programs/progman/Makefile |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 2080 | programs/winhelp/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2081 | rc/Makefile |
| 2082 | resources/Makefile |
| 2083 | tools/Makefile |
| 2084 | win32/Makefile |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 2085 | windows/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] | 2086 | EOF |
| 2087 | cat >> $CONFIG_STATUS <<EOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2088 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2089 | # Protect against being on the right side of a sed subst in config.status. |
| 2090 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 2091 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2092 | $ac_vpsub |
| 2093 | $extrasub |
| 2094 | s%@CFLAGS@%$CFLAGS%g |
| 2095 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 2096 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 2097 | s%@DEFS@%$DEFS%g |
| 2098 | s%@LDFLAGS@%$LDFLAGS%g |
| 2099 | s%@LIBS@%$LIBS%g |
| 2100 | s%@exec_prefix@%$exec_prefix%g |
| 2101 | s%@prefix@%$prefix%g |
| 2102 | s%@program_transform_name@%$program_transform_name%g |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2103 | s%@bindir@%$bindir%g |
| 2104 | s%@sbindir@%$sbindir%g |
| 2105 | s%@libexecdir@%$libexecdir%g |
| 2106 | s%@datadir@%$datadir%g |
| 2107 | s%@sysconfdir@%$sysconfdir%g |
| 2108 | s%@sharedstatedir@%$sharedstatedir%g |
| 2109 | s%@localstatedir@%$localstatedir%g |
| 2110 | s%@libdir@%$libdir%g |
| 2111 | s%@includedir@%$includedir%g |
| 2112 | s%@oldincludedir@%$oldincludedir%g |
| 2113 | s%@infodir@%$infodir%g |
| 2114 | s%@mandir@%$mandir%g |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 2115 | s%@LDLIBS@%$LDLIBS%g |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2116 | s%@MAIN_TARGET@%$MAIN_TARGET%g |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 2117 | s%@OPTIONS@%$OPTIONS%g |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2118 | s%@SET_MAKE@%$SET_MAKE%g |
| 2119 | s%@CC@%$CC%g |
| 2120 | s%@CPP@%$CPP%g |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2121 | s%@X_CFLAGS@%$X_CFLAGS%g |
| 2122 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g |
| 2123 | s%@X_LIBS@%$X_LIBS%g |
| 2124 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2125 | s%@YACC@%$YACC%g |
| 2126 | s%@LEX@%$LEX%g |
| 2127 | s%@LEXLIB@%$LEXLIB%g |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2128 | s%@RANLIB@%$RANLIB%g |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2129 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 2130 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2131 | /@MAKE_RULES@/r $MAKE_RULES |
| 2132 | s%@MAKE_RULES@%%g |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2133 | |
| 2134 | CEOF |
| 2135 | EOF |
| 2136 | cat >> $CONFIG_STATUS <<EOF |
| 2137 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2138 | CONFIG_FILES=\${CONFIG_FILES-"Make.rules |
| 2139 | Makefile |
| 2140 | controls/Makefile |
| 2141 | debugger/Makefile |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 2142 | files/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2143 | if1632/Makefile |
| 2144 | ipc/Makefile |
| 2145 | library/Makefile |
| 2146 | libtest/Makefile |
| 2147 | loader/Makefile |
| 2148 | memory/Makefile |
| 2149 | misc/Makefile |
| 2150 | miscemu/Makefile |
| 2151 | multimedia/Makefile |
| 2152 | objects/Makefile |
Alexandre Julliard | 02ed4c2 | 1996-03-02 19:34:10 +0000 | [diff] [blame] | 2153 | programs/Makefile |
| 2154 | programs/progman/Makefile |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 2155 | programs/winhelp/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2156 | rc/Makefile |
| 2157 | resources/Makefile |
| 2158 | tools/Makefile |
| 2159 | win32/Makefile |
| 2160 | windows/Makefile "} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2161 | EOF |
| 2162 | cat >> $CONFIG_STATUS <<\EOF |
| 2163 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 2164 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
| 2165 | case "$ac_file" in |
| 2166 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` |
| 2167 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 2168 | *) ac_file_in="${ac_file}.in" ;; |
| 2169 | esac |
| 2170 | |
| 2171 | # Adjust relative srcdir, etc. for subdirectories. |
| 2172 | |
| 2173 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 2174 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 2175 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 2176 | # The file is in a subdirectory. |
| 2177 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 2178 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 2179 | # A "../" for each directory in $ac_dir_suffix. |
| 2180 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 2181 | else |
| 2182 | ac_dir_suffix= ac_dots= |
| 2183 | fi |
| 2184 | |
| 2185 | case "$ac_given_srcdir" in |
| 2186 | .) srcdir=. |
| 2187 | if test -z "$ac_dots"; then top_srcdir=. |
| 2188 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 2189 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 2190 | *) # Relative path. |
| 2191 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 2192 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 2193 | esac |
| 2194 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2195 | case "$ac_given_INSTALL" in |
| 2196 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 2197 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 2198 | esac |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2199 | echo creating "$ac_file" |
| 2200 | rm -f "$ac_file" |
| 2201 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 2202 | case "$ac_file" in |
| 2203 | *Makefile*) ac_comsub="1i\\ |
| 2204 | # $configure_input" ;; |
| 2205 | *) ac_comsub= ;; |
| 2206 | esac |
| 2207 | sed -e "$ac_comsub |
| 2208 | s%@configure_input@%$configure_input%g |
| 2209 | s%@srcdir@%$srcdir%g |
| 2210 | s%@top_srcdir@%$top_srcdir%g |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2211 | s%@INSTALL@%$INSTALL%g |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2212 | " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file |
| 2213 | fi; done |
| 2214 | rm -f conftest.subs |
| 2215 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 2216 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 2217 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 2218 | # |
| 2219 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 2220 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 2221 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
| 2222 | ac_dC='\3' |
| 2223 | ac_dD='%g' |
| 2224 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
| 2225 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 2226 | ac_uB='\([ ]\)%\1#\2define\3' |
| 2227 | ac_uC=' ' |
| 2228 | ac_uD='\4%g' |
| 2229 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 2230 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 2231 | ac_eB='$%\1#\2define\3' |
| 2232 | ac_eC=' ' |
| 2233 | ac_eD='%g' |
| 2234 | |
| 2235 | CONFIG_HEADERS=${CONFIG_HEADERS-"include/config.h"} |
| 2236 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
| 2237 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
| 2238 | case "$ac_file" in |
| 2239 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` |
| 2240 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 2241 | *) ac_file_in="${ac_file}.in" ;; |
| 2242 | esac |
| 2243 | |
| 2244 | echo creating $ac_file |
| 2245 | |
| 2246 | rm -f conftest.frag conftest.in conftest.out |
| 2247 | cp $ac_given_srcdir/$ac_file_in conftest.in |
| 2248 | |
| 2249 | EOF |
| 2250 | |
| 2251 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 2252 | # the proper values into config.h.in to produce config.h. And first: |
| 2253 | # Protect against being on the right side of a sed subst in config.status. |
| 2254 | # Protect against being in an unquoted here document in config.status. |
| 2255 | rm -f conftest.vals |
| 2256 | cat > conftest.hdr <<\EOF |
| 2257 | s/[\\&%]/\\&/g |
| 2258 | s%[\\$`]%\\&%g |
| 2259 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
| 2260 | s%ac_d%ac_u%gp |
| 2261 | s%ac_u%ac_e%gp |
| 2262 | EOF |
| 2263 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 2264 | rm -f conftest.hdr |
| 2265 | |
| 2266 | # This sed command replaces #undef with comments. This is necessary, for |
| 2267 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 2268 | # on some systems where configure will not decide to define it. |
| 2269 | cat >> conftest.vals <<\EOF |
| 2270 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 2271 | EOF |
| 2272 | |
| 2273 | # Break up conftest.vals because some shells have a limit on |
| 2274 | # the size of here documents, and old seds have small limits too. |
| 2275 | # Maximum number of lines to put in a single here document. |
| 2276 | ac_max_here_lines=12 |
| 2277 | |
| 2278 | rm -f conftest.tail |
| 2279 | while : |
| 2280 | do |
| 2281 | ac_lines=`grep -c . conftest.vals` |
| 2282 | # grep -c gives empty output for an empty file on some AIX systems. |
| 2283 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 2284 | # Write a limited-size here document to conftest.frag. |
| 2285 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 2286 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 2287 | echo 'CEOF |
| 2288 | sed -f conftest.frag conftest.in > conftest.out |
| 2289 | rm -f conftest.in |
| 2290 | mv conftest.out conftest.in |
| 2291 | ' >> $CONFIG_STATUS |
| 2292 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 2293 | rm -f conftest.vals |
| 2294 | mv conftest.tail conftest.vals |
| 2295 | done |
| 2296 | rm -f conftest.vals |
| 2297 | |
| 2298 | cat >> $CONFIG_STATUS <<\EOF |
| 2299 | rm -f conftest.frag conftest.h |
| 2300 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
| 2301 | cat conftest.in >> conftest.h |
| 2302 | rm -f conftest.in |
| 2303 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
| 2304 | echo "$ac_file is unchanged" |
| 2305 | rm -f conftest.h |
| 2306 | else |
| 2307 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 2308 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 2309 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 2310 | # The file is in a subdirectory. |
| 2311 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 2312 | fi |
| 2313 | rm -f $ac_file |
| 2314 | mv conftest.h $ac_file |
| 2315 | fi |
| 2316 | fi; done |
| 2317 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2318 | |
| 2319 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2320 | exit 0 |
| 2321 | EOF |
| 2322 | chmod +x $CONFIG_STATUS |
| 2323 | rm -fr confdefs* $ac_clean_files |
| 2324 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 2325 | |
| 2326 | |
| 2327 | echo |
| 2328 | echo "Configure finished. Do 'make depend; make' to compile Wine." |
| 2329 | echo |
| 2330 | |