configure (18099) | configure (55839) |
---|---|
1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. | 1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. |
4# Generated automatically using autoconf version 2.4 5# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. | 4# Generated automatically using autoconf version 2.13 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: --- 14 unchanged lines hidden (view full) --- 28program_transform_name=s,x,x, 29silent= 30site= 31srcdir= 32target=NONE 33verbose= 34x_includes=NONE 35x_libraries=NONE | 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: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: --- 14 unchanged lines hidden (view full) --- 28program_transform_name=s,x,x, 29silent= 30site= 31srcdir= 32target=NONE 33verbose= 34x_includes=NONE 35x_libraries=NONE |
36bindir='${exec_prefix}/bin' 37sbindir='${exec_prefix}/sbin' 38libexecdir='${exec_prefix}/libexec' 39datadir='${prefix}/share' 40sysconfdir='${prefix}/etc' 41sharedstatedir='${prefix}/com' 42localstatedir='${prefix}/var' 43libdir='${exec_prefix}/lib' 44includedir='${prefix}/include' 45oldincludedir='/usr/include' 46infodir='${prefix}/info' 47mandir='${prefix}/man' |
|
36 37# Initialize some other variables. 38subdirs= | 48 49# Initialize some other variables. 50subdirs= |
51MFLAGS= MAKEFLAGS= 52SHELL=${CONFIG_SHELL-/bin/sh} 53# Maximum number of lines to put in a shell here document. 54ac_max_here_lines=12 |
|
39 40ac_prev= 41for ac_option 42do 43 44 # If the previous option needs an argument, assign it. 45 if test -n "$ac_prev"; then 46 eval "$ac_prev=\$ac_option" --- 5 unchanged lines hidden (view full) --- 52 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 53 *) ac_optarg= ;; 54 esac 55 56 # Accept the important Cygnus configure options, so we can diagnose typos. 57 58 case "$ac_option" in 59 | 55 56ac_prev= 57for ac_option 58do 59 60 # If the previous option needs an argument, assign it. 61 if test -n "$ac_prev"; then 62 eval "$ac_prev=\$ac_option" --- 5 unchanged lines hidden (view full) --- 68 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 69 *) ac_optarg= ;; 70 esac 71 72 # Accept the important Cygnus configure options, so we can diagnose typos. 73 74 case "$ac_option" in 75 |
60 -build | --build | --buil | --bui | --bu | --b) | 76 -bindir | --bindir | --bindi | --bind | --bin | --bi) 77 ac_prev=bindir ;; 78 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 79 bindir="$ac_optarg" ;; 80 81 -build | --build | --buil | --bui | --bu) |
61 ac_prev=build ;; | 82 ac_prev=build ;; |
62 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*) | 83 -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
63 build="$ac_optarg" ;; 64 65 -cache-file | --cache-file | --cache-fil | --cache-fi \ 66 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 67 ac_prev=cache_file ;; 68 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 69 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 70 cache_file="$ac_optarg" ;; 71 | 84 build="$ac_optarg" ;; 85 86 -cache-file | --cache-file | --cache-fil | --cache-fi \ 87 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 88 ac_prev=cache_file ;; 89 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 90 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 91 cache_file="$ac_optarg" ;; 92 |
93 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 94 ac_prev=datadir ;; 95 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 96 | --da=*) 97 datadir="$ac_optarg" ;; 98 |
|
72 -disable-* | --disable-*) 73 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 74 # Reject names that are not valid shell variable names. 75 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 76 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 77 fi 78 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 79 eval "enable_${ac_feature}=no" ;; --- 34 unchanged lines hidden (view full) --- 114 --cache-file=FILE cache test results in FILE 115 --help print this message 116 --no-create do not create output files 117 --quiet, --silent do not print \`checking...' messages 118 --version print the version of autoconf that created configure 119Directory and file names: 120 --prefix=PREFIX install architecture-independent files in PREFIX 121 [$ac_default_prefix] | 99 -disable-* | --disable-*) 100 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 101 # Reject names that are not valid shell variable names. 102 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 103 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 104 fi 105 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 106 eval "enable_${ac_feature}=no" ;; --- 34 unchanged lines hidden (view full) --- 141 --cache-file=FILE cache test results in FILE 142 --help print this message 143 --no-create do not create output files 144 --quiet, --silent do not print \`checking...' messages 145 --version print the version of autoconf that created configure 146Directory and file names: 147 --prefix=PREFIX install architecture-independent files in PREFIX 148 [$ac_default_prefix] |
122 --exec-prefix=PREFIX install architecture-dependent files in PREFIX | 149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
123 [same as prefix] | 150 [same as prefix] |
151 --bindir=DIR user executables in DIR [EPREFIX/bin] 152 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 153 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 154 --datadir=DIR read-only architecture-independent data in DIR 155 [PREFIX/share] 156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 157 --sharedstatedir=DIR modifiable architecture-independent data in DIR 158 [PREFIX/com] 159 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 160 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 161 --includedir=DIR C header files in DIR [PREFIX/include] 162 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 163 --infodir=DIR info documentation in DIR [PREFIX/info] 164 --mandir=DIR man documentation in DIR [PREFIX/man] |
|
124 --srcdir=DIR find the sources in DIR [configure dir or ..] 125 --program-prefix=PREFIX prepend PREFIX to installed program names 126 --program-suffix=SUFFIX append SUFFIX to installed program names | 165 --srcdir=DIR find the sources in DIR [configure dir or ..] 166 --program-prefix=PREFIX prepend PREFIX to installed program names 167 --program-suffix=SUFFIX append SUFFIX to installed program names |
127 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | 168 --program-transform-name=PROGRAM 169 run sed PROGRAM on installed program names 170EOF 171 cat << EOF |
128Host type: 129 --build=BUILD configure for building on BUILD [BUILD=HOST] 130 --host=HOST configure for HOST [guessed] 131 --target=TARGET configure for TARGET [TARGET=HOST] 132Features and packages: 133 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 134 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 135 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 136 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 137 --x-includes=DIR X include files are in DIR 138 --x-libraries=DIR X library files are in DIR | 172Host type: 173 --build=BUILD configure for building on BUILD [BUILD=HOST] 174 --host=HOST configure for HOST [guessed] 175 --target=TARGET configure for TARGET [TARGET=HOST] 176Features and packages: 177 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 178 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 179 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 180 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 181 --x-includes=DIR X include files are in DIR 182 --x-libraries=DIR X library files are in DIR |
139--enable and --with options recognized:$ac_help | |
140EOF | 183EOF |
184 if test -n "$ac_help"; then 185 echo "--enable and --with options recognized:$ac_help" 186 fi |
|
141 exit 0 ;; 142 143 -host | --host | --hos | --ho) 144 ac_prev=host ;; 145 -host=* | --host=* | --hos=* | --ho=*) 146 host="$ac_optarg" ;; 147 | 187 exit 0 ;; 188 189 -host | --host | --hos | --ho) 190 ac_prev=host ;; 191 -host=* | --host=* | --hos=* | --ho=*) 192 host="$ac_optarg" ;; 193 |
194 -includedir | --includedir | --includedi | --included | --include \ 195 | --includ | --inclu | --incl | --inc) 196 ac_prev=includedir ;; 197 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 198 | --includ=* | --inclu=* | --incl=* | --inc=*) 199 includedir="$ac_optarg" ;; 200 201 -infodir | --infodir | --infodi | --infod | --info | --inf) 202 ac_prev=infodir ;; 203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 204 infodir="$ac_optarg" ;; 205 206 -libdir | --libdir | --libdi | --libd) 207 ac_prev=libdir ;; 208 -libdir=* | --libdir=* | --libdi=* | --libd=*) 209 libdir="$ac_optarg" ;; 210 211 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 212 | --libexe | --libex | --libe) 213 ac_prev=libexecdir ;; 214 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 215 | --libexe=* | --libex=* | --libe=*) 216 libexecdir="$ac_optarg" ;; 217 218 -localstatedir | --localstatedir | --localstatedi | --localstated \ 219 | --localstate | --localstat | --localsta | --localst \ 220 | --locals | --local | --loca | --loc | --lo) 221 ac_prev=localstatedir ;; 222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 223 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 224 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 225 localstatedir="$ac_optarg" ;; 226 227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 228 ac_prev=mandir ;; 229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 230 mandir="$ac_optarg" ;; 231 |
|
148 -nfp | --nfp | --nf) 149 # Obsolete; use --without-fp. 150 with_fp=no ;; 151 152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 153 | --no-cr | --no-c) 154 no_create=yes ;; 155 156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 158 no_recursion=yes ;; 159 | 232 -nfp | --nfp | --nf) 233 # Obsolete; use --without-fp. 234 with_fp=no ;; 235 236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 237 | --no-cr | --no-c) 238 no_create=yes ;; 239 240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 242 no_recursion=yes ;; 243 |
244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 246 | --oldin | --oldi | --old | --ol | --o) 247 ac_prev=oldincludedir ;; 248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 251 oldincludedir="$ac_optarg" ;; 252 |
|
160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 161 ac_prev=prefix ;; 162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 163 prefix="$ac_optarg" ;; 164 165 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 166 | --program-pre | --program-pr | --program-p) 167 ac_prev=program_prefix ;; --- 24 unchanged lines hidden (view full) --- 192 | --program-trans=* | --program-tran=* \ 193 | --progr-tra=* | --program-tr=* | --program-t=*) 194 program_transform_name="$ac_optarg" ;; 195 196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 197 | -silent | --silent | --silen | --sile | --sil) 198 silent=yes ;; 199 | 253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 254 ac_prev=prefix ;; 255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 256 prefix="$ac_optarg" ;; 257 258 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 259 | --program-pre | --program-pr | --program-p) 260 ac_prev=program_prefix ;; --- 24 unchanged lines hidden (view full) --- 285 | --program-trans=* | --program-tran=* \ 286 | --progr-tra=* | --program-tr=* | --program-t=*) 287 program_transform_name="$ac_optarg" ;; 288 289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 290 | -silent | --silent | --silen | --sile | --sil) 291 silent=yes ;; 292 |
293 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 294 ac_prev=sbindir ;; 295 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 296 | --sbi=* | --sb=*) 297 sbindir="$ac_optarg" ;; 298 299 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 300 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 301 | --sharedst | --shareds | --shared | --share | --shar \ 302 | --sha | --sh) 303 ac_prev=sharedstatedir ;; 304 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 305 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 306 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 307 | --sha=* | --sh=*) 308 sharedstatedir="$ac_optarg" ;; 309 |
|
200 -site | --site | --sit) 201 ac_prev=site ;; 202 -site=* | --site=* | --sit=*) 203 site="$ac_optarg" ;; 204 205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 206 ac_prev=srcdir ;; 207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 208 srcdir="$ac_optarg" ;; 209 | 310 -site | --site | --sit) 311 ac_prev=site ;; 312 -site=* | --site=* | --sit=*) 313 site="$ac_optarg" ;; 314 315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 316 ac_prev=srcdir ;; 317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 318 srcdir="$ac_optarg" ;; 319 |
320 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 321 | --syscon | --sysco | --sysc | --sys | --sy) 322 ac_prev=sysconfdir ;; 323 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 324 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 325 sysconfdir="$ac_optarg" ;; 326 |
|
210 -target | --target | --targe | --targ | --tar | --ta | --t) 211 ac_prev=target ;; 212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 213 target="$ac_optarg" ;; 214 215 -v | -verbose | --verbose | --verbos | --verbo | --verb) 216 verbose=yes ;; 217 218 -version | --version | --versio | --versi | --vers) | 327 -target | --target | --targe | --targ | --tar | --ta | --t) 328 ac_prev=target ;; 329 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 330 target="$ac_optarg" ;; 331 332 -v | -verbose | --verbose | --verbos | --verbo | --verb) 333 verbose=yes ;; 334 335 -version | --version | --versio | --versi | --vers) |
219 echo "configure generated by autoconf version 2.4" | 336 echo "configure generated by autoconf version 2.13" |
220 exit 0 ;; 221 222 -with-* | --with-*) 223 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 224 # Reject names that are not valid shell variable names. 225 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 226 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 227 fi --- 29 unchanged lines hidden (view full) --- 257 ac_prev=x_libraries ;; 258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 260 x_libraries="$ac_optarg" ;; 261 262 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 263 ;; 264 | 337 exit 0 ;; 338 339 -with-* | --with-*) 340 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 341 # Reject names that are not valid shell variable names. 342 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 343 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 344 fi --- 29 unchanged lines hidden (view full) --- 374 ac_prev=x_libraries ;; 375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 377 x_libraries="$ac_optarg" ;; 378 379 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 380 ;; 381 |
265 *) | 382 *) |
266 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 267 echo "configure: warning: $ac_option: invalid host type" 1>&2 268 fi 269 if test "x$nonopt" != xNONE; then 270 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 271 fi 272 nonopt="$ac_option" 273 ;; --- 39 unchanged lines hidden (view full) --- 313 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 314 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 315 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 316 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 317 esac 318done 319 320# NLS nuisances. | 383 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 384 echo "configure: warning: $ac_option: invalid host type" 1>&2 385 fi 386 if test "x$nonopt" != xNONE; then 387 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 388 fi 389 nonopt="$ac_option" 390 ;; --- 39 unchanged lines hidden (view full) --- 430 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 432 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 433 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 434 esac 435done 436 437# NLS nuisances. |
321# Only set LANG and LC_ALL to C if already set. 322# These must not be set unconditionally because not all systems understand 323# e.g. LANG=C (notably SCO). 324if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | 438# Only set these to C if already set. These must not be set unconditionally 439# because not all systems understand e.g. LANG=C (notably SCO). 440# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 441# Non-C LC_CTYPE values break the ctype check. |
325if test "${LANG+set}" = set; then LANG=C; export LANG; fi | 442if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
443if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 444if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 445if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
|
326 327# confdefs.h avoids OS command line length limits that DEFS can exceed. 328rm -rf conftest* confdefs.h 329# AIX cpp loses on an empty file, so make sure it contains at least a newline. 330echo > confdefs.h 331 332# A filename unique to this package, relative to the directory that 333# configure is in, which we can look for to find out if srcdir is correct. --- 43 unchanged lines hidden (view full) --- 377else 378 echo "creating cache $cache_file" 379 > $cache_file 380fi 381 382ac_ext=c 383# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 384ac_cpp='$CPP $CPPFLAGS' | 446 447# confdefs.h avoids OS command line length limits that DEFS can exceed. 448rm -rf conftest* confdefs.h 449# AIX cpp loses on an empty file, so make sure it contains at least a newline. 450echo > confdefs.h 451 452# A filename unique to this package, relative to the directory that 453# configure is in, which we can look for to find out if srcdir is correct. --- 43 unchanged lines hidden (view full) --- 497else 498 echo "creating cache $cache_file" 499 > $cache_file 500fi 501 502ac_ext=c 503# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 504ac_cpp='$CPP $CPPFLAGS' |
385ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 386ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 505ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 506ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 507cross_compiling=$ac_cv_prog_cc_cross |
387 | 508 |
509ac_exeext= 510ac_objext=o |
|
388if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 389 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 390 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 391 ac_n= ac_c=' 392' ac_t=' ' 393 else 394 ac_n=-n ac_c= ac_t= 395 fi 396else 397 ac_n= ac_c='\c' ac_t= 398fi 399 400 | 511if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 512 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 513 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 514 ac_n= ac_c=' 515' ac_t=' ' 516 else 517 ac_n=-n ac_c= ac_t= 518 fi 519else 520 ac_n= ac_c='\c' ac_t= 521fi 522 523 |
401if test "x$prefix" = xNONE; then 402echo $ac_n "checking for prefix by ""... $ac_c" 1>&6 403# Extract the first word of "grops", so it can be a program name with args. 404set dummy grops; ac_word=$2 | 524# Extract the first word of "gcc", so it can be a program name with args. 525set dummy gcc; ac_word=$2 |
405echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 526echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
406if eval "test \"`echo '$''{'ac_cv_path_GROPS'+set}'`\" = set"; then | 527echo "configure:528: checking for $ac_word" >&5 528if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
407 echo $ac_n "(cached) $ac_c" 1>&6 408else | 529 echo $ac_n "(cached) $ac_c" 1>&6 530else |
409 case "$GROPS" in 410 /*) 411 ac_cv_path_GROPS="$GROPS" # Let the user override the test with a path. 412 ;; 413 *) 414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 415 for ac_dir in $PATH; do | 531 if test -n "$CC"; then 532 ac_cv_prog_CC="$CC" # Let the user override the test. 533else 534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 535 ac_dummy="$PATH" 536 for ac_dir in $ac_dummy; do |
416 test -z "$ac_dir" && ac_dir=. 417 if test -f $ac_dir/$ac_word; then | 537 test -z "$ac_dir" && ac_dir=. 538 if test -f $ac_dir/$ac_word; then |
418 ac_cv_path_GROPS="$ac_dir/$ac_word" | 539 ac_cv_prog_CC="gcc" |
419 break 420 fi 421 done 422 IFS="$ac_save_ifs" | 540 break 541 fi 542 done 543 IFS="$ac_save_ifs" |
423 ;; 424esac | |
425fi | 544fi |
426GROPS="$ac_cv_path_GROPS" 427if test -n "$GROPS"; then 428 echo "$ac_t""$GROPS" 1>&6 | 545fi 546CC="$ac_cv_prog_CC" 547if test -n "$CC"; then 548 echo "$ac_t""$CC" 1>&6 |
429else 430 echo "$ac_t""no" 1>&6 431fi 432 | 549else 550 echo "$ac_t""no" 1>&6 551fi 552 |
433 if test -n "$ac_cv_path_GROPS"; then 434 prefix=`echo $ac_cv_path_GROPS|sed 's%/[^/][^/]*//*[^/][^/]*$%%'` | 553if test -z "$CC"; then 554 # Extract the first word of "cc", so it can be a program name with args. 555set dummy cc; ac_word=$2 556echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 557echo "configure:558: checking for $ac_word" >&5 558if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 559 echo $ac_n "(cached) $ac_c" 1>&6 560else 561 if test -n "$CC"; then 562 ac_cv_prog_CC="$CC" # Let the user override the test. 563else 564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 565 ac_prog_rejected=no 566 ac_dummy="$PATH" 567 for ac_dir in $ac_dummy; 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" 579if 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="$@" |
435 fi 436fi | 591 fi 592fi |
593fi 594fi 595CC="$ac_cv_prog_CC" 596if test -n "$CC"; then 597 echo "$ac_t""$CC" 1>&6 598else 599 echo "$ac_t""no" 1>&6 600fi |
|
437 | 601 |
438# Extract the first word of "gcc", so it can be a program name with args. 439set dummy gcc; ac_word=$2 | 602 if test -z "$CC"; then 603 case "`uname -s`" in 604 *win32* | *WIN32*) 605 # Extract the first word of "cl", so it can be a program name with args. 606set dummy cl; ac_word=$2 |
440echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 607echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
608echo "configure:609: checking for $ac_word" >&5 |
|
441if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 442 echo $ac_n "(cached) $ac_c" 1>&6 443else 444 if test -n "$CC"; then 445 ac_cv_prog_CC="$CC" # Let the user override the test. 446else | 609if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 610 echo $ac_n "(cached) $ac_c" 1>&6 611else 612 if test -n "$CC"; then 613 ac_cv_prog_CC="$CC" # Let the user override the test. 614else |
447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 448 for ac_dir in $PATH; do | 615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 616 ac_dummy="$PATH" 617 for ac_dir in $ac_dummy; do |
449 test -z "$ac_dir" && ac_dir=. 450 if test -f $ac_dir/$ac_word; then | 618 test -z "$ac_dir" && ac_dir=. 619 if test -f $ac_dir/$ac_word; then |
451 ac_cv_prog_CC="gcc" | 620 ac_cv_prog_CC="cl" |
452 break 453 fi 454 done 455 IFS="$ac_save_ifs" | 621 break 622 fi 623 done 624 IFS="$ac_save_ifs" |
456 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc" | |
457fi 458fi 459CC="$ac_cv_prog_CC" 460if test -n "$CC"; then 461 echo "$ac_t""$CC" 1>&6 462else 463 echo "$ac_t""no" 1>&6 464fi | 625fi 626fi 627CC="$ac_cv_prog_CC" 628if test -n "$CC"; then 629 echo "$ac_t""$CC" 1>&6 630else 631 echo "$ac_t""no" 1>&6 632fi |
633 ;; 634 esac 635 fi 636 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 637fi |
|
465 | 638 |
639echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 640echo "configure:641: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
|
466 | 641 |
642ac_ext=c 643# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 644ac_cpp='$CPP $CPPFLAGS' 645ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 646ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 647cross_compiling=$ac_cv_prog_cc_cross 648 649cat > conftest.$ac_ext << EOF 650 651#line 652 "configure" 652#include "confdefs.h" 653 654main(){return(0);} 655EOF 656if { (eval echo configure:657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 657 ac_cv_prog_cc_works=yes 658 # If we can't run a trivial program, we are probably using a cross compiler. 659 if (./conftest; exit) 2>/dev/null; then 660 ac_cv_prog_cc_cross=no 661 else 662 ac_cv_prog_cc_cross=yes 663 fi 664else 665 echo "configure: failed program was:" >&5 666 cat conftest.$ac_ext >&5 667 ac_cv_prog_cc_works=no 668fi 669rm -fr conftest* 670ac_ext=c 671# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 672ac_cpp='$CPP $CPPFLAGS' 673ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 674ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 675cross_compiling=$ac_cv_prog_cc_cross 676 677echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 678if test $ac_cv_prog_cc_works = no; then 679 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 680fi 681echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 682echo "configure:683: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 683echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 684cross_compiling=$ac_cv_prog_cc_cross 685 |
|
467echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 686echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
687echo "configure:688: checking whether we are using GNU C" >&5 |
|
468if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 469 echo $ac_n "(cached) $ac_c" 1>&6 470else 471 cat > conftest.c <<EOF 472#ifdef __GNUC__ 473 yes; 474#endif 475EOF | 688if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 689 echo $ac_n "(cached) $ac_c" 1>&6 690else 691 cat > conftest.c <<EOF 692#ifdef __GNUC__ 693 yes; 694#endif 695EOF |
476if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then | 696if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
477 ac_cv_prog_gcc=yes 478else 479 ac_cv_prog_gcc=no 480fi 481fi | 697 ac_cv_prog_gcc=yes 698else 699 ac_cv_prog_gcc=no 700fi 701fi |
702 |
|
482echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | 703echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
704 |
|
483if test $ac_cv_prog_gcc = yes; then 484 GCC=yes | 705if test $ac_cv_prog_gcc = yes; then 706 GCC=yes |
485 if test "${CFLAGS+set}" != set; then 486 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 487if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then | 707else 708 GCC= 709fi 710 711ac_test_CFLAGS="${CFLAGS+set}" 712ac_save_CFLAGS="$CFLAGS" 713CFLAGS= 714echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 715echo "configure:716: checking whether ${CC-cc} accepts -g" >&5 716if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
488 echo $ac_n "(cached) $ac_c" 1>&6 489else 490 echo 'void f(){}' > conftest.c 491if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 717 echo $ac_n "(cached) $ac_c" 1>&6 718else 719 echo 'void f(){}' > conftest.c 720if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
492 ac_cv_prog_gcc_g=yes | 721 ac_cv_prog_cc_g=yes |
493else | 722else |
494 ac_cv_prog_gcc_g=no | 723 ac_cv_prog_cc_g=no |
495fi 496rm -f conftest* 497 498fi | 724fi 725rm -f conftest* 726 727fi |
499 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 500 if test $ac_cv_prog_gcc_g = yes; then 501 CFLAGS="-g -O" 502 else 503 CFLAGS="-O" 504 fi | 728 729echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 730if test "$ac_test_CFLAGS" = set; then 731 CFLAGS="$ac_save_CFLAGS" 732elif test $ac_cv_prog_cc_g = yes; then 733 if test "$GCC" = yes; then 734 CFLAGS="-g -O2" 735 else 736 CFLAGS="-g" |
505 fi 506else | 737 fi 738else |
507 GCC= 508 test "${CFLAGS+set}" = set || CFLAGS="-g" | 739 if test "$GCC" = yes; then 740 CFLAGS="-O2" 741 else 742 CFLAGS= 743 fi |
509fi 510 | 744fi 745 |
511for ac_prog in $CCC c++ g++ gcc CC cxx | 746for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
512do 513# Extract the first word of "$ac_prog", so it can be a program name with args. 514set dummy $ac_prog; ac_word=$2 515echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 747do 748# Extract the first word of "$ac_prog", so it can be a program name with args. 749set dummy $ac_prog; ac_word=$2 750echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
751echo "configure:752: checking for $ac_word" >&5 |
|
516if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 517 echo $ac_n "(cached) $ac_c" 1>&6 518else 519 if test -n "$CXX"; then 520 ac_cv_prog_CXX="$CXX" # Let the user override the test. 521else | 752if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 753 echo $ac_n "(cached) $ac_c" 1>&6 754else 755 if test -n "$CXX"; then 756 ac_cv_prog_CXX="$CXX" # Let the user override the test. 757else |
522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 523 for ac_dir in $PATH; do | 758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 759 ac_dummy="$PATH" 760 for ac_dir in $ac_dummy; do |
524 test -z "$ac_dir" && ac_dir=. 525 if test -f $ac_dir/$ac_word; then 526 ac_cv_prog_CXX="$ac_prog" 527 break 528 fi 529 done 530 IFS="$ac_save_ifs" 531fi --- 5 unchanged lines hidden (view full) --- 537 echo "$ac_t""no" 1>&6 538fi 539 540test -n "$CXX" && break 541done 542test -n "$CXX" || CXX="gcc" 543 544 | 761 test -z "$ac_dir" && ac_dir=. 762 if test -f $ac_dir/$ac_word; then 763 ac_cv_prog_CXX="$ac_prog" 764 break 765 fi 766 done 767 IFS="$ac_save_ifs" 768fi --- 5 unchanged lines hidden (view full) --- 774 echo "$ac_t""no" 1>&6 775fi 776 777test -n "$CXX" && break 778done 779test -n "$CXX" || CXX="gcc" 780 781 |
782echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 783echo "configure:784: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 784 785ac_ext=C 786# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 787ac_cpp='$CXXCPP $CPPFLAGS' 788ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 789ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 790cross_compiling=$ac_cv_prog_cxx_cross 791 792cat > conftest.$ac_ext << EOF 793 794#line 795 "configure" 795#include "confdefs.h" 796 797int main(){return(0);} 798EOF 799if { (eval echo configure:800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 800 ac_cv_prog_cxx_works=yes 801 # If we can't run a trivial program, we are probably using a cross compiler. 802 if (./conftest; exit) 2>/dev/null; then 803 ac_cv_prog_cxx_cross=no 804 else 805 ac_cv_prog_cxx_cross=yes 806 fi 807else 808 echo "configure: failed program was:" >&5 809 cat conftest.$ac_ext >&5 810 ac_cv_prog_cxx_works=no 811fi 812rm -fr conftest* 813ac_ext=c 814# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 815ac_cpp='$CPP $CPPFLAGS' 816ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 817ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 818cross_compiling=$ac_cv_prog_cc_cross 819 820echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 821if test $ac_cv_prog_cxx_works = no; then 822 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 823fi 824echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 825echo "configure:826: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 826echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 827cross_compiling=$ac_cv_prog_cxx_cross 828 |
|
545echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | 829echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
830echo "configure:831: checking whether we are using GNU C++" >&5 |
|
546if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 547 echo $ac_n "(cached) $ac_c" 1>&6 548else 549 cat > conftest.C <<EOF 550#ifdef __GNUC__ 551 yes; 552#endif 553EOF | 831if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 832 echo $ac_n "(cached) $ac_c" 1>&6 833else 834 cat > conftest.C <<EOF 835#ifdef __GNUC__ 836 yes; 837#endif 838EOF |
554if ${CXX-g++} -E conftest.C 2>&5 | egrep yes >/dev/null 2>&1; then | 839if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
555 ac_cv_prog_gxx=yes 556else 557 ac_cv_prog_gxx=no 558fi 559fi | 840 ac_cv_prog_gxx=yes 841else 842 ac_cv_prog_gxx=no 843fi 844fi |
845 |
|
560echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | 846echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
847 |
|
561if test $ac_cv_prog_gxx = yes; then 562 GXX=yes | 848if test $ac_cv_prog_gxx = yes; then 849 GXX=yes |
563 if test "${CXXFLAGS+set}" != set; then 564 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 565if eval "test \"`echo '$''{'ac_cv_prog_gxx_g'+set}'`\" = set"; then | 850else 851 GXX= 852fi 853 854ac_test_CXXFLAGS="${CXXFLAGS+set}" 855ac_save_CXXFLAGS="$CXXFLAGS" 856CXXFLAGS= 857echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 858echo "configure:859: checking whether ${CXX-g++} accepts -g" >&5 859if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
566 echo $ac_n "(cached) $ac_c" 1>&6 567else 568 echo 'void f(){}' > conftest.cc 569if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | 860 echo $ac_n "(cached) $ac_c" 1>&6 861else 862 echo 'void f(){}' > conftest.cc 863if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
570 ac_cv_prog_gxx_g=yes | 864 ac_cv_prog_cxx_g=yes |
571else | 865else |
572 ac_cv_prog_gxx_g=no | 866 ac_cv_prog_cxx_g=no |
573fi 574rm -f conftest* 575 576fi | 867fi 868rm -f conftest* 869 870fi |
577 echo "$ac_t""$ac_cv_prog_gxx_g" 1>&6 578 if test $ac_cv_prog_gxx_g = yes; then 579 CXXFLAGS="-g -O" 580 else 581 CXXFLAGS="-O" 582 fi | 871 872echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 873if test "$ac_test_CXXFLAGS" = set; then 874 CXXFLAGS="$ac_save_CXXFLAGS" 875elif test $ac_cv_prog_cxx_g = yes; then 876 if test "$GXX" = yes; then 877 CXXFLAGS="-g -O2" 878 else 879 CXXFLAGS="-g" |
583 fi 584else | 880 fi 881else |
585 GXX= 586 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" | 882 if test "$GXX" = yes; then 883 CXXFLAGS="-O2" 884 else 885 CXXFLAGS= 886 fi |
587fi 588 | 887fi 888 |
589# If we cannot run a trivial program, we must be cross compiling. 590echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 591if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then 592 echo $ac_n "(cached) $ac_c" 1>&6 593else 594 if test "$cross_compiling" = yes; then 595 ac_cv_c_cross=yes 596else 597cat > conftest.$ac_ext <<EOF 598#line 599 "configure" 599#include "confdefs.h" 600main(){return(0);} 601EOF 602eval $ac_link 603if test -s conftest && (./conftest; exit) 2>/dev/null; then 604 ac_cv_c_cross=no 605else 606 ac_cv_c_cross=yes 607fi 608fi 609rm -fr conftest* 610fi 611cross_compiling=$ac_cv_c_cross 612echo "$ac_t""$ac_cv_c_cross" 1>&6 | |
613 614 615 616 617ac_ext=C 618# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 619ac_cpp='$CXXCPP $CPPFLAGS' | 889 890 891 892 893ac_ext=C 894# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 895ac_cpp='$CXXCPP $CPPFLAGS' |
620ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 621ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 896ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 897ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 898cross_compiling=$ac_cv_prog_cxx_cross |
622 623if test "$cross_compiling" = no; then | 899 900if test "$cross_compiling" = no; then |
624echo $ac_n "checking that C++ compiler can compile simple program""... $ac_c" 1>&6 | 901 echo $ac_n "checking that C++ compiler can compile simple program""... $ac_c" 1>&6 902echo "configure:903: checking that C++ compiler can compile simple program" >&5 |
625fi 626if test "$cross_compiling" = yes; then 627 : 628else | 903fi 904if test "$cross_compiling" = yes; then 905 : 906else |
629cat > conftest.$ac_ext < | 907 cat > conftest.$ac_ext <<EOF 908#line 909 "configure" |
631#include "confdefs.h" 632#ifdef __cplusplus 633extern "C" void exit(int); 634#endif 635int main() { return 0; } 636EOF | 909#include "confdefs.h" 910#ifdef __cplusplus 911extern "C" void exit(int); 912#endif 913int main() { return 0; } 914EOF |
637eval $ac_link 638if test -s conftest && (./conftest; exit) 2>/dev/null; then | 915if { (eval echo configure:916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 916then |
639 echo "$ac_t""yes" 1>&6 640else | 917 echo "$ac_t""yes" 1>&6 918else |
641 echo "$ac_t""no" 1>&6 642{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; } | 919 echo "configure: failed program was:" >&5 920 cat conftest.$ac_ext >&5 921 rm -fr conftest* 922 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; } |
643fi | 923fi |
644fi | |
645rm -fr conftest* | 924rm -fr conftest* |
925fi 926 |
|
646if test "$cross_compiling" = no; then | 927if test "$cross_compiling" = no; then |
647echo $ac_n "checking that C++ static constructors and destructors are called""... $ac_c" 1>&6 | 928 echo $ac_n "checking that C++ static constructors and destructors are called""... $ac_c" 1>&6 929echo "configure:930: checking that C++ static constructors and destructors are called" >&5 |
648fi 649if test "$cross_compiling" = yes; then 650 : 651else | 930fi 931if test "$cross_compiling" = yes; then 932 : 933else |
652cat > conftest.$ac_ext < | 934 cat > conftest.$ac_ext <<EOF 935#line 936 "configure" |
654#include "confdefs.h" 655#ifdef __cplusplus 656extern "C" void exit(int); 657#endif 658 659extern "C" { 660 void _exit(int); 661} 662int i; 663struct A { 664 char dummy; 665 A() { i = 1; } 666 ~A() { if (i == 1) _exit(0); } 667}; 668A a; 669int main() { return 1; } 670 671EOF | 936#include "confdefs.h" 937#ifdef __cplusplus 938extern "C" void exit(int); 939#endif 940 941extern "C" { 942 void _exit(int); 943} 944int i; 945struct A { 946 char dummy; 947 A() { i = 1; } 948 ~A() { if (i == 1) _exit(0); } 949}; 950A a; 951int main() { return 1; } 952 953EOF |
672eval $ac_link 673if test -s conftest && (./conftest; exit) 2>/dev/null; then | 954if { (eval echo configure:955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 955then |
674 echo "$ac_t""yes" 1>&6 675else | 956 echo "$ac_t""yes" 1>&6 957else |
676 echo "$ac_t""no" 1>&6 677{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; } | 958 echo "configure: failed program was:" >&5 959 cat conftest.$ac_ext >&5 960 rm -fr conftest* 961 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; } |
678fi | 962fi |
679fi | |
680rm -fr conftest* | 963rm -fr conftest* |
964fi 965 |
|
681echo $ac_n "checking that header files support C++""... $ac_c" 1>&6 | 966echo $ac_n "checking that header files support C++""... $ac_c" 1>&6 |
967echo "configure:968: checking that header files support C++" >&5 |
|
682cat > conftest.$ac_ext <<EOF | 968cat > conftest.$ac_ext <<EOF |
683#line 684 "configure" | 969#line 970 "configure" |
684#include "confdefs.h" 685#include <stdio.h> | 970#include "confdefs.h" 971#include <stdio.h> |
686int main() { return 0; } 687int t() { | 972int main() { |
688fopen(0, 0); 689; return 0; } 690EOF | 973fopen(0, 0); 974; return 0; } 975EOF |
691if eval $ac_link; then | 976if { (eval echo configure:977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
692 rm -rf conftest* 693 echo "$ac_t""yes" 1>&6 694else | 977 rm -rf conftest* 978 echo "$ac_t""yes" 1>&6 979else |
980 echo "configure: failed program was:" >&5 981 cat conftest.$ac_ext >&5 |
|
695 rm -rf conftest* | 982 rm -rf conftest* |
696 echo "$ac_t""no" 1>&6 697{ echo "configure: error: header files do not support C++ (if you are using a version of gcc/g++ earlier than 2.5, you should install libg++)" 1>&2; exit 1; } | 983 echo "$ac_t""no" 1>&6;{ echo "configure: error: header files do not support C++ (if you are using a version of gcc/g++ earlier than 2.5, you should install libg++)" 1>&2; exit 1; } |
698fi 699rm -f conftest* | 984fi 985rm -f conftest* |
700 | |
701ac_ext=c 702# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 703ac_cpp='$CPP $CPPFLAGS' | 986ac_ext=c 987# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 988ac_cpp='$CPP $CPPFLAGS' |
704ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 705ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 989ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 990ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 991cross_compiling=$ac_cv_prog_cc_cross |
706 707 | 992 993 |
708if test -z "$PSPRINT" 709then | 994if test -z "$PSPRINT"; then |
710 for ac_prog in lpr 711do 712# Extract the first word of "$ac_prog", so it can be a program name with args. 713set dummy $ac_prog; ac_word=$2 714echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 995 for ac_prog in lpr 996do 997# Extract the first word of "$ac_prog", so it can be a program name with args. 998set dummy $ac_prog; ac_word=$2 999echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1000echo "configure:1001: checking for $ac_word" >&5 |
|
715if eval "test \"`echo '$''{'ac_cv_prog_LPR'+set}'`\" = set"; then 716 echo $ac_n "(cached) $ac_c" 1>&6 717else 718 if test -n "$LPR"; then 719 ac_cv_prog_LPR="$LPR" # Let the user override the test. 720else | 1001if eval "test \"`echo '$''{'ac_cv_prog_LPR'+set}'`\" = set"; then 1002 echo $ac_n "(cached) $ac_c" 1>&6 1003else 1004 if test -n "$LPR"; then 1005 ac_cv_prog_LPR="$LPR" # Let the user override the test. 1006else |
721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 722 for ac_dir in $PATH; do | 1007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1008 ac_dummy="$PATH" 1009 for ac_dir in $ac_dummy; do |
723 test -z "$ac_dir" && ac_dir=. 724 if test -f $ac_dir/$ac_word; then 725 ac_cv_prog_LPR="$ac_prog" 726 break 727 fi 728 done 729 IFS="$ac_save_ifs" 730fi --- 8 unchanged lines hidden (view full) --- 739test -n "$LPR" && break 740done 741 742 for ac_prog in lp 743do 744# Extract the first word of "$ac_prog", so it can be a program name with args. 745set dummy $ac_prog; ac_word=$2 746echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1010 test -z "$ac_dir" && ac_dir=. 1011 if test -f $ac_dir/$ac_word; then 1012 ac_cv_prog_LPR="$ac_prog" 1013 break 1014 fi 1015 done 1016 IFS="$ac_save_ifs" 1017fi --- 8 unchanged lines hidden (view full) --- 1026test -n "$LPR" && break 1027done 1028 1029 for ac_prog in lp 1030do 1031# Extract the first word of "$ac_prog", so it can be a program name with args. 1032set dummy $ac_prog; ac_word=$2 1033echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1034echo "configure:1035: checking for $ac_word" >&5 |
|
747if eval "test \"`echo '$''{'ac_cv_prog_LP'+set}'`\" = set"; then 748 echo $ac_n "(cached) $ac_c" 1>&6 749else 750 if test -n "$LP"; then 751 ac_cv_prog_LP="$LP" # Let the user override the test. 752else | 1035if eval "test \"`echo '$''{'ac_cv_prog_LP'+set}'`\" = set"; then 1036 echo $ac_n "(cached) $ac_c" 1>&6 1037else 1038 if test -n "$LP"; then 1039 ac_cv_prog_LP="$LP" # Let the user override the test. 1040else |
753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 754 for ac_dir in $PATH; do | 1041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1042 ac_dummy="$PATH" 1043 for ac_dir in $ac_dummy; do |
755 test -z "$ac_dir" && ac_dir=. 756 if test -f $ac_dir/$ac_word; then 757 ac_cv_prog_LP="$ac_prog" 758 break 759 fi 760 done 761 IFS="$ac_save_ifs" 762fi 763fi 764LP="$ac_cv_prog_LP" 765if test -n "$LP"; then 766 echo "$ac_t""$LP" 1>&6 767else 768 echo "$ac_t""no" 1>&6 769fi 770 771test -n "$LP" && break 772done 773 | 1044 test -z "$ac_dir" && ac_dir=. 1045 if test -f $ac_dir/$ac_word; then 1046 ac_cv_prog_LP="$ac_prog" 1047 break 1048 fi 1049 done 1050 IFS="$ac_save_ifs" 1051fi 1052fi 1053LP="$ac_cv_prog_LP" 1054if test -n "$LP"; then 1055 echo "$ac_t""$LP" 1>&6 1056else 1057 echo "$ac_t""no" 1>&6 1058fi 1059 1060test -n "$LP" && break 1061done 1062 |
774 if test -n "$LPR" && test -n "$LP" 775 then | 1063 if test -n "$LPR" && test -n "$LP"; then |
776 # HP-UX provides an lpr command that emulates lpr using lp, 777 # but it doesn't have lpq; in this case we want to use lp 778 # rather than lpr. 779 for ac_prog in lpq 780do 781# Extract the first word of "$ac_prog", so it can be a program name with args. 782set dummy $ac_prog; ac_word=$2 783echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1064 # HP-UX provides an lpr command that emulates lpr using lp, 1065 # but it doesn't have lpq; in this case we want to use lp 1066 # rather than lpr. 1067 for ac_prog in lpq 1068do 1069# Extract the first word of "$ac_prog", so it can be a program name with args. 1070set dummy $ac_prog; ac_word=$2 1071echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1072echo "configure:1073: checking for $ac_word" >&5 |
|
784if eval "test \"`echo '$''{'ac_cv_prog_LPQ'+set}'`\" = set"; then 785 echo $ac_n "(cached) $ac_c" 1>&6 786else 787 if test -n "$LPQ"; then 788 ac_cv_prog_LPQ="$LPQ" # Let the user override the test. 789else | 1073if eval "test \"`echo '$''{'ac_cv_prog_LPQ'+set}'`\" = set"; then 1074 echo $ac_n "(cached) $ac_c" 1>&6 1075else 1076 if test -n "$LPQ"; then 1077 ac_cv_prog_LPQ="$LPQ" # Let the user override the test. 1078else |
790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 791 for ac_dir in $PATH; do | 1079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1080 ac_dummy="$PATH" 1081 for ac_dir in $ac_dummy; do |
792 test -z "$ac_dir" && ac_dir=. 793 if test -f $ac_dir/$ac_word; then 794 ac_cv_prog_LPQ="$ac_prog" 795 break 796 fi 797 done 798 IFS="$ac_save_ifs" 799fi --- 5 unchanged lines hidden (view full) --- 805 echo "$ac_t""no" 1>&6 806fi 807 808test -n "$LPQ" && break 809done 810 811 test -n "$LPQ" || LPR= 812 fi | 1082 test -z "$ac_dir" && ac_dir=. 1083 if test -f $ac_dir/$ac_word; then 1084 ac_cv_prog_LPQ="$ac_prog" 1085 break 1086 fi 1087 done 1088 IFS="$ac_save_ifs" 1089fi --- 5 unchanged lines hidden (view full) --- 1095 echo "$ac_t""no" 1>&6 1096fi 1097 1098test -n "$LPQ" && break 1099done 1100 1101 test -n "$LPQ" || LPR= 1102 fi |
813 if test -n "$LPR" 814 then | 1103 if test -n "$LPR"; then |
815 PSPRINT="$LPR" | 1104 PSPRINT="$LPR" |
816 elif test -n "$LP" 817 then | 1105 elif test -n "$LP"; then |
818 PSPRINT="$LP" 819 fi 820fi 821 822echo $ac_n "checking for command to use for printing PostScript files""... $ac_c" 1>&6 | 1106 PSPRINT="$LP" 1107 fi 1108fi 1109 1110echo $ac_n "checking for command to use for printing PostScript files""... $ac_c" 1>&6 |
1111echo "configure:1112: checking for command to use for printing PostScript files" >&5 |
|
823echo "$ac_t""$PSPRINT" 1>&6 824# Figure out DVIPRINT from PSPRINT. 825echo $ac_n "checking for command to use for printing dvi files""... $ac_c" 1>&6 | 1112echo "$ac_t""$PSPRINT" 1>&6 1113# Figure out DVIPRINT from PSPRINT. 1114echo $ac_n "checking for command to use for printing dvi files""... $ac_c" 1>&6 |
826if test -n "$PSPRINT" && test -z "$DVIPRINT" 827then 828 if test "X$PSPRINT" = "Xlpr" 829 then | 1115echo "configure:1116: checking for command to use for printing dvi files" >&5 1116if test -n "$PSPRINT" && test -z "$DVIPRINT"; then 1117 if test "X$PSPRINT" = "Xlpr"; then |
830 DVIPRINT="lpr -d" 831 else 832 DVIPRINT="$PSPRINT" 833 fi 834fi 835 836echo "$ac_t""$DVIPRINT" 1>&6 837# Extract the first word of "perl", so it can be a program name with args. 838set dummy perl; ac_word=$2 839echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1118 DVIPRINT="lpr -d" 1119 else 1120 DVIPRINT="$PSPRINT" 1121 fi 1122fi 1123 1124echo "$ac_t""$DVIPRINT" 1>&6 1125# Extract the first word of "perl", so it can be a program name with args. 1126set dummy perl; ac_word=$2 1127echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1128echo "configure:1129: checking for $ac_word" >&5 |
|
840if eval "test \"`echo '$''{'ac_cv_path_PERLPATH'+set}'`\" = set"; then 841 echo $ac_n "(cached) $ac_c" 1>&6 842else 843 case "$PERLPATH" in 844 /*) 845 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path. 846 ;; | 1129if eval "test \"`echo '$''{'ac_cv_path_PERLPATH'+set}'`\" = set"; then 1130 echo $ac_n "(cached) $ac_c" 1>&6 1131else 1132 case "$PERLPATH" in 1133 /*) 1134 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path. 1135 ;; |
1136 ?:/*) 1137 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a dos path. 1138 ;; |
|
847 *) | 1139 *) |
848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 849 for ac_dir in $PATH; do | 1140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1141 ac_dummy="$PATH" 1142 for ac_dir in $ac_dummy; do |
850 test -z "$ac_dir" && ac_dir=. 851 if test -f $ac_dir/$ac_word; then 852 ac_cv_path_PERLPATH="$ac_dir/$ac_word" 853 break 854 fi 855 done 856 IFS="$ac_save_ifs" 857 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl" --- 7 unchanged lines hidden (view full) --- 865 echo "$ac_t""no" 1>&6 866fi 867 868for ac_prog in byacc 'bison -y' 869do 870# Extract the first word of "$ac_prog", so it can be a program name with args. 871set dummy $ac_prog; ac_word=$2 872echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1143 test -z "$ac_dir" && ac_dir=. 1144 if test -f $ac_dir/$ac_word; then 1145 ac_cv_path_PERLPATH="$ac_dir/$ac_word" 1146 break 1147 fi 1148 done 1149 IFS="$ac_save_ifs" 1150 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl" --- 7 unchanged lines hidden (view full) --- 1158 echo "$ac_t""no" 1>&6 1159fi 1160 1161for ac_prog in byacc 'bison -y' 1162do 1163# Extract the first word of "$ac_prog", so it can be a program name with args. 1164set dummy $ac_prog; ac_word=$2 1165echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1166echo "configure:1167: checking for $ac_word" >&5 |
|
873if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 874 echo $ac_n "(cached) $ac_c" 1>&6 875else 876 if test -n "$YACC"; then 877 ac_cv_prog_YACC="$YACC" # Let the user override the test. 878else | 1167if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 1168 echo $ac_n "(cached) $ac_c" 1>&6 1169else 1170 if test -n "$YACC"; then 1171 ac_cv_prog_YACC="$YACC" # Let the user override the test. 1172else |
879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 880 for ac_dir in $PATH; do | 1173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1174 ac_dummy="$PATH" 1175 for ac_dir in $ac_dummy; do |
881 test -z "$ac_dir" && ac_dir=. 882 if test -f $ac_dir/$ac_word; then 883 ac_cv_prog_YACC="$ac_prog" 884 break 885 fi 886 done 887 IFS="$ac_save_ifs" 888fi --- 7 unchanged lines hidden (view full) --- 896 897test -n "$YACC" && break 898done 899test -n "$YACC" || YACC="yacc" 900 901# Extract the first word of "ranlib", so it can be a program name with args. 902set dummy ranlib; ac_word=$2 903echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1176 test -z "$ac_dir" && ac_dir=. 1177 if test -f $ac_dir/$ac_word; then 1178 ac_cv_prog_YACC="$ac_prog" 1179 break 1180 fi 1181 done 1182 IFS="$ac_save_ifs" 1183fi --- 7 unchanged lines hidden (view full) --- 1191 1192test -n "$YACC" && break 1193done 1194test -n "$YACC" || YACC="yacc" 1195 1196# Extract the first word of "ranlib", so it can be a program name with args. 1197set dummy ranlib; ac_word=$2 1198echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1199echo "configure:1200: checking for $ac_word" >&5 |
|
904if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 905 echo $ac_n "(cached) $ac_c" 1>&6 906else 907 if test -n "$RANLIB"; then 908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 909else | 1200if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1201 echo $ac_n "(cached) $ac_c" 1>&6 1202else 1203 if test -n "$RANLIB"; then 1204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1205else |
910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 911 for ac_dir in $PATH; do | 1206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1207 ac_dummy="$PATH" 1208 for ac_dir in $ac_dummy; do |
912 test -z "$ac_dir" && ac_dir=. 913 if test -f $ac_dir/$ac_word; then 914 ac_cv_prog_RANLIB="ranlib" 915 break 916 fi 917 done 918 IFS="$ac_save_ifs" 919 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" --- 30 unchanged lines hidden (view full) --- 950 951# Find a good install program. We prefer a C program (faster), 952# so one script is as good as another. But avoid the broken or 953# incompatible versions: 954# SysV /etc/install, /usr/sbin/install 955# SunOS /usr/etc/install 956# IRIX /sbin/install 957# AIX /bin/install | 1209 test -z "$ac_dir" && ac_dir=. 1210 if test -f $ac_dir/$ac_word; then 1211 ac_cv_prog_RANLIB="ranlib" 1212 break 1213 fi 1214 done 1215 IFS="$ac_save_ifs" 1216 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" --- 30 unchanged lines hidden (view full) --- 1247 1248# Find a good install program. We prefer a C program (faster), 1249# so one script is as good as another. But avoid the broken or 1250# incompatible versions: 1251# SysV /etc/install, /usr/sbin/install 1252# SunOS /usr/etc/install 1253# IRIX /sbin/install 1254# AIX /bin/install |
1255# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|
958# AFS /usr/afsws/bin/install, which mishandles nonexistent args 959# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 960# ./install, which can be erroneously created by make from ./install.sh. 961echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 1256# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1257# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1258# ./install, which can be erroneously created by make from ./install.sh. 1259echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
1260echo "configure:1261: checking for a BSD compatible install" >&5 |
|
962if test -z "$INSTALL"; then 963if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 964 echo $ac_n "(cached) $ac_c" 1>&6 965else | 1261if test -z "$INSTALL"; then 1262if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1263 echo $ac_n "(cached) $ac_c" 1>&6 1264else |
966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 1265 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
967 for ac_dir in $PATH; do 968 # Account for people who put trailing slashes in PATH elements. 969 case "$ac_dir/" in 970 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 971 *) 972 # OSF1 and SCO ODT 3.0 have their own names for install. | 1266 for ac_dir in $PATH; do 1267 # Account for people who put trailing slashes in PATH elements. 1268 case "$ac_dir/" in 1269 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1270 *) 1271 # OSF1 and SCO ODT 3.0 have their own names for install. |
973 for ac_prog in ginstall installbsd scoinst install; do | 1272 # Don't use installbsd from OSF since it installs stuff as root 1273 # by default. 1274 for ac_prog in ginstall scoinst install; do |
974 if test -f $ac_dir/$ac_prog; then 975 if test $ac_prog = install && 976 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 977 # AIX install. It has an incompatible calling convention. | 1275 if test -f $ac_dir/$ac_prog; then 1276 if test $ac_prog = install && 1277 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1278 # AIX install. It has an incompatible calling convention. |
978 # OSF/1 installbsd also uses dspmsg, but is usable. | |
979 : 980 else 981 ac_cv_path_install="$ac_dir/$ac_prog -c" 982 break 2 983 fi 984 fi 985 done 986 ;; 987 esac 988 done | 1279 : 1280 else 1281 ac_cv_path_install="$ac_dir/$ac_prog -c" 1282 break 2 1283 fi 1284 fi 1285 done 1286 ;; 1287 esac 1288 done |
989 IFS="$ac_save_ifs" 990 # As a last resort, use the slow shell script. 991 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh" | 1289 IFS="$ac_save_IFS" 1290 |
992fi | 1291fi |
993 INSTALL="$ac_cv_path_install" | 1292 if test "${ac_cv_path_install+set}" = set; then 1293 INSTALL="$ac_cv_path_install" 1294 else 1295 # As a last resort, use the slow shell script. We don't cache a 1296 # path for INSTALL within a source directory, because that will 1297 # break other packages using the cache if that directory is 1298 # removed, or if the path is relative. 1299 INSTALL="$ac_install_sh" 1300 fi |
994fi 995echo "$ac_t""$INSTALL" 1>&6 996 997# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 998# It thinks the first close brace ends the variable substitution. 999test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1000 | 1301fi 1302echo "$ac_t""$INSTALL" 1>&6 1303 1304# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1305# It thinks the first close brace ends the variable substitution. 1306test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1307 |
1308test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1309 |
|
1001test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1002 1003echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | 1310test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1311 1312echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
1313echo "configure:1314: checking whether ln -s works" >&5 |
|
1004if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1005 echo $ac_n "(cached) $ac_c" 1>&6 1006else 1007 rm -f conftestdata 1008if ln -s X conftestdata 2>/dev/null 1009then 1010 rm -f conftestdata 1011 ac_cv_prog_LN_S="ln -s" --- 4 unchanged lines hidden (view full) --- 1016LN_S="$ac_cv_prog_LN_S" 1017if test "$ac_cv_prog_LN_S" = "ln -s"; then 1018 echo "$ac_t""yes" 1>&6 1019else 1020 echo "$ac_t""no" 1>&6 1021fi 1022 1023echo $ac_n "checking for csh hash hack""... $ac_c" 1>&6 | 1314if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1315 echo $ac_n "(cached) $ac_c" 1>&6 1316else 1317 rm -f conftestdata 1318if ln -s X conftestdata 2>/dev/null 1319then 1320 rm -f conftestdata 1321 ac_cv_prog_LN_S="ln -s" --- 4 unchanged lines hidden (view full) --- 1326LN_S="$ac_cv_prog_LN_S" 1327if test "$ac_cv_prog_LN_S" = "ln -s"; then 1328 echo "$ac_t""yes" 1>&6 1329else 1330 echo "$ac_t""no" 1>&6 1331fi 1332 1333echo $ac_n "checking for csh hash hack""... $ac_c" 1>&6 |
1334echo "configure:1335: checking for csh hash hack" >&5 |
|
1024cat <<EOF >conftest.sh 1025#!/bin/sh 1026true || exit 0 1027export PATH || exit 0 1028exit 1 1029EOF 1030chmod +x conftest.sh | 1335cat <<EOF >conftest.sh 1336#!/bin/sh 1337true || exit 0 1338export PATH || exit 0 1339exit 1 1340EOF 1341chmod +x conftest.sh |
1031if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1 1032then | 1342if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then |
1033 echo "$ac_t""yes" 1>&6; SH_SCRIPT_SED_CMD='1s/.*/:/' 1034else 1035 echo "$ac_t""no" 1>&6; SH_SCRIPT_SED_CMD='' 1036fi 1037rm -f conftest.sh 1038 | 1343 echo "$ac_t""yes" 1>&6; SH_SCRIPT_SED_CMD='1s/.*/:/' 1344else 1345 echo "$ac_t""no" 1>&6; SH_SCRIPT_SED_CMD='' 1346fi 1347rm -f conftest.sh 1348 |
1039 | |
1040echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 1349echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1350echo "configure:1351: checking how to run the C preprocessor" >&5 |
|
1041# On Suns, sometimes $CPP names a directory. 1042if test -n "$CPP" && test -d "$CPP"; then 1043 CPP= 1044fi 1045if test -z "$CPP"; then 1046if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1047 echo $ac_n "(cached) $ac_c" 1>&6 1048else 1049 # This must be in double quotes, not single quotes, because CPP may get 1050 # substituted into the Makefile and "${CC-cc}" will confuse make. 1051 CPP="${CC-cc} -E" 1052 # On the NeXT, cc -E runs the code through the compiler's parser, 1053 # not just through cpp. 1054 cat > conftest.$ac_ext <<EOF | 1351# On Suns, sometimes $CPP names a directory. 1352if test -n "$CPP" && test -d "$CPP"; then 1353 CPP= 1354fi 1355if test -z "$CPP"; then 1356if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1357 echo $ac_n "(cached) $ac_c" 1>&6 1358else 1359 # This must be in double quotes, not single quotes, because CPP may get 1360 # substituted into the Makefile and "${CC-cc}" will confuse make. 1361 CPP="${CC-cc} -E" 1362 # On the NeXT, cc -E runs the code through the compiler's parser, 1363 # not just through cpp. 1364 cat > conftest.$ac_ext <<EOF |
1055#line 1056 "configure" | 1365#line 1366 "configure" |
1056#include "confdefs.h" 1057#include <assert.h> 1058Syntax Error 1059EOF | 1366#include "confdefs.h" 1367#include <assert.h> 1368Syntax Error 1369EOF |
1060eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1061ac_err=`grep -v '^ *+' conftest.out` | 1370ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1371{ (eval echo configure:1372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1372ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1062if test -z "$ac_err"; then 1063 : 1064else 1065 echo "$ac_err" >&5 | 1373if test -z "$ac_err"; then 1374 : 1375else 1376 echo "$ac_err" >&5 |
1377 echo "configure: failed program was:" >&5 1378 cat conftest.$ac_ext >&5 |
|
1066 rm -rf conftest* 1067 CPP="${CC-cc} -E -traditional-cpp" 1068 cat > conftest.$ac_ext <<EOF | 1379 rm -rf conftest* 1380 CPP="${CC-cc} -E -traditional-cpp" 1381 cat > conftest.$ac_ext <<EOF |
1069#line 1070 "configure" | 1382#line 1383 "configure" |
1070#include "confdefs.h" 1071#include <assert.h> 1072Syntax Error 1073EOF | 1383#include "confdefs.h" 1384#include <assert.h> 1385Syntax Error 1386EOF |
1074eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1075ac_err=`grep -v '^ *+' conftest.out` | 1387ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1388{ (eval echo configure:1389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1389ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1076if test -z "$ac_err"; then 1077 : 1078else 1079 echo "$ac_err" >&5 | 1390if test -z "$ac_err"; then 1391 : 1392else 1393 echo "$ac_err" >&5 |
1394 echo "configure: failed program was:" >&5 1395 cat conftest.$ac_ext >&5 |
|
1080 rm -rf conftest* | 1396 rm -rf conftest* |
1397 CPP="${CC-cc} -nologo -E" 1398 cat > conftest.$ac_ext <<EOF 1399#line 1400 "configure" 1400#include "confdefs.h" 1401#include <assert.h> 1402Syntax Error 1403EOF 1404ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1405{ (eval echo configure:1406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1406ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1407if test -z "$ac_err"; then 1408 : 1409else 1410 echo "$ac_err" >&5 1411 echo "configure: failed program was:" >&5 1412 cat conftest.$ac_ext >&5 1413 rm -rf conftest* |
|
1081 CPP=/lib/cpp 1082fi 1083rm -f conftest* 1084fi 1085rm -f conftest* | 1414 CPP=/lib/cpp 1415fi 1416rm -f conftest* 1417fi 1418rm -f conftest* |
1419fi 1420rm -f conftest* |
|
1086 ac_cv_prog_CPP="$CPP" 1087fi 1088 CPP="$ac_cv_prog_CPP" 1089else 1090 ac_cv_prog_CPP="$CPP" 1091fi 1092echo "$ac_t""$CPP" 1>&6 1093 1094for ac_hdr in unistd.h dirent.h limits.h sys/dir.h stdlib.h 1095do | 1421 ac_cv_prog_CPP="$CPP" 1422fi 1423 CPP="$ac_cv_prog_CPP" 1424else 1425 ac_cv_prog_CPP="$CPP" 1426fi 1427echo "$ac_t""$CPP" 1>&6 1428 1429for ac_hdr in unistd.h dirent.h limits.h sys/dir.h stdlib.h 1430do |
1096ac_safe=`echo "$ac_hdr" | tr './\055' '___'` | 1431ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1097echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 1432echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1433echo "configure:1434: checking for $ac_hdr" >&5 |
|
1098if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1099 echo $ac_n "(cached) $ac_c" 1>&6 1100else 1101 cat > conftest.$ac_ext <<EOF | 1434if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1435 echo $ac_n "(cached) $ac_c" 1>&6 1436else 1437 cat > conftest.$ac_ext <<EOF |
1102#line 1103 "configure" | 1438#line 1439 "configure" |
1103#include "confdefs.h" 1104#include <$ac_hdr> 1105EOF | 1439#include "confdefs.h" 1440#include <$ac_hdr> 1441EOF |
1106eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1107ac_err=`grep -v '^ *+' conftest.out` | 1442ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1443{ (eval echo configure:1444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1444ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1108if test -z "$ac_err"; then 1109 rm -rf conftest* 1110 eval "ac_cv_header_$ac_safe=yes" 1111else 1112 echo "$ac_err" >&5 | 1445if test -z "$ac_err"; then 1446 rm -rf conftest* 1447 eval "ac_cv_header_$ac_safe=yes" 1448else 1449 echo "$ac_err" >&5 |
1450 echo "configure: failed program was:" >&5 1451 cat conftest.$ac_ext >&5 |
|
1113 rm -rf conftest* 1114 eval "ac_cv_header_$ac_safe=no" 1115fi 1116rm -f conftest* 1117fi 1118if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1119 echo "$ac_t""yes" 1>&6 | 1452 rm -rf conftest* 1453 eval "ac_cv_header_$ac_safe=no" 1454fi 1455rm -f conftest* 1456fi 1457if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1458 echo "$ac_t""yes" 1>&6 |
1120 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` | 1459 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
1121 cat >> confdefs.h <<EOF 1122#define $ac_tr_hdr 1 1123EOF 1124 1125else 1126 echo "$ac_t""no" 1>&6 1127fi 1128done 1129 1130echo $ac_n "checking for ISC 3.x or 4.x""... $ac_c" 1>&6 | 1460 cat >> confdefs.h <<EOF 1461#define $ac_tr_hdr 1 1462EOF 1463 1464else 1465 echo "$ac_t""no" 1>&6 1466fi 1467done 1468 1469echo $ac_n "checking for ISC 3.x or 4.x""... $ac_c" 1>&6 |
1470echo "configure:1471: checking for ISC 3.x or 4.x" >&5 |
|
1131if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1 1132then 1133 echo "$ac_t""yes" 1>&6 1134 cat >> confdefs.h <<\EOF 1135#define _SYSV3 1 1136EOF 1137 1138else 1139 echo "$ac_t""no" 1>&6 1140fi 1141echo $ac_n "checking whether -D_POSIX_SOURCE is necessary""... $ac_c" 1>&6 | 1471if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1 1472then 1473 echo "$ac_t""yes" 1>&6 1474 cat >> confdefs.h <<\EOF 1475#define _SYSV3 1 1476EOF 1477 1478else 1479 echo "$ac_t""no" 1>&6 1480fi 1481echo $ac_n "checking whether -D_POSIX_SOURCE is necessary""... $ac_c" 1>&6 |
1482echo "configure:1483: checking whether -D_POSIX_SOURCE is necessary" >&5 |
|
1142 1143ac_ext=C 1144# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1145ac_cpp='$CXXCPP $CPPFLAGS' | 1483 1484ac_ext=C 1485# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1486ac_cpp='$CXXCPP $CPPFLAGS' |
1146ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1147ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 1487ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1488ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1489cross_compiling=$ac_cv_prog_cxx_cross |
1148 1149cat > conftest.$ac_ext <<EOF | 1490 1491cat > conftest.$ac_ext <<EOF |
1150#line 1151 "configure" | 1492#line 1493 "configure" |
1151#include "confdefs.h" 1152#include <stdio.h> 1153extern "C" { void fileno(int); } | 1493#include "confdefs.h" 1494#include <stdio.h> 1495extern "C" { void fileno(int); } |
1154int main() { return 0; } 1155int t() { | 1496int main() { |
1156 1157; return 0; } 1158EOF | 1497 1498; return 0; } 1499EOF |
1159if eval $ac_compile; then | 1500if { (eval echo configure:1501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1160 rm -rf conftest* 1161 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1162#define _POSIX_SOURCE 1 1163EOF 1164 1165else | 1501 rm -rf conftest* 1502 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1503#define _POSIX_SOURCE 1 1504EOF 1505 1506else |
1507 echo "configure: failed program was:" >&5 1508 cat conftest.$ac_ext >&5 |
|
1166 rm -rf conftest* 1167 echo "$ac_t""no" 1>&6 1168fi 1169rm -f conftest* | 1509 rm -rf conftest* 1510 echo "$ac_t""no" 1>&6 1511fi 1512rm -f conftest* |
1170 | |
1171ac_ext=c 1172# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1173ac_cpp='$CPP $CPPFLAGS' | 1513ac_ext=c 1514# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1515ac_cpp='$CPP $CPPFLAGS' |
1174ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1175ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 1516ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1517ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1518cross_compiling=$ac_cv_prog_cc_cross |
1176 1177 1178ac_ext=C 1179# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1180ac_cpp='$CXXCPP $CPPFLAGS' | 1519 1520 1521ac_ext=C 1522# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1523ac_cpp='$CXXCPP $CPPFLAGS' |
1181ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1182ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 1524ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1525ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1526cross_compiling=$ac_cv_prog_cxx_cross |
1183 1184echo $ac_n "checking declaration of getopt in stdlib.h""... $ac_c" 1>&6 | 1527 1528echo $ac_n "checking declaration of getopt in stdlib.h""... $ac_c" 1>&6 |
1529echo "configure:1530: checking declaration of getopt in stdlib.h" >&5 |
|
1185cat > conftest.$ac_ext <<EOF | 1530cat > conftest.$ac_ext <<EOF |
1186#line 1187 "configure" | 1531#line 1532 "configure" |
1187#include "confdefs.h" 1188#include <stdlib.h> 1189extern "C" { void getopt(int); } | 1532#include "confdefs.h" 1533#include <stdlib.h> 1534extern "C" { void getopt(int); } |
1190int main() { return 0; } 1191int t() { | 1535int main() { |
1192 1193; return 0; } 1194EOF | 1536 1537; return 0; } 1538EOF |
1195if eval $ac_compile; then | 1539if { (eval echo configure:1540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1196 rm -rf conftest* 1197 echo "$ac_t""no" 1>&6 1198else | 1540 rm -rf conftest* 1541 echo "$ac_t""no" 1>&6 1542else |
1543 echo "configure: failed program was:" >&5 1544 cat conftest.$ac_ext >&5 |
|
1199 rm -rf conftest* 1200 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1201#define STDLIB_H_DECLARES_GETOPT 1 1202EOF 1203 1204fi 1205rm -f conftest* | 1545 rm -rf conftest* 1546 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1547#define STDLIB_H_DECLARES_GETOPT 1 1548EOF 1549 1550fi 1551rm -f conftest* |
1206 | |
1207echo $ac_n "checking declaration of getopt in unistd.h""... $ac_c" 1>&6 | 1552echo $ac_n "checking declaration of getopt in unistd.h""... $ac_c" 1>&6 |
1553echo "configure:1554: checking declaration of getopt in unistd.h" >&5 |
|
1208cat > conftest.$ac_ext <<EOF | 1554cat > conftest.$ac_ext <<EOF |
1209#line 1210 "configure" | 1555#line 1556 "configure" |
1210#include "confdefs.h" 1211#include <sys/types.h> 1212#include <unistd.h> 1213extern "C" { void getopt(int); } | 1556#include "confdefs.h" 1557#include <sys/types.h> 1558#include <unistd.h> 1559extern "C" { void getopt(int); } |
1214int main() { return 0; } 1215int t() { | 1560int main() { |
1216 1217; return 0; } 1218EOF | 1561 1562; return 0; } 1563EOF |
1219if eval $ac_compile; then | 1564if { (eval echo configure:1565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1220 rm -rf conftest* 1221 echo "$ac_t""no" 1>&6 1222else | 1565 rm -rf conftest* 1566 echo "$ac_t""no" 1>&6 1567else |
1568 echo "configure: failed program was:" >&5 1569 cat conftest.$ac_ext >&5 |
|
1223 rm -rf conftest* 1224 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1225#define UNISTD_H_DECLARES_GETOPT 1 1226EOF 1227 1228fi 1229rm -f conftest* | 1570 rm -rf conftest* 1571 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1572#define UNISTD_H_DECLARES_GETOPT 1 1573EOF 1574 1575fi 1576rm -f conftest* |
1230 | |
1231ac_ext=c 1232# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1233ac_cpp='$CPP $CPPFLAGS' | 1577ac_ext=c 1578# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1579ac_cpp='$CPP $CPPFLAGS' |
1234ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1235ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 1580ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1581ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1582cross_compiling=$ac_cv_prog_cc_cross |
1236 1237 1238ac_ext=C 1239# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1240ac_cpp='$CXXCPP $CPPFLAGS' | 1583 1584 1585ac_ext=C 1586# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1587ac_cpp='$CXXCPP $CPPFLAGS' |
1241ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1242ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 1588ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1589ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1590cross_compiling=$ac_cv_prog_cxx_cross |
1243 1244echo $ac_n "checking declaration of putenv""... $ac_c" 1>&6 | 1591 1592echo $ac_n "checking declaration of putenv""... $ac_c" 1>&6 |
1593echo "configure:1594: checking declaration of putenv" >&5 |
|
1245cat > conftest.$ac_ext <<EOF | 1594cat > conftest.$ac_ext <<EOF |
1246#line 1247 "configure" | 1595#line 1596 "configure" |
1247#include "confdefs.h" 1248#include <stdlib.h> 1249extern "C" { void putenv(int); } | 1596#include "confdefs.h" 1597#include <stdlib.h> 1598extern "C" { void putenv(int); } |
1250int main() { return 0; } 1251int t() { | 1599int main() { |
1252 1253; return 0; } 1254EOF | 1600 1601; return 0; } 1602EOF |
1255if eval $ac_compile; then | 1603if { (eval echo configure:1604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1256 rm -rf conftest* 1257 echo "$ac_t""no" 1>&6 1258else | 1604 rm -rf conftest* 1605 echo "$ac_t""no" 1>&6 1606else |
1607 echo "configure: failed program was:" >&5 1608 cat conftest.$ac_ext >&5 |
|
1259 rm -rf conftest* | 1609 rm -rf conftest* |
1260 echo "$ac_t""yes" 1>&6 1261cat >> confdefs.h <<\EOF | 1610 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF |
1262#define STDLIB_H_DECLARES_PUTENV 1 1263EOF 1264 1265fi 1266rm -f conftest* | 1611#define STDLIB_H_DECLARES_PUTENV 1 1612EOF 1613 1614fi 1615rm -f conftest* |
1267 | |
1268ac_ext=c 1269# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1270ac_cpp='$CPP $CPPFLAGS' | 1616ac_ext=c 1617# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1618ac_cpp='$CPP $CPPFLAGS' |
1271ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1272ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 1619ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1620ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1621cross_compiling=$ac_cv_prog_cc_cross |
1273 1274 1275ac_ext=C 1276# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1277ac_cpp='$CXXCPP $CPPFLAGS' | 1622 1623 1624ac_ext=C 1625# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1626ac_cpp='$CXXCPP $CPPFLAGS' |
1278ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1279ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 1627ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1628ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1629cross_compiling=$ac_cv_prog_cxx_cross |
1280 1281echo $ac_n "checking declaration of popen""... $ac_c" 1>&6 | 1630 1631echo $ac_n "checking declaration of popen""... $ac_c" 1>&6 |
1632echo "configure:1633: checking declaration of popen" >&5 |
|
1282cat > conftest.$ac_ext <<EOF | 1633cat > conftest.$ac_ext <<EOF |
1283#line 1284 "configure" | 1634#line 1635 "configure" |
1284#include "confdefs.h" 1285#include <stdio.h> 1286extern "C" { void popen(int); } | 1635#include "confdefs.h" 1636#include <stdio.h> 1637extern "C" { void popen(int); } |
1287int main() { return 0; } 1288int t() { | 1638int main() { |
1289 1290; return 0; } 1291EOF | 1639 1640; return 0; } 1641EOF |
1292if eval $ac_compile; then | 1642if { (eval echo configure:1643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1293 rm -rf conftest* 1294 echo "$ac_t""no" 1>&6 1295else | 1643 rm -rf conftest* 1644 echo "$ac_t""no" 1>&6 1645else |
1646 echo "configure: failed program was:" >&5 1647 cat conftest.$ac_ext >&5 |
|
1296 rm -rf conftest* 1297 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1298#define STDIO_H_DECLARES_POPEN 1 1299EOF 1300 1301fi 1302rm -f conftest* | 1648 rm -rf conftest* 1649 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1650#define STDIO_H_DECLARES_POPEN 1 1651EOF 1652 1653fi 1654rm -f conftest* |
1303 | |
1304ac_ext=c 1305# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1306ac_cpp='$CPP $CPPFLAGS' | 1655ac_ext=c 1656# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1657ac_cpp='$CPP $CPPFLAGS' |
1307ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1308ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 1658ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1659ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1660cross_compiling=$ac_cv_prog_cc_cross |
1309 1310 1311ac_ext=C 1312# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1313ac_cpp='$CXXCPP $CPPFLAGS' | 1661 1662 1663ac_ext=C 1664# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1665ac_cpp='$CXXCPP $CPPFLAGS' |
1314ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1315ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 1666ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1667ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1668cross_compiling=$ac_cv_prog_cxx_cross |
1316 1317echo $ac_n "checking declaration of pclose""... $ac_c" 1>&6 | 1669 1670echo $ac_n "checking declaration of pclose""... $ac_c" 1>&6 |
1671echo "configure:1672: checking declaration of pclose" >&5 |
|
1318cat > conftest.$ac_ext <<EOF | 1672cat > conftest.$ac_ext <<EOF |
1319#line 1320 "configure" | 1673#line 1674 "configure" |
1320#include "confdefs.h" 1321#include <stdio.h> 1322extern "C" { void pclose(int); } | 1674#include "confdefs.h" 1675#include <stdio.h> 1676extern "C" { void pclose(int); } |
1323int main() { return 0; } 1324int t() { | 1677int main() { |
1325 1326; return 0; } 1327EOF | 1678 1679; return 0; } 1680EOF |
1328if eval $ac_compile; then | 1681if { (eval echo configure:1682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1329 rm -rf conftest* 1330 echo "$ac_t""no" 1>&6 1331else | 1682 rm -rf conftest* 1683 echo "$ac_t""no" 1>&6 1684else |
1685 echo "configure: failed program was:" >&5 1686 cat conftest.$ac_ext >&5 |
|
1332 rm -rf conftest* 1333 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1334#define STDIO_H_DECLARES_PCLOSE 1 1335EOF 1336 1337fi 1338rm -f conftest* | 1687 rm -rf conftest* 1688 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1689#define STDIO_H_DECLARES_PCLOSE 1 1690EOF 1691 1692fi 1693rm -f conftest* |
1694ac_ext=c 1695# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1696ac_cpp='$CPP $CPPFLAGS' 1697ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1698ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1699cross_compiling=$ac_cv_prog_cc_cross |
|
1339 | 1700 |
1701 1702ac_ext=C 1703# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1704ac_cpp='$CXXCPP $CPPFLAGS' 1705ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1706ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1707cross_compiling=$ac_cv_prog_cxx_cross 1708 1709echo $ac_n "checking for sys_nerr in <errno.h> or <stdio.h>""... $ac_c" 1>&6 1710echo "configure:1711: checking for sys_nerr in <errno.h> or <stdio.h>" >&5 1711cat > conftest.$ac_ext <<EOF 1712#line 1713 "configure" 1713#include "confdefs.h" 1714#include <errno.h> 1715#include <stdio.h> 1716int main() { 1717int k; k = sys_nerr; 1718; return 0; } 1719EOF 1720if { (eval echo configure:1721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1721 rm -rf conftest* 1722 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1723#define HAVE_SYS_NERR 1 1724EOF 1725 1726else 1727 echo "configure: failed program was:" >&5 1728 cat conftest.$ac_ext >&5 1729 rm -rf conftest* 1730 echo "$ac_t""no" 1>&6 1731fi 1732rm -f conftest* |
|
1340ac_ext=c 1341# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1342ac_cpp='$CPP $CPPFLAGS' | 1733ac_ext=c 1734# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1735ac_cpp='$CPP $CPPFLAGS' |
1343ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1344ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 1736ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1737ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1738cross_compiling=$ac_cv_prog_cc_cross |
1345 1346 1347ac_ext=C 1348# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1349ac_cpp='$CXXCPP $CPPFLAGS' | 1739 1740 1741ac_ext=C 1742# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1743ac_cpp='$CXXCPP $CPPFLAGS' |
1350ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1351ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 1744ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1745ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1746cross_compiling=$ac_cv_prog_cxx_cross |
1352 | 1747 |
1748echo $ac_n "checking for sys_errlist in <errno.h> or <stdio.h>""... $ac_c" 1>&6 1749echo "configure:1750: checking for sys_errlist in <errno.h> or <stdio.h>" >&5 1750cat > conftest.$ac_ext <<EOF 1751#line 1752 "configure" 1752#include "confdefs.h" 1753#include <errno.h> 1754#include <stdio.h> 1755int main() { 1756int k; k = (int)sys_errlist[0]; 1757; return 0; } 1758EOF 1759if { (eval echo configure:1760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1760 rm -rf conftest* 1761 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1762#define HAVE_SYS_ERRLIST 1 1763EOF 1764 1765else 1766 echo "configure: failed program was:" >&5 1767 cat conftest.$ac_ext >&5 1768 rm -rf conftest* 1769 echo "$ac_t""no" 1>&6 1770fi 1771rm -f conftest* 1772ac_ext=c 1773# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1774ac_cpp='$CPP $CPPFLAGS' 1775ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1776ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1777cross_compiling=$ac_cv_prog_cc_cross 1778 1779 1780ac_ext=C 1781# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1782ac_cpp='$CXXCPP $CPPFLAGS' 1783ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1784ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1785cross_compiling=$ac_cv_prog_cxx_cross 1786 1787echo $ac_n "checking declaration of hypot""... $ac_c" 1>&6 1788echo "configure:1789: checking declaration of hypot" >&5 1789cat > conftest.$ac_ext <<EOF 1790#line 1791 "configure" 1791#include "confdefs.h" 1792#include <math.h> 1793extern "C" { double hypot(double,double); } 1794int main() { 1795 1796; return 0; } 1797EOF 1798if { (eval echo configure:1799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1799 rm -rf conftest* 1800 echo "$ac_t""no" 1>&6 1801else 1802 echo "configure: failed program was:" >&5 1803 cat conftest.$ac_ext >&5 1804 rm -rf conftest* 1805 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1806#define MATH_H_DECLARES_HYPOT 1 1807EOF 1808 1809fi 1810rm -f conftest* 1811ac_ext=c 1812# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1813ac_cpp='$CPP $CPPFLAGS' 1814ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1815ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1816cross_compiling=$ac_cv_prog_cc_cross 1817 1818 1819ac_ext=C 1820# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1821ac_cpp='$CXXCPP $CPPFLAGS' 1822ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1823ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1824cross_compiling=$ac_cv_prog_cxx_cross 1825 |
|
1353echo $ac_n "checking C++ <osfcn.h>""... $ac_c" 1>&6 | 1826echo $ac_n "checking C++ <osfcn.h>""... $ac_c" 1>&6 |
1827echo "configure:1828: checking C++ <osfcn.h>" >&5 |
|
1354cat > conftest.$ac_ext <<EOF | 1828cat > conftest.$ac_ext <<EOF |
1355#line 1356 "configure" | 1829#line 1830 "configure" |
1356#include "confdefs.h" 1357#include <osfcn.h> | 1830#include "confdefs.h" 1831#include <osfcn.h> |
1358int main() { return 0; } 1359int t() { | 1832int main() { |
1360read(0, 0, 0); open(0, 0); 1361; return 0; } 1362EOF | 1833read(0, 0, 0); open(0, 0); 1834; return 0; } 1835EOF |
1363if eval $ac_compile; then | 1836if { (eval echo configure:1837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1364 rm -rf conftest* 1365 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1366#define HAVE_CC_OSFCN_H 1 1367EOF 1368 1369else | 1837 rm -rf conftest* 1838 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1839#define HAVE_CC_OSFCN_H 1 1840EOF 1841 1842else |
1843 echo "configure: failed program was:" >&5 1844 cat conftest.$ac_ext >&5 |
|
1370 rm -rf conftest* 1371 echo "$ac_t""no" 1>&6 1372fi 1373rm -f conftest* | 1845 rm -rf conftest* 1846 echo "$ac_t""no" 1>&6 1847fi 1848rm -f conftest* |
1374 | |
1375ac_ext=c 1376# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1377ac_cpp='$CPP $CPPFLAGS' | 1849ac_ext=c 1850# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1851ac_cpp='$CPP $CPPFLAGS' |
1378ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1379ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 1852ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1853ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1854cross_compiling=$ac_cv_prog_cc_cross |
1380 1381 1382ac_ext=C 1383# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1384ac_cpp='$CXXCPP $CPPFLAGS' | 1855 1856 1857ac_ext=C 1858# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1859ac_cpp='$CXXCPP $CPPFLAGS' |
1385ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1386ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 1860ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1861ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1862cross_compiling=$ac_cv_prog_cxx_cross |
1387 1388echo $ac_n "checking C++ <limits.h>""... $ac_c" 1>&6 | 1863 1864echo $ac_n "checking C++ <limits.h>""... $ac_c" 1>&6 |
1865echo "configure:1866: checking C++ <limits.h>" >&5 |
|
1389cat > conftest.$ac_ext <<EOF | 1866cat > conftest.$ac_ext <<EOF |
1390#line 1391 "configure" | 1867#line 1868 "configure" |
1391#include "confdefs.h" 1392#include <limits.h> | 1868#include "confdefs.h" 1869#include <limits.h> |
1393int main() { return 0; } 1394int t() { | 1870int main() { |
1395int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX; 1396; return 0; } 1397EOF | 1871int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX; 1872; return 0; } 1873EOF |
1398if eval $ac_compile; then | 1874if { (eval echo configure:1875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1399 rm -rf conftest* 1400 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1401#define HAVE_CC_LIMITS_H 1 1402EOF 1403 1404else | 1875 rm -rf conftest* 1876 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1877#define HAVE_CC_LIMITS_H 1 1878EOF 1879 1880else |
1881 echo "configure: failed program was:" >&5 1882 cat conftest.$ac_ext >&5 |
|
1405 rm -rf conftest* 1406 echo "$ac_t""no" 1>&6 1407fi 1408rm -f conftest* | 1883 rm -rf conftest* 1884 echo "$ac_t""no" 1>&6 1885fi 1886rm -f conftest* |
1409 | |
1410ac_ext=c 1411# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1412ac_cpp='$CPP $CPPFLAGS' | 1887ac_ext=c 1888# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1889ac_cpp='$CPP $CPPFLAGS' |
1413ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1414ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 1890ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1891ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1892cross_compiling=$ac_cv_prog_cc_cross |
1415 1416 1417ac_ext=C 1418# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1419ac_cpp='$CXXCPP $CPPFLAGS' | 1893 1894 1895ac_ext=C 1896# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1897ac_cpp='$CXXCPP $CPPFLAGS' |
1420ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1421ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 1898ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1899ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1900cross_compiling=$ac_cv_prog_cxx_cross |
1422 1423echo $ac_n "checking for declaration of time_t""... $ac_c" 1>&6 | 1901 1902echo $ac_n "checking for declaration of time_t""... $ac_c" 1>&6 |
1903echo "configure:1904: checking for declaration of time_t" >&5 |
|
1424cat > conftest.$ac_ext <<EOF | 1904cat > conftest.$ac_ext <<EOF |
1425#line 1426 "configure" | 1905#line 1906 "configure" |
1426#include "confdefs.h" 1427#include <time.h> | 1906#include "confdefs.h" 1907#include <time.h> |
1428int main() { return 0; } 1429int t() { | 1908int main() { |
1430time_t t = time(0); struct tm *p = localtime(&t); 1431; return 0; } 1432EOF | 1909time_t t = time(0); struct tm *p = localtime(&t); 1910; return 0; } 1911EOF |
1433if eval $ac_compile; then | 1912if { (eval echo configure:1913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1434 rm -rf conftest* 1435 echo "$ac_t""yes" 1>&6 1436else | 1913 rm -rf conftest* 1914 echo "$ac_t""yes" 1>&6 1915else |
1916 echo "configure: failed program was:" >&5 1917 cat conftest.$ac_ext >&5 |
|
1437 rm -rf conftest* 1438 echo "$ac_t""no" 1>&6;cat >> confdefs.h <<\EOF 1439#define LONG_FOR_TIME_T 1 1440EOF 1441 1442fi 1443rm -f conftest* | 1918 rm -rf conftest* 1919 echo "$ac_t""no" 1>&6;cat >> confdefs.h <<\EOF 1920#define LONG_FOR_TIME_T 1 1921EOF 1922 1923fi 1924rm -f conftest* |
1444 | |
1445ac_ext=c 1446# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1447ac_cpp='$CPP $CPPFLAGS' | 1925ac_ext=c 1926# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1927ac_cpp='$CPP $CPPFLAGS' |
1448ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1449ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 1928ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1929ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1930cross_compiling=$ac_cv_prog_cc_cross |
1450 1451echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | 1931 1932echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
1933echo "configure:1934: checking return type of signal handlers" >&5 |
|
1452if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 1453 echo $ac_n "(cached) $ac_c" 1>&6 1454else 1455 cat > conftest.$ac_ext <<EOF | 1934if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 1935 echo $ac_n "(cached) $ac_c" 1>&6 1936else 1937 cat > conftest.$ac_ext <<EOF |
1456#line 1457 "configure" | 1938#line 1939 "configure" |
1457#include "confdefs.h" 1458#include <sys/types.h> 1459#include <signal.h> 1460#ifdef signal 1461#undef signal 1462#endif 1463#ifdef __cplusplus | 1939#include "confdefs.h" 1940#include <sys/types.h> 1941#include <signal.h> 1942#ifdef signal 1943#undef signal 1944#endif 1945#ifdef __cplusplus |
1464extern "C" 1465#endif | 1946extern "C" void (*signal (int, void (*)(int)))(int); 1947#else |
1466void (*signal ()) (); | 1948void (*signal ()) (); |
1467int main() { return 0; } 1468int t() { | 1949#endif 1950 1951int main() { |
1469int i; 1470; return 0; } 1471EOF | 1952int i; 1953; return 0; } 1954EOF |
1472if eval $ac_compile; then | 1955if { (eval echo configure:1956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1473 rm -rf conftest* 1474 ac_cv_type_signal=void 1475else | 1956 rm -rf conftest* 1957 ac_cv_type_signal=void 1958else |
1959 echo "configure: failed program was:" >&5 1960 cat conftest.$ac_ext >&5 |
|
1476 rm -rf conftest* 1477 ac_cv_type_signal=int 1478fi 1479rm -f conftest* | 1961 rm -rf conftest* 1962 ac_cv_type_signal=int 1963fi 1964rm -f conftest* |
1480 | |
1481fi | 1965fi |
1966 |
|
1482echo "$ac_t""$ac_cv_type_signal" 1>&6 1483cat >> confdefs.h <<EOF 1484#define RETSIGTYPE $ac_cv_type_signal 1485EOF 1486 1487 1488echo $ac_n "checking struct exception""... $ac_c" 1>&6 | 1967echo "$ac_t""$ac_cv_type_signal" 1>&6 1968cat >> confdefs.h <<EOF 1969#define RETSIGTYPE $ac_cv_type_signal 1970EOF 1971 1972 1973echo $ac_n "checking struct exception""... $ac_c" 1>&6 |
1974echo "configure:1975: checking struct exception" >&5 |
|
1489cat > conftest.$ac_ext <<EOF | 1975cat > conftest.$ac_ext <<EOF |
1490#line 1491 "configure" | 1976#line 1977 "configure" |
1491#include "confdefs.h" 1492#include <math.h> | 1977#include "confdefs.h" 1978#include <math.h> |
1493int main() { return 0; } 1494int t() { | 1979int main() { |
1495struct exception e; 1496; return 0; } 1497EOF | 1980struct exception e; 1981; return 0; } 1982EOF |
1498if eval $ac_compile; then | 1983if { (eval echo configure:1984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1499 rm -rf conftest* 1500 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1501#define HAVE_STRUCT_EXCEPTION 1 1502EOF 1503 1504else | 1984 rm -rf conftest* 1985 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1986#define HAVE_STRUCT_EXCEPTION 1 1987EOF 1988 1989else |
1990 echo "configure: failed program was:" >&5 1991 cat conftest.$ac_ext >&5 |
|
1505 rm -rf conftest* 1506 echo "$ac_t""no" 1>&6 1507fi 1508rm -f conftest* | 1992 rm -rf conftest* 1993 echo "$ac_t""no" 1>&6 1994fi 1995rm -f conftest* |
1996echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 1997echo "configure:1998: checking for sin in -lm" >&5 1998ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 1999if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2000 echo $ac_n "(cached) $ac_c" 1>&6 2001else 2002 ac_save_LIBS="$LIBS" 2003LIBS="-lm $LIBS" 2004cat > conftest.$ac_ext <<EOF 2005#line 2006 "configure" 2006#include "confdefs.h" 2007/* Override any gcc2 internal prototype to avoid an error. */ 2008/* We use char because int might match the return type of a gcc2 2009 builtin and then its argument prototype would still apply. */ 2010char sin(); |
|
1509 | 2011 |
2012int main() { 2013sin() 2014; return 0; } 2015EOF 2016if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2017 rm -rf conftest* 2018 eval "ac_cv_lib_$ac_lib_var=yes" 2019else 2020 echo "configure: failed program was:" >&5 2021 cat conftest.$ac_ext >&5 2022 rm -rf conftest* 2023 eval "ac_cv_lib_$ac_lib_var=no" 2024fi 2025rm -f conftest* 2026LIBS="$ac_save_LIBS" 2027 2028fi 2029if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2030 echo "$ac_t""yes" 1>&6 2031 LIBM=-lm 2032else 2033 echo "$ac_t""no" 1>&6 2034fi 2035 2036 2037 2038for ac_hdr in unistd.h 2039do 2040ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2041echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2042echo "configure:2043: checking for $ac_hdr" >&5 2043if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2044 echo $ac_n "(cached) $ac_c" 1>&6 2045else 2046 cat > conftest.$ac_ext <<EOF 2047#line 2048 "configure" 2048#include "confdefs.h" 2049#include <$ac_hdr> 2050EOF 2051ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2052{ (eval echo configure:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2053ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2054if test -z "$ac_err"; then 2055 rm -rf conftest* 2056 eval "ac_cv_header_$ac_safe=yes" 2057else 2058 echo "$ac_err" >&5 2059 echo "configure: failed program was:" >&5 2060 cat conftest.$ac_ext >&5 2061 rm -rf conftest* 2062 eval "ac_cv_header_$ac_safe=no" 2063fi 2064rm -f conftest* 2065fi 2066if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2067 echo "$ac_t""yes" 1>&6 2068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2069 cat >> confdefs.h <<EOF 2070#define $ac_tr_hdr 1 2071EOF 2072 2073else 2074 echo "$ac_t""no" 1>&6 2075fi 2076done 2077 2078for ac_func in getpagesize 2079do 2080echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2081echo "configure:2082: checking for $ac_func" >&5 2082if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2083 echo $ac_n "(cached) $ac_c" 1>&6 2084else 2085 cat > conftest.$ac_ext <<EOF 2086#line 2087 "configure" 2087#include "confdefs.h" 2088/* System header to define __stub macros and hopefully few prototypes, 2089 which can conflict with char $ac_func(); below. */ 2090#include <assert.h> 2091/* Override any gcc2 internal prototype to avoid an error. */ 2092/* We use char because int might match the return type of a gcc2 2093 builtin and then its argument prototype would still apply. */ 2094char $ac_func(); 2095 2096int main() { 2097 2098/* The GNU C library defines this for functions which it implements 2099 to always fail with ENOSYS. Some functions are actually named 2100 something starting with __ and the normal name is an alias. */ 2101#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2102choke me 2103#else 2104$ac_func(); 2105#endif 2106 2107; return 0; } 2108EOF 2109if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2110 rm -rf conftest* 2111 eval "ac_cv_func_$ac_func=yes" 2112else 2113 echo "configure: failed program was:" >&5 2114 cat conftest.$ac_ext >&5 2115 rm -rf conftest* 2116 eval "ac_cv_func_$ac_func=no" 2117fi 2118rm -f conftest* 2119fi 2120 2121if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2122 echo "$ac_t""yes" 1>&6 2123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2124 cat >> confdefs.h <<EOF 2125#define $ac_tr_func 1 2126EOF 2127 2128else 2129 echo "$ac_t""no" 1>&6 2130fi 2131done 2132 |
|
1510echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | 2133echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
1511if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then | 2134echo "configure:2135: checking for working mmap" >&5 2135if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
1512 echo $ac_n "(cached) $ac_c" 1>&6 1513else 1514 if test "$cross_compiling" = yes; then | 2136 echo $ac_n "(cached) $ac_c" 1>&6 2137else 2138 if test "$cross_compiling" = yes; then |
1515 ac_cv_func_mmap=no | 2139 ac_cv_func_mmap_fixed_mapped=no |
1516else | 2140else |
1517cat > conftest.$ac_ext < | 2141 cat > conftest.$ac_ext <<EOF 2142#line 2143 "configure" |
1519#include "confdefs.h" 1520 | 2143#include "confdefs.h" 2144 |
1521/* Thanks to Mike Haertel and Jim Avera for this test. */ | 2145/* Thanks to Mike Haertel and Jim Avera for this test. 2146 Here is a matrix of mmap possibilities: 2147 mmap private not fixed 2148 mmap private fixed at somewhere currently unmapped 2149 mmap private fixed at somewhere already mapped 2150 mmap shared not fixed 2151 mmap shared fixed at somewhere currently unmapped 2152 mmap shared fixed at somewhere already mapped 2153 For private mappings, we should verify that changes cannot be read() 2154 back from the file, nor mmap's back from the file at a different 2155 address. (There have been systems where private was not correctly 2156 implemented like the infamous i386 svr4.0, and systems where the 2157 VM page cache was not coherent with the filesystem buffer cache 2158 like early versions of FreeBSD and possibly contemporary NetBSD.) 2159 For shared mappings, we should conversely verify that changes get 2160 propogated back to all the places they're supposed to be. 2161 2162 Grep wants private fixed already mapped. 2163 The main things grep needs to know about mmap are: 2164 * does it exist and is it safe to write into the mmap'd area 2165 * how to use it (BSD variants) */ |
1522#include <sys/types.h> 1523#include <fcntl.h> 1524#include <sys/mman.h> 1525 | 2166#include <sys/types.h> 2167#include <fcntl.h> 2168#include <sys/mman.h> 2169 |
1526#ifdef BSD 1527# ifndef BSD4_1 1528# define HAVE_GETPAGESIZE | 2170/* This mess was copied from the GNU getpagesize.h. */ 2171#ifndef HAVE_GETPAGESIZE 2172# ifdef HAVE_UNISTD_H 2173# include <unistd.h> |
1529# endif | 2174# endif |
1530#endif | |
1531 | 2175 |
1532#ifndef HAVE_GETPAGESIZE 1533# include <sys/param.h> 1534# ifdef EXEC_PAGESIZE 1535# define getpagesize() EXEC_PAGESIZE 1536# else 1537# ifdef NBPG 1538# define getpagesize() NBPG * CLSIZE 1539# ifndef CLSIZE 1540# define CLSIZE 1 1541# endif 1542# else 1543# ifdef NBPC 1544# define getpagesize() NBPC 1545# else 1546# define getpagesize() PAGESIZE /* SVR4 */ 1547# endif 1548# endif | 2176/* Assume that all systems that can run configure have sys/param.h. */ 2177# ifndef HAVE_SYS_PARAM_H 2178# define HAVE_SYS_PARAM_H 1 |
1549# endif | 2179# endif |
1550#endif | |
1551 | 2180 |
1552#ifdef __osf__ 1553# define valloc malloc 1554#endif | 2181# ifdef _SC_PAGESIZE 2182# define getpagesize() sysconf(_SC_PAGESIZE) 2183# else /* no _SC_PAGESIZE */ 2184# ifdef HAVE_SYS_PARAM_H 2185# include <sys/param.h> 2186# ifdef EXEC_PAGESIZE 2187# define getpagesize() EXEC_PAGESIZE 2188# else /* no EXEC_PAGESIZE */ 2189# ifdef NBPG 2190# define getpagesize() NBPG * CLSIZE 2191# ifndef CLSIZE 2192# define CLSIZE 1 2193# endif /* no CLSIZE */ 2194# else /* no NBPG */ 2195# ifdef NBPC 2196# define getpagesize() NBPC 2197# else /* no NBPC */ 2198# ifdef PAGESIZE 2199# define getpagesize() PAGESIZE 2200# endif /* PAGESIZE */ 2201# endif /* no NBPC */ 2202# endif /* no NBPG */ 2203# endif /* no EXEC_PAGESIZE */ 2204# else /* no HAVE_SYS_PARAM_H */ 2205# define getpagesize() 8192 /* punt totally */ 2206# endif /* no HAVE_SYS_PARAM_H */ 2207# endif /* no _SC_PAGESIZE */ |
1555 | 2208 |
2209#endif /* no HAVE_GETPAGESIZE */ 2210 |
|
1556#ifdef __cplusplus | 2211#ifdef __cplusplus |
1557extern "C" { void *valloc(unsigned), *malloc(unsigned); } | 2212extern "C" { void *malloc(unsigned); } |
1558#else | 2213#else |
1559char *valloc(), *malloc(); | 2214char *malloc(); |
1560#endif 1561 1562int 1563main() 1564{ | 2215#endif 2216 2217int 2218main() 2219{ |
1565 char *buf1, *buf2, *buf3; 1566 int i = getpagesize(), j; 1567 int i2 = getpagesize()*2; 1568 int fd; | 2220 char *data, *data2, *data3; 2221 int i, pagesize; 2222 int fd; |
1569 | 2223 |
1570 buf1 = (char *)valloc(i2); 1571 buf2 = (char *)valloc(i); 1572 buf3 = (char *)malloc(i2); 1573 for (j = 0; j < i2; ++j) 1574 *(buf1 + j) = rand(); 1575 fd = open("conftestmmap", O_CREAT | O_RDWR, 0666); 1576 write(fd, buf1, i2); 1577 mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0); 1578 for (j = 0; j < i; ++j) 1579 if (*(buf1 + j) != *(buf2 + j)) 1580 exit(1); 1581 lseek(fd, (long)i, 0); 1582 read(fd, buf2, i); /* read into mapped memory -- file should not change */ 1583 /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */ 1584 lseek(fd, (long)0, 0); 1585 read(fd, buf3, i2); 1586 for (j = 0; j < i2; ++j) 1587 if (*(buf1 + j) != *(buf3 + j)) 1588 exit(1); 1589 exit(0); | 2224 pagesize = getpagesize(); 2225 2226 /* 2227 * First, make a file with some known garbage in it. 2228 */ 2229 data = malloc(pagesize); 2230 if (!data) 2231 exit(1); 2232 for (i = 0; i < pagesize; ++i) 2233 *(data + i) = rand(); 2234 umask(0); 2235 fd = creat("conftestmmap", 0600); 2236 if (fd < 0) 2237 exit(1); 2238 if (write(fd, data, pagesize) != pagesize) 2239 exit(1); 2240 close(fd); 2241 2242 /* 2243 * Next, try to mmap the file at a fixed address which 2244 * already has something else allocated at it. If we can, 2245 * also make sure that we see the same garbage. 2246 */ 2247 fd = open("conftestmmap", O_RDWR); 2248 if (fd < 0) 2249 exit(1); 2250 data2 = malloc(2 * pagesize); 2251 if (!data2) 2252 exit(1); 2253 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 2254 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 2255 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 2256 exit(1); 2257 for (i = 0; i < pagesize; ++i) 2258 if (*(data + i) != *(data2 + i)) 2259 exit(1); 2260 2261 /* 2262 * Finally, make sure that changes to the mapped area 2263 * do not percolate back to the file as seen by read(). 2264 * (This is a bug on some variants of i386 svr4.0.) 2265 */ 2266 for (i = 0; i < pagesize; ++i) 2267 *(data2 + i) = *(data2 + i) + 1; 2268 data3 = malloc(pagesize); 2269 if (!data3) 2270 exit(1); 2271 if (read(fd, data3, pagesize) != pagesize) 2272 exit(1); 2273 for (i = 0; i < pagesize; ++i) 2274 if (*(data + i) != *(data3 + i)) 2275 exit(1); 2276 close(fd); 2277 unlink("conftestmmap"); 2278 exit(0); |
1590} 1591 1592EOF | 2279} 2280 2281EOF |
1593eval $ac_link 1594if test -s conftest && (./conftest; exit) 2>/dev/null; then 1595 ac_cv_func_mmap=yes | 2282if { (eval echo configure:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2283then 2284 ac_cv_func_mmap_fixed_mapped=yes |
1596else | 2285else |
1597 ac_cv_func_mmap=no | 2286 echo "configure: failed program was:" >&5 2287 cat conftest.$ac_ext >&5 2288 rm -fr conftest* 2289 ac_cv_func_mmap_fixed_mapped=no |
1598fi | 2290fi |
1599fi | |
1600rm -fr conftest* 1601fi | 2291rm -fr conftest* 2292fi |
1602echo "$ac_t""$ac_cv_func_mmap" 1>&6 1603if test $ac_cv_func_mmap = yes; then | 2293 2294fi 2295 2296echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 2297if test $ac_cv_func_mmap_fixed_mapped = yes; then |
1604 cat >> confdefs.h <<\EOF 1605#define HAVE_MMAP 1 1606EOF 1607 1608fi 1609 1610saved_libs="$LIBS" | 2298 cat >> confdefs.h <<\EOF 2299#define HAVE_MMAP 1 2300EOF 2301 2302fi 2303 2304saved_libs="$LIBS" |
1611LIBS="$LIBS -lm" | 2305LIBS="$LIBS -lc $LIBM" |
1612for ac_func in fmod strtol getcwd strerror putenv 1613do 1614echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 2306for ac_func in fmod strtol getcwd strerror putenv 2307do 2308echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2309echo "configure:2310: checking for $ac_func" >&5 |
|
1615if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1616 echo $ac_n "(cached) $ac_c" 1>&6 1617else 1618 cat > conftest.$ac_ext <<EOF | 2310if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2311 echo $ac_n "(cached) $ac_c" 1>&6 2312else 2313 cat > conftest.$ac_ext <<EOF |
1619#line 1620 "configure" | 2314#line 2315 "configure" |
1620#include "confdefs.h" 1621/* System header to define __stub macros and hopefully few prototypes, 1622 which can conflict with char $ac_func(); below. */ 1623#include <assert.h> 1624/* Override any gcc2 internal prototype to avoid an error. */ | 2315#include "confdefs.h" 2316/* System header to define __stub macros and hopefully few prototypes, 2317 which can conflict with char $ac_func(); below. */ 2318#include <assert.h> 2319/* Override any gcc2 internal prototype to avoid an error. */ |
1625char $ac_func(); | 2320/* We use char because int might match the return type of a gcc2 2321 builtin and then its argument prototype would still apply. */ 2322char $ac_func(); |
1626 | 2323 |
1627int main() { return 0; } 1628int t() { | 2324int main() { |
1629 1630/* The GNU C library defines this for functions which it implements 1631 to always fail with ENOSYS. Some functions are actually named 1632 something starting with __ and the normal name is an alias. */ 1633#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1634choke me 1635#else 1636$ac_func(); 1637#endif 1638 1639; return 0; } 1640EOF | 2325 2326/* The GNU C library defines this for functions which it implements 2327 to always fail with ENOSYS. Some functions are actually named 2328 something starting with __ and the normal name is an alias. */ 2329#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2330choke me 2331#else 2332$ac_func(); 2333#endif 2334 2335; return 0; } 2336EOF |
1641if eval $ac_link; then | 2337if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1642 rm -rf conftest* 1643 eval "ac_cv_func_$ac_func=yes" 1644else | 2338 rm -rf conftest* 2339 eval "ac_cv_func_$ac_func=yes" 2340else |
2341 echo "configure: failed program was:" >&5 2342 cat conftest.$ac_ext >&5 |
|
1645 rm -rf conftest* 1646 eval "ac_cv_func_$ac_func=no" 1647fi 1648rm -f conftest* | 2343 rm -rf conftest* 2344 eval "ac_cv_func_$ac_func=no" 2345fi 2346rm -f conftest* |
1649 | |
1650fi | 2347fi |
2348 |
|
1651if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1652 echo "$ac_t""yes" 1>&6 | 2349if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2350 echo "$ac_t""yes" 1>&6 |
1653 : | 2351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2352 cat >> confdefs.h <<EOF 2353#define $ac_tr_func 1 2354EOF 2355 |
1654else 1655 echo "$ac_t""no" 1>&6 | 2356else 2357 echo "$ac_t""no" 1>&6 |
1656LIBOBJS="$LIBOBJS ${ac_func}.o" | 2358LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
1657fi | 2359fi |
1658 | |
1659done 1660 | 2360done 2361 |
2362 |
|
1661LIBS="$saved_libs" 1662for ac_func in rename mkstemp 1663do 1664echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 2363LIBS="$saved_libs" 2364for ac_func in rename mkstemp 2365do 2366echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2367echo "configure:2368: checking for $ac_func" >&5 |
|
1665if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1666 echo $ac_n "(cached) $ac_c" 1>&6 1667else 1668 cat > conftest.$ac_ext <<EOF | 2368if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2369 echo $ac_n "(cached) $ac_c" 1>&6 2370else 2371 cat > conftest.$ac_ext <<EOF |
1669#line 1670 "configure" | 2372#line 2373 "configure" |
1670#include "confdefs.h" 1671/* System header to define __stub macros and hopefully few prototypes, 1672 which can conflict with char $ac_func(); below. */ 1673#include <assert.h> 1674/* Override any gcc2 internal prototype to avoid an error. */ | 2373#include "confdefs.h" 2374/* System header to define __stub macros and hopefully few prototypes, 2375 which can conflict with char $ac_func(); below. */ 2376#include <assert.h> 2377/* Override any gcc2 internal prototype to avoid an error. */ |
1675char $ac_func(); | 2378/* We use char because int might match the return type of a gcc2 2379 builtin and then its argument prototype would still apply. */ 2380char $ac_func(); |
1676 | 2381 |
1677int main() { return 0; } 1678int t() { | 2382int main() { |
1679 1680/* The GNU C library defines this for functions which it implements 1681 to always fail with ENOSYS. Some functions are actually named 1682 something starting with __ and the normal name is an alias. */ 1683#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1684choke me 1685#else 1686$ac_func(); 1687#endif 1688 1689; return 0; } 1690EOF | 2383 2384/* The GNU C library defines this for functions which it implements 2385 to always fail with ENOSYS. Some functions are actually named 2386 something starting with __ and the normal name is an alias. */ 2387#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2388choke me 2389#else 2390$ac_func(); 2391#endif 2392 2393; return 0; } 2394EOF |
1691if eval $ac_link; then | 2395if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1692 rm -rf conftest* 1693 eval "ac_cv_func_$ac_func=yes" 1694else | 2396 rm -rf conftest* 2397 eval "ac_cv_func_$ac_func=yes" 2398else |
2399 echo "configure: failed program was:" >&5 2400 cat conftest.$ac_ext >&5 |
|
1695 rm -rf conftest* 1696 eval "ac_cv_func_$ac_func=no" 1697fi 1698rm -f conftest* | 2401 rm -rf conftest* 2402 eval "ac_cv_func_$ac_func=no" 2403fi 2404rm -f conftest* |
1699 | |
1700fi | 2405fi |
2406 |
|
1701if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1702 echo "$ac_t""yes" 1>&6 | 2407if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2408 echo "$ac_t""yes" 1>&6 |
1703 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'` | 2409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
1704 cat >> confdefs.h <<EOF 1705#define $ac_tr_func 1 1706EOF 1707 1708else 1709 echo "$ac_t""no" 1>&6 1710fi 1711done 1712 1713echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | 2410 cat >> confdefs.h <<EOF 2411#define $ac_tr_func 1 2412EOF 2413 2414else 2415 echo "$ac_t""no" 1>&6 2416fi 2417done 2418 2419echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 |
2420echo "configure:2421: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
|
1714if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then 1715 echo $ac_n "(cached) $ac_c" 1>&6 1716else 1717 cat > conftest.$ac_ext <<EOF | 2421if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then 2422 echo $ac_n "(cached) $ac_c" 1>&6 2423else 2424 cat > conftest.$ac_ext <<EOF |
1718#line 1719 "configure" | 2425#line 2426 "configure" |
1719#include "confdefs.h" 1720#include <sys/types.h> 1721#include <signal.h> 1722/* NetBSD declares sys_siglist in unistd.h. */ 1723#ifdef HAVE_UNISTD_H 1724#include <unistd.h> 1725#endif | 2426#include "confdefs.h" 2427#include <sys/types.h> 2428#include <signal.h> 2429/* NetBSD declares sys_siglist in unistd.h. */ 2430#ifdef HAVE_UNISTD_H 2431#include <unistd.h> 2432#endif |
1726int main() { return 0; } 1727int t() { | 2433int main() { |
1728char *msg = *(sys_siglist + 1); 1729; return 0; } 1730EOF | 2434char *msg = *(sys_siglist + 1); 2435; return 0; } 2436EOF |
1731if eval $ac_compile; then | 2437if { (eval echo configure:2438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1732 rm -rf conftest* 1733 ac_cv_decl_sys_siglist=yes 1734else | 2438 rm -rf conftest* 2439 ac_cv_decl_sys_siglist=yes 2440else |
2441 echo "configure: failed program was:" >&5 2442 cat conftest.$ac_ext >&5 |
|
1735 rm -rf conftest* 1736 ac_cv_decl_sys_siglist=no 1737fi 1738rm -f conftest* | 2443 rm -rf conftest* 2444 ac_cv_decl_sys_siglist=no 2445fi 2446rm -f conftest* |
1739 | |
1740fi | 2447fi |
2448 |
|
1741echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 1742if test $ac_cv_decl_sys_siglist = yes; then 1743 cat >> confdefs.h <<\EOF 1744#define SYS_SIGLIST_DECLARED 1 1745EOF 1746 1747fi 1748 1749 1750ac_ext=C 1751# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1752ac_cpp='$CXXCPP $CPPFLAGS' | 2449echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 2450if test $ac_cv_decl_sys_siglist = yes; then 2451 cat >> confdefs.h <<\EOF 2452#define SYS_SIGLIST_DECLARED 1 2453EOF 2454 2455fi 2456 2457 2458ac_ext=C 2459# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2460ac_cpp='$CXXCPP $CPPFLAGS' |
1753ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1754ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 2461ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2462ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2463cross_compiling=$ac_cv_prog_cxx_cross |
1755 1756echo $ac_n "checking whether ANSI array delete syntax supported""... $ac_c" 1>&6 | 2464 2465echo $ac_n "checking whether ANSI array delete syntax supported""... $ac_c" 1>&6 |
2466echo "configure:2467: checking whether ANSI array delete syntax supported" >&5 |
|
1757cat > conftest.$ac_ext <<EOF | 2467cat > conftest.$ac_ext <<EOF |
1758#line 1759 "configure" | 2468#line 2469 "configure" |
1759#include "confdefs.h" 1760 | 2469#include "confdefs.h" 2470 |
1761int main() { return 0; } 1762int t() { | 2471int main() { |
1763char *p = new char[5]; delete [] p; 1764; return 0; } 1765EOF | 2472char *p = new char[5]; delete [] p; 2473; return 0; } 2474EOF |
1766if eval $ac_compile; then | 2475if { (eval echo configure:2476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1767 rm -rf conftest* 1768 echo "$ac_t""yes" 1>&6 1769else | 2476 rm -rf conftest* 2477 echo "$ac_t""yes" 1>&6 2478else |
2479 echo "configure: failed program was:" >&5 2480 cat conftest.$ac_ext >&5 |
|
1770 rm -rf conftest* 1771 echo "$ac_t""no" 1>&6;cat >> confdefs.h <<\EOF 1772#define ARRAY_DELETE_NEEDS_SIZE 1 1773EOF 1774 1775fi 1776rm -f conftest* | 2481 rm -rf conftest* 2482 echo "$ac_t""no" 1>&6;cat >> confdefs.h <<\EOF 2483#define ARRAY_DELETE_NEEDS_SIZE 1 2484EOF 2485 2486fi 2487rm -f conftest* |
1777 | |
1778ac_ext=c 1779# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1780ac_cpp='$CPP $CPPFLAGS' | 2488ac_ext=c 2489# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2490ac_cpp='$CPP $CPPFLAGS' |
1781ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1782ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 2491ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2492ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2493cross_compiling=$ac_cv_prog_cc_cross |
1783 1784 1785ac_ext=C 1786# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1787ac_cpp='$CXXCPP $CPPFLAGS' | 2494 2495 2496ac_ext=C 2497# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2498ac_cpp='$CXXCPP $CPPFLAGS' |
1788ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1789ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 2499ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2500ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2501cross_compiling=$ac_cv_prog_cxx_cross |
1790 1791echo $ac_n "checking traditional preprocessor""... $ac_c" 1>&6 | 2502 2503echo $ac_n "checking traditional preprocessor""... $ac_c" 1>&6 |
2504echo "configure:2505: checking traditional preprocessor" >&5 |
|
1792cat > conftest.$ac_ext <<EOF | 2505cat > conftest.$ac_ext <<EOF |
1793#line 1794 "configure" | 2506#line 2507 "configure" |
1794#include "confdefs.h" 1795#define name2(a,b) a/**/b | 2507#include "confdefs.h" 2508#define name2(a,b) a/**/b |
1796int main() { return 0; } 1797int t() { | 2509int main() { |
1798int name2(foo,bar); 1799; return 0; } 1800EOF | 2510int name2(foo,bar); 2511; return 0; } 2512EOF |
1801if eval $ac_compile; then | 2513if { (eval echo configure:2514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1802 rm -rf conftest* 1803 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1804#define TRADITIONAL_CPP 1 1805EOF 1806 1807else | 2514 rm -rf conftest* 2515 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 2516#define TRADITIONAL_CPP 1 2517EOF 2518 2519else |
2520 echo "configure: failed program was:" >&5 2521 cat conftest.$ac_ext >&5 |
|
1808 rm -rf conftest* 1809 echo "$ac_t""no" 1>&6 1810fi 1811rm -f conftest* | 2522 rm -rf conftest* 2523 echo "$ac_t""no" 1>&6 2524fi 2525rm -f conftest* |
1812 | |
1813ac_ext=c 1814# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1815ac_cpp='$CPP $CPPFLAGS' | 2526ac_ext=c 2527# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2528ac_cpp='$CPP $CPPFLAGS' |
1816ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 1817ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | 2529ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2530ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2531cross_compiling=$ac_cv_prog_cc_cross |
1818 1819echo $ac_n "checking w_coredump""... $ac_c" 1>&6 | 2532 2533echo $ac_n "checking w_coredump""... $ac_c" 1>&6 |
2534echo "configure:2535: checking w_coredump" >&5 |
|
1820if test "$cross_compiling" = yes; then 1821 echo "$ac_t""no" 1>&6 1822else | 2535if test "$cross_compiling" = yes; then 2536 echo "$ac_t""no" 1>&6 2537else |
1823cat > conftest.$ac_ext < | 2538 cat > conftest.$ac_ext <<EOF 2539#line 2540 "configure" |
1825#include "confdefs.h" | 2540#include "confdefs.h" |
1826 | |
1827#include <sys/types.h> 1828#include <sys/wait.h> 1829main() 1830{ 1831#ifdef WCOREFLAG 1832 exit(1); 1833#else 1834 int i = 0; 1835 ((union wait *)&i)->w_coredump = 1; 1836 exit(i != 0200); 1837#endif 1838} | 2541#include <sys/types.h> 2542#include <sys/wait.h> 2543main() 2544{ 2545#ifdef WCOREFLAG 2546 exit(1); 2547#else 2548 int i = 0; 2549 ((union wait *)&i)->w_coredump = 1; 2550 exit(i != 0200); 2551#endif 2552} |
1839 | |
1840EOF | 2553EOF |
1841eval $ac_link 1842if test -s conftest && (./conftest; exit) 2>/dev/null; then | 2554if { (eval echo configure:2555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2555then |
1843 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 1844#define WCOREFLAG 0200 1845EOF 1846 1847else | 2556 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF 2557#define WCOREFLAG 0200 2558EOF 2559 2560else |
2561 echo "configure: failed program was:" >&5 2562 cat conftest.$ac_ext >&5 2563 rm -fr conftest* |
|
1848 echo "$ac_t""no" 1>&6 1849fi | 2564 echo "$ac_t""no" 1>&6 2565fi |
1850fi | |
1851rm -fr conftest* | 2566rm -fr conftest* |
2567fi 2568 |
|
1852echo $ac_n "checking default value for grops -b option""... $ac_c" 1>&6 | 2569echo $ac_n "checking default value for grops -b option""... $ac_c" 1>&6 |
2570echo "configure:2571: checking default value for grops -b option" >&5 |
|
1853test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7 1854echo "$ac_t""$BROKEN_SPOOLER_FLAGS" 1>&6 1855 1856echo $ac_n "checking default paper size""... $ac_c" 1>&6 | 2571test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7 2572echo "$ac_t""$BROKEN_SPOOLER_FLAGS" 1>&6 2573 2574echo $ac_n "checking default paper size""... $ac_c" 1>&6 |
1857if test -z "$PAGE" 1858then | 2575echo "configure:2576: checking default paper size" >&5 2576if test -z "$PAGE"; then |
1859 descfile= | 2577 descfile= |
1860 if test -r $prefix/share/groff/font/devps/DESC 1861 then | 2578 if test -r $prefix/share/groff/font/devps/DESC; then |
1862 descfile=$prefix/share/groff/font/devps/DESC | 2579 descfile=$prefix/share/groff/font/devps/DESC |
1863 elif test -r $prefix/lib/groff/font/devps/DESC 1864 then | 2580 elif test -r $prefix/lib/groff/font/devps/DESC; then |
1865 descfile=$prefix/lib/groff/font/devps/DESC 1866 fi 1867 if test -n "$descfile" \ | 2581 descfile=$prefix/lib/groff/font/devps/DESC 2582 fi 2583 if test -n "$descfile" \ |
1868 && grep "^paperlength 841890" $descfile >/dev/null 2>&1 1869 then | 2584 && grep "^paperlength 841890" $descfile >/dev/null 2>&1; then |
1870 PAGE=A4 1871 else 1872 PAGE=letter 1873 fi 1874fi | 2585 PAGE=A4 2586 else 2587 PAGE=letter 2588 fi 2589fi |
1875if test -z "$PAGE" 1876then | 2590if test -z "$PAGE"; then |
1877 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \ 1878 /etc/resolv.conf 2>/dev/null` | 2591 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \ 2592 /etc/resolv.conf 2>/dev/null` |
1879 1880 if test -z "$dom" 1881 then | 2593 if test -z "$dom"; then |
1882 dom=`(domainname) 2>/dev/null | tr -d '+'` | 2594 dom=`(domainname) 2>/dev/null | tr -d '+'` |
1883 if test -z "$dom" 1884 then | 2595 if test -z "$dom"; then |
1885 dom=`(hostname) 2>/dev/null | grep '\.'` 1886 fi 1887 fi | 2596 dom=`(hostname) 2>/dev/null | grep '\.'` 2597 fi 2598 fi |
1888 | |
1889 # If the top-level domain is two letters and it's not `us' or `ca' 1890 # then they probably use A4 paper. 1891 case "$dom" in 1892 *.[Uu][Ss]|*.[Cc][Aa]) ;; 1893 *.[A-Za-z][A-Za-z]) PAGE=A4 ;; 1894 esac 1895fi 1896test -n "$PAGE" || PAGE=letter 1897echo "$ac_t""$PAGE" 1>&6 1898 1899echo $ac_n "checking for existing troff installation""... $ac_c" 1>&6 | 2599 # If the top-level domain is two letters and it's not `us' or `ca' 2600 # then they probably use A4 paper. 2601 case "$dom" in 2602 *.[Uu][Ss]|*.[Cc][Aa]) ;; 2603 *.[A-Za-z][A-Za-z]) PAGE=A4 ;; 2604 esac 2605fi 2606test -n "$PAGE" || PAGE=letter 2607echo "$ac_t""$PAGE" 1>&6 2608 2609echo $ac_n "checking for existing troff installation""... $ac_c" 1>&6 |
1900if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" \ 1901 = x0 1902then | 2610echo "configure:2611: checking for existing troff installation" >&5 2611if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then |
1903 echo "$ac_t""yes" 1>&6 1904 g=g 1905else 1906 echo "$ac_t""no" 1>&6 1907 g= 1908fi 1909 1910 | 2612 echo "$ac_t""yes" 1>&6 2613 g=g 2614else 2615 echo "$ac_t""no" 1>&6 2616 g= 2617fi 2618 2619 |
1911 | |
1912echo $ac_n "checking for prefix of system macro packages""... $ac_c" 1>&6 | 2620echo $ac_n "checking for prefix of system macro packages""... $ac_c" 1>&6 |
2621echo "configure:2622: checking for prefix of system macro packages" >&5 |
|
1913sys_tmac_prefix= 1914sys_tmac_file_prefix= | 2622sys_tmac_prefix= 2623sys_tmac_file_prefix= |
1915for d in /usr/share/lib/tmac /usr/lib/tmac 1916do 1917 for t in "" tmac. 1918 do 1919 for m in an s m 1920 do | 2624for d in /usr/share/lib/tmac /usr/lib/tmac; do 2625 for t in "" tmac.; do 2626 for m in an s m; do |
1921 f=$d/$t$m 1922 if test -z "$sys_tmac_prefix" \ 1923 && test -f $f \ | 2627 f=$d/$t$m 2628 if test -z "$sys_tmac_prefix" \ 2629 && test -f $f \ |
1924 && grep '^\.if' $f >/dev/null 2>&1 1925 then | 2630 && grep '^\.if' $f >/dev/null 2>&1; then |
1926 sys_tmac_prefix=$d/$t 1927 sys_tmac_file_prefix=$t 1928 fi 1929 done 1930 done 1931done 1932echo "$ac_t""$sys_tmac_prefix" 1>&6 1933 1934tmac_wrap= 1935echo $ac_n "checking which system macro packages should be made available""... $ac_c" 1>&6 | 2631 sys_tmac_prefix=$d/$t 2632 sys_tmac_file_prefix=$t 2633 fi 2634 done 2635 done 2636done 2637echo "$ac_t""$sys_tmac_prefix" 1>&6 2638 2639tmac_wrap= 2640echo $ac_n "checking which system macro packages should be made available""... $ac_c" 1>&6 |
1936if test "x$sys_tmac_file_prefix" = "xtmac." 1937then 1938 for f in $sys_tmac_prefix* 1939 do | 2641echo "configure:2642: checking which system macro packages should be made available" >&5 2642if test "x$sys_tmac_file_prefix" = "xtmac."; then 2643 for f in $sys_tmac_prefix*; do |
1940 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"` 1941 case "$suff" in | 2644 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"` 2645 case "$suff" in |
1942 e);; | 2646 e) ;; |
1943 *) | 2647 *) |
1944 grep "Copyright.*Free Software Foundation" $f >/dev/null \ 1945 || tmac_wrap="$tmac_wrap $suff" 1946 ;; | 2648 grep "Copyright.*Free Software Foundation" $f >/dev/null \ 2649 || tmac_wrap="$tmac_wrap $suff" ;; |
1947 esac 1948 done | 2650 esac 2651 done |
1949elif test -n "$sys_tmac_prefix" 1950then | 2652elif test -n "$sys_tmac_prefix"; then |
1951 files=`echo $sys_tmac_prefix*` 1952 grep "\\.so" $files >conftest.sol | 2653 files=`echo $sys_tmac_prefix*` 2654 grep "\\.so" $files >conftest.sol |
1953 for f in $files 1954 do | 2655 for f in $files; do |
1955 case "$f" in | 2656 case "$f" in |
1956 ${sys_tmac_prefix}e) ;; | 2657 ${sys_tmac_prefix}e) ;; |
1957 *.me) ;; 1958 */ms.*) ;; 1959 *) | 2658 *.me) ;; 2659 */ms.*) ;; 2660 *) |
1960 b=`basename $f` 1961 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \ 1962 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null 1963 then 1964 : 1965 else 1966 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"` 1967 case "$suff" in 1968 tmac.*);; 1969 *) tmac_wrap="$tmac_wrap $suff" ;; 1970 esac 1971 fi | 2661 b=`basename $f` 2662 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \ 2663 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then 2664 : 2665 else 2666 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"` 2667 case "$suff" in 2668 tmac.*) ;; 2669 *) tmac_wrap="$tmac_wrap $suff" ;; 2670 esac 2671 fi |
1972 esac 1973 done 1974 rm -f conftest.sol 1975fi 1976echo "$ac_t""$tmac_wrap" 1>&6 1977 1978 1979trap '' 1 2 15 --- 8 unchanged lines hidden (view full) --- 1988# the --cache-file=FILE option to use a different cache file; that is 1989# what configure does when it calls configure scripts in 1990# subdirectories, so they share the cache. 1991# Giving --cache-file=/dev/null disables caching, for debugging configure. 1992# config.status only pays attention to the cache file if you give it the 1993# --recheck option to rerun configure. 1994# 1995EOF | 2672 esac 2673 done 2674 rm -f conftest.sol 2675fi 2676echo "$ac_t""$tmac_wrap" 1>&6 2677 2678 2679trap '' 1 2 15 --- 8 unchanged lines hidden (view full) --- 2688# the --cache-file=FILE option to use a different cache file; that is 2689# what configure does when it calls configure scripts in 2690# subdirectories, so they share the cache. 2691# Giving --cache-file=/dev/null disables caching, for debugging configure. 2692# config.status only pays attention to the cache file if you give it the 2693# --recheck option to rerun configure. 2694# 2695EOF |
2696# The following way of writing the cache mishandles newlines in values, 2697# but we know of no workaround that is simple, portable, and efficient. 2698# So, don't put newlines in cache variables' values. |
|
1996# Ultrix sh set writes to stderr and can't be redirected directly, 1997# and sets the high bit in the cache file unless we assign to the vars. 1998(set) 2>&1 | | 2699# Ultrix sh set writes to stderr and can't be redirected directly, 2700# and sets the high bit in the cache file unless we assign to the vars. 2701(set) 2>&1 | |
1999 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ 2000 >> confcache | 2702 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2703 *ac_space=\ *) 2704 # `set' does not quote correctly, so add quotes (double-quote substitution 2705 # turns \\\\ into \\, and sed turns \\ into \). 2706 sed -n \ 2707 -e "s/'/'\\\\''/g" \ 2708 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2709 ;; 2710 *) 2711 # `set' quotes correctly as required by POSIX, so do not add quotes. 2712 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2713 ;; 2714 esac >> confcache |
2001if cmp -s $cache_file confcache; then 2002 : 2003else 2004 if test -w $cache_file; then 2005 echo "updating cache $cache_file" 2006 cat confcache > $cache_file 2007 else 2008 echo "not updating unwritable cache $cache_file" --- 15 unchanged lines hidden (view full) --- 2024fi 2025 2026trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 2027 2028# Transform confdefs.h into DEFS. 2029# Protect against shell expansion while executing Makefile rules. 2030# Protect against Makefile macro expansion. 2031cat > conftest.defs <<\EOF | 2715if cmp -s $cache_file confcache; then 2716 : 2717else 2718 if test -w $cache_file; then 2719 echo "updating cache $cache_file" 2720 cat confcache > $cache_file 2721 else 2722 echo "not updating unwritable cache $cache_file" --- 15 unchanged lines hidden (view full) --- 2738fi 2739 2740trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 2741 2742# Transform confdefs.h into DEFS. 2743# Protect against shell expansion while executing Makefile rules. 2744# Protect against Makefile macro expansion. 2745cat > conftest.defs <<\EOF |
2032s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g | 2746s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
2033s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 2034s%\[%\\&%g 2035s%\]%\\&%g 2036s%\$%$$%g 2037EOF 2038DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 2039rm -f conftest.defs 2040 --- 18 unchanged lines hidden (view full) --- 2059ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 2060for ac_option 2061do 2062 case "\$ac_option" in 2063 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2064 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2065 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2066 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | 2747s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 2748s%\[%\\&%g 2749s%\]%\\&%g 2750s%\$%$$%g 2751EOF 2752DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 2753rm -f conftest.defs 2754 --- 18 unchanged lines hidden (view full) --- 2773ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 2774for ac_option 2775do 2776 case "\$ac_option" in 2777 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2778 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2779 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2780 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
2067 echo "$CONFIG_STATUS generated by autoconf version 2.4" | 2781 echo "$CONFIG_STATUS generated by autoconf version 2.13" |
2068 exit 0 ;; 2069 -help | --help | --hel | --he | --h) 2070 echo "\$ac_cs_usage"; exit 0 ;; 2071 *) echo "\$ac_cs_usage"; exit 1 ;; 2072 esac 2073done 2074 2075ac_given_srcdir=$srcdir 2076ac_given_INSTALL="$INSTALL" 2077 2078trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | 2782 exit 0 ;; 2783 -help | --help | --hel | --he | --h) 2784 echo "\$ac_cs_usage"; exit 0 ;; 2785 *) echo "\$ac_cs_usage"; exit 1 ;; 2786 esac 2787done 2788 2789ac_given_srcdir=$srcdir 2790ac_given_INSTALL="$INSTALL" 2791 2792trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
2793EOF 2794cat >> $CONFIG_STATUS <<EOF |
|
2079 | 2795 |
2080# Protect against being on the right side of a sed subst in config.status. 2081sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 2082 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF | 2796# Protect against being on the right side of a sed subst in config.status. 2797sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 2798 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
2083$ac_vpsub 2084$extrasub | 2799$ac_vpsub 2800$extrasub |
2801s%@SHELL@%$SHELL%g |
|
2085s%@CFLAGS@%$CFLAGS%g 2086s%@CPPFLAGS@%$CPPFLAGS%g 2087s%@CXXFLAGS@%$CXXFLAGS%g | 2802s%@CFLAGS@%$CFLAGS%g 2803s%@CPPFLAGS@%$CPPFLAGS%g 2804s%@CXXFLAGS@%$CXXFLAGS%g |
2805s%@FFLAGS@%$FFLAGS%g |
|
2088s%@DEFS@%$DEFS%g 2089s%@LDFLAGS@%$LDFLAGS%g 2090s%@LIBS@%$LIBS%g 2091s%@exec_prefix@%$exec_prefix%g 2092s%@prefix@%$prefix%g 2093s%@program_transform_name@%$program_transform_name%g | 2806s%@DEFS@%$DEFS%g 2807s%@LDFLAGS@%$LDFLAGS%g 2808s%@LIBS@%$LIBS%g 2809s%@exec_prefix@%$exec_prefix%g 2810s%@prefix@%$prefix%g 2811s%@program_transform_name@%$program_transform_name%g |
2094s%@GROPS@%$GROPS%g | 2812s%@bindir@%$bindir%g 2813s%@sbindir@%$sbindir%g 2814s%@libexecdir@%$libexecdir%g 2815s%@datadir@%$datadir%g 2816s%@sysconfdir@%$sysconfdir%g 2817s%@sharedstatedir@%$sharedstatedir%g 2818s%@localstatedir@%$localstatedir%g 2819s%@libdir@%$libdir%g 2820s%@includedir@%$includedir%g 2821s%@oldincludedir@%$oldincludedir%g 2822s%@infodir@%$infodir%g 2823s%@mandir@%$mandir%g |
2095s%@CC@%$CC%g 2096s%@CXX@%$CXX%g 2097s%@LPR@%$LPR%g 2098s%@LP@%$LP%g 2099s%@LPQ@%$LPQ%g 2100s%@PSPRINT@%$PSPRINT%g 2101s%@DVIPRINT@%$DVIPRINT%g 2102s%@PERLPATH@%$PERLPATH%g 2103s%@YACC@%$YACC%g 2104s%@RANLIB@%$RANLIB%g 2105s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | 2824s%@CC@%$CC%g 2825s%@CXX@%$CXX%g 2826s%@LPR@%$LPR%g 2827s%@LP@%$LP%g 2828s%@LPQ@%$LPQ%g 2829s%@PSPRINT@%$PSPRINT%g 2830s%@DVIPRINT@%$DVIPRINT%g 2831s%@PERLPATH@%$PERLPATH%g 2832s%@YACC@%$YACC%g 2833s%@RANLIB@%$RANLIB%g 2834s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
2835s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
|
2106s%@INSTALL_DATA@%$INSTALL_DATA%g 2107s%@LN_S@%$LN_S%g 2108s%@SH_SCRIPT_SED_CMD@%$SH_SCRIPT_SED_CMD%g 2109s%@CPP@%$CPP%g | 2836s%@INSTALL_DATA@%$INSTALL_DATA%g 2837s%@LN_S@%$LN_S%g 2838s%@SH_SCRIPT_SED_CMD@%$SH_SCRIPT_SED_CMD%g 2839s%@CPP@%$CPP%g |
2840s%@LIBM@%$LIBM%g |
|
2110s%@LIBOBJS@%$LIBOBJS%g 2111s%@BROKEN_SPOOLER_FLAGS@%$BROKEN_SPOOLER_FLAGS%g 2112s%@PAGE@%$PAGE%g 2113s%@g@%$g%g 2114s%@sys_tmac_prefix@%$sys_tmac_prefix%g 2115s%@tmac_wrap@%$tmac_wrap%g 2116 2117CEOF 2118EOF | 2841s%@LIBOBJS@%$LIBOBJS%g 2842s%@BROKEN_SPOOLER_FLAGS@%$BROKEN_SPOOLER_FLAGS%g 2843s%@PAGE@%$PAGE%g 2844s%@g@%$g%g 2845s%@sys_tmac_prefix@%$sys_tmac_prefix%g 2846s%@tmac_wrap@%$tmac_wrap%g 2847 2848CEOF 2849EOF |
2850 2851cat >> $CONFIG_STATUS <<\EOF 2852 2853# Split the substitutions into bite-sized pieces for seds with 2854# small command number limits, like on Digital OSF/1 and HP-UX. 2855ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 2856ac_file=1 # Number of current file. 2857ac_beg=1 # First line for current file. 2858ac_end=$ac_max_sed_cmds # Line after last line for current file. 2859ac_more_lines=: 2860ac_sed_cmds="" 2861while $ac_more_lines; do 2862 if test $ac_beg -gt 1; then 2863 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 2864 else 2865 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 2866 fi 2867 if test ! -s conftest.s$ac_file; then 2868 ac_more_lines=false 2869 rm -f conftest.s$ac_file 2870 else 2871 if test -z "$ac_sed_cmds"; then 2872 ac_sed_cmds="sed -f conftest.s$ac_file" 2873 else 2874 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 2875 fi 2876 ac_file=`expr $ac_file + 1` 2877 ac_beg=$ac_end 2878 ac_end=`expr $ac_end + $ac_max_sed_cmds` 2879 fi 2880done 2881if test -z "$ac_sed_cmds"; then 2882 ac_sed_cmds=cat 2883fi 2884EOF 2885 |
|
2119cat >> $CONFIG_STATUS <<EOF 2120 2121CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 2122EOF 2123cat >> $CONFIG_STATUS <<\EOF 2124for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | 2886cat >> $CONFIG_STATUS <<EOF 2887 2888CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 2889EOF 2890cat >> $CONFIG_STATUS <<\EOF 2891for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
2125 # Support "outfile[:infile]", defaulting infile="outfile.in". | 2892 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
2126 case "$ac_file" in | 2893 case "$ac_file" in |
2127 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` | 2894 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
2128 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2129 *) ac_file_in="${ac_file}.in" ;; 2130 esac 2131 | 2895 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2896 *) ac_file_in="${ac_file}.in" ;; 2897 esac 2898 |
2132 # Adjust relative srcdir, etc. for subdirectories. | 2899 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
2133 2134 # Remove last slash and all that follows it. Not all systems have dirname. 2135 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2136 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2137 # The file is in a subdirectory. 2138 test ! -d "$ac_dir" && mkdir "$ac_dir" 2139 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2140 # A "../" for each directory in $ac_dir_suffix. --- 11 unchanged lines hidden (view full) --- 2152 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2153 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2154 esac 2155 2156 case "$ac_given_INSTALL" in 2157 [/$]*) INSTALL="$ac_given_INSTALL" ;; 2158 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2159 esac | 2900 2901 # Remove last slash and all that follows it. Not all systems have dirname. 2902 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2903 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2904 # The file is in a subdirectory. 2905 test ! -d "$ac_dir" && mkdir "$ac_dir" 2906 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2907 # A "../" for each directory in $ac_dir_suffix. --- 11 unchanged lines hidden (view full) --- 2919 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2920 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2921 esac 2922 2923 case "$ac_given_INSTALL" in 2924 [/$]*) INSTALL="$ac_given_INSTALL" ;; 2925 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2926 esac |
2927 |
|
2160 echo creating "$ac_file" 2161 rm -f "$ac_file" 2162 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2163 case "$ac_file" in 2164 *Makefile*) ac_comsub="1i\\ 2165# $configure_input" ;; 2166 *) ac_comsub= ;; 2167 esac | 2928 echo creating "$ac_file" 2929 rm -f "$ac_file" 2930 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2931 case "$ac_file" in 2932 *Makefile*) ac_comsub="1i\\ 2933# $configure_input" ;; 2934 *) ac_comsub= ;; 2935 esac |
2936 2937 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
|
2168 sed -e "$ac_comsub 2169s%@configure_input@%$configure_input%g 2170s%@srcdir@%$srcdir%g 2171s%@top_srcdir@%$top_srcdir%g 2172s%@INSTALL@%$INSTALL%g | 2938 sed -e "$ac_comsub 2939s%@configure_input@%$configure_input%g 2940s%@srcdir@%$srcdir%g 2941s%@top_srcdir@%$top_srcdir%g 2942s%@INSTALL@%$INSTALL%g |
2173" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file | 2943" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
2174fi; done | 2944fi; done |
2175rm -f conftest.subs | 2945rm -f conftest.s* |
2176 | 2946 |
2947EOF 2948cat >> $CONFIG_STATUS <<EOF |
|
2177 | 2949 |
2950EOF 2951cat >> $CONFIG_STATUS <<\EOF |
|
2178 2179exit 0 2180EOF 2181chmod +x $CONFIG_STATUS 2182rm -fr confdefs* $ac_clean_files 2183test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 2184 | 2952 2953exit 0 2954EOF 2955chmod +x $CONFIG_STATUS 2956rm -fr confdefs* $ac_clean_files 2957test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 2958 |