| 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 | |
| 15 | # Initialize some variables set by options. |
| 16 | # The variables have the same names as the options, with |
| 17 | # dashes changed to underlines. |
| 18 | build=NONE |
| 19 | cache_file=./config.cache |
| 20 | exec_prefix=NONE |
| 21 | host=NONE |
| 22 | no_create= |
| 23 | nonopt=NONE |
| 24 | no_recursion= |
| 25 | prefix=NONE |
| 26 | program_prefix=NONE |
| 27 | program_suffix=NONE |
| 28 | program_transform_name=s,x,x, |
| 29 | silent= |
| 30 | site= |
| 31 | srcdir= |
| 32 | target=NONE |
| 33 | verbose= |
| 34 | x_includes=NONE |
| 35 | x_libraries=NONE |
| 36 | bindir='${exec_prefix}/bin' |
| 37 | sbindir='${exec_prefix}/sbin' |
| 38 | libexecdir='${exec_prefix}/libexec' |
| 39 | datadir='${prefix}/share' |
| 40 | sysconfdir='${prefix}/etc' |
| 41 | sharedstatedir='${prefix}/com' |
| 42 | localstatedir='${prefix}/var' |
| 43 | libdir='${exec_prefix}/lib' |
| 44 | includedir='${prefix}/include' |
| 45 | oldincludedir='/usr/include' |
| 46 | infodir='${prefix}/info' |
| 47 | mandir='${prefix}/man' |
| 48 | |
| 49 | # Initialize some other variables. |
| 50 | subdirs= |
| 51 | MFLAGS= MAKEFLAGS= |
| 52 | # Maximum number of lines to put in a shell here document. |
| 53 | ac_max_here_lines=12 |
| 54 | |
| 55 | ac_prev= |
| 56 | for ac_option |
| 57 | do |
| 58 | |
| 59 | # If the previous option needs an argument, assign it. |
| 60 | if test -n "$ac_prev"; then |
| 61 | eval "$ac_prev=\$ac_option" |
| 62 | ac_prev= |
| 63 | continue |
| 64 | fi |
| 65 | |
| 66 | case "$ac_option" in |
| 67 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 68 | *) ac_optarg= ;; |
| 69 | esac |
| 70 | |
| 71 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 72 | |
| 73 | case "$ac_option" in |
| 74 | |
| 75 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 76 | ac_prev=bindir ;; |
| 77 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 78 | bindir="$ac_optarg" ;; |
| 79 | |
| 80 | -build | --build | --buil | --bui | --bu) |
| 81 | ac_prev=build ;; |
| 82 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 83 | build="$ac_optarg" ;; |
| 84 | |
| 85 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 86 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 87 | ac_prev=cache_file ;; |
| 88 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 89 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 90 | cache_file="$ac_optarg" ;; |
| 91 | |
| 92 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 93 | ac_prev=datadir ;; |
| 94 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 95 | | --da=*) |
| 96 | datadir="$ac_optarg" ;; |
| 97 | |
| 98 | -disable-* | --disable-*) |
| 99 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 100 | # Reject names that are not valid shell variable names. |
| 101 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 102 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 103 | fi |
| 104 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 105 | eval "enable_${ac_feature}=no" ;; |
| 106 | |
| 107 | -enable-* | --enable-*) |
| 108 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 109 | # Reject names that are not valid shell variable names. |
| 110 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 111 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 112 | fi |
| 113 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 114 | case "$ac_option" in |
| 115 | *=*) ;; |
| 116 | *) ac_optarg=yes ;; |
| 117 | esac |
| 118 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 119 | |
| 120 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 121 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 122 | | --exec | --exe | --ex) |
| 123 | ac_prev=exec_prefix ;; |
| 124 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 125 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 126 | | --exec=* | --exe=* | --ex=*) |
| 127 | exec_prefix="$ac_optarg" ;; |
| 128 | |
| 129 | -gas | --gas | --ga | --g) |
| 130 | # Obsolete; use --with-gas. |
| 131 | with_gas=yes ;; |
| 132 | |
| 133 | -help | --help | --hel | --he) |
| 134 | # Omit some internal or obsolete options to make the list less imposing. |
| 135 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 136 | cat << EOF |
| 137 | Usage: configure [options] [host] |
| 138 | Options: [defaults in brackets after descriptions] |
| 139 | Configuration: |
| 140 | --cache-file=FILE cache test results in FILE |
| 141 | --help print this message |
| 142 | --no-create do not create output files |
| 143 | --quiet, --silent do not print \`checking...' messages |
| 144 | --version print the version of autoconf that created configure |
| 145 | Directory and file names: |
| 146 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 147 | [$ac_default_prefix] |
| 148 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 149 | [same as prefix] |
| 150 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 151 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 152 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 153 | --datadir=DIR read-only architecture-independent data in DIR |
| 154 | [PREFIX/share] |
| 155 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 156 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 157 | [PREFIX/com] |
| 158 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 159 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 160 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 161 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 162 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 163 | --mandir=DIR man documentation in DIR [PREFIX/man] |
| 164 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 165 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 166 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 167 | --program-transform-name=PROGRAM |
| 168 | run sed PROGRAM on installed program names |
| 169 | EOF |
| 170 | cat << EOF |
| 171 | Host type: |
| 172 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 173 | --host=HOST configure for HOST [guessed] |
| 174 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 175 | Features and packages: |
| 176 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 177 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 178 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 179 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 180 | --x-includes=DIR X include files are in DIR |
| 181 | --x-libraries=DIR X library files are in DIR |
| 182 | EOF |
| 183 | if test -n "$ac_help"; then |
| 184 | echo "--enable and --with options recognized:$ac_help" |
| 185 | fi |
| 186 | exit 0 ;; |
| 187 | |
| 188 | -host | --host | --hos | --ho) |
| 189 | ac_prev=host ;; |
| 190 | -host=* | --host=* | --hos=* | --ho=*) |
| 191 | host="$ac_optarg" ;; |
| 192 | |
| 193 | -includedir | --includedir | --includedi | --included | --include \ |
| 194 | | --includ | --inclu | --incl | --inc) |
| 195 | ac_prev=includedir ;; |
| 196 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 197 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 198 | includedir="$ac_optarg" ;; |
| 199 | |
| 200 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 201 | ac_prev=infodir ;; |
| 202 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 203 | infodir="$ac_optarg" ;; |
| 204 | |
| 205 | -libdir | --libdir | --libdi | --libd) |
| 206 | ac_prev=libdir ;; |
| 207 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 208 | libdir="$ac_optarg" ;; |
| 209 | |
| 210 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 211 | | --libexe | --libex | --libe) |
| 212 | ac_prev=libexecdir ;; |
| 213 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 214 | | --libexe=* | --libex=* | --libe=*) |
| 215 | libexecdir="$ac_optarg" ;; |
| 216 | |
| 217 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 218 | | --localstate | --localstat | --localsta | --localst \ |
| 219 | | --locals | --local | --loca | --loc | --lo) |
| 220 | ac_prev=localstatedir ;; |
| 221 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 222 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 223 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 224 | localstatedir="$ac_optarg" ;; |
| 225 | |
| 226 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 227 | ac_prev=mandir ;; |
| 228 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 229 | mandir="$ac_optarg" ;; |
| 230 | |
| 231 | -nfp | --nfp | --nf) |
| 232 | # Obsolete; use --without-fp. |
| 233 | with_fp=no ;; |
| 234 | |
| 235 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 236 | | --no-cr | --no-c) |
| 237 | no_create=yes ;; |
| 238 | |
| 239 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 240 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 241 | no_recursion=yes ;; |
| 242 | |
| 243 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 244 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 245 | | --oldin | --oldi | --old | --ol | --o) |
| 246 | ac_prev=oldincludedir ;; |
| 247 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 248 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 249 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 250 | oldincludedir="$ac_optarg" ;; |
| 251 | |
| 252 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 253 | ac_prev=prefix ;; |
| 254 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 255 | prefix="$ac_optarg" ;; |
| 256 | |
| 257 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 258 | | --program-pre | --program-pr | --program-p) |
| 259 | ac_prev=program_prefix ;; |
| 260 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 261 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 262 | program_prefix="$ac_optarg" ;; |
| 263 | |
| 264 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 265 | | --program-suf | --program-su | --program-s) |
| 266 | ac_prev=program_suffix ;; |
| 267 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 268 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 269 | program_suffix="$ac_optarg" ;; |
| 270 | |
| 271 | -program-transform-name | --program-transform-name \ |
| 272 | | --program-transform-nam | --program-transform-na \ |
| 273 | | --program-transform-n | --program-transform- \ |
| 274 | | --program-transform | --program-transfor \ |
| 275 | | --program-transfo | --program-transf \ |
| 276 | | --program-trans | --program-tran \ |
| 277 | | --progr-tra | --program-tr | --program-t) |
| 278 | ac_prev=program_transform_name ;; |
| 279 | -program-transform-name=* | --program-transform-name=* \ |
| 280 | | --program-transform-nam=* | --program-transform-na=* \ |
| 281 | | --program-transform-n=* | --program-transform-=* \ |
| 282 | | --program-transform=* | --program-transfor=* \ |
| 283 | | --program-transfo=* | --program-transf=* \ |
| 284 | | --program-trans=* | --program-tran=* \ |
| 285 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 286 | program_transform_name="$ac_optarg" ;; |
| 287 | |
| 288 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 289 | | -silent | --silent | --silen | --sile | --sil) |
| 290 | silent=yes ;; |
| 291 | |
| 292 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 293 | ac_prev=sbindir ;; |
| 294 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 295 | | --sbi=* | --sb=*) |
| 296 | sbindir="$ac_optarg" ;; |
| 297 | |
| 298 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 299 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 300 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 301 | | --sha | --sh) |
| 302 | ac_prev=sharedstatedir ;; |
| 303 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 304 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 305 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 306 | | --sha=* | --sh=*) |
| 307 | sharedstatedir="$ac_optarg" ;; |
| 308 | |
| 309 | -site | --site | --sit) |
| 310 | ac_prev=site ;; |
| 311 | -site=* | --site=* | --sit=*) |
| 312 | site="$ac_optarg" ;; |
| 313 | |
| 314 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 315 | ac_prev=srcdir ;; |
| 316 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 317 | srcdir="$ac_optarg" ;; |
| 318 | |
| 319 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 320 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 321 | ac_prev=sysconfdir ;; |
| 322 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 323 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 324 | sysconfdir="$ac_optarg" ;; |
| 325 | |
| 326 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 327 | ac_prev=target ;; |
| 328 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 329 | target="$ac_optarg" ;; |
| 330 | |
| 331 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 332 | verbose=yes ;; |
| 333 | |
| 334 | -version | --version | --versio | --versi | --vers) |
| 335 | echo "configure generated by autoconf version 2.12" |
| 336 | exit 0 ;; |
| 337 | |
| 338 | -with-* | --with-*) |
| 339 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 340 | # Reject names that are not valid shell variable names. |
| 341 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 342 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 343 | fi |
| 344 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 345 | case "$ac_option" in |
| 346 | *=*) ;; |
| 347 | *) ac_optarg=yes ;; |
| 348 | esac |
| 349 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 350 | |
| 351 | -without-* | --without-*) |
| 352 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 353 | # Reject names that are not valid shell variable names. |
| 354 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 355 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 356 | fi |
| 357 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 358 | eval "with_${ac_package}=no" ;; |
| 359 | |
| 360 | --x) |
| 361 | # Obsolete; use --with-x. |
| 362 | with_x=yes ;; |
| 363 | |
| 364 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 365 | | --x-incl | --x-inc | --x-in | --x-i) |
| 366 | ac_prev=x_includes ;; |
| 367 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 368 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 369 | x_includes="$ac_optarg" ;; |
| 370 | |
| 371 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 372 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 373 | ac_prev=x_libraries ;; |
| 374 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 375 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 376 | x_libraries="$ac_optarg" ;; |
| 377 | |
| 378 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 379 | ;; |
| 380 | |
| 381 | *) |
| 382 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 383 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 384 | fi |
| 385 | if test "x$nonopt" != xNONE; then |
| 386 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 387 | fi |
| 388 | nonopt="$ac_option" |
| 389 | ;; |
| 390 | |
| 391 | esac |
| 392 | done |
| 393 | |
| 394 | if test -n "$ac_prev"; then |
| 395 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 396 | fi |
| 397 | |
| 398 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 399 | |
| 400 | # File descriptor usage: |
| 401 | # 0 standard input |
| 402 | # 1 file creation |
| 403 | # 2 errors and warnings |
| 404 | # 3 some systems may open it to /dev/tty |
| 405 | # 4 used on the Kubota Titan |
| 406 | # 6 checking for... messages and results |
| 407 | # 5 compiler messages saved in config.log |
| 408 | if test "$silent" = yes; then |
| 409 | exec 6>/dev/null |
| 410 | else |
| 411 | exec 6>&1 |
| 412 | fi |
| 413 | exec 5>./config.log |
| 414 | |
| 415 | echo "\ |
| 416 | This file contains any messages produced by compilers while |
| 417 | running configure, to aid debugging if configure makes a mistake. |
| 418 | " 1>&5 |
| 419 | |
| 420 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 421 | # Also quote any args containing shell metacharacters. |
| 422 | ac_configure_args= |
| 423 | for ac_arg |
| 424 | do |
| 425 | case "$ac_arg" in |
| 426 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 427 | | --no-cr | --no-c) ;; |
| 428 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 429 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 430 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 431 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 432 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 433 | esac |
| 434 | done |
| 435 | |
| 436 | # NLS nuisances. |
| 437 | # Only set these to C if already set. These must not be set unconditionally |
| 438 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 439 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 440 | # Non-C LC_CTYPE values break the ctype check. |
| 441 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 442 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 443 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 444 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| 445 | |
| 446 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 447 | rm -rf conftest* confdefs.h |
| 448 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 449 | echo > confdefs.h |
| 450 | |
| 451 | # A filename unique to this package, relative to the directory that |
| 452 | # configure is in, which we can look for to find out if srcdir is correct. |
| 453 | ac_unique_file=popt.h |
| 454 | |
| 455 | # Find the source files, if location was not specified. |
| 456 | if test -z "$srcdir"; then |
| 457 | ac_srcdir_defaulted=yes |
| 458 | # Try the directory containing this script, then its parent. |
| 459 | ac_prog=$0 |
| 460 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 461 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 462 | srcdir=$ac_confdir |
| 463 | if test ! -r $srcdir/$ac_unique_file; then |
| 464 | srcdir=.. |
| 465 | fi |
| 466 | else |
| 467 | ac_srcdir_defaulted=no |
| 468 | fi |
| 469 | if test ! -r $srcdir/$ac_unique_file; then |
| 470 | if test "$ac_srcdir_defaulted" = yes; then |
| 471 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 472 | else |
| 473 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 474 | fi |
| 475 | fi |
| 476 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 477 | |
| 478 | # Prefer explicitly selected file to automatically selected ones. |
| 479 | if test -z "$CONFIG_SITE"; then |
| 480 | if test "x$prefix" != xNONE; then |
| 481 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 482 | else |
| 483 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 484 | fi |
| 485 | fi |
| 486 | for ac_site_file in $CONFIG_SITE; do |
| 487 | if test -r "$ac_site_file"; then |
| 488 | echo "loading site script $ac_site_file" |
| 489 | . "$ac_site_file" |
| 490 | fi |
| 491 | done |
| 492 | |
| 493 | if test -r "$cache_file"; then |
| 494 | echo "loading cache $cache_file" |
| 495 | . $cache_file |
| 496 | else |
| 497 | echo "creating cache $cache_file" |
| 498 | > $cache_file |
| 499 | fi |
| 500 | |
| 501 | ac_ext=c |
| 502 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 503 | ac_cpp='$CPP $CPPFLAGS' |
| 504 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 505 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 506 | cross_compiling=$ac_cv_prog_cc_cross |
| 507 | |
| 508 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 509 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 510 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 511 | ac_n= ac_c=' |
| 512 | ' ac_t=' ' |
| 513 | else |
| 514 | ac_n=-n ac_c= ac_t= |
| 515 | fi |
| 516 | else |
| 517 | ac_n= ac_c='\c' ac_t= |
| 518 | fi |
| 519 | |
| 520 | |
| 521 | ac_aux_dir= |
| 522 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 523 | if test -f $ac_dir/install-sh; then |
| 524 | ac_aux_dir=$ac_dir |
| 525 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 526 | break |
| 527 | elif test -f $ac_dir/install.sh; then |
| 528 | ac_aux_dir=$ac_dir |
| 529 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 530 | break |
| 531 | fi |
| 532 | done |
| 533 | if test -z "$ac_aux_dir"; then |
| 534 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
| 535 | fi |
| 536 | ac_config_guess=$ac_aux_dir/config.guess |
| 537 | ac_config_sub=$ac_aux_dir/config.sub |
| 538 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 539 | |
| 540 | # Find a good install program. We prefer a C program (faster), |
| 541 | # so one script is as good as another. But avoid the broken or |
| 542 | # incompatible versions: |
| 543 | # SysV /etc/install, /usr/sbin/install |
| 544 | # SunOS /usr/etc/install |
| 545 | # IRIX /sbin/install |
| 546 | # AIX /bin/install |
| 547 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 548 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 549 | # ./install, which can be erroneously created by make from ./install.sh. |
| 550 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| 551 | echo "configure:552: checking for a BSD compatible install" >&5 |
| 552 | if test -z "$INSTALL"; then |
| 553 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 554 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 555 | else |
| 556 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" |
| 557 | for ac_dir in $PATH; do |
| 558 | # Account for people who put trailing slashes in PATH elements. |
| 559 | case "$ac_dir/" in |
| 560 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 561 | *) |
| 562 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 563 | for ac_prog in ginstall installbsd scoinst install; do |
| 564 | if test -f $ac_dir/$ac_prog; then |
| 565 | if test $ac_prog = install && |
| 566 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 567 | # AIX install. It has an incompatible calling convention. |
| 568 | # OSF/1 installbsd also uses dspmsg, but is usable. |
| 569 | : |
| 570 | else |
| 571 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 572 | break 2 |
| 573 | fi |
| 574 | fi |
| 575 | done |
| 576 | ;; |
| 577 | esac |
| 578 | done |
| 579 | IFS="$ac_save_IFS" |
| 580 | |
| 581 | fi |
| 582 | if test "${ac_cv_path_install+set}" = set; then |
| 583 | INSTALL="$ac_cv_path_install" |
| 584 | else |
| 585 | # As a last resort, use the slow shell script. We don't cache a |
| 586 | # path for INSTALL within a source directory, because that will |
| 587 | # break other packages using the cache if that directory is |
| 588 | # removed, or if the path is relative. |
| 589 | INSTALL="$ac_install_sh" |
| 590 | fi |
| 591 | fi |
| 592 | echo "$ac_t""$INSTALL" 1>&6 |
| 593 | |
| 594 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 595 | # It thinks the first close brace ends the variable substitution. |
| 596 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 597 | |
| 598 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 599 | |
| 600 | |
| 601 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 602 | |
| 603 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
| 604 | echo "configure:605: checking whether build environment is sane" >&5 |
| 605 | # Just in case |
| 606 | sleep 1 |
| 607 | echo timestamp > conftestfile |
| 608 | # Do `set' in a subshell so we don't clobber the current shell's |
| 609 | # arguments. Must try -L first in case configure is actually a |
| 610 | # symlink; some systems play weird games with the mod time of symlinks |
| 611 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 612 | # directory). |
| 613 | if ( |
| 614 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
| 615 | if test "$*" = "X"; then |
| 616 | # -L didn't work. |
| 617 | set X `ls -t $srcdir/configure conftestfile` |
| 618 | fi |
| 619 | if test "$*" != "X $srcdir/configure conftestfile" \ |
| 620 | && test "$*" != "X conftestfile $srcdir/configure"; then |
| 621 | |
| 622 | # If neither matched, then we have a broken ls. This can happen |
| 623 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 624 | # broken ls alias from the environment. This has actually |
| 625 | # happened. Such a system could not be considered "sane". |
| 626 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
| 627 | alias in your environment" 1>&2; exit 1; } |
| 628 | fi |
| 629 | |
| 630 | test "$2" = conftestfile |
| 631 | ) |
| 632 | then |
| 633 | # Ok. |
| 634 | : |
| 635 | else |
| 636 | { echo "configure: error: newly created file is older than distributed files! |
| 637 | Check your system clock" 1>&2; exit 1; } |
| 638 | fi |
| 639 | rm -f conftest* |
| 640 | echo "$ac_t""yes" 1>&6 |
| 641 | if test "$program_transform_name" = s,x,x,; then |
| 642 | program_transform_name= |
| 643 | else |
| 644 | # Double any \ or $. echo might interpret backslashes. |
| 645 | cat <<\EOF_SED > conftestsed |
| 646 | s,\\,\\\\,g; s,\$,$$,g |
| 647 | EOF_SED |
| 648 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
| 649 | rm -f conftestsed |
| 650 | fi |
| 651 | test "$program_prefix" != NONE && |
| 652 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
| 653 | # Use a double $ so make ignores it. |
| 654 | test "$program_suffix" != NONE && |
| 655 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
| 656 | |
| 657 | # sed with no file args requires a program. |
| 658 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
| 659 | |
| 660 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| 661 | echo "configure:662: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 662 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 663 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 664 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 665 | else |
| 666 | cat > conftestmake <<\EOF |
| 667 | all: |
| 668 | @echo 'ac_maketemp="${MAKE}"' |
| 669 | EOF |
| 670 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 671 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 672 | if test -n "$ac_maketemp"; then |
| 673 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 674 | else |
| 675 | eval ac_cv_prog_make_${ac_make}_set=no |
| 676 | fi |
| 677 | rm -f conftestmake |
| 678 | fi |
| 679 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 680 | echo "$ac_t""yes" 1>&6 |
| 681 | SET_MAKE= |
| 682 | else |
| 683 | echo "$ac_t""no" 1>&6 |
| 684 | SET_MAKE="MAKE=${MAKE-make}" |
| 685 | fi |
| 686 | |
| 687 | |
| 688 | PACKAGE=popt |
| 689 | |
| 690 | VERSION=1.2 |
| 691 | |
| 692 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
| 693 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
| 694 | fi |
| 695 | cat >> confdefs.h <<EOF |
| 696 | #define PACKAGE "$PACKAGE" |
| 697 | EOF |
| 698 | |
| 699 | cat >> confdefs.h <<EOF |
| 700 | #define VERSION "$VERSION" |
| 701 | EOF |
| 702 | |
| 703 | |
| 704 | |
| 705 | missing_dir=`cd $ac_aux_dir && pwd` |
| 706 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
| 707 | echo "configure:708: checking for working aclocal" >&5 |
| 708 | # Run test in a subshell; some versions of sh will print an error if |
| 709 | # an executable is not found, even if stderr is redirected. |
| 710 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 711 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
| 712 | ACLOCAL=aclocal |
| 713 | echo "$ac_t""found" 1>&6 |
| 714 | else |
| 715 | ACLOCAL="$missing_dir/missing aclocal" |
| 716 | echo "$ac_t""missing" 1>&6 |
| 717 | fi |
| 718 | |
| 719 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
| 720 | echo "configure:721: checking for working autoconf" >&5 |
| 721 | # Run test in a subshell; some versions of sh will print an error if |
| 722 | # an executable is not found, even if stderr is redirected. |
| 723 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 724 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
| 725 | AUTOCONF=autoconf |
| 726 | echo "$ac_t""found" 1>&6 |
| 727 | else |
| 728 | AUTOCONF="$missing_dir/missing autoconf" |
| 729 | echo "$ac_t""missing" 1>&6 |
| 730 | fi |
| 731 | |
| 732 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
| 733 | echo "configure:734: checking for working automake" >&5 |
| 734 | # Run test in a subshell; some versions of sh will print an error if |
| 735 | # an executable is not found, even if stderr is redirected. |
| 736 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 737 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
| 738 | AUTOMAKE=automake |
| 739 | echo "$ac_t""found" 1>&6 |
| 740 | else |
| 741 | AUTOMAKE="$missing_dir/missing automake" |
| 742 | echo "$ac_t""missing" 1>&6 |
| 743 | fi |
| 744 | |
| 745 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
| 746 | echo "configure:747: checking for working autoheader" >&5 |
| 747 | # Run test in a subshell; some versions of sh will print an error if |
| 748 | # an executable is not found, even if stderr is redirected. |
| 749 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 750 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
| 751 | AUTOHEADER=autoheader |
| 752 | echo "$ac_t""found" 1>&6 |
| 753 | else |
| 754 | AUTOHEADER="$missing_dir/missing autoheader" |
| 755 | echo "$ac_t""missing" 1>&6 |
| 756 | fi |
| 757 | |
| 758 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
| 759 | echo "configure:760: checking for working makeinfo" >&5 |
| 760 | # Run test in a subshell; some versions of sh will print an error if |
| 761 | # an executable is not found, even if stderr is redirected. |
| 762 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 763 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
| 764 | MAKEINFO=makeinfo |
| 765 | echo "$ac_t""found" 1>&6 |
| 766 | else |
| 767 | MAKEINFO="$missing_dir/missing makeinfo" |
| 768 | echo "$ac_t""missing" 1>&6 |
| 769 | fi |
| 770 | |
| 771 | |
| 772 | |
| 773 | |
| 774 | |
| 775 | |
| 776 | # Extract the first word of "gcc", so it can be a program name with args. |
| 777 | set dummy gcc; ac_word=$2 |
| 778 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 779 | echo "configure:780: checking for $ac_word" >&5 |
| 780 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 781 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 782 | else |
| 783 | if test -n "$CC"; then |
| 784 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 785 | else |
| 786 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 787 | for ac_dir in $PATH; do |
| 788 | test -z "$ac_dir" && ac_dir=. |
| 789 | if test -f $ac_dir/$ac_word; then |
| 790 | ac_cv_prog_CC="gcc" |
| 791 | break |
| 792 | fi |
| 793 | done |
| 794 | IFS="$ac_save_ifs" |
| 795 | fi |
| 796 | fi |
| 797 | CC="$ac_cv_prog_CC" |
| 798 | if test -n "$CC"; then |
| 799 | echo "$ac_t""$CC" 1>&6 |
| 800 | else |
| 801 | echo "$ac_t""no" 1>&6 |
| 802 | fi |
| 803 | |
| 804 | if test -z "$CC"; then |
| 805 | # Extract the first word of "cc", so it can be a program name with args. |
| 806 | set dummy cc; ac_word=$2 |
| 807 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 808 | echo "configure:809: checking for $ac_word" >&5 |
| 809 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 810 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 811 | else |
| 812 | if test -n "$CC"; then |
| 813 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 814 | else |
| 815 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 816 | ac_prog_rejected=no |
| 817 | for ac_dir in $PATH; do |
| 818 | test -z "$ac_dir" && ac_dir=. |
| 819 | if test -f $ac_dir/$ac_word; then |
| 820 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 821 | ac_prog_rejected=yes |
| 822 | continue |
| 823 | fi |
| 824 | ac_cv_prog_CC="cc" |
| 825 | break |
| 826 | fi |
| 827 | done |
| 828 | IFS="$ac_save_ifs" |
| 829 | if test $ac_prog_rejected = yes; then |
| 830 | # We found a bogon in the path, so make sure we never use it. |
| 831 | set dummy $ac_cv_prog_CC |
| 832 | shift |
| 833 | if test $# -gt 0; then |
| 834 | # We chose a different compiler from the bogus one. |
| 835 | # However, it has the same basename, so the bogon will be chosen |
| 836 | # first if we set CC to just the basename; use the full file name. |
| 837 | shift |
| 838 | set dummy "$ac_dir/$ac_word" "$@" |
| 839 | shift |
| 840 | ac_cv_prog_CC="$@" |
| 841 | fi |
| 842 | fi |
| 843 | fi |
| 844 | fi |
| 845 | CC="$ac_cv_prog_CC" |
| 846 | if test -n "$CC"; then |
| 847 | echo "$ac_t""$CC" 1>&6 |
| 848 | else |
| 849 | echo "$ac_t""no" 1>&6 |
| 850 | fi |
| 851 | |
| 852 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 853 | fi |
| 854 | |
| 855 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 856 | echo "configure:857: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 857 | |
| 858 | ac_ext=c |
| 859 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 860 | ac_cpp='$CPP $CPPFLAGS' |
| 861 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 862 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 863 | cross_compiling=$ac_cv_prog_cc_cross |
| 864 | |
| 865 | cat > conftest.$ac_ext <<EOF |
| 866 | #line 867 "configure" |
| 867 | #include "confdefs.h" |
| 868 | main(){return(0);} |
| 869 | EOF |
| 870 | if { (eval echo configure:871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 871 | ac_cv_prog_cc_works=yes |
| 872 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 873 | if (./conftest; exit) 2>/dev/null; then |
| 874 | ac_cv_prog_cc_cross=no |
| 875 | else |
| 876 | ac_cv_prog_cc_cross=yes |
| 877 | fi |
| 878 | else |
| 879 | echo "configure: failed program was:" >&5 |
| 880 | cat conftest.$ac_ext >&5 |
| 881 | ac_cv_prog_cc_works=no |
| 882 | fi |
| 883 | rm -fr conftest* |
| 884 | |
| 885 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 886 | if test $ac_cv_prog_cc_works = no; then |
| 887 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 888 | fi |
| 889 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 890 | echo "configure:891: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 891 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 892 | cross_compiling=$ac_cv_prog_cc_cross |
| 893 | |
| 894 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 895 | echo "configure:896: checking whether we are using GNU C" >&5 |
| 896 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 897 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 898 | else |
| 899 | cat > conftest.c <<EOF |
| 900 | #ifdef __GNUC__ |
| 901 | yes; |
| 902 | #endif |
| 903 | EOF |
| 904 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 905 | ac_cv_prog_gcc=yes |
| 906 | else |
| 907 | ac_cv_prog_gcc=no |
| 908 | fi |
| 909 | fi |
| 910 | |
| 911 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 912 | |
| 913 | if test $ac_cv_prog_gcc = yes; then |
| 914 | GCC=yes |
| 915 | ac_test_CFLAGS="${CFLAGS+set}" |
| 916 | ac_save_CFLAGS="$CFLAGS" |
| 917 | CFLAGS= |
| 918 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 919 | echo "configure:920: checking whether ${CC-cc} accepts -g" >&5 |
| 920 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 921 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 922 | else |
| 923 | echo 'void f(){}' > conftest.c |
| 924 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 925 | ac_cv_prog_cc_g=yes |
| 926 | else |
| 927 | ac_cv_prog_cc_g=no |
| 928 | fi |
| 929 | rm -f conftest* |
| 930 | |
| 931 | fi |
| 932 | |
| 933 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 934 | if test "$ac_test_CFLAGS" = set; then |
| 935 | CFLAGS="$ac_save_CFLAGS" |
| 936 | elif test $ac_cv_prog_cc_g = yes; then |
| 937 | CFLAGS="-g -O2" |
| 938 | else |
| 939 | CFLAGS="-O2" |
| 940 | fi |
| 941 | else |
| 942 | GCC= |
| 943 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
| 944 | fi |
| 945 | |
| 946 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 947 | echo "configure:948: checking how to run the C preprocessor" >&5 |
| 948 | # On Suns, sometimes $CPP names a directory. |
| 949 | if test -n "$CPP" && test -d "$CPP"; then |
| 950 | CPP= |
| 951 | fi |
| 952 | if test -z "$CPP"; then |
| 953 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 954 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 955 | else |
| 956 | # This must be in double quotes, not single quotes, because CPP may get |
| 957 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 958 | CPP="${CC-cc} -E" |
| 959 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 960 | # not just through cpp. |
| 961 | cat > conftest.$ac_ext <<EOF |
| 962 | #line 963 "configure" |
| 963 | #include "confdefs.h" |
| 964 | #include <assert.h> |
| 965 | Syntax Error |
| 966 | EOF |
| 967 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 968 | { (eval echo configure:969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 969 | ac_err=`grep -v '^ *+' conftest.out` |
| 970 | if test -z "$ac_err"; then |
| 971 | : |
| 972 | else |
| 973 | echo "$ac_err" >&5 |
| 974 | echo "configure: failed program was:" >&5 |
| 975 | cat conftest.$ac_ext >&5 |
| 976 | rm -rf conftest* |
| 977 | CPP="${CC-cc} -E -traditional-cpp" |
| 978 | cat > conftest.$ac_ext <<EOF |
| 979 | #line 980 "configure" |
| 980 | #include "confdefs.h" |
| 981 | #include <assert.h> |
| 982 | Syntax Error |
| 983 | EOF |
| 984 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 985 | { (eval echo configure:986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 986 | ac_err=`grep -v '^ *+' conftest.out` |
| 987 | if test -z "$ac_err"; then |
| 988 | : |
| 989 | else |
| 990 | echo "$ac_err" >&5 |
| 991 | echo "configure: failed program was:" >&5 |
| 992 | cat conftest.$ac_ext >&5 |
| 993 | rm -rf conftest* |
| 994 | CPP=/lib/cpp |
| 995 | fi |
| 996 | rm -f conftest* |
| 997 | fi |
| 998 | rm -f conftest* |
| 999 | ac_cv_prog_CPP="$CPP" |
| 1000 | fi |
| 1001 | CPP="$ac_cv_prog_CPP" |
| 1002 | else |
| 1003 | ac_cv_prog_CPP="$CPP" |
| 1004 | fi |
| 1005 | echo "$ac_t""$CPP" 1>&6 |
| 1006 | |
| 1007 | if test $ac_cv_prog_gcc = yes; then |
| 1008 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 |
| 1009 | echo "configure:1010: checking whether ${CC-cc} needs -traditional" >&5 |
| 1010 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
| 1011 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1012 | else |
| 1013 | ac_pattern="Autoconf.*'x'" |
| 1014 | cat > conftest.$ac_ext <<EOF |
| 1015 | #line 1016 "configure" |
| 1016 | #include "confdefs.h" |
| 1017 | #include <sgtty.h> |
| 1018 | Autoconf TIOCGETP |
| 1019 | EOF |
| 1020 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1021 | egrep "$ac_pattern" >/dev/null 2>&1; then |
| 1022 | rm -rf conftest* |
| 1023 | ac_cv_prog_gcc_traditional=yes |
| 1024 | else |
| 1025 | rm -rf conftest* |
| 1026 | ac_cv_prog_gcc_traditional=no |
| 1027 | fi |
| 1028 | rm -f conftest* |
| 1029 | |
| 1030 | |
| 1031 | if test $ac_cv_prog_gcc_traditional = no; then |
| 1032 | cat > conftest.$ac_ext <<EOF |
| 1033 | #line 1034 "configure" |
| 1034 | #include "confdefs.h" |
| 1035 | #include <termio.h> |
| 1036 | Autoconf TCGETA |
| 1037 | EOF |
| 1038 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1039 | egrep "$ac_pattern" >/dev/null 2>&1; then |
| 1040 | rm -rf conftest* |
| 1041 | ac_cv_prog_gcc_traditional=yes |
| 1042 | fi |
| 1043 | rm -f conftest* |
| 1044 | |
| 1045 | fi |
| 1046 | fi |
| 1047 | |
| 1048 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 |
| 1049 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 1050 | CC="$CC -traditional" |
| 1051 | fi |
| 1052 | fi |
| 1053 | |
| 1054 | |
| 1055 | |
| 1056 | |
| 1057 | echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 |
| 1058 | echo "configure:1059: checking for ${CC-cc} option to accept ANSI C" >&5 |
| 1059 | if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then |
| 1060 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1061 | else |
| 1062 | am_cv_prog_cc_stdc=no |
| 1063 | ac_save_CC="$CC" |
| 1064 | # Don't try gcc -ansi; that turns off useful extensions and |
| 1065 | # breaks some systems' header files. |
| 1066 | # AIX -qlanglvl=ansi |
| 1067 | # Ultrix and OSF/1 -std1 |
| 1068 | # HP-UX -Aa -D_HPUX_SOURCE |
| 1069 | # SVR4 -Xc -D__EXTENSIONS__ |
| 1070 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 1071 | do |
| 1072 | CC="$ac_save_CC $ac_arg" |
| 1073 | cat > conftest.$ac_ext <<EOF |
| 1074 | #line 1075 "configure" |
| 1075 | #include "confdefs.h" |
| 1076 | #include <stdarg.h> |
| 1077 | #include <stdio.h> |
| 1078 | #include <sys/types.h> |
| 1079 | #include <sys/stat.h> |
| 1080 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 1081 | struct buf { int x; }; |
| 1082 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 1083 | static char *e (p, i) |
| 1084 | char **p; |
| 1085 | int i; |
| 1086 | { |
| 1087 | return p[i]; |
| 1088 | } |
| 1089 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 1090 | { |
| 1091 | char *s; |
| 1092 | va_list v; |
| 1093 | va_start (v,p); |
| 1094 | s = g (p, va_arg (v,int)); |
| 1095 | va_end (v); |
| 1096 | return s; |
| 1097 | } |
| 1098 | int test (int i, double x); |
| 1099 | struct s1 {int (*f) (int a);}; |
| 1100 | struct s2 {int (*f) (double a);}; |
| 1101 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 1102 | int argc; |
| 1103 | char **argv; |
| 1104 | |
| 1105 | int main() { |
| 1106 | |
| 1107 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 1108 | |
| 1109 | ; return 0; } |
| 1110 | EOF |
| 1111 | if { (eval echo configure:1112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1112 | rm -rf conftest* |
| 1113 | am_cv_prog_cc_stdc="$ac_arg"; break |
| 1114 | else |
| 1115 | echo "configure: failed program was:" >&5 |
| 1116 | cat conftest.$ac_ext >&5 |
| 1117 | fi |
| 1118 | rm -f conftest* |
| 1119 | done |
| 1120 | CC="$ac_save_CC" |
| 1121 | |
| 1122 | fi |
| 1123 | |
| 1124 | if test -z "$am_cv_prog_cc_stdc"; then |
| 1125 | echo "$ac_t""none needed" 1>&6 |
| 1126 | else |
| 1127 | echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6 |
| 1128 | fi |
| 1129 | case "x$am_cv_prog_cc_stdc" in |
| 1130 | x|xno) ;; |
| 1131 | *) CC="$CC $am_cv_prog_cc_stdc" ;; |
| 1132 | esac |
| 1133 | |
| 1134 | |
| 1135 | |
| 1136 | echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 |
| 1137 | echo "configure:1138: checking for function prototypes" >&5 |
| 1138 | if test "$am_cv_prog_cc_stdc" != no; then |
| 1139 | echo "$ac_t""yes" 1>&6 |
| 1140 | cat >> confdefs.h <<\EOF |
| 1141 | #define PROTOTYPES 1 |
| 1142 | EOF |
| 1143 | |
| 1144 | U= ANSI2KNR= |
| 1145 | else |
| 1146 | echo "$ac_t""no" 1>&6 |
| 1147 | U=_ ANSI2KNR=./ansi2knr |
| 1148 | # Ensure some checks needed by ansi2knr itself. |
| 1149 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 1150 | echo "configure:1151: checking for ANSI C header files" >&5 |
| 1151 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1152 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1153 | else |
| 1154 | cat > conftest.$ac_ext <<EOF |
| 1155 | #line 1156 "configure" |
| 1156 | #include "confdefs.h" |
| 1157 | #include <stdlib.h> |
| 1158 | #include <stdarg.h> |
| 1159 | #include <string.h> |
| 1160 | #include <float.h> |
| 1161 | EOF |
| 1162 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1163 | { (eval echo configure:1164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1164 | ac_err=`grep -v '^ *+' conftest.out` |
| 1165 | if test -z "$ac_err"; then |
| 1166 | rm -rf conftest* |
| 1167 | ac_cv_header_stdc=yes |
| 1168 | else |
| 1169 | echo "$ac_err" >&5 |
| 1170 | echo "configure: failed program was:" >&5 |
| 1171 | cat conftest.$ac_ext >&5 |
| 1172 | rm -rf conftest* |
| 1173 | ac_cv_header_stdc=no |
| 1174 | fi |
| 1175 | rm -f conftest* |
| 1176 | |
| 1177 | if test $ac_cv_header_stdc = yes; then |
| 1178 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1179 | cat > conftest.$ac_ext <<EOF |
| 1180 | #line 1181 "configure" |
| 1181 | #include "confdefs.h" |
| 1182 | #include <string.h> |
| 1183 | EOF |
| 1184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1185 | egrep "memchr" >/dev/null 2>&1; then |
| 1186 | : |
| 1187 | else |
| 1188 | rm -rf conftest* |
| 1189 | ac_cv_header_stdc=no |
| 1190 | fi |
| 1191 | rm -f conftest* |
| 1192 | |
| 1193 | fi |
| 1194 | |
| 1195 | if test $ac_cv_header_stdc = yes; then |
| 1196 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1197 | cat > conftest.$ac_ext <<EOF |
| 1198 | #line 1199 "configure" |
| 1199 | #include "confdefs.h" |
| 1200 | #include <stdlib.h> |
| 1201 | EOF |
| 1202 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1203 | egrep "free" >/dev/null 2>&1; then |
| 1204 | : |
| 1205 | else |
| 1206 | rm -rf conftest* |
| 1207 | ac_cv_header_stdc=no |
| 1208 | fi |
| 1209 | rm -f conftest* |
| 1210 | |
| 1211 | fi |
| 1212 | |
| 1213 | if test $ac_cv_header_stdc = yes; then |
| 1214 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1215 | if test "$cross_compiling" = yes; then |
| 1216 | : |
| 1217 | else |
| 1218 | cat > conftest.$ac_ext <<EOF |
| 1219 | #line 1220 "configure" |
| 1220 | #include "confdefs.h" |
| 1221 | #include <ctype.h> |
| 1222 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1223 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 1224 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 1225 | int main () { int i; for (i = 0; i < 256; i++) |
| 1226 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1227 | exit (0); } |
| 1228 | |
| 1229 | EOF |
| 1230 | if { (eval echo configure:1231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
| 1231 | then |
| 1232 | : |
| 1233 | else |
| 1234 | echo "configure: failed program was:" >&5 |
| 1235 | cat conftest.$ac_ext >&5 |
| 1236 | rm -fr conftest* |
| 1237 | ac_cv_header_stdc=no |
| 1238 | fi |
| 1239 | rm -fr conftest* |
| 1240 | fi |
| 1241 | |
| 1242 | fi |
| 1243 | fi |
| 1244 | |
| 1245 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 1246 | if test $ac_cv_header_stdc = yes; then |
| 1247 | cat >> confdefs.h <<\EOF |
| 1248 | #define STDC_HEADERS 1 |
| 1249 | EOF |
| 1250 | |
| 1251 | fi |
| 1252 | |
| 1253 | for ac_hdr in string.h |
| 1254 | do |
| 1255 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1256 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1257 | echo "configure:1258: checking for $ac_hdr" >&5 |
| 1258 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1259 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1260 | else |
| 1261 | cat > conftest.$ac_ext <<EOF |
| 1262 | #line 1263 "configure" |
| 1263 | #include "confdefs.h" |
| 1264 | #include <$ac_hdr> |
| 1265 | EOF |
| 1266 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1267 | { (eval echo configure:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1268 | ac_err=`grep -v '^ *+' conftest.out` |
| 1269 | if test -z "$ac_err"; then |
| 1270 | rm -rf conftest* |
| 1271 | eval "ac_cv_header_$ac_safe=yes" |
| 1272 | else |
| 1273 | echo "$ac_err" >&5 |
| 1274 | echo "configure: failed program was:" >&5 |
| 1275 | cat conftest.$ac_ext >&5 |
| 1276 | rm -rf conftest* |
| 1277 | eval "ac_cv_header_$ac_safe=no" |
| 1278 | fi |
| 1279 | rm -f conftest* |
| 1280 | fi |
| 1281 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1282 | echo "$ac_t""yes" 1>&6 |
| 1283 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1284 | cat >> confdefs.h <<EOF |
| 1285 | #define $ac_tr_hdr 1 |
| 1286 | EOF |
| 1287 | |
| 1288 | else |
| 1289 | echo "$ac_t""no" 1>&6 |
| 1290 | fi |
| 1291 | done |
| 1292 | |
| 1293 | fi |
| 1294 | |
| 1295 | |
| 1296 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1297 | set dummy ranlib; ac_word=$2 |
| 1298 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1299 | echo "configure:1300: checking for $ac_word" >&5 |
| 1300 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1301 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1302 | else |
| 1303 | if test -n "$RANLIB"; then |
| 1304 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1305 | else |
| 1306 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1307 | for ac_dir in $PATH; do |
| 1308 | test -z "$ac_dir" && ac_dir=. |
| 1309 | if test -f $ac_dir/$ac_word; then |
| 1310 | ac_cv_prog_RANLIB="ranlib" |
| 1311 | break |
| 1312 | fi |
| 1313 | done |
| 1314 | IFS="$ac_save_ifs" |
| 1315 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 1316 | fi |
| 1317 | fi |
| 1318 | RANLIB="$ac_cv_prog_RANLIB" |
| 1319 | if test -n "$RANLIB"; then |
| 1320 | echo "$ac_t""$RANLIB" 1>&6 |
| 1321 | else |
| 1322 | echo "$ac_t""no" 1>&6 |
| 1323 | fi |
| 1324 | |
| 1325 | # Find a good install program. We prefer a C program (faster), |
| 1326 | # so one script is as good as another. But avoid the broken or |
| 1327 | # incompatible versions: |
| 1328 | # SysV /etc/install, /usr/sbin/install |
| 1329 | # SunOS /usr/etc/install |
| 1330 | # IRIX /sbin/install |
| 1331 | # AIX /bin/install |
| 1332 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1333 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1334 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1335 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| 1336 | echo "configure:1337: checking for a BSD compatible install" >&5 |
| 1337 | if test -z "$INSTALL"; then |
| 1338 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1339 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1340 | else |
| 1341 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" |
| 1342 | for ac_dir in $PATH; do |
| 1343 | # Account for people who put trailing slashes in PATH elements. |
| 1344 | case "$ac_dir/" in |
| 1345 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1346 | *) |
| 1347 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1348 | for ac_prog in ginstall installbsd scoinst install; do |
| 1349 | if test -f $ac_dir/$ac_prog; then |
| 1350 | if test $ac_prog = install && |
| 1351 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1352 | # AIX install. It has an incompatible calling convention. |
| 1353 | # OSF/1 installbsd also uses dspmsg, but is usable. |
| 1354 | : |
| 1355 | else |
| 1356 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1357 | break 2 |
| 1358 | fi |
| 1359 | fi |
| 1360 | done |
| 1361 | ;; |
| 1362 | esac |
| 1363 | done |
| 1364 | IFS="$ac_save_IFS" |
| 1365 | |
| 1366 | fi |
| 1367 | if test "${ac_cv_path_install+set}" = set; then |
| 1368 | INSTALL="$ac_cv_path_install" |
| 1369 | else |
| 1370 | # As a last resort, use the slow shell script. We don't cache a |
| 1371 | # path for INSTALL within a source directory, because that will |
| 1372 | # break other packages using the cache if that directory is |
| 1373 | # removed, or if the path is relative. |
| 1374 | INSTALL="$ac_install_sh" |
| 1375 | fi |
| 1376 | fi |
| 1377 | echo "$ac_t""$INSTALL" 1>&6 |
| 1378 | |
| 1379 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1380 | # It thinks the first close brace ends the variable substitution. |
| 1381 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1382 | |
| 1383 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1384 | |
| 1385 | |
| 1386 | if test $CC = gcc; then |
| 1387 | CFLAGS="-Wall $CFLAGS" |
| 1388 | fi |
| 1389 | addlib() { |
| 1390 | l=$1 |
| 1391 | shift |
| 1392 | case "$target" in |
| 1393 | *-*-solaris*) LIBS="$LIBS -L$l -R $l $*";; |
| 1394 | *) LIBS="$LIBS -L$l $*";; |
| 1395 | esac |
| 1396 | } |
| 1397 | |
| 1398 | if test X"$GCC" = Xyes ; then |
| 1399 | TARGET="depend allprogs" |
| 1400 | else |
| 1401 | TARGET="everything" |
| 1402 | # |
| 1403 | # let the Makefile know that we're done with `depend', since we don't |
| 1404 | # have gcc we're not going to rebuild our dependencies at all. |
| 1405 | # |
| 1406 | echo > .depend-done |
| 1407 | fi |
| 1408 | |
| 1409 | |
| 1410 | for ac_hdr in unistd.h alloca.h libintl.h |
| 1411 | do |
| 1412 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1413 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1414 | echo "configure:1415: checking for $ac_hdr" >&5 |
| 1415 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1416 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1417 | else |
| 1418 | cat > conftest.$ac_ext <<EOF |
| 1419 | #line 1420 "configure" |
| 1420 | #include "confdefs.h" |
| 1421 | #include <$ac_hdr> |
| 1422 | EOF |
| 1423 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1424 | { (eval echo configure:1425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1425 | ac_err=`grep -v '^ *+' conftest.out` |
| 1426 | if test -z "$ac_err"; then |
| 1427 | rm -rf conftest* |
| 1428 | eval "ac_cv_header_$ac_safe=yes" |
| 1429 | else |
| 1430 | echo "$ac_err" >&5 |
| 1431 | echo "configure: failed program was:" >&5 |
| 1432 | cat conftest.$ac_ext >&5 |
| 1433 | rm -rf conftest* |
| 1434 | eval "ac_cv_header_$ac_safe=no" |
| 1435 | fi |
| 1436 | rm -f conftest* |
| 1437 | fi |
| 1438 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1439 | echo "$ac_t""yes" 1>&6 |
| 1440 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1441 | cat >> confdefs.h <<EOF |
| 1442 | #define $ac_tr_hdr 1 |
| 1443 | EOF |
| 1444 | |
| 1445 | else |
| 1446 | echo "$ac_t""no" 1>&6 |
| 1447 | fi |
| 1448 | done |
| 1449 | |
| 1450 | echo $ac_n "checking for /usr/ucblib in LIBS""... $ac_c" 1>&6 |
| 1451 | echo "configure:1452: checking for /usr/ucblib in LIBS" >&5 |
| 1452 | if test -d /usr/ucblib ; then |
| 1453 | if test "$build" = "mips-sni-sysv4" ; then |
| 1454 | addlib /usr/ccs/lib -lc |
| 1455 | fi |
| 1456 | |
| 1457 | addlib /usr/ucblib |
| 1458 | |
| 1459 | echo "$ac_t""yes" 1>&6 |
| 1460 | else |
| 1461 | echo "$ac_t""no" 1>&6 |
| 1462 | fi |
| 1463 | |
| 1464 | for ac_func in strerror |
| 1465 | do |
| 1466 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 1467 | echo "configure:1468: checking for $ac_func" >&5 |
| 1468 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 1469 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1470 | else |
| 1471 | cat > conftest.$ac_ext <<EOF |
| 1472 | #line 1473 "configure" |
| 1473 | #include "confdefs.h" |
| 1474 | /* System header to define __stub macros and hopefully few prototypes, |
| 1475 | which can conflict with char $ac_func(); below. */ |
| 1476 | #include <assert.h> |
| 1477 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1478 | /* We use char because int might match the return type of a gcc2 |
| 1479 | builtin and then its argument prototype would still apply. */ |
| 1480 | char $ac_func(); |
| 1481 | |
| 1482 | int main() { |
| 1483 | |
| 1484 | /* The GNU C library defines this for functions which it implements |
| 1485 | to always fail with ENOSYS. Some functions are actually named |
| 1486 | something starting with __ and the normal name is an alias. */ |
| 1487 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 1488 | choke me |
| 1489 | #else |
| 1490 | $ac_func(); |
| 1491 | #endif |
| 1492 | |
| 1493 | ; return 0; } |
| 1494 | EOF |
| 1495 | if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 1496 | rm -rf conftest* |
| 1497 | eval "ac_cv_func_$ac_func=yes" |
| 1498 | else |
| 1499 | echo "configure: failed program was:" >&5 |
| 1500 | cat conftest.$ac_ext >&5 |
| 1501 | rm -rf conftest* |
| 1502 | eval "ac_cv_func_$ac_func=no" |
| 1503 | fi |
| 1504 | rm -f conftest* |
| 1505 | fi |
| 1506 | |
| 1507 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 1508 | echo "$ac_t""yes" 1>&6 |
| 1509 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 1510 | cat >> confdefs.h <<EOF |
| 1511 | #define $ac_tr_func 1 |
| 1512 | EOF |
| 1513 | |
| 1514 | else |
| 1515 | echo "$ac_t""no" 1>&6 |
| 1516 | fi |
| 1517 | done |
| 1518 | |
| 1519 | for ac_func in gettext |
| 1520 | do |
| 1521 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 1522 | echo "configure:1523: checking for $ac_func" >&5 |
| 1523 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 1524 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1525 | else |
| 1526 | cat > conftest.$ac_ext <<EOF |
| 1527 | #line 1528 "configure" |
| 1528 | #include "confdefs.h" |
| 1529 | /* System header to define __stub macros and hopefully few prototypes, |
| 1530 | which can conflict with char $ac_func(); below. */ |
| 1531 | #include <assert.h> |
| 1532 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1533 | /* We use char because int might match the return type of a gcc2 |
| 1534 | builtin and then its argument prototype would still apply. */ |
| 1535 | char $ac_func(); |
| 1536 | |
| 1537 | int main() { |
| 1538 | |
| 1539 | /* The GNU C library defines this for functions which it implements |
| 1540 | to always fail with ENOSYS. Some functions are actually named |
| 1541 | something starting with __ and the normal name is an alias. */ |
| 1542 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 1543 | choke me |
| 1544 | #else |
| 1545 | $ac_func(); |
| 1546 | #endif |
| 1547 | |
| 1548 | ; return 0; } |
| 1549 | EOF |
| 1550 | if { (eval echo configure:1551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 1551 | rm -rf conftest* |
| 1552 | eval "ac_cv_func_$ac_func=yes" |
| 1553 | else |
| 1554 | echo "configure: failed program was:" >&5 |
| 1555 | cat conftest.$ac_ext >&5 |
| 1556 | rm -rf conftest* |
| 1557 | eval "ac_cv_func_$ac_func=no" |
| 1558 | fi |
| 1559 | rm -f conftest* |
| 1560 | fi |
| 1561 | |
| 1562 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 1563 | echo "$ac_t""yes" 1>&6 |
| 1564 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 1565 | cat >> confdefs.h <<EOF |
| 1566 | #define $ac_tr_func 1 |
| 1567 | EOF |
| 1568 | |
| 1569 | else |
| 1570 | echo "$ac_t""no" 1>&6 |
| 1571 | fi |
| 1572 | done |
| 1573 | |
| 1574 | for ac_func in dgettext |
| 1575 | do |
| 1576 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 1577 | echo "configure:1578: checking for $ac_func" >&5 |
| 1578 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 1579 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1580 | else |
| 1581 | cat > conftest.$ac_ext <<EOF |
| 1582 | #line 1583 "configure" |
| 1583 | #include "confdefs.h" |
| 1584 | /* System header to define __stub macros and hopefully few prototypes, |
| 1585 | which can conflict with char $ac_func(); below. */ |
| 1586 | #include <assert.h> |
| 1587 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1588 | /* We use char because int might match the return type of a gcc2 |
| 1589 | builtin and then its argument prototype would still apply. */ |
| 1590 | char $ac_func(); |
| 1591 | |
| 1592 | int main() { |
| 1593 | |
| 1594 | /* The GNU C library defines this for functions which it implements |
| 1595 | to always fail with ENOSYS. Some functions are actually named |
| 1596 | something starting with __ and the normal name is an alias. */ |
| 1597 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 1598 | choke me |
| 1599 | #else |
| 1600 | $ac_func(); |
| 1601 | #endif |
| 1602 | |
| 1603 | ; return 0; } |
| 1604 | EOF |
| 1605 | if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 1606 | rm -rf conftest* |
| 1607 | eval "ac_cv_func_$ac_func=yes" |
| 1608 | else |
| 1609 | echo "configure: failed program was:" >&5 |
| 1610 | cat conftest.$ac_ext >&5 |
| 1611 | rm -rf conftest* |
| 1612 | eval "ac_cv_func_$ac_func=no" |
| 1613 | fi |
| 1614 | rm -f conftest* |
| 1615 | fi |
| 1616 | |
| 1617 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 1618 | echo "$ac_t""yes" 1>&6 |
| 1619 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 1620 | cat >> confdefs.h <<EOF |
| 1621 | #define $ac_tr_func 1 |
| 1622 | EOF |
| 1623 | |
| 1624 | else |
| 1625 | echo "$ac_t""no" 1>&6 |
| 1626 | fi |
| 1627 | done |
| 1628 | |
| 1629 | echo $ac_n "checking for setreuid""... $ac_c" 1>&6 |
| 1630 | echo "configure:1631: checking for setreuid" >&5 |
| 1631 | if eval "test \"`echo '$''{'ac_cv_func_setreuid'+set}'`\" = set"; then |
| 1632 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1633 | else |
| 1634 | cat > conftest.$ac_ext <<EOF |
| 1635 | #line 1636 "configure" |
| 1636 | #include "confdefs.h" |
| 1637 | /* System header to define __stub macros and hopefully few prototypes, |
| 1638 | which can conflict with char setreuid(); below. */ |
| 1639 | #include <assert.h> |
| 1640 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1641 | /* We use char because int might match the return type of a gcc2 |
| 1642 | builtin and then its argument prototype would still apply. */ |
| 1643 | char setreuid(); |
| 1644 | |
| 1645 | int main() { |
| 1646 | |
| 1647 | /* The GNU C library defines this for functions which it implements |
| 1648 | to always fail with ENOSYS. Some functions are actually named |
| 1649 | something starting with __ and the normal name is an alias. */ |
| 1650 | #if defined (__stub_setreuid) || defined (__stub___setreuid) |
| 1651 | choke me |
| 1652 | #else |
| 1653 | setreuid(); |
| 1654 | #endif |
| 1655 | |
| 1656 | ; return 0; } |
| 1657 | EOF |
| 1658 | if { (eval echo configure:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 1659 | rm -rf conftest* |
| 1660 | eval "ac_cv_func_setreuid=yes" |
| 1661 | else |
| 1662 | echo "configure: failed program was:" >&5 |
| 1663 | cat conftest.$ac_ext >&5 |
| 1664 | rm -rf conftest* |
| 1665 | eval "ac_cv_func_setreuid=no" |
| 1666 | fi |
| 1667 | rm -f conftest* |
| 1668 | fi |
| 1669 | |
| 1670 | if eval "test \"`echo '$ac_cv_func_'setreuid`\" = yes"; then |
| 1671 | echo "$ac_t""yes" 1>&6 |
| 1672 | : |
| 1673 | else |
| 1674 | echo "$ac_t""no" 1>&6 |
| 1675 | |
| 1676 | echo $ac_n "checking for setreuid in -lucb""... $ac_c" 1>&6 |
| 1677 | echo "configure:1678: checking for setreuid in -lucb" >&5 |
| 1678 | ac_lib_var=`echo ucb'_'setreuid | sed 'y%./+-%__p_%'` |
| 1679 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1680 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1681 | else |
| 1682 | ac_save_LIBS="$LIBS" |
| 1683 | LIBS="-lucb $LIBS" |
| 1684 | cat > conftest.$ac_ext <<EOF |
| 1685 | #line 1686 "configure" |
| 1686 | #include "confdefs.h" |
| 1687 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1688 | /* We use char because int might match the return type of a gcc2 |
| 1689 | builtin and then its argument prototype would still apply. */ |
| 1690 | char setreuid(); |
| 1691 | |
| 1692 | int main() { |
| 1693 | setreuid() |
| 1694 | ; return 0; } |
| 1695 | EOF |
| 1696 | if { (eval echo configure:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 1697 | rm -rf conftest* |
| 1698 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1699 | else |
| 1700 | echo "configure: failed program was:" >&5 |
| 1701 | cat conftest.$ac_ext >&5 |
| 1702 | rm -rf conftest* |
| 1703 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1704 | fi |
| 1705 | rm -f conftest* |
| 1706 | LIBS="$ac_save_LIBS" |
| 1707 | |
| 1708 | fi |
| 1709 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1710 | echo "$ac_t""yes" 1>&6 |
| 1711 | if echo $LIBS | grep -- -lucb >/dev/null ;then :; else LIBS="$LIBS -lc -lucb" USEUCB=y;fi |
| 1712 | else |
| 1713 | echo "$ac_t""no" 1>&6 |
| 1714 | fi |
| 1715 | |
| 1716 | |
| 1717 | fi |
| 1718 | |
| 1719 | |
| 1720 | trap '' 1 2 15 |
| 1721 | cat > confcache <<\EOF |
| 1722 | # This file is a shell script that caches the results of configure |
| 1723 | # tests run on this system so they can be shared between configure |
| 1724 | # scripts and configure runs. It is not useful on other systems. |
| 1725 | # If it contains results you don't want to keep, you may remove or edit it. |
| 1726 | # |
| 1727 | # By default, configure uses ./config.cache as the cache file, |
| 1728 | # creating it if it does not exist already. You can give configure |
| 1729 | # the --cache-file=FILE option to use a different cache file; that is |
| 1730 | # what configure does when it calls configure scripts in |
| 1731 | # subdirectories, so they share the cache. |
| 1732 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 1733 | # config.status only pays attention to the cache file if you give it the |
| 1734 | # --recheck option to rerun configure. |
| 1735 | # |
| 1736 | EOF |
| 1737 | # The following way of writing the cache mishandles newlines in values, |
| 1738 | # but we know of no workaround that is simple, portable, and efficient. |
| 1739 | # So, don't put newlines in cache variables' values. |
| 1740 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 1741 | # and sets the high bit in the cache file unless we assign to the vars. |
| 1742 | (set) 2>&1 | |
| 1743 | case `(ac_space=' '; set) 2>&1` in |
| 1744 | *ac_space=\ *) |
| 1745 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 1746 | # turns \\\\ into \\, and sed turns \\ into \). |
| 1747 | sed -n \ |
| 1748 | -e "s/'/'\\\\''/g" \ |
| 1749 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 1750 | ;; |
| 1751 | *) |
| 1752 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 1753 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 1754 | ;; |
| 1755 | esac >> confcache |
| 1756 | if cmp -s $cache_file confcache; then |
| 1757 | : |
| 1758 | else |
| 1759 | if test -w $cache_file; then |
| 1760 | echo "updating cache $cache_file" |
| 1761 | cat confcache > $cache_file |
| 1762 | else |
| 1763 | echo "not updating unwritable cache $cache_file" |
| 1764 | fi |
| 1765 | fi |
| 1766 | rm -f confcache |
| 1767 | |
| 1768 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 1769 | |
| 1770 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 1771 | # Let make expand exec_prefix. |
| 1772 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 1773 | |
| 1774 | # Any assignment to VPATH causes Sun make to only execute |
| 1775 | # the first set of double-colon rules, so remove it if not needed. |
| 1776 | # If there is a colon in the path, we need to keep it. |
| 1777 | if test "x$srcdir" = x.; then |
| 1778 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 1779 | fi |
| 1780 | |
| 1781 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 1782 | |
| 1783 | DEFS=-DHAVE_CONFIG_H |
| 1784 | |
| 1785 | # Without the "./", some shells look in PATH for config.status. |
| 1786 | : ${CONFIG_STATUS=./config.status} |
| 1787 | |
| 1788 | echo creating $CONFIG_STATUS |
| 1789 | rm -f $CONFIG_STATUS |
| 1790 | cat > $CONFIG_STATUS <<EOF |
| 1791 | #! /bin/sh |
| 1792 | # Generated automatically by configure. |
| 1793 | # Run this file to recreate the current configuration. |
| 1794 | # This directory was configured as follows, |
| 1795 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 1796 | # |
| 1797 | # $0 $ac_configure_args |
| 1798 | # |
| 1799 | # Compiler output produced by configure, useful for debugging |
| 1800 | # configure, is in ./config.log if it exists. |
| 1801 | |
| 1802 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 1803 | for ac_option |
| 1804 | do |
| 1805 | case "\$ac_option" in |
| 1806 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 1807 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 1808 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 1809 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 1810 | echo "$CONFIG_STATUS generated by autoconf version 2.12" |
| 1811 | exit 0 ;; |
| 1812 | -help | --help | --hel | --he | --h) |
| 1813 | echo "\$ac_cs_usage"; exit 0 ;; |
| 1814 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 1815 | esac |
| 1816 | done |
| 1817 | |
| 1818 | ac_given_srcdir=$srcdir |
| 1819 | ac_given_INSTALL="$INSTALL" |
| 1820 | |
| 1821 | trap 'rm -fr `echo "Makefile po/Makefile.in config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 1822 | EOF |
| 1823 | cat >> $CONFIG_STATUS <<EOF |
| 1824 | |
| 1825 | # Protect against being on the right side of a sed subst in config.status. |
| 1826 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 1827 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 1828 | $ac_vpsub |
| 1829 | $extrasub |
| 1830 | s%@CFLAGS@%$CFLAGS%g |
| 1831 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 1832 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 1833 | s%@DEFS@%$DEFS%g |
| 1834 | s%@LDFLAGS@%$LDFLAGS%g |
| 1835 | s%@LIBS@%$LIBS%g |
| 1836 | s%@exec_prefix@%$exec_prefix%g |
| 1837 | s%@prefix@%$prefix%g |
| 1838 | s%@program_transform_name@%$program_transform_name%g |
| 1839 | s%@bindir@%$bindir%g |
| 1840 | s%@sbindir@%$sbindir%g |
| 1841 | s%@libexecdir@%$libexecdir%g |
| 1842 | s%@datadir@%$datadir%g |
| 1843 | s%@sysconfdir@%$sysconfdir%g |
| 1844 | s%@sharedstatedir@%$sharedstatedir%g |
| 1845 | s%@localstatedir@%$localstatedir%g |
| 1846 | s%@libdir@%$libdir%g |
| 1847 | s%@includedir@%$includedir%g |
| 1848 | s%@oldincludedir@%$oldincludedir%g |
| 1849 | s%@infodir@%$infodir%g |
| 1850 | s%@mandir@%$mandir%g |
| 1851 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 1852 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
| 1853 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
| 1854 | s%@PACKAGE@%$PACKAGE%g |
| 1855 | s%@VERSION@%$VERSION%g |
| 1856 | s%@ACLOCAL@%$ACLOCAL%g |
| 1857 | s%@AUTOCONF@%$AUTOCONF%g |
| 1858 | s%@AUTOMAKE@%$AUTOMAKE%g |
| 1859 | s%@AUTOHEADER@%$AUTOHEADER%g |
| 1860 | s%@MAKEINFO@%$MAKEINFO%g |
| 1861 | s%@SET_MAKE@%$SET_MAKE%g |
| 1862 | s%@CC@%$CC%g |
| 1863 | s%@CPP@%$CPP%g |
| 1864 | s%@U@%$U%g |
| 1865 | s%@ANSI2KNR@%$ANSI2KNR%g |
| 1866 | s%@RANLIB@%$RANLIB%g |
| 1867 | s%@TARGET@%$TARGET%g |
| 1868 | |
| 1869 | CEOF |
| 1870 | EOF |
| 1871 | |
| 1872 | cat >> $CONFIG_STATUS <<\EOF |
| 1873 | |
| 1874 | # Split the substitutions into bite-sized pieces for seds with |
| 1875 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 1876 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 1877 | ac_file=1 # Number of current file. |
| 1878 | ac_beg=1 # First line for current file. |
| 1879 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 1880 | ac_more_lines=: |
| 1881 | ac_sed_cmds="" |
| 1882 | while $ac_more_lines; do |
| 1883 | if test $ac_beg -gt 1; then |
| 1884 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 1885 | else |
| 1886 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 1887 | fi |
| 1888 | if test ! -s conftest.s$ac_file; then |
| 1889 | ac_more_lines=false |
| 1890 | rm -f conftest.s$ac_file |
| 1891 | else |
| 1892 | if test -z "$ac_sed_cmds"; then |
| 1893 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 1894 | else |
| 1895 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 1896 | fi |
| 1897 | ac_file=`expr $ac_file + 1` |
| 1898 | ac_beg=$ac_end |
| 1899 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 1900 | fi |
| 1901 | done |
| 1902 | if test -z "$ac_sed_cmds"; then |
| 1903 | ac_sed_cmds=cat |
| 1904 | fi |
| 1905 | EOF |
| 1906 | |
| 1907 | cat >> $CONFIG_STATUS <<EOF |
| 1908 | |
| 1909 | CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in"} |
| 1910 | EOF |
| 1911 | cat >> $CONFIG_STATUS <<\EOF |
| 1912 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 1913 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 1914 | case "$ac_file" in |
| 1915 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 1916 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 1917 | *) ac_file_in="${ac_file}.in" ;; |
| 1918 | esac |
| 1919 | |
| 1920 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 1921 | |
| 1922 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 1923 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 1924 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 1925 | # The file is in a subdirectory. |
| 1926 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 1927 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 1928 | # A "../" for each directory in $ac_dir_suffix. |
| 1929 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 1930 | else |
| 1931 | ac_dir_suffix= ac_dots= |
| 1932 | fi |
| 1933 | |
| 1934 | case "$ac_given_srcdir" in |
| 1935 | .) srcdir=. |
| 1936 | if test -z "$ac_dots"; then top_srcdir=. |
| 1937 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 1938 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 1939 | *) # Relative path. |
| 1940 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 1941 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 1942 | esac |
| 1943 | |
| 1944 | case "$ac_given_INSTALL" in |
| 1945 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 1946 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 1947 | esac |
| 1948 | |
| 1949 | echo creating "$ac_file" |
| 1950 | rm -f "$ac_file" |
| 1951 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 1952 | case "$ac_file" in |
| 1953 | *Makefile*) ac_comsub="1i\\ |
| 1954 | # $configure_input" ;; |
| 1955 | *) ac_comsub= ;; |
| 1956 | esac |
| 1957 | |
| 1958 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 1959 | sed -e "$ac_comsub |
| 1960 | s%@configure_input@%$configure_input%g |
| 1961 | s%@srcdir@%$srcdir%g |
| 1962 | s%@top_srcdir@%$top_srcdir%g |
| 1963 | s%@INSTALL@%$INSTALL%g |
| 1964 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 1965 | fi; done |
| 1966 | rm -f conftest.s* |
| 1967 | |
| 1968 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 1969 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 1970 | # |
| 1971 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 1972 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 1973 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
| 1974 | ac_dC='\3' |
| 1975 | ac_dD='%g' |
| 1976 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
| 1977 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 1978 | ac_uB='\([ ]\)%\1#\2define\3' |
| 1979 | ac_uC=' ' |
| 1980 | ac_uD='\4%g' |
| 1981 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 1982 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 1983 | ac_eB='$%\1#\2define\3' |
| 1984 | ac_eC=' ' |
| 1985 | ac_eD='%g' |
| 1986 | |
| 1987 | if test "${CONFIG_HEADERS+set}" != set; then |
| 1988 | EOF |
| 1989 | cat >> $CONFIG_STATUS <<EOF |
| 1990 | CONFIG_HEADERS="config.h" |
| 1991 | EOF |
| 1992 | cat >> $CONFIG_STATUS <<\EOF |
| 1993 | fi |
| 1994 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
| 1995 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 1996 | case "$ac_file" in |
| 1997 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 1998 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 1999 | *) ac_file_in="${ac_file}.in" ;; |
| 2000 | esac |
| 2001 | |
| 2002 | echo creating $ac_file |
| 2003 | |
| 2004 | rm -f conftest.frag conftest.in conftest.out |
| 2005 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 2006 | cat $ac_file_inputs > conftest.in |
| 2007 | |
| 2008 | EOF |
| 2009 | |
| 2010 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 2011 | # the proper values into config.h.in to produce config.h. And first: |
| 2012 | # Protect against being on the right side of a sed subst in config.status. |
| 2013 | # Protect against being in an unquoted here document in config.status. |
| 2014 | rm -f conftest.vals |
| 2015 | cat > conftest.hdr <<\EOF |
| 2016 | s/[\\&%]/\\&/g |
| 2017 | s%[\\$`]%\\&%g |
| 2018 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
| 2019 | s%ac_d%ac_u%gp |
| 2020 | s%ac_u%ac_e%gp |
| 2021 | EOF |
| 2022 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 2023 | rm -f conftest.hdr |
| 2024 | |
| 2025 | # This sed command replaces #undef with comments. This is necessary, for |
| 2026 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 2027 | # on some systems where configure will not decide to define it. |
| 2028 | cat >> conftest.vals <<\EOF |
| 2029 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 2030 | EOF |
| 2031 | |
| 2032 | # Break up conftest.vals because some shells have a limit on |
| 2033 | # the size of here documents, and old seds have small limits too. |
| 2034 | |
| 2035 | rm -f conftest.tail |
| 2036 | while : |
| 2037 | do |
| 2038 | ac_lines=`grep -c . conftest.vals` |
| 2039 | # grep -c gives empty output for an empty file on some AIX systems. |
| 2040 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 2041 | # Write a limited-size here document to conftest.frag. |
| 2042 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 2043 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 2044 | echo 'CEOF |
| 2045 | sed -f conftest.frag conftest.in > conftest.out |
| 2046 | rm -f conftest.in |
| 2047 | mv conftest.out conftest.in |
| 2048 | ' >> $CONFIG_STATUS |
| 2049 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 2050 | rm -f conftest.vals |
| 2051 | mv conftest.tail conftest.vals |
| 2052 | done |
| 2053 | rm -f conftest.vals |
| 2054 | |
| 2055 | cat >> $CONFIG_STATUS <<\EOF |
| 2056 | rm -f conftest.frag conftest.h |
| 2057 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
| 2058 | cat conftest.in >> conftest.h |
| 2059 | rm -f conftest.in |
| 2060 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
| 2061 | echo "$ac_file is unchanged" |
| 2062 | rm -f conftest.h |
| 2063 | else |
| 2064 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 2065 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 2066 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 2067 | # The file is in a subdirectory. |
| 2068 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 2069 | fi |
| 2070 | rm -f $ac_file |
| 2071 | mv conftest.h $ac_file |
| 2072 | fi |
| 2073 | fi; done |
| 2074 | |
| 2075 | EOF |
| 2076 | cat >> $CONFIG_STATUS <<EOF |
| 2077 | |
| 2078 | |
| 2079 | EOF |
| 2080 | cat >> $CONFIG_STATUS <<\EOF |
| 2081 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
| 2082 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile |
| 2083 | exit 0 |
| 2084 | EOF |
| 2085 | chmod +x $CONFIG_STATUS |
| 2086 | rm -fr confdefs* $ac_clean_files |
| 2087 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 2088 | |