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