Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | |
| 3 | # Guess values for system-dependent variables and create Makefiles. |
| 4 | # Generated automatically using autoconf version 2.13 |
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
| 6 | # |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | |
| 10 | # Defaults: |
| 11 | ac_help= |
| 12 | ac_default_prefix=/usr/local |
| 13 | # Any additions from configure.in: |
| 14 | ac_help="$ac_help |
| 15 | --disable-darwin Disable Darwin (Mac OS X) support." |
| 16 | ac_help="$ac_help |
| 17 | --with-vim-name=NAME what to call the Vim executable" |
| 18 | ac_help="$ac_help |
| 19 | --with-ex-name=NAME what to call the Ex executable" |
| 20 | ac_help="$ac_help |
| 21 | --with-view-name=NAME what to call the View executable" |
| 22 | ac_help="$ac_help |
| 23 | --with-global-runtime=DIR global runtime directory in 'runtimepath'" |
| 24 | ac_help="$ac_help |
| 25 | --with-modified-by=NAME name of who modified a release version" |
| 26 | ac_help="$ac_help |
| 27 | --with-features=TYPE tiny, small, normal, big or huge (default: normal)" |
| 28 | ac_help="$ac_help |
| 29 | --with-compiledby=NAME name to show in :version message" |
| 30 | ac_help="$ac_help |
| 31 | --disable-xsmp Disable XSMP session management" |
| 32 | ac_help="$ac_help |
| 33 | --disable-xsmp-interact Disable XSMP interaction" |
| 34 | ac_help="$ac_help |
| 35 | --enable-perlinterp Include Perl interpreter." |
| 36 | ac_help="$ac_help |
| 37 | --enable-pythoninterp Include Python interpreter." |
| 38 | ac_help="$ac_help |
| 39 | --with-python-config-dir=PATH Python's config directory" |
| 40 | ac_help="$ac_help |
| 41 | --enable-tclinterp Include Tcl interpreter." |
| 42 | ac_help="$ac_help |
| 43 | --with-tclsh=PATH which tclsh to use (default: tclsh8.0)" |
| 44 | ac_help="$ac_help |
| 45 | --enable-rubyinterp Include Ruby interpreter." |
| 46 | ac_help="$ac_help |
| 47 | --enable-cscope Include cscope interface." |
| 48 | ac_help="$ac_help |
| 49 | --enable-workshop Include Sun Visual Workshop support." |
| 50 | ac_help="$ac_help |
| 51 | --disable-netbeans Disable NetBeans integration support." |
| 52 | ac_help="$ac_help |
| 53 | --enable-sniff Include Sniff interface." |
| 54 | ac_help="$ac_help |
| 55 | --enable-multibyte Include multibyte editing support." |
| 56 | ac_help="$ac_help |
| 57 | --enable-hangulinput Include Hangul input support." |
| 58 | ac_help="$ac_help |
| 59 | --enable-xim Include XIM input support." |
| 60 | ac_help="$ac_help |
| 61 | --enable-fontset Include X fontset output support." |
| 62 | ac_help="$ac_help |
| 63 | --with-x use the X Window System" |
| 64 | ac_help="$ac_help |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 65 | --enable-gui[=OPTS] X11 GUI [default=auto] [OPTS=auto/no/gtk/gtk2/gnome/gnome2/kde/motif/athena/neXtaw/beos/photon/carbon]" |
| 66 | ac_help="$ac_help |
| 67 | --enable-kde-check If auto-select GUI, check for KDE [default=no]" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 68 | ac_help="$ac_help |
| 69 | --enable-gtk-check If auto-select GUI, check for GTK [default=yes]" |
| 70 | ac_help="$ac_help |
| 71 | --enable-gtk2-check If GTK GUI, check for GTK+ 2 [default=yes]" |
| 72 | ac_help="$ac_help |
| 73 | --enable-gnome-check If GTK GUI, check for GNOME [default=no]" |
| 74 | ac_help="$ac_help |
| 75 | --enable-motif-check If auto-select GUI, check for Motif [default=yes]" |
| 76 | ac_help="$ac_help |
| 77 | --enable-athena-check If auto-select GUI, check for Athena [default=yes]" |
| 78 | ac_help="$ac_help |
| 79 | --enable-nextaw-check If auto-select GUI, check for neXtaw [default=yes]" |
| 80 | ac_help="$ac_help |
| 81 | --enable-carbon-check If auto-select GUI, check for Carbon [default=yes]" |
| 82 | ac_help="$ac_help |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 83 | --with-qt-dir=DIR Specify prefix of QT files" |
| 84 | ac_help="$ac_help |
| 85 | --with-qt-includes=DIR Specify location of Qt headers" |
| 86 | ac_help="$ac_help |
| 87 | --with-qt-libs=DIR Specify location of Qt libraries" |
| 88 | ac_help="$ac_help |
| 89 | --enable-kde-toolbar if KDE GUI is selected, enable a KDE-look toolbar [default=no]" |
| 90 | ac_help="$ac_help |
| 91 | --disable-rpath Disable rpath." |
| 92 | ac_help="$ac_help |
| 93 | --with-kde-prefix=PFX Prefix where KDE is installed (optional)" |
| 94 | ac_help="$ac_help |
| 95 | --with-kde-includes=DIR Specify location of KDE headers" |
| 96 | ac_help="$ac_help |
| 97 | --with-kde-libs=DIR Specify location of KDE libraries" |
| 98 | ac_help="$ac_help |
| 99 | --disable-kdetest Do not try to compile and run a test KDE program" |
| 100 | ac_help="$ac_help |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 101 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" |
| 102 | ac_help="$ac_help |
| 103 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" |
| 104 | ac_help="$ac_help |
| 105 | --disable-gtktest Do not try to compile and run a test GTK program" |
| 106 | ac_help="$ac_help |
| 107 | --with-gnome-includes=DIR Specify location of GNOME headers" |
| 108 | ac_help="$ac_help |
| 109 | --with-gnome-libs=DIR Specify location of GNOME libs" |
| 110 | ac_help="$ac_help |
| 111 | --with-gnome Specify prefix for GNOME files" |
| 112 | ac_help="$ac_help |
| 113 | --with-motif-lib=STRING Library for Motif " |
| 114 | ac_help="$ac_help |
| 115 | --with-tlib=library terminal library to be used " |
| 116 | ac_help="$ac_help |
| 117 | --disable-acl Don't check for ACL support." |
| 118 | ac_help="$ac_help |
| 119 | --disable-gpm Don't use gpm (Linux mouse daemon)." |
| 120 | ac_help="$ac_help |
| 121 | --disable-nls Don't support NLS (gettext())." |
| 122 | |
| 123 | # Initialize some variables set by options. |
| 124 | # The variables have the same names as the options, with |
| 125 | # dashes changed to underlines. |
| 126 | build=NONE |
| 127 | cache_file=./config.cache |
| 128 | exec_prefix=NONE |
| 129 | host=NONE |
| 130 | no_create= |
| 131 | nonopt=NONE |
| 132 | no_recursion= |
| 133 | prefix=NONE |
| 134 | program_prefix=NONE |
| 135 | program_suffix=NONE |
| 136 | program_transform_name=s,x,x, |
| 137 | silent= |
| 138 | site= |
| 139 | srcdir= |
| 140 | target=NONE |
| 141 | verbose= |
| 142 | x_includes=NONE |
| 143 | x_libraries=NONE |
| 144 | bindir='${exec_prefix}/bin' |
| 145 | sbindir='${exec_prefix}/sbin' |
| 146 | libexecdir='${exec_prefix}/libexec' |
| 147 | datadir='${prefix}/share' |
| 148 | sysconfdir='${prefix}/etc' |
| 149 | sharedstatedir='${prefix}/com' |
| 150 | localstatedir='${prefix}/var' |
| 151 | libdir='${exec_prefix}/lib' |
| 152 | includedir='${prefix}/include' |
| 153 | oldincludedir='/usr/include' |
| 154 | infodir='${prefix}/info' |
| 155 | mandir='${prefix}/man' |
| 156 | |
| 157 | # Initialize some other variables. |
| 158 | subdirs= |
| 159 | MFLAGS= MAKEFLAGS= |
| 160 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 161 | # Maximum number of lines to put in a shell here document. |
| 162 | ac_max_here_lines=12 |
| 163 | |
| 164 | ac_prev= |
| 165 | for ac_option |
| 166 | do |
| 167 | |
| 168 | # If the previous option needs an argument, assign it. |
| 169 | if test -n "$ac_prev"; then |
| 170 | eval "$ac_prev=\$ac_option" |
| 171 | ac_prev= |
| 172 | continue |
| 173 | fi |
| 174 | |
| 175 | case "$ac_option" in |
| 176 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 177 | *) ac_optarg= ;; |
| 178 | esac |
| 179 | |
| 180 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 181 | |
| 182 | case "$ac_option" in |
| 183 | |
| 184 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 185 | ac_prev=bindir ;; |
| 186 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 187 | bindir="$ac_optarg" ;; |
| 188 | |
| 189 | -build | --build | --buil | --bui | --bu) |
| 190 | ac_prev=build ;; |
| 191 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 192 | build="$ac_optarg" ;; |
| 193 | |
| 194 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 195 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 196 | ac_prev=cache_file ;; |
| 197 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 198 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 199 | cache_file="$ac_optarg" ;; |
| 200 | |
| 201 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 202 | ac_prev=datadir ;; |
| 203 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 204 | | --da=*) |
| 205 | datadir="$ac_optarg" ;; |
| 206 | |
| 207 | -disable-* | --disable-*) |
| 208 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 209 | # Reject names that are not valid shell variable names. |
| 210 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 211 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 212 | fi |
| 213 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 214 | eval "enable_${ac_feature}=no" ;; |
| 215 | |
| 216 | -enable-* | --enable-*) |
| 217 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 218 | # Reject names that are not valid shell variable names. |
| 219 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 220 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 221 | fi |
| 222 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 223 | case "$ac_option" in |
| 224 | *=*) ;; |
| 225 | *) ac_optarg=yes ;; |
| 226 | esac |
| 227 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 228 | |
| 229 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 230 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 231 | | --exec | --exe | --ex) |
| 232 | ac_prev=exec_prefix ;; |
| 233 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 234 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 235 | | --exec=* | --exe=* | --ex=*) |
| 236 | exec_prefix="$ac_optarg" ;; |
| 237 | |
| 238 | -gas | --gas | --ga | --g) |
| 239 | # Obsolete; use --with-gas. |
| 240 | with_gas=yes ;; |
| 241 | |
| 242 | -help | --help | --hel | --he) |
| 243 | # Omit some internal or obsolete options to make the list less imposing. |
| 244 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 245 | cat << EOF |
| 246 | Usage: configure [options] [host] |
| 247 | Options: [defaults in brackets after descriptions] |
| 248 | Configuration: |
| 249 | --cache-file=FILE cache test results in FILE |
| 250 | --help print this message |
| 251 | --no-create do not create output files |
| 252 | --quiet, --silent do not print \`checking...' messages |
| 253 | --version print the version of autoconf that created configure |
| 254 | Directory and file names: |
| 255 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 256 | [$ac_default_prefix] |
| 257 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 258 | [same as prefix] |
| 259 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 260 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 261 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 262 | --datadir=DIR read-only architecture-independent data in DIR |
| 263 | [PREFIX/share] |
| 264 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 265 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 266 | [PREFIX/com] |
| 267 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 268 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 269 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 270 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 271 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 272 | --mandir=DIR man documentation in DIR [PREFIX/man] |
| 273 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 274 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 275 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 276 | --program-transform-name=PROGRAM |
| 277 | run sed PROGRAM on installed program names |
| 278 | EOF |
| 279 | cat << EOF |
| 280 | Host type: |
| 281 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 282 | --host=HOST configure for HOST [guessed] |
| 283 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 284 | Features and packages: |
| 285 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 286 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 287 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 288 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 289 | --x-includes=DIR X include files are in DIR |
| 290 | --x-libraries=DIR X library files are in DIR |
| 291 | EOF |
| 292 | if test -n "$ac_help"; then |
| 293 | echo "--enable and --with options recognized:$ac_help" |
| 294 | fi |
| 295 | exit 0 ;; |
| 296 | |
| 297 | -host | --host | --hos | --ho) |
| 298 | ac_prev=host ;; |
| 299 | -host=* | --host=* | --hos=* | --ho=*) |
| 300 | host="$ac_optarg" ;; |
| 301 | |
| 302 | -includedir | --includedir | --includedi | --included | --include \ |
| 303 | | --includ | --inclu | --incl | --inc) |
| 304 | ac_prev=includedir ;; |
| 305 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 306 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 307 | includedir="$ac_optarg" ;; |
| 308 | |
| 309 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 310 | ac_prev=infodir ;; |
| 311 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 312 | infodir="$ac_optarg" ;; |
| 313 | |
| 314 | -libdir | --libdir | --libdi | --libd) |
| 315 | ac_prev=libdir ;; |
| 316 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 317 | libdir="$ac_optarg" ;; |
| 318 | |
| 319 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 320 | | --libexe | --libex | --libe) |
| 321 | ac_prev=libexecdir ;; |
| 322 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 323 | | --libexe=* | --libex=* | --libe=*) |
| 324 | libexecdir="$ac_optarg" ;; |
| 325 | |
| 326 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 327 | | --localstate | --localstat | --localsta | --localst \ |
| 328 | | --locals | --local | --loca | --loc | --lo) |
| 329 | ac_prev=localstatedir ;; |
| 330 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 331 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 332 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 333 | localstatedir="$ac_optarg" ;; |
| 334 | |
| 335 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 336 | ac_prev=mandir ;; |
| 337 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 338 | mandir="$ac_optarg" ;; |
| 339 | |
| 340 | -nfp | --nfp | --nf) |
| 341 | # Obsolete; use --without-fp. |
| 342 | with_fp=no ;; |
| 343 | |
| 344 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 345 | | --no-cr | --no-c) |
| 346 | no_create=yes ;; |
| 347 | |
| 348 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 349 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 350 | no_recursion=yes ;; |
| 351 | |
| 352 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 353 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 354 | | --oldin | --oldi | --old | --ol | --o) |
| 355 | ac_prev=oldincludedir ;; |
| 356 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 357 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 358 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 359 | oldincludedir="$ac_optarg" ;; |
| 360 | |
| 361 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 362 | ac_prev=prefix ;; |
| 363 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 364 | prefix="$ac_optarg" ;; |
| 365 | |
| 366 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 367 | | --program-pre | --program-pr | --program-p) |
| 368 | ac_prev=program_prefix ;; |
| 369 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 370 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 371 | program_prefix="$ac_optarg" ;; |
| 372 | |
| 373 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 374 | | --program-suf | --program-su | --program-s) |
| 375 | ac_prev=program_suffix ;; |
| 376 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 377 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 378 | program_suffix="$ac_optarg" ;; |
| 379 | |
| 380 | -program-transform-name | --program-transform-name \ |
| 381 | | --program-transform-nam | --program-transform-na \ |
| 382 | | --program-transform-n | --program-transform- \ |
| 383 | | --program-transform | --program-transfor \ |
| 384 | | --program-transfo | --program-transf \ |
| 385 | | --program-trans | --program-tran \ |
| 386 | | --progr-tra | --program-tr | --program-t) |
| 387 | ac_prev=program_transform_name ;; |
| 388 | -program-transform-name=* | --program-transform-name=* \ |
| 389 | | --program-transform-nam=* | --program-transform-na=* \ |
| 390 | | --program-transform-n=* | --program-transform-=* \ |
| 391 | | --program-transform=* | --program-transfor=* \ |
| 392 | | --program-transfo=* | --program-transf=* \ |
| 393 | | --program-trans=* | --program-tran=* \ |
| 394 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 395 | program_transform_name="$ac_optarg" ;; |
| 396 | |
| 397 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 398 | | -silent | --silent | --silen | --sile | --sil) |
| 399 | silent=yes ;; |
| 400 | |
| 401 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 402 | ac_prev=sbindir ;; |
| 403 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 404 | | --sbi=* | --sb=*) |
| 405 | sbindir="$ac_optarg" ;; |
| 406 | |
| 407 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 408 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 409 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 410 | | --sha | --sh) |
| 411 | ac_prev=sharedstatedir ;; |
| 412 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 413 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 414 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 415 | | --sha=* | --sh=*) |
| 416 | sharedstatedir="$ac_optarg" ;; |
| 417 | |
| 418 | -site | --site | --sit) |
| 419 | ac_prev=site ;; |
| 420 | -site=* | --site=* | --sit=*) |
| 421 | site="$ac_optarg" ;; |
| 422 | |
| 423 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 424 | ac_prev=srcdir ;; |
| 425 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 426 | srcdir="$ac_optarg" ;; |
| 427 | |
| 428 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 429 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 430 | ac_prev=sysconfdir ;; |
| 431 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 432 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 433 | sysconfdir="$ac_optarg" ;; |
| 434 | |
| 435 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 436 | ac_prev=target ;; |
| 437 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 438 | target="$ac_optarg" ;; |
| 439 | |
| 440 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 441 | verbose=yes ;; |
| 442 | |
| 443 | -version | --version | --versio | --versi | --vers) |
| 444 | echo "configure generated by autoconf version 2.13" |
| 445 | exit 0 ;; |
| 446 | |
| 447 | -with-* | --with-*) |
| 448 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 449 | # Reject names that are not valid shell variable names. |
| 450 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 451 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 452 | fi |
| 453 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 454 | case "$ac_option" in |
| 455 | *=*) ;; |
| 456 | *) ac_optarg=yes ;; |
| 457 | esac |
| 458 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 459 | |
| 460 | -without-* | --without-*) |
| 461 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 462 | # Reject names that are not valid shell variable names. |
| 463 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 464 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 465 | fi |
| 466 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 467 | eval "with_${ac_package}=no" ;; |
| 468 | |
| 469 | --x) |
| 470 | # Obsolete; use --with-x. |
| 471 | with_x=yes ;; |
| 472 | |
| 473 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 474 | | --x-incl | --x-inc | --x-in | --x-i) |
| 475 | ac_prev=x_includes ;; |
| 476 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 477 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 478 | x_includes="$ac_optarg" ;; |
| 479 | |
| 480 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 481 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 482 | ac_prev=x_libraries ;; |
| 483 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 484 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 485 | x_libraries="$ac_optarg" ;; |
| 486 | |
| 487 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 488 | ;; |
| 489 | |
| 490 | *) |
| 491 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 492 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 493 | fi |
| 494 | if test "x$nonopt" != xNONE; then |
| 495 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 496 | fi |
| 497 | nonopt="$ac_option" |
| 498 | ;; |
| 499 | |
| 500 | esac |
| 501 | done |
| 502 | |
| 503 | if test -n "$ac_prev"; then |
| 504 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 505 | fi |
| 506 | |
| 507 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 508 | |
| 509 | # File descriptor usage: |
| 510 | # 0 standard input |
| 511 | # 1 file creation |
| 512 | # 2 errors and warnings |
| 513 | # 3 some systems may open it to /dev/tty |
| 514 | # 4 used on the Kubota Titan |
| 515 | # 6 checking for... messages and results |
| 516 | # 5 compiler messages saved in config.log |
| 517 | if test "$silent" = yes; then |
| 518 | exec 6>/dev/null |
| 519 | else |
| 520 | exec 6>&1 |
| 521 | fi |
| 522 | exec 5>auto/config.log |
| 523 | |
| 524 | echo "\ |
| 525 | This file contains any messages produced by compilers while |
| 526 | running configure, to aid debugging if configure makes a mistake. |
| 527 | " 1>&5 |
| 528 | |
| 529 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 530 | # Also quote any args containing shell metacharacters. |
| 531 | ac_configure_args= |
| 532 | for ac_arg |
| 533 | do |
| 534 | case "$ac_arg" in |
| 535 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 536 | | --no-cr | --no-c) ;; |
| 537 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 538 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 539 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 540 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 541 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 542 | esac |
| 543 | done |
| 544 | |
| 545 | # NLS nuisances. |
| 546 | # Only set these to C if already set. These must not be set unconditionally |
| 547 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 548 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 549 | # Non-C LC_CTYPE values break the ctype check. |
| 550 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 551 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 552 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 553 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| 554 | |
| 555 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 556 | rm -rf conftest* confdefs.h |
| 557 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 558 | echo > confdefs.h |
| 559 | |
| 560 | # A filename unique to this package, relative to the directory that |
| 561 | # configure is in, which we can look for to find out if srcdir is correct. |
| 562 | ac_unique_file=vim.h |
| 563 | |
| 564 | # Find the source files, if location was not specified. |
| 565 | if test -z "$srcdir"; then |
| 566 | ac_srcdir_defaulted=yes |
| 567 | # Try the directory containing this script, then its parent. |
| 568 | ac_prog=$0 |
| 569 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 570 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 571 | srcdir=$ac_confdir |
| 572 | if test ! -r $srcdir/$ac_unique_file; then |
| 573 | srcdir=.. |
| 574 | fi |
| 575 | else |
| 576 | ac_srcdir_defaulted=no |
| 577 | fi |
| 578 | if test ! -r $srcdir/$ac_unique_file; then |
| 579 | if test "$ac_srcdir_defaulted" = yes; then |
| 580 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 581 | else |
| 582 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 583 | fi |
| 584 | fi |
| 585 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 586 | |
| 587 | # Prefer explicitly selected file to automatically selected ones. |
| 588 | if test -z "$CONFIG_SITE"; then |
| 589 | if test "x$prefix" != xNONE; then |
| 590 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 591 | else |
| 592 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 593 | fi |
| 594 | fi |
| 595 | for ac_site_file in $CONFIG_SITE; do |
| 596 | if test -r "$ac_site_file"; then |
| 597 | echo "loading site script $ac_site_file" |
| 598 | . "$ac_site_file" |
| 599 | fi |
| 600 | done |
| 601 | |
| 602 | if test -r "$cache_file"; then |
| 603 | echo "loading cache $cache_file" |
| 604 | . $cache_file |
| 605 | else |
| 606 | echo "creating cache $cache_file" |
| 607 | > $cache_file |
| 608 | fi |
| 609 | |
| 610 | ac_ext=c |
| 611 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 612 | ac_cpp='$CPP $CPPFLAGS' |
| 613 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 614 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 615 | cross_compiling=$ac_cv_prog_cc_cross |
| 616 | |
| 617 | ac_exeext= |
| 618 | ac_objext=o |
| 619 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 620 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 621 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 622 | ac_n= ac_c=' |
| 623 | ' ac_t=' ' |
| 624 | else |
| 625 | ac_n=-n ac_c= ac_t= |
| 626 | fi |
| 627 | else |
| 628 | ac_n= ac_c='\c' ac_t= |
| 629 | fi |
| 630 | |
| 631 | |
| 632 | |
| 633 | |
| 634 | cat >> confdefs.h <<\EOF |
| 635 | #define UNIX 1 |
| 636 | EOF |
| 637 | |
| 638 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 639 | echo "configure:640: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 640 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 641 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 642 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 643 | else |
| 644 | cat > conftestmake <<\EOF |
| 645 | all: |
| 646 | @echo 'ac_maketemp="${MAKE}"' |
| 647 | EOF |
| 648 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 649 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 650 | if test -n "$ac_maketemp"; then |
| 651 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 652 | else |
| 653 | eval ac_cv_prog_make_${ac_make}_set=no |
| 654 | fi |
| 655 | rm -f conftestmake |
| 656 | fi |
| 657 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 658 | echo "$ac_t""yes" 1>&6 |
| 659 | SET_MAKE= |
| 660 | else |
| 661 | echo "$ac_t""no" 1>&6 |
| 662 | SET_MAKE="MAKE=${MAKE-make}" |
| 663 | fi |
| 664 | |
| 665 | |
| 666 | # Extract the first word of "gcc", so it can be a program name with args. |
| 667 | set dummy gcc; ac_word=$2 |
| 668 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 669 | echo "configure:670: checking for $ac_word" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 670 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 671 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 672 | else |
| 673 | if test -n "$CC"; then |
| 674 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 675 | else |
| 676 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 677 | ac_dummy="$PATH" |
| 678 | for ac_dir in $ac_dummy; do |
| 679 | test -z "$ac_dir" && ac_dir=. |
| 680 | if test -f $ac_dir/$ac_word; then |
| 681 | ac_cv_prog_CC="gcc" |
| 682 | break |
| 683 | fi |
| 684 | done |
| 685 | IFS="$ac_save_ifs" |
| 686 | fi |
| 687 | fi |
| 688 | CC="$ac_cv_prog_CC" |
| 689 | if test -n "$CC"; then |
| 690 | echo "$ac_t""$CC" 1>&6 |
| 691 | else |
| 692 | echo "$ac_t""no" 1>&6 |
| 693 | fi |
| 694 | |
| 695 | if test -z "$CC"; then |
| 696 | # Extract the first word of "cc", so it can be a program name with args. |
| 697 | set dummy cc; ac_word=$2 |
| 698 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 699 | echo "configure:700: checking for $ac_word" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 700 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 701 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 702 | else |
| 703 | if test -n "$CC"; then |
| 704 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 705 | else |
| 706 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 707 | ac_prog_rejected=no |
| 708 | ac_dummy="$PATH" |
| 709 | for ac_dir in $ac_dummy; do |
| 710 | test -z "$ac_dir" && ac_dir=. |
| 711 | if test -f $ac_dir/$ac_word; then |
| 712 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 713 | ac_prog_rejected=yes |
| 714 | continue |
| 715 | fi |
| 716 | ac_cv_prog_CC="cc" |
| 717 | break |
| 718 | fi |
| 719 | done |
| 720 | IFS="$ac_save_ifs" |
| 721 | if test $ac_prog_rejected = yes; then |
| 722 | # We found a bogon in the path, so make sure we never use it. |
| 723 | set dummy $ac_cv_prog_CC |
| 724 | shift |
| 725 | if test $# -gt 0; then |
| 726 | # We chose a different compiler from the bogus one. |
| 727 | # However, it has the same basename, so the bogon will be chosen |
| 728 | # first if we set CC to just the basename; use the full file name. |
| 729 | shift |
| 730 | set dummy "$ac_dir/$ac_word" "$@" |
| 731 | shift |
| 732 | ac_cv_prog_CC="$@" |
| 733 | fi |
| 734 | fi |
| 735 | fi |
| 736 | fi |
| 737 | CC="$ac_cv_prog_CC" |
| 738 | if test -n "$CC"; then |
| 739 | echo "$ac_t""$CC" 1>&6 |
| 740 | else |
| 741 | echo "$ac_t""no" 1>&6 |
| 742 | fi |
| 743 | |
| 744 | if test -z "$CC"; then |
| 745 | case "`uname -s`" in |
| 746 | *win32* | *WIN32*) |
| 747 | # Extract the first word of "cl", so it can be a program name with args. |
| 748 | set dummy cl; ac_word=$2 |
| 749 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 750 | echo "configure:751: checking for $ac_word" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 751 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 752 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 753 | else |
| 754 | if test -n "$CC"; then |
| 755 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 756 | else |
| 757 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 758 | ac_dummy="$PATH" |
| 759 | for ac_dir in $ac_dummy; do |
| 760 | test -z "$ac_dir" && ac_dir=. |
| 761 | if test -f $ac_dir/$ac_word; then |
| 762 | ac_cv_prog_CC="cl" |
| 763 | break |
| 764 | fi |
| 765 | done |
| 766 | IFS="$ac_save_ifs" |
| 767 | fi |
| 768 | fi |
| 769 | CC="$ac_cv_prog_CC" |
| 770 | if test -n "$CC"; then |
| 771 | echo "$ac_t""$CC" 1>&6 |
| 772 | else |
| 773 | echo "$ac_t""no" 1>&6 |
| 774 | fi |
| 775 | ;; |
| 776 | esac |
| 777 | fi |
| 778 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 779 | fi |
| 780 | |
| 781 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 782 | echo "configure:783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 783 | |
| 784 | ac_ext=c |
| 785 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 786 | ac_cpp='$CPP $CPPFLAGS' |
| 787 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 788 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 789 | cross_compiling=$ac_cv_prog_cc_cross |
| 790 | |
| 791 | cat > conftest.$ac_ext << EOF |
| 792 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 793 | #line 794 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 794 | #include "confdefs.h" |
| 795 | |
| 796 | main(){return(0);} |
| 797 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 798 | if { (eval echo configure:799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 799 | ac_cv_prog_cc_works=yes |
| 800 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 801 | if (./conftest; exit) 2>/dev/null; then |
| 802 | ac_cv_prog_cc_cross=no |
| 803 | else |
| 804 | ac_cv_prog_cc_cross=yes |
| 805 | fi |
| 806 | else |
| 807 | echo "configure: failed program was:" >&5 |
| 808 | cat conftest.$ac_ext >&5 |
| 809 | ac_cv_prog_cc_works=no |
| 810 | fi |
| 811 | rm -fr conftest* |
| 812 | ac_ext=c |
| 813 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 814 | ac_cpp='$CPP $CPPFLAGS' |
| 815 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 816 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 817 | cross_compiling=$ac_cv_prog_cc_cross |
| 818 | |
| 819 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 820 | if test $ac_cv_prog_cc_works = no; then |
| 821 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 822 | fi |
| 823 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 824 | echo "configure:825: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 825 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 826 | cross_compiling=$ac_cv_prog_cc_cross |
| 827 | |
| 828 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 829 | echo "configure:830: checking whether we are using GNU C" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 830 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 831 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 832 | else |
| 833 | cat > conftest.c <<EOF |
| 834 | #ifdef __GNUC__ |
| 835 | yes; |
| 836 | #endif |
| 837 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 838 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 839 | ac_cv_prog_gcc=yes |
| 840 | else |
| 841 | ac_cv_prog_gcc=no |
| 842 | fi |
| 843 | fi |
| 844 | |
| 845 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 846 | |
| 847 | if test $ac_cv_prog_gcc = yes; then |
| 848 | GCC=yes |
| 849 | else |
| 850 | GCC= |
| 851 | fi |
| 852 | |
| 853 | ac_test_CFLAGS="${CFLAGS+set}" |
| 854 | ac_save_CFLAGS="$CFLAGS" |
| 855 | CFLAGS= |
| 856 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 857 | echo "configure:858: checking whether ${CC-cc} accepts -g" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 858 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 859 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 860 | else |
| 861 | echo 'void f(){}' > conftest.c |
| 862 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 863 | ac_cv_prog_cc_g=yes |
| 864 | else |
| 865 | ac_cv_prog_cc_g=no |
| 866 | fi |
| 867 | rm -f conftest* |
| 868 | |
| 869 | fi |
| 870 | |
| 871 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 872 | if test "$ac_test_CFLAGS" = set; then |
| 873 | CFLAGS="$ac_save_CFLAGS" |
| 874 | elif test $ac_cv_prog_cc_g = yes; then |
| 875 | if test "$GCC" = yes; then |
| 876 | CFLAGS="-g -O2" |
| 877 | else |
| 878 | CFLAGS="-g" |
| 879 | fi |
| 880 | else |
| 881 | if test "$GCC" = yes; then |
| 882 | CFLAGS="-O2" |
| 883 | else |
| 884 | CFLAGS= |
| 885 | fi |
| 886 | fi |
| 887 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 888 | echo "configure:889: checking how to run the C preprocessor" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 889 | # On Suns, sometimes $CPP names a directory. |
| 890 | if test -n "$CPP" && test -d "$CPP"; then |
| 891 | CPP= |
| 892 | fi |
| 893 | if test -z "$CPP"; then |
| 894 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 895 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 896 | else |
| 897 | # This must be in double quotes, not single quotes, because CPP may get |
| 898 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 899 | CPP="${CC-cc} -E" |
| 900 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 901 | # not just through cpp. |
| 902 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 903 | #line 904 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 904 | #include "confdefs.h" |
| 905 | #include <assert.h> |
| 906 | Syntax Error |
| 907 | EOF |
| 908 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 909 | { (eval echo configure:910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 910 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 911 | if test -z "$ac_err"; then |
| 912 | : |
| 913 | else |
| 914 | echo "$ac_err" >&5 |
| 915 | echo "configure: failed program was:" >&5 |
| 916 | cat conftest.$ac_ext >&5 |
| 917 | rm -rf conftest* |
| 918 | CPP="${CC-cc} -E -traditional-cpp" |
| 919 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 920 | #line 921 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 921 | #include "confdefs.h" |
| 922 | #include <assert.h> |
| 923 | Syntax Error |
| 924 | EOF |
| 925 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 926 | { (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 927 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 928 | if test -z "$ac_err"; then |
| 929 | : |
| 930 | else |
| 931 | echo "$ac_err" >&5 |
| 932 | echo "configure: failed program was:" >&5 |
| 933 | cat conftest.$ac_ext >&5 |
| 934 | rm -rf conftest* |
| 935 | CPP="${CC-cc} -nologo -E" |
| 936 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 937 | #line 938 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 938 | #include "confdefs.h" |
| 939 | #include <assert.h> |
| 940 | Syntax Error |
| 941 | EOF |
| 942 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 943 | { (eval echo configure:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 944 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 945 | if test -z "$ac_err"; then |
| 946 | : |
| 947 | else |
| 948 | echo "$ac_err" >&5 |
| 949 | echo "configure: failed program was:" >&5 |
| 950 | cat conftest.$ac_ext >&5 |
| 951 | rm -rf conftest* |
| 952 | CPP=/lib/cpp |
| 953 | fi |
| 954 | rm -f conftest* |
| 955 | fi |
| 956 | rm -f conftest* |
| 957 | fi |
| 958 | rm -f conftest* |
| 959 | ac_cv_prog_CPP="$CPP" |
| 960 | fi |
| 961 | CPP="$ac_cv_prog_CPP" |
| 962 | else |
| 963 | ac_cv_prog_CPP="$CPP" |
| 964 | fi |
| 965 | echo "$ac_t""$CPP" 1>&6 |
| 966 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 967 | #line 968 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 968 | #include "confdefs.h" |
| 969 | |
| 970 | EOF |
| 971 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 972 | egrep "" >/dev/null 2>&1; then |
| 973 | : |
| 974 | fi |
| 975 | rm -f conftest* |
| 976 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 977 | echo "configure:978: checking for POSIXized ISC" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 978 | if test -d /etc/conf/kconfig.d && |
| 979 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
| 980 | then |
| 981 | echo "$ac_t""yes" 1>&6 |
| 982 | ISC=yes # If later tests want to check for ISC. |
| 983 | cat >> confdefs.h <<\EOF |
| 984 | #define _POSIX_SOURCE 1 |
| 985 | EOF |
| 986 | |
| 987 | if test "$GCC" = yes; then |
| 988 | CC="$CC -posix" |
| 989 | else |
| 990 | CC="$CC -Xp" |
| 991 | fi |
| 992 | else |
| 993 | echo "$ac_t""no" 1>&6 |
| 994 | ISC= |
| 995 | fi |
| 996 | for ac_prog in mawk gawk nawk awk |
| 997 | do |
| 998 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 999 | set dummy $ac_prog; ac_word=$2 |
| 1000 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1001 | echo "configure:1002: checking for $ac_word" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1002 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
| 1003 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1004 | else |
| 1005 | if test -n "$AWK"; then |
| 1006 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1007 | else |
| 1008 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1009 | ac_dummy="$PATH" |
| 1010 | for ac_dir in $ac_dummy; do |
| 1011 | test -z "$ac_dir" && ac_dir=. |
| 1012 | if test -f $ac_dir/$ac_word; then |
| 1013 | ac_cv_prog_AWK="$ac_prog" |
| 1014 | break |
| 1015 | fi |
| 1016 | done |
| 1017 | IFS="$ac_save_ifs" |
| 1018 | fi |
| 1019 | fi |
| 1020 | AWK="$ac_cv_prog_AWK" |
| 1021 | if test -n "$AWK"; then |
| 1022 | echo "$ac_t""$AWK" 1>&6 |
| 1023 | else |
| 1024 | echo "$ac_t""no" 1>&6 |
| 1025 | fi |
| 1026 | |
| 1027 | test -n "$AWK" && break |
| 1028 | done |
| 1029 | |
| 1030 | # Extract the first word of "strip", so it can be a program name with args. |
| 1031 | set dummy strip; ac_word=$2 |
| 1032 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1033 | echo "configure:1034: checking for $ac_word" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1034 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 1035 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1036 | else |
| 1037 | if test -n "$STRIP"; then |
| 1038 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1039 | else |
| 1040 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1041 | ac_dummy="$PATH" |
| 1042 | for ac_dir in $ac_dummy; do |
| 1043 | test -z "$ac_dir" && ac_dir=. |
| 1044 | if test -f $ac_dir/$ac_word; then |
| 1045 | ac_cv_prog_STRIP="strip" |
| 1046 | break |
| 1047 | fi |
| 1048 | done |
| 1049 | IFS="$ac_save_ifs" |
| 1050 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 1051 | fi |
| 1052 | fi |
| 1053 | STRIP="$ac_cv_prog_STRIP" |
| 1054 | if test -n "$STRIP"; then |
| 1055 | echo "$ac_t""$STRIP" 1>&6 |
| 1056 | else |
| 1057 | echo "$ac_t""no" 1>&6 |
| 1058 | fi |
| 1059 | |
| 1060 | |
| 1061 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1062 | echo "configure:1063: checking for Cygwin environment" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1063 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
| 1064 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1065 | else |
| 1066 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1067 | #line 1068 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1068 | #include "confdefs.h" |
| 1069 | |
| 1070 | int main() { |
| 1071 | |
| 1072 | #ifndef __CYGWIN__ |
| 1073 | #define __CYGWIN__ __CYGWIN32__ |
| 1074 | #endif |
| 1075 | return __CYGWIN__; |
| 1076 | ; return 0; } |
| 1077 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1078 | if { (eval echo configure:1079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1079 | rm -rf conftest* |
| 1080 | ac_cv_cygwin=yes |
| 1081 | else |
| 1082 | echo "configure: failed program was:" >&5 |
| 1083 | cat conftest.$ac_ext >&5 |
| 1084 | rm -rf conftest* |
| 1085 | ac_cv_cygwin=no |
| 1086 | fi |
| 1087 | rm -f conftest* |
| 1088 | rm -f conftest* |
| 1089 | fi |
| 1090 | |
| 1091 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
| 1092 | CYGWIN= |
| 1093 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
| 1094 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1095 | echo "configure:1096: checking for mingw32 environment" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1096 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
| 1097 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1098 | else |
| 1099 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1100 | #line 1101 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1101 | #include "confdefs.h" |
| 1102 | |
| 1103 | int main() { |
| 1104 | return __MINGW32__; |
| 1105 | ; return 0; } |
| 1106 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1107 | if { (eval echo configure:1108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1108 | rm -rf conftest* |
| 1109 | ac_cv_mingw32=yes |
| 1110 | else |
| 1111 | echo "configure: failed program was:" >&5 |
| 1112 | cat conftest.$ac_ext >&5 |
| 1113 | rm -rf conftest* |
| 1114 | ac_cv_mingw32=no |
| 1115 | fi |
| 1116 | rm -f conftest* |
| 1117 | rm -f conftest* |
| 1118 | fi |
| 1119 | |
| 1120 | echo "$ac_t""$ac_cv_mingw32" 1>&6 |
| 1121 | MINGW32= |
| 1122 | test "$ac_cv_mingw32" = yes && MINGW32=yes |
| 1123 | |
| 1124 | |
| 1125 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1126 | echo "configure:1127: checking for executable suffix" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1127 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
| 1128 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1129 | else |
| 1130 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 1131 | ac_cv_exeext=.exe |
| 1132 | else |
| 1133 | rm -f conftest* |
| 1134 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 1135 | ac_cv_exeext= |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1136 | if { (eval echo configure:1137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1137 | for file in conftest.*; do |
| 1138 | case $file in |
| 1139 | *.c | *.o | *.obj) ;; |
| 1140 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
| 1141 | esac |
| 1142 | done |
| 1143 | else |
| 1144 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
| 1145 | fi |
| 1146 | rm -f conftest* |
| 1147 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
| 1148 | fi |
| 1149 | fi |
| 1150 | |
| 1151 | EXEEXT="" |
| 1152 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
| 1153 | echo "$ac_t""${ac_cv_exeext}" 1>&6 |
| 1154 | ac_exeext=$EXEEXT |
| 1155 | |
| 1156 | |
| 1157 | if test -z "$CFLAGS"; then |
| 1158 | CFLAGS="-O" |
| 1159 | test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" |
| 1160 | fi |
| 1161 | if test "$GCC" = yes; then |
| 1162 | gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` |
| 1163 | if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2"; then |
| 1164 | echo 'GCC 3.0.x has a bug in the optimizer, disabling "-O#"' |
| 1165 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` |
| 1166 | else |
| 1167 | if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then |
| 1168 | echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' |
| 1169 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 1170 | fi |
| 1171 | fi |
| 1172 | fi |
| 1173 | |
| 1174 | if test "$cross_compiling" = yes; then |
| 1175 | { echo "configure: error: cannot compile a simple program, check CC and CFLAGS |
| 1176 | (cross compiling doesn't work)" 1>&2; exit 1; } |
| 1177 | fi |
| 1178 | |
| 1179 | test "$GCC" = yes && CPP_MM=M; |
| 1180 | |
| 1181 | if test -f ./toolcheck; then |
| 1182 | echo "checking for buggy tools" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1183 | echo "configure:1184: checking for buggy tools" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1184 | sh ./toolcheck 1>&6 |
| 1185 | fi |
| 1186 | |
| 1187 | OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
| 1188 | |
| 1189 | echo $ac_n "checking for BeOS""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1190 | echo "configure:1191: checking for BeOS" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1191 | case `uname` in |
| 1192 | BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o |
| 1193 | BEOS=yes; echo "$ac_t""yes" 1>&6;; |
| 1194 | *) BEOS=no; echo "$ac_t""no" 1>&6;; |
| 1195 | esac |
| 1196 | |
| 1197 | echo $ac_n "checking for QNX""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1198 | echo "configure:1199: checking for QNX" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1199 | case `uname` in |
| 1200 | QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
| 1201 | test -z "$with_x" && with_x=no |
| 1202 | QNX=yes; echo "$ac_t""yes" 1>&6;; |
| 1203 | *) QNX=no; echo "$ac_t""no" 1>&6;; |
| 1204 | esac |
| 1205 | |
| 1206 | DEFAULT_VIMNAME=vim |
| 1207 | echo $ac_n "checking for Darwin (Mac OS X)""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1208 | echo "configure:1209: checking for Darwin (Mac OS X)" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1209 | if test "`(uname) 2>/dev/null`" = Darwin; then |
| 1210 | echo "$ac_t""yes" 1>&6 |
| 1211 | |
| 1212 | echo $ac_n "checking --disable-darwin argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1213 | echo "configure:1214: checking --disable-darwin argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1214 | # Check whether --enable-darwin or --disable-darwin was given. |
| 1215 | if test "${enable_darwin+set}" = set; then |
| 1216 | enableval="$enable_darwin" |
| 1217 | : |
| 1218 | else |
| 1219 | enable_darwin="yes" |
| 1220 | fi |
| 1221 | |
| 1222 | if test "$enable_darwin" = "yes"; then |
| 1223 | echo "$ac_t""no" 1>&6 |
| 1224 | echo $ac_n "checking if Darwin files are there""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1225 | echo "configure:1226: checking if Darwin files are there" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1226 | if test -f os_macosx.c; then |
| 1227 | echo "$ac_t""yes" 1>&6 |
| 1228 | else |
| 1229 | echo "$ac_t""no, Darwin support disabled" 1>&6 |
| 1230 | enable_darwin=no |
| 1231 | fi |
| 1232 | else |
| 1233 | echo "$ac_t""yes, Darwin support excluded" 1>&6 |
| 1234 | fi |
| 1235 | |
| 1236 | if test "$enable_darwin" = "yes"; then |
| 1237 | MACOSX=yes |
| 1238 | OS_EXTRA_SCR="os_macosx.c"; |
| 1239 | OS_EXTRA_OBJ="objects/os_macosx.o" |
| 1240 | CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -I/Developer/Headers/FlatCarbon -no-cpp-precomp" |
| 1241 | |
| 1242 | ac_safe=`echo "Carbon/Carbon.h" | sed 'y%./+-%__p_%'` |
| 1243 | echo $ac_n "checking for Carbon/Carbon.h""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1244 | echo "configure:1245: checking for Carbon/Carbon.h" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1245 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1246 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1247 | else |
| 1248 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1249 | #line 1250 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1250 | #include "confdefs.h" |
| 1251 | #include <Carbon/Carbon.h> |
| 1252 | EOF |
| 1253 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1254 | { (eval echo configure:1255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1255 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1256 | if test -z "$ac_err"; then |
| 1257 | rm -rf conftest* |
| 1258 | eval "ac_cv_header_$ac_safe=yes" |
| 1259 | else |
| 1260 | echo "$ac_err" >&5 |
| 1261 | echo "configure: failed program was:" >&5 |
| 1262 | cat conftest.$ac_ext >&5 |
| 1263 | rm -rf conftest* |
| 1264 | eval "ac_cv_header_$ac_safe=no" |
| 1265 | fi |
| 1266 | rm -f conftest* |
| 1267 | fi |
| 1268 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1269 | echo "$ac_t""yes" 1>&6 |
| 1270 | CARBON=yes |
| 1271 | else |
| 1272 | echo "$ac_t""no" 1>&6 |
| 1273 | fi |
| 1274 | |
| 1275 | if test "x$CARBON" = "xyes"; then |
| 1276 | if test -z "$with_x"; then |
| 1277 | with_x=no |
| 1278 | DEFAULT_VIMNAME=Vim |
| 1279 | fi |
| 1280 | fi |
| 1281 | fi |
| 1282 | else |
| 1283 | echo "$ac_t""no" 1>&6 |
| 1284 | fi |
| 1285 | |
| 1286 | |
| 1287 | |
| 1288 | |
| 1289 | have_local_include='' |
| 1290 | have_local_lib='' |
| 1291 | if test "$GCC" = yes; then |
| 1292 | echo 'void f(){}' > conftest.c |
| 1293 | have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'` |
| 1294 | have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'` |
| 1295 | rm -f conftest.c conftest.o |
| 1296 | fi |
| 1297 | if test -z "$have_local_lib" -a -d /usr/local/lib; then |
| 1298 | tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'` |
| 1299 | if test "$tt" = "$LDFLAGS"; then |
| 1300 | LDFLAGS="$LDFLAGS -L/usr/local/lib" |
| 1301 | fi |
| 1302 | fi |
| 1303 | if test -z "$have_local_include" -a -d /usr/local/include; then |
| 1304 | tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'` |
| 1305 | if test "$tt" = "$CPPFLAGS"; then |
| 1306 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
| 1307 | fi |
| 1308 | fi |
| 1309 | |
| 1310 | echo $ac_n "checking --with-vim-name argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1311 | echo "configure:1312: checking --with-vim-name argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1312 | # Check whether --with-vim-name or --without-vim-name was given. |
| 1313 | if test "${with_vim_name+set}" = set; then |
| 1314 | withval="$with_vim_name" |
| 1315 | VIMNAME="$withval"; echo "$ac_t""$VIMNAME" 1>&6 |
| 1316 | else |
| 1317 | VIMNAME="$DEFAULT_VIMNAME"; echo "$ac_t""Defaulting to $VIMNAME" 1>&6 |
| 1318 | fi |
| 1319 | |
| 1320 | |
| 1321 | echo $ac_n "checking --with-ex-name argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1322 | echo "configure:1323: checking --with-ex-name argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1323 | # Check whether --with-ex-name or --without-ex-name was given. |
| 1324 | if test "${with_ex_name+set}" = set; then |
| 1325 | withval="$with_ex_name" |
| 1326 | EXNAME="$withval"; echo "$ac_t""$EXNAME" 1>&6 |
| 1327 | else |
| 1328 | EXNAME="ex"; echo "$ac_t""Defaulting to ex" 1>&6 |
| 1329 | fi |
| 1330 | |
| 1331 | |
| 1332 | echo $ac_n "checking --with-view-name argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1333 | echo "configure:1334: checking --with-view-name argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1334 | # Check whether --with-view-name or --without-view-name was given. |
| 1335 | if test "${with_view_name+set}" = set; then |
| 1336 | withval="$with_view_name" |
| 1337 | VIEWNAME="$withval"; echo "$ac_t""$VIEWNAME" 1>&6 |
| 1338 | else |
| 1339 | VIEWNAME="view"; echo "$ac_t""Defaulting to view" 1>&6 |
| 1340 | fi |
| 1341 | |
| 1342 | |
| 1343 | |
| 1344 | echo $ac_n "checking --with-global-runtime argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1345 | echo "configure:1346: checking --with-global-runtime argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1346 | # Check whether --with-global-runtime or --without-global-runtime was given. |
| 1347 | if test "${with_global_runtime+set}" = set; then |
| 1348 | withval="$with_global_runtime" |
| 1349 | echo "$ac_t""$withval" 1>&6; cat >> confdefs.h <<EOF |
| 1350 | #define RUNTIME_GLOBAL "$withval" |
| 1351 | EOF |
| 1352 | |
| 1353 | else |
| 1354 | echo "$ac_t""no" 1>&6 |
| 1355 | fi |
| 1356 | |
| 1357 | |
| 1358 | echo $ac_n "checking --with-modified-by argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1359 | echo "configure:1360: checking --with-modified-by argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1360 | # Check whether --with-modified-by or --without-modified-by was given. |
| 1361 | if test "${with_modified_by+set}" = set; then |
| 1362 | withval="$with_modified_by" |
| 1363 | echo "$ac_t""$withval" 1>&6; cat >> confdefs.h <<EOF |
| 1364 | #define MODIFIED_BY "$withval" |
| 1365 | EOF |
| 1366 | |
| 1367 | else |
| 1368 | echo "$ac_t""no" 1>&6 |
| 1369 | fi |
| 1370 | |
| 1371 | |
| 1372 | echo $ac_n "checking if character set is EBCDIC""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1373 | echo "configure:1374: checking if character set is EBCDIC" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1374 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1375 | #line 1376 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1376 | #include "confdefs.h" |
| 1377 | |
| 1378 | int main() { |
| 1379 | /* TryCompile function for CharSet. |
| 1380 | Treat any failure as ASCII for compatibility with existing art. |
| 1381 | Use compile-time rather than run-time tests for cross-compiler |
| 1382 | tolerance. */ |
| 1383 | #if '0'!=240 |
| 1384 | make an error "Character set is not EBCDIC" |
| 1385 | #endif |
| 1386 | ; return 0; } |
| 1387 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1388 | if { (eval echo configure:1389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1389 | rm -rf conftest* |
| 1390 | # TryCompile action if true |
| 1391 | cf_cv_ebcdic=yes |
| 1392 | else |
| 1393 | echo "configure: failed program was:" >&5 |
| 1394 | cat conftest.$ac_ext >&5 |
| 1395 | rm -rf conftest* |
| 1396 | # TryCompile action if false |
| 1397 | cf_cv_ebcdic=no |
| 1398 | fi |
| 1399 | rm -f conftest* |
| 1400 | # end of TryCompile ]) |
| 1401 | # end of CacheVal CvEbcdic |
| 1402 | echo "$ac_t""$cf_cv_ebcdic" 1>&6 |
| 1403 | case "$cf_cv_ebcdic" in #(vi |
| 1404 | yes) cat >> confdefs.h <<\EOF |
| 1405 | #define EBCDIC 1 |
| 1406 | EOF |
| 1407 | |
| 1408 | line_break='"\\n"' |
| 1409 | ;; |
| 1410 | *) line_break='"\\012"';; |
| 1411 | esac |
| 1412 | |
| 1413 | |
| 1414 | if test "$cf_cv_ebcdic" = "yes"; then |
| 1415 | echo $ac_n "checking for OS/390 Unix""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1416 | echo "configure:1417: checking for OS/390 Unix" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1417 | case `uname` in |
| 1418 | OS/390) OS390Unix="yes"; |
| 1419 | if test "$CC" = "cc"; then |
| 1420 | ccm="$_CC_CCMODE" |
| 1421 | ccn="CC" |
| 1422 | else |
| 1423 | if test "$CC" = "c89"; then |
| 1424 | ccm="$_CC_C89MODE" |
| 1425 | ccn="C89" |
| 1426 | else |
| 1427 | ccm=1 |
| 1428 | fi |
| 1429 | fi |
| 1430 | if test "$ccm" != "1"; then |
| 1431 | echo "" |
| 1432 | echo "------------------------------------------" |
| 1433 | echo " On OS/390 Unix, the environment variable" |
| 1434 | echo " __CC_${ccn}MODE must be set to \"1\"!" |
| 1435 | echo " Do:" |
| 1436 | echo " export _CC_${ccn}MODE=1" |
| 1437 | echo " and then call configure again." |
| 1438 | echo "------------------------------------------" |
| 1439 | exit 1 |
| 1440 | fi |
| 1441 | CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" |
| 1442 | echo "$ac_t""yes" 1>&6 |
| 1443 | ;; |
| 1444 | *) OS390Unix="no"; |
| 1445 | echo "$ac_t""no" 1>&6 |
| 1446 | ;; |
| 1447 | esac |
| 1448 | fi |
| 1449 | |
| 1450 | |
| 1451 | |
| 1452 | echo $ac_n "checking --with-features argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1453 | echo "configure:1454: checking --with-features argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1454 | # Check whether --with-features or --without-features was given. |
| 1455 | if test "${with_features+set}" = set; then |
| 1456 | withval="$with_features" |
| 1457 | features="$withval"; echo "$ac_t""$features" 1>&6 |
| 1458 | else |
| 1459 | features="normal"; echo "$ac_t""Defaulting to normal" 1>&6 |
| 1460 | fi |
| 1461 | |
| 1462 | |
| 1463 | dovimdiff="" |
| 1464 | dogvimdiff="" |
| 1465 | case "$features" in |
| 1466 | tiny) cat >> confdefs.h <<\EOF |
| 1467 | #define FEAT_TINY 1 |
| 1468 | EOF |
| 1469 | ;; |
| 1470 | small) cat >> confdefs.h <<\EOF |
| 1471 | #define FEAT_SMALL 1 |
| 1472 | EOF |
| 1473 | ;; |
| 1474 | normal) cat >> confdefs.h <<\EOF |
| 1475 | #define FEAT_NORMAL 1 |
| 1476 | EOF |
| 1477 | dovimdiff="installvimdiff"; |
| 1478 | dogvimdiff="installgvimdiff" ;; |
| 1479 | big) cat >> confdefs.h <<\EOF |
| 1480 | #define FEAT_BIG 1 |
| 1481 | EOF |
| 1482 | dovimdiff="installvimdiff"; |
| 1483 | dogvimdiff="installgvimdiff" ;; |
| 1484 | huge) cat >> confdefs.h <<\EOF |
| 1485 | #define FEAT_HUGE 1 |
| 1486 | EOF |
| 1487 | dovimdiff="installvimdiff"; |
| 1488 | dogvimdiff="installgvimdiff" ;; |
| 1489 | *) echo "$ac_t""Sorry, $features is not supported" 1>&6 ;; |
| 1490 | esac |
| 1491 | |
| 1492 | |
| 1493 | |
| 1494 | |
| 1495 | echo $ac_n "checking --with-compiledby argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1496 | echo "configure:1497: checking --with-compiledby argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1497 | # Check whether --with-compiledby or --without-compiledby was given. |
| 1498 | if test "${with_compiledby+set}" = set; then |
| 1499 | withval="$with_compiledby" |
| 1500 | compiledby="$withval"; echo "$ac_t""$withval" 1>&6 |
| 1501 | else |
| 1502 | compiledby=""; echo "$ac_t""no" 1>&6 |
| 1503 | fi |
| 1504 | |
| 1505 | |
| 1506 | |
| 1507 | echo $ac_n "checking --disable-xsmp argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1508 | echo "configure:1509: checking --disable-xsmp argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1509 | # Check whether --enable-xsmp or --disable-xsmp was given. |
| 1510 | if test "${enable_xsmp+set}" = set; then |
| 1511 | enableval="$enable_xsmp" |
| 1512 | : |
| 1513 | else |
| 1514 | enable_xsmp="yes" |
| 1515 | fi |
| 1516 | |
| 1517 | |
| 1518 | if test "$enable_xsmp" = "yes"; then |
| 1519 | echo "$ac_t""no" 1>&6 |
| 1520 | echo $ac_n "checking --disable-xsmp-interact argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1521 | echo "configure:1522: checking --disable-xsmp-interact argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1522 | # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given. |
| 1523 | if test "${enable_xsmp_interact+set}" = set; then |
| 1524 | enableval="$enable_xsmp_interact" |
| 1525 | : |
| 1526 | else |
| 1527 | enable_xsmp_interact="yes" |
| 1528 | fi |
| 1529 | |
| 1530 | if test "$enable_xsmp_interact" = "yes"; then |
| 1531 | echo "$ac_t""no" 1>&6 |
| 1532 | cat >> confdefs.h <<\EOF |
| 1533 | #define USE_XSMP_INTERACT 1 |
| 1534 | EOF |
| 1535 | |
| 1536 | else |
| 1537 | echo "$ac_t""yes" 1>&6 |
| 1538 | fi |
| 1539 | else |
| 1540 | echo "$ac_t""yes" 1>&6 |
| 1541 | fi |
| 1542 | |
| 1543 | echo $ac_n "checking --enable-perlinterp argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1544 | echo "configure:1545: checking --enable-perlinterp argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1545 | # Check whether --enable-perlinterp or --disable-perlinterp was given. |
| 1546 | if test "${enable_perlinterp+set}" = set; then |
| 1547 | enableval="$enable_perlinterp" |
| 1548 | : |
| 1549 | else |
| 1550 | enable_perlinterp="no" |
| 1551 | fi |
| 1552 | |
| 1553 | echo "$ac_t""$enable_perlinterp" 1>&6 |
| 1554 | if test "$enable_perlinterp" = "yes"; then |
| 1555 | |
| 1556 | # Extract the first word of "perl", so it can be a program name with args. |
| 1557 | set dummy perl; ac_word=$2 |
| 1558 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1559 | echo "configure:1560: checking for $ac_word" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1560 | if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_perl'+set}'`\" = set"; then |
| 1561 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1562 | else |
| 1563 | case "$vi_cv_path_perl" in |
| 1564 | /*) |
| 1565 | ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. |
| 1566 | ;; |
| 1567 | ?:/*) |
| 1568 | ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a dos path. |
| 1569 | ;; |
| 1570 | *) |
| 1571 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1572 | ac_dummy="$PATH" |
| 1573 | for ac_dir in $ac_dummy; do |
| 1574 | test -z "$ac_dir" && ac_dir=. |
| 1575 | if test -f $ac_dir/$ac_word; then |
| 1576 | ac_cv_path_vi_cv_path_perl="$ac_dir/$ac_word" |
| 1577 | break |
| 1578 | fi |
| 1579 | done |
| 1580 | IFS="$ac_save_ifs" |
| 1581 | ;; |
| 1582 | esac |
| 1583 | fi |
| 1584 | vi_cv_path_perl="$ac_cv_path_vi_cv_path_perl" |
| 1585 | if test -n "$vi_cv_path_perl"; then |
| 1586 | echo "$ac_t""$vi_cv_path_perl" 1>&6 |
| 1587 | else |
| 1588 | echo "$ac_t""no" 1>&6 |
| 1589 | fi |
| 1590 | |
| 1591 | if test "X$vi_cv_path_perl" != "X"; then |
| 1592 | echo $ac_n "checking Perl version""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1593 | echo "configure:1594: checking Perl version" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1594 | if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then |
| 1595 | eval `$vi_cv_path_perl -V:usethreads` |
| 1596 | if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then |
| 1597 | badthreads=no |
| 1598 | else |
| 1599 | if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then |
| 1600 | eval `$vi_cv_path_perl -V:use5005threads` |
| 1601 | if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then |
| 1602 | badthreads=no |
| 1603 | else |
| 1604 | badthreads=yes |
| 1605 | echo "$ac_t"">>> Perl > 5.6 with 5.5 threads cannot be used <<<" 1>&6 |
| 1606 | fi |
| 1607 | else |
| 1608 | badthreads=yes |
| 1609 | echo "$ac_t"">>> Perl 5.5 with threads cannot be used <<<" 1>&6 |
| 1610 | fi |
| 1611 | fi |
| 1612 | if test $badthreads = no; then |
| 1613 | echo "$ac_t""OK" 1>&6 |
| 1614 | eval `$vi_cv_path_perl -V:shrpenv` |
| 1615 | if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 |
| 1616 | shrpenv="" |
| 1617 | fi |
| 1618 | vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` |
| 1619 | |
| 1620 | perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ |
| 1621 | -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` |
| 1622 | perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ |
| 1623 | sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ |
| 1624 | -e 's/-bE:perl.exp//' -e 's/-lc //'` |
| 1625 | perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ |
| 1626 | -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` |
| 1627 | |
| 1628 | echo $ac_n "checking if compile and link flags for Perl are sane""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1629 | echo "configure:1630: checking if compile and link flags for Perl are sane" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1630 | cflags_save=$CFLAGS |
| 1631 | libs_save=$LIBS |
| 1632 | ldflags_save=$LDFLAGS |
| 1633 | CFLAGS="$CFLAGS $perlcppflags" |
| 1634 | LIBS="$LIBS $perllibs" |
| 1635 | LDFLAGS="$perlldflags $LDFLAGS" |
| 1636 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1637 | #line 1638 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1638 | #include "confdefs.h" |
| 1639 | |
| 1640 | int main() { |
| 1641 | |
| 1642 | ; return 0; } |
| 1643 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1644 | if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1645 | rm -rf conftest* |
| 1646 | echo "$ac_t""yes" 1>&6; perl_ok=yes |
| 1647 | else |
| 1648 | echo "configure: failed program was:" >&5 |
| 1649 | cat conftest.$ac_ext >&5 |
| 1650 | rm -rf conftest* |
| 1651 | echo "$ac_t""no: PERL DISABLED" 1>&6; perl_ok=no |
| 1652 | fi |
| 1653 | rm -f conftest* |
| 1654 | CFLAGS=$cflags_save |
| 1655 | LIBS=$libs_save |
| 1656 | LDFLAGS=$ldflags_save |
| 1657 | if test $perl_ok = yes; then |
| 1658 | if test "X$perlcppflags" != "X"; then |
| 1659 | PERL_CFLAGS="$perlcppflags" |
| 1660 | fi |
| 1661 | if test "X$perlldflags" != "X"; then |
| 1662 | LDFLAGS="$perlldflags $LDFLAGS" |
| 1663 | fi |
| 1664 | PERL_LIBS=$perllibs |
| 1665 | PERL_SRC="auto/if_perl.c if_perlsfio.c" |
| 1666 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" |
| 1667 | PERL_PRO="if_perl.pro if_perlsfio.pro" |
| 1668 | cat >> confdefs.h <<\EOF |
| 1669 | #define FEAT_PERL 1 |
| 1670 | EOF |
| 1671 | |
| 1672 | fi |
| 1673 | fi |
| 1674 | else |
| 1675 | echo "$ac_t"">>> too old; need Perl version 5.003_01 or later <<<" 1>&6 |
| 1676 | fi |
| 1677 | fi |
| 1678 | |
| 1679 | if test "x$MACOSX" = "xyes"; then |
| 1680 | dir=/System/Library/Perl |
| 1681 | darwindir=$dir/darwin |
| 1682 | if test -d $darwindir; then |
| 1683 | PERL=/usr/bin/perl |
| 1684 | else |
| 1685 | dir=/System/Library/Perl/5.8.1 |
| 1686 | darwindir=$dir/darwin-thread-multi-2level |
| 1687 | if test -d $darwindir; then |
| 1688 | PERL=/usr/bin/perl |
| 1689 | fi |
| 1690 | fi |
| 1691 | if test -n "$PERL"; then |
| 1692 | PERL_DIR="$dir" |
| 1693 | PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" |
| 1694 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" |
| 1695 | PERL_LIBS="-L$darwindir/CORE -lperl" |
| 1696 | fi |
| 1697 | fi |
| 1698 | fi |
| 1699 | |
| 1700 | |
| 1701 | |
| 1702 | |
| 1703 | |
| 1704 | |
| 1705 | |
| 1706 | echo $ac_n "checking --enable-pythoninterp argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1707 | echo "configure:1708: checking --enable-pythoninterp argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1708 | # Check whether --enable-pythoninterp or --disable-pythoninterp was given. |
| 1709 | if test "${enable_pythoninterp+set}" = set; then |
| 1710 | enableval="$enable_pythoninterp" |
| 1711 | : |
| 1712 | else |
| 1713 | enable_pythoninterp="no" |
| 1714 | fi |
| 1715 | |
| 1716 | echo "$ac_t""$enable_pythoninterp" 1>&6 |
| 1717 | if test "$enable_pythoninterp" = "yes"; then |
| 1718 | # Extract the first word of "python", so it can be a program name with args. |
| 1719 | set dummy python; ac_word=$2 |
| 1720 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1721 | echo "configure:1722: checking for $ac_word" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1722 | if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_python'+set}'`\" = set"; then |
| 1723 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1724 | else |
| 1725 | case "$vi_cv_path_python" in |
| 1726 | /*) |
| 1727 | ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. |
| 1728 | ;; |
| 1729 | ?:/*) |
| 1730 | ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a dos path. |
| 1731 | ;; |
| 1732 | *) |
| 1733 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1734 | ac_dummy="$PATH" |
| 1735 | for ac_dir in $ac_dummy; do |
| 1736 | test -z "$ac_dir" && ac_dir=. |
| 1737 | if test -f $ac_dir/$ac_word; then |
| 1738 | ac_cv_path_vi_cv_path_python="$ac_dir/$ac_word" |
| 1739 | break |
| 1740 | fi |
| 1741 | done |
| 1742 | IFS="$ac_save_ifs" |
| 1743 | ;; |
| 1744 | esac |
| 1745 | fi |
| 1746 | vi_cv_path_python="$ac_cv_path_vi_cv_path_python" |
| 1747 | if test -n "$vi_cv_path_python"; then |
| 1748 | echo "$ac_t""$vi_cv_path_python" 1>&6 |
| 1749 | else |
| 1750 | echo "$ac_t""no" 1>&6 |
| 1751 | fi |
| 1752 | |
| 1753 | if test "X$vi_cv_path_python" != "X"; then |
| 1754 | |
| 1755 | echo $ac_n "checking Python version""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1756 | echo "configure:1757: checking Python version" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1757 | if eval "test \"`echo '$''{'vi_cv_var_python_version'+set}'`\" = set"; then |
| 1758 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1759 | else |
| 1760 | vi_cv_var_python_version=` |
| 1761 | ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` |
| 1762 | |
| 1763 | fi |
| 1764 | |
| 1765 | echo "$ac_t""$vi_cv_var_python_version" 1>&6 |
| 1766 | |
| 1767 | echo $ac_n "checking Python is 1.4 or better""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1768 | echo "configure:1769: checking Python is 1.4 or better" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1769 | if ${vi_cv_path_python} -c \ |
| 1770 | "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" |
| 1771 | then |
| 1772 | echo "$ac_t""yep" 1>&6 |
| 1773 | |
| 1774 | echo $ac_n "checking Python's install prefix""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1775 | echo "configure:1776: checking Python's install prefix" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1776 | if eval "test \"`echo '$''{'vi_cv_path_python_pfx'+set}'`\" = set"; then |
| 1777 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1778 | else |
| 1779 | vi_cv_path_python_pfx=` |
| 1780 | ${vi_cv_path_python} -c \ |
| 1781 | "import sys; print sys.prefix"` |
| 1782 | fi |
| 1783 | |
| 1784 | echo "$ac_t""$vi_cv_path_python_pfx" 1>&6 |
| 1785 | |
| 1786 | echo $ac_n "checking Python's execution prefix""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1787 | echo "configure:1788: checking Python's execution prefix" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1788 | if eval "test \"`echo '$''{'vi_cv_path_python_epfx'+set}'`\" = set"; then |
| 1789 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1790 | else |
| 1791 | vi_cv_path_python_epfx=` |
| 1792 | ${vi_cv_path_python} -c \ |
| 1793 | "import sys; print sys.exec_prefix"` |
| 1794 | fi |
| 1795 | |
| 1796 | echo "$ac_t""$vi_cv_path_python_epfx" 1>&6 |
| 1797 | |
| 1798 | |
| 1799 | if eval "test \"`echo '$''{'vi_cv_path_pythonpath'+set}'`\" = set"; then |
| 1800 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1801 | else |
| 1802 | vi_cv_path_pythonpath=` |
| 1803 | unset PYTHONPATH; |
| 1804 | ${vi_cv_path_python} -c \ |
| 1805 | "import sys, string; print string.join(sys.path,':')"` |
| 1806 | fi |
| 1807 | |
| 1808 | |
| 1809 | |
| 1810 | # Check whether --with-python-config-dir or --without-python-config-dir was given. |
| 1811 | if test "${with_python_config_dir+set}" = set; then |
| 1812 | withval="$with_python_config_dir" |
| 1813 | vi_cv_path_python_conf="${withval}" |
| 1814 | fi |
| 1815 | |
| 1816 | |
| 1817 | echo $ac_n "checking Python's configuration directory""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1818 | echo "configure:1819: checking Python's configuration directory" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1819 | if eval "test \"`echo '$''{'vi_cv_path_python_conf'+set}'`\" = set"; then |
| 1820 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1821 | else |
| 1822 | |
| 1823 | vi_cv_path_python_conf= |
| 1824 | for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do |
| 1825 | for subdir in lib share; do |
| 1826 | d="${path}/${subdir}/python${vi_cv_var_python_version}/config" |
| 1827 | if test -d "$d" && test -f "$d/config.c"; then |
| 1828 | vi_cv_path_python_conf="$d" |
| 1829 | fi |
| 1830 | done |
| 1831 | done |
| 1832 | |
| 1833 | fi |
| 1834 | |
| 1835 | echo "$ac_t""$vi_cv_path_python_conf" 1>&6 |
| 1836 | |
| 1837 | PYTHON_CONFDIR="${vi_cv_path_python_conf}" |
| 1838 | |
| 1839 | if test "X$PYTHON_CONFDIR" = "X"; then |
| 1840 | echo "$ac_t""can't find it!" 1>&6 |
| 1841 | else |
| 1842 | |
| 1843 | if eval "test \"`echo '$''{'vi_cv_path_python_plibs'+set}'`\" = set"; then |
| 1844 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1845 | else |
| 1846 | |
| 1847 | tmp_mkf="/tmp/Makefile-conf$$" |
| 1848 | cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf} |
| 1849 | __: |
| 1850 | @echo "python_MODLIBS='$(MODLIBS)'" |
| 1851 | @echo "python_LIBS='$(LIBS)'" |
| 1852 | @echo "python_SYSLIBS='$(SYSLIBS)'" |
| 1853 | @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" |
| 1854 | eof |
| 1855 | eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`" |
| 1856 | rm -f ${tmp_mkf} |
| 1857 | if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ |
| 1858 | "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then |
| 1859 | vi_cv_path_python_plibs="-framework Python" |
| 1860 | else |
| 1861 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 1862 | vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" |
| 1863 | else |
| 1864 | vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" |
| 1865 | fi |
| 1866 | vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" |
| 1867 | vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` |
| 1868 | fi |
| 1869 | |
| 1870 | fi |
| 1871 | |
| 1872 | |
| 1873 | PYTHON_LIBS="${vi_cv_path_python_plibs}" |
| 1874 | if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then |
| 1875 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" |
| 1876 | else |
| 1877 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}" |
| 1878 | fi |
| 1879 | PYTHON_SRC="if_python.c" |
| 1880 | if test "x$MACOSX" = "xyes"; then |
| 1881 | PYTHON_OBJ="objects/if_python.o" |
| 1882 | else |
| 1883 | PYTHON_OBJ="objects/if_python.o objects/py_config.o" |
| 1884 | fi |
| 1885 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 1886 | PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" |
| 1887 | fi |
| 1888 | PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" |
| 1889 | |
| 1890 | echo $ac_n "checking if -pthread should be used""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1891 | echo "configure:1892: checking if -pthread should be used" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1892 | threadsafe_flag= |
| 1893 | thread_lib= |
| 1894 | if test "x$MACOSX" != "xyes"; then |
| 1895 | test "$GCC" = yes && threadsafe_flag="-pthread" |
| 1896 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
| 1897 | threadsafe_flag="-D_THREAD_SAFE" |
| 1898 | thread_lib="-pthread" |
| 1899 | fi |
| 1900 | fi |
| 1901 | libs_save_old=$LIBS |
| 1902 | if test -n "$threadsafe_flag"; then |
| 1903 | cflags_save=$CFLAGS |
| 1904 | CFLAGS="$CFLAGS $threadsafe_flag" |
| 1905 | LIBS="$LIBS $thread_lib" |
| 1906 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1907 | #line 1908 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1908 | #include "confdefs.h" |
| 1909 | |
| 1910 | int main() { |
| 1911 | |
| 1912 | ; return 0; } |
| 1913 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1914 | if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1915 | rm -rf conftest* |
| 1916 | echo "$ac_t""yes" 1>&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" |
| 1917 | else |
| 1918 | echo "configure: failed program was:" >&5 |
| 1919 | cat conftest.$ac_ext >&5 |
| 1920 | rm -rf conftest* |
| 1921 | echo "$ac_t""no" 1>&6; LIBS=$libs_save_old |
| 1922 | |
| 1923 | fi |
| 1924 | rm -f conftest* |
| 1925 | CFLAGS=$cflags_save |
| 1926 | else |
| 1927 | echo "$ac_t""no" 1>&6 |
| 1928 | fi |
| 1929 | |
| 1930 | echo $ac_n "checking if compile and link flags for Python are sane""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1931 | echo "configure:1932: checking if compile and link flags for Python are sane" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1932 | cflags_save=$CFLAGS |
| 1933 | libs_save=$LIBS |
| 1934 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
| 1935 | LIBS="$LIBS $PYTHON_LIBS" |
| 1936 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1937 | #line 1938 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1938 | #include "confdefs.h" |
| 1939 | |
| 1940 | int main() { |
| 1941 | |
| 1942 | ; return 0; } |
| 1943 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1944 | if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1945 | rm -rf conftest* |
| 1946 | echo "$ac_t""yes" 1>&6; python_ok=yes |
| 1947 | else |
| 1948 | echo "configure: failed program was:" >&5 |
| 1949 | cat conftest.$ac_ext >&5 |
| 1950 | rm -rf conftest* |
| 1951 | echo "$ac_t""no: PYTHON DISABLED" 1>&6; python_ok=no |
| 1952 | fi |
| 1953 | rm -f conftest* |
| 1954 | CFLAGS=$cflags_save |
| 1955 | LIBS=$libs_save |
| 1956 | if test $python_ok = yes; then |
| 1957 | cat >> confdefs.h <<\EOF |
| 1958 | #define FEAT_PYTHON 1 |
| 1959 | EOF |
| 1960 | |
| 1961 | else |
| 1962 | LIBS=$libs_save_old |
| 1963 | PYTHON_SRC= |
| 1964 | PYTHON_OBJ= |
| 1965 | PYTHON_LIBS= |
| 1966 | PYTHON_CFLAGS= |
| 1967 | fi |
| 1968 | |
| 1969 | fi |
| 1970 | else |
| 1971 | echo "$ac_t""too old" 1>&6 |
| 1972 | fi |
| 1973 | fi |
| 1974 | fi |
| 1975 | |
| 1976 | |
| 1977 | |
| 1978 | |
| 1979 | |
| 1980 | |
| 1981 | |
| 1982 | echo $ac_n "checking --enable-tclinterp argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1983 | echo "configure:1984: checking --enable-tclinterp argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1984 | # Check whether --enable-tclinterp or --disable-tclinterp was given. |
| 1985 | if test "${enable_tclinterp+set}" = set; then |
| 1986 | enableval="$enable_tclinterp" |
| 1987 | : |
| 1988 | else |
| 1989 | enable_tclinterp="no" |
| 1990 | fi |
| 1991 | |
| 1992 | echo "$ac_t""$enable_tclinterp" 1>&6 |
| 1993 | |
| 1994 | if test "$enable_tclinterp" = "yes"; then |
| 1995 | |
| 1996 | echo $ac_n "checking --with-tclsh argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 1997 | echo "configure:1998: checking --with-tclsh argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1998 | # Check whether --with-tclsh or --without-tclsh was given. |
| 1999 | if test "${with_tclsh+set}" = set; then |
| 2000 | withval="$with_tclsh" |
| 2001 | tclsh_name="$withval"; echo "$ac_t""$tclsh_name" 1>&6 |
| 2002 | else |
| 2003 | tclsh_name="tclsh8.0"; echo "$ac_t""no" 1>&6 |
| 2004 | fi |
| 2005 | |
| 2006 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 2007 | set dummy $tclsh_name; ac_word=$2 |
| 2008 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2009 | echo "configure:2010: checking for $ac_word" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2010 | if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then |
| 2011 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2012 | else |
| 2013 | case "$vi_cv_path_tcl" in |
| 2014 | /*) |
| 2015 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 2016 | ;; |
| 2017 | ?:/*) |
| 2018 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path. |
| 2019 | ;; |
| 2020 | *) |
| 2021 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2022 | ac_dummy="$PATH" |
| 2023 | for ac_dir in $ac_dummy; do |
| 2024 | test -z "$ac_dir" && ac_dir=. |
| 2025 | if test -f $ac_dir/$ac_word; then |
| 2026 | ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word" |
| 2027 | break |
| 2028 | fi |
| 2029 | done |
| 2030 | IFS="$ac_save_ifs" |
| 2031 | ;; |
| 2032 | esac |
| 2033 | fi |
| 2034 | vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl" |
| 2035 | if test -n "$vi_cv_path_tcl"; then |
| 2036 | echo "$ac_t""$vi_cv_path_tcl" 1>&6 |
| 2037 | else |
| 2038 | echo "$ac_t""no" 1>&6 |
| 2039 | fi |
| 2040 | |
| 2041 | |
| 2042 | |
| 2043 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.0"; then |
| 2044 | tclsh_name="tclsh8.2" |
| 2045 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 2046 | set dummy $tclsh_name; ac_word=$2 |
| 2047 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2048 | echo "configure:2049: checking for $ac_word" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2049 | if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then |
| 2050 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2051 | else |
| 2052 | case "$vi_cv_path_tcl" in |
| 2053 | /*) |
| 2054 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 2055 | ;; |
| 2056 | ?:/*) |
| 2057 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path. |
| 2058 | ;; |
| 2059 | *) |
| 2060 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2061 | ac_dummy="$PATH" |
| 2062 | for ac_dir in $ac_dummy; do |
| 2063 | test -z "$ac_dir" && ac_dir=. |
| 2064 | if test -f $ac_dir/$ac_word; then |
| 2065 | ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word" |
| 2066 | break |
| 2067 | fi |
| 2068 | done |
| 2069 | IFS="$ac_save_ifs" |
| 2070 | ;; |
| 2071 | esac |
| 2072 | fi |
| 2073 | vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl" |
| 2074 | if test -n "$vi_cv_path_tcl"; then |
| 2075 | echo "$ac_t""$vi_cv_path_tcl" 1>&6 |
| 2076 | else |
| 2077 | echo "$ac_t""no" 1>&6 |
| 2078 | fi |
| 2079 | |
| 2080 | fi |
| 2081 | if test "X$vi_cv_path_tcl" = "X"; then |
| 2082 | tclsh_name="tclsh" |
| 2083 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 2084 | set dummy $tclsh_name; ac_word=$2 |
| 2085 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2086 | echo "configure:2087: checking for $ac_word" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2087 | if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then |
| 2088 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2089 | else |
| 2090 | case "$vi_cv_path_tcl" in |
| 2091 | /*) |
| 2092 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 2093 | ;; |
| 2094 | ?:/*) |
| 2095 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path. |
| 2096 | ;; |
| 2097 | *) |
| 2098 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2099 | ac_dummy="$PATH" |
| 2100 | for ac_dir in $ac_dummy; do |
| 2101 | test -z "$ac_dir" && ac_dir=. |
| 2102 | if test -f $ac_dir/$ac_word; then |
| 2103 | ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word" |
| 2104 | break |
| 2105 | fi |
| 2106 | done |
| 2107 | IFS="$ac_save_ifs" |
| 2108 | ;; |
| 2109 | esac |
| 2110 | fi |
| 2111 | vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl" |
| 2112 | if test -n "$vi_cv_path_tcl"; then |
| 2113 | echo "$ac_t""$vi_cv_path_tcl" 1>&6 |
| 2114 | else |
| 2115 | echo "$ac_t""no" 1>&6 |
| 2116 | fi |
| 2117 | |
| 2118 | fi |
| 2119 | if test "X$vi_cv_path_tcl" != "X"; then |
| 2120 | echo $ac_n "checking Tcl version""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2121 | echo "configure:2122: checking Tcl version" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2122 | if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then |
| 2123 | tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` |
| 2124 | echo "$ac_t""$tclver - OK" 1>&6; |
| 2125 | tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -` |
| 2126 | |
| 2127 | echo $ac_n "checking for location of Tcl include""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2128 | echo "configure:2129: checking for location of Tcl include" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2129 | if test "x$MACOSX" != "xyes"; then |
| 2130 | tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include" |
| 2131 | else |
| 2132 | tclinc="/System/Library/Frameworks/Tcl.framework/Headers" |
| 2133 | fi |
| 2134 | for try in $tclinc; do |
| 2135 | if test -f "$try/tcl.h"; then |
| 2136 | echo "$ac_t""$try/tcl.h" 1>&6 |
| 2137 | TCL_INC=$try |
| 2138 | break |
| 2139 | fi |
| 2140 | done |
| 2141 | if test -z "$TCL_INC"; then |
| 2142 | echo "$ac_t""<not found>" 1>&6 |
| 2143 | SKIP_TCL=YES |
| 2144 | fi |
| 2145 | if test -z "$SKIP_TCL"; then |
| 2146 | echo $ac_n "checking for location of tclConfig.sh script""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2147 | echo "configure:2148: checking for location of tclConfig.sh script" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2148 | if test "x$MACOSX" != "xyes"; then |
| 2149 | tclcnf=`echo $tclinc | sed s/include/lib/g` |
| 2150 | else |
| 2151 | tclcnf="/System/Library/Frameworks/Tcl.framework" |
| 2152 | fi |
| 2153 | for try in $tclcnf; do |
| 2154 | if test -f $try/tclConfig.sh; then |
| 2155 | echo "$ac_t""$try/tclConfig.sh" 1>&6 |
| 2156 | . $try/tclConfig.sh |
| 2157 | TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` |
| 2158 | TCL_DEFS=`echo $TCL_DEFS | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d '\012'` |
| 2159 | break |
| 2160 | fi |
| 2161 | done |
| 2162 | if test -z "$TCL_LIBS"; then |
| 2163 | echo "$ac_t""<not found>" 1>&6 |
| 2164 | echo $ac_n "checking for Tcl library by myself""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2165 | echo "configure:2166: checking for Tcl library by myself" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2166 | tcllib=`echo $tclinc | sed s/include/lib/g` |
| 2167 | for ext in .so .a ; do |
| 2168 | for ver in "" $tclver ; do |
| 2169 | for try in $tcllib ; do |
| 2170 | trylib=tcl$ver$ext |
| 2171 | if test -f $try/lib$trylib ; then |
| 2172 | echo "$ac_t""$try/lib$trylib" 1>&6 |
| 2173 | TCL_LIBS="-L$try -ltcl$ver -ldl -lm" |
| 2174 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 2175 | uname -r | grep '^5' >/dev/null; then |
| 2176 | TCL_LIBS="$TCL_LIBS -R $try" |
| 2177 | fi |
| 2178 | break 3 |
| 2179 | fi |
| 2180 | done |
| 2181 | done |
| 2182 | done |
| 2183 | if test -z "$TCL_LIBS"; then |
| 2184 | echo "$ac_t""<not found>" 1>&6 |
| 2185 | SKIP_TCL=YES |
| 2186 | fi |
| 2187 | fi |
| 2188 | if test -z "$SKIP_TCL"; then |
| 2189 | cat >> confdefs.h <<\EOF |
| 2190 | #define FEAT_TCL 1 |
| 2191 | EOF |
| 2192 | |
| 2193 | TCL_SRC=if_tcl.c |
| 2194 | TCL_OBJ=objects/if_tcl.o |
| 2195 | TCL_PRO=if_tcl.pro |
| 2196 | TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" |
| 2197 | fi |
| 2198 | fi |
| 2199 | else |
| 2200 | echo "$ac_t""too old; need Tcl version 8.0 or later" 1>&6 |
| 2201 | fi |
| 2202 | fi |
| 2203 | fi |
| 2204 | |
| 2205 | |
| 2206 | |
| 2207 | |
| 2208 | |
| 2209 | |
| 2210 | echo $ac_n "checking --enable-rubyinterp argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2211 | echo "configure:2212: checking --enable-rubyinterp argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2212 | # Check whether --enable-rubyinterp or --disable-rubyinterp was given. |
| 2213 | if test "${enable_rubyinterp+set}" = set; then |
| 2214 | enableval="$enable_rubyinterp" |
| 2215 | : |
| 2216 | else |
| 2217 | enable_rubyinterp="no" |
| 2218 | fi |
| 2219 | |
| 2220 | echo "$ac_t""$enable_rubyinterp" 1>&6 |
| 2221 | if test "$enable_rubyinterp" = "yes"; then |
| 2222 | |
| 2223 | # Extract the first word of "ruby", so it can be a program name with args. |
| 2224 | set dummy ruby; ac_word=$2 |
| 2225 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2226 | echo "configure:2227: checking for $ac_word" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2227 | if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_ruby'+set}'`\" = set"; then |
| 2228 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2229 | else |
| 2230 | case "$vi_cv_path_ruby" in |
| 2231 | /*) |
| 2232 | ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. |
| 2233 | ;; |
| 2234 | ?:/*) |
| 2235 | ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a dos path. |
| 2236 | ;; |
| 2237 | *) |
| 2238 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2239 | ac_dummy="$PATH" |
| 2240 | for ac_dir in $ac_dummy; do |
| 2241 | test -z "$ac_dir" && ac_dir=. |
| 2242 | if test -f $ac_dir/$ac_word; then |
| 2243 | ac_cv_path_vi_cv_path_ruby="$ac_dir/$ac_word" |
| 2244 | break |
| 2245 | fi |
| 2246 | done |
| 2247 | IFS="$ac_save_ifs" |
| 2248 | ;; |
| 2249 | esac |
| 2250 | fi |
| 2251 | vi_cv_path_ruby="$ac_cv_path_vi_cv_path_ruby" |
| 2252 | if test -n "$vi_cv_path_ruby"; then |
| 2253 | echo "$ac_t""$vi_cv_path_ruby" 1>&6 |
| 2254 | else |
| 2255 | echo "$ac_t""no" 1>&6 |
| 2256 | fi |
| 2257 | |
| 2258 | if test "X$vi_cv_path_ruby" != "X"; then |
| 2259 | echo $ac_n "checking Ruby version""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2260 | echo "configure:2261: checking Ruby version" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2261 | if $vi_cv_path_ruby -e 'VERSION >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then |
| 2262 | echo "$ac_t""OK" 1>&6 |
| 2263 | echo $ac_n "checking Ruby header files""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2264 | echo "configure:2265: checking Ruby header files" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2265 | rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` |
| 2266 | if test "X$rubyhdrdir" != "X"; then |
| 2267 | echo "$ac_t""$rubyhdrdir" 1>&6 |
| 2268 | RUBY_CFLAGS="-I$rubyhdrdir" |
| 2269 | rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` |
| 2270 | if test "X$rubylibs" != "X"; then |
| 2271 | RUBY_LIBS="$rubylibs" |
| 2272 | fi |
| 2273 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` |
| 2274 | if test -f "$rubyhdrdir/$librubyarg"; then |
| 2275 | librubyarg="$rubyhdrdir/$librubyarg" |
| 2276 | else |
| 2277 | rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` |
| 2278 | if test -f "$rubylibdir/$librubyarg"; then |
| 2279 | librubyarg="$rubylibdir/$librubyarg" |
| 2280 | elif test "$librubyarg" = "libruby.a"; then |
| 2281 | librubyarg="-lruby" |
| 2282 | else |
| 2283 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` |
| 2284 | fi |
| 2285 | fi |
| 2286 | |
| 2287 | if test "X$librubyarg" != "X"; then |
| 2288 | RUBY_LIBS="$librubyarg $RUBY_LIBS" |
| 2289 | fi |
| 2290 | rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` |
| 2291 | if test "X$rubyldflags" != "X"; then |
| 2292 | LDFLAGS="$rubyldflags $LDFLAGS" |
| 2293 | fi |
| 2294 | RUBY_SRC="if_ruby.c" |
| 2295 | RUBY_OBJ="objects/if_ruby.o" |
| 2296 | RUBY_PRO="if_ruby.pro" |
| 2297 | cat >> confdefs.h <<\EOF |
| 2298 | #define FEAT_RUBY 1 |
| 2299 | EOF |
| 2300 | |
| 2301 | else |
| 2302 | echo "$ac_t""not found" 1>&6 |
| 2303 | fi |
| 2304 | else |
| 2305 | echo "$ac_t""too old; need Ruby version 1.6.0 or later" 1>&6 |
| 2306 | fi |
| 2307 | fi |
| 2308 | fi |
| 2309 | |
| 2310 | |
| 2311 | |
| 2312 | |
| 2313 | |
| 2314 | |
| 2315 | echo $ac_n "checking --enable-cscope argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2316 | echo "configure:2317: checking --enable-cscope argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2317 | # Check whether --enable-cscope or --disable-cscope was given. |
| 2318 | if test "${enable_cscope+set}" = set; then |
| 2319 | enableval="$enable_cscope" |
| 2320 | : |
| 2321 | else |
| 2322 | enable_cscope="no" |
| 2323 | fi |
| 2324 | |
| 2325 | echo "$ac_t""$enable_cscope" 1>&6 |
| 2326 | if test "$enable_cscope" = "yes"; then |
| 2327 | cat >> confdefs.h <<\EOF |
| 2328 | #define FEAT_CSCOPE 1 |
| 2329 | EOF |
| 2330 | |
| 2331 | fi |
| 2332 | |
| 2333 | echo $ac_n "checking --enable-workshop argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2334 | echo "configure:2335: checking --enable-workshop argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2335 | # Check whether --enable-workshop or --disable-workshop was given. |
| 2336 | if test "${enable_workshop+set}" = set; then |
| 2337 | enableval="$enable_workshop" |
| 2338 | : |
| 2339 | else |
| 2340 | enable_workshop="no" |
| 2341 | fi |
| 2342 | |
| 2343 | echo "$ac_t""$enable_workshop" 1>&6 |
| 2344 | if test "$enable_workshop" = "yes"; then |
| 2345 | cat >> confdefs.h <<\EOF |
| 2346 | #define FEAT_SUN_WORKSHOP 1 |
| 2347 | EOF |
| 2348 | |
| 2349 | WORKSHOP_SRC="workshop.c integration.c" |
| 2350 | |
| 2351 | WORKSHOP_OBJ="objects/workshop.o objects/integration.o" |
| 2352 | |
| 2353 | if test "${enable_gui-xxx}" = xxx; then |
| 2354 | enable_gui=motif |
| 2355 | fi |
| 2356 | fi |
| 2357 | |
| 2358 | echo $ac_n "checking --disable-netbeans argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2359 | echo "configure:2360: checking --disable-netbeans argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2360 | # Check whether --enable-netbeans or --disable-netbeans was given. |
| 2361 | if test "${enable_netbeans+set}" = set; then |
| 2362 | enableval="$enable_netbeans" |
| 2363 | : |
| 2364 | else |
| 2365 | enable_netbeans="yes" |
| 2366 | fi |
| 2367 | |
| 2368 | if test "$enable_netbeans" = "yes"; then |
| 2369 | echo "$ac_t""no" 1>&6 |
| 2370 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2371 | echo "configure:2372: checking for socket in -lsocket" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2372 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
| 2373 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2374 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2375 | else |
| 2376 | ac_save_LIBS="$LIBS" |
| 2377 | LIBS="-lsocket $LIBS" |
| 2378 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2379 | #line 2380 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2380 | #include "confdefs.h" |
| 2381 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2382 | /* We use char because int might match the return type of a gcc2 |
| 2383 | builtin and then its argument prototype would still apply. */ |
| 2384 | char socket(); |
| 2385 | |
| 2386 | int main() { |
| 2387 | socket() |
| 2388 | ; return 0; } |
| 2389 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2390 | if { (eval echo configure:2391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2391 | rm -rf conftest* |
| 2392 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2393 | else |
| 2394 | echo "configure: failed program was:" >&5 |
| 2395 | cat conftest.$ac_ext >&5 |
| 2396 | rm -rf conftest* |
| 2397 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2398 | fi |
| 2399 | rm -f conftest* |
| 2400 | LIBS="$ac_save_LIBS" |
| 2401 | |
| 2402 | fi |
| 2403 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2404 | echo "$ac_t""yes" 1>&6 |
| 2405 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2406 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2407 | cat >> confdefs.h <<EOF |
| 2408 | #define $ac_tr_lib 1 |
| 2409 | EOF |
| 2410 | |
| 2411 | LIBS="-lsocket $LIBS" |
| 2412 | |
| 2413 | else |
| 2414 | echo "$ac_t""no" 1>&6 |
| 2415 | fi |
| 2416 | |
| 2417 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2418 | echo "configure:2419: checking for gethostbyname in -lnsl" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2419 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
| 2420 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2421 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2422 | else |
| 2423 | ac_save_LIBS="$LIBS" |
| 2424 | LIBS="-lnsl $LIBS" |
| 2425 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2426 | #line 2427 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2427 | #include "confdefs.h" |
| 2428 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2429 | /* We use char because int might match the return type of a gcc2 |
| 2430 | builtin and then its argument prototype would still apply. */ |
| 2431 | char gethostbyname(); |
| 2432 | |
| 2433 | int main() { |
| 2434 | gethostbyname() |
| 2435 | ; return 0; } |
| 2436 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2437 | if { (eval echo configure:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2438 | rm -rf conftest* |
| 2439 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2440 | else |
| 2441 | echo "configure: failed program was:" >&5 |
| 2442 | cat conftest.$ac_ext >&5 |
| 2443 | rm -rf conftest* |
| 2444 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2445 | fi |
| 2446 | rm -f conftest* |
| 2447 | LIBS="$ac_save_LIBS" |
| 2448 | |
| 2449 | fi |
| 2450 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2451 | echo "$ac_t""yes" 1>&6 |
| 2452 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2453 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2454 | cat >> confdefs.h <<EOF |
| 2455 | #define $ac_tr_lib 1 |
| 2456 | EOF |
| 2457 | |
| 2458 | LIBS="-lnsl $LIBS" |
| 2459 | |
| 2460 | else |
| 2461 | echo "$ac_t""no" 1>&6 |
| 2462 | fi |
| 2463 | |
| 2464 | echo $ac_n "checking whether compiling netbeans integration is possible""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2465 | echo "configure:2466: checking whether compiling netbeans integration is possible" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2466 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2467 | #line 2468 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2468 | #include "confdefs.h" |
| 2469 | |
| 2470 | #include <stdio.h> |
| 2471 | #include <stdlib.h> |
| 2472 | #include <stdarg.h> |
| 2473 | #include <fcntl.h> |
| 2474 | #include <netdb.h> |
| 2475 | #include <netinet/in.h> |
| 2476 | #include <errno.h> |
| 2477 | #include <sys/types.h> |
| 2478 | #include <sys/socket.h> |
| 2479 | /* Check bitfields */ |
| 2480 | struct nbbuf { |
| 2481 | unsigned int initDone:1; |
| 2482 | ushort signmaplen; |
| 2483 | }; |
| 2484 | |
| 2485 | int main() { |
| 2486 | |
| 2487 | /* Check creating a socket. */ |
| 2488 | struct sockaddr_in server; |
| 2489 | (void)socket(AF_INET, SOCK_STREAM, 0); |
| 2490 | (void)htons(100); |
| 2491 | (void)gethostbyname("microsoft.com"); |
| 2492 | if (errno == ECONNREFUSED) |
| 2493 | (void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
| 2494 | |
| 2495 | ; return 0; } |
| 2496 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2497 | if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2498 | rm -rf conftest* |
| 2499 | echo "$ac_t""yes" 1>&6 |
| 2500 | else |
| 2501 | echo "configure: failed program was:" >&5 |
| 2502 | cat conftest.$ac_ext >&5 |
| 2503 | rm -rf conftest* |
| 2504 | echo "$ac_t""no" 1>&6; enable_netbeans="no" |
| 2505 | fi |
| 2506 | rm -f conftest* |
| 2507 | else |
| 2508 | echo "$ac_t""yes" 1>&6 |
| 2509 | fi |
| 2510 | if test "$enable_netbeans" = "yes"; then |
| 2511 | cat >> confdefs.h <<\EOF |
| 2512 | #define FEAT_NETBEANS_INTG 1 |
| 2513 | EOF |
| 2514 | |
| 2515 | NETBEANS_SRC="netbeans.c" |
| 2516 | |
| 2517 | NETBEANS_OBJ="objects/netbeans.o" |
| 2518 | |
| 2519 | fi |
| 2520 | |
| 2521 | echo $ac_n "checking --enable-sniff argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2522 | echo "configure:2523: checking --enable-sniff argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2523 | # Check whether --enable-sniff or --disable-sniff was given. |
| 2524 | if test "${enable_sniff+set}" = set; then |
| 2525 | enableval="$enable_sniff" |
| 2526 | : |
| 2527 | else |
| 2528 | enable_sniff="no" |
| 2529 | fi |
| 2530 | |
| 2531 | echo "$ac_t""$enable_sniff" 1>&6 |
| 2532 | if test "$enable_sniff" = "yes"; then |
| 2533 | cat >> confdefs.h <<\EOF |
| 2534 | #define FEAT_SNIFF 1 |
| 2535 | EOF |
| 2536 | |
| 2537 | SNIFF_SRC="if_sniff.c" |
| 2538 | |
| 2539 | SNIFF_OBJ="objects/if_sniff.o" |
| 2540 | |
| 2541 | fi |
| 2542 | |
| 2543 | echo $ac_n "checking --enable-multibyte argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2544 | echo "configure:2545: checking --enable-multibyte argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2545 | # Check whether --enable-multibyte or --disable-multibyte was given. |
| 2546 | if test "${enable_multibyte+set}" = set; then |
| 2547 | enableval="$enable_multibyte" |
| 2548 | : |
| 2549 | else |
| 2550 | enable_multibyte="no" |
| 2551 | fi |
| 2552 | |
| 2553 | echo "$ac_t""$enable_multibyte" 1>&6 |
| 2554 | if test "$enable_multibyte" = "yes"; then |
| 2555 | cat >> confdefs.h <<\EOF |
| 2556 | #define FEAT_MBYTE 1 |
| 2557 | EOF |
| 2558 | |
| 2559 | fi |
| 2560 | |
| 2561 | echo $ac_n "checking --enable-hangulinput argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2562 | echo "configure:2563: checking --enable-hangulinput argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2563 | # Check whether --enable-hangulinput or --disable-hangulinput was given. |
| 2564 | if test "${enable_hangulinput+set}" = set; then |
| 2565 | enableval="$enable_hangulinput" |
| 2566 | : |
| 2567 | else |
| 2568 | enable_hangulinput="no" |
| 2569 | fi |
| 2570 | |
| 2571 | echo "$ac_t""$enable_hangulinput" 1>&6 |
| 2572 | |
| 2573 | echo $ac_n "checking --enable-xim argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2574 | echo "configure:2575: checking --enable-xim argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2575 | # Check whether --enable-xim or --disable-xim was given. |
| 2576 | if test "${enable_xim+set}" = set; then |
| 2577 | enableval="$enable_xim" |
| 2578 | echo "$ac_t""$enable_xim" 1>&6 |
| 2579 | else |
| 2580 | enable_xim="auto"; echo "$ac_t""defaulting to auto" 1>&6 |
| 2581 | fi |
| 2582 | |
| 2583 | |
| 2584 | echo $ac_n "checking --enable-fontset argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2585 | echo "configure:2586: checking --enable-fontset argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2586 | # Check whether --enable-fontset or --disable-fontset was given. |
| 2587 | if test "${enable_fontset+set}" = set; then |
| 2588 | enableval="$enable_fontset" |
| 2589 | : |
| 2590 | else |
| 2591 | enable_fontset="no" |
| 2592 | fi |
| 2593 | |
| 2594 | echo "$ac_t""$enable_fontset" 1>&6 |
| 2595 | |
| 2596 | test -z "$with_x" && with_x=yes |
| 2597 | test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes |
| 2598 | if test "$with_x" = no; then |
| 2599 | echo "$ac_t""defaulting to: don't HAVE_X11" 1>&6 |
| 2600 | else |
| 2601 | |
| 2602 | # Extract the first word of "xmkmf", so it can be a program name with args. |
| 2603 | set dummy xmkmf; ac_word=$2 |
| 2604 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2605 | echo "configure:2606: checking for $ac_word" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2606 | if eval "test \"`echo '$''{'ac_cv_path_xmkmfpath'+set}'`\" = set"; then |
| 2607 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2608 | else |
| 2609 | case "$xmkmfpath" in |
| 2610 | /*) |
| 2611 | ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. |
| 2612 | ;; |
| 2613 | ?:/*) |
| 2614 | ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a dos path. |
| 2615 | ;; |
| 2616 | *) |
| 2617 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2618 | ac_dummy="$PATH" |
| 2619 | for ac_dir in $ac_dummy; do |
| 2620 | test -z "$ac_dir" && ac_dir=. |
| 2621 | if test -f $ac_dir/$ac_word; then |
| 2622 | ac_cv_path_xmkmfpath="$ac_dir/$ac_word" |
| 2623 | break |
| 2624 | fi |
| 2625 | done |
| 2626 | IFS="$ac_save_ifs" |
| 2627 | ;; |
| 2628 | esac |
| 2629 | fi |
| 2630 | xmkmfpath="$ac_cv_path_xmkmfpath" |
| 2631 | if test -n "$xmkmfpath"; then |
| 2632 | echo "$ac_t""$xmkmfpath" 1>&6 |
| 2633 | else |
| 2634 | echo "$ac_t""no" 1>&6 |
| 2635 | fi |
| 2636 | |
| 2637 | |
| 2638 | # If we find X, set shell vars x_includes and x_libraries to the |
| 2639 | # paths, otherwise set no_x=yes. |
| 2640 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
| 2641 | # --without-x overrides everything else, but does not touch the cache. |
| 2642 | echo $ac_n "checking for X""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2643 | echo "configure:2644: checking for X" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2644 | |
| 2645 | # Check whether --with-x or --without-x was given. |
| 2646 | if test "${with_x+set}" = set; then |
| 2647 | withval="$with_x" |
| 2648 | : |
| 2649 | fi |
| 2650 | |
| 2651 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 2652 | if test "x$with_x" = xno; then |
| 2653 | # The user explicitly disabled X. |
| 2654 | have_x=disabled |
| 2655 | else |
| 2656 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 2657 | # Both variables are already set. |
| 2658 | have_x=yes |
| 2659 | else |
| 2660 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
| 2661 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2662 | else |
| 2663 | # One or both of the vars are not set, and there is no cached value. |
| 2664 | ac_x_includes=NO ac_x_libraries=NO |
| 2665 | rm -fr conftestdir |
| 2666 | if mkdir conftestdir; then |
| 2667 | cd conftestdir |
| 2668 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 2669 | cat > Imakefile <<'EOF' |
| 2670 | acfindx: |
| 2671 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 2672 | EOF |
| 2673 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 2674 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 2675 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 2676 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 2677 | for ac_extension in a so sl; do |
| 2678 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 2679 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 2680 | ac_im_usrlibdir=$ac_im_libdir; break |
| 2681 | fi |
| 2682 | done |
| 2683 | # Screen out bogus values from the imake configuration. They are |
| 2684 | # bogus both because they are the default anyway, and because |
| 2685 | # using them would break gcc on systems where it needs fixed includes. |
| 2686 | case "$ac_im_incroot" in |
| 2687 | /usr/include) ;; |
| 2688 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
| 2689 | esac |
| 2690 | case "$ac_im_usrlibdir" in |
| 2691 | /usr/lib | /lib) ;; |
| 2692 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
| 2693 | esac |
| 2694 | fi |
| 2695 | cd .. |
| 2696 | rm -fr conftestdir |
| 2697 | fi |
| 2698 | |
| 2699 | if test "$ac_x_includes" = NO; then |
| 2700 | # Guess where to find include files, by looking for this one X11 .h file. |
| 2701 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
| 2702 | |
| 2703 | # First, try using that file with no special directory specified. |
| 2704 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2705 | #line 2706 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2706 | #include "confdefs.h" |
| 2707 | #include <$x_direct_test_include> |
| 2708 | EOF |
| 2709 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2710 | { (eval echo configure:2711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2711 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2712 | if test -z "$ac_err"; then |
| 2713 | rm -rf conftest* |
| 2714 | # We can compile using X headers with no special include directory. |
| 2715 | ac_x_includes= |
| 2716 | else |
| 2717 | echo "$ac_err" >&5 |
| 2718 | echo "configure: failed program was:" >&5 |
| 2719 | cat conftest.$ac_ext >&5 |
| 2720 | rm -rf conftest* |
| 2721 | # Look for the header file in a standard set of common directories. |
| 2722 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 2723 | for ac_dir in \ |
| 2724 | /usr/X11/include \ |
| 2725 | /usr/X11R6/include \ |
| 2726 | /usr/X11R5/include \ |
| 2727 | /usr/X11R4/include \ |
| 2728 | \ |
| 2729 | /usr/include/X11 \ |
| 2730 | /usr/include/X11R6 \ |
| 2731 | /usr/include/X11R5 \ |
| 2732 | /usr/include/X11R4 \ |
| 2733 | \ |
| 2734 | /usr/local/X11/include \ |
| 2735 | /usr/local/X11R6/include \ |
| 2736 | /usr/local/X11R5/include \ |
| 2737 | /usr/local/X11R4/include \ |
| 2738 | \ |
| 2739 | /usr/local/include/X11 \ |
| 2740 | /usr/local/include/X11R6 \ |
| 2741 | /usr/local/include/X11R5 \ |
| 2742 | /usr/local/include/X11R4 \ |
| 2743 | \ |
| 2744 | /usr/X386/include \ |
| 2745 | /usr/x386/include \ |
| 2746 | /usr/XFree86/include/X11 \ |
| 2747 | \ |
| 2748 | /usr/include \ |
| 2749 | /usr/local/include \ |
| 2750 | /usr/unsupported/include \ |
| 2751 | /usr/athena/include \ |
| 2752 | /usr/local/x11r5/include \ |
| 2753 | /usr/lpp/Xamples/include \ |
| 2754 | \ |
| 2755 | /usr/openwin/include \ |
| 2756 | /usr/openwin/share/include \ |
| 2757 | ; \ |
| 2758 | do |
| 2759 | if test -r "$ac_dir/$x_direct_test_include"; then |
| 2760 | ac_x_includes=$ac_dir |
| 2761 | break |
| 2762 | fi |
| 2763 | done |
| 2764 | fi |
| 2765 | rm -f conftest* |
| 2766 | fi # $ac_x_includes = NO |
| 2767 | |
| 2768 | if test "$ac_x_libraries" = NO; then |
| 2769 | # Check for the libraries. |
| 2770 | |
| 2771 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
| 2772 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
| 2773 | |
| 2774 | # See if we find them without any special options. |
| 2775 | # Don't add to $LIBS permanently. |
| 2776 | ac_save_LIBS="$LIBS" |
| 2777 | LIBS="-l$x_direct_test_library $LIBS" |
| 2778 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2779 | #line 2780 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2780 | #include "confdefs.h" |
| 2781 | |
| 2782 | int main() { |
| 2783 | ${x_direct_test_function}() |
| 2784 | ; return 0; } |
| 2785 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2786 | if { (eval echo configure:2787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2787 | rm -rf conftest* |
| 2788 | LIBS="$ac_save_LIBS" |
| 2789 | # We can link X programs with no special library path. |
| 2790 | ac_x_libraries= |
| 2791 | else |
| 2792 | echo "configure: failed program was:" >&5 |
| 2793 | cat conftest.$ac_ext >&5 |
| 2794 | rm -rf conftest* |
| 2795 | LIBS="$ac_save_LIBS" |
| 2796 | # First see if replacing the include by lib works. |
| 2797 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 2798 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
| 2799 | /usr/X11/lib \ |
| 2800 | /usr/X11R6/lib \ |
| 2801 | /usr/X11R5/lib \ |
| 2802 | /usr/X11R4/lib \ |
| 2803 | \ |
| 2804 | /usr/lib/X11 \ |
| 2805 | /usr/lib/X11R6 \ |
| 2806 | /usr/lib/X11R5 \ |
| 2807 | /usr/lib/X11R4 \ |
| 2808 | \ |
| 2809 | /usr/local/X11/lib \ |
| 2810 | /usr/local/X11R6/lib \ |
| 2811 | /usr/local/X11R5/lib \ |
| 2812 | /usr/local/X11R4/lib \ |
| 2813 | \ |
| 2814 | /usr/local/lib/X11 \ |
| 2815 | /usr/local/lib/X11R6 \ |
| 2816 | /usr/local/lib/X11R5 \ |
| 2817 | /usr/local/lib/X11R4 \ |
| 2818 | \ |
| 2819 | /usr/X386/lib \ |
| 2820 | /usr/x386/lib \ |
| 2821 | /usr/XFree86/lib/X11 \ |
| 2822 | \ |
| 2823 | /usr/lib \ |
| 2824 | /usr/local/lib \ |
| 2825 | /usr/unsupported/lib \ |
| 2826 | /usr/athena/lib \ |
| 2827 | /usr/local/x11r5/lib \ |
| 2828 | /usr/lpp/Xamples/lib \ |
| 2829 | /lib/usr/lib/X11 \ |
| 2830 | \ |
| 2831 | /usr/openwin/lib \ |
| 2832 | /usr/openwin/share/lib \ |
| 2833 | ; \ |
| 2834 | do |
| 2835 | for ac_extension in a so sl; do |
| 2836 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
| 2837 | ac_x_libraries=$ac_dir |
| 2838 | break 2 |
| 2839 | fi |
| 2840 | done |
| 2841 | done |
| 2842 | fi |
| 2843 | rm -f conftest* |
| 2844 | fi # $ac_x_libraries = NO |
| 2845 | |
| 2846 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
| 2847 | # Didn't find X anywhere. Cache the known absence of X. |
| 2848 | ac_cv_have_x="have_x=no" |
| 2849 | else |
| 2850 | # Record where we found X for the cache. |
| 2851 | ac_cv_have_x="have_x=yes \ |
| 2852 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
| 2853 | fi |
| 2854 | fi |
| 2855 | fi |
| 2856 | eval "$ac_cv_have_x" |
| 2857 | fi # $with_x != no |
| 2858 | |
| 2859 | if test "$have_x" != yes; then |
| 2860 | echo "$ac_t""$have_x" 1>&6 |
| 2861 | no_x=yes |
| 2862 | else |
| 2863 | # If each of the values was on the command line, it overrides each guess. |
| 2864 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 2865 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 2866 | # Update the cache value to reflect the command line values. |
| 2867 | ac_cv_have_x="have_x=yes \ |
| 2868 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
| 2869 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
| 2870 | fi |
| 2871 | |
| 2872 | if test "$no_x" = yes; then |
| 2873 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 2874 | cat >> confdefs.h <<\EOF |
| 2875 | #define X_DISPLAY_MISSING 1 |
| 2876 | EOF |
| 2877 | |
| 2878 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 2879 | else |
| 2880 | if test -n "$x_includes"; then |
| 2881 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 2882 | fi |
| 2883 | |
| 2884 | # It would also be nice to do this for all -L options, not just this one. |
| 2885 | if test -n "$x_libraries"; then |
| 2886 | X_LIBS="$X_LIBS -L$x_libraries" |
| 2887 | # For Solaris; some versions of Sun CC require a space after -R and |
| 2888 | # others require no space. Words are not sufficient . . . . |
| 2889 | case "`(uname -sr) 2>/dev/null`" in |
| 2890 | "SunOS 5"*) |
| 2891 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2892 | echo "configure:2893: checking whether -R must be followed by a space" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2893 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
| 2894 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2895 | #line 2896 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2896 | #include "confdefs.h" |
| 2897 | |
| 2898 | int main() { |
| 2899 | |
| 2900 | ; return 0; } |
| 2901 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2902 | if { (eval echo configure:2903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2903 | rm -rf conftest* |
| 2904 | ac_R_nospace=yes |
| 2905 | else |
| 2906 | echo "configure: failed program was:" >&5 |
| 2907 | cat conftest.$ac_ext >&5 |
| 2908 | rm -rf conftest* |
| 2909 | ac_R_nospace=no |
| 2910 | fi |
| 2911 | rm -f conftest* |
| 2912 | if test $ac_R_nospace = yes; then |
| 2913 | echo "$ac_t""no" 1>&6 |
| 2914 | X_LIBS="$X_LIBS -R$x_libraries" |
| 2915 | else |
| 2916 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 2917 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2918 | #line 2919 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2919 | #include "confdefs.h" |
| 2920 | |
| 2921 | int main() { |
| 2922 | |
| 2923 | ; return 0; } |
| 2924 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2925 | if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2926 | rm -rf conftest* |
| 2927 | ac_R_space=yes |
| 2928 | else |
| 2929 | echo "configure: failed program was:" >&5 |
| 2930 | cat conftest.$ac_ext >&5 |
| 2931 | rm -rf conftest* |
| 2932 | ac_R_space=no |
| 2933 | fi |
| 2934 | rm -f conftest* |
| 2935 | if test $ac_R_space = yes; then |
| 2936 | echo "$ac_t""yes" 1>&6 |
| 2937 | X_LIBS="$X_LIBS -R $x_libraries" |
| 2938 | else |
| 2939 | echo "$ac_t""neither works" 1>&6 |
| 2940 | fi |
| 2941 | fi |
| 2942 | LIBS="$ac_xsave_LIBS" |
| 2943 | esac |
| 2944 | fi |
| 2945 | |
| 2946 | # Check for system-dependent libraries X programs must link with. |
| 2947 | # Do this before checking for the system-independent R6 libraries |
| 2948 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 2949 | |
| 2950 | if test "$ISC" = yes; then |
| 2951 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 2952 | else |
| 2953 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
| 2954 | # libraries were built with DECnet support. And karl@cs.umb.edu says |
| 2955 | # the Alpha needs dnet_stub (dnet does not exist). |
| 2956 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2957 | echo "configure:2958: checking for dnet_ntoa in -ldnet" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2958 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
| 2959 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2960 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2961 | else |
| 2962 | ac_save_LIBS="$LIBS" |
| 2963 | LIBS="-ldnet $LIBS" |
| 2964 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2965 | #line 2966 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2966 | #include "confdefs.h" |
| 2967 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2968 | /* We use char because int might match the return type of a gcc2 |
| 2969 | builtin and then its argument prototype would still apply. */ |
| 2970 | char dnet_ntoa(); |
| 2971 | |
| 2972 | int main() { |
| 2973 | dnet_ntoa() |
| 2974 | ; return 0; } |
| 2975 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2976 | if { (eval echo configure:2977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2977 | rm -rf conftest* |
| 2978 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2979 | else |
| 2980 | echo "configure: failed program was:" >&5 |
| 2981 | cat conftest.$ac_ext >&5 |
| 2982 | rm -rf conftest* |
| 2983 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2984 | fi |
| 2985 | rm -f conftest* |
| 2986 | LIBS="$ac_save_LIBS" |
| 2987 | |
| 2988 | fi |
| 2989 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2990 | echo "$ac_t""yes" 1>&6 |
| 2991 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 2992 | else |
| 2993 | echo "$ac_t""no" 1>&6 |
| 2994 | fi |
| 2995 | |
| 2996 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| 2997 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 2998 | echo "configure:2999: checking for dnet_ntoa in -ldnet_stub" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2999 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
| 3000 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3001 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3002 | else |
| 3003 | ac_save_LIBS="$LIBS" |
| 3004 | LIBS="-ldnet_stub $LIBS" |
| 3005 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3006 | #line 3007 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3007 | #include "confdefs.h" |
| 3008 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3009 | /* We use char because int might match the return type of a gcc2 |
| 3010 | builtin and then its argument prototype would still apply. */ |
| 3011 | char dnet_ntoa(); |
| 3012 | |
| 3013 | int main() { |
| 3014 | dnet_ntoa() |
| 3015 | ; return 0; } |
| 3016 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3017 | if { (eval echo configure:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3018 | rm -rf conftest* |
| 3019 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3020 | else |
| 3021 | echo "configure: failed program was:" >&5 |
| 3022 | cat conftest.$ac_ext >&5 |
| 3023 | rm -rf conftest* |
| 3024 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3025 | fi |
| 3026 | rm -f conftest* |
| 3027 | LIBS="$ac_save_LIBS" |
| 3028 | |
| 3029 | fi |
| 3030 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3031 | echo "$ac_t""yes" 1>&6 |
| 3032 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 3033 | else |
| 3034 | echo "$ac_t""no" 1>&6 |
| 3035 | fi |
| 3036 | |
| 3037 | fi |
| 3038 | |
| 3039 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 3040 | # to get the SysV transport functions. |
| 3041 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 3042 | # needs -lnsl. |
| 3043 | # The nsl library prevents programs from opening the X display |
| 3044 | # on Irix 5.2, according to dickey@clark.net. |
| 3045 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3046 | echo "configure:3047: checking for gethostbyname" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3047 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
| 3048 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3049 | else |
| 3050 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3051 | #line 3052 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3052 | #include "confdefs.h" |
| 3053 | /* System header to define __stub macros and hopefully few prototypes, |
| 3054 | which can conflict with char gethostbyname(); below. */ |
| 3055 | #include <assert.h> |
| 3056 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3057 | /* We use char because int might match the return type of a gcc2 |
| 3058 | builtin and then its argument prototype would still apply. */ |
| 3059 | char gethostbyname(); |
| 3060 | |
| 3061 | int main() { |
| 3062 | |
| 3063 | /* The GNU C library defines this for functions which it implements |
| 3064 | to always fail with ENOSYS. Some functions are actually named |
| 3065 | something starting with __ and the normal name is an alias. */ |
| 3066 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 3067 | choke me |
| 3068 | #else |
| 3069 | gethostbyname(); |
| 3070 | #endif |
| 3071 | |
| 3072 | ; return 0; } |
| 3073 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3074 | if { (eval echo configure:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3075 | rm -rf conftest* |
| 3076 | eval "ac_cv_func_gethostbyname=yes" |
| 3077 | else |
| 3078 | echo "configure: failed program was:" >&5 |
| 3079 | cat conftest.$ac_ext >&5 |
| 3080 | rm -rf conftest* |
| 3081 | eval "ac_cv_func_gethostbyname=no" |
| 3082 | fi |
| 3083 | rm -f conftest* |
| 3084 | fi |
| 3085 | |
| 3086 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
| 3087 | echo "$ac_t""yes" 1>&6 |
| 3088 | : |
| 3089 | else |
| 3090 | echo "$ac_t""no" 1>&6 |
| 3091 | fi |
| 3092 | |
| 3093 | if test $ac_cv_func_gethostbyname = no; then |
| 3094 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3095 | echo "configure:3096: checking for gethostbyname in -lnsl" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3096 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
| 3097 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3098 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3099 | else |
| 3100 | ac_save_LIBS="$LIBS" |
| 3101 | LIBS="-lnsl $LIBS" |
| 3102 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3103 | #line 3104 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3104 | #include "confdefs.h" |
| 3105 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3106 | /* We use char because int might match the return type of a gcc2 |
| 3107 | builtin and then its argument prototype would still apply. */ |
| 3108 | char gethostbyname(); |
| 3109 | |
| 3110 | int main() { |
| 3111 | gethostbyname() |
| 3112 | ; return 0; } |
| 3113 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3114 | if { (eval echo configure:3115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3115 | rm -rf conftest* |
| 3116 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3117 | else |
| 3118 | echo "configure: failed program was:" >&5 |
| 3119 | cat conftest.$ac_ext >&5 |
| 3120 | rm -rf conftest* |
| 3121 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3122 | fi |
| 3123 | rm -f conftest* |
| 3124 | LIBS="$ac_save_LIBS" |
| 3125 | |
| 3126 | fi |
| 3127 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3128 | echo "$ac_t""yes" 1>&6 |
| 3129 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 3130 | else |
| 3131 | echo "$ac_t""no" 1>&6 |
| 3132 | fi |
| 3133 | |
| 3134 | fi |
| 3135 | |
| 3136 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 3137 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 3138 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 3139 | # on later versions), says simon@lia.di.epfl.ch: it contains |
| 3140 | # gethostby* variants that don't use the nameserver (or something). |
| 3141 | # -lsocket must be given before -lnsl if both are needed. |
| 3142 | # We assume that if connect needs -lnsl, so does gethostbyname. |
| 3143 | echo $ac_n "checking for connect""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3144 | echo "configure:3145: checking for connect" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3145 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
| 3146 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3147 | else |
| 3148 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3149 | #line 3150 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3150 | #include "confdefs.h" |
| 3151 | /* System header to define __stub macros and hopefully few prototypes, |
| 3152 | which can conflict with char connect(); below. */ |
| 3153 | #include <assert.h> |
| 3154 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3155 | /* We use char because int might match the return type of a gcc2 |
| 3156 | builtin and then its argument prototype would still apply. */ |
| 3157 | char connect(); |
| 3158 | |
| 3159 | int main() { |
| 3160 | |
| 3161 | /* The GNU C library defines this for functions which it implements |
| 3162 | to always fail with ENOSYS. Some functions are actually named |
| 3163 | something starting with __ and the normal name is an alias. */ |
| 3164 | #if defined (__stub_connect) || defined (__stub___connect) |
| 3165 | choke me |
| 3166 | #else |
| 3167 | connect(); |
| 3168 | #endif |
| 3169 | |
| 3170 | ; return 0; } |
| 3171 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3172 | if { (eval echo configure:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3173 | rm -rf conftest* |
| 3174 | eval "ac_cv_func_connect=yes" |
| 3175 | else |
| 3176 | echo "configure: failed program was:" >&5 |
| 3177 | cat conftest.$ac_ext >&5 |
| 3178 | rm -rf conftest* |
| 3179 | eval "ac_cv_func_connect=no" |
| 3180 | fi |
| 3181 | rm -f conftest* |
| 3182 | fi |
| 3183 | |
| 3184 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
| 3185 | echo "$ac_t""yes" 1>&6 |
| 3186 | : |
| 3187 | else |
| 3188 | echo "$ac_t""no" 1>&6 |
| 3189 | fi |
| 3190 | |
| 3191 | if test $ac_cv_func_connect = no; then |
| 3192 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3193 | echo "configure:3194: checking for connect in -lsocket" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3194 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
| 3195 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3196 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3197 | else |
| 3198 | ac_save_LIBS="$LIBS" |
| 3199 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
| 3200 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3201 | #line 3202 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3202 | #include "confdefs.h" |
| 3203 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3204 | /* We use char because int might match the return type of a gcc2 |
| 3205 | builtin and then its argument prototype would still apply. */ |
| 3206 | char connect(); |
| 3207 | |
| 3208 | int main() { |
| 3209 | connect() |
| 3210 | ; return 0; } |
| 3211 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3212 | if { (eval echo configure:3213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3213 | rm -rf conftest* |
| 3214 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3215 | else |
| 3216 | echo "configure: failed program was:" >&5 |
| 3217 | cat conftest.$ac_ext >&5 |
| 3218 | rm -rf conftest* |
| 3219 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3220 | fi |
| 3221 | rm -f conftest* |
| 3222 | LIBS="$ac_save_LIBS" |
| 3223 | |
| 3224 | fi |
| 3225 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3226 | echo "$ac_t""yes" 1>&6 |
| 3227 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 3228 | else |
| 3229 | echo "$ac_t""no" 1>&6 |
| 3230 | fi |
| 3231 | |
| 3232 | fi |
| 3233 | |
| 3234 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
| 3235 | echo $ac_n "checking for remove""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3236 | echo "configure:3237: checking for remove" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3237 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
| 3238 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3239 | else |
| 3240 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3241 | #line 3242 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3242 | #include "confdefs.h" |
| 3243 | /* System header to define __stub macros and hopefully few prototypes, |
| 3244 | which can conflict with char remove(); below. */ |
| 3245 | #include <assert.h> |
| 3246 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3247 | /* We use char because int might match the return type of a gcc2 |
| 3248 | builtin and then its argument prototype would still apply. */ |
| 3249 | char remove(); |
| 3250 | |
| 3251 | int main() { |
| 3252 | |
| 3253 | /* The GNU C library defines this for functions which it implements |
| 3254 | to always fail with ENOSYS. Some functions are actually named |
| 3255 | something starting with __ and the normal name is an alias. */ |
| 3256 | #if defined (__stub_remove) || defined (__stub___remove) |
| 3257 | choke me |
| 3258 | #else |
| 3259 | remove(); |
| 3260 | #endif |
| 3261 | |
| 3262 | ; return 0; } |
| 3263 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3264 | if { (eval echo configure:3265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3265 | rm -rf conftest* |
| 3266 | eval "ac_cv_func_remove=yes" |
| 3267 | else |
| 3268 | echo "configure: failed program was:" >&5 |
| 3269 | cat conftest.$ac_ext >&5 |
| 3270 | rm -rf conftest* |
| 3271 | eval "ac_cv_func_remove=no" |
| 3272 | fi |
| 3273 | rm -f conftest* |
| 3274 | fi |
| 3275 | |
| 3276 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
| 3277 | echo "$ac_t""yes" 1>&6 |
| 3278 | : |
| 3279 | else |
| 3280 | echo "$ac_t""no" 1>&6 |
| 3281 | fi |
| 3282 | |
| 3283 | if test $ac_cv_func_remove = no; then |
| 3284 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3285 | echo "configure:3286: checking for remove in -lposix" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3286 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
| 3287 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3288 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3289 | else |
| 3290 | ac_save_LIBS="$LIBS" |
| 3291 | LIBS="-lposix $LIBS" |
| 3292 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3293 | #line 3294 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3294 | #include "confdefs.h" |
| 3295 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3296 | /* We use char because int might match the return type of a gcc2 |
| 3297 | builtin and then its argument prototype would still apply. */ |
| 3298 | char remove(); |
| 3299 | |
| 3300 | int main() { |
| 3301 | remove() |
| 3302 | ; return 0; } |
| 3303 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3304 | if { (eval echo configure:3305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3305 | rm -rf conftest* |
| 3306 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3307 | else |
| 3308 | echo "configure: failed program was:" >&5 |
| 3309 | cat conftest.$ac_ext >&5 |
| 3310 | rm -rf conftest* |
| 3311 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3312 | fi |
| 3313 | rm -f conftest* |
| 3314 | LIBS="$ac_save_LIBS" |
| 3315 | |
| 3316 | fi |
| 3317 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3318 | echo "$ac_t""yes" 1>&6 |
| 3319 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 3320 | else |
| 3321 | echo "$ac_t""no" 1>&6 |
| 3322 | fi |
| 3323 | |
| 3324 | fi |
| 3325 | |
| 3326 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| 3327 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3328 | echo "configure:3329: checking for shmat" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3329 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
| 3330 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3331 | else |
| 3332 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3333 | #line 3334 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3334 | #include "confdefs.h" |
| 3335 | /* System header to define __stub macros and hopefully few prototypes, |
| 3336 | which can conflict with char shmat(); below. */ |
| 3337 | #include <assert.h> |
| 3338 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3339 | /* We use char because int might match the return type of a gcc2 |
| 3340 | builtin and then its argument prototype would still apply. */ |
| 3341 | char shmat(); |
| 3342 | |
| 3343 | int main() { |
| 3344 | |
| 3345 | /* The GNU C library defines this for functions which it implements |
| 3346 | to always fail with ENOSYS. Some functions are actually named |
| 3347 | something starting with __ and the normal name is an alias. */ |
| 3348 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 3349 | choke me |
| 3350 | #else |
| 3351 | shmat(); |
| 3352 | #endif |
| 3353 | |
| 3354 | ; return 0; } |
| 3355 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3356 | if { (eval echo configure:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3357 | rm -rf conftest* |
| 3358 | eval "ac_cv_func_shmat=yes" |
| 3359 | else |
| 3360 | echo "configure: failed program was:" >&5 |
| 3361 | cat conftest.$ac_ext >&5 |
| 3362 | rm -rf conftest* |
| 3363 | eval "ac_cv_func_shmat=no" |
| 3364 | fi |
| 3365 | rm -f conftest* |
| 3366 | fi |
| 3367 | |
| 3368 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then |
| 3369 | echo "$ac_t""yes" 1>&6 |
| 3370 | : |
| 3371 | else |
| 3372 | echo "$ac_t""no" 1>&6 |
| 3373 | fi |
| 3374 | |
| 3375 | if test $ac_cv_func_shmat = no; then |
| 3376 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3377 | echo "configure:3378: checking for shmat in -lipc" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3378 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
| 3379 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3380 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3381 | else |
| 3382 | ac_save_LIBS="$LIBS" |
| 3383 | LIBS="-lipc $LIBS" |
| 3384 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3385 | #line 3386 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3386 | #include "confdefs.h" |
| 3387 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3388 | /* We use char because int might match the return type of a gcc2 |
| 3389 | builtin and then its argument prototype would still apply. */ |
| 3390 | char shmat(); |
| 3391 | |
| 3392 | int main() { |
| 3393 | shmat() |
| 3394 | ; return 0; } |
| 3395 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3396 | if { (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3397 | rm -rf conftest* |
| 3398 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3399 | else |
| 3400 | echo "configure: failed program was:" >&5 |
| 3401 | cat conftest.$ac_ext >&5 |
| 3402 | rm -rf conftest* |
| 3403 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3404 | fi |
| 3405 | rm -f conftest* |
| 3406 | LIBS="$ac_save_LIBS" |
| 3407 | |
| 3408 | fi |
| 3409 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3410 | echo "$ac_t""yes" 1>&6 |
| 3411 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 3412 | else |
| 3413 | echo "$ac_t""no" 1>&6 |
| 3414 | fi |
| 3415 | |
| 3416 | fi |
| 3417 | fi |
| 3418 | |
| 3419 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 3420 | ac_save_LDFLAGS="$LDFLAGS" |
| 3421 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 3422 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 3423 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 3424 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 3425 | # These have to be linked with before -lX11, unlike the other |
| 3426 | # libraries we check for below, so use a different variable. |
| 3427 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
| 3428 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3429 | echo "configure:3430: checking for IceConnectionNumber in -lICE" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3430 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
| 3431 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3432 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3433 | else |
| 3434 | ac_save_LIBS="$LIBS" |
| 3435 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| 3436 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3437 | #line 3438 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3438 | #include "confdefs.h" |
| 3439 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3440 | /* We use char because int might match the return type of a gcc2 |
| 3441 | builtin and then its argument prototype would still apply. */ |
| 3442 | char IceConnectionNumber(); |
| 3443 | |
| 3444 | int main() { |
| 3445 | IceConnectionNumber() |
| 3446 | ; return 0; } |
| 3447 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3448 | if { (eval echo configure:3449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3449 | rm -rf conftest* |
| 3450 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3451 | else |
| 3452 | echo "configure: failed program was:" >&5 |
| 3453 | cat conftest.$ac_ext >&5 |
| 3454 | rm -rf conftest* |
| 3455 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3456 | fi |
| 3457 | rm -f conftest* |
| 3458 | LIBS="$ac_save_LIBS" |
| 3459 | |
| 3460 | fi |
| 3461 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3462 | echo "$ac_t""yes" 1>&6 |
| 3463 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 3464 | else |
| 3465 | echo "$ac_t""no" 1>&6 |
| 3466 | fi |
| 3467 | |
| 3468 | LDFLAGS="$ac_save_LDFLAGS" |
| 3469 | |
| 3470 | fi |
| 3471 | |
| 3472 | |
| 3473 | if test "$OS390Unix" = "yes"; then |
| 3474 | CFLAGS="$CFLAGS -W c,dll" |
| 3475 | LDFLAGS="$LDFLAGS -W l,dll" |
| 3476 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
| 3477 | fi |
| 3478 | |
| 3479 | |
| 3480 | if test -d "$x_includes" && test ! -d "$x_libraries"; then |
| 3481 | x_libraries=`echo "$x_includes" | sed s/include/lib/` |
| 3482 | echo "$ac_t""Corrected X libraries to $x_libraries" 1>&6 |
| 3483 | X_LIBS="$X_LIBS -L$x_libraries" |
| 3484 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 3485 | uname -r | grep '^5' >/dev/null; then |
| 3486 | X_LIBS="$X_LIBS -R $x_libraries" |
| 3487 | fi |
| 3488 | fi |
| 3489 | |
| 3490 | if test -d "$x_libraries" && test ! -d "$x_includes"; then |
| 3491 | x_includes=`echo "$x_libraries" | sed s/lib/include/` |
| 3492 | echo "$ac_t""Corrected X includes to $x_includes" 1>&6 |
| 3493 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 3494 | fi |
| 3495 | |
| 3496 | X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" |
| 3497 | X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" |
| 3498 | X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" |
| 3499 | |
| 3500 | |
| 3501 | echo $ac_n "checking if X11 header files can be found""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3502 | echo "configure:3503: checking if X11 header files can be found" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3503 | cflags_save=$CFLAGS |
| 3504 | CFLAGS="$CFLAGS $X_CFLAGS" |
| 3505 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3506 | #line 3507 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3507 | #include "confdefs.h" |
| 3508 | #include <X11/Xlib.h> |
| 3509 | int main() { |
| 3510 | |
| 3511 | ; return 0; } |
| 3512 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3513 | if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3514 | rm -rf conftest* |
| 3515 | echo "$ac_t""yes" 1>&6 |
| 3516 | else |
| 3517 | echo "configure: failed program was:" >&5 |
| 3518 | cat conftest.$ac_ext >&5 |
| 3519 | rm -rf conftest* |
| 3520 | echo "$ac_t""no" 1>&6; no_x=yes |
| 3521 | fi |
| 3522 | rm -f conftest* |
| 3523 | CFLAGS=$cflags_save |
| 3524 | |
| 3525 | if test "${no_x-no}" = yes; then |
| 3526 | with_x=no |
| 3527 | else |
| 3528 | cat >> confdefs.h <<\EOF |
| 3529 | #define HAVE_X11 1 |
| 3530 | EOF |
| 3531 | |
| 3532 | X_LIB="-lXt -lX11"; |
| 3533 | |
| 3534 | |
| 3535 | ac_save_LDFLAGS="$LDFLAGS" |
| 3536 | LDFLAGS="-L$x_libraries $LDFLAGS" |
| 3537 | |
| 3538 | echo $ac_n "checking for _XdmcpAuthDoIt in -lXdmcp""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3539 | echo "configure:3540: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3540 | ac_lib_var=`echo Xdmcp'_'_XdmcpAuthDoIt | sed 'y%./+-%__p_%'` |
| 3541 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3542 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3543 | else |
| 3544 | ac_save_LIBS="$LIBS" |
| 3545 | LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" |
| 3546 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3547 | #line 3548 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3548 | #include "confdefs.h" |
| 3549 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3550 | /* We use char because int might match the return type of a gcc2 |
| 3551 | builtin and then its argument prototype would still apply. */ |
| 3552 | char _XdmcpAuthDoIt(); |
| 3553 | |
| 3554 | int main() { |
| 3555 | _XdmcpAuthDoIt() |
| 3556 | ; return 0; } |
| 3557 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3558 | if { (eval echo configure:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3559 | rm -rf conftest* |
| 3560 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3561 | else |
| 3562 | echo "configure: failed program was:" >&5 |
| 3563 | cat conftest.$ac_ext >&5 |
| 3564 | rm -rf conftest* |
| 3565 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3566 | fi |
| 3567 | rm -f conftest* |
| 3568 | LIBS="$ac_save_LIBS" |
| 3569 | |
| 3570 | fi |
| 3571 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3572 | echo "$ac_t""yes" 1>&6 |
| 3573 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" |
| 3574 | else |
| 3575 | echo "$ac_t""no" 1>&6 |
| 3576 | fi |
| 3577 | |
| 3578 | |
| 3579 | echo $ac_n "checking for IceOpenConnection in -lICE""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3580 | echo "configure:3581: checking for IceOpenConnection in -lICE" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3581 | ac_lib_var=`echo ICE'_'IceOpenConnection | sed 'y%./+-%__p_%'` |
| 3582 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3583 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3584 | else |
| 3585 | ac_save_LIBS="$LIBS" |
| 3586 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| 3587 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3588 | #line 3589 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3589 | #include "confdefs.h" |
| 3590 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3591 | /* We use char because int might match the return type of a gcc2 |
| 3592 | builtin and then its argument prototype would still apply. */ |
| 3593 | char IceOpenConnection(); |
| 3594 | |
| 3595 | int main() { |
| 3596 | IceOpenConnection() |
| 3597 | ; return 0; } |
| 3598 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3599 | if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3600 | rm -rf conftest* |
| 3601 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3602 | else |
| 3603 | echo "configure: failed program was:" >&5 |
| 3604 | cat conftest.$ac_ext >&5 |
| 3605 | rm -rf conftest* |
| 3606 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3607 | fi |
| 3608 | rm -f conftest* |
| 3609 | LIBS="$ac_save_LIBS" |
| 3610 | |
| 3611 | fi |
| 3612 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3613 | echo "$ac_t""yes" 1>&6 |
| 3614 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" |
| 3615 | else |
| 3616 | echo "$ac_t""no" 1>&6 |
| 3617 | fi |
| 3618 | |
| 3619 | |
| 3620 | LDFLAGS="$X_LIBS $ac_save_LDFLAGS" |
| 3621 | echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3622 | echo "configure:3623: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3623 | ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'` |
| 3624 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3625 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3626 | else |
| 3627 | ac_save_LIBS="$LIBS" |
| 3628 | LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" |
| 3629 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3630 | #line 3631 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3631 | #include "confdefs.h" |
| 3632 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3633 | /* We use char because int might match the return type of a gcc2 |
| 3634 | builtin and then its argument prototype would still apply. */ |
| 3635 | char XpmCreatePixmapFromData(); |
| 3636 | |
| 3637 | int main() { |
| 3638 | XpmCreatePixmapFromData() |
| 3639 | ; return 0; } |
| 3640 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3641 | if { (eval echo configure:3642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3642 | rm -rf conftest* |
| 3643 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3644 | else |
| 3645 | echo "configure: failed program was:" >&5 |
| 3646 | cat conftest.$ac_ext >&5 |
| 3647 | rm -rf conftest* |
| 3648 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3649 | fi |
| 3650 | rm -f conftest* |
| 3651 | LIBS="$ac_save_LIBS" |
| 3652 | |
| 3653 | fi |
| 3654 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3655 | echo "$ac_t""yes" 1>&6 |
| 3656 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
| 3657 | else |
| 3658 | echo "$ac_t""no" 1>&6 |
| 3659 | fi |
| 3660 | |
| 3661 | |
| 3662 | echo $ac_n "checking if X11 header files implicitly declare return values""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3663 | echo "configure:3664: checking if X11 header files implicitly declare return values" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3664 | cflags_save=$CFLAGS |
| 3665 | CFLAGS="$CFLAGS $X_CFLAGS -Werror" |
| 3666 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3667 | #line 3668 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3668 | #include "confdefs.h" |
| 3669 | #include <X11/Xlib.h> |
| 3670 | int main() { |
| 3671 | |
| 3672 | ; return 0; } |
| 3673 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3674 | if { (eval echo configure:3675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3675 | rm -rf conftest* |
| 3676 | echo "$ac_t""no" 1>&6 |
| 3677 | else |
| 3678 | echo "configure: failed program was:" >&5 |
| 3679 | cat conftest.$ac_ext >&5 |
| 3680 | rm -rf conftest* |
| 3681 | CFLAGS="$CFLAGS -Wno-implicit-int" |
| 3682 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3683 | #line 3684 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3684 | #include "confdefs.h" |
| 3685 | #include <X11/Xlib.h> |
| 3686 | int main() { |
| 3687 | |
| 3688 | ; return 0; } |
| 3689 | EOF |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3690 | if { (eval echo configure:3691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3691 | rm -rf conftest* |
| 3692 | echo "$ac_t""yes" 1>&6; cflags_save="$cflags_save -Wno-implicit-int" |
| 3693 | else |
| 3694 | echo "configure: failed program was:" >&5 |
| 3695 | cat conftest.$ac_ext >&5 |
| 3696 | rm -rf conftest* |
| 3697 | echo "$ac_t""test failed" 1>&6 |
| 3698 | |
| 3699 | fi |
| 3700 | rm -f conftest* |
| 3701 | |
| 3702 | fi |
| 3703 | rm -f conftest* |
| 3704 | CFLAGS=$cflags_save |
| 3705 | |
| 3706 | LDFLAGS="$ac_save_LDFLAGS" |
| 3707 | |
| 3708 | fi |
| 3709 | fi |
| 3710 | |
| 3711 | test "x$with_x" = xno -a "x$BEOS" != "xyes" -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no |
| 3712 | |
| 3713 | echo $ac_n "checking --enable-gui argument""... $ac_c" 1>&6 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3714 | echo "configure:3715: checking --enable-gui argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3715 | # Check whether --enable-gui or --disable-gui was given. |
| 3716 | if test "${enable_gui+set}" = set; then |
| 3717 | enableval="$enable_gui" |
| 3718 | : |
| 3719 | else |
| 3720 | enable_gui="auto" |
| 3721 | fi |
| 3722 | |
| 3723 | |
| 3724 | enable_gui_canon=`echo "_$enable_gui" | \ |
| 3725 | sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
| 3726 | |
| 3727 | SKIP_GTK=YES |
| 3728 | SKIP_GTK2=YES |
| 3729 | SKIP_GNOME=YES |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 3730 | SKIP_KDE=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3731 | SKIP_MOTIF=YES |
| 3732 | SKIP_ATHENA=YES |
| 3733 | SKIP_NEXTAW=YES |
| 3734 | SKIP_PHOTON=YES |
| 3735 | SKIP_BEOS=YES |
| 3736 | SKIP_CARBON=YES |
| 3737 | GUITYPE=NONE |
| 3738 | |
| 3739 | if test "x$BEOS" = "xyes"; then |
| 3740 | SKIP_BEOS= |
| 3741 | case "$enable_gui_canon" in |
| 3742 | no) echo "$ac_t""no GUI support" 1>&6 |
| 3743 | SKIP_BEOS=YES ;; |
| 3744 | yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;; |
| 3745 | auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;; |
| 3746 | beos) echo "$ac_t""BeOS GUI support" 1>&6 ;; |
| 3747 | *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 |
| 3748 | SKIP_BEOS=YES ;; |
| 3749 | esac |
| 3750 | |
| 3751 | elif test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then |
| 3752 | SKIP_PHOTON= |
| 3753 | case "$enable_gui_canon" in |
| 3754 | no) echo "$ac_t""no GUI support" 1>&6 |
| 3755 | SKIP_PHOTON=YES ;; |
| 3756 | yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;; |
| 3757 | auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;; |
| 3758 | photon) echo "$ac_t""Photon GUI support" 1>&6 ;; |
| 3759 | *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 |
| 3760 | SKIP_PHOTON=YES ;; |
| 3761 | esac |
| 3762 | |
| 3763 | elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then |
| 3764 | SKIP_CARBON= |
| 3765 | case "$enable_gui_canon" in |
| 3766 | no) echo "$ac_t""no GUI support" 1>&6 |
| 3767 | SKIP_CARBON=YES ;; |
| 3768 | yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;; |
| 3769 | auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;; |
| 3770 | carbon) echo "$ac_t""Carbon GUI support" 1>&6 ;; |
| 3771 | *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 |
| 3772 | SKIP_CARBON=YES ;; |
| 3773 | esac |
| 3774 | |
| 3775 | else |
| 3776 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3777 | case "$enable_gui_canon" in |
| 3778 | no|none) echo "$ac_t""no GUI support" 1>&6 ;; |
| 3779 | yes|""|auto) echo "$ac_t""yes/auto - automatic GUI support" 1>&6 |
| 3780 | SKIP_GTK= |
| 3781 | SKIP_GTK2= |
| 3782 | SKIP_GNOME= |
| 3783 | SKIP_MOTIF= |
| 3784 | SKIP_ATHENA= |
| 3785 | SKIP_NEXTAW= |
| 3786 | SKIP_CARBON=;; |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3787 | kde|Kde|KDE) echo "$ac_t""KDE 2.x or 3.x GUI support" 1>&6 |
| 3788 | SKIP_KDE=;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3789 | gtk) echo "$ac_t""GTK+ 1.x GUI support" 1>&6 |
| 3790 | SKIP_GTK=;; |
| 3791 | gtk2) echo "$ac_t""GTK+ 2.x GUI support" 1>&6 |
| 3792 | SKIP_GTK= |
| 3793 | SKIP_GTK2=;; |
| 3794 | gnome) echo "$ac_t""GNOME 1.x GUI support" 1>&6 |
| 3795 | SKIP_GNOME= |
| 3796 | SKIP_GTK=;; |
| 3797 | gnome2) echo "$ac_t""GNOME 2.x GUI support" 1>&6 |
| 3798 | SKIP_GNOME= |
| 3799 | SKIP_GTK= |
| 3800 | SKIP_GTK2=;; |
| 3801 | motif) echo "$ac_t""Motif GUI support" 1>&6 |
| 3802 | SKIP_MOTIF=;; |
| 3803 | athena) echo "$ac_t""Athena GUI support" 1>&6 |
| 3804 | SKIP_ATHENA=;; |
| 3805 | nextaw) echo "$ac_t""neXtaw GUI support" 1>&6 |
| 3806 | SKIP_NEXTAW=;; |
| 3807 | *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 ;; |
| 3808 | esac |
| 3809 | |
| 3810 | fi |
| 3811 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3812 | if test "x$SKIP_KDE" != "xYES" -a "$enable_gui_canon" != "kde"; then |
| 3813 | echo $ac_n "checking whether or not to look for KDE""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 3814 | echo "configure:3815: checking whether or not to look for KDE" >&5 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3815 | # Check whether --enable-kde-check or --disable-kde-check was given. |
| 3816 | if test "${enable_kde_check+set}" = set; then |
| 3817 | enableval="$enable_kde_check" |
| 3818 | : |
| 3819 | else |
| 3820 | enable_kde_check="no" |
| 3821 | fi |
| 3822 | |
| 3823 | echo "$ac_t""$enable_kde_check" 1>&6; |
| 3824 | if test "x$enable_kde_check" = "xno"; then |
| 3825 | SKIP_KDE=YES |
| 3826 | fi |
| 3827 | fi |
| 3828 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3829 | if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then |
| 3830 | echo $ac_n "checking whether or not to look for GTK""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 3831 | echo "configure:3832: checking whether or not to look for GTK" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3832 | # Check whether --enable-gtk-check or --disable-gtk-check was given. |
| 3833 | if test "${enable_gtk_check+set}" = set; then |
| 3834 | enableval="$enable_gtk_check" |
| 3835 | : |
| 3836 | else |
| 3837 | enable_gtk_check="yes" |
| 3838 | fi |
| 3839 | |
| 3840 | echo "$ac_t""$enable_gtk_check" 1>&6 |
| 3841 | if test "x$enable_gtk_check" = "xno"; then |
| 3842 | SKIP_GTK=YES |
| 3843 | SKIP_GNOME=YES |
| 3844 | fi |
| 3845 | fi |
| 3846 | |
| 3847 | if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ |
| 3848 | -a "$enable_gui_canon" != "gnome2"; then |
| 3849 | echo $ac_n "checking whether or not to look for GTK+ 2""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 3850 | echo "configure:3851: checking whether or not to look for GTK+ 2" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3851 | # Check whether --enable-gtk2-check or --disable-gtk2-check was given. |
| 3852 | if test "${enable_gtk2_check+set}" = set; then |
| 3853 | enableval="$enable_gtk2_check" |
| 3854 | : |
| 3855 | else |
| 3856 | enable_gtk2_check="yes" |
| 3857 | fi |
| 3858 | |
| 3859 | echo "$ac_t""$enable_gtk2_check" 1>&6 |
| 3860 | if test "x$enable_gtk2_check" = "xno"; then |
| 3861 | SKIP_GTK2=YES |
| 3862 | fi |
| 3863 | fi |
| 3864 | |
| 3865 | if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ |
| 3866 | -a "$enable_gui_canon" != "gnome2"; then |
| 3867 | echo $ac_n "checking whether or not to look for GNOME""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 3868 | echo "configure:3869: checking whether or not to look for GNOME" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3869 | # Check whether --enable-gnome-check or --disable-gnome-check was given. |
| 3870 | if test "${enable_gnome_check+set}" = set; then |
| 3871 | enableval="$enable_gnome_check" |
| 3872 | : |
| 3873 | else |
| 3874 | enable_gnome_check="no" |
| 3875 | fi |
| 3876 | |
| 3877 | echo "$ac_t""$enable_gnome_check" 1>&6 |
| 3878 | if test "x$enable_gnome_check" = "xno"; then |
| 3879 | SKIP_GNOME=YES |
| 3880 | fi |
| 3881 | fi |
| 3882 | |
| 3883 | if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then |
| 3884 | echo $ac_n "checking whether or not to look for Motif""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 3885 | echo "configure:3886: checking whether or not to look for Motif" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3886 | # Check whether --enable-motif-check or --disable-motif-check was given. |
| 3887 | if test "${enable_motif_check+set}" = set; then |
| 3888 | enableval="$enable_motif_check" |
| 3889 | : |
| 3890 | else |
| 3891 | enable_motif_check="yes" |
| 3892 | fi |
| 3893 | |
| 3894 | echo "$ac_t""$enable_motif_check" 1>&6 |
| 3895 | if test "x$enable_motif_check" = "xno"; then |
| 3896 | SKIP_MOTIF=YES |
| 3897 | fi |
| 3898 | fi |
| 3899 | |
| 3900 | if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then |
| 3901 | echo $ac_n "checking whether or not to look for Athena""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 3902 | echo "configure:3903: checking whether or not to look for Athena" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3903 | # Check whether --enable-athena-check or --disable-athena-check was given. |
| 3904 | if test "${enable_athena_check+set}" = set; then |
| 3905 | enableval="$enable_athena_check" |
| 3906 | : |
| 3907 | else |
| 3908 | enable_athena_check="yes" |
| 3909 | fi |
| 3910 | |
| 3911 | echo "$ac_t""$enable_athena_check" 1>&6 |
| 3912 | if test "x$enable_athena_check" = "xno"; then |
| 3913 | SKIP_ATHENA=YES |
| 3914 | fi |
| 3915 | fi |
| 3916 | |
| 3917 | if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then |
| 3918 | echo $ac_n "checking whether or not to look for neXtaw""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 3919 | echo "configure:3920: checking whether or not to look for neXtaw" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3920 | # Check whether --enable-nextaw-check or --disable-nextaw-check was given. |
| 3921 | if test "${enable_nextaw_check+set}" = set; then |
| 3922 | enableval="$enable_nextaw_check" |
| 3923 | : |
| 3924 | else |
| 3925 | enable_nextaw_check="yes" |
| 3926 | fi |
| 3927 | |
| 3928 | echo "$ac_t""$enable_nextaw_check" 1>&6; |
| 3929 | if test "x$enable_nextaw_check" = "xno"; then |
| 3930 | SKIP_NEXTAW=YES |
| 3931 | fi |
| 3932 | fi |
| 3933 | |
| 3934 | if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then |
| 3935 | echo $ac_n "checking whether or not to look for Carbon""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 3936 | echo "configure:3937: checking whether or not to look for Carbon" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3937 | # Check whether --enable-carbon-check or --disable-carbon-check was given. |
| 3938 | if test "${enable_carbon_check+set}" = set; then |
| 3939 | enableval="$enable_carbon_check" |
| 3940 | : |
| 3941 | else |
| 3942 | enable_carbon_check="yes" |
| 3943 | fi |
| 3944 | |
| 3945 | echo "$ac_t""$enable_carbon_check" 1>&6; |
| 3946 | if test "x$enable_carbon_check" = "xno"; then |
| 3947 | SKIP_CARBON=YES |
| 3948 | fi |
| 3949 | fi |
| 3950 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3951 | |
| 3952 | if test -z "$SKIP_KDE"; then |
| 3953 | # Check whether --with-qt-dir or --without-qt-dir was given. |
| 3954 | if test "${with_qt_dir+set}" = set; then |
| 3955 | withval="$with_qt_dir" |
| 3956 | |
| 3957 | ROOTQT="$withval" |
| 3958 | MOC="$withval"/bin/moc |
| 3959 | QT_INCLUDES="$withval"/include |
| 3960 | QT_LIBS="$withval"/lib |
| 3961 | |
| 3962 | fi |
| 3963 | |
| 3964 | |
| 3965 | if test "x$ROOTQT" = "x"; then |
| 3966 | if test -z "$QTDIR"; then |
| 3967 | # Extract the first word of "moc", so it can be a program name with args. |
| 3968 | set dummy moc; ac_word=$2 |
| 3969 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 3970 | echo "configure:3971: checking for $ac_word" >&5 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 3971 | if eval "test \"`echo '$''{'ac_cv_path_MOC'+set}'`\" = set"; then |
| 3972 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3973 | else |
| 3974 | case "$MOC" in |
| 3975 | /*) |
| 3976 | ac_cv_path_MOC="$MOC" # Let the user override the test with a path. |
| 3977 | ;; |
| 3978 | ?:/*) |
| 3979 | ac_cv_path_MOC="$MOC" # Let the user override the test with a dos path. |
| 3980 | ;; |
| 3981 | *) |
| 3982 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3983 | ac_dummy="$PATH" |
| 3984 | for ac_dir in $ac_dummy; do |
| 3985 | test -z "$ac_dir" && ac_dir=. |
| 3986 | if test -f $ac_dir/$ac_word; then |
| 3987 | ac_cv_path_MOC="$ac_dir/$ac_word" |
| 3988 | break |
| 3989 | fi |
| 3990 | done |
| 3991 | IFS="$ac_save_ifs" |
| 3992 | test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="no" |
| 3993 | ;; |
| 3994 | esac |
| 3995 | fi |
| 3996 | MOC="$ac_cv_path_MOC" |
| 3997 | if test -n "$MOC"; then |
| 3998 | echo "$ac_t""$MOC" 1>&6 |
| 3999 | else |
| 4000 | echo "$ac_t""no" 1>&6 |
| 4001 | fi |
| 4002 | |
| 4003 | if text"x$MOC" = "x"; then |
| 4004 | { echo "configure: error: could not find Qt directory" 1>&2; exit 1; } |
| 4005 | else |
| 4006 | ROOTQT=`echo $MOC | sed 's+/bin/moc++'` |
| 4007 | fi |
| 4008 | else |
| 4009 | ROOTQT="$QTDIR" |
| 4010 | fi |
| 4011 | fi |
| 4012 | MOC="$ROOTQT"/bin/moc |
| 4013 | QT_INCLUDES="$ROOTQT"/include |
| 4014 | QT_LIBS="$ROOTQT"/lib |
| 4015 | |
| 4016 | # Check whether --with-qt-includes or --without-qt-includes was given. |
| 4017 | if test "${with_qt_includes+set}" = set; then |
| 4018 | withval="$with_qt_includes" |
| 4019 | QT_INCLUDES="$withval" |
| 4020 | |
| 4021 | fi |
| 4022 | |
| 4023 | |
| 4024 | # Check whether --with-qt-libraries or --without-qt-libraries was given. |
| 4025 | if test "${with_qt_libraries+set}" = set; then |
| 4026 | withval="$with_qt_libraries" |
| 4027 | QT_LIBS="$withval" |
| 4028 | |
| 4029 | fi |
| 4030 | |
| 4031 | |
| 4032 | if test "x$QT_LIBS" = "x" ; then |
| 4033 | QT_LIBS="$ROOTQT"/lib |
| 4034 | fi |
| 4035 | if test "x$QT_INCLUDES" = "x" ; then |
| 4036 | QT_INCLUDES="$ROOTQT"/include |
| 4037 | fi |
| 4038 | |
| 4039 | echo $ac_n "checking whether or not to use a KDE Toolbar in KVim""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4040 | echo "configure:4041: checking whether or not to use a KDE Toolbar in KVim" >&5 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 4041 | # Check whether --enable-kde-toolbar or --disable-kde-toolbar was given. |
| 4042 | if test "${enable_kde_toolbar+set}" = set; then |
| 4043 | enableval="$enable_kde_toolbar" |
| 4044 | : |
| 4045 | else |
| 4046 | enable_kde_toolbar="no" |
| 4047 | fi |
| 4048 | |
| 4049 | if test "x$enable_kde_toolbar" != "xno"; then |
| 4050 | cat >> confdefs.h <<\EOF |
| 4051 | #define FEAT_KDETOOLBAR 1 |
| 4052 | EOF |
| 4053 | |
| 4054 | fi |
| 4055 | echo "$ac_t""$enable_kde_toolbar" 1>&6; |
| 4056 | fi |
| 4057 | |
| 4058 | |
| 4059 | if test -z "$SKIP_KDE"; then |
| 4060 | |
| 4061 | |
| 4062 | echo $ac_n "checking --disable-rpath argument""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4063 | echo "configure:4064: checking --disable-rpath argument" >&5 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 4064 | # Check whether --enable-rpath or --disable-rpath was given. |
| 4065 | if test "${enable_rpath+set}" = set; then |
| 4066 | enableval="$enable_rpath" |
| 4067 | : |
| 4068 | else |
| 4069 | enable_rpath="yes" |
| 4070 | fi |
| 4071 | |
| 4072 | if test "$enable_rpath" = "yes"; then |
| 4073 | echo "$ac_t""no" 1>&6 |
| 4074 | else |
| 4075 | echo "$ac_t""yes" 1>&6 |
| 4076 | fi |
| 4077 | |
| 4078 | echo $ac_n "checking --with-kde-prefix argument""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4079 | echo "configure:4080: checking --with-kde-prefix argument" >&5 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 4080 | # Check whether --with-kde-prefix or --without-kde-prefix was given. |
| 4081 | if test "${with_kde_prefix+set}" = set; then |
| 4082 | withval="$with_kde_prefix" |
| 4083 | kde_config_prefix="$withval"; |
| 4084 | echo "$ac_t""$kde_config_prefix" 1>&6 |
| 4085 | else |
| 4086 | kde_config_prefix="";echo "$ac_t""no" 1>&6 |
| 4087 | fi |
| 4088 | |
| 4089 | |
| 4090 | # Check whether --with-kde-includes or --without-kde-includes was given. |
| 4091 | if test "${with_kde_includes+set}" = set; then |
| 4092 | withval="$with_kde_includes" |
| 4093 | KDE_INCLUDES="$withval" |
| 4094 | |
| 4095 | fi |
| 4096 | |
| 4097 | |
| 4098 | # Check whether --with-kde-libraries or --without-kde-libraries was given. |
| 4099 | if test "${with_kde_libraries+set}" = set; then |
| 4100 | withval="$with_kde_libraries" |
| 4101 | KDE_LIBS="$withval" |
| 4102 | |
| 4103 | fi |
| 4104 | |
| 4105 | |
| 4106 | echo $ac_n "checking --disable-kdetest argument""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4107 | echo "configure:4108: checking --disable-kdetest argument" >&5 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 4108 | # Check whether --enable-kdetest or --disable-kdetest was given. |
| 4109 | if test "${enable_kdetest+set}" = set; then |
| 4110 | enableval="$enable_kdetest" |
| 4111 | enable_kdetest=yes |
| 4112 | fi |
| 4113 | |
| 4114 | |
| 4115 | if test "x$enable_kdetest" = "xyes" ; then |
| 4116 | echo "$ac_t""kde test enabled" 1>&6 |
| 4117 | else |
| 4118 | echo "$ac_t""kde test disabled" 1>&6 |
| 4119 | fi |
| 4120 | |
| 4121 | if test "x$kde_config_prefix" != "x" ; then |
| 4122 | kde_config_args="" |
| 4123 | KDE_CONFIG=$kde_config_prefix/bin/kde-config |
| 4124 | fi |
| 4125 | |
| 4126 | if test "X$KDE_CONFIG" = "X"; then |
| 4127 | # Extract the first word of "kde-config", so it can be a program name with args. |
| 4128 | set dummy kde-config; ac_word=$2 |
| 4129 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4130 | echo "configure:4131: checking for $ac_word" >&5 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 4131 | if eval "test \"`echo '$''{'ac_cv_path_KDE_CONFIG'+set}'`\" = set"; then |
| 4132 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4133 | else |
| 4134 | case "$KDE_CONFIG" in |
| 4135 | /*) |
| 4136 | ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a path. |
| 4137 | ;; |
| 4138 | ?:/*) |
| 4139 | ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a dos path. |
| 4140 | ;; |
| 4141 | *) |
| 4142 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4143 | ac_dummy="$PATH" |
| 4144 | for ac_dir in $ac_dummy; do |
| 4145 | test -z "$ac_dir" && ac_dir=. |
| 4146 | if test -f $ac_dir/$ac_word; then |
| 4147 | ac_cv_path_KDE_CONFIG="$ac_dir/$ac_word" |
| 4148 | break |
| 4149 | fi |
| 4150 | done |
| 4151 | IFS="$ac_save_ifs" |
| 4152 | test -z "$ac_cv_path_KDE_CONFIG" && ac_cv_path_KDE_CONFIG="no" |
| 4153 | ;; |
| 4154 | esac |
| 4155 | fi |
| 4156 | KDE_CONFIG="$ac_cv_path_KDE_CONFIG" |
| 4157 | if test -n "$KDE_CONFIG"; then |
| 4158 | echo "$ac_t""$KDE_CONFIG" 1>&6 |
| 4159 | else |
| 4160 | echo "$ac_t""no" 1>&6 |
| 4161 | fi |
| 4162 | |
| 4163 | else |
| 4164 | echo "$ac_t""Using KDE configuration program $KDE_CONFIG" 1>&6 |
| 4165 | fi |
| 4166 | |
| 4167 | if test "X$KDE_CONFIG" != "X" ; then |
| 4168 | |
| 4169 | if test "X$KDE_CONFIG" != "X"; then |
| 4170 | min_kde_version=2.0.0 |
| 4171 | echo $ac_n "checking for KDE version >= $min_kde_version""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4172 | echo "configure:4173: checking for KDE version >= $min_kde_version" >&5 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 4173 | no_kde="" |
| 4174 | if test "$KDE_CONFIG" = "no" ; then |
| 4175 | no_kde=yes |
| 4176 | else |
| 4177 | KDE_PREFIX=`$KDE_CONFIG $kde_config_args --prefix` |
| 4178 | if test "x$KDE_LIBS" = "x"; then |
| 4179 | KDE_LIBS="$KDE_PREFIX/lib" |
| 4180 | fi |
| 4181 | if test "x$KDE_INCLUDES" = "x"; then |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4182 | KDE_INCLUDES="$KDE_PREFIX/include" |
| 4183 | if test -d "$KDE_INCLUDES/kde"; then |
| 4184 | KDE_INCLUDES="$KDE_INCLUDES/kde" |
| 4185 | fi |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 4186 | fi |
| 4187 | kde_major_version=`$KDE_CONFIG --version | grep KDE | \ |
| 4188 | sed 's/KDE:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\1/'` |
| 4189 | kde_minor_version=`$KDE_CONFIG --version | grep KDE | \ |
| 4190 | sed 's/KDE:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\2/'` |
| 4191 | |
| 4192 | qt_major_version=`$KDE_CONFIG --version | grep Qt | sed -e \ |
| 4193 | 's/Qt:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\1/'` |
| 4194 | qt_minor_version=`$KDE_CONFIG --version | grep Qt | sed -e \ |
| 4195 | 's/Qt:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\2/'` |
| 4196 | |
| 4197 | if test "x$enable-kdetest" = "xyes" ; then |
| 4198 | ac_save_LIBS="$LIBS" |
| 4199 | LIBS="$LIBS $KDE_LIBS" |
| 4200 | |
| 4201 | if test "$cross_compiling" = yes; then |
| 4202 | echo $ac_n "cross compiling KDE ? ? how can i remove that ? :)" |
| 4203 | else |
| 4204 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4205 | #line 4206 "configure" |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 4206 | #include "confdefs.h" |
| 4207 | |
| 4208 | #include <stdio.h> |
| 4209 | int |
| 4210 | main() |
| 4211 | { return 0; } |
| 4212 | |
| 4213 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4214 | if { (eval echo configure:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 4215 | then |
| 4216 | : |
| 4217 | else |
| 4218 | echo "configure: failed program was:" >&5 |
| 4219 | cat conftest.$ac_ext >&5 |
| 4220 | rm -fr conftest* |
| 4221 | no_kde=yes |
| 4222 | fi |
| 4223 | rm -fr conftest* |
| 4224 | fi |
| 4225 | |
| 4226 | LIBS="$ac_save_LIBS" |
| 4227 | fi |
| 4228 | fi |
| 4229 | if test "x$no_kde" = x ; then |
| 4230 | echo "$ac_t""found KDE $kde_major_version.$kde_minor_version" 1>&6 |
| 4231 | GUI_LIB_LOC="-L$KDE_LIBS -lkdeui -lkdecore -lDCOP" |
| 4232 | GUI_INC_LOC="-I$KDE_INCLUDES" |
| 4233 | KDEDIR="$KDE_PREFIX" |
| 4234 | else |
| 4235 | echo "$ac_t""no" 1>&6 |
| 4236 | KDE_LIBS="" |
| 4237 | : |
| 4238 | fi |
| 4239 | else |
| 4240 | echo "$ac_t""no" 1>&6 |
| 4241 | KDE_LIBS="" |
| 4242 | : |
| 4243 | fi |
| 4244 | |
| 4245 | |
| 4246 | |
| 4247 | |
| 4248 | if test "x$KDE_PREFIX" != "x"; then |
| 4249 | echo $ac_n "checking for QT version $qt_major_version.x""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4250 | echo "configure:4251: checking for QT version $qt_major_version.x" >&5 |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 4251 | if test "x$ROOTQT" != "x" ; then |
| 4252 | GUI_INC_LOC="-I$QT_INCLUDES $GUI_INC_LOC" |
| 4253 | if test $qt_major_version -lt 2; then |
| 4254 | { echo "configure: error: Your QT version is prior to 2.0; KDE 2.x and 3.x require at least QT 2" 1>&2; exit 1; } |
| 4255 | fi |
| 4256 | if test "`(uname) 2>/dev/null`" = "FreeBSD"; then |
| 4257 | CFLAGS="$CFLAGS -D_THREAD_SAFE" |
| 4258 | CXXFLAGS="$CXXFLAGS -D_THREAD_SAFE" |
| 4259 | GUI_LIB_LOC="$GUI_LIB_LOC -pthread" |
| 4260 | LIBS="$LIBS -pthread" |
| 4261 | fi |
| 4262 | |
| 4263 | if test "x$enable_rpath" = "xyes"; then |
| 4264 | if test $qt_major_version = 2; then |
| 4265 | GUI_LIB_LOC="-L$KDE_LIBS -lkfile -L$QT_LIBS -lqt $GUI_LIB_LOC \ |
| 4266 | -Wl,--rpath -Wl,$KDE_LIBS -Wl,--rpath -Wl,$QT_LIBS" |
| 4267 | else |
| 4268 | GUI_LIB_LOC="-L$KDE_LIBS -lkio -L$QT_LIBS -lqt-mt $GUI_LIB_LOC \ |
| 4269 | -Wl,--rpath -Wl,$KDE_LIBS -Wl,--rpath -Wl,$QT_LIBS" |
| 4270 | fi |
| 4271 | else |
| 4272 | if test $qt_major_version = 2; then |
| 4273 | GUI_LIB_LOC="-L$KDE_LIBS -lkfile -L$QT_LIBS -lqt $GUI_LIB_LOC" |
| 4274 | else |
| 4275 | GUI_LIB_LOC="-L$KDE_LIBS -lkio -L$QT_LIBS -lqt-mt $GUI_LIB_LOC" |
| 4276 | fi |
| 4277 | fi |
| 4278 | |
| 4279 | GUI_INC_LOC="`echo $GUI_INC_LOC\ | sed 's%-I/usr/include %%'`" |
| 4280 | |
| 4281 | echo "$ac_t""found $qt_major_version.$qt_minor_version in $ROOTQT" 1>&6 |
| 4282 | SKIP_GTK=YES |
| 4283 | SKIP_ATHENA=YES |
| 4284 | SKIP_MOTIF=YES |
| 4285 | GUITYPE=KDE |
| 4286 | |
| 4287 | |
| 4288 | |
| 4289 | |
| 4290 | |
| 4291 | cat >> confdefs.h <<\EOF |
| 4292 | #define FEAT_GUI_KDE 1 |
| 4293 | EOF |
| 4294 | |
| 4295 | else |
| 4296 | { echo "configure: error: Detected QT version mismatched" 1>&2; exit 1; } |
| 4297 | fi |
| 4298 | else |
| 4299 | { echo "configure: error: Could not find KDE installation prefix" 1>&2; exit 1; } |
| 4300 | fi |
| 4301 | fi |
| 4302 | fi |
| 4303 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4304 | if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then |
| 4305 | echo $ac_n "checking for Carbon GUI""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4306 | echo "configure:4307: checking for Carbon GUI" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4307 | echo "$ac_t""yes" 1>&6; |
| 4308 | GUITYPE=CARBONGUI |
| 4309 | SKIP_GTK=YES; |
| 4310 | SKIP_GTK2=YES; |
| 4311 | SKIP_GNOME=YES; |
| 4312 | SKIP_MOTIF=YES; |
| 4313 | SKIP_ATHENA=YES; |
| 4314 | SKIP_NEXTAW=YES; |
| 4315 | SKIP_PHOTON=YES; |
| 4316 | SKIP_BEOS=YES; |
| 4317 | SKIP_CARBON=YES |
| 4318 | fi |
| 4319 | |
| 4320 | |
| 4321 | |
| 4322 | |
| 4323 | |
| 4324 | |
| 4325 | |
| 4326 | |
| 4327 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4328 | if test -z "$SKIP_GTK"; then |
| 4329 | |
| 4330 | echo $ac_n "checking --with-gtk-prefix argument""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4331 | echo "configure:4332: checking --with-gtk-prefix argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4332 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
| 4333 | if test "${with_gtk_prefix+set}" = set; then |
| 4334 | withval="$with_gtk_prefix" |
| 4335 | gtk_config_prefix="$withval"; echo "$ac_t""$gtk_config_prefix" 1>&6 |
| 4336 | else |
| 4337 | gtk_config_prefix=""; echo "$ac_t""no" 1>&6 |
| 4338 | fi |
| 4339 | |
| 4340 | |
| 4341 | echo $ac_n "checking --with-gtk-exec-prefix argument""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4342 | echo "configure:4343: checking --with-gtk-exec-prefix argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4343 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
| 4344 | if test "${with_gtk_exec_prefix+set}" = set; then |
| 4345 | withval="$with_gtk_exec_prefix" |
| 4346 | gtk_config_exec_prefix="$withval"; echo "$ac_t""$gtk_config_prefix" 1>&6 |
| 4347 | else |
| 4348 | gtk_config_exec_prefix=""; echo "$ac_t""no" 1>&6 |
| 4349 | fi |
| 4350 | |
| 4351 | |
| 4352 | echo $ac_n "checking --disable-gtktest argument""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4353 | echo "configure:4354: checking --disable-gtktest argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4354 | # Check whether --enable-gtktest or --disable-gtktest was given. |
| 4355 | if test "${enable_gtktest+set}" = set; then |
| 4356 | enableval="$enable_gtktest" |
| 4357 | : |
| 4358 | else |
| 4359 | enable_gtktest=yes |
| 4360 | fi |
| 4361 | |
| 4362 | if test "x$enable_gtktest" = "xyes" ; then |
| 4363 | echo "$ac_t""gtk test enabled" 1>&6 |
| 4364 | else |
| 4365 | echo "$ac_t""gtk test disabled" 1>&6 |
| 4366 | fi |
| 4367 | |
| 4368 | if test "x$gtk_config_prefix" != "x" ; then |
| 4369 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
| 4370 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
| 4371 | fi |
| 4372 | if test "x$gtk_config_exec_prefix" != "x" ; then |
| 4373 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
| 4374 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
| 4375 | fi |
| 4376 | if test "X$GTK_CONFIG" = "X"; then |
| 4377 | # Extract the first word of "gtk-config", so it can be a program name with args. |
| 4378 | set dummy gtk-config; ac_word=$2 |
| 4379 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4380 | echo "configure:4381: checking for $ac_word" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4381 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
| 4382 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4383 | else |
| 4384 | case "$GTK_CONFIG" in |
| 4385 | /*) |
| 4386 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
| 4387 | ;; |
| 4388 | ?:/*) |
| 4389 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. |
| 4390 | ;; |
| 4391 | *) |
| 4392 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4393 | ac_dummy="$PATH" |
| 4394 | for ac_dir in $ac_dummy; do |
| 4395 | test -z "$ac_dir" && ac_dir=. |
| 4396 | if test -f $ac_dir/$ac_word; then |
| 4397 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" |
| 4398 | break |
| 4399 | fi |
| 4400 | done |
| 4401 | IFS="$ac_save_ifs" |
| 4402 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
| 4403 | ;; |
| 4404 | esac |
| 4405 | fi |
| 4406 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
| 4407 | if test -n "$GTK_CONFIG"; then |
| 4408 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
| 4409 | else |
| 4410 | echo "$ac_t""no" 1>&6 |
| 4411 | fi |
| 4412 | |
| 4413 | if test "X$GTK_CONFIG" = "Xno"; then |
| 4414 | # Extract the first word of "gtk12-config", so it can be a program name with args. |
| 4415 | set dummy gtk12-config; ac_word=$2 |
| 4416 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4417 | echo "configure:4418: checking for $ac_word" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4418 | if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then |
| 4419 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4420 | else |
| 4421 | case "$GTK12_CONFIG" in |
| 4422 | /*) |
| 4423 | ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. |
| 4424 | ;; |
| 4425 | ?:/*) |
| 4426 | ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path. |
| 4427 | ;; |
| 4428 | *) |
| 4429 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4430 | ac_dummy="$PATH" |
| 4431 | for ac_dir in $ac_dummy; do |
| 4432 | test -z "$ac_dir" && ac_dir=. |
| 4433 | if test -f $ac_dir/$ac_word; then |
| 4434 | ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word" |
| 4435 | break |
| 4436 | fi |
| 4437 | done |
| 4438 | IFS="$ac_save_ifs" |
| 4439 | test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" |
| 4440 | ;; |
| 4441 | esac |
| 4442 | fi |
| 4443 | GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG" |
| 4444 | if test -n "$GTK12_CONFIG"; then |
| 4445 | echo "$ac_t""$GTK12_CONFIG" 1>&6 |
| 4446 | else |
| 4447 | echo "$ac_t""no" 1>&6 |
| 4448 | fi |
| 4449 | |
| 4450 | GTK_CONFIG="$GTK12_CONFIG" |
| 4451 | fi |
| 4452 | else |
| 4453 | echo "$ac_t""Using GTK configuration program $GTK_CONFIG" 1>&6 |
| 4454 | fi |
| 4455 | if test "X$PKG_CONFIG" = "X"; then |
| 4456 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4457 | set dummy pkg-config; ac_word=$2 |
| 4458 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4459 | echo "configure:4460: checking for $ac_word" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4460 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
| 4461 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4462 | else |
| 4463 | case "$PKG_CONFIG" in |
| 4464 | /*) |
| 4465 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4466 | ;; |
| 4467 | ?:/*) |
| 4468 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. |
| 4469 | ;; |
| 4470 | *) |
| 4471 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4472 | ac_dummy="$PATH" |
| 4473 | for ac_dir in $ac_dummy; do |
| 4474 | test -z "$ac_dir" && ac_dir=. |
| 4475 | if test -f $ac_dir/$ac_word; then |
| 4476 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" |
| 4477 | break |
| 4478 | fi |
| 4479 | done |
| 4480 | IFS="$ac_save_ifs" |
| 4481 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 4482 | ;; |
| 4483 | esac |
| 4484 | fi |
| 4485 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4486 | if test -n "$PKG_CONFIG"; then |
| 4487 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
| 4488 | else |
| 4489 | echo "$ac_t""no" 1>&6 |
| 4490 | fi |
| 4491 | |
| 4492 | fi |
| 4493 | |
| 4494 | if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then |
| 4495 | if test "X$SKIP_GTK2" != "XYES"; then |
| 4496 | |
| 4497 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 4498 | { |
| 4499 | min_gtk_version=2.2.0 |
| 4500 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4501 | echo "configure:4502: checking for GTK - version >= $min_gtk_version" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4502 | no_gtk="" |
| 4503 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 4504 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 4505 | { |
| 4506 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
| 4507 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 4508 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 4509 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 4510 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 4511 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 4512 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 4513 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 4514 | } |
| 4515 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 4516 | { |
| 4517 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
| 4518 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 4519 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 4520 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 4521 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 4522 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 4523 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 4524 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 4525 | } |
| 4526 | else |
| 4527 | no_gtk=yes |
| 4528 | fi |
| 4529 | |
| 4530 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 4531 | { |
| 4532 | ac_save_CFLAGS="$CFLAGS" |
| 4533 | ac_save_LIBS="$LIBS" |
| 4534 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 4535 | LIBS="$LIBS $GTK_LIBS" |
| 4536 | |
| 4537 | rm -f conf.gtktest |
| 4538 | if test "$cross_compiling" = yes; then |
| 4539 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 4540 | else |
| 4541 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4542 | #line 4543 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4543 | #include "confdefs.h" |
| 4544 | |
| 4545 | #include <gtk/gtk.h> |
| 4546 | #include <stdio.h> |
| 4547 | |
| 4548 | int |
| 4549 | main () |
| 4550 | { |
| 4551 | int major, minor, micro; |
| 4552 | char *tmp_version; |
| 4553 | |
| 4554 | system ("touch conf.gtktest"); |
| 4555 | |
| 4556 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 4557 | tmp_version = g_strdup("$min_gtk_version"); |
| 4558 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 4559 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 4560 | exit(1); |
| 4561 | } |
| 4562 | |
| 4563 | if ((gtk_major_version > major) || |
| 4564 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 4565 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 4566 | (gtk_micro_version >= micro))) |
| 4567 | { |
| 4568 | return 0; |
| 4569 | } |
| 4570 | return 1; |
| 4571 | } |
| 4572 | |
| 4573 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4574 | if { (eval echo configure:4575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4575 | then |
| 4576 | : |
| 4577 | else |
| 4578 | echo "configure: failed program was:" >&5 |
| 4579 | cat conftest.$ac_ext >&5 |
| 4580 | rm -fr conftest* |
| 4581 | no_gtk=yes |
| 4582 | fi |
| 4583 | rm -fr conftest* |
| 4584 | fi |
| 4585 | |
| 4586 | CFLAGS="$ac_save_CFLAGS" |
| 4587 | LIBS="$ac_save_LIBS" |
| 4588 | } |
| 4589 | fi |
| 4590 | if test "x$no_gtk" = x ; then |
| 4591 | if test "x$enable_gtktest" = "xyes"; then |
| 4592 | echo "$ac_t""yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6 |
| 4593 | else |
| 4594 | echo "$ac_t""found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6 |
| 4595 | fi |
| 4596 | GTK_LIBNAME="$GTK_LIBS" |
| 4597 | GUI_INC_LOC="$GTK_CFLAGS" |
| 4598 | else |
| 4599 | { |
| 4600 | echo "$ac_t""no" 1>&6 |
| 4601 | GTK_CFLAGS="" |
| 4602 | GTK_LIBS="" |
| 4603 | : |
| 4604 | } |
| 4605 | fi |
| 4606 | } |
| 4607 | else |
| 4608 | GTK_CFLAGS="" |
| 4609 | GTK_LIBS="" |
| 4610 | : |
| 4611 | fi |
| 4612 | |
| 4613 | |
| 4614 | rm -f conf.gtktest |
| 4615 | |
| 4616 | if test "x$GTK_CFLAGS" != "x"; then |
| 4617 | SKIP_ATHENA=YES |
| 4618 | SKIP_NEXTAW=YES |
| 4619 | SKIP_MOTIF=YES |
| 4620 | GUITYPE=GTK |
| 4621 | |
| 4622 | fi |
| 4623 | fi |
| 4624 | |
| 4625 | if test "x$GUITYPE" != "xGTK"; then |
| 4626 | SKIP_GTK2=YES |
| 4627 | |
| 4628 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 4629 | { |
| 4630 | min_gtk_version=1.1.16 |
| 4631 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4632 | echo "configure:4633: checking for GTK - version >= $min_gtk_version" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4633 | no_gtk="" |
| 4634 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 4635 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 4636 | { |
| 4637 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
| 4638 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 4639 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 4640 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 4641 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 4642 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 4643 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 4644 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 4645 | } |
| 4646 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 4647 | { |
| 4648 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
| 4649 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 4650 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 4651 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 4652 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 4653 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 4654 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 4655 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 4656 | } |
| 4657 | else |
| 4658 | no_gtk=yes |
| 4659 | fi |
| 4660 | |
| 4661 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 4662 | { |
| 4663 | ac_save_CFLAGS="$CFLAGS" |
| 4664 | ac_save_LIBS="$LIBS" |
| 4665 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 4666 | LIBS="$LIBS $GTK_LIBS" |
| 4667 | |
| 4668 | rm -f conf.gtktest |
| 4669 | if test "$cross_compiling" = yes; then |
| 4670 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 4671 | else |
| 4672 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4673 | #line 4674 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4674 | #include "confdefs.h" |
| 4675 | |
| 4676 | #include <gtk/gtk.h> |
| 4677 | #include <stdio.h> |
| 4678 | |
| 4679 | int |
| 4680 | main () |
| 4681 | { |
| 4682 | int major, minor, micro; |
| 4683 | char *tmp_version; |
| 4684 | |
| 4685 | system ("touch conf.gtktest"); |
| 4686 | |
| 4687 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 4688 | tmp_version = g_strdup("$min_gtk_version"); |
| 4689 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 4690 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 4691 | exit(1); |
| 4692 | } |
| 4693 | |
| 4694 | if ((gtk_major_version > major) || |
| 4695 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 4696 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 4697 | (gtk_micro_version >= micro))) |
| 4698 | { |
| 4699 | return 0; |
| 4700 | } |
| 4701 | return 1; |
| 4702 | } |
| 4703 | |
| 4704 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4705 | if { (eval echo configure:4706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4706 | then |
| 4707 | : |
| 4708 | else |
| 4709 | echo "configure: failed program was:" >&5 |
| 4710 | cat conftest.$ac_ext >&5 |
| 4711 | rm -fr conftest* |
| 4712 | no_gtk=yes |
| 4713 | fi |
| 4714 | rm -fr conftest* |
| 4715 | fi |
| 4716 | |
| 4717 | CFLAGS="$ac_save_CFLAGS" |
| 4718 | LIBS="$ac_save_LIBS" |
| 4719 | } |
| 4720 | fi |
| 4721 | if test "x$no_gtk" = x ; then |
| 4722 | if test "x$enable_gtktest" = "xyes"; then |
| 4723 | echo "$ac_t""yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6 |
| 4724 | else |
| 4725 | echo "$ac_t""found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6 |
| 4726 | fi |
| 4727 | GTK_LIBNAME="$GTK_LIBS" |
| 4728 | GUI_INC_LOC="$GTK_CFLAGS" |
| 4729 | else |
| 4730 | { |
| 4731 | echo "$ac_t""no" 1>&6 |
| 4732 | GTK_CFLAGS="" |
| 4733 | GTK_LIBS="" |
| 4734 | : |
| 4735 | } |
| 4736 | fi |
| 4737 | } |
| 4738 | else |
| 4739 | GTK_CFLAGS="" |
| 4740 | GTK_LIBS="" |
| 4741 | : |
| 4742 | fi |
| 4743 | |
| 4744 | |
| 4745 | rm -f conf.gtktest |
| 4746 | |
| 4747 | if test "x$GTK_CFLAGS" != "x"; then |
| 4748 | SKIP_ATHENA=YES |
| 4749 | SKIP_NEXTAW=YES |
| 4750 | SKIP_MOTIF=YES |
| 4751 | GUITYPE=GTK |
| 4752 | |
| 4753 | fi |
| 4754 | fi |
| 4755 | fi |
| 4756 | if test "x$GUITYPE" = "xGTK"; then |
| 4757 | if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ |
| 4758 | -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then |
| 4759 | echo "$ac_t""this GTK version is old; version 1.2.3 or later is recommended" 1>&6 |
| 4760 | else |
| 4761 | { |
| 4762 | if test "0$gtk_major_version" -ge 2; then |
| 4763 | cat >> confdefs.h <<\EOF |
| 4764 | #define HAVE_GTK2 1 |
| 4765 | EOF |
| 4766 | |
| 4767 | if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ |
| 4768 | || test "0$gtk_minor_version" -ge 2 \ |
| 4769 | || test "0$gtk_major_version" -gt 2; then |
| 4770 | cat >> confdefs.h <<\EOF |
| 4771 | #define HAVE_GTK_MULTIHEAD 1 |
| 4772 | EOF |
| 4773 | |
| 4774 | fi |
| 4775 | fi |
| 4776 | if test -z "$SKIP_GNOME"; then |
| 4777 | { |
| 4778 | |
| 4779 | |
| 4780 | |
| 4781 | |
| 4782 | |
| 4783 | # Check whether --with-gnome-includes or --without-gnome-includes was given. |
| 4784 | if test "${with_gnome_includes+set}" = set; then |
| 4785 | withval="$with_gnome_includes" |
| 4786 | CFLAGS="$CFLAGS -I$withval" |
| 4787 | |
| 4788 | fi |
| 4789 | |
| 4790 | |
| 4791 | # Check whether --with-gnome-libs or --without-gnome-libs was given. |
| 4792 | if test "${with_gnome_libs+set}" = set; then |
| 4793 | withval="$with_gnome_libs" |
| 4794 | LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
| 4795 | |
| 4796 | fi |
| 4797 | |
| 4798 | |
| 4799 | # Check whether --with-gnome or --without-gnome was given. |
| 4800 | if test "${with_gnome+set}" = set; then |
| 4801 | withval="$with_gnome" |
| 4802 | if test x$withval = xyes; then |
| 4803 | want_gnome=yes |
| 4804 | have_gnome=yes |
| 4805 | else |
| 4806 | if test "x$withval" = xno; then |
| 4807 | want_gnome=no |
| 4808 | else |
| 4809 | want_gnome=yes |
| 4810 | LDFLAGS="$LDFLAGS -L$withval/lib" |
| 4811 | CFLAGS="$CFLAGS -I$withval/include" |
| 4812 | gnome_prefix=$withval/lib |
| 4813 | fi |
| 4814 | fi |
| 4815 | else |
| 4816 | want_gnome=yes |
| 4817 | fi |
| 4818 | |
| 4819 | |
| 4820 | if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then |
| 4821 | { |
| 4822 | echo $ac_n "checking for libgnomeui-2.0""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4823 | echo "configure:4824: checking for libgnomeui-2.0" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4824 | if $PKG_CONFIG --exists libgnomeui-2.0; then |
| 4825 | echo "$ac_t""yes" 1>&6 |
| 4826 | GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
| 4827 | GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
| 4828 | GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` |
| 4829 | have_gnome=yes |
| 4830 | else |
| 4831 | echo "$ac_t""not found" 1>&6 |
| 4832 | if test "x" = xfail; then |
| 4833 | { echo "configure: error: Could not find libgnomeui-2.0 via pkg-config" 1>&2; exit 1; } |
| 4834 | fi |
| 4835 | fi |
| 4836 | } |
| 4837 | elif test "x$want_gnome" = xyes; then |
| 4838 | { |
| 4839 | # Extract the first word of "gnome-config", so it can be a program name with args. |
| 4840 | set dummy gnome-config; ac_word=$2 |
| 4841 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4842 | echo "configure:4843: checking for $ac_word" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4843 | if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then |
| 4844 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4845 | else |
| 4846 | case "$GNOME_CONFIG" in |
| 4847 | /*) |
| 4848 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
| 4849 | ;; |
| 4850 | ?:/*) |
| 4851 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path. |
| 4852 | ;; |
| 4853 | *) |
| 4854 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4855 | ac_dummy="$PATH" |
| 4856 | for ac_dir in $ac_dummy; do |
| 4857 | test -z "$ac_dir" && ac_dir=. |
| 4858 | if test -f $ac_dir/$ac_word; then |
| 4859 | ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word" |
| 4860 | break |
| 4861 | fi |
| 4862 | done |
| 4863 | IFS="$ac_save_ifs" |
| 4864 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
| 4865 | ;; |
| 4866 | esac |
| 4867 | fi |
| 4868 | GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG" |
| 4869 | if test -n "$GNOME_CONFIG"; then |
| 4870 | echo "$ac_t""$GNOME_CONFIG" 1>&6 |
| 4871 | else |
| 4872 | echo "$ac_t""no" 1>&6 |
| 4873 | fi |
| 4874 | |
| 4875 | if test "$GNOME_CONFIG" = "no"; then |
| 4876 | no_gnome_config="yes" |
| 4877 | else |
| 4878 | echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4879 | echo "configure:4880: checking if $GNOME_CONFIG works" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4880 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
| 4881 | echo "$ac_t""yes" 1>&6 |
| 4882 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" |
| 4883 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
| 4884 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
| 4885 | have_gnome=yes |
| 4886 | else |
| 4887 | echo "$ac_t""no" 1>&6 |
| 4888 | no_gnome_config="yes" |
| 4889 | fi |
| 4890 | fi |
| 4891 | |
| 4892 | if test x$exec_prefix = xNONE; then |
| 4893 | if test x$prefix = xNONE; then |
| 4894 | gnome_prefix=$ac_default_prefix/lib |
| 4895 | else |
| 4896 | gnome_prefix=$prefix/lib |
| 4897 | fi |
| 4898 | else |
| 4899 | gnome_prefix=`eval echo \`echo $libdir\`` |
| 4900 | fi |
| 4901 | |
| 4902 | if test "$no_gnome_config" = "yes"; then |
| 4903 | echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4904 | echo "configure:4905: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4905 | if test -f $gnome_prefix/gnomeConf.sh; then |
| 4906 | echo "$ac_t""found" 1>&6 |
| 4907 | echo "loading gnome configuration from" \ |
| 4908 | "$gnome_prefix/gnomeConf.sh" |
| 4909 | . $gnome_prefix/gnomeConf.sh |
| 4910 | have_gnome=yes |
| 4911 | else |
| 4912 | echo "$ac_t""not found" 1>&6 |
| 4913 | if test x = xfail; then |
| 4914 | { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; } |
| 4915 | fi |
| 4916 | fi |
| 4917 | fi |
| 4918 | } |
| 4919 | fi |
| 4920 | |
| 4921 | if test x$have_gnome = xyes ; then |
| 4922 | cat >> confdefs.h <<\EOF |
| 4923 | #define FEAT_GUI_GNOME 1 |
| 4924 | EOF |
| 4925 | |
| 4926 | GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
| 4927 | GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
| 4928 | fi |
| 4929 | } |
| 4930 | fi |
| 4931 | } |
| 4932 | fi |
| 4933 | fi |
| 4934 | fi |
| 4935 | |
| 4936 | |
| 4937 | if test -z "$SKIP_MOTIF"; then |
| 4938 | gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX" |
| 4939 | GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
| 4940 | |
| 4941 | echo $ac_n "checking for location of Motif GUI includes""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4942 | echo "configure:4943: checking for location of Motif GUI includes" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4943 | gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
| 4944 | GUI_INC_LOC= |
| 4945 | for try in $gui_includes; do |
| 4946 | if test -f "$try/Xm/Xm.h"; then |
| 4947 | GUI_INC_LOC=$try |
| 4948 | fi |
| 4949 | done |
| 4950 | if test -n "$GUI_INC_LOC"; then |
| 4951 | if test "$GUI_INC_LOC" = /usr/include; then |
| 4952 | GUI_INC_LOC= |
| 4953 | echo "$ac_t""in default path" 1>&6 |
| 4954 | else |
| 4955 | echo "$ac_t""$GUI_INC_LOC" 1>&6 |
| 4956 | fi |
| 4957 | else |
| 4958 | echo "$ac_t""<not found>" 1>&6 |
| 4959 | SKIP_MOTIF=YES |
| 4960 | fi |
| 4961 | fi |
| 4962 | |
| 4963 | |
| 4964 | if test -z "$SKIP_MOTIF"; then |
| 4965 | echo $ac_n "checking --with-motif-lib argument""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4966 | echo "configure:4967: checking --with-motif-lib argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4967 | # Check whether --with-motif-lib or --without-motif-lib was given. |
| 4968 | if test "${with_motif_lib+set}" = set; then |
| 4969 | withval="$with_motif_lib" |
| 4970 | MOTIF_LIBNAME="${withval}" |
| 4971 | fi |
| 4972 | |
| 4973 | |
| 4974 | if test -n "$MOTIF_LIBNAME"; then |
| 4975 | echo "$ac_t""$MOTIF_LIBNAME" 1>&6 |
| 4976 | GUI_LIB_LOC= |
| 4977 | else |
| 4978 | echo "$ac_t""no" 1>&6 |
| 4979 | |
| 4980 | GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
| 4981 | |
| 4982 | echo $ac_n "checking for location of Motif GUI libs""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 4983 | echo "configure:4984: checking for location of Motif GUI libs" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4984 | gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC" |
| 4985 | GUI_LIB_LOC= |
| 4986 | for try in $gui_libs; do |
| 4987 | for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl; do |
| 4988 | if test -f "$libtry"; then |
| 4989 | GUI_LIB_LOC=$try |
| 4990 | fi |
| 4991 | done |
| 4992 | done |
| 4993 | if test -n "$GUI_LIB_LOC"; then |
| 4994 | if test "$GUI_LIB_LOC" = /usr/lib; then |
| 4995 | GUI_LIB_LOC= |
| 4996 | echo "$ac_t""in default path" 1>&6 |
| 4997 | else |
| 4998 | if test -n "$GUI_LIB_LOC"; then |
| 4999 | echo "$ac_t""$GUI_LIB_LOC" 1>&6 |
| 5000 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 5001 | uname -r | grep '^5' >/dev/null; then |
| 5002 | GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
| 5003 | fi |
| 5004 | fi |
| 5005 | fi |
| 5006 | MOTIF_LIBNAME=-lXm |
| 5007 | else |
| 5008 | echo "$ac_t""<not found>" 1>&6 |
| 5009 | SKIP_MOTIF=YES |
| 5010 | fi |
| 5011 | fi |
| 5012 | fi |
| 5013 | |
| 5014 | if test -z "$SKIP_MOTIF"; then |
| 5015 | SKIP_ATHENA=YES |
| 5016 | SKIP_NEXTAW=YES |
| 5017 | GUITYPE=MOTIF |
| 5018 | |
| 5019 | fi |
| 5020 | |
| 5021 | |
| 5022 | GUI_X_LIBS= |
| 5023 | |
| 5024 | if test -z "$SKIP_ATHENA"; then |
| 5025 | echo $ac_n "checking if Athena header files can be found""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5026 | echo "configure:5027: checking if Athena header files can be found" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5027 | cflags_save=$CFLAGS |
| 5028 | CFLAGS="$CFLAGS $X_CFLAGS" |
| 5029 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5030 | #line 5031 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5031 | #include "confdefs.h" |
| 5032 | |
| 5033 | #include <X11/Intrinsic.h> |
| 5034 | #include <X11/Xaw/Paned.h> |
| 5035 | int main() { |
| 5036 | |
| 5037 | ; return 0; } |
| 5038 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5039 | if { (eval echo configure:5040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5040 | rm -rf conftest* |
| 5041 | echo "$ac_t""yes" 1>&6 |
| 5042 | else |
| 5043 | echo "configure: failed program was:" >&5 |
| 5044 | cat conftest.$ac_ext >&5 |
| 5045 | rm -rf conftest* |
| 5046 | echo "$ac_t""no" 1>&6; SKIP_ATHENA=YES |
| 5047 | fi |
| 5048 | rm -f conftest* |
| 5049 | CFLAGS=$cflags_save |
| 5050 | fi |
| 5051 | |
| 5052 | if test -z "$SKIP_ATHENA"; then |
| 5053 | GUITYPE=ATHENA |
| 5054 | fi |
| 5055 | |
| 5056 | if test -z "$SKIP_NEXTAW"; then |
| 5057 | echo $ac_n "checking if neXtaw header files can be found""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5058 | echo "configure:5059: checking if neXtaw header files can be found" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5059 | cflags_save=$CFLAGS |
| 5060 | CFLAGS="$CFLAGS $X_CFLAGS" |
| 5061 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5062 | #line 5063 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5063 | #include "confdefs.h" |
| 5064 | |
| 5065 | #include <X11/Intrinsic.h> |
| 5066 | #include <X11/neXtaw/Paned.h> |
| 5067 | int main() { |
| 5068 | |
| 5069 | ; return 0; } |
| 5070 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5071 | if { (eval echo configure:5072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5072 | rm -rf conftest* |
| 5073 | echo "$ac_t""yes" 1>&6 |
| 5074 | else |
| 5075 | echo "configure: failed program was:" >&5 |
| 5076 | cat conftest.$ac_ext >&5 |
| 5077 | rm -rf conftest* |
| 5078 | echo "$ac_t""no" 1>&6; SKIP_NEXTAW=YES |
| 5079 | fi |
| 5080 | rm -f conftest* |
| 5081 | CFLAGS=$cflags_save |
| 5082 | fi |
| 5083 | |
| 5084 | if test -z "$SKIP_NEXTAW"; then |
| 5085 | GUITYPE=NEXTAW |
| 5086 | fi |
| 5087 | |
| 5088 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 5089 | if test -n "$GUI_INC_LOC"; then |
| 5090 | GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" |
| 5091 | fi |
| 5092 | if test -n "$GUI_LIB_LOC"; then |
| 5093 | GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
| 5094 | fi |
| 5095 | |
| 5096 | ldflags_save=$LDFLAGS |
| 5097 | LDFLAGS="$X_LIBS $LDFLAGS" |
| 5098 | echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5099 | echo "configure:5100: checking for XShapeQueryExtension in -lXext" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5100 | ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'` |
| 5101 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 5102 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5103 | else |
| 5104 | ac_save_LIBS="$LIBS" |
| 5105 | LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 5106 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5107 | #line 5108 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5108 | #include "confdefs.h" |
| 5109 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5110 | /* We use char because int might match the return type of a gcc2 |
| 5111 | builtin and then its argument prototype would still apply. */ |
| 5112 | char XShapeQueryExtension(); |
| 5113 | |
| 5114 | int main() { |
| 5115 | XShapeQueryExtension() |
| 5116 | ; return 0; } |
| 5117 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5118 | if { (eval echo configure:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5119 | rm -rf conftest* |
| 5120 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 5121 | else |
| 5122 | echo "configure: failed program was:" >&5 |
| 5123 | cat conftest.$ac_ext >&5 |
| 5124 | rm -rf conftest* |
| 5125 | eval "ac_cv_lib_$ac_lib_var=no" |
| 5126 | fi |
| 5127 | rm -f conftest* |
| 5128 | LIBS="$ac_save_LIBS" |
| 5129 | |
| 5130 | fi |
| 5131 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 5132 | echo "$ac_t""yes" 1>&6 |
| 5133 | GUI_X_LIBS="-lXext" |
| 5134 | else |
| 5135 | echo "$ac_t""no" 1>&6 |
| 5136 | fi |
| 5137 | |
| 5138 | echo $ac_n "checking for wslen in -lw""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5139 | echo "configure:5140: checking for wslen in -lw" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5140 | ac_lib_var=`echo w'_'wslen | sed 'y%./+-%__p_%'` |
| 5141 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 5142 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5143 | else |
| 5144 | ac_save_LIBS="$LIBS" |
| 5145 | LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 5146 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5147 | #line 5148 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5148 | #include "confdefs.h" |
| 5149 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5150 | /* We use char because int might match the return type of a gcc2 |
| 5151 | builtin and then its argument prototype would still apply. */ |
| 5152 | char wslen(); |
| 5153 | |
| 5154 | int main() { |
| 5155 | wslen() |
| 5156 | ; return 0; } |
| 5157 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5158 | if { (eval echo configure:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5159 | rm -rf conftest* |
| 5160 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 5161 | else |
| 5162 | echo "configure: failed program was:" >&5 |
| 5163 | cat conftest.$ac_ext >&5 |
| 5164 | rm -rf conftest* |
| 5165 | eval "ac_cv_lib_$ac_lib_var=no" |
| 5166 | fi |
| 5167 | rm -f conftest* |
| 5168 | LIBS="$ac_save_LIBS" |
| 5169 | |
| 5170 | fi |
| 5171 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 5172 | echo "$ac_t""yes" 1>&6 |
| 5173 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
| 5174 | else |
| 5175 | echo "$ac_t""no" 1>&6 |
| 5176 | fi |
| 5177 | |
| 5178 | echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5179 | echo "configure:5180: checking for dlsym in -ldl" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5180 | ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'` |
| 5181 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 5182 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5183 | else |
| 5184 | ac_save_LIBS="$LIBS" |
| 5185 | LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 5186 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5187 | #line 5188 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5188 | #include "confdefs.h" |
| 5189 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5190 | /* We use char because int might match the return type of a gcc2 |
| 5191 | builtin and then its argument prototype would still apply. */ |
| 5192 | char dlsym(); |
| 5193 | |
| 5194 | int main() { |
| 5195 | dlsym() |
| 5196 | ; return 0; } |
| 5197 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5198 | if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5199 | rm -rf conftest* |
| 5200 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 5201 | else |
| 5202 | echo "configure: failed program was:" >&5 |
| 5203 | cat conftest.$ac_ext >&5 |
| 5204 | rm -rf conftest* |
| 5205 | eval "ac_cv_lib_$ac_lib_var=no" |
| 5206 | fi |
| 5207 | rm -f conftest* |
| 5208 | LIBS="$ac_save_LIBS" |
| 5209 | |
| 5210 | fi |
| 5211 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 5212 | echo "$ac_t""yes" 1>&6 |
| 5213 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
| 5214 | else |
| 5215 | echo "$ac_t""no" 1>&6 |
| 5216 | fi |
| 5217 | |
| 5218 | echo $ac_n "checking for XmuCreateStippledPixmap in -lXmu""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5219 | echo "configure:5220: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5220 | ac_lib_var=`echo Xmu'_'XmuCreateStippledPixmap | sed 'y%./+-%__p_%'` |
| 5221 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 5222 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5223 | else |
| 5224 | ac_save_LIBS="$LIBS" |
| 5225 | LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 5226 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5227 | #line 5228 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5228 | #include "confdefs.h" |
| 5229 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5230 | /* We use char because int might match the return type of a gcc2 |
| 5231 | builtin and then its argument prototype would still apply. */ |
| 5232 | char XmuCreateStippledPixmap(); |
| 5233 | |
| 5234 | int main() { |
| 5235 | XmuCreateStippledPixmap() |
| 5236 | ; return 0; } |
| 5237 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5238 | if { (eval echo configure:5239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5239 | rm -rf conftest* |
| 5240 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 5241 | else |
| 5242 | echo "configure: failed program was:" >&5 |
| 5243 | cat conftest.$ac_ext >&5 |
| 5244 | rm -rf conftest* |
| 5245 | eval "ac_cv_lib_$ac_lib_var=no" |
| 5246 | fi |
| 5247 | rm -f conftest* |
| 5248 | LIBS="$ac_save_LIBS" |
| 5249 | |
| 5250 | fi |
| 5251 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 5252 | echo "$ac_t""yes" 1>&6 |
| 5253 | GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
| 5254 | else |
| 5255 | echo "$ac_t""no" 1>&6 |
| 5256 | fi |
| 5257 | |
| 5258 | if test -z "$SKIP_MOTIF"; then |
| 5259 | echo $ac_n "checking for XpEndJob in -lXp""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5260 | echo "configure:5261: checking for XpEndJob in -lXp" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5261 | ac_lib_var=`echo Xp'_'XpEndJob | sed 'y%./+-%__p_%'` |
| 5262 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 5263 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5264 | else |
| 5265 | ac_save_LIBS="$LIBS" |
| 5266 | LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 5267 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5268 | #line 5269 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5269 | #include "confdefs.h" |
| 5270 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5271 | /* We use char because int might match the return type of a gcc2 |
| 5272 | builtin and then its argument prototype would still apply. */ |
| 5273 | char XpEndJob(); |
| 5274 | |
| 5275 | int main() { |
| 5276 | XpEndJob() |
| 5277 | ; return 0; } |
| 5278 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5279 | if { (eval echo configure:5280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5280 | rm -rf conftest* |
| 5281 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 5282 | else |
| 5283 | echo "configure: failed program was:" >&5 |
| 5284 | cat conftest.$ac_ext >&5 |
| 5285 | rm -rf conftest* |
| 5286 | eval "ac_cv_lib_$ac_lib_var=no" |
| 5287 | fi |
| 5288 | rm -f conftest* |
| 5289 | LIBS="$ac_save_LIBS" |
| 5290 | |
| 5291 | fi |
| 5292 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 5293 | echo "$ac_t""yes" 1>&6 |
| 5294 | GUI_X_LIBS="-lXp $GUI_X_LIBS" |
| 5295 | else |
| 5296 | echo "$ac_t""no" 1>&6 |
| 5297 | fi |
| 5298 | |
| 5299 | fi |
| 5300 | LDFLAGS=$ldflags_save |
| 5301 | |
| 5302 | echo $ac_n "checking for extra X11 defines""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5303 | echo "configure:5304: checking for extra X11 defines" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5304 | NARROW_PROTO= |
| 5305 | rm -fr conftestdir |
| 5306 | if mkdir conftestdir; then |
| 5307 | cd conftestdir |
| 5308 | cat > Imakefile <<'EOF' |
| 5309 | acfindx: |
| 5310 | @echo 'NARROW_PROTO="${PROTO_DEFINES}"' |
| 5311 | EOF |
| 5312 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 5313 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 5314 | fi |
| 5315 | cd .. |
| 5316 | rm -fr conftestdir |
| 5317 | fi |
| 5318 | if test -z "$NARROW_PROTO"; then |
| 5319 | echo "$ac_t""no" 1>&6 |
| 5320 | else |
| 5321 | echo "$ac_t""$NARROW_PROTO" 1>&6 |
| 5322 | fi |
| 5323 | |
| 5324 | fi |
| 5325 | |
| 5326 | if test "$enable_xsmp" = "yes"; then |
| 5327 | cppflags_save=$CPPFLAGS |
| 5328 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 5329 | for ac_hdr in X11/SM/SMlib.h |
| 5330 | do |
| 5331 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5332 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5333 | echo "configure:5334: checking for $ac_hdr" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5334 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5335 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5336 | else |
| 5337 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5338 | #line 5339 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5339 | #include "confdefs.h" |
| 5340 | #include <$ac_hdr> |
| 5341 | EOF |
| 5342 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5343 | { (eval echo configure:5344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5344 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5345 | if test -z "$ac_err"; then |
| 5346 | rm -rf conftest* |
| 5347 | eval "ac_cv_header_$ac_safe=yes" |
| 5348 | else |
| 5349 | echo "$ac_err" >&5 |
| 5350 | echo "configure: failed program was:" >&5 |
| 5351 | cat conftest.$ac_ext >&5 |
| 5352 | rm -rf conftest* |
| 5353 | eval "ac_cv_header_$ac_safe=no" |
| 5354 | fi |
| 5355 | rm -f conftest* |
| 5356 | fi |
| 5357 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5358 | echo "$ac_t""yes" 1>&6 |
| 5359 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5360 | cat >> confdefs.h <<EOF |
| 5361 | #define $ac_tr_hdr 1 |
| 5362 | EOF |
| 5363 | |
| 5364 | else |
| 5365 | echo "$ac_t""no" 1>&6 |
| 5366 | fi |
| 5367 | done |
| 5368 | |
| 5369 | CPPFLAGS=$cppflags_save |
| 5370 | fi |
| 5371 | |
| 5372 | |
| 5373 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then |
| 5374 | cppflags_save=$CPPFLAGS |
| 5375 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 5376 | for ac_hdr in X11/xpm.h X11/Sunkeysym.h |
| 5377 | do |
| 5378 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5379 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5380 | echo "configure:5381: checking for $ac_hdr" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5381 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5382 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5383 | else |
| 5384 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5385 | #line 5386 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5386 | #include "confdefs.h" |
| 5387 | #include <$ac_hdr> |
| 5388 | EOF |
| 5389 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5390 | { (eval echo configure:5391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5391 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5392 | if test -z "$ac_err"; then |
| 5393 | rm -rf conftest* |
| 5394 | eval "ac_cv_header_$ac_safe=yes" |
| 5395 | else |
| 5396 | echo "$ac_err" >&5 |
| 5397 | echo "configure: failed program was:" >&5 |
| 5398 | cat conftest.$ac_ext >&5 |
| 5399 | rm -rf conftest* |
| 5400 | eval "ac_cv_header_$ac_safe=no" |
| 5401 | fi |
| 5402 | rm -f conftest* |
| 5403 | fi |
| 5404 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5405 | echo "$ac_t""yes" 1>&6 |
| 5406 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5407 | cat >> confdefs.h <<EOF |
| 5408 | #define $ac_tr_hdr 1 |
| 5409 | EOF |
| 5410 | |
| 5411 | else |
| 5412 | echo "$ac_t""no" 1>&6 |
| 5413 | fi |
| 5414 | done |
| 5415 | |
| 5416 | |
| 5417 | if test ! "$enable_xim" = "no"; then |
| 5418 | echo $ac_n "checking for XIMText in X11/Xlib.h""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5419 | echo "configure:5420: checking for XIMText in X11/Xlib.h" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5420 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5421 | #line 5422 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5422 | #include "confdefs.h" |
| 5423 | #include <X11/Xlib.h> |
| 5424 | EOF |
| 5425 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5426 | egrep "XIMText" >/dev/null 2>&1; then |
| 5427 | rm -rf conftest* |
| 5428 | echo "$ac_t""yes" 1>&6 |
| 5429 | else |
| 5430 | rm -rf conftest* |
| 5431 | echo "$ac_t""no; xim has been disabled" 1>&6; enable_xim = "no" |
| 5432 | fi |
| 5433 | rm -f conftest* |
| 5434 | |
| 5435 | fi |
| 5436 | CPPFLAGS=$cppflags_save |
| 5437 | |
| 5438 | if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ |
| 5439 | -a "x$GUITYPE" != "xNONE" ; then |
| 5440 | echo "$ac_t""X GUI selected; xim has been enabled" 1>&6 |
| 5441 | enable_xim="yes" |
| 5442 | fi |
| 5443 | fi |
| 5444 | |
| 5445 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 5446 | cppflags_save=$CPPFLAGS |
| 5447 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 5448 | for ac_hdr in X11/Xmu/Editres.h |
| 5449 | do |
| 5450 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5451 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5452 | echo "configure:5453: checking for $ac_hdr" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5453 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5454 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5455 | else |
| 5456 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5457 | #line 5458 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5458 | #include "confdefs.h" |
| 5459 | #include <$ac_hdr> |
| 5460 | EOF |
| 5461 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5462 | { (eval echo configure:5463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5463 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5464 | if test -z "$ac_err"; then |
| 5465 | rm -rf conftest* |
| 5466 | eval "ac_cv_header_$ac_safe=yes" |
| 5467 | else |
| 5468 | echo "$ac_err" >&5 |
| 5469 | echo "configure: failed program was:" >&5 |
| 5470 | cat conftest.$ac_ext >&5 |
| 5471 | rm -rf conftest* |
| 5472 | eval "ac_cv_header_$ac_safe=no" |
| 5473 | fi |
| 5474 | rm -f conftest* |
| 5475 | fi |
| 5476 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5477 | echo "$ac_t""yes" 1>&6 |
| 5478 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5479 | cat >> confdefs.h <<EOF |
| 5480 | #define $ac_tr_hdr 1 |
| 5481 | EOF |
| 5482 | |
| 5483 | else |
| 5484 | echo "$ac_t""no" 1>&6 |
| 5485 | fi |
| 5486 | done |
| 5487 | |
| 5488 | CPPFLAGS=$cppflags_save |
| 5489 | fi |
| 5490 | |
| 5491 | if test -z "$SKIP_MOTIF"; then |
| 5492 | cppflags_save=$CPPFLAGS |
| 5493 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 5494 | for ac_hdr in Xm/Xm.h Xm/XpmP.h |
| 5495 | do |
| 5496 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5497 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5498 | echo "configure:5499: checking for $ac_hdr" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5499 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5500 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5501 | else |
| 5502 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5503 | #line 5504 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5504 | #include "confdefs.h" |
| 5505 | #include <$ac_hdr> |
| 5506 | EOF |
| 5507 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5508 | { (eval echo configure:5509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5509 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5510 | if test -z "$ac_err"; then |
| 5511 | rm -rf conftest* |
| 5512 | eval "ac_cv_header_$ac_safe=yes" |
| 5513 | else |
| 5514 | echo "$ac_err" >&5 |
| 5515 | echo "configure: failed program was:" >&5 |
| 5516 | cat conftest.$ac_ext >&5 |
| 5517 | rm -rf conftest* |
| 5518 | eval "ac_cv_header_$ac_safe=no" |
| 5519 | fi |
| 5520 | rm -f conftest* |
| 5521 | fi |
| 5522 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5523 | echo "$ac_t""yes" 1>&6 |
| 5524 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5525 | cat >> confdefs.h <<EOF |
| 5526 | #define $ac_tr_hdr 1 |
| 5527 | EOF |
| 5528 | |
| 5529 | else |
| 5530 | echo "$ac_t""no" 1>&6 |
| 5531 | fi |
| 5532 | done |
| 5533 | |
| 5534 | CPPFLAGS=$cppflags_save |
| 5535 | fi |
| 5536 | |
| 5537 | if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
| 5538 | echo "$ac_t""no GUI selected; xim has been disabled" 1>&6 |
| 5539 | enable_xim="no" |
| 5540 | fi |
| 5541 | if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
| 5542 | echo "$ac_t""no GUI selected; fontset has been disabled" 1>&6 |
| 5543 | enable_fontset="no" |
| 5544 | fi |
| 5545 | if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then |
| 5546 | echo "$ac_t""GTK+ 2 GUI selected; fontset has been disabled" 1>&6 |
| 5547 | enable_fontset="no" |
| 5548 | fi |
| 5549 | |
| 5550 | if test -z "$SKIP_BEOS"; then |
| 5551 | GUITYPE=BEOSGUI |
| 5552 | fi |
| 5553 | |
| 5554 | if test -z "$SKIP_PHOTON"; then |
| 5555 | GUITYPE=PHOTONGUI |
| 5556 | fi |
| 5557 | |
| 5558 | |
| 5559 | |
| 5560 | |
| 5561 | |
| 5562 | |
| 5563 | if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
| 5564 | { echo "configure: error: cannot use workshop without Motif" 1>&2; exit 1; } |
| 5565 | fi |
| 5566 | |
| 5567 | if test "$enable_xim" = "yes"; then |
| 5568 | cat >> confdefs.h <<\EOF |
| 5569 | #define FEAT_XIM 1 |
| 5570 | EOF |
| 5571 | |
| 5572 | fi |
| 5573 | if test "$enable_fontset" = "yes"; then |
| 5574 | cat >> confdefs.h <<\EOF |
| 5575 | #define FEAT_XFONTSET 1 |
| 5576 | EOF |
| 5577 | |
| 5578 | fi |
| 5579 | |
| 5580 | |
| 5581 | |
| 5582 | |
| 5583 | if test "$enable_hangulinput" = "yes"; then |
| 5584 | if test "x$GUITYPE" = "xNONE"; then |
| 5585 | echo "$ac_t""no GUI selected; hangul input has been disabled" 1>&6 |
| 5586 | enable_hangulinput=no |
| 5587 | else |
| 5588 | cat >> confdefs.h <<\EOF |
| 5589 | #define FEAT_HANGULIN 1 |
| 5590 | EOF |
| 5591 | |
| 5592 | HANGULIN_SRC=hangulin.c |
| 5593 | |
| 5594 | HANGULIN_OBJ=objects/hangulin.o |
| 5595 | |
| 5596 | fi |
| 5597 | fi |
| 5598 | |
| 5599 | |
| 5600 | echo $ac_n "checking quality of toupper""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5601 | echo "configure:5602: checking quality of toupper" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5602 | if test "$cross_compiling" = yes; then |
| 5603 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 5604 | else |
| 5605 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5606 | #line 5607 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5607 | #include "confdefs.h" |
| 5608 | #include <ctype.h> |
| 5609 | main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
| 5610 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5611 | if { (eval echo configure:5612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5612 | then |
| 5613 | cat >> confdefs.h <<\EOF |
| 5614 | #define BROKEN_TOUPPER 1 |
| 5615 | EOF |
| 5616 | echo "$ac_t""bad" 1>&6 |
| 5617 | else |
| 5618 | echo "configure: failed program was:" >&5 |
| 5619 | cat conftest.$ac_ext >&5 |
| 5620 | rm -fr conftest* |
| 5621 | echo "$ac_t""good" 1>&6 |
| 5622 | fi |
| 5623 | rm -fr conftest* |
| 5624 | fi |
| 5625 | |
| 5626 | |
| 5627 | echo $ac_n "checking whether __DATE__ and __TIME__ work""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5628 | echo "configure:5629: checking whether __DATE__ and __TIME__ work" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5629 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5630 | #line 5631 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5631 | #include "confdefs.h" |
| 5632 | |
| 5633 | int main() { |
| 5634 | printf("(" __DATE__ " " __TIME__ ")"); |
| 5635 | ; return 0; } |
| 5636 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5637 | if { (eval echo configure:5638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5638 | rm -rf conftest* |
| 5639 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 5640 | #define HAVE_DATE_TIME 1 |
| 5641 | EOF |
| 5642 | |
| 5643 | else |
| 5644 | echo "configure: failed program was:" >&5 |
| 5645 | cat conftest.$ac_ext >&5 |
| 5646 | rm -rf conftest* |
| 5647 | echo "$ac_t""no" 1>&6 |
| 5648 | fi |
| 5649 | rm -f conftest* |
| 5650 | |
| 5651 | ac_safe=`echo "elf.h" | sed 'y%./+-%__p_%'` |
| 5652 | echo $ac_n "checking for elf.h""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5653 | echo "configure:5654: checking for elf.h" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5654 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5655 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5656 | else |
| 5657 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5658 | #line 5659 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5659 | #include "confdefs.h" |
| 5660 | #include <elf.h> |
| 5661 | EOF |
| 5662 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5663 | { (eval echo configure:5664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5664 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5665 | if test -z "$ac_err"; then |
| 5666 | rm -rf conftest* |
| 5667 | eval "ac_cv_header_$ac_safe=yes" |
| 5668 | else |
| 5669 | echo "$ac_err" >&5 |
| 5670 | echo "configure: failed program was:" >&5 |
| 5671 | cat conftest.$ac_ext >&5 |
| 5672 | rm -rf conftest* |
| 5673 | eval "ac_cv_header_$ac_safe=no" |
| 5674 | fi |
| 5675 | rm -f conftest* |
| 5676 | fi |
| 5677 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5678 | echo "$ac_t""yes" 1>&6 |
| 5679 | HAS_ELF=1 |
| 5680 | else |
| 5681 | echo "$ac_t""no" 1>&6 |
| 5682 | fi |
| 5683 | |
| 5684 | if test "$HAS_ELF" = 1; then |
| 5685 | echo $ac_n "checking for main in -lelf""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5686 | echo "configure:5687: checking for main in -lelf" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5687 | ac_lib_var=`echo elf'_'main | sed 'y%./+-%__p_%'` |
| 5688 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 5689 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5690 | else |
| 5691 | ac_save_LIBS="$LIBS" |
| 5692 | LIBS="-lelf $LIBS" |
| 5693 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5694 | #line 5695 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5695 | #include "confdefs.h" |
| 5696 | |
| 5697 | int main() { |
| 5698 | main() |
| 5699 | ; return 0; } |
| 5700 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5701 | if { (eval echo configure:5702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5702 | rm -rf conftest* |
| 5703 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 5704 | else |
| 5705 | echo "configure: failed program was:" >&5 |
| 5706 | cat conftest.$ac_ext >&5 |
| 5707 | rm -rf conftest* |
| 5708 | eval "ac_cv_lib_$ac_lib_var=no" |
| 5709 | fi |
| 5710 | rm -f conftest* |
| 5711 | LIBS="$ac_save_LIBS" |
| 5712 | |
| 5713 | fi |
| 5714 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 5715 | echo "$ac_t""yes" 1>&6 |
| 5716 | ac_tr_lib=HAVE_LIB`echo elf | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 5717 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 5718 | cat >> confdefs.h <<EOF |
| 5719 | #define $ac_tr_lib 1 |
| 5720 | EOF |
| 5721 | |
| 5722 | LIBS="-lelf $LIBS" |
| 5723 | |
| 5724 | else |
| 5725 | echo "$ac_t""no" 1>&6 |
| 5726 | fi |
| 5727 | |
| 5728 | fi |
| 5729 | |
| 5730 | ac_header_dirent=no |
| 5731 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 5732 | do |
| 5733 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5734 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5735 | echo "configure:5736: checking for $ac_hdr that defines DIR" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5736 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
| 5737 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5738 | else |
| 5739 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5740 | #line 5741 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5741 | #include "confdefs.h" |
| 5742 | #include <sys/types.h> |
| 5743 | #include <$ac_hdr> |
| 5744 | int main() { |
| 5745 | DIR *dirp = 0; |
| 5746 | ; return 0; } |
| 5747 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5748 | if { (eval echo configure:5749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5749 | rm -rf conftest* |
| 5750 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 5751 | else |
| 5752 | echo "configure: failed program was:" >&5 |
| 5753 | cat conftest.$ac_ext >&5 |
| 5754 | rm -rf conftest* |
| 5755 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 5756 | fi |
| 5757 | rm -f conftest* |
| 5758 | fi |
| 5759 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then |
| 5760 | echo "$ac_t""yes" 1>&6 |
| 5761 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5762 | cat >> confdefs.h <<EOF |
| 5763 | #define $ac_tr_hdr 1 |
| 5764 | EOF |
| 5765 | ac_header_dirent=$ac_hdr; break |
| 5766 | else |
| 5767 | echo "$ac_t""no" 1>&6 |
| 5768 | fi |
| 5769 | done |
| 5770 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5771 | if test $ac_header_dirent = dirent.h; then |
| 5772 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5773 | echo "configure:5774: checking for opendir in -ldir" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5774 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
| 5775 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 5776 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5777 | else |
| 5778 | ac_save_LIBS="$LIBS" |
| 5779 | LIBS="-ldir $LIBS" |
| 5780 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5781 | #line 5782 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5782 | #include "confdefs.h" |
| 5783 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5784 | /* We use char because int might match the return type of a gcc2 |
| 5785 | builtin and then its argument prototype would still apply. */ |
| 5786 | char opendir(); |
| 5787 | |
| 5788 | int main() { |
| 5789 | opendir() |
| 5790 | ; return 0; } |
| 5791 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5792 | if { (eval echo configure:5793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5793 | rm -rf conftest* |
| 5794 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 5795 | else |
| 5796 | echo "configure: failed program was:" >&5 |
| 5797 | cat conftest.$ac_ext >&5 |
| 5798 | rm -rf conftest* |
| 5799 | eval "ac_cv_lib_$ac_lib_var=no" |
| 5800 | fi |
| 5801 | rm -f conftest* |
| 5802 | LIBS="$ac_save_LIBS" |
| 5803 | |
| 5804 | fi |
| 5805 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 5806 | echo "$ac_t""yes" 1>&6 |
| 5807 | LIBS="$LIBS -ldir" |
| 5808 | else |
| 5809 | echo "$ac_t""no" 1>&6 |
| 5810 | fi |
| 5811 | |
| 5812 | else |
| 5813 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5814 | echo "configure:5815: checking for opendir in -lx" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5815 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
| 5816 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 5817 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5818 | else |
| 5819 | ac_save_LIBS="$LIBS" |
| 5820 | LIBS="-lx $LIBS" |
| 5821 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5822 | #line 5823 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5823 | #include "confdefs.h" |
| 5824 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5825 | /* We use char because int might match the return type of a gcc2 |
| 5826 | builtin and then its argument prototype would still apply. */ |
| 5827 | char opendir(); |
| 5828 | |
| 5829 | int main() { |
| 5830 | opendir() |
| 5831 | ; return 0; } |
| 5832 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5833 | if { (eval echo configure:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5834 | rm -rf conftest* |
| 5835 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 5836 | else |
| 5837 | echo "configure: failed program was:" >&5 |
| 5838 | cat conftest.$ac_ext >&5 |
| 5839 | rm -rf conftest* |
| 5840 | eval "ac_cv_lib_$ac_lib_var=no" |
| 5841 | fi |
| 5842 | rm -f conftest* |
| 5843 | LIBS="$ac_save_LIBS" |
| 5844 | |
| 5845 | fi |
| 5846 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 5847 | echo "$ac_t""yes" 1>&6 |
| 5848 | LIBS="$LIBS -lx" |
| 5849 | else |
| 5850 | echo "$ac_t""no" 1>&6 |
| 5851 | fi |
| 5852 | |
| 5853 | fi |
| 5854 | |
| 5855 | |
| 5856 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5857 | echo "configure:5858: checking for ANSI C header files" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5858 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 5859 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5860 | else |
| 5861 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5862 | #line 5863 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5863 | #include "confdefs.h" |
| 5864 | #include <stdlib.h> |
| 5865 | #include <stdarg.h> |
| 5866 | #include <string.h> |
| 5867 | #include <float.h> |
| 5868 | EOF |
| 5869 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5870 | { (eval echo configure:5871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5871 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5872 | if test -z "$ac_err"; then |
| 5873 | rm -rf conftest* |
| 5874 | ac_cv_header_stdc=yes |
| 5875 | else |
| 5876 | echo "$ac_err" >&5 |
| 5877 | echo "configure: failed program was:" >&5 |
| 5878 | cat conftest.$ac_ext >&5 |
| 5879 | rm -rf conftest* |
| 5880 | ac_cv_header_stdc=no |
| 5881 | fi |
| 5882 | rm -f conftest* |
| 5883 | |
| 5884 | if test $ac_cv_header_stdc = yes; then |
| 5885 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5886 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5887 | #line 5888 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5888 | #include "confdefs.h" |
| 5889 | #include <string.h> |
| 5890 | EOF |
| 5891 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5892 | egrep "memchr" >/dev/null 2>&1; then |
| 5893 | : |
| 5894 | else |
| 5895 | rm -rf conftest* |
| 5896 | ac_cv_header_stdc=no |
| 5897 | fi |
| 5898 | rm -f conftest* |
| 5899 | |
| 5900 | fi |
| 5901 | |
| 5902 | if test $ac_cv_header_stdc = yes; then |
| 5903 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5904 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5905 | #line 5906 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5906 | #include "confdefs.h" |
| 5907 | #include <stdlib.h> |
| 5908 | EOF |
| 5909 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5910 | egrep "free" >/dev/null 2>&1; then |
| 5911 | : |
| 5912 | else |
| 5913 | rm -rf conftest* |
| 5914 | ac_cv_header_stdc=no |
| 5915 | fi |
| 5916 | rm -f conftest* |
| 5917 | |
| 5918 | fi |
| 5919 | |
| 5920 | if test $ac_cv_header_stdc = yes; then |
| 5921 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5922 | if test "$cross_compiling" = yes; then |
| 5923 | : |
| 5924 | else |
| 5925 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5926 | #line 5927 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5927 | #include "confdefs.h" |
| 5928 | #include <ctype.h> |
| 5929 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5930 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5931 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5932 | int main () { int i; for (i = 0; i < 256; i++) |
| 5933 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 5934 | exit (0); } |
| 5935 | |
| 5936 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5937 | if { (eval echo configure:5938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5938 | then |
| 5939 | : |
| 5940 | else |
| 5941 | echo "configure: failed program was:" >&5 |
| 5942 | cat conftest.$ac_ext >&5 |
| 5943 | rm -fr conftest* |
| 5944 | ac_cv_header_stdc=no |
| 5945 | fi |
| 5946 | rm -fr conftest* |
| 5947 | fi |
| 5948 | |
| 5949 | fi |
| 5950 | fi |
| 5951 | |
| 5952 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 5953 | if test $ac_cv_header_stdc = yes; then |
| 5954 | cat >> confdefs.h <<\EOF |
| 5955 | #define STDC_HEADERS 1 |
| 5956 | EOF |
| 5957 | |
| 5958 | fi |
| 5959 | |
| 5960 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5961 | echo "configure:5962: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5962 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
| 5963 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5964 | else |
| 5965 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5966 | #line 5967 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5967 | #include "confdefs.h" |
| 5968 | #include <sys/types.h> |
| 5969 | #include <sys/wait.h> |
| 5970 | #ifndef WEXITSTATUS |
| 5971 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
| 5972 | #endif |
| 5973 | #ifndef WIFEXITED |
| 5974 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 5975 | #endif |
| 5976 | int main() { |
| 5977 | int s; |
| 5978 | wait (&s); |
| 5979 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 5980 | ; return 0; } |
| 5981 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 5982 | if { (eval echo configure:5983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5983 | rm -rf conftest* |
| 5984 | ac_cv_header_sys_wait_h=yes |
| 5985 | else |
| 5986 | echo "configure: failed program was:" >&5 |
| 5987 | cat conftest.$ac_ext >&5 |
| 5988 | rm -rf conftest* |
| 5989 | ac_cv_header_sys_wait_h=no |
| 5990 | fi |
| 5991 | rm -f conftest* |
| 5992 | fi |
| 5993 | |
| 5994 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 |
| 5995 | if test $ac_cv_header_sys_wait_h = yes; then |
| 5996 | cat >> confdefs.h <<\EOF |
| 5997 | #define HAVE_SYS_WAIT_H 1 |
| 5998 | EOF |
| 5999 | |
| 6000 | fi |
| 6001 | |
| 6002 | |
| 6003 | if test $ac_cv_header_sys_wait_h = no; then |
| 6004 | echo $ac_n "checking for sys/wait.h that defines union wait""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6005 | echo "configure:6006: checking for sys/wait.h that defines union wait" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6006 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6007 | #line 6008 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6008 | #include "confdefs.h" |
| 6009 | #include <sys/wait.h> |
| 6010 | int main() { |
| 6011 | union wait xx, yy; xx = yy |
| 6012 | ; return 0; } |
| 6013 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6014 | if { (eval echo configure:6015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6015 | rm -rf conftest* |
| 6016 | echo "$ac_t""yes" 1>&6 |
| 6017 | cat >> confdefs.h <<\EOF |
| 6018 | #define HAVE_SYS_WAIT_H 1 |
| 6019 | EOF |
| 6020 | |
| 6021 | cat >> confdefs.h <<\EOF |
| 6022 | #define HAVE_UNION_WAIT 1 |
| 6023 | EOF |
| 6024 | |
| 6025 | else |
| 6026 | echo "configure: failed program was:" >&5 |
| 6027 | cat conftest.$ac_ext >&5 |
| 6028 | rm -rf conftest* |
| 6029 | echo "$ac_t""no" 1>&6 |
| 6030 | fi |
| 6031 | rm -f conftest* |
| 6032 | fi |
| 6033 | |
| 6034 | for ac_hdr in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \ |
| 6035 | termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \ |
| 6036 | iconv.h langinfo.h unistd.h stropts.h errno.h \ |
| 6037 | sys/resource.h sys/systeminfo.h locale.h \ |
| 6038 | sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \ |
| 6039 | poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \ |
| 6040 | libgen.h util/debug.h util/msg18n.h frame.h pthread_np.h \ |
| 6041 | sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h |
| 6042 | do |
| 6043 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 6044 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6045 | echo "configure:6046: checking for $ac_hdr" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6046 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 6047 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6048 | else |
| 6049 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6050 | #line 6051 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6051 | #include "confdefs.h" |
| 6052 | #include <$ac_hdr> |
| 6053 | EOF |
| 6054 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6055 | { (eval echo configure:6056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6056 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 6057 | if test -z "$ac_err"; then |
| 6058 | rm -rf conftest* |
| 6059 | eval "ac_cv_header_$ac_safe=yes" |
| 6060 | else |
| 6061 | echo "$ac_err" >&5 |
| 6062 | echo "configure: failed program was:" >&5 |
| 6063 | cat conftest.$ac_ext >&5 |
| 6064 | rm -rf conftest* |
| 6065 | eval "ac_cv_header_$ac_safe=no" |
| 6066 | fi |
| 6067 | rm -f conftest* |
| 6068 | fi |
| 6069 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 6070 | echo "$ac_t""yes" 1>&6 |
| 6071 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 6072 | cat >> confdefs.h <<EOF |
| 6073 | #define $ac_tr_hdr 1 |
| 6074 | EOF |
| 6075 | |
| 6076 | else |
| 6077 | echo "$ac_t""no" 1>&6 |
| 6078 | fi |
| 6079 | done |
| 6080 | |
| 6081 | |
| 6082 | if test "x$MACOSX" != "xyes"; then |
| 6083 | for ac_hdr in strings.h |
| 6084 | do |
| 6085 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 6086 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6087 | echo "configure:6088: checking for $ac_hdr" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6088 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 6089 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6090 | else |
| 6091 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6092 | #line 6093 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6093 | #include "confdefs.h" |
| 6094 | #include <$ac_hdr> |
| 6095 | EOF |
| 6096 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6097 | { (eval echo configure:6098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6098 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 6099 | if test -z "$ac_err"; then |
| 6100 | rm -rf conftest* |
| 6101 | eval "ac_cv_header_$ac_safe=yes" |
| 6102 | else |
| 6103 | echo "$ac_err" >&5 |
| 6104 | echo "configure: failed program was:" >&5 |
| 6105 | cat conftest.$ac_ext >&5 |
| 6106 | rm -rf conftest* |
| 6107 | eval "ac_cv_header_$ac_safe=no" |
| 6108 | fi |
| 6109 | rm -f conftest* |
| 6110 | fi |
| 6111 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 6112 | echo "$ac_t""yes" 1>&6 |
| 6113 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 6114 | cat >> confdefs.h <<EOF |
| 6115 | #define $ac_tr_hdr 1 |
| 6116 | EOF |
| 6117 | |
| 6118 | else |
| 6119 | echo "$ac_t""no" 1>&6 |
| 6120 | fi |
| 6121 | done |
| 6122 | |
| 6123 | fi |
| 6124 | |
| 6125 | echo $ac_n "checking if strings.h can be included after string.h""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6126 | echo "configure:6127: checking if strings.h can be included after string.h" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6127 | cppflags_save=$CPPFLAGS |
| 6128 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 6129 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6130 | #line 6131 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6131 | #include "confdefs.h" |
| 6132 | |
| 6133 | #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
| 6134 | # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
| 6135 | /* but don't do it on AIX 5.1 (Uribarri) */ |
| 6136 | #endif |
| 6137 | #ifdef HAVE_XM_XM_H |
| 6138 | # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ |
| 6139 | #endif |
| 6140 | #ifdef HAVE_STRING_H |
| 6141 | # include <string.h> |
| 6142 | #endif |
| 6143 | #if defined(HAVE_STRINGS_H) |
| 6144 | # include <strings.h> |
| 6145 | #endif |
| 6146 | |
| 6147 | int main() { |
| 6148 | int i; i = 0; |
| 6149 | ; return 0; } |
| 6150 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6151 | if { (eval echo configure:6152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6152 | rm -rf conftest* |
| 6153 | echo "$ac_t""yes" 1>&6 |
| 6154 | else |
| 6155 | echo "configure: failed program was:" >&5 |
| 6156 | cat conftest.$ac_ext >&5 |
| 6157 | rm -rf conftest* |
| 6158 | cat >> confdefs.h <<\EOF |
| 6159 | #define NO_STRINGS_WITH_STRING_H 1 |
| 6160 | EOF |
| 6161 | |
| 6162 | echo "$ac_t""no" 1>&6 |
| 6163 | fi |
| 6164 | rm -f conftest* |
| 6165 | CPPFLAGS=$cppflags_save |
| 6166 | |
| 6167 | if test $ac_cv_prog_gcc = yes; then |
| 6168 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6169 | echo "configure:6170: checking whether ${CC-cc} needs -traditional" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6170 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
| 6171 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6172 | else |
| 6173 | ac_pattern="Autoconf.*'x'" |
| 6174 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6175 | #line 6176 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6176 | #include "confdefs.h" |
| 6177 | #include <sgtty.h> |
| 6178 | Autoconf TIOCGETP |
| 6179 | EOF |
| 6180 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6181 | egrep "$ac_pattern" >/dev/null 2>&1; then |
| 6182 | rm -rf conftest* |
| 6183 | ac_cv_prog_gcc_traditional=yes |
| 6184 | else |
| 6185 | rm -rf conftest* |
| 6186 | ac_cv_prog_gcc_traditional=no |
| 6187 | fi |
| 6188 | rm -f conftest* |
| 6189 | |
| 6190 | |
| 6191 | if test $ac_cv_prog_gcc_traditional = no; then |
| 6192 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6193 | #line 6194 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6194 | #include "confdefs.h" |
| 6195 | #include <termio.h> |
| 6196 | Autoconf TCGETA |
| 6197 | EOF |
| 6198 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6199 | egrep "$ac_pattern" >/dev/null 2>&1; then |
| 6200 | rm -rf conftest* |
| 6201 | ac_cv_prog_gcc_traditional=yes |
| 6202 | fi |
| 6203 | rm -f conftest* |
| 6204 | |
| 6205 | fi |
| 6206 | fi |
| 6207 | |
| 6208 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 |
| 6209 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 6210 | CC="$CC -traditional" |
| 6211 | fi |
| 6212 | fi |
| 6213 | |
| 6214 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6215 | echo "configure:6216: checking for working const" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6216 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 6217 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6218 | else |
| 6219 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6220 | #line 6221 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6221 | #include "confdefs.h" |
| 6222 | |
| 6223 | int main() { |
| 6224 | |
| 6225 | /* Ultrix mips cc rejects this. */ |
| 6226 | typedef int charset[2]; const charset x; |
| 6227 | /* SunOS 4.1.1 cc rejects this. */ |
| 6228 | char const *const *ccp; |
| 6229 | char **p; |
| 6230 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 6231 | struct point {int x, y;}; |
| 6232 | static struct point const zero = {0,0}; |
| 6233 | /* AIX XL C 1.02.0.0 rejects this. |
| 6234 | It does not let you subtract one const X* pointer from another in an arm |
| 6235 | of an if-expression whose if-part is not a constant expression */ |
| 6236 | const char *g = "string"; |
| 6237 | ccp = &g + (g ? g-g : 0); |
| 6238 | /* HPUX 7.0 cc rejects these. */ |
| 6239 | ++ccp; |
| 6240 | p = (char**) ccp; |
| 6241 | ccp = (char const *const *) p; |
| 6242 | { /* SCO 3.2v4 cc rejects this. */ |
| 6243 | char *t; |
| 6244 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 6245 | |
| 6246 | *t++ = 0; |
| 6247 | } |
| 6248 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 6249 | int x[] = {25, 17}; |
| 6250 | const int *foo = &x[0]; |
| 6251 | ++foo; |
| 6252 | } |
| 6253 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 6254 | typedef const int *iptr; |
| 6255 | iptr p = 0; |
| 6256 | ++p; |
| 6257 | } |
| 6258 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 6259 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 6260 | struct s { int j; const int *ap[3]; }; |
| 6261 | struct s *b; b->j = 5; |
| 6262 | } |
| 6263 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6264 | const int foo = 10; |
| 6265 | } |
| 6266 | |
| 6267 | ; return 0; } |
| 6268 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6269 | if { (eval echo configure:6270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6270 | rm -rf conftest* |
| 6271 | ac_cv_c_const=yes |
| 6272 | else |
| 6273 | echo "configure: failed program was:" >&5 |
| 6274 | cat conftest.$ac_ext >&5 |
| 6275 | rm -rf conftest* |
| 6276 | ac_cv_c_const=no |
| 6277 | fi |
| 6278 | rm -f conftest* |
| 6279 | fi |
| 6280 | |
| 6281 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 6282 | if test $ac_cv_c_const = no; then |
| 6283 | cat >> confdefs.h <<\EOF |
| 6284 | #define const |
| 6285 | EOF |
| 6286 | |
| 6287 | fi |
| 6288 | |
| 6289 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6290 | echo "configure:6291: checking for mode_t" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6291 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
| 6292 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6293 | else |
| 6294 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6295 | #line 6296 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6296 | #include "confdefs.h" |
| 6297 | #include <sys/types.h> |
| 6298 | #if STDC_HEADERS |
| 6299 | #include <stdlib.h> |
| 6300 | #include <stddef.h> |
| 6301 | #endif |
| 6302 | EOF |
| 6303 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6304 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 6305 | rm -rf conftest* |
| 6306 | ac_cv_type_mode_t=yes |
| 6307 | else |
| 6308 | rm -rf conftest* |
| 6309 | ac_cv_type_mode_t=no |
| 6310 | fi |
| 6311 | rm -f conftest* |
| 6312 | |
| 6313 | fi |
| 6314 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
| 6315 | if test $ac_cv_type_mode_t = no; then |
| 6316 | cat >> confdefs.h <<\EOF |
| 6317 | #define mode_t int |
| 6318 | EOF |
| 6319 | |
| 6320 | fi |
| 6321 | |
| 6322 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6323 | echo "configure:6324: checking for off_t" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6324 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
| 6325 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6326 | else |
| 6327 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6328 | #line 6329 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6329 | #include "confdefs.h" |
| 6330 | #include <sys/types.h> |
| 6331 | #if STDC_HEADERS |
| 6332 | #include <stdlib.h> |
| 6333 | #include <stddef.h> |
| 6334 | #endif |
| 6335 | EOF |
| 6336 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6337 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 6338 | rm -rf conftest* |
| 6339 | ac_cv_type_off_t=yes |
| 6340 | else |
| 6341 | rm -rf conftest* |
| 6342 | ac_cv_type_off_t=no |
| 6343 | fi |
| 6344 | rm -f conftest* |
| 6345 | |
| 6346 | fi |
| 6347 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 6348 | if test $ac_cv_type_off_t = no; then |
| 6349 | cat >> confdefs.h <<\EOF |
| 6350 | #define off_t long |
| 6351 | EOF |
| 6352 | |
| 6353 | fi |
| 6354 | |
| 6355 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6356 | echo "configure:6357: checking for pid_t" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6357 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
| 6358 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6359 | else |
| 6360 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6361 | #line 6362 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6362 | #include "confdefs.h" |
| 6363 | #include <sys/types.h> |
| 6364 | #if STDC_HEADERS |
| 6365 | #include <stdlib.h> |
| 6366 | #include <stddef.h> |
| 6367 | #endif |
| 6368 | EOF |
| 6369 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6370 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 6371 | rm -rf conftest* |
| 6372 | ac_cv_type_pid_t=yes |
| 6373 | else |
| 6374 | rm -rf conftest* |
| 6375 | ac_cv_type_pid_t=no |
| 6376 | fi |
| 6377 | rm -f conftest* |
| 6378 | |
| 6379 | fi |
| 6380 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 6381 | if test $ac_cv_type_pid_t = no; then |
| 6382 | cat >> confdefs.h <<\EOF |
| 6383 | #define pid_t int |
| 6384 | EOF |
| 6385 | |
| 6386 | fi |
| 6387 | |
| 6388 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6389 | echo "configure:6390: checking for size_t" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6390 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 6391 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6392 | else |
| 6393 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6394 | #line 6395 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6395 | #include "confdefs.h" |
| 6396 | #include <sys/types.h> |
| 6397 | #if STDC_HEADERS |
| 6398 | #include <stdlib.h> |
| 6399 | #include <stddef.h> |
| 6400 | #endif |
| 6401 | EOF |
| 6402 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6403 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 6404 | rm -rf conftest* |
| 6405 | ac_cv_type_size_t=yes |
| 6406 | else |
| 6407 | rm -rf conftest* |
| 6408 | ac_cv_type_size_t=no |
| 6409 | fi |
| 6410 | rm -f conftest* |
| 6411 | |
| 6412 | fi |
| 6413 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 6414 | if test $ac_cv_type_size_t = no; then |
| 6415 | cat >> confdefs.h <<\EOF |
| 6416 | #define size_t unsigned |
| 6417 | EOF |
| 6418 | |
| 6419 | fi |
| 6420 | |
| 6421 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6422 | echo "configure:6423: checking for uid_t in sys/types.h" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6423 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
| 6424 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6425 | else |
| 6426 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6427 | #line 6428 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6428 | #include "confdefs.h" |
| 6429 | #include <sys/types.h> |
| 6430 | EOF |
| 6431 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6432 | egrep "uid_t" >/dev/null 2>&1; then |
| 6433 | rm -rf conftest* |
| 6434 | ac_cv_type_uid_t=yes |
| 6435 | else |
| 6436 | rm -rf conftest* |
| 6437 | ac_cv_type_uid_t=no |
| 6438 | fi |
| 6439 | rm -f conftest* |
| 6440 | |
| 6441 | fi |
| 6442 | |
| 6443 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
| 6444 | if test $ac_cv_type_uid_t = no; then |
| 6445 | cat >> confdefs.h <<\EOF |
| 6446 | #define uid_t int |
| 6447 | EOF |
| 6448 | |
| 6449 | cat >> confdefs.h <<\EOF |
| 6450 | #define gid_t int |
| 6451 | EOF |
| 6452 | |
| 6453 | fi |
| 6454 | |
| 6455 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6456 | echo "configure:6457: checking whether time.h and sys/time.h may both be included" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6457 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
| 6458 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6459 | else |
| 6460 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6461 | #line 6462 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6462 | #include "confdefs.h" |
| 6463 | #include <sys/types.h> |
| 6464 | #include <sys/time.h> |
| 6465 | #include <time.h> |
| 6466 | int main() { |
| 6467 | struct tm *tp; |
| 6468 | ; return 0; } |
| 6469 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6470 | if { (eval echo configure:6471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6471 | rm -rf conftest* |
| 6472 | ac_cv_header_time=yes |
| 6473 | else |
| 6474 | echo "configure: failed program was:" >&5 |
| 6475 | cat conftest.$ac_ext >&5 |
| 6476 | rm -rf conftest* |
| 6477 | ac_cv_header_time=no |
| 6478 | fi |
| 6479 | rm -f conftest* |
| 6480 | fi |
| 6481 | |
| 6482 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
| 6483 | if test $ac_cv_header_time = yes; then |
| 6484 | cat >> confdefs.h <<\EOF |
| 6485 | #define TIME_WITH_SYS_TIME 1 |
| 6486 | EOF |
| 6487 | |
| 6488 | fi |
| 6489 | |
| 6490 | echo $ac_n "checking for ino_t""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6491 | echo "configure:6492: checking for ino_t" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6492 | if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then |
| 6493 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6494 | else |
| 6495 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6496 | #line 6497 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6497 | #include "confdefs.h" |
| 6498 | #include <sys/types.h> |
| 6499 | #if STDC_HEADERS |
| 6500 | #include <stdlib.h> |
| 6501 | #include <stddef.h> |
| 6502 | #endif |
| 6503 | EOF |
| 6504 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6505 | egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 6506 | rm -rf conftest* |
| 6507 | ac_cv_type_ino_t=yes |
| 6508 | else |
| 6509 | rm -rf conftest* |
| 6510 | ac_cv_type_ino_t=no |
| 6511 | fi |
| 6512 | rm -f conftest* |
| 6513 | |
| 6514 | fi |
| 6515 | echo "$ac_t""$ac_cv_type_ino_t" 1>&6 |
| 6516 | if test $ac_cv_type_ino_t = no; then |
| 6517 | cat >> confdefs.h <<\EOF |
| 6518 | #define ino_t long |
| 6519 | EOF |
| 6520 | |
| 6521 | fi |
| 6522 | |
| 6523 | echo $ac_n "checking for dev_t""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6524 | echo "configure:6525: checking for dev_t" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6525 | if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then |
| 6526 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6527 | else |
| 6528 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6529 | #line 6530 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6530 | #include "confdefs.h" |
| 6531 | #include <sys/types.h> |
| 6532 | #if STDC_HEADERS |
| 6533 | #include <stdlib.h> |
| 6534 | #include <stddef.h> |
| 6535 | #endif |
| 6536 | EOF |
| 6537 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6538 | egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 6539 | rm -rf conftest* |
| 6540 | ac_cv_type_dev_t=yes |
| 6541 | else |
| 6542 | rm -rf conftest* |
| 6543 | ac_cv_type_dev_t=no |
| 6544 | fi |
| 6545 | rm -f conftest* |
| 6546 | |
| 6547 | fi |
| 6548 | echo "$ac_t""$ac_cv_type_dev_t" 1>&6 |
| 6549 | if test $ac_cv_type_dev_t = no; then |
| 6550 | cat >> confdefs.h <<\EOF |
| 6551 | #define dev_t unsigned |
| 6552 | EOF |
| 6553 | |
| 6554 | fi |
| 6555 | |
| 6556 | |
| 6557 | echo $ac_n "checking for rlim_t""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6558 | echo "configure:6559: checking for rlim_t" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6559 | if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
| 6560 | echo "$ac_t""(cached) $ac_cv_type_rlim_t" 1>&6 |
| 6561 | else |
| 6562 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6563 | #line 6564 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6564 | #include "confdefs.h" |
| 6565 | |
| 6566 | #include <sys/types.h> |
| 6567 | #if STDC_HEADERS |
| 6568 | #include <stdlib.h> |
| 6569 | #include <stddef.h> |
| 6570 | #endif |
| 6571 | #ifdef HAVE_SYS_RESOURCE_H |
| 6572 | #include <sys/resource.h> |
| 6573 | #endif |
| 6574 | |
| 6575 | EOF |
| 6576 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6577 | egrep "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 6578 | rm -rf conftest* |
| 6579 | ac_cv_type_rlim_t=yes |
| 6580 | else |
| 6581 | rm -rf conftest* |
| 6582 | ac_cv_type_rlim_t=no |
| 6583 | fi |
| 6584 | rm -f conftest* |
| 6585 | |
| 6586 | echo "$ac_t""$ac_cv_type_rlim_t" 1>&6 |
| 6587 | fi |
| 6588 | if test $ac_cv_type_rlim_t = no; then |
| 6589 | cat >> confdefs.h <<\EOF |
| 6590 | #define rlim_t unsigned long |
| 6591 | EOF |
| 6592 | fi |
| 6593 | |
| 6594 | echo $ac_n "checking for stack_t""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6595 | echo "configure:6596: checking for stack_t" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6596 | if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
| 6597 | echo "$ac_t""(cached) $ac_cv_type_stack_t" 1>&6 |
| 6598 | else |
| 6599 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6600 | #line 6601 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6601 | #include "confdefs.h" |
| 6602 | |
| 6603 | #include <sys/types.h> |
| 6604 | #if STDC_HEADERS |
| 6605 | #include <stdlib.h> |
| 6606 | #include <stddef.h> |
| 6607 | #endif |
| 6608 | #include <signal.h> |
| 6609 | |
| 6610 | EOF |
| 6611 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6612 | egrep "stack_t" >/dev/null 2>&1; then |
| 6613 | rm -rf conftest* |
| 6614 | ac_cv_type_stack_t=yes |
| 6615 | else |
| 6616 | rm -rf conftest* |
| 6617 | ac_cv_type_stack_t=no |
| 6618 | fi |
| 6619 | rm -f conftest* |
| 6620 | |
| 6621 | echo "$ac_t""$ac_cv_type_stack_t" 1>&6 |
| 6622 | fi |
| 6623 | if test $ac_cv_type_stack_t = no; then |
| 6624 | cat >> confdefs.h <<\EOF |
| 6625 | #define stack_t struct sigaltstack |
| 6626 | EOF |
| 6627 | fi |
| 6628 | |
| 6629 | echo $ac_n "checking whether stack_t has an ss_base field""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6630 | echo "configure:6631: checking whether stack_t has an ss_base field" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6631 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6632 | #line 6633 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6633 | #include "confdefs.h" |
| 6634 | |
| 6635 | #include <sys/types.h> |
| 6636 | #if STDC_HEADERS |
| 6637 | #include <stdlib.h> |
| 6638 | #include <stddef.h> |
| 6639 | #endif |
| 6640 | #include <signal.h> |
| 6641 | #include "confdefs.h" |
| 6642 | |
| 6643 | int main() { |
| 6644 | stack_t sigstk; sigstk.ss_base = 0; |
| 6645 | ; return 0; } |
| 6646 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6647 | if { (eval echo configure:6648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6648 | rm -rf conftest* |
| 6649 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 6650 | #define HAVE_SS_BASE 1 |
| 6651 | EOF |
| 6652 | |
| 6653 | else |
| 6654 | echo "configure: failed program was:" >&5 |
| 6655 | cat conftest.$ac_ext >&5 |
| 6656 | rm -rf conftest* |
| 6657 | echo "$ac_t""no" 1>&6 |
| 6658 | fi |
| 6659 | rm -f conftest* |
| 6660 | |
| 6661 | olibs="$LIBS" |
| 6662 | echo $ac_n "checking --with-tlib argument""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6663 | echo "configure:6664: checking --with-tlib argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6664 | # Check whether --with-tlib or --without-tlib was given. |
| 6665 | if test "${with_tlib+set}" = set; then |
| 6666 | withval="$with_tlib" |
| 6667 | : |
| 6668 | fi |
| 6669 | |
| 6670 | if test -n "$with_tlib"; then |
| 6671 | echo "$ac_t""$with_tlib" 1>&6 |
| 6672 | LIBS="$LIBS -l$with_tlib" |
| 6673 | else |
| 6674 | echo "$ac_t""automatic terminal library selection" 1>&6 |
| 6675 | case "`uname -s 2>/dev/null`" in |
| 6676 | OSF1) tlibs="ncurses curses termlib termcap";; |
| 6677 | *) tlibs="ncurses termlib termcap curses";; |
| 6678 | esac |
| 6679 | for libname in $tlibs; do |
| 6680 | echo $ac_n "checking for tgetent in -l${libname}""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6681 | echo "configure:6682: checking for tgetent in -l${libname}" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6682 | ac_lib_var=`echo ${libname}'_'tgetent | sed 'y%./+-%__p_%'` |
| 6683 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 6684 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6685 | else |
| 6686 | ac_save_LIBS="$LIBS" |
| 6687 | LIBS="-l${libname} $LIBS" |
| 6688 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6689 | #line 6690 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6690 | #include "confdefs.h" |
| 6691 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6692 | /* We use char because int might match the return type of a gcc2 |
| 6693 | builtin and then its argument prototype would still apply. */ |
| 6694 | char tgetent(); |
| 6695 | |
| 6696 | int main() { |
| 6697 | tgetent() |
| 6698 | ; return 0; } |
| 6699 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6700 | if { (eval echo configure:6701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6701 | rm -rf conftest* |
| 6702 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 6703 | else |
| 6704 | echo "configure: failed program was:" >&5 |
| 6705 | cat conftest.$ac_ext >&5 |
| 6706 | rm -rf conftest* |
| 6707 | eval "ac_cv_lib_$ac_lib_var=no" |
| 6708 | fi |
| 6709 | rm -f conftest* |
| 6710 | LIBS="$ac_save_LIBS" |
| 6711 | |
| 6712 | fi |
| 6713 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 6714 | echo "$ac_t""yes" 1>&6 |
| 6715 | ac_tr_lib=HAVE_LIB`echo ${libname} | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 6716 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 6717 | cat >> confdefs.h <<EOF |
| 6718 | #define $ac_tr_lib 1 |
| 6719 | EOF |
| 6720 | |
| 6721 | LIBS="-l${libname} $LIBS" |
| 6722 | |
| 6723 | else |
| 6724 | echo "$ac_t""no" 1>&6 |
| 6725 | fi |
| 6726 | |
| 6727 | if test "x$olibs" != "x$LIBS"; then |
| 6728 | if test "$cross_compiling" = yes; then |
| 6729 | res="FAIL" |
| 6730 | else |
| 6731 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6732 | #line 6733 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6733 | #include "confdefs.h" |
| 6734 | |
| 6735 | #ifdef HAVE_TERMCAP_H |
| 6736 | # include <termcap.h> |
| 6737 | #endif |
| 6738 | main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
| 6739 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6740 | if { (eval echo configure:6741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6741 | then |
| 6742 | res="OK" |
| 6743 | else |
| 6744 | echo "configure: failed program was:" >&5 |
| 6745 | cat conftest.$ac_ext >&5 |
| 6746 | rm -fr conftest* |
| 6747 | res="FAIL" |
| 6748 | fi |
| 6749 | rm -fr conftest* |
| 6750 | fi |
| 6751 | |
| 6752 | if test "$res" = "OK"; then |
| 6753 | break |
| 6754 | fi |
| 6755 | echo "$ac_t""$libname library is not usable" 1>&6 |
| 6756 | LIBS="$olibs" |
| 6757 | fi |
| 6758 | done |
| 6759 | fi |
| 6760 | if test "x$olibs" != "x$LIBS"; then |
| 6761 | echo $ac_n "checking whether we talk terminfo""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6762 | echo "configure:6763: checking whether we talk terminfo" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6763 | if test "$cross_compiling" = yes; then |
| 6764 | { echo "configure: error: failed to compile test program." 1>&2; exit 1; } |
| 6765 | else |
| 6766 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6767 | #line 6768 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6768 | #include "confdefs.h" |
| 6769 | |
| 6770 | #ifdef HAVE_TERMCAP_H |
| 6771 | # include <termcap.h> |
| 6772 | #endif |
| 6773 | main() |
| 6774 | {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } |
| 6775 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6776 | if { (eval echo configure:6777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6777 | then |
| 6778 | echo "$ac_t""no -- we are in termcap land" 1>&6 |
| 6779 | else |
| 6780 | echo "configure: failed program was:" >&5 |
| 6781 | cat conftest.$ac_ext >&5 |
| 6782 | rm -fr conftest* |
| 6783 | echo "$ac_t""yes -- terminfo spoken here" 1>&6; cat >> confdefs.h <<\EOF |
| 6784 | #define TERMINFO 1 |
| 6785 | EOF |
| 6786 | |
| 6787 | fi |
| 6788 | rm -fr conftest* |
| 6789 | fi |
| 6790 | |
| 6791 | else |
| 6792 | echo "$ac_t""none found" 1>&6 |
| 6793 | fi |
| 6794 | |
| 6795 | if test "x$olibs" != "x$LIBS"; then |
| 6796 | echo $ac_n "checking what tgetent() returns for an unknown terminal""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6797 | echo "configure:6798: checking what tgetent() returns for an unknown terminal" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6798 | if test "$cross_compiling" = yes; then |
| 6799 | { echo "configure: error: failed to compile test program." 1>&2; exit 1; } |
| 6800 | else |
| 6801 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6802 | #line 6803 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6803 | #include "confdefs.h" |
| 6804 | |
| 6805 | #ifdef HAVE_TERMCAP_H |
| 6806 | # include <termcap.h> |
| 6807 | #endif |
| 6808 | main() |
| 6809 | {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
| 6810 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6811 | if { (eval echo configure:6812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6812 | then |
| 6813 | echo "$ac_t""zero" 1>&6; cat >> confdefs.h <<\EOF |
| 6814 | #define TGETENT_ZERO_ERR 0 |
| 6815 | EOF |
| 6816 | |
| 6817 | else |
| 6818 | echo "configure: failed program was:" >&5 |
| 6819 | cat conftest.$ac_ext >&5 |
| 6820 | rm -fr conftest* |
| 6821 | echo "$ac_t""non-zero" 1>&6 |
| 6822 | fi |
| 6823 | rm -fr conftest* |
| 6824 | fi |
| 6825 | |
| 6826 | fi |
| 6827 | |
| 6828 | echo $ac_n "checking whether termcap.h contains ospeed""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6829 | echo "configure:6830: checking whether termcap.h contains ospeed" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6830 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6831 | #line 6832 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6832 | #include "confdefs.h" |
| 6833 | |
| 6834 | #ifdef HAVE_TERMCAP_H |
| 6835 | # include <termcap.h> |
| 6836 | #endif |
| 6837 | |
| 6838 | int main() { |
| 6839 | ospeed = 20000 |
| 6840 | ; return 0; } |
| 6841 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6842 | if { (eval echo configure:6843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6843 | rm -rf conftest* |
| 6844 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 6845 | #define HAVE_OSPEED 1 |
| 6846 | EOF |
| 6847 | |
| 6848 | else |
| 6849 | echo "configure: failed program was:" >&5 |
| 6850 | cat conftest.$ac_ext >&5 |
| 6851 | rm -rf conftest* |
| 6852 | echo "$ac_t""no" 1>&6 |
| 6853 | echo $ac_n "checking whether ospeed can be extern""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6854 | echo "configure:6855: checking whether ospeed can be extern" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6855 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6856 | #line 6857 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6857 | #include "confdefs.h" |
| 6858 | |
| 6859 | #ifdef HAVE_TERMCAP_H |
| 6860 | # include <termcap.h> |
| 6861 | #endif |
| 6862 | extern short ospeed; |
| 6863 | |
| 6864 | int main() { |
| 6865 | ospeed = 20000 |
| 6866 | ; return 0; } |
| 6867 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6868 | if { (eval echo configure:6869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6869 | rm -rf conftest* |
| 6870 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 6871 | #define OSPEED_EXTERN 1 |
| 6872 | EOF |
| 6873 | |
| 6874 | else |
| 6875 | echo "configure: failed program was:" >&5 |
| 6876 | cat conftest.$ac_ext >&5 |
| 6877 | rm -rf conftest* |
| 6878 | echo "$ac_t""no" 1>&6 |
| 6879 | fi |
| 6880 | rm -f conftest* |
| 6881 | |
| 6882 | fi |
| 6883 | rm -f conftest* |
| 6884 | |
| 6885 | echo $ac_n "checking whether termcap.h contains UP, BC and PC""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6886 | echo "configure:6887: checking whether termcap.h contains UP, BC and PC" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6887 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6888 | #line 6889 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6889 | #include "confdefs.h" |
| 6890 | |
| 6891 | #ifdef HAVE_TERMCAP_H |
| 6892 | # include <termcap.h> |
| 6893 | #endif |
| 6894 | |
| 6895 | int main() { |
| 6896 | if (UP == 0 && BC == 0) PC = 1 |
| 6897 | ; return 0; } |
| 6898 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6899 | if { (eval echo configure:6900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6900 | rm -rf conftest* |
| 6901 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 6902 | #define HAVE_UP_BC_PC 1 |
| 6903 | EOF |
| 6904 | |
| 6905 | else |
| 6906 | echo "configure: failed program was:" >&5 |
| 6907 | cat conftest.$ac_ext >&5 |
| 6908 | rm -rf conftest* |
| 6909 | echo "$ac_t""no" 1>&6 |
| 6910 | echo $ac_n "checking whether UP, BC and PC can be extern""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6911 | echo "configure:6912: checking whether UP, BC and PC can be extern" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6912 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6913 | #line 6914 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6914 | #include "confdefs.h" |
| 6915 | |
| 6916 | #ifdef HAVE_TERMCAP_H |
| 6917 | # include <termcap.h> |
| 6918 | #endif |
| 6919 | extern char *UP, *BC, PC; |
| 6920 | |
| 6921 | int main() { |
| 6922 | if (UP == 0 && BC == 0) PC = 1 |
| 6923 | ; return 0; } |
| 6924 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6925 | if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6926 | rm -rf conftest* |
| 6927 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 6928 | #define UP_BC_PC_EXTERN 1 |
| 6929 | EOF |
| 6930 | |
| 6931 | else |
| 6932 | echo "configure: failed program was:" >&5 |
| 6933 | cat conftest.$ac_ext >&5 |
| 6934 | rm -rf conftest* |
| 6935 | echo "$ac_t""no" 1>&6 |
| 6936 | fi |
| 6937 | rm -f conftest* |
| 6938 | |
| 6939 | fi |
| 6940 | rm -f conftest* |
| 6941 | |
| 6942 | echo $ac_n "checking whether tputs() uses outfuntype""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6943 | echo "configure:6944: checking whether tputs() uses outfuntype" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6944 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6945 | #line 6946 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6946 | #include "confdefs.h" |
| 6947 | |
| 6948 | #ifdef HAVE_TERMCAP_H |
| 6949 | # include <termcap.h> |
| 6950 | #endif |
| 6951 | |
| 6952 | int main() { |
| 6953 | extern int xx(); tputs("test", 1, (outfuntype)xx) |
| 6954 | ; return 0; } |
| 6955 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6956 | if { (eval echo configure:6957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6957 | rm -rf conftest* |
| 6958 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 6959 | #define HAVE_OUTFUNTYPE 1 |
| 6960 | EOF |
| 6961 | |
| 6962 | else |
| 6963 | echo "configure: failed program was:" >&5 |
| 6964 | cat conftest.$ac_ext >&5 |
| 6965 | rm -rf conftest* |
| 6966 | echo "$ac_t""no" 1>&6 |
| 6967 | fi |
| 6968 | rm -f conftest* |
| 6969 | |
| 6970 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6971 | echo "configure:6972: checking whether sys/select.h and sys/time.h may both be included" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6972 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6973 | #line 6974 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6974 | #include "confdefs.h" |
| 6975 | |
| 6976 | #include <sys/types.h> |
| 6977 | #include <sys/time.h> |
| 6978 | #include <sys/select.h> |
| 6979 | int main() { |
| 6980 | |
| 6981 | ; return 0; } |
| 6982 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 6983 | if { (eval echo configure:6984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6984 | rm -rf conftest* |
| 6985 | echo "$ac_t""yes" 1>&6 |
| 6986 | cat >> confdefs.h <<\EOF |
| 6987 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 6988 | EOF |
| 6989 | |
| 6990 | else |
| 6991 | echo "configure: failed program was:" >&5 |
| 6992 | cat conftest.$ac_ext >&5 |
| 6993 | rm -rf conftest* |
| 6994 | echo "$ac_t""no" 1>&6 |
| 6995 | fi |
| 6996 | rm -f conftest* |
| 6997 | |
| 6998 | |
| 6999 | echo $ac_n "checking for /dev/ptc""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7000 | echo "configure:7001: checking for /dev/ptc" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7001 | if test -r /dev/ptc; then |
| 7002 | cat >> confdefs.h <<\EOF |
| 7003 | #define HAVE_DEV_PTC 1 |
| 7004 | EOF |
| 7005 | |
| 7006 | echo "$ac_t""yes" 1>&6 |
| 7007 | else |
| 7008 | echo "$ac_t""no" 1>&6 |
| 7009 | fi |
| 7010 | |
| 7011 | echo $ac_n "checking for SVR4 ptys""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7012 | echo "configure:7013: checking for SVR4 ptys" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7013 | if test -c /dev/ptmx ; then |
| 7014 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7015 | #line 7016 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7016 | #include "confdefs.h" |
| 7017 | |
| 7018 | int main() { |
| 7019 | ptsname(0);grantpt(0);unlockpt(0); |
| 7020 | ; return 0; } |
| 7021 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7022 | if { (eval echo configure:7023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7023 | rm -rf conftest* |
| 7024 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7025 | #define HAVE_SVR4_PTYS 1 |
| 7026 | EOF |
| 7027 | |
| 7028 | else |
| 7029 | echo "configure: failed program was:" >&5 |
| 7030 | cat conftest.$ac_ext >&5 |
| 7031 | rm -rf conftest* |
| 7032 | echo "$ac_t""no" 1>&6 |
| 7033 | fi |
| 7034 | rm -f conftest* |
| 7035 | else |
| 7036 | echo "$ac_t""no" 1>&6 |
| 7037 | fi |
| 7038 | |
| 7039 | echo $ac_n "checking for ptyranges""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7040 | echo "configure:7041: checking for ptyranges" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7041 | if test -d /dev/ptym ; then |
| 7042 | pdir='/dev/ptym' |
| 7043 | else |
| 7044 | pdir='/dev' |
| 7045 | fi |
| 7046 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7047 | #line 7048 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7048 | #include "confdefs.h" |
| 7049 | #ifdef M_UNIX |
| 7050 | yes; |
| 7051 | #endif |
| 7052 | |
| 7053 | EOF |
| 7054 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7055 | egrep "yes" >/dev/null 2>&1; then |
| 7056 | rm -rf conftest* |
| 7057 | ptys=`echo /dev/ptyp??` |
| 7058 | else |
| 7059 | rm -rf conftest* |
| 7060 | ptys=`echo $pdir/pty??` |
| 7061 | fi |
| 7062 | rm -f conftest* |
| 7063 | |
| 7064 | if test "$ptys" != "$pdir/pty??" ; then |
| 7065 | p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
| 7066 | p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
| 7067 | cat >> confdefs.h <<EOF |
| 7068 | #define PTYRANGE0 "$p0" |
| 7069 | EOF |
| 7070 | |
| 7071 | cat >> confdefs.h <<EOF |
| 7072 | #define PTYRANGE1 "$p1" |
| 7073 | EOF |
| 7074 | |
| 7075 | echo "$ac_t""$p0 / $p1" 1>&6 |
| 7076 | else |
| 7077 | echo "$ac_t""don't know" 1>&6 |
| 7078 | fi |
| 7079 | |
| 7080 | echo $ac_n "checking default tty permissions/group""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7081 | echo "configure:7082: checking default tty permissions/group" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7082 | rm -f conftest_grp |
| 7083 | if test "$cross_compiling" = yes; then |
| 7084 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 7085 | else |
| 7086 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7087 | #line 7088 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7088 | #include "confdefs.h" |
| 7089 | |
| 7090 | #include <sys/types.h> |
| 7091 | #include <sys/stat.h> |
| 7092 | #include <stdio.h> |
| 7093 | main() |
| 7094 | { |
| 7095 | struct stat sb; |
| 7096 | char *x,*ttyname(); |
| 7097 | int om, m; |
| 7098 | FILE *fp; |
| 7099 | |
| 7100 | if (!(x = ttyname(0))) exit(1); |
| 7101 | if (stat(x, &sb)) exit(1); |
| 7102 | om = sb.st_mode; |
| 7103 | if (om & 002) exit(0); |
| 7104 | m = system("mesg y"); |
| 7105 | if (m == -1 || m == 127) exit(1); |
| 7106 | if (stat(x, &sb)) exit(1); |
| 7107 | m = sb.st_mode; |
| 7108 | if (chmod(x, om)) exit(1); |
| 7109 | if (m & 002) exit(0); |
| 7110 | if (sb.st_gid == getgid()) exit(1); |
| 7111 | if (!(fp=fopen("conftest_grp", "w"))) |
| 7112 | exit(1); |
| 7113 | fprintf(fp, "%d\n", sb.st_gid); |
| 7114 | fclose(fp); |
| 7115 | exit(0); |
| 7116 | } |
| 7117 | |
| 7118 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7119 | if { (eval echo configure:7120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7120 | then |
| 7121 | |
| 7122 | if test -f conftest_grp; then |
| 7123 | ptygrp=`cat conftest_grp` |
| 7124 | echo "$ac_t""pty mode: 0620, group: $ptygrp" 1>&6 |
| 7125 | cat >> confdefs.h <<\EOF |
| 7126 | #define PTYMODE 0620 |
| 7127 | EOF |
| 7128 | |
| 7129 | cat >> confdefs.h <<EOF |
| 7130 | #define PTYGROUP $ptygrp |
| 7131 | EOF |
| 7132 | |
| 7133 | else |
| 7134 | echo "$ac_t""ptys are world accessable" 1>&6 |
| 7135 | fi |
| 7136 | |
| 7137 | else |
| 7138 | echo "configure: failed program was:" >&5 |
| 7139 | cat conftest.$ac_ext >&5 |
| 7140 | rm -fr conftest* |
| 7141 | echo "$ac_t""can't determine - assume ptys are world accessable" 1>&6 |
| 7142 | fi |
| 7143 | rm -fr conftest* |
| 7144 | fi |
| 7145 | |
| 7146 | rm -f conftest_grp |
| 7147 | |
| 7148 | |
| 7149 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7150 | echo "configure:7151: checking return type of signal handlers" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7151 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
| 7152 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7153 | else |
| 7154 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7155 | #line 7156 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7156 | #include "confdefs.h" |
| 7157 | #include <sys/types.h> |
| 7158 | #include <signal.h> |
| 7159 | #ifdef signal |
| 7160 | #undef signal |
| 7161 | #endif |
| 7162 | #ifdef __cplusplus |
| 7163 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 7164 | #else |
| 7165 | void (*signal ()) (); |
| 7166 | #endif |
| 7167 | |
| 7168 | int main() { |
| 7169 | int i; |
| 7170 | ; return 0; } |
| 7171 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7172 | if { (eval echo configure:7173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7173 | rm -rf conftest* |
| 7174 | ac_cv_type_signal=void |
| 7175 | else |
| 7176 | echo "configure: failed program was:" >&5 |
| 7177 | cat conftest.$ac_ext >&5 |
| 7178 | rm -rf conftest* |
| 7179 | ac_cv_type_signal=int |
| 7180 | fi |
| 7181 | rm -f conftest* |
| 7182 | fi |
| 7183 | |
| 7184 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
| 7185 | cat >> confdefs.h <<EOF |
| 7186 | #define RETSIGTYPE $ac_cv_type_signal |
| 7187 | EOF |
| 7188 | |
| 7189 | |
| 7190 | |
| 7191 | if test $ac_cv_type_signal = void; then |
| 7192 | cat >> confdefs.h <<\EOF |
| 7193 | #define SIGRETURN return |
| 7194 | EOF |
| 7195 | |
| 7196 | else |
| 7197 | cat >> confdefs.h <<\EOF |
| 7198 | #define SIGRETURN return 0 |
| 7199 | EOF |
| 7200 | |
| 7201 | fi |
| 7202 | |
| 7203 | echo $ac_n "checking for struct sigcontext""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7204 | echo "configure:7205: checking for struct sigcontext" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7205 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7206 | #line 7207 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7207 | #include "confdefs.h" |
| 7208 | |
| 7209 | #include <signal.h> |
| 7210 | test_sig() |
| 7211 | { |
| 7212 | struct sigcontext *scont; |
| 7213 | scont = (struct sigcontext *)0; |
| 7214 | return 1; |
| 7215 | } |
| 7216 | int main() { |
| 7217 | |
| 7218 | ; return 0; } |
| 7219 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7220 | if { (eval echo configure:7221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7221 | rm -rf conftest* |
| 7222 | echo "$ac_t""yes" 1>&6 |
| 7223 | cat >> confdefs.h <<\EOF |
| 7224 | #define HAVE_SIGCONTEXT 1 |
| 7225 | EOF |
| 7226 | |
| 7227 | else |
| 7228 | echo "configure: failed program was:" >&5 |
| 7229 | cat conftest.$ac_ext >&5 |
| 7230 | rm -rf conftest* |
| 7231 | echo "$ac_t""no" 1>&6 |
| 7232 | fi |
| 7233 | rm -f conftest* |
| 7234 | |
| 7235 | echo $ac_n "checking getcwd implementation""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7236 | echo "configure:7237: checking getcwd implementation" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7237 | if test "$cross_compiling" = yes; then |
| 7238 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 7239 | else |
| 7240 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7241 | #line 7242 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7242 | #include "confdefs.h" |
| 7243 | |
| 7244 | char *dagger[] = { "IFS=pwd", 0 }; |
| 7245 | main() |
| 7246 | { |
| 7247 | char buffer[500]; |
| 7248 | extern char **environ; |
| 7249 | environ = dagger; |
| 7250 | return getcwd(buffer, 500) ? 0 : 1; |
| 7251 | } |
| 7252 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7253 | if { (eval echo configure:7254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7254 | then |
| 7255 | echo "$ac_t""it is usable" 1>&6 |
| 7256 | else |
| 7257 | echo "configure: failed program was:" >&5 |
| 7258 | cat conftest.$ac_ext >&5 |
| 7259 | rm -fr conftest* |
| 7260 | echo "$ac_t""it stinks" 1>&6 |
| 7261 | cat >> confdefs.h <<\EOF |
| 7262 | #define BAD_GETCWD 1 |
| 7263 | EOF |
| 7264 | |
| 7265 | fi |
| 7266 | rm -fr conftest* |
| 7267 | fi |
| 7268 | |
| 7269 | |
| 7270 | for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ |
| 7271 | getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ |
| 7272 | memset nanosleep opendir putenv qsort readlink select setenv \ |
| 7273 | setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ |
| 7274 | sigvec snprintf strcasecmp strerror strftime stricmp strncasecmp \ |
| 7275 | strnicmp strpbrk strtol tgetent towlower towupper usleep utime utimes |
| 7276 | do |
| 7277 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7278 | echo "configure:7279: checking for $ac_func" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7279 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 7280 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7281 | else |
| 7282 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7283 | #line 7284 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7284 | #include "confdefs.h" |
| 7285 | /* System header to define __stub macros and hopefully few prototypes, |
| 7286 | which can conflict with char $ac_func(); below. */ |
| 7287 | #include <assert.h> |
| 7288 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7289 | /* We use char because int might match the return type of a gcc2 |
| 7290 | builtin and then its argument prototype would still apply. */ |
| 7291 | char $ac_func(); |
| 7292 | |
| 7293 | int main() { |
| 7294 | |
| 7295 | /* The GNU C library defines this for functions which it implements |
| 7296 | to always fail with ENOSYS. Some functions are actually named |
| 7297 | something starting with __ and the normal name is an alias. */ |
| 7298 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 7299 | choke me |
| 7300 | #else |
| 7301 | $ac_func(); |
| 7302 | #endif |
| 7303 | |
| 7304 | ; return 0; } |
| 7305 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7306 | if { (eval echo configure:7307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7307 | rm -rf conftest* |
| 7308 | eval "ac_cv_func_$ac_func=yes" |
| 7309 | else |
| 7310 | echo "configure: failed program was:" >&5 |
| 7311 | cat conftest.$ac_ext >&5 |
| 7312 | rm -rf conftest* |
| 7313 | eval "ac_cv_func_$ac_func=no" |
| 7314 | fi |
| 7315 | rm -f conftest* |
| 7316 | fi |
| 7317 | |
| 7318 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 7319 | echo "$ac_t""yes" 1>&6 |
| 7320 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 7321 | cat >> confdefs.h <<EOF |
| 7322 | #define $ac_tr_func 1 |
| 7323 | EOF |
| 7324 | |
| 7325 | else |
| 7326 | echo "$ac_t""no" 1>&6 |
| 7327 | fi |
| 7328 | done |
| 7329 | |
| 7330 | |
| 7331 | echo $ac_n "checking for st_blksize""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7332 | echo "configure:7333: checking for st_blksize" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7333 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7334 | #line 7335 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7335 | #include "confdefs.h" |
| 7336 | #include <sys/types.h> |
| 7337 | #include <sys/stat.h> |
| 7338 | int main() { |
| 7339 | struct stat st; |
| 7340 | int n; |
| 7341 | |
| 7342 | stat("/", &st); |
| 7343 | n = (int)st.st_blksize; |
| 7344 | ; return 0; } |
| 7345 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7346 | if { (eval echo configure:7347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7347 | rm -rf conftest* |
| 7348 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7349 | #define HAVE_ST_BLKSIZE 1 |
| 7350 | EOF |
| 7351 | |
| 7352 | else |
| 7353 | echo "configure: failed program was:" >&5 |
| 7354 | cat conftest.$ac_ext >&5 |
| 7355 | rm -rf conftest* |
| 7356 | echo "$ac_t""no" 1>&6 |
| 7357 | fi |
| 7358 | rm -f conftest* |
| 7359 | |
| 7360 | echo $ac_n "checking whether stat() ignores a trailing slash""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7361 | echo "configure:7362: checking whether stat() ignores a trailing slash" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7362 | if test "$cross_compiling" = yes; then |
| 7363 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 7364 | else |
| 7365 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7366 | #line 7367 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7367 | #include "confdefs.h" |
| 7368 | #include <sys/types.h> |
| 7369 | #include <sys/stat.h> |
| 7370 | main() {struct stat st; exit(stat("configure/", &st) != 0); } |
| 7371 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7372 | if { (eval echo configure:7373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7373 | then |
| 7374 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7375 | #define STAT_IGNORES_SLASH 1 |
| 7376 | EOF |
| 7377 | |
| 7378 | else |
| 7379 | echo "configure: failed program was:" >&5 |
| 7380 | cat conftest.$ac_ext >&5 |
| 7381 | rm -fr conftest* |
| 7382 | echo "$ac_t""no" 1>&6 |
| 7383 | fi |
| 7384 | rm -fr conftest* |
| 7385 | fi |
| 7386 | |
| 7387 | |
| 7388 | echo $ac_n "checking for iconv_open()""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7389 | echo "configure:7390: checking for iconv_open()" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7390 | save_LIBS="$LIBS" |
| 7391 | LIBS="$LIBS -liconv" |
| 7392 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7393 | #line 7394 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7394 | #include "confdefs.h" |
| 7395 | |
| 7396 | #ifdef HAVE_ICONV_H |
| 7397 | # include <iconv.h> |
| 7398 | #endif |
| 7399 | |
| 7400 | int main() { |
| 7401 | iconv_open("fr", "to"); |
| 7402 | ; return 0; } |
| 7403 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7404 | if { (eval echo configure:7405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7405 | rm -rf conftest* |
| 7406 | echo "$ac_t""yes; with -liconv" 1>&6; cat >> confdefs.h <<\EOF |
| 7407 | #define HAVE_ICONV 1 |
| 7408 | EOF |
| 7409 | |
| 7410 | else |
| 7411 | echo "configure: failed program was:" >&5 |
| 7412 | cat conftest.$ac_ext >&5 |
| 7413 | rm -rf conftest* |
| 7414 | LIBS="$save_LIBS" |
| 7415 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7416 | #line 7417 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7417 | #include "confdefs.h" |
| 7418 | |
| 7419 | #ifdef HAVE_ICONV_H |
| 7420 | # include <iconv.h> |
| 7421 | #endif |
| 7422 | |
| 7423 | int main() { |
| 7424 | iconv_open("fr", "to"); |
| 7425 | ; return 0; } |
| 7426 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7427 | if { (eval echo configure:7428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7428 | rm -rf conftest* |
| 7429 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7430 | #define HAVE_ICONV 1 |
| 7431 | EOF |
| 7432 | |
| 7433 | else |
| 7434 | echo "configure: failed program was:" >&5 |
| 7435 | cat conftest.$ac_ext >&5 |
| 7436 | rm -rf conftest* |
| 7437 | echo "$ac_t""no" 1>&6 |
| 7438 | fi |
| 7439 | rm -f conftest* |
| 7440 | fi |
| 7441 | rm -f conftest* |
| 7442 | |
| 7443 | |
| 7444 | echo $ac_n "checking for nl_langinfo(CODESET)""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7445 | echo "configure:7446: checking for nl_langinfo(CODESET)" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7446 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7447 | #line 7448 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7448 | #include "confdefs.h" |
| 7449 | |
| 7450 | #ifdef HAVE_LANGINFO_H |
| 7451 | # include <langinfo.h> |
| 7452 | #endif |
| 7453 | |
| 7454 | int main() { |
| 7455 | char *cs = nl_langinfo(CODESET); |
| 7456 | ; return 0; } |
| 7457 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7458 | if { (eval echo configure:7459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7459 | rm -rf conftest* |
| 7460 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7461 | #define HAVE_NL_LANGINFO_CODESET 1 |
| 7462 | EOF |
| 7463 | |
| 7464 | else |
| 7465 | echo "configure: failed program was:" >&5 |
| 7466 | cat conftest.$ac_ext >&5 |
| 7467 | rm -rf conftest* |
| 7468 | echo "$ac_t""no" 1>&6 |
| 7469 | fi |
| 7470 | rm -f conftest* |
| 7471 | |
| 7472 | echo $ac_n "checking --disable-acl argument""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7473 | echo "configure:7474: checking --disable-acl argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7474 | # Check whether --enable-acl or --disable-acl was given. |
| 7475 | if test "${enable_acl+set}" = set; then |
| 7476 | enableval="$enable_acl" |
| 7477 | : |
| 7478 | else |
| 7479 | enable_acl="yes" |
| 7480 | fi |
| 7481 | |
| 7482 | if test "$enable_acl" = "yes"; then |
| 7483 | echo "$ac_t""no" 1>&6 |
| 7484 | echo $ac_n "checking for acl_get_file in -lposix1e""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7485 | echo "configure:7486: checking for acl_get_file in -lposix1e" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7486 | ac_lib_var=`echo posix1e'_'acl_get_file | sed 'y%./+-%__p_%'` |
| 7487 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 7488 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7489 | else |
| 7490 | ac_save_LIBS="$LIBS" |
| 7491 | LIBS="-lposix1e $LIBS" |
| 7492 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7493 | #line 7494 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7494 | #include "confdefs.h" |
| 7495 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7496 | /* We use char because int might match the return type of a gcc2 |
| 7497 | builtin and then its argument prototype would still apply. */ |
| 7498 | char acl_get_file(); |
| 7499 | |
| 7500 | int main() { |
| 7501 | acl_get_file() |
| 7502 | ; return 0; } |
| 7503 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7504 | if { (eval echo configure:7505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7505 | rm -rf conftest* |
| 7506 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 7507 | else |
| 7508 | echo "configure: failed program was:" >&5 |
| 7509 | cat conftest.$ac_ext >&5 |
| 7510 | rm -rf conftest* |
| 7511 | eval "ac_cv_lib_$ac_lib_var=no" |
| 7512 | fi |
| 7513 | rm -f conftest* |
| 7514 | LIBS="$ac_save_LIBS" |
| 7515 | |
| 7516 | fi |
| 7517 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 7518 | echo "$ac_t""yes" 1>&6 |
| 7519 | LIBS="$LIBS -lposix1e" |
| 7520 | else |
| 7521 | echo "$ac_t""no" 1>&6 |
| 7522 | echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7523 | echo "configure:7524: checking for acl_get_file in -lacl" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7524 | ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'` |
| 7525 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 7526 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7527 | else |
| 7528 | ac_save_LIBS="$LIBS" |
| 7529 | LIBS="-lacl $LIBS" |
| 7530 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7531 | #line 7532 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7532 | #include "confdefs.h" |
| 7533 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7534 | /* We use char because int might match the return type of a gcc2 |
| 7535 | builtin and then its argument prototype would still apply. */ |
| 7536 | char acl_get_file(); |
| 7537 | |
| 7538 | int main() { |
| 7539 | acl_get_file() |
| 7540 | ; return 0; } |
| 7541 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7542 | if { (eval echo configure:7543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7543 | rm -rf conftest* |
| 7544 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 7545 | else |
| 7546 | echo "configure: failed program was:" >&5 |
| 7547 | cat conftest.$ac_ext >&5 |
| 7548 | rm -rf conftest* |
| 7549 | eval "ac_cv_lib_$ac_lib_var=no" |
| 7550 | fi |
| 7551 | rm -f conftest* |
| 7552 | LIBS="$ac_save_LIBS" |
| 7553 | |
| 7554 | fi |
| 7555 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 7556 | echo "$ac_t""yes" 1>&6 |
| 7557 | LIBS="$LIBS -lacl" |
| 7558 | echo $ac_n "checking for fgetxattr in -lattr""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7559 | echo "configure:7560: checking for fgetxattr in -lattr" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7560 | ac_lib_var=`echo attr'_'fgetxattr | sed 'y%./+-%__p_%'` |
| 7561 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 7562 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7563 | else |
| 7564 | ac_save_LIBS="$LIBS" |
| 7565 | LIBS="-lattr $LIBS" |
| 7566 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7567 | #line 7568 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7568 | #include "confdefs.h" |
| 7569 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7570 | /* We use char because int might match the return type of a gcc2 |
| 7571 | builtin and then its argument prototype would still apply. */ |
| 7572 | char fgetxattr(); |
| 7573 | |
| 7574 | int main() { |
| 7575 | fgetxattr() |
| 7576 | ; return 0; } |
| 7577 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7578 | if { (eval echo configure:7579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7579 | rm -rf conftest* |
| 7580 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 7581 | else |
| 7582 | echo "configure: failed program was:" >&5 |
| 7583 | cat conftest.$ac_ext >&5 |
| 7584 | rm -rf conftest* |
| 7585 | eval "ac_cv_lib_$ac_lib_var=no" |
| 7586 | fi |
| 7587 | rm -f conftest* |
| 7588 | LIBS="$ac_save_LIBS" |
| 7589 | |
| 7590 | fi |
| 7591 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 7592 | echo "$ac_t""yes" 1>&6 |
| 7593 | LIBS="$LIBS -lattr" |
| 7594 | else |
| 7595 | echo "$ac_t""no" 1>&6 |
| 7596 | fi |
| 7597 | |
| 7598 | else |
| 7599 | echo "$ac_t""no" 1>&6 |
| 7600 | fi |
| 7601 | |
| 7602 | fi |
| 7603 | |
| 7604 | |
| 7605 | echo $ac_n "checking for POSIX ACL support""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7606 | echo "configure:7607: checking for POSIX ACL support" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7607 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7608 | #line 7609 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7609 | #include "confdefs.h" |
| 7610 | |
| 7611 | #include <sys/types.h> |
| 7612 | #ifdef HAVE_SYS_ACL_H |
| 7613 | # include <sys/acl.h> |
| 7614 | #endif |
| 7615 | acl_t acl; |
| 7616 | int main() { |
| 7617 | acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
| 7618 | acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
| 7619 | acl_free(acl); |
| 7620 | ; return 0; } |
| 7621 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7622 | if { (eval echo configure:7623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7623 | rm -rf conftest* |
| 7624 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7625 | #define HAVE_POSIX_ACL 1 |
| 7626 | EOF |
| 7627 | |
| 7628 | else |
| 7629 | echo "configure: failed program was:" >&5 |
| 7630 | cat conftest.$ac_ext >&5 |
| 7631 | rm -rf conftest* |
| 7632 | echo "$ac_t""no" 1>&6 |
| 7633 | fi |
| 7634 | rm -f conftest* |
| 7635 | |
| 7636 | echo $ac_n "checking for Solaris ACL support""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7637 | echo "configure:7638: checking for Solaris ACL support" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7638 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7639 | #line 7640 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7640 | #include "confdefs.h" |
| 7641 | |
| 7642 | #ifdef HAVE_SYS_ACL_H |
| 7643 | # include <sys/acl.h> |
| 7644 | #endif |
| 7645 | int main() { |
| 7646 | acl("foo", GETACLCNT, 0, NULL); |
| 7647 | |
| 7648 | ; return 0; } |
| 7649 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7650 | if { (eval echo configure:7651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7651 | rm -rf conftest* |
| 7652 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7653 | #define HAVE_SOLARIS_ACL 1 |
| 7654 | EOF |
| 7655 | |
| 7656 | else |
| 7657 | echo "configure: failed program was:" >&5 |
| 7658 | cat conftest.$ac_ext >&5 |
| 7659 | rm -rf conftest* |
| 7660 | echo "$ac_t""no" 1>&6 |
| 7661 | fi |
| 7662 | rm -f conftest* |
| 7663 | |
| 7664 | echo $ac_n "checking for AIX ACL support""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7665 | echo "configure:7666: checking for AIX ACL support" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7666 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7667 | #line 7668 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7668 | #include "confdefs.h" |
| 7669 | |
| 7670 | #ifdef HAVE_SYS_ACL_H |
| 7671 | # include <sys/acl.h> |
| 7672 | #endif |
| 7673 | #ifdef HAVE_SYS_ACCESS_H |
| 7674 | # include <sys/access.h> |
| 7675 | #endif |
| 7676 | #define _ALL_SOURCE |
| 7677 | |
| 7678 | #include <sys/stat.h> |
| 7679 | |
| 7680 | int aclsize; |
| 7681 | struct acl *aclent; |
| 7682 | int main() { |
| 7683 | aclsize = sizeof(struct acl); |
| 7684 | aclent = (void *)malloc(aclsize); |
| 7685 | statacl("foo", STX_NORMAL, aclent, aclsize); |
| 7686 | |
| 7687 | ; return 0; } |
| 7688 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7689 | if { (eval echo configure:7690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7690 | rm -rf conftest* |
| 7691 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7692 | #define HAVE_AIX_ACL 1 |
| 7693 | EOF |
| 7694 | |
| 7695 | else |
| 7696 | echo "configure: failed program was:" >&5 |
| 7697 | cat conftest.$ac_ext >&5 |
| 7698 | rm -rf conftest* |
| 7699 | echo "$ac_t""no" 1>&6 |
| 7700 | fi |
| 7701 | rm -f conftest* |
| 7702 | else |
| 7703 | echo "$ac_t""yes" 1>&6 |
| 7704 | fi |
| 7705 | |
| 7706 | echo $ac_n "checking --disable-gpm argument""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7707 | echo "configure:7708: checking --disable-gpm argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7708 | # Check whether --enable-gpm or --disable-gpm was given. |
| 7709 | if test "${enable_gpm+set}" = set; then |
| 7710 | enableval="$enable_gpm" |
| 7711 | : |
| 7712 | else |
| 7713 | enable_gpm="yes" |
| 7714 | fi |
| 7715 | |
| 7716 | |
| 7717 | if test "$enable_gpm" = "yes"; then |
| 7718 | echo "$ac_t""no" 1>&6 |
| 7719 | echo $ac_n "checking for gpm""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7720 | echo "configure:7721: checking for gpm" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7721 | if eval "test \"`echo '$''{'vi_cv_have_gpm'+set}'`\" = set"; then |
| 7722 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7723 | else |
| 7724 | olibs="$LIBS" ; LIBS="-lgpm" |
| 7725 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7726 | #line 7727 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7727 | #include "confdefs.h" |
| 7728 | #include <gpm.h> |
| 7729 | #include <linux/keyboard.h> |
| 7730 | int main() { |
| 7731 | Gpm_GetLibVersion(NULL); |
| 7732 | ; return 0; } |
| 7733 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7734 | if { (eval echo configure:7735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7735 | rm -rf conftest* |
| 7736 | vi_cv_have_gpm=yes |
| 7737 | else |
| 7738 | echo "configure: failed program was:" >&5 |
| 7739 | cat conftest.$ac_ext >&5 |
| 7740 | rm -rf conftest* |
| 7741 | vi_cv_have_gpm=no |
| 7742 | fi |
| 7743 | rm -f conftest* |
| 7744 | LIBS="$olibs" |
| 7745 | |
| 7746 | fi |
| 7747 | |
| 7748 | echo "$ac_t""$vi_cv_have_gpm" 1>&6 |
| 7749 | if test $vi_cv_have_gpm = yes; then |
| 7750 | LIBS="$LIBS -lgpm" |
| 7751 | cat >> confdefs.h <<\EOF |
| 7752 | #define HAVE_GPM 1 |
| 7753 | EOF |
| 7754 | |
| 7755 | fi |
| 7756 | else |
| 7757 | echo "$ac_t""yes" 1>&6 |
| 7758 | fi |
| 7759 | |
| 7760 | echo $ac_n "checking for vsnprintf()""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7761 | echo "configure:7762: checking for vsnprintf()" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7762 | if test "$cross_compiling" = yes; then |
| 7763 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 7764 | else |
| 7765 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7766 | #line 7767 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7767 | #include "confdefs.h" |
| 7768 | |
| 7769 | #include <stdio.h> |
| 7770 | #include <stdarg.h> |
| 7771 | /* Check use of vsnprintf() */ |
| 7772 | void warn(char *fmt, ...); |
| 7773 | void warn(char *fmt, ...) |
| 7774 | { |
| 7775 | va_list ap; char buf[20]; |
| 7776 | va_start(ap, fmt); |
| 7777 | vsnprintf(buf, 20, fmt, ap); |
| 7778 | va_end(ap); |
| 7779 | } |
| 7780 | main() |
| 7781 | { |
| 7782 | warn("testing %s\n", "a very long string that won't fit"); |
| 7783 | exit(0); |
| 7784 | } |
| 7785 | |
| 7786 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7787 | if { (eval echo configure:7788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7788 | then |
| 7789 | cat >> confdefs.h <<\EOF |
| 7790 | #define HAVE_VSNPRINTF 1 |
| 7791 | EOF |
| 7792 | echo "$ac_t""yes" 1>&6 |
| 7793 | else |
| 7794 | echo "configure: failed program was:" >&5 |
| 7795 | cat conftest.$ac_ext >&5 |
| 7796 | rm -fr conftest* |
| 7797 | echo "$ac_t""no" 1>&6 |
| 7798 | fi |
| 7799 | rm -fr conftest* |
| 7800 | fi |
| 7801 | |
| 7802 | |
| 7803 | |
| 7804 | echo $ac_n "checking for rename""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7805 | echo "configure:7806: checking for rename" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7806 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7807 | #line 7808 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7808 | #include "confdefs.h" |
| 7809 | #include <stdio.h> |
| 7810 | int main() { |
| 7811 | rename("this", "that") |
| 7812 | ; return 0; } |
| 7813 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7814 | if { (eval echo configure:7815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7815 | rm -rf conftest* |
| 7816 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7817 | #define HAVE_RENAME 1 |
| 7818 | EOF |
| 7819 | |
| 7820 | else |
| 7821 | echo "configure: failed program was:" >&5 |
| 7822 | cat conftest.$ac_ext >&5 |
| 7823 | rm -rf conftest* |
| 7824 | echo "$ac_t""no" 1>&6 |
| 7825 | fi |
| 7826 | rm -f conftest* |
| 7827 | |
| 7828 | echo $ac_n "checking for sysctl""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7829 | echo "configure:7830: checking for sysctl" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7830 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7831 | #line 7832 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7832 | #include "confdefs.h" |
| 7833 | #include <sys/types.h> |
| 7834 | #include <sys/sysctl.h> |
| 7835 | int main() { |
| 7836 | int mib[2], r; |
| 7837 | size_t len; |
| 7838 | |
| 7839 | mib[0] = CTL_HW; |
| 7840 | mib[1] = HW_USERMEM; |
| 7841 | len = sizeof(r); |
| 7842 | (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
| 7843 | |
| 7844 | ; return 0; } |
| 7845 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7846 | if { (eval echo configure:7847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7847 | rm -rf conftest* |
| 7848 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7849 | #define HAVE_SYSCTL 1 |
| 7850 | EOF |
| 7851 | |
| 7852 | else |
| 7853 | echo "configure: failed program was:" >&5 |
| 7854 | cat conftest.$ac_ext >&5 |
| 7855 | rm -rf conftest* |
| 7856 | echo "$ac_t""not usable" 1>&6 |
| 7857 | fi |
| 7858 | rm -f conftest* |
| 7859 | |
| 7860 | echo $ac_n "checking for sysinfo""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7861 | echo "configure:7862: checking for sysinfo" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7862 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7863 | #line 7864 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7864 | #include "confdefs.h" |
| 7865 | #include <sys/types.h> |
| 7866 | #include <sys/sysinfo.h> |
| 7867 | int main() { |
| 7868 | struct sysinfo sinfo; |
| 7869 | int t; |
| 7870 | |
| 7871 | (void)sysinfo(&sinfo); |
| 7872 | t = sinfo.totalram; |
| 7873 | |
| 7874 | ; return 0; } |
| 7875 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7876 | if { (eval echo configure:7877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7877 | rm -rf conftest* |
| 7878 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7879 | #define HAVE_SYSINFO 1 |
| 7880 | EOF |
| 7881 | |
| 7882 | else |
| 7883 | echo "configure: failed program was:" >&5 |
| 7884 | cat conftest.$ac_ext >&5 |
| 7885 | rm -rf conftest* |
| 7886 | echo "$ac_t""not usable" 1>&6 |
| 7887 | fi |
| 7888 | rm -f conftest* |
| 7889 | |
| 7890 | echo $ac_n "checking for sysconf""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7891 | echo "configure:7892: checking for sysconf" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7892 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7893 | #line 7894 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7894 | #include "confdefs.h" |
| 7895 | #include <unistd.h> |
| 7896 | int main() { |
| 7897 | (void)sysconf(_SC_PAGESIZE); |
| 7898 | (void)sysconf(_SC_PHYS_PAGES); |
| 7899 | |
| 7900 | ; return 0; } |
| 7901 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7902 | if { (eval echo configure:7903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7903 | rm -rf conftest* |
| 7904 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7905 | #define HAVE_SYSCONF 1 |
| 7906 | EOF |
| 7907 | |
| 7908 | else |
| 7909 | echo "configure: failed program was:" >&5 |
| 7910 | cat conftest.$ac_ext >&5 |
| 7911 | rm -rf conftest* |
| 7912 | echo "$ac_t""not usable" 1>&6 |
| 7913 | fi |
| 7914 | rm -f conftest* |
| 7915 | |
| 7916 | |
| 7917 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7918 | echo "configure:7919: checking size of int" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7919 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 7920 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7921 | else |
| 7922 | if test "$cross_compiling" = yes; then |
| 7923 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 7924 | else |
| 7925 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7926 | #line 7927 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7927 | #include "confdefs.h" |
| 7928 | #include <stdio.h> |
| 7929 | main() |
| 7930 | { |
| 7931 | FILE *f=fopen("conftestval", "w"); |
| 7932 | if (!f) exit(1); |
| 7933 | fprintf(f, "%d\n", (int)sizeof(int)); |
| 7934 | exit(0); |
| 7935 | } |
| 7936 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7937 | if { (eval echo configure:7938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7938 | then |
| 7939 | ac_cv_sizeof_int=`cat conftestval` |
| 7940 | else |
| 7941 | echo "configure: failed program was:" >&5 |
| 7942 | cat conftest.$ac_ext >&5 |
| 7943 | rm -fr conftest* |
| 7944 | ac_cv_sizeof_int=0 |
| 7945 | fi |
| 7946 | rm -fr conftest* |
| 7947 | fi |
| 7948 | |
| 7949 | fi |
| 7950 | |
| 7951 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 7952 | cat >> confdefs.h <<EOF |
| 7953 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 7954 | EOF |
| 7955 | |
| 7956 | |
| 7957 | echo $ac_n "checking whether memmove/bcopy/memcpy handle overlaps""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7958 | echo "configure:7959: checking whether memmove/bcopy/memcpy handle overlaps" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7959 | bcopy_test_prog=' |
| 7960 | main() { |
| 7961 | char buf[10]; |
| 7962 | strcpy(buf, "abcdefghi"); |
| 7963 | mch_memmove(buf, buf + 2, 3); |
| 7964 | if (strncmp(buf, "ababcf", 6)) |
| 7965 | exit(1); |
| 7966 | strcpy(buf, "abcdefghi"); |
| 7967 | mch_memmove(buf + 2, buf, 3); |
| 7968 | if (strncmp(buf, "cdedef", 6)) |
| 7969 | exit(1); |
| 7970 | exit(0); /* libc version works properly. */ |
| 7971 | }' |
| 7972 | |
| 7973 | |
| 7974 | if test "$cross_compiling" = yes; then |
| 7975 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 7976 | else |
| 7977 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7978 | #line 7979 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7979 | #include "confdefs.h" |
| 7980 | #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog |
| 7981 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7982 | if { (eval echo configure:7983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7983 | then |
| 7984 | cat >> confdefs.h <<\EOF |
| 7985 | #define USEMEMMOVE 1 |
| 7986 | EOF |
| 7987 | echo "$ac_t""memmove does" 1>&6 |
| 7988 | else |
| 7989 | echo "configure: failed program was:" >&5 |
| 7990 | cat conftest.$ac_ext >&5 |
| 7991 | rm -fr conftest* |
| 7992 | if test "$cross_compiling" = yes; then |
| 7993 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 7994 | else |
| 7995 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 7996 | #line 7997 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7997 | #include "confdefs.h" |
| 7998 | #define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog |
| 7999 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8000 | if { (eval echo configure:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8001 | then |
| 8002 | cat >> confdefs.h <<\EOF |
| 8003 | #define USEBCOPY 1 |
| 8004 | EOF |
| 8005 | echo "$ac_t""bcopy does" 1>&6 |
| 8006 | else |
| 8007 | echo "configure: failed program was:" >&5 |
| 8008 | cat conftest.$ac_ext >&5 |
| 8009 | rm -fr conftest* |
| 8010 | if test "$cross_compiling" = yes; then |
| 8011 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 8012 | else |
| 8013 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8014 | #line 8015 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8015 | #include "confdefs.h" |
| 8016 | #define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog |
| 8017 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8018 | if { (eval echo configure:8019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8019 | then |
| 8020 | cat >> confdefs.h <<\EOF |
| 8021 | #define USEMEMCPY 1 |
| 8022 | EOF |
| 8023 | echo "$ac_t""memcpy does" 1>&6 |
| 8024 | else |
| 8025 | echo "configure: failed program was:" >&5 |
| 8026 | cat conftest.$ac_ext >&5 |
| 8027 | rm -fr conftest* |
| 8028 | echo "$ac_t""no" 1>&6 |
| 8029 | fi |
| 8030 | rm -fr conftest* |
| 8031 | fi |
| 8032 | |
| 8033 | fi |
| 8034 | rm -fr conftest* |
| 8035 | fi |
| 8036 | |
| 8037 | fi |
| 8038 | rm -fr conftest* |
| 8039 | fi |
| 8040 | |
| 8041 | |
| 8042 | |
| 8043 | if test "$enable_multibyte" = "yes"; then |
| 8044 | cflags_save=$CFLAGS |
| 8045 | ldflags_save=$LDFLAGS |
| 8046 | if test -n "$x_includes" ; then |
| 8047 | CFLAGS="$CFLAGS -I$x_includes" |
| 8048 | LDFLAGS="$X_LIBS $LDFLAGS -lX11" |
| 8049 | echo $ac_n "checking whether X_LOCALE needed""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8050 | echo "configure:8051: checking whether X_LOCALE needed" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8051 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8052 | #line 8053 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8053 | #include "confdefs.h" |
| 8054 | #include <X11/Xlocale.h> |
| 8055 | int main() { |
| 8056 | |
| 8057 | ; return 0; } |
| 8058 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8059 | if { (eval echo configure:8060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8060 | rm -rf conftest* |
| 8061 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8062 | #line 8063 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8063 | #include "confdefs.h" |
| 8064 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8065 | /* We use char because int might match the return type of a gcc2 |
| 8066 | builtin and then its argument prototype would still apply. */ |
| 8067 | char _Xsetlocale(); |
| 8068 | |
| 8069 | int main() { |
| 8070 | _Xsetlocale() |
| 8071 | ; return 0; } |
| 8072 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8073 | if { (eval echo configure:8074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8074 | rm -rf conftest* |
| 8075 | echo "$ac_t""yes" 1>&6 |
| 8076 | cat >> confdefs.h <<\EOF |
| 8077 | #define X_LOCALE 1 |
| 8078 | EOF |
| 8079 | |
| 8080 | else |
| 8081 | echo "configure: failed program was:" >&5 |
| 8082 | cat conftest.$ac_ext >&5 |
| 8083 | rm -rf conftest* |
| 8084 | echo "$ac_t""no" 1>&6 |
| 8085 | fi |
| 8086 | rm -f conftest* |
| 8087 | else |
| 8088 | echo "configure: failed program was:" >&5 |
| 8089 | cat conftest.$ac_ext >&5 |
| 8090 | rm -rf conftest* |
| 8091 | echo "$ac_t""no" 1>&6 |
| 8092 | fi |
| 8093 | rm -f conftest* |
| 8094 | fi |
| 8095 | CFLAGS=$cflags_save |
| 8096 | LDFLAGS=$ldflags_save |
| 8097 | fi |
| 8098 | |
| 8099 | echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8100 | echo "configure:8101: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8101 | ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'` |
| 8102 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 8103 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8104 | else |
| 8105 | ac_save_LIBS="$LIBS" |
| 8106 | LIBS="-lxpg4 $LIBS" |
| 8107 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8108 | #line 8109 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8109 | #include "confdefs.h" |
| 8110 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8111 | /* We use char because int might match the return type of a gcc2 |
| 8112 | builtin and then its argument prototype would still apply. */ |
| 8113 | char _xpg4_setrunelocale(); |
| 8114 | |
| 8115 | int main() { |
| 8116 | _xpg4_setrunelocale() |
| 8117 | ; return 0; } |
| 8118 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8119 | if { (eval echo configure:8120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8120 | rm -rf conftest* |
| 8121 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 8122 | else |
| 8123 | echo "configure: failed program was:" >&5 |
| 8124 | cat conftest.$ac_ext >&5 |
| 8125 | rm -rf conftest* |
| 8126 | eval "ac_cv_lib_$ac_lib_var=no" |
| 8127 | fi |
| 8128 | rm -f conftest* |
| 8129 | LIBS="$ac_save_LIBS" |
| 8130 | |
| 8131 | fi |
| 8132 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 8133 | echo "$ac_t""yes" 1>&6 |
| 8134 | LIBS="$LIBS -lxpg4" |
| 8135 | else |
| 8136 | echo "$ac_t""no" 1>&6 |
| 8137 | fi |
| 8138 | |
| 8139 | |
| 8140 | echo $ac_n "checking how to create tags""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8141 | echo "configure:8142: checking how to create tags" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8142 | test -f tags && mv tags tags.save |
| 8143 | if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then |
| 8144 | TAGPRG="ctags" |
| 8145 | else |
| 8146 | (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
| 8147 | (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" |
| 8148 | (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" |
| 8149 | (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" |
| 8150 | (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
| 8151 | (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
| 8152 | (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
| 8153 | fi |
| 8154 | test -f tags.save && mv tags.save tags |
| 8155 | echo "$ac_t""$TAGPRG" 1>&6 |
| 8156 | |
| 8157 | echo $ac_n "checking how to run man with a section nr""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8158 | echo "configure:8159: checking how to run man with a section nr" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8159 | MANDEF="man" |
| 8160 | (eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" |
| 8161 | echo "$ac_t""$MANDEF" 1>&6 |
| 8162 | if test "$MANDEF" = "man -s"; then |
| 8163 | cat >> confdefs.h <<\EOF |
| 8164 | #define USEMAN_S 1 |
| 8165 | EOF |
| 8166 | |
| 8167 | fi |
| 8168 | |
| 8169 | echo $ac_n "checking --disable-nls argument""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8170 | echo "configure:8171: checking --disable-nls argument" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8171 | # Check whether --enable-nls or --disable-nls was given. |
| 8172 | if test "${enable_nls+set}" = set; then |
| 8173 | enableval="$enable_nls" |
| 8174 | : |
| 8175 | else |
| 8176 | enable_nls="yes" |
| 8177 | fi |
| 8178 | |
| 8179 | |
| 8180 | if test "$enable_nls" = "yes"; then |
| 8181 | echo "$ac_t""no" 1>&6 |
| 8182 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 8183 | set dummy msgfmt; ac_word=$2 |
| 8184 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8185 | echo "configure:8186: checking for $ac_word" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8186 | if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then |
| 8187 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8188 | else |
| 8189 | if test -n "$MSGFMT"; then |
| 8190 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 8191 | else |
| 8192 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 8193 | ac_dummy="$PATH" |
| 8194 | for ac_dir in $ac_dummy; do |
| 8195 | test -z "$ac_dir" && ac_dir=. |
| 8196 | if test -f $ac_dir/$ac_word; then |
| 8197 | ac_cv_prog_MSGFMT="msgfmt" |
| 8198 | break |
| 8199 | fi |
| 8200 | done |
| 8201 | IFS="$ac_save_ifs" |
| 8202 | fi |
| 8203 | fi |
| 8204 | MSGFMT="$ac_cv_prog_MSGFMT" |
| 8205 | if test -n "$MSGFMT"; then |
| 8206 | echo "$ac_t""$MSGFMT" 1>&6 |
| 8207 | else |
| 8208 | echo "$ac_t""no" 1>&6 |
| 8209 | fi |
| 8210 | |
| 8211 | echo $ac_n "checking for NLS""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8212 | echo "configure:8213: checking for NLS" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8213 | if test -f po/Makefile; then |
| 8214 | have_gettext="no" |
| 8215 | if test -n "$MSGFMT"; then |
| 8216 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8217 | #line 8218 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8218 | #include "confdefs.h" |
| 8219 | #include <libintl.h> |
| 8220 | int main() { |
| 8221 | gettext("Test"); |
| 8222 | ; return 0; } |
| 8223 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8224 | if { (eval echo configure:8225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8225 | rm -rf conftest* |
| 8226 | echo "$ac_t""gettext() works" 1>&6; have_gettext="yes" |
| 8227 | else |
| 8228 | echo "configure: failed program was:" >&5 |
| 8229 | cat conftest.$ac_ext >&5 |
| 8230 | rm -rf conftest* |
| 8231 | olibs=$LIBS |
| 8232 | LIBS="$LIBS -lintl" |
| 8233 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8234 | #line 8235 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8235 | #include "confdefs.h" |
| 8236 | #include <libintl.h> |
| 8237 | int main() { |
| 8238 | gettext("Test"); |
| 8239 | ; return 0; } |
| 8240 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8241 | if { (eval echo configure:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8242 | rm -rf conftest* |
| 8243 | echo "$ac_t""gettext() works with -lintl" 1>&6; have_gettext="yes" |
| 8244 | else |
| 8245 | echo "configure: failed program was:" >&5 |
| 8246 | cat conftest.$ac_ext >&5 |
| 8247 | rm -rf conftest* |
| 8248 | echo "$ac_t""gettext() doesn't work" 1>&6; |
| 8249 | LIBS=$olibs |
| 8250 | fi |
| 8251 | rm -f conftest* |
| 8252 | fi |
| 8253 | rm -f conftest* |
| 8254 | else |
| 8255 | echo "$ac_t""msgfmt not found - disabled" 1>&6; |
| 8256 | fi |
| 8257 | if test $have_gettext = "yes"; then |
| 8258 | cat >> confdefs.h <<\EOF |
| 8259 | #define HAVE_GETTEXT 1 |
| 8260 | EOF |
| 8261 | |
| 8262 | MAKEMO=yes |
| 8263 | |
| 8264 | for ac_func in bind_textdomain_codeset |
| 8265 | do |
| 8266 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8267 | echo "configure:8268: checking for $ac_func" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8268 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 8269 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8270 | else |
| 8271 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8272 | #line 8273 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8273 | #include "confdefs.h" |
| 8274 | /* System header to define __stub macros and hopefully few prototypes, |
| 8275 | which can conflict with char $ac_func(); below. */ |
| 8276 | #include <assert.h> |
| 8277 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8278 | /* We use char because int might match the return type of a gcc2 |
| 8279 | builtin and then its argument prototype would still apply. */ |
| 8280 | char $ac_func(); |
| 8281 | |
| 8282 | int main() { |
| 8283 | |
| 8284 | /* The GNU C library defines this for functions which it implements |
| 8285 | to always fail with ENOSYS. Some functions are actually named |
| 8286 | something starting with __ and the normal name is an alias. */ |
| 8287 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8288 | choke me |
| 8289 | #else |
| 8290 | $ac_func(); |
| 8291 | #endif |
| 8292 | |
| 8293 | ; return 0; } |
| 8294 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8295 | if { (eval echo configure:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8296 | rm -rf conftest* |
| 8297 | eval "ac_cv_func_$ac_func=yes" |
| 8298 | else |
| 8299 | echo "configure: failed program was:" >&5 |
| 8300 | cat conftest.$ac_ext >&5 |
| 8301 | rm -rf conftest* |
| 8302 | eval "ac_cv_func_$ac_func=no" |
| 8303 | fi |
| 8304 | rm -f conftest* |
| 8305 | fi |
| 8306 | |
| 8307 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 8308 | echo "$ac_t""yes" 1>&6 |
| 8309 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 8310 | cat >> confdefs.h <<EOF |
| 8311 | #define $ac_tr_func 1 |
| 8312 | EOF |
| 8313 | |
| 8314 | else |
| 8315 | echo "$ac_t""no" 1>&6 |
| 8316 | fi |
| 8317 | done |
| 8318 | |
| 8319 | echo $ac_n "checking for _nl_msg_cat_cntr""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8320 | echo "configure:8321: checking for _nl_msg_cat_cntr" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8321 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8322 | #line 8323 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8323 | #include "confdefs.h" |
| 8324 | #include <libintl.h> |
| 8325 | extern int _nl_msg_cat_cntr; |
| 8326 | int main() { |
| 8327 | ++_nl_msg_cat_cntr; |
| 8328 | ; return 0; } |
| 8329 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8330 | if { (eval echo configure:8331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8331 | rm -rf conftest* |
| 8332 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 8333 | #define HAVE_NL_MSG_CAT_CNTR 1 |
| 8334 | EOF |
| 8335 | |
| 8336 | else |
| 8337 | echo "configure: failed program was:" >&5 |
| 8338 | cat conftest.$ac_ext >&5 |
| 8339 | rm -rf conftest* |
| 8340 | echo "$ac_t""no" 1>&6 |
| 8341 | fi |
| 8342 | rm -f conftest* |
| 8343 | fi |
| 8344 | else |
| 8345 | echo "$ac_t""no "po/Makefile" - disabled" 1>&6; |
| 8346 | fi |
| 8347 | else |
| 8348 | echo "$ac_t""yes" 1>&6 |
| 8349 | fi |
| 8350 | |
| 8351 | ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` |
| 8352 | echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8353 | echo "configure:8354: checking for dlfcn.h" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8354 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 8355 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8356 | else |
| 8357 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8358 | #line 8359 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8359 | #include "confdefs.h" |
| 8360 | #include <dlfcn.h> |
| 8361 | EOF |
| 8362 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8363 | { (eval echo configure:8364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8364 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 8365 | if test -z "$ac_err"; then |
| 8366 | rm -rf conftest* |
| 8367 | eval "ac_cv_header_$ac_safe=yes" |
| 8368 | else |
| 8369 | echo "$ac_err" >&5 |
| 8370 | echo "configure: failed program was:" >&5 |
| 8371 | cat conftest.$ac_ext >&5 |
| 8372 | rm -rf conftest* |
| 8373 | eval "ac_cv_header_$ac_safe=no" |
| 8374 | fi |
| 8375 | rm -f conftest* |
| 8376 | fi |
| 8377 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 8378 | echo "$ac_t""yes" 1>&6 |
| 8379 | DLL=dlfcn.h |
| 8380 | else |
| 8381 | echo "$ac_t""no" 1>&6 |
| 8382 | ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'` |
| 8383 | echo $ac_n "checking for dl.h""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8384 | echo "configure:8385: checking for dl.h" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8385 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 8386 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8387 | else |
| 8388 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8389 | #line 8390 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8390 | #include "confdefs.h" |
| 8391 | #include <dl.h> |
| 8392 | EOF |
| 8393 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8394 | { (eval echo configure:8395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8395 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 8396 | if test -z "$ac_err"; then |
| 8397 | rm -rf conftest* |
| 8398 | eval "ac_cv_header_$ac_safe=yes" |
| 8399 | else |
| 8400 | echo "$ac_err" >&5 |
| 8401 | echo "configure: failed program was:" >&5 |
| 8402 | cat conftest.$ac_ext >&5 |
| 8403 | rm -rf conftest* |
| 8404 | eval "ac_cv_header_$ac_safe=no" |
| 8405 | fi |
| 8406 | rm -f conftest* |
| 8407 | fi |
| 8408 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 8409 | echo "$ac_t""yes" 1>&6 |
| 8410 | DLL=dl.h |
| 8411 | else |
| 8412 | echo "$ac_t""no" 1>&6 |
| 8413 | fi |
| 8414 | |
| 8415 | fi |
| 8416 | |
| 8417 | if test x${DLL} = xdlfcn.h; then |
| 8418 | cat >> confdefs.h <<\EOF |
| 8419 | #define HAVE_DLFCN_H 1 |
| 8420 | EOF |
| 8421 | |
| 8422 | echo $ac_n "checking for dlopen()""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8423 | echo "configure:8424: checking for dlopen()" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8424 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8425 | #line 8426 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8426 | #include "confdefs.h" |
| 8427 | |
| 8428 | int main() { |
| 8429 | |
| 8430 | extern void* dlopen(); |
| 8431 | dlopen(); |
| 8432 | |
| 8433 | ; return 0; } |
| 8434 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8435 | if { (eval echo configure:8436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8436 | rm -rf conftest* |
| 8437 | echo "$ac_t""yes" 1>&6; |
| 8438 | cat >> confdefs.h <<\EOF |
| 8439 | #define HAVE_DLOPEN 1 |
| 8440 | EOF |
| 8441 | |
| 8442 | else |
| 8443 | echo "configure: failed program was:" >&5 |
| 8444 | cat conftest.$ac_ext >&5 |
| 8445 | rm -rf conftest* |
| 8446 | echo "$ac_t""no" 1>&6; |
| 8447 | echo $ac_n "checking for dlopen() in -ldl""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8448 | echo "configure:8449: checking for dlopen() in -ldl" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8449 | olibs=$LIBS |
| 8450 | LIBS="$LIBS -ldl" |
| 8451 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8452 | #line 8453 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8453 | #include "confdefs.h" |
| 8454 | |
| 8455 | int main() { |
| 8456 | |
| 8457 | extern void* dlopen(); |
| 8458 | dlopen(); |
| 8459 | |
| 8460 | ; return 0; } |
| 8461 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8462 | if { (eval echo configure:8463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8463 | rm -rf conftest* |
| 8464 | echo "$ac_t""yes" 1>&6; |
| 8465 | cat >> confdefs.h <<\EOF |
| 8466 | #define HAVE_DLOPEN 1 |
| 8467 | EOF |
| 8468 | |
| 8469 | else |
| 8470 | echo "configure: failed program was:" >&5 |
| 8471 | cat conftest.$ac_ext >&5 |
| 8472 | rm -rf conftest* |
| 8473 | echo "$ac_t""no" 1>&6; |
| 8474 | LIBS=$olibs |
| 8475 | fi |
| 8476 | rm -f conftest* |
| 8477 | fi |
| 8478 | rm -f conftest* |
| 8479 | echo $ac_n "checking for dlsym()""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8480 | echo "configure:8481: checking for dlsym()" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8481 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8482 | #line 8483 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8483 | #include "confdefs.h" |
| 8484 | |
| 8485 | int main() { |
| 8486 | |
| 8487 | extern void* dlsym(); |
| 8488 | dlsym(); |
| 8489 | |
| 8490 | ; return 0; } |
| 8491 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8492 | if { (eval echo configure:8493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8493 | rm -rf conftest* |
| 8494 | echo "$ac_t""yes" 1>&6; |
| 8495 | cat >> confdefs.h <<\EOF |
| 8496 | #define HAVE_DLSYM 1 |
| 8497 | EOF |
| 8498 | |
| 8499 | else |
| 8500 | echo "configure: failed program was:" >&5 |
| 8501 | cat conftest.$ac_ext >&5 |
| 8502 | rm -rf conftest* |
| 8503 | echo "$ac_t""no" 1>&6; |
| 8504 | echo $ac_n "checking for dlsym() in -ldl""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8505 | echo "configure:8506: checking for dlsym() in -ldl" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8506 | olibs=$LIBS |
| 8507 | LIBS="$LIBS -ldl" |
| 8508 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8509 | #line 8510 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8510 | #include "confdefs.h" |
| 8511 | |
| 8512 | int main() { |
| 8513 | |
| 8514 | extern void* dlsym(); |
| 8515 | dlsym(); |
| 8516 | |
| 8517 | ; return 0; } |
| 8518 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8519 | if { (eval echo configure:8520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8520 | rm -rf conftest* |
| 8521 | echo "$ac_t""yes" 1>&6; |
| 8522 | cat >> confdefs.h <<\EOF |
| 8523 | #define HAVE_DLSYM 1 |
| 8524 | EOF |
| 8525 | |
| 8526 | else |
| 8527 | echo "configure: failed program was:" >&5 |
| 8528 | cat conftest.$ac_ext >&5 |
| 8529 | rm -rf conftest* |
| 8530 | echo "$ac_t""no" 1>&6; |
| 8531 | LIBS=$olibs |
| 8532 | fi |
| 8533 | rm -f conftest* |
| 8534 | fi |
| 8535 | rm -f conftest* |
| 8536 | elif test x${DLL} = xdl.h; then |
| 8537 | cat >> confdefs.h <<\EOF |
| 8538 | #define HAVE_DL_H 1 |
| 8539 | EOF |
| 8540 | |
| 8541 | echo $ac_n "checking for shl_load()""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8542 | echo "configure:8543: checking for shl_load()" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8543 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8544 | #line 8545 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8545 | #include "confdefs.h" |
| 8546 | |
| 8547 | int main() { |
| 8548 | |
| 8549 | extern void* shl_load(); |
| 8550 | shl_load(); |
| 8551 | |
| 8552 | ; return 0; } |
| 8553 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8554 | if { (eval echo configure:8555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8555 | rm -rf conftest* |
| 8556 | echo "$ac_t""yes" 1>&6; |
| 8557 | cat >> confdefs.h <<\EOF |
| 8558 | #define HAVE_SHL_LOAD 1 |
| 8559 | EOF |
| 8560 | |
| 8561 | else |
| 8562 | echo "configure: failed program was:" >&5 |
| 8563 | cat conftest.$ac_ext >&5 |
| 8564 | rm -rf conftest* |
| 8565 | echo "$ac_t""no" 1>&6; |
| 8566 | echo $ac_n "checking for shl_load() in -ldld""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8567 | echo "configure:8568: checking for shl_load() in -ldld" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8568 | olibs=$LIBS |
| 8569 | LIBS="$LIBS -ldld" |
| 8570 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8571 | #line 8572 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8572 | #include "confdefs.h" |
| 8573 | |
| 8574 | int main() { |
| 8575 | |
| 8576 | extern void* shl_load(); |
| 8577 | shl_load(); |
| 8578 | |
| 8579 | ; return 0; } |
| 8580 | EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8581 | if { (eval echo configure:8582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8582 | rm -rf conftest* |
| 8583 | echo "$ac_t""yes" 1>&6; |
| 8584 | cat >> confdefs.h <<\EOF |
| 8585 | #define HAVE_SHL_LOAD 1 |
| 8586 | EOF |
| 8587 | |
| 8588 | else |
| 8589 | echo "configure: failed program was:" >&5 |
| 8590 | cat conftest.$ac_ext >&5 |
| 8591 | rm -rf conftest* |
| 8592 | echo "$ac_t""no" 1>&6; |
| 8593 | LIBS=$olibs |
| 8594 | fi |
| 8595 | rm -f conftest* |
| 8596 | fi |
| 8597 | rm -f conftest* |
| 8598 | fi |
| 8599 | for ac_hdr in setjmp.h |
| 8600 | do |
| 8601 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 8602 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8603 | echo "configure:8604: checking for $ac_hdr" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8604 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 8605 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8606 | else |
| 8607 | cat > conftest.$ac_ext <<EOF |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8608 | #line 8609 "configure" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8609 | #include "confdefs.h" |
| 8610 | #include <$ac_hdr> |
| 8611 | EOF |
| 8612 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8613 | { (eval echo configure:8614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8614 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 8615 | if test -z "$ac_err"; then |
| 8616 | rm -rf conftest* |
| 8617 | eval "ac_cv_header_$ac_safe=yes" |
| 8618 | else |
| 8619 | echo "$ac_err" >&5 |
| 8620 | echo "configure: failed program was:" >&5 |
| 8621 | cat conftest.$ac_ext >&5 |
| 8622 | rm -rf conftest* |
| 8623 | eval "ac_cv_header_$ac_safe=no" |
| 8624 | fi |
| 8625 | rm -f conftest* |
| 8626 | fi |
| 8627 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 8628 | echo "$ac_t""yes" 1>&6 |
| 8629 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 8630 | cat >> confdefs.h <<EOF |
| 8631 | #define $ac_tr_hdr 1 |
| 8632 | EOF |
| 8633 | |
| 8634 | else |
| 8635 | echo "$ac_t""no" 1>&6 |
| 8636 | fi |
| 8637 | done |
| 8638 | |
| 8639 | |
| 8640 | if test "x$MACOSX" = "xyes" -a -n "$PERL"; then |
| 8641 | if echo $LIBS | grep -e '-ldl' >/dev/null; then |
| 8642 | LIBS=`echo $LIBS | sed s/-ldl//` |
| 8643 | PERL_LIBS="$PERL_LIBS -ldl" |
| 8644 | fi |
| 8645 | fi |
| 8646 | |
| 8647 | if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ |
| 8648 | && test "x$GUITYPE" != "xCARBONGUI"; then |
| 8649 | echo $ac_n "checking whether we need -framework Carbon""... $ac_c" 1>&6 |
Bram Moolenaar | 592e0a2 | 2004-07-03 16:05:59 +0000 | [diff] [blame^] | 8650 | echo "configure:8651: checking whether we need -framework Carbon" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8651 | if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \ |
| 8652 | || test "x$features" = "xhuge"; then |
| 8653 | LIBS="$LIBS -framework Carbon" |
| 8654 | echo "$ac_t""yes" 1>&6 |
| 8655 | else |
| 8656 | echo "$ac_t""no" 1>&6 |
| 8657 | fi |
| 8658 | fi |
| 8659 | |
| 8660 | |
| 8661 | trap '' 1 2 15 |
| 8662 | cat > confcache <<\EOF |
| 8663 | # This file is a shell script that caches the results of configure |
| 8664 | # tests run on this system so they can be shared between configure |
| 8665 | # scripts and configure runs. It is not useful on other systems. |
| 8666 | # If it contains results you don't want to keep, you may remove or edit it. |
| 8667 | # |
| 8668 | # By default, configure uses ./config.cache as the cache file, |
| 8669 | # creating it if it does not exist already. You can give configure |
| 8670 | # the --cache-file=FILE option to use a different cache file; that is |
| 8671 | # what configure does when it calls configure scripts in |
| 8672 | # subdirectories, so they share the cache. |
| 8673 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 8674 | # config.status only pays attention to the cache file if you give it the |
| 8675 | # --recheck option to rerun configure. |
| 8676 | # |
| 8677 | EOF |
| 8678 | # The following way of writing the cache mishandles newlines in values, |
| 8679 | # but we know of no workaround that is simple, portable, and efficient. |
| 8680 | # So, don't put newlines in cache variables' values. |
| 8681 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 8682 | # and sets the high bit in the cache file unless we assign to the vars. |
| 8683 | (set) 2>&1 | |
| 8684 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 8685 | *ac_space=\ *) |
| 8686 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 8687 | # turns \\\\ into \\, and sed turns \\ into \). |
| 8688 | sed -n \ |
| 8689 | -e "s/'/'\\\\''/g" \ |
| 8690 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 8691 | ;; |
| 8692 | *) |
| 8693 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 8694 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 8695 | ;; |
| 8696 | esac >> confcache |
| 8697 | if cmp -s $cache_file confcache; then |
| 8698 | : |
| 8699 | else |
| 8700 | if test -w $cache_file; then |
| 8701 | echo "updating cache $cache_file" |
| 8702 | cat confcache > $cache_file |
| 8703 | else |
| 8704 | echo "not updating unwritable cache $cache_file" |
| 8705 | fi |
| 8706 | fi |
| 8707 | rm -f confcache |
| 8708 | |
| 8709 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 8710 | |
| 8711 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 8712 | # Let make expand exec_prefix. |
| 8713 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 8714 | |
| 8715 | # Any assignment to VPATH causes Sun make to only execute |
| 8716 | # the first set of double-colon rules, so remove it if not needed. |
| 8717 | # If there is a colon in the path, we need to keep it. |
| 8718 | if test "x$srcdir" = x.; then |
| 8719 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 8720 | fi |
| 8721 | |
| 8722 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 8723 | |
| 8724 | DEFS=-DHAVE_CONFIG_H |
| 8725 | |
| 8726 | # Without the "./", some shells look in PATH for config.status. |
| 8727 | : ${CONFIG_STATUS=./config.status} |
| 8728 | |
| 8729 | echo creating $CONFIG_STATUS |
| 8730 | rm -f $CONFIG_STATUS |
| 8731 | cat > $CONFIG_STATUS <<EOF |
| 8732 | #! /bin/sh |
| 8733 | # Generated automatically by configure. |
| 8734 | # Run this file to recreate the current configuration. |
| 8735 | # This directory was configured as follows, |
| 8736 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 8737 | # |
| 8738 | # $0 $ac_configure_args |
| 8739 | # |
| 8740 | # Compiler output produced by configure, useful for debugging |
| 8741 | # configure, is in auto/config.log if it exists. |
| 8742 | |
| 8743 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 8744 | for ac_option |
| 8745 | do |
| 8746 | case "\$ac_option" in |
| 8747 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 8748 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 8749 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 8750 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 8751 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
| 8752 | exit 0 ;; |
| 8753 | -help | --help | --hel | --he | --h) |
| 8754 | echo "\$ac_cs_usage"; exit 0 ;; |
| 8755 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 8756 | esac |
| 8757 | done |
| 8758 | |
| 8759 | ac_given_srcdir=$srcdir |
| 8760 | |
| 8761 | trap 'rm -fr `echo "auto/config.mk:config.mk.in auto/config.h:config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 8762 | EOF |
| 8763 | cat >> $CONFIG_STATUS <<EOF |
| 8764 | |
| 8765 | # Protect against being on the right side of a sed subst in config.status. |
| 8766 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 8767 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 8768 | $ac_vpsub |
| 8769 | $extrasub |
| 8770 | s%@SHELL@%$SHELL%g |
| 8771 | s%@CFLAGS@%$CFLAGS%g |
| 8772 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 8773 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 8774 | s%@FFLAGS@%$FFLAGS%g |
| 8775 | s%@DEFS@%$DEFS%g |
| 8776 | s%@LDFLAGS@%$LDFLAGS%g |
| 8777 | s%@LIBS@%$LIBS%g |
| 8778 | s%@exec_prefix@%$exec_prefix%g |
| 8779 | s%@prefix@%$prefix%g |
| 8780 | s%@program_transform_name@%$program_transform_name%g |
| 8781 | s%@bindir@%$bindir%g |
| 8782 | s%@sbindir@%$sbindir%g |
| 8783 | s%@libexecdir@%$libexecdir%g |
| 8784 | s%@datadir@%$datadir%g |
| 8785 | s%@sysconfdir@%$sysconfdir%g |
| 8786 | s%@sharedstatedir@%$sharedstatedir%g |
| 8787 | s%@localstatedir@%$localstatedir%g |
| 8788 | s%@libdir@%$libdir%g |
| 8789 | s%@includedir@%$includedir%g |
| 8790 | s%@oldincludedir@%$oldincludedir%g |
| 8791 | s%@infodir@%$infodir%g |
| 8792 | s%@mandir@%$mandir%g |
| 8793 | s%@SET_MAKE@%$SET_MAKE%g |
| 8794 | s%@CC@%$CC%g |
| 8795 | s%@CPP@%$CPP%g |
| 8796 | s%@AWK@%$AWK%g |
| 8797 | s%@STRIP@%$STRIP%g |
| 8798 | s%@EXEEXT@%$EXEEXT%g |
| 8799 | s%@CPP_MM@%$CPP_MM%g |
| 8800 | s%@OS_EXTRA_SRC@%$OS_EXTRA_SRC%g |
| 8801 | s%@OS_EXTRA_OBJ@%$OS_EXTRA_OBJ%g |
| 8802 | s%@VIMNAME@%$VIMNAME%g |
| 8803 | s%@EXNAME@%$EXNAME%g |
| 8804 | s%@VIEWNAME@%$VIEWNAME%g |
| 8805 | s%@line_break@%$line_break%g |
| 8806 | s%@dovimdiff@%$dovimdiff%g |
| 8807 | s%@dogvimdiff@%$dogvimdiff%g |
| 8808 | s%@compiledby@%$compiledby%g |
| 8809 | s%@vi_cv_path_perl@%$vi_cv_path_perl%g |
| 8810 | s%@vi_cv_perllib@%$vi_cv_perllib%g |
| 8811 | s%@shrpenv@%$shrpenv%g |
| 8812 | s%@PERL_SRC@%$PERL_SRC%g |
| 8813 | s%@PERL_OBJ@%$PERL_OBJ%g |
| 8814 | s%@PERL_PRO@%$PERL_PRO%g |
| 8815 | s%@PERL_CFLAGS@%$PERL_CFLAGS%g |
| 8816 | s%@PERL_LIBS@%$PERL_LIBS%g |
| 8817 | s%@vi_cv_path_python@%$vi_cv_path_python%g |
| 8818 | s%@PYTHON_CONFDIR@%$PYTHON_CONFDIR%g |
| 8819 | s%@PYTHON_LIBS@%$PYTHON_LIBS%g |
| 8820 | s%@PYTHON_GETPATH_CFLAGS@%$PYTHON_GETPATH_CFLAGS%g |
| 8821 | s%@PYTHON_CFLAGS@%$PYTHON_CFLAGS%g |
| 8822 | s%@PYTHON_SRC@%$PYTHON_SRC%g |
| 8823 | s%@PYTHON_OBJ@%$PYTHON_OBJ%g |
| 8824 | s%@vi_cv_path_tcl@%$vi_cv_path_tcl%g |
| 8825 | s%@TCL_SRC@%$TCL_SRC%g |
| 8826 | s%@TCL_OBJ@%$TCL_OBJ%g |
| 8827 | s%@TCL_PRO@%$TCL_PRO%g |
| 8828 | s%@TCL_CFLAGS@%$TCL_CFLAGS%g |
| 8829 | s%@TCL_LIBS@%$TCL_LIBS%g |
| 8830 | s%@vi_cv_path_ruby@%$vi_cv_path_ruby%g |
| 8831 | s%@RUBY_SRC@%$RUBY_SRC%g |
| 8832 | s%@RUBY_OBJ@%$RUBY_OBJ%g |
| 8833 | s%@RUBY_PRO@%$RUBY_PRO%g |
| 8834 | s%@RUBY_CFLAGS@%$RUBY_CFLAGS%g |
| 8835 | s%@RUBY_LIBS@%$RUBY_LIBS%g |
| 8836 | s%@WORKSHOP_SRC@%$WORKSHOP_SRC%g |
| 8837 | s%@WORKSHOP_OBJ@%$WORKSHOP_OBJ%g |
| 8838 | s%@NETBEANS_SRC@%$NETBEANS_SRC%g |
| 8839 | s%@NETBEANS_OBJ@%$NETBEANS_OBJ%g |
| 8840 | s%@SNIFF_SRC@%$SNIFF_SRC%g |
| 8841 | s%@SNIFF_OBJ@%$SNIFF_OBJ%g |
| 8842 | s%@xmkmfpath@%$xmkmfpath%g |
| 8843 | s%@X_CFLAGS@%$X_CFLAGS%g |
| 8844 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g |
| 8845 | s%@X_LIBS@%$X_LIBS%g |
| 8846 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g |
| 8847 | s%@X_LIB@%$X_LIB%g |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 8848 | s%@MOC@%$MOC%g |
| 8849 | s%@KDE_CONFIG@%$KDE_CONFIG%g |
| 8850 | s%@KDE_LIBS@%$KDE_LIBS%g |
| 8851 | s%@KDE_INCLUDES@%$KDE_INCLUDES%g |
| 8852 | s%@KDE_PREFIX@%$KDE_PREFIX%g |
| 8853 | s%@QT_LIBS@%$QT_LIBS%g |
| 8854 | s%@QT_INCLUDES@%$QT_INCLUDES%g |
| 8855 | s%@ROOTQT@%$ROOTQT%g |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8856 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
| 8857 | s%@GTK12_CONFIG@%$GTK12_CONFIG%g |
| 8858 | s%@PKG_CONFIG@%$PKG_CONFIG%g |
| 8859 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
| 8860 | s%@GTK_LIBS@%$GTK_LIBS%g |
| 8861 | s%@GTK_LIBNAME@%$GTK_LIBNAME%g |
| 8862 | s%@GNOME_LIBS@%$GNOME_LIBS%g |
| 8863 | s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g |
| 8864 | s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g |
| 8865 | s%@GNOME_CONFIG@%$GNOME_CONFIG%g |
| 8866 | s%@MOTIF_LIBNAME@%$MOTIF_LIBNAME%g |
| 8867 | s%@NARROW_PROTO@%$NARROW_PROTO%g |
| 8868 | s%@GUI_INC_LOC@%$GUI_INC_LOC%g |
| 8869 | s%@GUI_LIB_LOC@%$GUI_LIB_LOC%g |
| 8870 | s%@GUITYPE@%$GUITYPE%g |
| 8871 | s%@GUI_X_LIBS@%$GUI_X_LIBS%g |
| 8872 | s%@HANGULIN_SRC@%$HANGULIN_SRC%g |
| 8873 | s%@HANGULIN_OBJ@%$HANGULIN_OBJ%g |
| 8874 | s%@TAGPRG@%$TAGPRG%g |
| 8875 | s%@MSGFMT@%$MSGFMT%g |
| 8876 | s%@MAKEMO@%$MAKEMO%g |
| 8877 | |
| 8878 | CEOF |
| 8879 | EOF |
| 8880 | |
| 8881 | cat >> $CONFIG_STATUS <<\EOF |
| 8882 | |
| 8883 | # Split the substitutions into bite-sized pieces for seds with |
| 8884 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 8885 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 8886 | ac_file=1 # Number of current file. |
| 8887 | ac_beg=1 # First line for current file. |
| 8888 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 8889 | ac_more_lines=: |
| 8890 | ac_sed_cmds="" |
| 8891 | while $ac_more_lines; do |
| 8892 | if test $ac_beg -gt 1; then |
| 8893 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 8894 | else |
| 8895 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 8896 | fi |
| 8897 | if test ! -s conftest.s$ac_file; then |
| 8898 | ac_more_lines=false |
| 8899 | rm -f conftest.s$ac_file |
| 8900 | else |
| 8901 | if test -z "$ac_sed_cmds"; then |
| 8902 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 8903 | else |
| 8904 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 8905 | fi |
| 8906 | ac_file=`expr $ac_file + 1` |
| 8907 | ac_beg=$ac_end |
| 8908 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 8909 | fi |
| 8910 | done |
| 8911 | if test -z "$ac_sed_cmds"; then |
| 8912 | ac_sed_cmds=cat |
| 8913 | fi |
| 8914 | EOF |
| 8915 | |
| 8916 | cat >> $CONFIG_STATUS <<EOF |
| 8917 | |
| 8918 | CONFIG_FILES=\${CONFIG_FILES-"auto/config.mk:config.mk.in"} |
| 8919 | EOF |
| 8920 | cat >> $CONFIG_STATUS <<\EOF |
| 8921 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 8922 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 8923 | case "$ac_file" in |
| 8924 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 8925 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 8926 | *) ac_file_in="${ac_file}.in" ;; |
| 8927 | esac |
| 8928 | |
| 8929 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 8930 | |
| 8931 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 8932 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 8933 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 8934 | # The file is in a subdirectory. |
| 8935 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 8936 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 8937 | # A "../" for each directory in $ac_dir_suffix. |
| 8938 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 8939 | else |
| 8940 | ac_dir_suffix= ac_dots= |
| 8941 | fi |
| 8942 | |
| 8943 | case "$ac_given_srcdir" in |
| 8944 | .) srcdir=. |
| 8945 | if test -z "$ac_dots"; then top_srcdir=. |
| 8946 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 8947 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 8948 | *) # Relative path. |
| 8949 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 8950 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 8951 | esac |
| 8952 | |
| 8953 | |
| 8954 | echo creating "$ac_file" |
| 8955 | rm -f "$ac_file" |
| 8956 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 8957 | case "$ac_file" in |
| 8958 | *Makefile*) ac_comsub="1i\\ |
| 8959 | # $configure_input" ;; |
| 8960 | *) ac_comsub= ;; |
| 8961 | esac |
| 8962 | |
| 8963 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 8964 | sed -e "$ac_comsub |
| 8965 | s%@configure_input@%$configure_input%g |
| 8966 | s%@srcdir@%$srcdir%g |
| 8967 | s%@top_srcdir@%$top_srcdir%g |
| 8968 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 8969 | fi; done |
| 8970 | rm -f conftest.s* |
| 8971 | |
| 8972 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 8973 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 8974 | # |
| 8975 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 8976 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 8977 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
| 8978 | ac_dC='\3' |
| 8979 | ac_dD='%g' |
| 8980 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
| 8981 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 8982 | ac_uB='\([ ]\)%\1#\2define\3' |
| 8983 | ac_uC=' ' |
| 8984 | ac_uD='\4%g' |
| 8985 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 8986 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 8987 | ac_eB='$%\1#\2define\3' |
| 8988 | ac_eC=' ' |
| 8989 | ac_eD='%g' |
| 8990 | |
| 8991 | if test "${CONFIG_HEADERS+set}" != set; then |
| 8992 | EOF |
| 8993 | cat >> $CONFIG_STATUS <<EOF |
| 8994 | CONFIG_HEADERS="auto/config.h:config.h.in" |
| 8995 | EOF |
| 8996 | cat >> $CONFIG_STATUS <<\EOF |
| 8997 | fi |
| 8998 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
| 8999 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 9000 | case "$ac_file" in |
| 9001 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 9002 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 9003 | *) ac_file_in="${ac_file}.in" ;; |
| 9004 | esac |
| 9005 | |
| 9006 | echo creating $ac_file |
| 9007 | |
| 9008 | rm -f conftest.frag conftest.in conftest.out |
| 9009 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 9010 | cat $ac_file_inputs > conftest.in |
| 9011 | |
| 9012 | EOF |
| 9013 | |
| 9014 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 9015 | # the proper values into config.h.in to produce config.h. And first: |
| 9016 | # Protect against being on the right side of a sed subst in config.status. |
| 9017 | # Protect against being in an unquoted here document in config.status. |
| 9018 | rm -f conftest.vals |
| 9019 | cat > conftest.hdr <<\EOF |
| 9020 | s/[\\&%]/\\&/g |
| 9021 | s%[\\$`]%\\&%g |
| 9022 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
| 9023 | s%ac_d%ac_u%gp |
| 9024 | s%ac_u%ac_e%gp |
| 9025 | EOF |
| 9026 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 9027 | rm -f conftest.hdr |
| 9028 | |
| 9029 | # This sed command replaces #undef with comments. This is necessary, for |
| 9030 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 9031 | # on some systems where configure will not decide to define it. |
| 9032 | cat >> conftest.vals <<\EOF |
| 9033 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 9034 | EOF |
| 9035 | |
| 9036 | # Break up conftest.vals because some shells have a limit on |
| 9037 | # the size of here documents, and old seds have small limits too. |
| 9038 | |
| 9039 | rm -f conftest.tail |
| 9040 | while : |
| 9041 | do |
| 9042 | ac_lines=`grep -c . conftest.vals` |
| 9043 | # grep -c gives empty output for an empty file on some AIX systems. |
| 9044 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 9045 | # Write a limited-size here document to conftest.frag. |
| 9046 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 9047 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 9048 | echo 'CEOF |
| 9049 | sed -f conftest.frag conftest.in > conftest.out |
| 9050 | rm -f conftest.in |
| 9051 | mv conftest.out conftest.in |
| 9052 | ' >> $CONFIG_STATUS |
| 9053 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 9054 | rm -f conftest.vals |
| 9055 | mv conftest.tail conftest.vals |
| 9056 | done |
| 9057 | rm -f conftest.vals |
| 9058 | |
| 9059 | cat >> $CONFIG_STATUS <<\EOF |
| 9060 | rm -f conftest.frag conftest.h |
| 9061 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
| 9062 | cat conftest.in >> conftest.h |
| 9063 | rm -f conftest.in |
| 9064 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
| 9065 | echo "$ac_file is unchanged" |
| 9066 | rm -f conftest.h |
| 9067 | else |
| 9068 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 9069 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 9070 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 9071 | # The file is in a subdirectory. |
| 9072 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 9073 | fi |
| 9074 | rm -f $ac_file |
| 9075 | mv conftest.h $ac_file |
| 9076 | fi |
| 9077 | fi; done |
| 9078 | |
| 9079 | EOF |
| 9080 | cat >> $CONFIG_STATUS <<EOF |
| 9081 | |
| 9082 | EOF |
| 9083 | cat >> $CONFIG_STATUS <<\EOF |
| 9084 | |
| 9085 | exit 0 |
| 9086 | EOF |
| 9087 | chmod +x $CONFIG_STATUS |
| 9088 | rm -fr confdefs* $ac_clean_files |
| 9089 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 9090 | |
| 9091 | |