| 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 | --enable-socks5 enable SOCKS5 firewall support" |
|---|
| 16 | ac_help="$ac_help |
|---|
| 17 | --with-socks5-inc=PATH include path for SOCKS5 headers" |
|---|
| 18 | ac_help="$ac_help |
|---|
| 19 | --with-socks5-lib=PATH library path for SOCKS5 libraries" |
|---|
| 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=src/licq.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 | |
|---|
| 532 | PACKAGE=Licq |
|---|
| 533 | VERSION=0.70h |
|---|
| 534 | INT_VERSION=708 |
|---|
| 535 | |
|---|
| 536 | cat >> confdefs.h <<EOF |
|---|
| 537 | #define PACKAGE "$PACKAGE" |
|---|
| 538 | EOF |
|---|
| 539 | |
|---|
| 540 | cat >> confdefs.h <<EOF |
|---|
| 541 | #define VERSION "$VERSION" |
|---|
| 542 | EOF |
|---|
| 543 | |
|---|
| 544 | cat >> confdefs.h <<EOF |
|---|
| 545 | #define INT_VERSION $INT_VERSION |
|---|
| 546 | EOF |
|---|
| 547 | |
|---|
| 548 | |
|---|
| 549 | |
|---|
| 550 | |
|---|
| 551 | |
|---|
| 552 | ac_aux_dir= |
|---|
| 553 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
|---|
| 554 | if test -f $ac_dir/install-sh; then |
|---|
| 555 | ac_aux_dir=$ac_dir |
|---|
| 556 | ac_install_sh="$ac_aux_dir/install-sh -c" |
|---|
| 557 | break |
|---|
| 558 | elif test -f $ac_dir/install.sh; then |
|---|
| 559 | ac_aux_dir=$ac_dir |
|---|
| 560 | ac_install_sh="$ac_aux_dir/install.sh -c" |
|---|
| 561 | break |
|---|
| 562 | fi |
|---|
| 563 | done |
|---|
| 564 | if test -z "$ac_aux_dir"; then |
|---|
| 565 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
|---|
| 566 | fi |
|---|
| 567 | ac_config_guess=$ac_aux_dir/config.guess |
|---|
| 568 | ac_config_sub=$ac_aux_dir/config.sub |
|---|
| 569 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
|---|
| 570 | |
|---|
| 571 | |
|---|
| 572 | # Do some error checking and defaulting for the host and target type. |
|---|
| 573 | # The inputs are: |
|---|
| 574 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
|---|
| 575 | # |
|---|
| 576 | # The rules are: |
|---|
| 577 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
|---|
| 578 | # same time. |
|---|
| 579 | # 2. Host defaults to nonopt. |
|---|
| 580 | # 3. If nonopt is not specified, then host defaults to the current host, |
|---|
| 581 | # as determined by config.guess. |
|---|
| 582 | # 4. Target and build default to nonopt. |
|---|
| 583 | # 5. If nonopt is not specified, then target and build default to host. |
|---|
| 584 | |
|---|
| 585 | # The aliases save the names the user supplied, while $host etc. |
|---|
| 586 | # will get canonicalized. |
|---|
| 587 | case $host---$target---$nonopt in |
|---|
| 588 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
|---|
| 589 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
|---|
| 590 | esac |
|---|
| 591 | |
|---|
| 592 | |
|---|
| 593 | # Make sure we can run config.sub. |
|---|
| 594 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
|---|
| 595 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
|---|
| 596 | fi |
|---|
| 597 | |
|---|
| 598 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
|---|
| 599 | echo "configure:600: checking host system type" >&5 |
|---|
| 600 | |
|---|
| 601 | host_alias=$host |
|---|
| 602 | case "$host_alias" in |
|---|
| 603 | NONE) |
|---|
| 604 | case $nonopt in |
|---|
| 605 | NONE) |
|---|
| 606 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
|---|
| 607 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
|---|
| 608 | fi ;; |
|---|
| 609 | *) host_alias=$nonopt ;; |
|---|
| 610 | esac ;; |
|---|
| 611 | esac |
|---|
| 612 | |
|---|
| 613 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
|---|
| 614 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|---|
| 615 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|---|
| 616 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|---|
| 617 | echo "$ac_t""$host" 1>&6 |
|---|
| 618 | |
|---|
| 619 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
|---|
| 620 | echo "configure:621: checking target system type" >&5 |
|---|
| 621 | |
|---|
| 622 | target_alias=$target |
|---|
| 623 | case "$target_alias" in |
|---|
| 624 | NONE) |
|---|
| 625 | case $nonopt in |
|---|
| 626 | NONE) target_alias=$host_alias ;; |
|---|
| 627 | *) target_alias=$nonopt ;; |
|---|
| 628 | esac ;; |
|---|
| 629 | esac |
|---|
| 630 | |
|---|
| 631 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
|---|
| 632 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|---|
| 633 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|---|
| 634 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|---|
| 635 | echo "$ac_t""$target" 1>&6 |
|---|
| 636 | |
|---|
| 637 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
|---|
| 638 | echo "configure:639: checking build system type" >&5 |
|---|
| 639 | |
|---|
| 640 | build_alias=$build |
|---|
| 641 | case "$build_alias" in |
|---|
| 642 | NONE) |
|---|
| 643 | case $nonopt in |
|---|
| 644 | NONE) build_alias=$host_alias ;; |
|---|
| 645 | *) build_alias=$nonopt ;; |
|---|
| 646 | esac ;; |
|---|
| 647 | esac |
|---|
| 648 | |
|---|
| 649 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
|---|
| 650 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|---|
| 651 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|---|
| 652 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|---|
| 653 | echo "$ac_t""$build" 1>&6 |
|---|
| 654 | |
|---|
| 655 | test "$host_alias" != "$target_alias" && |
|---|
| 656 | test "$program_prefix$program_suffix$program_transform_name" = \ |
|---|
| 657 | NONENONEs,x,x, && |
|---|
| 658 | program_prefix=${target_alias}- |
|---|
| 659 | |
|---|
| 660 | case "$host" in |
|---|
| 661 | *-*-openbsd*) |
|---|
| 662 | CFLAGS="$CFLAGS -pthread" |
|---|
| 663 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" |
|---|
| 664 | CXXFLAGS="$CXXFLAGS -pthread" |
|---|
| 665 | echo "Setting OpenBSD compilation options" |
|---|
| 666 | ;; |
|---|
| 667 | *-*-freebsd*) |
|---|
| 668 | CFLAGS="$CFLAGS -pthread" |
|---|
| 669 | CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" |
|---|
| 670 | CXXFLAGS="$CXXFLAGS -pthread" |
|---|
| 671 | echo "Setting FreeBSD compilation options" |
|---|
| 672 | ;; |
|---|
| 673 | *-*-solaris*) |
|---|
| 674 | CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DPIC -fPIC" |
|---|
| 675 | CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions" |
|---|
| 676 | echo "Setting Solaris compilation options" |
|---|
| 677 | ;; |
|---|
| 678 | *-*-linux*) |
|---|
| 679 | CPPFLAGS="$CPPFLAGS -fPIC -DPIC" |
|---|
| 680 | CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions" |
|---|
| 681 | echo "Setting Linux compilation options" |
|---|
| 682 | ;; |
|---|
| 683 | *) |
|---|
| 684 | echo "Licq may not compile on this system. Good luck :-)" |
|---|
| 685 | ;; |
|---|
| 686 | esac |
|---|
| 687 | |
|---|
| 688 | # Extract the first word of "gcc", so it can be a program name with args. |
|---|
| 689 | set dummy gcc; ac_word=$2 |
|---|
| 690 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|---|
| 691 | echo "configure:692: checking for $ac_word" >&5 |
|---|
| 692 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
|---|
| 693 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 694 | else |
|---|
| 695 | if test -n "$CC"; then |
|---|
| 696 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 697 | else |
|---|
| 698 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|---|
| 699 | ac_dummy="$PATH" |
|---|
| 700 | for ac_dir in $ac_dummy; do |
|---|
| 701 | test -z "$ac_dir" && ac_dir=. |
|---|
| 702 | if test -f $ac_dir/$ac_word; then |
|---|
| 703 | ac_cv_prog_CC="gcc" |
|---|
| 704 | break |
|---|
| 705 | fi |
|---|
| 706 | done |
|---|
| 707 | IFS="$ac_save_ifs" |
|---|
| 708 | fi |
|---|
| 709 | fi |
|---|
| 710 | CC="$ac_cv_prog_CC" |
|---|
| 711 | if test -n "$CC"; then |
|---|
| 712 | echo "$ac_t""$CC" 1>&6 |
|---|
| 713 | else |
|---|
| 714 | echo "$ac_t""no" 1>&6 |
|---|
| 715 | fi |
|---|
| 716 | |
|---|
| 717 | if test -z "$CC"; then |
|---|
| 718 | # Extract the first word of "cc", so it can be a program name with args. |
|---|
| 719 | set dummy cc; ac_word=$2 |
|---|
| 720 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|---|
| 721 | echo "configure:722: checking for $ac_word" >&5 |
|---|
| 722 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
|---|
| 723 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 724 | else |
|---|
| 725 | if test -n "$CC"; then |
|---|
| 726 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 727 | else |
|---|
| 728 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|---|
| 729 | ac_prog_rejected=no |
|---|
| 730 | ac_dummy="$PATH" |
|---|
| 731 | for ac_dir in $ac_dummy; do |
|---|
| 732 | test -z "$ac_dir" && ac_dir=. |
|---|
| 733 | if test -f $ac_dir/$ac_word; then |
|---|
| 734 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
|---|
| 735 | ac_prog_rejected=yes |
|---|
| 736 | continue |
|---|
| 737 | fi |
|---|
| 738 | ac_cv_prog_CC="cc" |
|---|
| 739 | break |
|---|
| 740 | fi |
|---|
| 741 | done |
|---|
| 742 | IFS="$ac_save_ifs" |
|---|
| 743 | if test $ac_prog_rejected = yes; then |
|---|
| 744 | # We found a bogon in the path, so make sure we never use it. |
|---|
| 745 | set dummy $ac_cv_prog_CC |
|---|
| 746 | shift |
|---|
| 747 | if test $# -gt 0; then |
|---|
| 748 | # We chose a different compiler from the bogus one. |
|---|
| 749 | # However, it has the same basename, so the bogon will be chosen |
|---|
| 750 | # first if we set CC to just the basename; use the full file name. |
|---|
| 751 | shift |
|---|
| 752 | set dummy "$ac_dir/$ac_word" "$@" |
|---|
| 753 | shift |
|---|
| 754 | ac_cv_prog_CC="$@" |
|---|
| 755 | fi |
|---|
| 756 | fi |
|---|
| 757 | fi |
|---|
| 758 | fi |
|---|
| 759 | CC="$ac_cv_prog_CC" |
|---|
| 760 | if test -n "$CC"; then |
|---|
| 761 | echo "$ac_t""$CC" 1>&6 |
|---|
| 762 | else |
|---|
| 763 | echo "$ac_t""no" 1>&6 |
|---|
| 764 | fi |
|---|
| 765 | |
|---|
| 766 | if test -z "$CC"; then |
|---|
| 767 | case "`uname -s`" in |
|---|
| 768 | *win32* | *WIN32*) |
|---|
| 769 | # Extract the first word of "cl", so it can be a program name with args. |
|---|
| 770 | set dummy cl; ac_word=$2 |
|---|
| 771 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|---|
| 772 | echo "configure:773: checking for $ac_word" >&5 |
|---|
| 773 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
|---|
| 774 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 775 | else |
|---|
| 776 | if test -n "$CC"; then |
|---|
| 777 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 778 | else |
|---|
| 779 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|---|
| 780 | ac_dummy="$PATH" |
|---|
| 781 | for ac_dir in $ac_dummy; do |
|---|
| 782 | test -z "$ac_dir" && ac_dir=. |
|---|
| 783 | if test -f $ac_dir/$ac_word; then |
|---|
| 784 | ac_cv_prog_CC="cl" |
|---|
| 785 | break |
|---|
| 786 | fi |
|---|
| 787 | done |
|---|
| 788 | IFS="$ac_save_ifs" |
|---|
| 789 | fi |
|---|
| 790 | fi |
|---|
| 791 | CC="$ac_cv_prog_CC" |
|---|
| 792 | if test -n "$CC"; then |
|---|
| 793 | echo "$ac_t""$CC" 1>&6 |
|---|
| 794 | else |
|---|
| 795 | echo "$ac_t""no" 1>&6 |
|---|
| 796 | fi |
|---|
| 797 | ;; |
|---|
| 798 | esac |
|---|
| 799 | fi |
|---|
| 800 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
|---|
| 801 | fi |
|---|
| 802 | |
|---|
| 803 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
|---|
| 804 | echo "configure:805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
|---|
| 805 | |
|---|
| 806 | ac_ext=c |
|---|
| 807 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
|---|
| 808 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 809 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
|---|
| 810 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|---|
| 811 | cross_compiling=$ac_cv_prog_cc_cross |
|---|
| 812 | |
|---|
| 813 | cat > conftest.$ac_ext << EOF |
|---|
| 814 | |
|---|
| 815 | #line 816 "configure" |
|---|
| 816 | #include "confdefs.h" |
|---|
| 817 | |
|---|
| 818 | main(){return(0);} |
|---|
| 819 | EOF |
|---|
| 820 | if { (eval echo configure:821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|---|
| 821 | ac_cv_prog_cc_works=yes |
|---|
| 822 | # If we can't run a trivial program, we are probably using a cross compiler. |
|---|
| 823 | if (./conftest; exit) 2>/dev/null; then |
|---|
| 824 | ac_cv_prog_cc_cross=no |
|---|
| 825 | else |
|---|
| 826 | ac_cv_prog_cc_cross=yes |
|---|
| 827 | fi |
|---|
| 828 | else |
|---|
| 829 | echo "configure: failed program was:" >&5 |
|---|
| 830 | cat conftest.$ac_ext >&5 |
|---|
| 831 | ac_cv_prog_cc_works=no |
|---|
| 832 | fi |
|---|
| 833 | rm -fr conftest* |
|---|
| 834 | ac_ext=c |
|---|
| 835 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
|---|
| 836 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 837 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
|---|
| 838 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|---|
| 839 | cross_compiling=$ac_cv_prog_cc_cross |
|---|
| 840 | |
|---|
| 841 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
|---|
| 842 | if test $ac_cv_prog_cc_works = no; then |
|---|
| 843 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
|---|
| 844 | fi |
|---|
| 845 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
|---|
| 846 | echo "configure:847: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
|---|
| 847 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
|---|
| 848 | cross_compiling=$ac_cv_prog_cc_cross |
|---|
| 849 | |
|---|
| 850 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
|---|
| 851 | echo "configure:852: checking whether we are using GNU C" >&5 |
|---|
| 852 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
|---|
| 853 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 854 | else |
|---|
| 855 | cat > conftest.c <<EOF |
|---|
| 856 | #ifdef __GNUC__ |
|---|
| 857 | yes; |
|---|
| 858 | #endif |
|---|
| 859 | EOF |
|---|
| 860 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
|---|
| 861 | ac_cv_prog_gcc=yes |
|---|
| 862 | else |
|---|
| 863 | ac_cv_prog_gcc=no |
|---|
| 864 | fi |
|---|
| 865 | fi |
|---|
| 866 | |
|---|
| 867 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
|---|
| 868 | |
|---|
| 869 | if test $ac_cv_prog_gcc = yes; then |
|---|
| 870 | GCC=yes |
|---|
| 871 | else |
|---|
| 872 | GCC= |
|---|
| 873 | fi |
|---|
| 874 | |
|---|
| 875 | ac_test_CFLAGS="${CFLAGS+set}" |
|---|
| 876 | ac_save_CFLAGS="$CFLAGS" |
|---|
| 877 | CFLAGS= |
|---|
| 878 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
|---|
| 879 | echo "configure:880: checking whether ${CC-cc} accepts -g" >&5 |
|---|
| 880 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
|---|
| 881 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 882 | else |
|---|
| 883 | echo 'void f(){}' > conftest.c |
|---|
| 884 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
|---|
| 885 | ac_cv_prog_cc_g=yes |
|---|
| 886 | else |
|---|
| 887 | ac_cv_prog_cc_g=no |
|---|
| 888 | fi |
|---|
| 889 | rm -f conftest* |
|---|
| 890 | |
|---|
| 891 | fi |
|---|
| 892 | |
|---|
| 893 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
|---|
| 894 | if test "$ac_test_CFLAGS" = set; then |
|---|
| 895 | CFLAGS="$ac_save_CFLAGS" |
|---|
| 896 | elif test $ac_cv_prog_cc_g = yes; then |
|---|
| 897 | if test "$GCC" = yes; then |
|---|
| 898 | CFLAGS="-g -O2" |
|---|
| 899 | else |
|---|
| 900 | CFLAGS="-g" |
|---|
| 901 | fi |
|---|
| 902 | else |
|---|
| 903 | if test "$GCC" = yes; then |
|---|
| 904 | CFLAGS="-O2" |
|---|
| 905 | else |
|---|
| 906 | CFLAGS= |
|---|
| 907 | fi |
|---|
| 908 | fi |
|---|
| 909 | |
|---|
| 910 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
|---|
| 911 | echo "configure:912: checking how to run the C preprocessor" >&5 |
|---|
| 912 | # On Suns, sometimes $CPP names a directory. |
|---|
| 913 | if test -n "$CPP" && test -d "$CPP"; then |
|---|
| 914 | CPP= |
|---|
| 915 | fi |
|---|
| 916 | if test -z "$CPP"; then |
|---|
| 917 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
|---|
| 918 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 919 | else |
|---|
| 920 | # This must be in double quotes, not single quotes, because CPP may get |
|---|
| 921 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
|---|
| 922 | CPP="${CC-cc} -E" |
|---|
| 923 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|---|
| 924 | # not just through cpp. |
|---|
| 925 | cat > conftest.$ac_ext <<EOF |
|---|
| 926 | #line 927 "configure" |
|---|
| 927 | #include "confdefs.h" |
|---|
| 928 | #include <assert.h> |
|---|
| 929 | Syntax Error |
|---|
| 930 | EOF |
|---|
| 931 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|---|
| 932 | { (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|---|
| 933 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|---|
| 934 | if test -z "$ac_err"; then |
|---|
| 935 | : |
|---|
| 936 | else |
|---|
| 937 | echo "$ac_err" >&5 |
|---|
| 938 | echo "configure: failed program was:" >&5 |
|---|
| 939 | cat conftest.$ac_ext >&5 |
|---|
| 940 | rm -rf conftest* |
|---|
| 941 | CPP="${CC-cc} -E -traditional-cpp" |
|---|
| 942 | cat > conftest.$ac_ext <<EOF |
|---|
| 943 | #line 944 "configure" |
|---|
| 944 | #include "confdefs.h" |
|---|
| 945 | #include <assert.h> |
|---|
| 946 | Syntax Error |
|---|
| 947 | EOF |
|---|
| 948 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|---|
| 949 | { (eval echo configure:950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|---|
| 950 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|---|
| 951 | if test -z "$ac_err"; then |
|---|
| 952 | : |
|---|
| 953 | else |
|---|
| 954 | echo "$ac_err" >&5 |
|---|
| 955 | echo "configure: failed program was:" >&5 |
|---|
| 956 | cat conftest.$ac_ext >&5 |
|---|
| 957 | rm -rf conftest* |
|---|
| 958 | CPP="${CC-cc} -nologo -E" |
|---|
| 959 | cat > conftest.$ac_ext <<EOF |
|---|
| 960 | #line 961 "configure" |
|---|
| 961 | #include "confdefs.h" |
|---|
| 962 | #include <assert.h> |
|---|
| 963 | Syntax Error |
|---|
| 964 | EOF |
|---|
| 965 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|---|
| 966 | { (eval echo configure:967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|---|
| 967 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|---|
| 968 | if test -z "$ac_err"; then |
|---|
| 969 | : |
|---|
| 970 | else |
|---|
| 971 | echo "$ac_err" >&5 |
|---|
| 972 | echo "configure: failed program was:" >&5 |
|---|
| 973 | cat conftest.$ac_ext >&5 |
|---|
| 974 | rm -rf conftest* |
|---|
| 975 | CPP=/lib/cpp |
|---|
| 976 | fi |
|---|
| 977 | rm -f conftest* |
|---|
| 978 | fi |
|---|
| 979 | rm -f conftest* |
|---|
| 980 | fi |
|---|
| 981 | rm -f conftest* |
|---|
| 982 | ac_cv_prog_CPP="$CPP" |
|---|
| 983 | fi |
|---|
| 984 | CPP="$ac_cv_prog_CPP" |
|---|
| 985 | else |
|---|
| 986 | ac_cv_prog_CPP="$CPP" |
|---|
| 987 | fi |
|---|
| 988 | echo "$ac_t""$CPP" 1>&6 |
|---|
| 989 | |
|---|
| 990 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
|---|
| 991 | do |
|---|
| 992 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|---|
| 993 | set dummy $ac_prog; ac_word=$2 |
|---|
| 994 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|---|
| 995 | echo "configure:996: checking for $ac_word" >&5 |
|---|
| 996 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
|---|
| 997 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 998 | else |
|---|
| 999 | if test -n "$CXX"; then |
|---|
| 1000 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
|---|
| 1001 | else |
|---|
| 1002 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|---|
| 1003 | ac_dummy="$PATH" |
|---|
| 1004 | for ac_dir in $ac_dummy; do |
|---|
| 1005 | test -z "$ac_dir" && ac_dir=. |
|---|
| 1006 | if test -f $ac_dir/$ac_word; then |
|---|
| 1007 | ac_cv_prog_CXX="$ac_prog" |
|---|
| 1008 | break |
|---|
| 1009 | fi |
|---|
| 1010 | done |
|---|
| 1011 | IFS="$ac_save_ifs" |
|---|
| 1012 | fi |
|---|
| 1013 | fi |
|---|
| 1014 | CXX="$ac_cv_prog_CXX" |
|---|
| 1015 | if test -n "$CXX"; then |
|---|
| 1016 | echo "$ac_t""$CXX" 1>&6 |
|---|
| 1017 | else |
|---|
| 1018 | echo "$ac_t""no" 1>&6 |
|---|
| 1019 | fi |
|---|
| 1020 | |
|---|
| 1021 | test -n "$CXX" && break |
|---|
| 1022 | done |
|---|
| 1023 | test -n "$CXX" || CXX="gcc" |
|---|
| 1024 | |
|---|
| 1025 | |
|---|
| 1026 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
|---|
| 1027 | echo "configure:1028: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
|---|
| 1028 | |
|---|
| 1029 | ac_ext=C |
|---|
| 1030 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
|---|
| 1031 | ac_cpp='$CXXCPP $CPPFLAGS' |
|---|
| 1032 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
|---|
| 1033 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|---|
| 1034 | cross_compiling=$ac_cv_prog_cxx_cross |
|---|
| 1035 | |
|---|
| 1036 | cat > conftest.$ac_ext << EOF |
|---|
| 1037 | |
|---|
| 1038 | #line 1039 "configure" |
|---|
| 1039 | #include "confdefs.h" |
|---|
| 1040 | |
|---|
| 1041 | int main(){return(0);} |
|---|
| 1042 | EOF |
|---|
| 1043 | if { (eval echo configure:1044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|---|
| 1044 | ac_cv_prog_cxx_works=yes |
|---|
| 1045 | # If we can't run a trivial program, we are probably using a cross compiler. |
|---|
| 1046 | if (./conftest; exit) 2>/dev/null; then |
|---|
| 1047 | ac_cv_prog_cxx_cross=no |
|---|
| 1048 | else |
|---|
| 1049 | ac_cv_prog_cxx_cross=yes |
|---|
| 1050 | fi |
|---|
| 1051 | else |
|---|
| 1052 | echo "configure: failed program was:" >&5 |
|---|
| 1053 | cat conftest.$ac_ext >&5 |
|---|
| 1054 | ac_cv_prog_cxx_works=no |
|---|
| 1055 | fi |
|---|
| 1056 | rm -fr conftest* |
|---|
| 1057 | ac_ext=c |
|---|
| 1058 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
|---|
| 1059 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 1060 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
|---|
| 1061 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|---|
| 1062 | cross_compiling=$ac_cv_prog_cc_cross |
|---|
| 1063 | |
|---|
| 1064 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
|---|
| 1065 | if test $ac_cv_prog_cxx_works = no; then |
|---|
| 1066 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
|---|
| 1067 | fi |
|---|
| 1068 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
|---|
| 1069 | echo "configure:1070: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
|---|
| 1070 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
|---|
| 1071 | cross_compiling=$ac_cv_prog_cxx_cross |
|---|
| 1072 | |
|---|
| 1073 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
|---|
| 1074 | echo "configure:1075: checking whether we are using GNU C++" >&5 |
|---|
| 1075 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
|---|
| 1076 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 1077 | else |
|---|
| 1078 | cat > conftest.C <<EOF |
|---|
| 1079 | #ifdef __GNUC__ |
|---|
| 1080 | yes; |
|---|
| 1081 | #endif |
|---|
| 1082 | EOF |
|---|
| 1083 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
|---|
| 1084 | ac_cv_prog_gxx=yes |
|---|
| 1085 | else |
|---|
| 1086 | ac_cv_prog_gxx=no |
|---|
| 1087 | fi |
|---|
| 1088 | fi |
|---|
| 1089 | |
|---|
| 1090 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
|---|
| 1091 | |
|---|
| 1092 | if test $ac_cv_prog_gxx = yes; then |
|---|
| 1093 | GXX=yes |
|---|
| 1094 | else |
|---|
| 1095 | GXX= |
|---|
| 1096 | fi |
|---|
| 1097 | |
|---|
| 1098 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
|---|
| 1099 | ac_save_CXXFLAGS="$CXXFLAGS" |
|---|
| 1100 | CXXFLAGS= |
|---|
| 1101 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
|---|
| 1102 | echo "configure:1103: checking whether ${CXX-g++} accepts -g" >&5 |
|---|
| 1103 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
|---|
| 1104 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 1105 | else |
|---|
| 1106 | echo 'void f(){}' > conftest.cc |
|---|
| 1107 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
|---|
| 1108 | ac_cv_prog_cxx_g=yes |
|---|
| 1109 | else |
|---|
| 1110 | ac_cv_prog_cxx_g=no |
|---|
| 1111 | fi |
|---|
| 1112 | rm -f conftest* |
|---|
| 1113 | |
|---|
| 1114 | fi |
|---|
| 1115 | |
|---|
| 1116 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
|---|
| 1117 | if test "$ac_test_CXXFLAGS" = set; then |
|---|
| 1118 | CXXFLAGS="$ac_save_CXXFLAGS" |
|---|
| 1119 | elif test $ac_cv_prog_cxx_g = yes; then |
|---|
| 1120 | if test "$GXX" = yes; then |
|---|
| 1121 | CXXFLAGS="-g -O2" |
|---|
| 1122 | else |
|---|
| 1123 | CXXFLAGS="-g" |
|---|
| 1124 | fi |
|---|
| 1125 | else |
|---|
| 1126 | if test "$GXX" = yes; then |
|---|
| 1127 | CXXFLAGS="-O2" |
|---|
| 1128 | else |
|---|
| 1129 | CXXFLAGS= |
|---|
| 1130 | fi |
|---|
| 1131 | fi |
|---|
| 1132 | |
|---|
| 1133 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
|---|
| 1134 | echo "configure:1135: checking how to run the C++ preprocessor" >&5 |
|---|
| 1135 | if test -z "$CXXCPP"; then |
|---|
| 1136 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
|---|
| 1137 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 1138 | else |
|---|
| 1139 | ac_ext=C |
|---|
| 1140 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
|---|
| 1141 | ac_cpp='$CXXCPP $CPPFLAGS' |
|---|
| 1142 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
|---|
| 1143 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|---|
| 1144 | cross_compiling=$ac_cv_prog_cxx_cross |
|---|
| 1145 | CXXCPP="${CXX-g++} -E" |
|---|
| 1146 | cat > conftest.$ac_ext <<EOF |
|---|
| 1147 | #line 1148 "configure" |
|---|
| 1148 | #include "confdefs.h" |
|---|
| 1149 | #include <stdlib.h> |
|---|
| 1150 | EOF |
|---|
| 1151 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|---|
| 1152 | { (eval echo configure:1153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|---|
| 1153 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|---|
| 1154 | if test -z "$ac_err"; then |
|---|
| 1155 | : |
|---|
| 1156 | else |
|---|
| 1157 | echo "$ac_err" >&5 |
|---|
| 1158 | echo "configure: failed program was:" >&5 |
|---|
| 1159 | cat conftest.$ac_ext >&5 |
|---|
| 1160 | rm -rf conftest* |
|---|
| 1161 | CXXCPP=/lib/cpp |
|---|
| 1162 | fi |
|---|
| 1163 | rm -f conftest* |
|---|
| 1164 | ac_cv_prog_CXXCPP="$CXXCPP" |
|---|
| 1165 | ac_ext=c |
|---|
| 1166 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
|---|
| 1167 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 1168 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
|---|
| 1169 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|---|
| 1170 | cross_compiling=$ac_cv_prog_cc_cross |
|---|
| 1171 | fi |
|---|
| 1172 | fi |
|---|
| 1173 | CXXCPP="$ac_cv_prog_CXXCPP" |
|---|
| 1174 | echo "$ac_t""$CXXCPP" 1>&6 |
|---|
| 1175 | |
|---|
| 1176 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
|---|
| 1177 | echo "configure:1178: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
|---|
| 1178 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
|---|
| 1179 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
|---|
| 1180 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 1181 | else |
|---|
| 1182 | cat > conftestmake <<\EOF |
|---|
| 1183 | all: |
|---|
| 1184 | @echo 'ac_maketemp="${MAKE}"' |
|---|
| 1185 | EOF |
|---|
| 1186 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
|---|
| 1187 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
|---|
| 1188 | if test -n "$ac_maketemp"; then |
|---|
| 1189 | eval ac_cv_prog_make_${ac_make}_set=yes |
|---|
| 1190 | else |
|---|
| 1191 | eval ac_cv_prog_make_${ac_make}_set=no |
|---|
| 1192 | fi |
|---|
| 1193 | rm -f conftestmake |
|---|
| 1194 | fi |
|---|
| 1195 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
|---|
| 1196 | echo "$ac_t""yes" 1>&6 |
|---|
| 1197 | SET_MAKE= |
|---|
| 1198 | else |
|---|
| 1199 | echo "$ac_t""no" 1>&6 |
|---|
| 1200 | SET_MAKE="MAKE=${MAKE-make}" |
|---|
| 1201 | fi |
|---|
| 1202 | |
|---|
| 1203 | # Find a good install program. We prefer a C program (faster), |
|---|
| 1204 | # so one script is as good as another. But avoid the broken or |
|---|
| 1205 | # incompatible versions: |
|---|
| 1206 | # SysV /etc/install, /usr/sbin/install |
|---|
| 1207 | # SunOS /usr/etc/install |
|---|
| 1208 | # IRIX /sbin/install |
|---|
| 1209 | # AIX /bin/install |
|---|
| 1210 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|---|
| 1211 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
|---|
| 1212 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|---|
| 1213 | # ./install, which can be erroneously created by make from ./install.sh. |
|---|
| 1214 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
|---|
| 1215 | echo "configure:1216: checking for a BSD compatible install" >&5 |
|---|
| 1216 | if test -z "$INSTALL"; then |
|---|
| 1217 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
|---|
| 1218 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 1219 | else |
|---|
| 1220 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
|---|
| 1221 | for ac_dir in $PATH; do |
|---|
| 1222 | # Account for people who put trailing slashes in PATH elements. |
|---|
| 1223 | case "$ac_dir/" in |
|---|
| 1224 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/s |
|---|