Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +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 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 15 | --with-installed-zlib use the version of zlib which is installed on the |
| 16 | system instead of the one distributed with VNC" |
| 17 | ac_help="$ac_help |
| 18 | --with-installed-jpeg use the version of jpeg which is installed on the |
| 19 | system instead of the one distributed with VNC" |
| 20 | |
| 21 | # Initialize some variables set by options. |
| 22 | # The variables have the same names as the options, with |
| 23 | # dashes changed to underlines. |
| 24 | build=NONE |
| 25 | cache_file=./config.cache |
| 26 | exec_prefix=NONE |
| 27 | host=NONE |
| 28 | no_create= |
| 29 | nonopt=NONE |
| 30 | no_recursion= |
| 31 | prefix=NONE |
| 32 | program_prefix=NONE |
| 33 | program_suffix=NONE |
| 34 | program_transform_name=s,x,x, |
| 35 | silent= |
| 36 | site= |
| 37 | srcdir= |
| 38 | target=NONE |
| 39 | verbose= |
| 40 | x_includes=NONE |
| 41 | x_libraries=NONE |
| 42 | bindir='${exec_prefix}/bin' |
| 43 | sbindir='${exec_prefix}/sbin' |
| 44 | libexecdir='${exec_prefix}/libexec' |
| 45 | datadir='${prefix}/share' |
| 46 | sysconfdir='${prefix}/etc' |
| 47 | sharedstatedir='${prefix}/com' |
| 48 | localstatedir='${prefix}/var' |
| 49 | libdir='${exec_prefix}/lib' |
| 50 | includedir='${prefix}/include' |
| 51 | oldincludedir='/usr/include' |
| 52 | infodir='${prefix}/info' |
| 53 | mandir='${prefix}/man' |
| 54 | |
| 55 | # Initialize some other variables. |
| 56 | subdirs= |
| 57 | MFLAGS= MAKEFLAGS= |
| 58 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 59 | # Maximum number of lines to put in a shell here document. |
| 60 | ac_max_here_lines=12 |
| 61 | |
| 62 | ac_prev= |
| 63 | for ac_option |
| 64 | do |
| 65 | |
| 66 | # If the previous option needs an argument, assign it. |
| 67 | if test -n "$ac_prev"; then |
| 68 | eval "$ac_prev=\$ac_option" |
| 69 | ac_prev= |
| 70 | continue |
| 71 | fi |
| 72 | |
| 73 | case "$ac_option" in |
| 74 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 75 | *) ac_optarg= ;; |
| 76 | esac |
| 77 | |
| 78 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 79 | |
| 80 | case "$ac_option" in |
| 81 | |
| 82 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 83 | ac_prev=bindir ;; |
| 84 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 85 | bindir="$ac_optarg" ;; |
| 86 | |
| 87 | -build | --build | --buil | --bui | --bu) |
| 88 | ac_prev=build ;; |
| 89 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 90 | build="$ac_optarg" ;; |
| 91 | |
| 92 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 93 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 94 | ac_prev=cache_file ;; |
| 95 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 96 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 97 | cache_file="$ac_optarg" ;; |
| 98 | |
| 99 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 100 | ac_prev=datadir ;; |
| 101 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 102 | | --da=*) |
| 103 | datadir="$ac_optarg" ;; |
| 104 | |
| 105 | -disable-* | --disable-*) |
| 106 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 107 | # Reject names that are not valid shell variable names. |
| 108 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 109 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 110 | fi |
| 111 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 112 | eval "enable_${ac_feature}=no" ;; |
| 113 | |
| 114 | -enable-* | --enable-*) |
| 115 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 116 | # Reject names that are not valid shell variable names. |
| 117 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 118 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 119 | fi |
| 120 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 121 | case "$ac_option" in |
| 122 | *=*) ;; |
| 123 | *) ac_optarg=yes ;; |
| 124 | esac |
| 125 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 126 | |
| 127 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 128 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 129 | | --exec | --exe | --ex) |
| 130 | ac_prev=exec_prefix ;; |
| 131 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 132 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 133 | | --exec=* | --exe=* | --ex=*) |
| 134 | exec_prefix="$ac_optarg" ;; |
| 135 | |
| 136 | -gas | --gas | --ga | --g) |
| 137 | # Obsolete; use --with-gas. |
| 138 | with_gas=yes ;; |
| 139 | |
| 140 | -help | --help | --hel | --he) |
| 141 | # Omit some internal or obsolete options to make the list less imposing. |
| 142 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 143 | cat << EOF |
| 144 | Usage: configure [options] [host] |
| 145 | Options: [defaults in brackets after descriptions] |
| 146 | Configuration: |
| 147 | --cache-file=FILE cache test results in FILE |
| 148 | --help print this message |
| 149 | --no-create do not create output files |
| 150 | --quiet, --silent do not print \`checking...' messages |
| 151 | --version print the version of autoconf that created configure |
| 152 | Directory and file names: |
| 153 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 154 | [$ac_default_prefix] |
| 155 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 156 | [same as prefix] |
| 157 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 158 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 159 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 160 | --datadir=DIR read-only architecture-independent data in DIR |
| 161 | [PREFIX/share] |
| 162 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 163 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 164 | [PREFIX/com] |
| 165 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 166 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 167 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 168 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 169 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 170 | --mandir=DIR man documentation in DIR [PREFIX/man] |
| 171 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 172 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 173 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 174 | --program-transform-name=PROGRAM |
| 175 | run sed PROGRAM on installed program names |
| 176 | EOF |
| 177 | cat << EOF |
| 178 | Host type: |
| 179 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 180 | --host=HOST configure for HOST [guessed] |
| 181 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 182 | Features and packages: |
| 183 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 184 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 185 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 186 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 187 | --x-includes=DIR X include files are in DIR |
| 188 | --x-libraries=DIR X library files are in DIR |
| 189 | EOF |
| 190 | if test -n "$ac_help"; then |
| 191 | echo "--enable and --with options recognized:$ac_help" |
| 192 | fi |
| 193 | exit 0 ;; |
| 194 | |
| 195 | -host | --host | --hos | --ho) |
| 196 | ac_prev=host ;; |
| 197 | -host=* | --host=* | --hos=* | --ho=*) |
| 198 | host="$ac_optarg" ;; |
| 199 | |
| 200 | -includedir | --includedir | --includedi | --included | --include \ |
| 201 | | --includ | --inclu | --incl | --inc) |
| 202 | ac_prev=includedir ;; |
| 203 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 204 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 205 | includedir="$ac_optarg" ;; |
| 206 | |
| 207 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 208 | ac_prev=infodir ;; |
| 209 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 210 | infodir="$ac_optarg" ;; |
| 211 | |
| 212 | -libdir | --libdir | --libdi | --libd) |
| 213 | ac_prev=libdir ;; |
| 214 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 215 | libdir="$ac_optarg" ;; |
| 216 | |
| 217 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 218 | | --libexe | --libex | --libe) |
| 219 | ac_prev=libexecdir ;; |
| 220 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 221 | | --libexe=* | --libex=* | --libe=*) |
| 222 | libexecdir="$ac_optarg" ;; |
| 223 | |
| 224 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 225 | | --localstate | --localstat | --localsta | --localst \ |
| 226 | | --locals | --local | --loca | --loc | --lo) |
| 227 | ac_prev=localstatedir ;; |
| 228 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 229 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 230 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 231 | localstatedir="$ac_optarg" ;; |
| 232 | |
| 233 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 234 | ac_prev=mandir ;; |
| 235 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 236 | mandir="$ac_optarg" ;; |
| 237 | |
| 238 | -nfp | --nfp | --nf) |
| 239 | # Obsolete; use --without-fp. |
| 240 | with_fp=no ;; |
| 241 | |
| 242 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 243 | | --no-cr | --no-c) |
| 244 | no_create=yes ;; |
| 245 | |
| 246 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 247 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 248 | no_recursion=yes ;; |
| 249 | |
| 250 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 251 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 252 | | --oldin | --oldi | --old | --ol | --o) |
| 253 | ac_prev=oldincludedir ;; |
| 254 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 255 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 256 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 257 | oldincludedir="$ac_optarg" ;; |
| 258 | |
| 259 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 260 | ac_prev=prefix ;; |
| 261 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 262 | prefix="$ac_optarg" ;; |
| 263 | |
| 264 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 265 | | --program-pre | --program-pr | --program-p) |
| 266 | ac_prev=program_prefix ;; |
| 267 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 268 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 269 | program_prefix="$ac_optarg" ;; |
| 270 | |
| 271 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 272 | | --program-suf | --program-su | --program-s) |
| 273 | ac_prev=program_suffix ;; |
| 274 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 275 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 276 | program_suffix="$ac_optarg" ;; |
| 277 | |
| 278 | -program-transform-name | --program-transform-name \ |
| 279 | | --program-transform-nam | --program-transform-na \ |
| 280 | | --program-transform-n | --program-transform- \ |
| 281 | | --program-transform | --program-transfor \ |
| 282 | | --program-transfo | --program-transf \ |
| 283 | | --program-trans | --program-tran \ |
| 284 | | --progr-tra | --program-tr | --program-t) |
| 285 | ac_prev=program_transform_name ;; |
| 286 | -program-transform-name=* | --program-transform-name=* \ |
| 287 | | --program-transform-nam=* | --program-transform-na=* \ |
| 288 | | --program-transform-n=* | --program-transform-=* \ |
| 289 | | --program-transform=* | --program-transfor=* \ |
| 290 | | --program-transfo=* | --program-transf=* \ |
| 291 | | --program-trans=* | --program-tran=* \ |
| 292 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 293 | program_transform_name="$ac_optarg" ;; |
| 294 | |
| 295 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 296 | | -silent | --silent | --silen | --sile | --sil) |
| 297 | silent=yes ;; |
| 298 | |
| 299 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 300 | ac_prev=sbindir ;; |
| 301 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 302 | | --sbi=* | --sb=*) |
| 303 | sbindir="$ac_optarg" ;; |
| 304 | |
| 305 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 306 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 307 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 308 | | --sha | --sh) |
| 309 | ac_prev=sharedstatedir ;; |
| 310 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 311 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 312 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 313 | | --sha=* | --sh=*) |
| 314 | sharedstatedir="$ac_optarg" ;; |
| 315 | |
| 316 | -site | --site | --sit) |
| 317 | ac_prev=site ;; |
| 318 | -site=* | --site=* | --sit=*) |
| 319 | site="$ac_optarg" ;; |
| 320 | |
| 321 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 322 | ac_prev=srcdir ;; |
| 323 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 324 | srcdir="$ac_optarg" ;; |
| 325 | |
| 326 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 327 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 328 | ac_prev=sysconfdir ;; |
| 329 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 330 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 331 | sysconfdir="$ac_optarg" ;; |
| 332 | |
| 333 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 334 | ac_prev=target ;; |
| 335 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 336 | target="$ac_optarg" ;; |
| 337 | |
| 338 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 339 | verbose=yes ;; |
| 340 | |
| 341 | -version | --version | --versio | --versi | --vers) |
| 342 | echo "configure generated by autoconf version 2.13" |
| 343 | exit 0 ;; |
| 344 | |
| 345 | -with-* | --with-*) |
| 346 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 347 | # Reject names that are not valid shell variable names. |
| 348 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 349 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 350 | fi |
| 351 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 352 | case "$ac_option" in |
| 353 | *=*) ;; |
| 354 | *) ac_optarg=yes ;; |
| 355 | esac |
| 356 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 357 | |
| 358 | -without-* | --without-*) |
| 359 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 360 | # Reject names that are not valid shell variable names. |
| 361 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 362 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 363 | fi |
| 364 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 365 | eval "with_${ac_package}=no" ;; |
| 366 | |
| 367 | --x) |
| 368 | # Obsolete; use --with-x. |
| 369 | with_x=yes ;; |
| 370 | |
| 371 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 372 | | --x-incl | --x-inc | --x-in | --x-i) |
| 373 | ac_prev=x_includes ;; |
| 374 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 375 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 376 | x_includes="$ac_optarg" ;; |
| 377 | |
| 378 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 379 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 380 | ac_prev=x_libraries ;; |
| 381 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 382 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 383 | x_libraries="$ac_optarg" ;; |
| 384 | |
| 385 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 386 | ;; |
| 387 | |
| 388 | *) |
| 389 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 390 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 391 | fi |
| 392 | if test "x$nonopt" != xNONE; then |
| 393 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 394 | fi |
| 395 | nonopt="$ac_option" |
| 396 | ;; |
| 397 | |
| 398 | esac |
| 399 | done |
| 400 | |
| 401 | if test -n "$ac_prev"; then |
| 402 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 403 | fi |
| 404 | |
| 405 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 406 | |
| 407 | # File descriptor usage: |
| 408 | # 0 standard input |
| 409 | # 1 file creation |
| 410 | # 2 errors and warnings |
| 411 | # 3 some systems may open it to /dev/tty |
| 412 | # 4 used on the Kubota Titan |
| 413 | # 6 checking for... messages and results |
| 414 | # 5 compiler messages saved in config.log |
| 415 | if test "$silent" = yes; then |
| 416 | exec 6>/dev/null |
| 417 | else |
| 418 | exec 6>&1 |
| 419 | fi |
| 420 | exec 5>./config.log |
| 421 | |
| 422 | echo "\ |
| 423 | This file contains any messages produced by compilers while |
| 424 | running configure, to aid debugging if configure makes a mistake. |
| 425 | " 1>&5 |
| 426 | |
| 427 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 428 | # Also quote any args containing shell metacharacters. |
| 429 | ac_configure_args= |
| 430 | for ac_arg |
| 431 | do |
| 432 | case "$ac_arg" in |
| 433 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 434 | | --no-cr | --no-c) ;; |
| 435 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 436 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 437 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 438 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 439 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 440 | esac |
| 441 | done |
| 442 | |
| 443 | # NLS nuisances. |
| 444 | # Only set these to C if already set. These must not be set unconditionally |
| 445 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 446 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 447 | # Non-C LC_CTYPE values break the ctype check. |
| 448 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 449 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 450 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 451 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| 452 | |
| 453 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 454 | rm -rf conftest* confdefs.h |
| 455 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 456 | echo > confdefs.h |
| 457 | |
| 458 | # A filename unique to this package, relative to the directory that |
| 459 | # configure is in, which we can look for to find out if srcdir is correct. |
| 460 | ac_unique_file=rdr/InStream.h |
| 461 | |
| 462 | # Find the source files, if location was not specified. |
| 463 | if test -z "$srcdir"; then |
| 464 | ac_srcdir_defaulted=yes |
| 465 | # Try the directory containing this script, then its parent. |
| 466 | ac_prog=$0 |
| 467 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 468 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 469 | srcdir=$ac_confdir |
| 470 | if test ! -r $srcdir/$ac_unique_file; then |
| 471 | srcdir=.. |
| 472 | fi |
| 473 | else |
| 474 | ac_srcdir_defaulted=no |
| 475 | fi |
| 476 | if test ! -r $srcdir/$ac_unique_file; then |
| 477 | if test "$ac_srcdir_defaulted" = yes; then |
| 478 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 479 | else |
| 480 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 481 | fi |
| 482 | fi |
| 483 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 484 | |
| 485 | # Prefer explicitly selected file to automatically selected ones. |
| 486 | if test -z "$CONFIG_SITE"; then |
| 487 | if test "x$prefix" != xNONE; then |
| 488 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 489 | else |
| 490 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 491 | fi |
| 492 | fi |
| 493 | for ac_site_file in $CONFIG_SITE; do |
| 494 | if test -r "$ac_site_file"; then |
| 495 | echo "loading site script $ac_site_file" |
| 496 | . "$ac_site_file" |
| 497 | fi |
| 498 | done |
| 499 | |
| 500 | if test -r "$cache_file"; then |
| 501 | echo "loading cache $cache_file" |
| 502 | . $cache_file |
| 503 | else |
| 504 | echo "creating cache $cache_file" |
| 505 | > $cache_file |
| 506 | fi |
| 507 | |
| 508 | ac_ext=c |
| 509 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 510 | ac_cpp='$CPP $CPPFLAGS' |
| 511 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 512 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 513 | cross_compiling=$ac_cv_prog_cc_cross |
| 514 | |
| 515 | ac_exeext= |
| 516 | ac_objext=o |
| 517 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 518 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 519 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 520 | ac_n= ac_c=' |
| 521 | ' ac_t=' ' |
| 522 | else |
| 523 | ac_n=-n ac_c= ac_t= |
| 524 | fi |
| 525 | else |
| 526 | ac_n= ac_c='\c' ac_t= |
| 527 | fi |
| 528 | |
| 529 | |
| 530 | |
| 531 | ac_cv_prog_cc_g=no |
| 532 | ac_cv_prog_cxx_g=no |
| 533 | |
| 534 | # Extract the first word of "gcc", so it can be a program name with args. |
| 535 | set dummy gcc; ac_word=$2 |
| 536 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 537 | echo "configure:538: checking for $ac_word" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 538 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 539 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 540 | else |
| 541 | if test -n "$CC"; then |
| 542 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 543 | else |
| 544 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 545 | ac_dummy="$PATH" |
| 546 | for ac_dir in $ac_dummy; do |
| 547 | test -z "$ac_dir" && ac_dir=. |
| 548 | if test -f $ac_dir/$ac_word; then |
| 549 | ac_cv_prog_CC="gcc" |
| 550 | break |
| 551 | fi |
| 552 | done |
| 553 | IFS="$ac_save_ifs" |
| 554 | fi |
| 555 | fi |
| 556 | CC="$ac_cv_prog_CC" |
| 557 | if test -n "$CC"; then |
| 558 | echo "$ac_t""$CC" 1>&6 |
| 559 | else |
| 560 | echo "$ac_t""no" 1>&6 |
| 561 | fi |
| 562 | |
| 563 | if test -z "$CC"; then |
| 564 | # Extract the first word of "cc", so it can be a program name with args. |
| 565 | set dummy cc; ac_word=$2 |
| 566 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 567 | echo "configure:568: checking for $ac_word" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 568 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 569 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 570 | else |
| 571 | if test -n "$CC"; then |
| 572 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 573 | else |
| 574 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 575 | ac_prog_rejected=no |
| 576 | ac_dummy="$PATH" |
| 577 | for ac_dir in $ac_dummy; do |
| 578 | test -z "$ac_dir" && ac_dir=. |
| 579 | if test -f $ac_dir/$ac_word; then |
| 580 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 581 | ac_prog_rejected=yes |
| 582 | continue |
| 583 | fi |
| 584 | ac_cv_prog_CC="cc" |
| 585 | break |
| 586 | fi |
| 587 | done |
| 588 | IFS="$ac_save_ifs" |
| 589 | if test $ac_prog_rejected = yes; then |
| 590 | # We found a bogon in the path, so make sure we never use it. |
| 591 | set dummy $ac_cv_prog_CC |
| 592 | shift |
| 593 | if test $# -gt 0; then |
| 594 | # We chose a different compiler from the bogus one. |
| 595 | # However, it has the same basename, so the bogon will be chosen |
| 596 | # first if we set CC to just the basename; use the full file name. |
| 597 | shift |
| 598 | set dummy "$ac_dir/$ac_word" "$@" |
| 599 | shift |
| 600 | ac_cv_prog_CC="$@" |
| 601 | fi |
| 602 | fi |
| 603 | fi |
| 604 | fi |
| 605 | CC="$ac_cv_prog_CC" |
| 606 | if test -n "$CC"; then |
| 607 | echo "$ac_t""$CC" 1>&6 |
| 608 | else |
| 609 | echo "$ac_t""no" 1>&6 |
| 610 | fi |
| 611 | |
| 612 | if test -z "$CC"; then |
| 613 | case "`uname -s`" in |
| 614 | *win32* | *WIN32*) |
| 615 | # Extract the first word of "cl", so it can be a program name with args. |
| 616 | set dummy cl; ac_word=$2 |
| 617 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 618 | echo "configure:619: checking for $ac_word" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 619 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 620 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 621 | else |
| 622 | if test -n "$CC"; then |
| 623 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 624 | else |
| 625 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 626 | ac_dummy="$PATH" |
| 627 | for ac_dir in $ac_dummy; do |
| 628 | test -z "$ac_dir" && ac_dir=. |
| 629 | if test -f $ac_dir/$ac_word; then |
| 630 | ac_cv_prog_CC="cl" |
| 631 | break |
| 632 | fi |
| 633 | done |
| 634 | IFS="$ac_save_ifs" |
| 635 | fi |
| 636 | fi |
| 637 | CC="$ac_cv_prog_CC" |
| 638 | if test -n "$CC"; then |
| 639 | echo "$ac_t""$CC" 1>&6 |
| 640 | else |
| 641 | echo "$ac_t""no" 1>&6 |
| 642 | fi |
| 643 | ;; |
| 644 | esac |
| 645 | fi |
| 646 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 647 | fi |
| 648 | |
| 649 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 650 | echo "configure:651: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 651 | |
| 652 | ac_ext=c |
| 653 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 654 | ac_cpp='$CPP $CPPFLAGS' |
| 655 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 656 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 657 | cross_compiling=$ac_cv_prog_cc_cross |
| 658 | |
| 659 | cat > conftest.$ac_ext << EOF |
| 660 | |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 661 | #line 662 "configure" |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 662 | #include "confdefs.h" |
| 663 | |
| 664 | main(){return(0);} |
| 665 | EOF |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 666 | if { (eval echo configure:667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 667 | ac_cv_prog_cc_works=yes |
| 668 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 669 | if (./conftest; exit) 2>/dev/null; then |
| 670 | ac_cv_prog_cc_cross=no |
| 671 | else |
| 672 | ac_cv_prog_cc_cross=yes |
| 673 | fi |
| 674 | else |
| 675 | echo "configure: failed program was:" >&5 |
| 676 | cat conftest.$ac_ext >&5 |
| 677 | ac_cv_prog_cc_works=no |
| 678 | fi |
| 679 | rm -fr conftest* |
| 680 | ac_ext=c |
| 681 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 682 | ac_cpp='$CPP $CPPFLAGS' |
| 683 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 684 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 685 | cross_compiling=$ac_cv_prog_cc_cross |
| 686 | |
| 687 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 688 | if test $ac_cv_prog_cc_works = no; then |
| 689 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 690 | fi |
| 691 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 692 | echo "configure:693: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 693 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 694 | cross_compiling=$ac_cv_prog_cc_cross |
| 695 | |
| 696 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 697 | echo "configure:698: checking whether we are using GNU C" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 698 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 699 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 700 | else |
| 701 | cat > conftest.c <<EOF |
| 702 | #ifdef __GNUC__ |
| 703 | yes; |
| 704 | #endif |
| 705 | EOF |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 706 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 707 | ac_cv_prog_gcc=yes |
| 708 | else |
| 709 | ac_cv_prog_gcc=no |
| 710 | fi |
| 711 | fi |
| 712 | |
| 713 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 714 | |
| 715 | if test $ac_cv_prog_gcc = yes; then |
| 716 | GCC=yes |
| 717 | else |
| 718 | GCC= |
| 719 | fi |
| 720 | |
| 721 | ac_test_CFLAGS="${CFLAGS+set}" |
| 722 | ac_save_CFLAGS="$CFLAGS" |
| 723 | CFLAGS= |
| 724 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 725 | echo "configure:726: checking whether ${CC-cc} accepts -g" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 726 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 727 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 728 | else |
| 729 | echo 'void f(){}' > conftest.c |
| 730 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 731 | ac_cv_prog_cc_g=yes |
| 732 | else |
| 733 | ac_cv_prog_cc_g=no |
| 734 | fi |
| 735 | rm -f conftest* |
| 736 | |
| 737 | fi |
| 738 | |
| 739 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 740 | if test "$ac_test_CFLAGS" = set; then |
| 741 | CFLAGS="$ac_save_CFLAGS" |
| 742 | elif test $ac_cv_prog_cc_g = yes; then |
| 743 | if test "$GCC" = yes; then |
| 744 | CFLAGS="-g -O2" |
| 745 | else |
| 746 | CFLAGS="-g" |
| 747 | fi |
| 748 | else |
| 749 | if test "$GCC" = yes; then |
| 750 | CFLAGS="-O2" |
| 751 | else |
| 752 | CFLAGS= |
| 753 | fi |
| 754 | fi |
| 755 | |
| 756 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 757 | do |
| 758 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 759 | set dummy $ac_prog; ac_word=$2 |
| 760 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 761 | echo "configure:762: checking for $ac_word" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 762 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
| 763 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 764 | else |
| 765 | if test -n "$CXX"; then |
| 766 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 767 | else |
| 768 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 769 | ac_dummy="$PATH" |
| 770 | for ac_dir in $ac_dummy; do |
| 771 | test -z "$ac_dir" && ac_dir=. |
| 772 | if test -f $ac_dir/$ac_word; then |
| 773 | ac_cv_prog_CXX="$ac_prog" |
| 774 | break |
| 775 | fi |
| 776 | done |
| 777 | IFS="$ac_save_ifs" |
| 778 | fi |
| 779 | fi |
| 780 | CXX="$ac_cv_prog_CXX" |
| 781 | if test -n "$CXX"; then |
| 782 | echo "$ac_t""$CXX" 1>&6 |
| 783 | else |
| 784 | echo "$ac_t""no" 1>&6 |
| 785 | fi |
| 786 | |
| 787 | test -n "$CXX" && break |
| 788 | done |
| 789 | test -n "$CXX" || CXX="gcc" |
| 790 | |
| 791 | |
| 792 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 793 | echo "configure:794: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 794 | |
| 795 | ac_ext=C |
| 796 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 797 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 798 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 799 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 800 | cross_compiling=$ac_cv_prog_cxx_cross |
| 801 | |
| 802 | cat > conftest.$ac_ext << EOF |
| 803 | |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 804 | #line 805 "configure" |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 805 | #include "confdefs.h" |
| 806 | |
| 807 | int main(){return(0);} |
| 808 | EOF |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 809 | if { (eval echo configure:810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 810 | ac_cv_prog_cxx_works=yes |
| 811 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 812 | if (./conftest; exit) 2>/dev/null; then |
| 813 | ac_cv_prog_cxx_cross=no |
| 814 | else |
| 815 | ac_cv_prog_cxx_cross=yes |
| 816 | fi |
| 817 | else |
| 818 | echo "configure: failed program was:" >&5 |
| 819 | cat conftest.$ac_ext >&5 |
| 820 | ac_cv_prog_cxx_works=no |
| 821 | fi |
| 822 | rm -fr conftest* |
| 823 | ac_ext=c |
| 824 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 825 | ac_cpp='$CPP $CPPFLAGS' |
| 826 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 827 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 828 | cross_compiling=$ac_cv_prog_cc_cross |
| 829 | |
| 830 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
| 831 | if test $ac_cv_prog_cxx_works = no; then |
| 832 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
| 833 | fi |
| 834 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 835 | echo "configure:836: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 836 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
| 837 | cross_compiling=$ac_cv_prog_cxx_cross |
| 838 | |
| 839 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 840 | echo "configure:841: checking whether we are using GNU C++" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 841 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
| 842 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 843 | else |
| 844 | cat > conftest.C <<EOF |
| 845 | #ifdef __GNUC__ |
| 846 | yes; |
| 847 | #endif |
| 848 | EOF |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 849 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 850 | ac_cv_prog_gxx=yes |
| 851 | else |
| 852 | ac_cv_prog_gxx=no |
| 853 | fi |
| 854 | fi |
| 855 | |
| 856 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
| 857 | |
| 858 | if test $ac_cv_prog_gxx = yes; then |
| 859 | GXX=yes |
| 860 | else |
| 861 | GXX= |
| 862 | fi |
| 863 | |
| 864 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
| 865 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 866 | CXXFLAGS= |
| 867 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 868 | echo "configure:869: checking whether ${CXX-g++} accepts -g" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 869 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
| 870 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 871 | else |
| 872 | echo 'void f(){}' > conftest.cc |
| 873 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
| 874 | ac_cv_prog_cxx_g=yes |
| 875 | else |
| 876 | ac_cv_prog_cxx_g=no |
| 877 | fi |
| 878 | rm -f conftest* |
| 879 | |
| 880 | fi |
| 881 | |
| 882 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
| 883 | if test "$ac_test_CXXFLAGS" = set; then |
| 884 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 885 | elif test $ac_cv_prog_cxx_g = yes; then |
| 886 | if test "$GXX" = yes; then |
| 887 | CXXFLAGS="-g -O2" |
| 888 | else |
| 889 | CXXFLAGS="-g" |
| 890 | fi |
| 891 | else |
| 892 | if test "$GXX" = yes; then |
| 893 | CXXFLAGS="-O2" |
| 894 | else |
| 895 | CXXFLAGS= |
| 896 | fi |
| 897 | fi |
| 898 | |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 899 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 900 | set dummy ranlib; ac_word=$2 |
| 901 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Constantin Kaplinsky | 71a32f0 | 2007-07-24 12:10:16 +0000 | [diff] [blame^] | 902 | echo "configure:903: checking for $ac_word" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 903 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 904 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 905 | else |
| 906 | if test -n "$RANLIB"; then |
| 907 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 908 | else |
| 909 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 910 | ac_dummy="$PATH" |
| 911 | for ac_dir in $ac_dummy; do |
| 912 | test -z "$ac_dir" && ac_dir=. |
| 913 | if test -f $ac_dir/$ac_word; then |
| 914 | ac_cv_prog_RANLIB="ranlib" |
| 915 | break |
| 916 | fi |
| 917 | done |
| 918 | IFS="$ac_save_ifs" |
| 919 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 920 | fi |
| 921 | fi |
| 922 | RANLIB="$ac_cv_prog_RANLIB" |
| 923 | if test -n "$RANLIB"; then |
| 924 | echo "$ac_t""$RANLIB" 1>&6 |
| 925 | else |
| 926 | echo "$ac_t""no" 1>&6 |
| 927 | fi |
| 928 | |
| 929 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
Constantin Kaplinsky | 71a32f0 | 2007-07-24 12:10:16 +0000 | [diff] [blame^] | 930 | echo "configure:931: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 931 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 932 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 933 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 934 | else |
| 935 | cat > conftestmake <<\EOF |
| 936 | all: |
| 937 | @echo 'ac_maketemp="${MAKE}"' |
| 938 | EOF |
| 939 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 940 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 941 | if test -n "$ac_maketemp"; then |
| 942 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 943 | else |
| 944 | eval ac_cv_prog_make_${ac_make}_set=no |
| 945 | fi |
| 946 | rm -f conftestmake |
| 947 | fi |
| 948 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 949 | echo "$ac_t""yes" 1>&6 |
| 950 | SET_MAKE= |
| 951 | else |
| 952 | echo "$ac_t""no" 1>&6 |
| 953 | SET_MAKE="MAKE=${MAKE-make}" |
| 954 | fi |
| 955 | |
| 956 | ac_ext=C |
| 957 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 958 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 959 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 960 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 961 | cross_compiling=$ac_cv_prog_cxx_cross |
| 962 | |
| 963 | |
| 964 | case "`(uname -sr) 2>/dev/null`" in |
| 965 | "SunOS 5"*) |
| 966 | SOLARIS=yes |
| 967 | ;; |
| 968 | "Linux"*) |
| 969 | LINUX=yes |
| 970 | ;; |
| 971 | "IRIX 6"*) |
| 972 | X_LIBS="-L/usr/lib32" |
| 973 | ;; |
| 974 | "LynxOS 2"*) |
| 975 | SJLJ_EXCEPTIONS=yes |
| 976 | ;; |
| 977 | esac |
| 978 | |
| 979 | if test "$GCC" = yes; then |
| 980 | CFLAGS="$CFLAGS -Wall" |
| 981 | if test "$SOLARIS" = yes; then |
| 982 | CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int" |
| 983 | fi |
| 984 | fi |
| 985 | if test "$GXX" = yes; then |
| 986 | CXXFLAGS="$CXXFLAGS -Wall" |
| 987 | if test "$SOLARIS" = yes; then |
| 988 | CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -fpermissive" |
| 989 | fi |
| 990 | if test "$SJLJ_EXCEPTIONS" = yes; then |
| 991 | CXXFLAGS="$CXXFLAGS -fsjlj-exceptions" |
| 992 | fi |
| 993 | fi |
| 994 | |
Constantin Kaplinsky | 71a32f0 | 2007-07-24 12:10:16 +0000 | [diff] [blame^] | 995 | echo $ac_n "checking for dmICCreate in -ldmedia""... $ac_c" 1>&6 |
| 996 | echo "configure:997: checking for dmICCreate in -ldmedia" >&5 |
| 997 | ac_lib_var=`echo dmedia'_'dmICCreate | sed 'y%./+-%__p_%'` |
| 998 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 999 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1000 | else |
| 1001 | ac_save_LIBS="$LIBS" |
| 1002 | LIBS="-ldmedia $LIBS" |
| 1003 | cat > conftest.$ac_ext <<EOF |
| 1004 | #line 1005 "configure" |
| 1005 | #include "confdefs.h" |
| 1006 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1007 | #ifdef __cplusplus |
| 1008 | extern "C" |
| 1009 | #endif |
| 1010 | /* We use char because int might match the return type of a gcc2 |
| 1011 | builtin and then its argument prototype would still apply. */ |
| 1012 | char dmICCreate(); |
| 1013 | |
| 1014 | int main() { |
| 1015 | dmICCreate() |
| 1016 | ; return 0; } |
| 1017 | EOF |
| 1018 | if { (eval echo configure:1019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1019 | rm -rf conftest* |
| 1020 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1021 | else |
| 1022 | echo "configure: failed program was:" >&5 |
| 1023 | cat conftest.$ac_ext >&5 |
| 1024 | rm -rf conftest* |
| 1025 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1026 | fi |
| 1027 | rm -f conftest* |
| 1028 | LIBS="$ac_save_LIBS" |
| 1029 | |
| 1030 | fi |
| 1031 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1032 | echo "$ac_t""yes" 1>&6 |
| 1033 | cat >> confdefs.h <<\EOF |
| 1034 | #define HAVE_DMEDIA 1 |
| 1035 | EOF |
| 1036 | |
| 1037 | PLATFORM_CXXSRCS="$PLATFORM_CXXSRCS IrixDMJpegCompressor.cxx" |
| 1038 | PLATFORM_CXXSRCS="$PLATFORM_CXXSRCS IrixDMIC_RawToJpeg.cxx" |
| 1039 | LIBS="$LIBS -ldmedia" |
| 1040 | else |
| 1041 | echo "$ac_t""no" 1>&6 |
| 1042 | fi |
| 1043 | |
| 1044 | |
| 1045 | |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 1046 | # Check whether --with-installed-zlib or --without-installed-zlib was given. |
| 1047 | if test "${with_installed_zlib+set}" = set; then |
| 1048 | withval="$with_installed_zlib" |
| 1049 | : |
| 1050 | fi |
| 1051 | |
| 1052 | |
| 1053 | if test "$with_installed_zlib" = yes; then |
| 1054 | echo "using installed zlib" |
| 1055 | ZLIB_LIB=-lz |
| 1056 | else |
| 1057 | ZLIB_DIR=zlib |
| 1058 | ZLIB_INCLUDE='-I$(top_srcdir)/zlib' |
| 1059 | ZLIB_LIB='$(top_srcdir)/zlib/libz.a' |
| 1060 | echo "configuring zlib..." |
| 1061 | (cd zlib; ./configure) |
| 1062 | echo "...done configuring zlib" |
| 1063 | fi |
| 1064 | |
| 1065 | |
| 1066 | |
| 1067 | |
| 1068 | |
| 1069 | # Check whether --with-installed-jpeg or --without-installed-jpeg was given. |
| 1070 | if test "${with_installed_jpeg+set}" = set; then |
| 1071 | withval="$with_installed_jpeg" |
| 1072 | : |
| 1073 | fi |
| 1074 | |
| 1075 | |
| 1076 | if test "$with_installed_jpeg" = yes; then |
| 1077 | echo "using installed jpeg" |
| 1078 | JPEG_LIB=-ljpeg |
| 1079 | else |
| 1080 | JPEG_DIR=jpeg/build |
| 1081 | JPEG_INCLUDE='-I$(top_srcdir)/jpeg' |
| 1082 | JPEG_LIB='$(top_srcdir)/jpeg/build/libjpeg.a' |
| 1083 | echo "configuring jpeg..." |
| 1084 | (mkdir jpeg/build; cd jpeg/build; ../configure) |
| 1085 | echo "...done configuring jpeg" |
| 1086 | fi |
| 1087 | |
| 1088 | |
| 1089 | |
| 1090 | |
| 1091 | |
| 1092 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 1093 | echo "configure:1094: checking for vsnprintf" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 1094 | if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then |
| 1095 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1096 | else |
| 1097 | cat > conftest.$ac_ext <<EOF |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 1098 | #line 1099 "configure" |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 1099 | #include "confdefs.h" |
| 1100 | /* System header to define __stub macros and hopefully few prototypes, |
| 1101 | which can conflict with char vsnprintf(); below. */ |
| 1102 | #include <assert.h> |
| 1103 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1104 | #ifdef __cplusplus |
| 1105 | extern "C" |
| 1106 | #endif |
| 1107 | /* We use char because int might match the return type of a gcc2 |
| 1108 | builtin and then its argument prototype would still apply. */ |
| 1109 | char vsnprintf(); |
| 1110 | |
| 1111 | int main() { |
| 1112 | |
| 1113 | /* The GNU C library defines this for functions which it implements |
| 1114 | to always fail with ENOSYS. Some functions are actually named |
| 1115 | something starting with __ and the normal name is an alias. */ |
| 1116 | #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf) |
| 1117 | choke me |
| 1118 | #else |
| 1119 | vsnprintf(); |
| 1120 | #endif |
| 1121 | |
| 1122 | ; return 0; } |
| 1123 | EOF |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 1124 | if { (eval echo configure:1125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 1125 | rm -rf conftest* |
| 1126 | eval "ac_cv_func_vsnprintf=yes" |
| 1127 | else |
| 1128 | echo "configure: failed program was:" >&5 |
| 1129 | cat conftest.$ac_ext >&5 |
| 1130 | rm -rf conftest* |
| 1131 | eval "ac_cv_func_vsnprintf=no" |
| 1132 | fi |
| 1133 | rm -f conftest* |
| 1134 | fi |
| 1135 | |
| 1136 | if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then |
| 1137 | echo "$ac_t""yes" 1>&6 |
| 1138 | VSNPRINTF_DEFINE='-DHAVE_VSNPRINTF' |
| 1139 | else |
| 1140 | echo "$ac_t""no" 1>&6 |
| 1141 | VSNPRINTF_DEFINE= |
| 1142 | fi |
| 1143 | |
| 1144 | |
| 1145 | |
| 1146 | echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6 |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 1147 | echo "configure:1148: checking for strcasecmp" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 1148 | if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then |
| 1149 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1150 | else |
| 1151 | cat > conftest.$ac_ext <<EOF |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 1152 | #line 1153 "configure" |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 1153 | #include "confdefs.h" |
| 1154 | /* System header to define __stub macros and hopefully few prototypes, |
| 1155 | which can conflict with char strcasecmp(); below. */ |
| 1156 | #include <assert.h> |
| 1157 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1158 | #ifdef __cplusplus |
| 1159 | extern "C" |
| 1160 | #endif |
| 1161 | /* We use char because int might match the return type of a gcc2 |
| 1162 | builtin and then its argument prototype would still apply. */ |
| 1163 | char strcasecmp(); |
| 1164 | |
| 1165 | int main() { |
| 1166 | |
| 1167 | /* The GNU C library defines this for functions which it implements |
| 1168 | to always fail with ENOSYS. Some functions are actually named |
| 1169 | something starting with __ and the normal name is an alias. */ |
| 1170 | #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) |
| 1171 | choke me |
| 1172 | #else |
| 1173 | strcasecmp(); |
| 1174 | #endif |
| 1175 | |
| 1176 | ; return 0; } |
| 1177 | EOF |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 1178 | if { (eval echo configure:1179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 1179 | rm -rf conftest* |
| 1180 | eval "ac_cv_func_strcasecmp=yes" |
| 1181 | else |
| 1182 | echo "configure: failed program was:" >&5 |
| 1183 | cat conftest.$ac_ext >&5 |
| 1184 | rm -rf conftest* |
| 1185 | eval "ac_cv_func_strcasecmp=no" |
| 1186 | fi |
| 1187 | rm -f conftest* |
| 1188 | fi |
| 1189 | |
| 1190 | if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then |
| 1191 | echo "$ac_t""yes" 1>&6 |
| 1192 | STRCASECMP_DEFINE='-DHAVE_STRCASECMP' |
| 1193 | else |
| 1194 | echo "$ac_t""no" 1>&6 |
| 1195 | STRCASECMP_DEFINE= |
| 1196 | fi |
| 1197 | |
| 1198 | |
| 1199 | |
| 1200 | echo $ac_n "checking for strncasecmp""... $ac_c" 1>&6 |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 1201 | echo "configure:1202: checking for strncasecmp" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 1202 | if eval "test \"`echo '$''{'ac_cv_func_strncasecmp'+set}'`\" = set"; then |
| 1203 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1204 | else |
| 1205 | cat > conftest.$ac_ext <<EOF |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 1206 | #line 1207 "configure" |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 1207 | #include "confdefs.h" |
| 1208 | /* System header to define __stub macros and hopefully few prototypes, |
| 1209 | which can conflict with char strncasecmp(); below. */ |
| 1210 | #include <assert.h> |
| 1211 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1212 | #ifdef __cplusplus |
| 1213 | extern "C" |
| 1214 | #endif |
| 1215 | /* We use char because int might match the return type of a gcc2 |
| 1216 | builtin and then its argument prototype would still apply. */ |
| 1217 | char strncasecmp(); |
| 1218 | |
| 1219 | int main() { |
| 1220 | |
| 1221 | /* The GNU C library defines this for functions which it implements |
| 1222 | to always fail with ENOSYS. Some functions are actually named |
| 1223 | something starting with __ and the normal name is an alias. */ |
| 1224 | #if defined (__stub_strncasecmp) || defined (__stub___strncasecmp) |
| 1225 | choke me |
| 1226 | #else |
| 1227 | strncasecmp(); |
| 1228 | #endif |
| 1229 | |
| 1230 | ; return 0; } |
| 1231 | EOF |
Constantin Kaplinsky | 9e73962 | 2006-05-30 06:36:50 +0000 | [diff] [blame] | 1232 | if { (eval echo configure:1233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 1233 | rm -rf conftest* |
| 1234 | eval "ac_cv_func_strncasecmp=yes" |
| 1235 | else |
| 1236 | echo "configure: failed program was:" >&5 |
| 1237 | cat conftest.$ac_ext >&5 |
| 1238 | rm -rf conftest* |
| 1239 | eval "ac_cv_func_strncasecmp=no" |
| 1240 | fi |
| 1241 | rm -f conftest* |
| 1242 | fi |
| 1243 | |
| 1244 | if eval "test \"`echo '$ac_cv_func_'strncasecmp`\" = yes"; then |
| 1245 | echo "$ac_t""yes" 1>&6 |
| 1246 | STRNCASECMP_DEFINE='-DHAVE_STRNCASECMP' |
| 1247 | else |
| 1248 | echo "$ac_t""no" 1>&6 |
| 1249 | STRNCASECMP_DEFINE= |
| 1250 | fi |
| 1251 | |
| 1252 | |
| 1253 | |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 1254 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
Constantin Kaplinsky | a3b60c4 | 2006-06-02 04:07:49 +0000 | [diff] [blame] | 1255 | echo "configure:1256: checking for socklen_t" >&5 |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 1256 | cat > conftest.$ac_ext <<EOF |
Constantin Kaplinsky | a3b60c4 | 2006-06-02 04:07:49 +0000 | [diff] [blame] | 1257 | #line 1258 "configure" |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 1258 | #include "confdefs.h" |
| 1259 | #include <sys/types.h> |
| 1260 | #include <sys/socket.h> |
| 1261 | int main() { |
| 1262 | socklen_t x; |
| 1263 | accept(0, 0, &x); |
| 1264 | ; return 0; } |
| 1265 | EOF |
Constantin Kaplinsky | a3b60c4 | 2006-06-02 04:07:49 +0000 | [diff] [blame] | 1266 | if { (eval echo configure:1267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 1267 | rm -rf conftest* |
| 1268 | echo "$ac_t""yes" 1>&6 |
| 1269 | SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=socklen_t' |
| 1270 | else |
| 1271 | echo "configure: failed program was:" >&5 |
| 1272 | cat conftest.$ac_ext >&5 |
| 1273 | rm -rf conftest* |
| 1274 | echo "$ac_t""using int" 1>&6 |
| 1275 | SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=int' |
| 1276 | fi |
| 1277 | rm -f conftest* |
| 1278 | |
| 1279 | |
| 1280 | BOILERPLATE=boilerplate.mk |
| 1281 | |
| 1282 | if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then |
| 1283 | if sh -c "vncmkdepend" >/dev/null 2>&1; then |
| 1284 | BOILERPLATE="$BOILERPLATE:depend.mk" |
| 1285 | fi |
| 1286 | fi |
| 1287 | |
| 1288 | trap '' 1 2 15 |
| 1289 | cat > confcache <<\EOF |
| 1290 | # This file is a shell script that caches the results of configure |
| 1291 | # tests run on this system so they can be shared between configure |
| 1292 | # scripts and configure runs. It is not useful on other systems. |
| 1293 | # If it contains results you don't want to keep, you may remove or edit it. |
| 1294 | # |
| 1295 | # By default, configure uses ./config.cache as the cache file, |
| 1296 | # creating it if it does not exist already. You can give configure |
| 1297 | # the --cache-file=FILE option to use a different cache file; that is |
| 1298 | # what configure does when it calls configure scripts in |
| 1299 | # subdirectories, so they share the cache. |
| 1300 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 1301 | # config.status only pays attention to the cache file if you give it the |
| 1302 | # --recheck option to rerun configure. |
| 1303 | # |
| 1304 | EOF |
| 1305 | # The following way of writing the cache mishandles newlines in values, |
| 1306 | # but we know of no workaround that is simple, portable, and efficient. |
| 1307 | # So, don't put newlines in cache variables' values. |
| 1308 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 1309 | # and sets the high bit in the cache file unless we assign to the vars. |
| 1310 | (set) 2>&1 | |
| 1311 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 1312 | *ac_space=\ *) |
| 1313 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 1314 | # turns \\\\ into \\, and sed turns \\ into \). |
| 1315 | sed -n \ |
| 1316 | -e "s/'/'\\\\''/g" \ |
| 1317 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 1318 | ;; |
| 1319 | *) |
| 1320 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 1321 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 1322 | ;; |
| 1323 | esac >> confcache |
| 1324 | if cmp -s $cache_file confcache; then |
| 1325 | : |
| 1326 | else |
| 1327 | if test -w $cache_file; then |
| 1328 | echo "updating cache $cache_file" |
| 1329 | cat confcache > $cache_file |
| 1330 | else |
| 1331 | echo "not updating unwritable cache $cache_file" |
| 1332 | fi |
| 1333 | fi |
| 1334 | rm -f confcache |
| 1335 | |
| 1336 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 1337 | |
| 1338 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 1339 | # Let make expand exec_prefix. |
| 1340 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 1341 | |
| 1342 | # Any assignment to VPATH causes Sun make to only execute |
| 1343 | # the first set of double-colon rules, so remove it if not needed. |
| 1344 | # If there is a colon in the path, we need to keep it. |
| 1345 | if test "x$srcdir" = x.; then |
| 1346 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 1347 | fi |
| 1348 | |
| 1349 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 1350 | |
| 1351 | # Transform confdefs.h into DEFS. |
| 1352 | # Protect against shell expansion while executing Makefile rules. |
| 1353 | # Protect against Makefile macro expansion. |
| 1354 | cat > conftest.defs <<\EOF |
| 1355 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
| 1356 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
| 1357 | s%\[%\\&%g |
| 1358 | s%\]%\\&%g |
| 1359 | s%\$%$$%g |
| 1360 | EOF |
| 1361 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
| 1362 | rm -f conftest.defs |
| 1363 | |
| 1364 | |
| 1365 | # Without the "./", some shells look in PATH for config.status. |
| 1366 | : ${CONFIG_STATUS=./config.status} |
| 1367 | |
| 1368 | echo creating $CONFIG_STATUS |
| 1369 | rm -f $CONFIG_STATUS |
| 1370 | cat > $CONFIG_STATUS <<EOF |
| 1371 | #! /bin/sh |
| 1372 | # Generated automatically by configure. |
| 1373 | # Run this file to recreate the current configuration. |
| 1374 | # This directory was configured as follows, |
| 1375 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 1376 | # |
| 1377 | # $0 $ac_configure_args |
| 1378 | # |
| 1379 | # Compiler output produced by configure, useful for debugging |
| 1380 | # configure, is in ./config.log if it exists. |
| 1381 | |
| 1382 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 1383 | for ac_option |
| 1384 | do |
| 1385 | case "\$ac_option" in |
| 1386 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 1387 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 1388 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 1389 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 1390 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
| 1391 | exit 0 ;; |
| 1392 | -help | --help | --hel | --he | --h) |
| 1393 | echo "\$ac_cs_usage"; exit 0 ;; |
| 1394 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 1395 | esac |
| 1396 | done |
| 1397 | |
| 1398 | ac_given_srcdir=$srcdir |
| 1399 | |
| 1400 | trap 'rm -fr `echo "Makefile:Makefile.in:$BOILERPLATE \ |
| 1401 | rdr/Makefile:rdr/Makefile.in:$BOILERPLATE \ |
| 1402 | network/Makefile:network/Makefile.in:$BOILERPLATE \ |
| 1403 | Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE \ |
| 1404 | rfb/Makefile:rfb/Makefile.in:$BOILERPLATE \ |
| 1405 | " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 1406 | EOF |
| 1407 | cat >> $CONFIG_STATUS <<EOF |
| 1408 | |
| 1409 | # Protect against being on the right side of a sed subst in config.status. |
| 1410 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 1411 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 1412 | $ac_vpsub |
| 1413 | $extrasub |
| 1414 | s%@SHELL@%$SHELL%g |
| 1415 | s%@CFLAGS@%$CFLAGS%g |
| 1416 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 1417 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 1418 | s%@FFLAGS@%$FFLAGS%g |
| 1419 | s%@DEFS@%$DEFS%g |
| 1420 | s%@LDFLAGS@%$LDFLAGS%g |
| 1421 | s%@LIBS@%$LIBS%g |
| 1422 | s%@exec_prefix@%$exec_prefix%g |
| 1423 | s%@prefix@%$prefix%g |
| 1424 | s%@program_transform_name@%$program_transform_name%g |
| 1425 | s%@bindir@%$bindir%g |
| 1426 | s%@sbindir@%$sbindir%g |
| 1427 | s%@libexecdir@%$libexecdir%g |
| 1428 | s%@datadir@%$datadir%g |
| 1429 | s%@sysconfdir@%$sysconfdir%g |
| 1430 | s%@sharedstatedir@%$sharedstatedir%g |
| 1431 | s%@localstatedir@%$localstatedir%g |
| 1432 | s%@libdir@%$libdir%g |
| 1433 | s%@includedir@%$includedir%g |
| 1434 | s%@oldincludedir@%$oldincludedir%g |
| 1435 | s%@infodir@%$infodir%g |
| 1436 | s%@mandir@%$mandir%g |
| 1437 | s%@CC@%$CC%g |
| 1438 | s%@CXX@%$CXX%g |
| 1439 | s%@RANLIB@%$RANLIB%g |
| 1440 | s%@SET_MAKE@%$SET_MAKE%g |
Constantin Kaplinsky | 71a32f0 | 2007-07-24 12:10:16 +0000 | [diff] [blame^] | 1441 | s%@PLATFORM_CXXSRCS@%$PLATFORM_CXXSRCS%g |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 1442 | s%@ZLIB_DIR@%$ZLIB_DIR%g |
| 1443 | s%@ZLIB_INCLUDE@%$ZLIB_INCLUDE%g |
| 1444 | s%@ZLIB_LIB@%$ZLIB_LIB%g |
| 1445 | s%@JPEG_DIR@%$JPEG_DIR%g |
| 1446 | s%@JPEG_INCLUDE@%$JPEG_INCLUDE%g |
| 1447 | s%@JPEG_LIB@%$JPEG_LIB%g |
| 1448 | s%@VSNPRINTF_DEFINE@%$VSNPRINTF_DEFINE%g |
| 1449 | s%@STRCASECMP_DEFINE@%$STRCASECMP_DEFINE%g |
| 1450 | s%@STRNCASECMP_DEFINE@%$STRNCASECMP_DEFINE%g |
Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame] | 1451 | s%@SOCKLEN_T_DEFINE@%$SOCKLEN_T_DEFINE%g |
| 1452 | |
| 1453 | CEOF |
| 1454 | EOF |
| 1455 | |
| 1456 | cat >> $CONFIG_STATUS <<\EOF |
| 1457 | |
| 1458 | # Split the substitutions into bite-sized pieces for seds with |
| 1459 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 1460 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 1461 | ac_file=1 # Number of current file. |
| 1462 | ac_beg=1 # First line for current file. |
| 1463 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 1464 | ac_more_lines=: |
| 1465 | ac_sed_cmds="" |
| 1466 | while $ac_more_lines; do |
| 1467 | if test $ac_beg -gt 1; then |
| 1468 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 1469 | else |
| 1470 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 1471 | fi |
| 1472 | if test ! -s conftest.s$ac_file; then |
| 1473 | ac_more_lines=false |
| 1474 | rm -f conftest.s$ac_file |
| 1475 | else |
| 1476 | if test -z "$ac_sed_cmds"; then |
| 1477 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 1478 | else |
| 1479 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 1480 | fi |
| 1481 | ac_file=`expr $ac_file + 1` |
| 1482 | ac_beg=$ac_end |
| 1483 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 1484 | fi |
| 1485 | done |
| 1486 | if test -z "$ac_sed_cmds"; then |
| 1487 | ac_sed_cmds=cat |
| 1488 | fi |
| 1489 | EOF |
| 1490 | |
| 1491 | cat >> $CONFIG_STATUS <<EOF |
| 1492 | |
| 1493 | CONFIG_FILES=\${CONFIG_FILES-"Makefile:Makefile.in:$BOILERPLATE \ |
| 1494 | rdr/Makefile:rdr/Makefile.in:$BOILERPLATE \ |
| 1495 | network/Makefile:network/Makefile.in:$BOILERPLATE \ |
| 1496 | Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE \ |
| 1497 | rfb/Makefile:rfb/Makefile.in:$BOILERPLATE \ |
| 1498 | "} |
| 1499 | EOF |
| 1500 | cat >> $CONFIG_STATUS <<\EOF |
| 1501 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 1502 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 1503 | case "$ac_file" in |
| 1504 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 1505 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 1506 | *) ac_file_in="${ac_file}.in" ;; |
| 1507 | esac |
| 1508 | |
| 1509 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 1510 | |
| 1511 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 1512 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 1513 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 1514 | # The file is in a subdirectory. |
| 1515 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 1516 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 1517 | # A "../" for each directory in $ac_dir_suffix. |
| 1518 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 1519 | else |
| 1520 | ac_dir_suffix= ac_dots= |
| 1521 | fi |
| 1522 | |
| 1523 | case "$ac_given_srcdir" in |
| 1524 | .) srcdir=. |
| 1525 | if test -z "$ac_dots"; then top_srcdir=. |
| 1526 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 1527 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 1528 | *) # Relative path. |
| 1529 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 1530 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 1531 | esac |
| 1532 | |
| 1533 | |
| 1534 | echo creating "$ac_file" |
| 1535 | rm -f "$ac_file" |
| 1536 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 1537 | case "$ac_file" in |
| 1538 | *Makefile*) ac_comsub="1i\\ |
| 1539 | # $configure_input" ;; |
| 1540 | *) ac_comsub= ;; |
| 1541 | esac |
| 1542 | |
| 1543 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 1544 | sed -e "$ac_comsub |
| 1545 | s%@configure_input@%$configure_input%g |
| 1546 | s%@srcdir@%$srcdir%g |
| 1547 | s%@top_srcdir@%$top_srcdir%g |
| 1548 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 1549 | fi; done |
| 1550 | rm -f conftest.s* |
| 1551 | |
| 1552 | EOF |
| 1553 | cat >> $CONFIG_STATUS <<EOF |
| 1554 | |
| 1555 | EOF |
| 1556 | cat >> $CONFIG_STATUS <<\EOF |
| 1557 | |
| 1558 | exit 0 |
| 1559 | EOF |
| 1560 | chmod +x $CONFIG_STATUS |
| 1561 | rm -fr confdefs* $ac_clean_files |
| 1562 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 1563 | |