| 1 | #! /bin/sh |
| 2 | |
| 3 | # Guess values for system-dependent variables and create Makefiles. |
| 4 | # Generated automatically using autoconf version 2.13 |
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
| 6 | # |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | |
| 10 | # Defaults: |
| 11 | ac_help= |
| 12 | ac_default_prefix=/usr/local |
| 13 | # Any additions from configure.in: |
| 14 | ac_help="$ac_help |
| 15 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 16 | (and sometimes confusing) to the casual installer" |
| 17 | ac_help="$ac_help |
| 18 | --disable-nls do not use Native Language Support" |
| 19 | ac_help="$ac_help |
| 20 | --with-included-gettext use the GNU gettext library included here" |
| 21 | ac_help="$ac_help |
| 22 | --disable-gdbcli disable command-line interface (CLI)" |
| 23 | ac_help="$ac_help |
| 24 | --disable-gdbmi disable machine-interface (MI)" |
| 25 | ac_help="$ac_help |
| 26 | --enable-tui enable full-screen terminal user interface (TUI)" |
| 27 | ac_help="$ac_help |
| 28 | --without-included-regex don't use included regex; this is the default |
| 29 | on systems with version 2 of the GNU C library |
| 30 | (use with caution on other system)" |
| 31 | ac_help="$ac_help |
| 32 | --enable-build-warnings Enable build-time compiler warnings if gcc is used" |
| 33 | ac_help="$ac_help |
| 34 | --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used" |
| 35 | ac_help="$ac_help |
| 36 | --with-mmalloc Use memory mapped malloc package" |
| 37 | ac_help="$ac_help |
| 38 | --enable-gdbtk Enable GDBTK GUI front end" |
| 39 | ac_help="$ac_help |
| 40 | --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)" |
| 41 | ac_help="$ac_help |
| 42 | --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)" |
| 43 | ac_help="$ac_help |
| 44 | --with-tclinclude=DIR Directory where tcl private headers are" |
| 45 | ac_help="$ac_help |
| 46 | --with-tkinclude=DIR Directory where tk private headers are" |
| 47 | ac_help="$ac_help |
| 48 | --with-itclconfig Directory containing itcl configuration (itclConfig.sh)" |
| 49 | ac_help="$ac_help |
| 50 | --with-itkconfig Directory containing itk configuration (itkConfig.sh)" |
| 51 | ac_help="$ac_help |
| 52 | --with-x use the X Window System" |
| 53 | ac_help="$ac_help |
| 54 | --enable-sim Link gdb with simulator" |
| 55 | ac_help="$ac_help |
| 56 | --enable-shared Use shared libraries" |
| 57 | ac_help="$ac_help |
| 58 | --enable-multi-ice build the multi-ice-gdb-server" |
| 59 | ac_help="$ac_help |
| 60 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" |
| 61 | |
| 62 | # Initialize some variables set by options. |
| 63 | # The variables have the same names as the options, with |
| 64 | # dashes changed to underlines. |
| 65 | build=NONE |
| 66 | cache_file=./config.cache |
| 67 | exec_prefix=NONE |
| 68 | host=NONE |
| 69 | no_create= |
| 70 | nonopt=NONE |
| 71 | no_recursion= |
| 72 | prefix=NONE |
| 73 | program_prefix=NONE |
| 74 | program_suffix=NONE |
| 75 | program_transform_name=s,x,x, |
| 76 | silent= |
| 77 | site= |
| 78 | sitefile= |
| 79 | srcdir= |
| 80 | target=NONE |
| 81 | verbose= |
| 82 | x_includes=NONE |
| 83 | x_libraries=NONE |
| 84 | bindir='${exec_prefix}/bin' |
| 85 | sbindir='${exec_prefix}/sbin' |
| 86 | libexecdir='${exec_prefix}/libexec' |
| 87 | datadir='${prefix}/share' |
| 88 | sysconfdir='${prefix}/etc' |
| 89 | sharedstatedir='${prefix}/com' |
| 90 | localstatedir='${prefix}/var' |
| 91 | libdir='${exec_prefix}/lib' |
| 92 | includedir='${prefix}/include' |
| 93 | oldincludedir='/usr/include' |
| 94 | infodir='${prefix}/info' |
| 95 | mandir='${prefix}/man' |
| 96 | |
| 97 | # Initialize some other variables. |
| 98 | subdirs= |
| 99 | MFLAGS= MAKEFLAGS= |
| 100 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 101 | # Maximum number of lines to put in a shell here document. |
| 102 | ac_max_here_lines=12 |
| 103 | |
| 104 | ac_prev= |
| 105 | for ac_option |
| 106 | do |
| 107 | |
| 108 | # If the previous option needs an argument, assign it. |
| 109 | if test -n "$ac_prev"; then |
| 110 | eval "$ac_prev=\$ac_option" |
| 111 | ac_prev= |
| 112 | continue |
| 113 | fi |
| 114 | |
| 115 | case "$ac_option" in |
| 116 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 117 | *) ac_optarg= ;; |
| 118 | esac |
| 119 | |
| 120 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 121 | |
| 122 | case "$ac_option" in |
| 123 | |
| 124 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 125 | ac_prev=bindir ;; |
| 126 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 127 | bindir="$ac_optarg" ;; |
| 128 | |
| 129 | -build | --build | --buil | --bui | --bu) |
| 130 | ac_prev=build ;; |
| 131 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 132 | build="$ac_optarg" ;; |
| 133 | |
| 134 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 135 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 136 | ac_prev=cache_file ;; |
| 137 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 138 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 139 | cache_file="$ac_optarg" ;; |
| 140 | |
| 141 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 142 | ac_prev=datadir ;; |
| 143 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 144 | | --da=*) |
| 145 | datadir="$ac_optarg" ;; |
| 146 | |
| 147 | -disable-* | --disable-*) |
| 148 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 149 | # Reject names that are not valid shell variable names. |
| 150 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 151 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 152 | fi |
| 153 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 154 | eval "enable_${ac_feature}=no" ;; |
| 155 | |
| 156 | -enable-* | --enable-*) |
| 157 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 158 | # Reject names that are not valid shell variable names. |
| 159 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 160 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 161 | fi |
| 162 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 163 | case "$ac_option" in |
| 164 | *=*) ;; |
| 165 | *) ac_optarg=yes ;; |
| 166 | esac |
| 167 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 168 | |
| 169 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 170 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 171 | | --exec | --exe | --ex) |
| 172 | ac_prev=exec_prefix ;; |
| 173 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 174 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 175 | | --exec=* | --exe=* | --ex=*) |
| 176 | exec_prefix="$ac_optarg" ;; |
| 177 | |
| 178 | -gas | --gas | --ga | --g) |
| 179 | # Obsolete; use --with-gas. |
| 180 | with_gas=yes ;; |
| 181 | |
| 182 | -help | --help | --hel | --he) |
| 183 | # Omit some internal or obsolete options to make the list less imposing. |
| 184 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 185 | cat << EOF |
| 186 | Usage: configure [options] [host] |
| 187 | Options: [defaults in brackets after descriptions] |
| 188 | Configuration: |
| 189 | --cache-file=FILE cache test results in FILE |
| 190 | --help print this message |
| 191 | --no-create do not create output files |
| 192 | --quiet, --silent do not print \`checking...' messages |
| 193 | --site-file=FILE use FILE as the site file |
| 194 | --version print the version of autoconf that created configure |
| 195 | Directory and file names: |
| 196 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 197 | [$ac_default_prefix] |
| 198 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 199 | [same as prefix] |
| 200 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 201 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 202 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 203 | --datadir=DIR read-only architecture-independent data in DIR |
| 204 | [PREFIX/share] |
| 205 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 206 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 207 | [PREFIX/com] |
| 208 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 209 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 210 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 211 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 212 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 213 | --mandir=DIR man documentation in DIR [PREFIX/man] |
| 214 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 215 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 216 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 217 | --program-transform-name=PROGRAM |
| 218 | run sed PROGRAM on installed program names |
| 219 | EOF |
| 220 | cat << EOF |
| 221 | Host type: |
| 222 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 223 | --host=HOST configure for HOST [guessed] |
| 224 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 225 | Features and packages: |
| 226 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 227 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 228 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 229 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 230 | --x-includes=DIR X include files are in DIR |
| 231 | --x-libraries=DIR X library files are in DIR |
| 232 | EOF |
| 233 | if test -n "$ac_help"; then |
| 234 | echo "--enable and --with options recognized:$ac_help" |
| 235 | fi |
| 236 | exit 0 ;; |
| 237 | |
| 238 | -host | --host | --hos | --ho) |
| 239 | ac_prev=host ;; |
| 240 | -host=* | --host=* | --hos=* | --ho=*) |
| 241 | host="$ac_optarg" ;; |
| 242 | |
| 243 | -includedir | --includedir | --includedi | --included | --include \ |
| 244 | | --includ | --inclu | --incl | --inc) |
| 245 | ac_prev=includedir ;; |
| 246 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 247 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 248 | includedir="$ac_optarg" ;; |
| 249 | |
| 250 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 251 | ac_prev=infodir ;; |
| 252 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 253 | infodir="$ac_optarg" ;; |
| 254 | |
| 255 | -libdir | --libdir | --libdi | --libd) |
| 256 | ac_prev=libdir ;; |
| 257 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 258 | libdir="$ac_optarg" ;; |
| 259 | |
| 260 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 261 | | --libexe | --libex | --libe) |
| 262 | ac_prev=libexecdir ;; |
| 263 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 264 | | --libexe=* | --libex=* | --libe=*) |
| 265 | libexecdir="$ac_optarg" ;; |
| 266 | |
| 267 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 268 | | --localstate | --localstat | --localsta | --localst \ |
| 269 | | --locals | --local | --loca | --loc | --lo) |
| 270 | ac_prev=localstatedir ;; |
| 271 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 272 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 273 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 274 | localstatedir="$ac_optarg" ;; |
| 275 | |
| 276 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 277 | ac_prev=mandir ;; |
| 278 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 279 | mandir="$ac_optarg" ;; |
| 280 | |
| 281 | -nfp | --nfp | --nf) |
| 282 | # Obsolete; use --without-fp. |
| 283 | with_fp=no ;; |
| 284 | |
| 285 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 286 | | --no-cr | --no-c) |
| 287 | no_create=yes ;; |
| 288 | |
| 289 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 290 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 291 | no_recursion=yes ;; |
| 292 | |
| 293 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 294 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 295 | | --oldin | --oldi | --old | --ol | --o) |
| 296 | ac_prev=oldincludedir ;; |
| 297 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 298 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 299 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 300 | oldincludedir="$ac_optarg" ;; |
| 301 | |
| 302 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 303 | ac_prev=prefix ;; |
| 304 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 305 | prefix="$ac_optarg" ;; |
| 306 | |
| 307 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 308 | | --program-pre | --program-pr | --program-p) |
| 309 | ac_prev=program_prefix ;; |
| 310 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 311 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 312 | program_prefix="$ac_optarg" ;; |
| 313 | |
| 314 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 315 | | --program-suf | --program-su | --program-s) |
| 316 | ac_prev=program_suffix ;; |
| 317 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 318 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 319 | program_suffix="$ac_optarg" ;; |
| 320 | |
| 321 | -program-transform-name | --program-transform-name \ |
| 322 | | --program-transform-nam | --program-transform-na \ |
| 323 | | --program-transform-n | --program-transform- \ |
| 324 | | --program-transform | --program-transfor \ |
| 325 | | --program-transfo | --program-transf \ |
| 326 | | --program-trans | --program-tran \ |
| 327 | | --progr-tra | --program-tr | --program-t) |
| 328 | ac_prev=program_transform_name ;; |
| 329 | -program-transform-name=* | --program-transform-name=* \ |
| 330 | | --program-transform-nam=* | --program-transform-na=* \ |
| 331 | | --program-transform-n=* | --program-transform-=* \ |
| 332 | | --program-transform=* | --program-transfor=* \ |
| 333 | | --program-transfo=* | --program-transf=* \ |
| 334 | | --program-trans=* | --program-tran=* \ |
| 335 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 336 | program_transform_name="$ac_optarg" ;; |
| 337 | |
| 338 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 339 | | -silent | --silent | --silen | --sile | --sil) |
| 340 | silent=yes ;; |
| 341 | |
| 342 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 343 | ac_prev=sbindir ;; |
| 344 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 345 | | --sbi=* | --sb=*) |
| 346 | sbindir="$ac_optarg" ;; |
| 347 | |
| 348 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 349 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 350 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 351 | | --sha | --sh) |
| 352 | ac_prev=sharedstatedir ;; |
| 353 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 354 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 355 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 356 | | --sha=* | --sh=*) |
| 357 | sharedstatedir="$ac_optarg" ;; |
| 358 | |
| 359 | -site | --site | --sit) |
| 360 | ac_prev=site ;; |
| 361 | -site=* | --site=* | --sit=*) |
| 362 | site="$ac_optarg" ;; |
| 363 | |
| 364 | -site-file | --site-file | --site-fil | --site-fi | --site-f) |
| 365 | ac_prev=sitefile ;; |
| 366 | -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) |
| 367 | sitefile="$ac_optarg" ;; |
| 368 | |
| 369 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 370 | ac_prev=srcdir ;; |
| 371 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 372 | srcdir="$ac_optarg" ;; |
| 373 | |
| 374 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 375 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 376 | ac_prev=sysconfdir ;; |
| 377 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 378 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 379 | sysconfdir="$ac_optarg" ;; |
| 380 | |
| 381 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 382 | ac_prev=target ;; |
| 383 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 384 | target="$ac_optarg" ;; |
| 385 | |
| 386 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 387 | verbose=yes ;; |
| 388 | |
| 389 | -version | --version | --versio | --versi | --vers) |
| 390 | echo "configure generated by autoconf version 2.13" |
| 391 | exit 0 ;; |
| 392 | |
| 393 | -with-* | --with-*) |
| 394 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 395 | # Reject names that are not valid shell variable names. |
| 396 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 397 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 398 | fi |
| 399 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 400 | case "$ac_option" in |
| 401 | *=*) ;; |
| 402 | *) ac_optarg=yes ;; |
| 403 | esac |
| 404 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 405 | |
| 406 | -without-* | --without-*) |
| 407 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 408 | # Reject names that are not valid shell variable names. |
| 409 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 410 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 411 | fi |
| 412 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 413 | eval "with_${ac_package}=no" ;; |
| 414 | |
| 415 | --x) |
| 416 | # Obsolete; use --with-x. |
| 417 | with_x=yes ;; |
| 418 | |
| 419 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 420 | | --x-incl | --x-inc | --x-in | --x-i) |
| 421 | ac_prev=x_includes ;; |
| 422 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 423 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 424 | x_includes="$ac_optarg" ;; |
| 425 | |
| 426 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 427 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 428 | ac_prev=x_libraries ;; |
| 429 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 430 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 431 | x_libraries="$ac_optarg" ;; |
| 432 | |
| 433 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 434 | ;; |
| 435 | |
| 436 | *) |
| 437 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 438 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 439 | fi |
| 440 | if test "x$nonopt" != xNONE; then |
| 441 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 442 | fi |
| 443 | nonopt="$ac_option" |
| 444 | ;; |
| 445 | |
| 446 | esac |
| 447 | done |
| 448 | |
| 449 | if test -n "$ac_prev"; then |
| 450 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 451 | fi |
| 452 | |
| 453 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 454 | |
| 455 | # File descriptor usage: |
| 456 | # 0 standard input |
| 457 | # 1 file creation |
| 458 | # 2 errors and warnings |
| 459 | # 3 some systems may open it to /dev/tty |
| 460 | # 4 used on the Kubota Titan |
| 461 | # 6 checking for... messages and results |
| 462 | # 5 compiler messages saved in config.log |
| 463 | if test "$silent" = yes; then |
| 464 | exec 6>/dev/null |
| 465 | else |
| 466 | exec 6>&1 |
| 467 | fi |
| 468 | exec 5>./config.log |
| 469 | |
| 470 | echo "\ |
| 471 | This file contains any messages produced by compilers while |
| 472 | running configure, to aid debugging if configure makes a mistake. |
| 473 | " 1>&5 |
| 474 | |
| 475 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 476 | # Also quote any args containing shell metacharacters. |
| 477 | ac_configure_args= |
| 478 | for ac_arg |
| 479 | do |
| 480 | case "$ac_arg" in |
| 481 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 482 | | --no-cr | --no-c) ;; |
| 483 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 484 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 485 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 486 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 487 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 488 | esac |
| 489 | done |
| 490 | |
| 491 | # NLS nuisances. |
| 492 | # Only set these to C if already set. These must not be set unconditionally |
| 493 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 494 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 495 | # Non-C LC_CTYPE values break the ctype check. |
| 496 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 497 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 498 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 499 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| 500 | |
| 501 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 502 | rm -rf conftest* confdefs.h |
| 503 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 504 | echo > confdefs.h |
| 505 | |
| 506 | # A filename unique to this package, relative to the directory that |
| 507 | # configure is in, which we can look for to find out if srcdir is correct. |
| 508 | ac_unique_file=main.c |
| 509 | |
| 510 | # Find the source files, if location was not specified. |
| 511 | if test -z "$srcdir"; then |
| 512 | ac_srcdir_defaulted=yes |
| 513 | # Try the directory containing this script, then its parent. |
| 514 | ac_prog=$0 |
| 515 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 516 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 517 | srcdir=$ac_confdir |
| 518 | if test ! -r $srcdir/$ac_unique_file; then |
| 519 | srcdir=.. |
| 520 | fi |
| 521 | else |
| 522 | ac_srcdir_defaulted=no |
| 523 | fi |
| 524 | if test ! -r $srcdir/$ac_unique_file; then |
| 525 | if test "$ac_srcdir_defaulted" = yes; then |
| 526 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 527 | else |
| 528 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 529 | fi |
| 530 | fi |
| 531 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 532 | |
| 533 | # Prefer explicitly selected file to automatically selected ones. |
| 534 | if test -z "$sitefile"; then |
| 535 | if test -z "$CONFIG_SITE"; then |
| 536 | if test "x$prefix" != xNONE; then |
| 537 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 538 | else |
| 539 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 540 | fi |
| 541 | fi |
| 542 | else |
| 543 | CONFIG_SITE="$sitefile" |
| 544 | fi |
| 545 | for ac_site_file in $CONFIG_SITE; do |
| 546 | if test -r "$ac_site_file"; then |
| 547 | echo "loading site script $ac_site_file" |
| 548 | . "$ac_site_file" |
| 549 | fi |
| 550 | done |
| 551 | |
| 552 | if test -r "$cache_file"; then |
| 553 | echo "loading cache $cache_file" |
| 554 | . $cache_file |
| 555 | else |
| 556 | echo "creating cache $cache_file" |
| 557 | > $cache_file |
| 558 | fi |
| 559 | |
| 560 | ac_ext=c |
| 561 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 562 | ac_cpp='$CPP $CPPFLAGS' |
| 563 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 564 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 565 | cross_compiling=$ac_cv_prog_cc_cross |
| 566 | |
| 567 | ac_exeext= |
| 568 | ac_objext=o |
| 569 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 570 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 571 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 572 | ac_n= ac_c=' |
| 573 | ' ac_t=' ' |
| 574 | else |
| 575 | ac_n=-n ac_c= ac_t= |
| 576 | fi |
| 577 | else |
| 578 | ac_n= ac_c='\c' ac_t= |
| 579 | fi |
| 580 | |
| 581 | |
| 582 | |
| 583 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
| 584 | echo "configure:585: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 585 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 586 | if test "${enable_maintainer_mode+set}" = set; then |
| 587 | enableval="$enable_maintainer_mode" |
| 588 | USE_MAINTAINER_MODE=$enableval |
| 589 | else |
| 590 | USE_MAINTAINER_MODE=no |
| 591 | fi |
| 592 | |
| 593 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 |
| 594 | |
| 595 | |
| 596 | if test $USE_MAINTAINER_MODE = yes; then |
| 597 | MAINTAINER_MODE_TRUE= |
| 598 | MAINTAINER_MODE_FALSE='#' |
| 599 | else |
| 600 | MAINTAINER_MODE_TRUE='#' |
| 601 | MAINTAINER_MODE_FALSE= |
| 602 | fi |
| 603 | MAINT=$MAINTAINER_MODE_TRUE |
| 604 | |
| 605 | |
| 606 | |
| 607 | # Extract the first word of "gcc", so it can be a program name with args. |
| 608 | set dummy gcc; ac_word=$2 |
| 609 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 610 | echo "configure:611: checking for $ac_word" >&5 |
| 611 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 612 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 613 | else |
| 614 | if test -n "$CC"; then |
| 615 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 616 | else |
| 617 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 618 | ac_dummy="$PATH" |
| 619 | for ac_dir in $ac_dummy; do |
| 620 | test -z "$ac_dir" && ac_dir=. |
| 621 | if test -f $ac_dir/$ac_word; then |
| 622 | ac_cv_prog_CC="gcc" |
| 623 | break |
| 624 | fi |
| 625 | done |
| 626 | IFS="$ac_save_ifs" |
| 627 | fi |
| 628 | fi |
| 629 | CC="$ac_cv_prog_CC" |
| 630 | if test -n "$CC"; then |
| 631 | echo "$ac_t""$CC" 1>&6 |
| 632 | else |
| 633 | echo "$ac_t""no" 1>&6 |
| 634 | fi |
| 635 | |
| 636 | if test -z "$CC"; then |
| 637 | # Extract the first word of "cc", so it can be a program name with args. |
| 638 | set dummy cc; ac_word=$2 |
| 639 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 640 | echo "configure:641: checking for $ac_word" >&5 |
| 641 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 642 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 643 | else |
| 644 | if test -n "$CC"; then |
| 645 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 646 | else |
| 647 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 648 | ac_prog_rejected=no |
| 649 | ac_dummy="$PATH" |
| 650 | for ac_dir in $ac_dummy; do |
| 651 | test -z "$ac_dir" && ac_dir=. |
| 652 | if test -f $ac_dir/$ac_word; then |
| 653 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 654 | ac_prog_rejected=yes |
| 655 | continue |
| 656 | fi |
| 657 | ac_cv_prog_CC="cc" |
| 658 | break |
| 659 | fi |
| 660 | done |
| 661 | IFS="$ac_save_ifs" |
| 662 | if test $ac_prog_rejected = yes; then |
| 663 | # We found a bogon in the path, so make sure we never use it. |
| 664 | set dummy $ac_cv_prog_CC |
| 665 | shift |
| 666 | if test $# -gt 0; then |
| 667 | # We chose a different compiler from the bogus one. |
| 668 | # However, it has the same basename, so the bogon will be chosen |
| 669 | # first if we set CC to just the basename; use the full file name. |
| 670 | shift |
| 671 | set dummy "$ac_dir/$ac_word" "$@" |
| 672 | shift |
| 673 | ac_cv_prog_CC="$@" |
| 674 | fi |
| 675 | fi |
| 676 | fi |
| 677 | fi |
| 678 | CC="$ac_cv_prog_CC" |
| 679 | if test -n "$CC"; then |
| 680 | echo "$ac_t""$CC" 1>&6 |
| 681 | else |
| 682 | echo "$ac_t""no" 1>&6 |
| 683 | fi |
| 684 | |
| 685 | if test -z "$CC"; then |
| 686 | case "`uname -s`" in |
| 687 | *win32* | *WIN32*) |
| 688 | # Extract the first word of "cl", so it can be a program name with args. |
| 689 | set dummy cl; ac_word=$2 |
| 690 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 691 | echo "configure:692: checking for $ac_word" >&5 |
| 692 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 693 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 694 | else |
| 695 | if test -n "$CC"; then |
| 696 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 697 | else |
| 698 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 699 | ac_dummy="$PATH" |
| 700 | for ac_dir in $ac_dummy; do |
| 701 | test -z "$ac_dir" && ac_dir=. |
| 702 | if test -f $ac_dir/$ac_word; then |
| 703 | ac_cv_prog_CC="cl" |
| 704 | break |
| 705 | fi |
| 706 | done |
| 707 | IFS="$ac_save_ifs" |
| 708 | fi |
| 709 | fi |
| 710 | CC="$ac_cv_prog_CC" |
| 711 | if test -n "$CC"; then |
| 712 | echo "$ac_t""$CC" 1>&6 |
| 713 | else |
| 714 | echo "$ac_t""no" 1>&6 |
| 715 | fi |
| 716 | ;; |
| 717 | esac |
| 718 | fi |
| 719 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 720 | fi |
| 721 | |
| 722 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 723 | echo "configure:724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 724 | |
| 725 | ac_ext=c |
| 726 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 727 | ac_cpp='$CPP $CPPFLAGS' |
| 728 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 729 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 730 | cross_compiling=$ac_cv_prog_cc_cross |
| 731 | |
| 732 | cat > conftest.$ac_ext << EOF |
| 733 | |
| 734 | #line 735 "configure" |
| 735 | #include "confdefs.h" |
| 736 | |
| 737 | main(){return(0);} |
| 738 | EOF |
| 739 | if { (eval echo configure:740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 740 | ac_cv_prog_cc_works=yes |
| 741 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 742 | if (./conftest; exit) 2>/dev/null; then |
| 743 | ac_cv_prog_cc_cross=no |
| 744 | else |
| 745 | ac_cv_prog_cc_cross=yes |
| 746 | fi |
| 747 | else |
| 748 | echo "configure: failed program was:" >&5 |
| 749 | cat conftest.$ac_ext >&5 |
| 750 | ac_cv_prog_cc_works=no |
| 751 | fi |
| 752 | rm -fr conftest* |
| 753 | ac_ext=c |
| 754 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 755 | ac_cpp='$CPP $CPPFLAGS' |
| 756 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 757 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 758 | cross_compiling=$ac_cv_prog_cc_cross |
| 759 | |
| 760 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 761 | if test $ac_cv_prog_cc_works = no; then |
| 762 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 763 | fi |
| 764 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 765 | echo "configure:766: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 766 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 767 | cross_compiling=$ac_cv_prog_cc_cross |
| 768 | |
| 769 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 770 | echo "configure:771: checking whether we are using GNU C" >&5 |
| 771 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 772 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 773 | else |
| 774 | cat > conftest.c <<EOF |
| 775 | #ifdef __GNUC__ |
| 776 | yes; |
| 777 | #endif |
| 778 | EOF |
| 779 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 780 | ac_cv_prog_gcc=yes |
| 781 | else |
| 782 | ac_cv_prog_gcc=no |
| 783 | fi |
| 784 | fi |
| 785 | |
| 786 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 787 | |
| 788 | if test $ac_cv_prog_gcc = yes; then |
| 789 | GCC=yes |
| 790 | else |
| 791 | GCC= |
| 792 | fi |
| 793 | |
| 794 | ac_test_CFLAGS="${CFLAGS+set}" |
| 795 | ac_save_CFLAGS="$CFLAGS" |
| 796 | CFLAGS= |
| 797 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 798 | echo "configure:799: checking whether ${CC-cc} accepts -g" >&5 |
| 799 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 800 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 801 | else |
| 802 | echo 'void f(){}' > conftest.c |
| 803 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 804 | ac_cv_prog_cc_g=yes |
| 805 | else |
| 806 | ac_cv_prog_cc_g=no |
| 807 | fi |
| 808 | rm -f conftest* |
| 809 | |
| 810 | fi |
| 811 | |
| 812 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 813 | if test "$ac_test_CFLAGS" = set; then |
| 814 | CFLAGS="$ac_save_CFLAGS" |
| 815 | elif test $ac_cv_prog_cc_g = yes; then |
| 816 | if test "$GCC" = yes; then |
| 817 | CFLAGS="-g -O2" |
| 818 | else |
| 819 | CFLAGS="-g" |
| 820 | fi |
| 821 | else |
| 822 | if test "$GCC" = yes; then |
| 823 | CFLAGS="-O2" |
| 824 | else |
| 825 | CFLAGS= |
| 826 | fi |
| 827 | fi |
| 828 | |
| 829 | cat >> confdefs.h <<\EOF |
| 830 | #define _GNU_SOURCE 1 |
| 831 | EOF |
| 832 | |
| 833 | |
| 834 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 835 | echo "configure:836: checking how to run the C preprocessor" >&5 |
| 836 | # On Suns, sometimes $CPP names a directory. |
| 837 | if test -n "$CPP" && test -d "$CPP"; then |
| 838 | CPP= |
| 839 | fi |
| 840 | if test -z "$CPP"; then |
| 841 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 842 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 843 | else |
| 844 | # This must be in double quotes, not single quotes, because CPP may get |
| 845 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 846 | CPP="${CC-cc} -E" |
| 847 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 848 | # not just through cpp. |
| 849 | cat > conftest.$ac_ext <<EOF |
| 850 | #line 851 "configure" |
| 851 | #include "confdefs.h" |
| 852 | #include <assert.h> |
| 853 | Syntax Error |
| 854 | EOF |
| 855 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 856 | { (eval echo configure:857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 857 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 858 | if test -z "$ac_err"; then |
| 859 | : |
| 860 | else |
| 861 | echo "$ac_err" >&5 |
| 862 | echo "configure: failed program was:" >&5 |
| 863 | cat conftest.$ac_ext >&5 |
| 864 | rm -rf conftest* |
| 865 | CPP="${CC-cc} -E -traditional-cpp" |
| 866 | cat > conftest.$ac_ext <<EOF |
| 867 | #line 868 "configure" |
| 868 | #include "confdefs.h" |
| 869 | #include <assert.h> |
| 870 | Syntax Error |
| 871 | EOF |
| 872 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 873 | { (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 874 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 875 | if test -z "$ac_err"; then |
| 876 | : |
| 877 | else |
| 878 | echo "$ac_err" >&5 |
| 879 | echo "configure: failed program was:" >&5 |
| 880 | cat conftest.$ac_ext >&5 |
| 881 | rm -rf conftest* |
| 882 | CPP="${CC-cc} -nologo -E" |
| 883 | cat > conftest.$ac_ext <<EOF |
| 884 | #line 885 "configure" |
| 885 | #include "confdefs.h" |
| 886 | #include <assert.h> |
| 887 | Syntax Error |
| 888 | EOF |
| 889 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 890 | { (eval echo configure:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 891 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 892 | if test -z "$ac_err"; then |
| 893 | : |
| 894 | else |
| 895 | echo "$ac_err" >&5 |
| 896 | echo "configure: failed program was:" >&5 |
| 897 | cat conftest.$ac_ext >&5 |
| 898 | rm -rf conftest* |
| 899 | CPP=/lib/cpp |
| 900 | fi |
| 901 | rm -f conftest* |
| 902 | fi |
| 903 | rm -f conftest* |
| 904 | fi |
| 905 | rm -f conftest* |
| 906 | ac_cv_prog_CPP="$CPP" |
| 907 | fi |
| 908 | CPP="$ac_cv_prog_CPP" |
| 909 | else |
| 910 | ac_cv_prog_CPP="$CPP" |
| 911 | fi |
| 912 | echo "$ac_t""$CPP" 1>&6 |
| 913 | |
| 914 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
| 915 | echo "configure:916: checking for AIX" >&5 |
| 916 | cat > conftest.$ac_ext <<EOF |
| 917 | #line 918 "configure" |
| 918 | #include "confdefs.h" |
| 919 | #ifdef _AIX |
| 920 | yes |
| 921 | #endif |
| 922 | |
| 923 | EOF |
| 924 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 925 | egrep "yes" >/dev/null 2>&1; then |
| 926 | rm -rf conftest* |
| 927 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 928 | #define _ALL_SOURCE 1 |
| 929 | EOF |
| 930 | |
| 931 | else |
| 932 | rm -rf conftest* |
| 933 | echo "$ac_t""no" 1>&6 |
| 934 | fi |
| 935 | rm -f conftest* |
| 936 | |
| 937 | |
| 938 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
| 939 | echo "configure:940: checking for POSIXized ISC" >&5 |
| 940 | if test -d /etc/conf/kconfig.d && |
| 941 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
| 942 | then |
| 943 | echo "$ac_t""yes" 1>&6 |
| 944 | ISC=yes # If later tests want to check for ISC. |
| 945 | cat >> confdefs.h <<\EOF |
| 946 | #define _POSIX_SOURCE 1 |
| 947 | EOF |
| 948 | |
| 949 | if test "$GCC" = yes; then |
| 950 | CC="$CC -posix" |
| 951 | else |
| 952 | CC="$CC -Xp" |
| 953 | fi |
| 954 | else |
| 955 | echo "$ac_t""no" 1>&6 |
| 956 | ISC= |
| 957 | fi |
| 958 | |
| 959 | |
| 960 | |
| 961 | |
| 962 | echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 |
| 963 | echo "configure:964: checking for ${CC-cc} option to accept ANSI C" >&5 |
| 964 | if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then |
| 965 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 966 | else |
| 967 | am_cv_prog_cc_stdc=no |
| 968 | ac_save_CC="$CC" |
| 969 | # Don't try gcc -ansi; that turns off useful extensions and |
| 970 | # breaks some systems' header files. |
| 971 | # AIX -qlanglvl=ansi |
| 972 | # Ultrix and OSF/1 -std1 |
| 973 | # HP-UX 10.20 and later -Ae |
| 974 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 975 | # SVR4 -Xc -D__EXTENSIONS__ |
| 976 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 977 | do |
| 978 | CC="$ac_save_CC $ac_arg" |
| 979 | cat > conftest.$ac_ext <<EOF |
| 980 | #line 981 "configure" |
| 981 | #include "confdefs.h" |
| 982 | #include <stdarg.h> |
| 983 | #include <stdio.h> |
| 984 | #include <sys/types.h> |
| 985 | #include <sys/stat.h> |
| 986 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 987 | struct buf { int x; }; |
| 988 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 989 | static char *e (p, i) |
| 990 | char **p; |
| 991 | int i; |
| 992 | { |
| 993 | return p[i]; |
| 994 | } |
| 995 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 996 | { |
| 997 | char *s; |
| 998 | va_list v; |
| 999 | va_start (v,p); |
| 1000 | s = g (p, va_arg (v,int)); |
| 1001 | va_end (v); |
| 1002 | return s; |
| 1003 | } |
| 1004 | int test (int i, double x); |
| 1005 | struct s1 {int (*f) (int a);}; |
| 1006 | struct s2 {int (*f) (double a);}; |
| 1007 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 1008 | int argc; |
| 1009 | char **argv; |
| 1010 | |
| 1011 | int main() { |
| 1012 | |
| 1013 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 1014 | |
| 1015 | ; return 0; } |
| 1016 | EOF |
| 1017 | if { (eval echo configure:1018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1018 | rm -rf conftest* |
| 1019 | am_cv_prog_cc_stdc="$ac_arg"; break |
| 1020 | else |
| 1021 | echo "configure: failed program was:" >&5 |
| 1022 | cat conftest.$ac_ext >&5 |
| 1023 | fi |
| 1024 | rm -f conftest* |
| 1025 | done |
| 1026 | CC="$ac_save_CC" |
| 1027 | |
| 1028 | fi |
| 1029 | |
| 1030 | if test -z "$am_cv_prog_cc_stdc"; then |
| 1031 | echo "$ac_t""none needed" 1>&6 |
| 1032 | else |
| 1033 | echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6 |
| 1034 | fi |
| 1035 | case "x$am_cv_prog_cc_stdc" in |
| 1036 | x|xno) ;; |
| 1037 | *) CC="$CC $am_cv_prog_cc_stdc" ;; |
| 1038 | esac |
| 1039 | |
| 1040 | |
| 1041 | ac_aux_dir= |
| 1042 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do |
| 1043 | if test -f $ac_dir/install-sh; then |
| 1044 | ac_aux_dir=$ac_dir |
| 1045 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1046 | break |
| 1047 | elif test -f $ac_dir/install.sh; then |
| 1048 | ac_aux_dir=$ac_dir |
| 1049 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1050 | break |
| 1051 | fi |
| 1052 | done |
| 1053 | if test -z "$ac_aux_dir"; then |
| 1054 | { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; } |
| 1055 | fi |
| 1056 | ac_config_guess=$ac_aux_dir/config.guess |
| 1057 | ac_config_sub=$ac_aux_dir/config.sub |
| 1058 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 1059 | |
| 1060 | |
| 1061 | # Do some error checking and defaulting for the host and target type. |
| 1062 | # The inputs are: |
| 1063 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
| 1064 | # |
| 1065 | # The rules are: |
| 1066 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
| 1067 | # same time. |
| 1068 | # 2. Host defaults to nonopt. |
| 1069 | # 3. If nonopt is not specified, then host defaults to the current host, |
| 1070 | # as determined by config.guess. |
| 1071 | # 4. Target and build default to nonopt. |
| 1072 | # 5. If nonopt is not specified, then target and build default to host. |
| 1073 | |
| 1074 | # The aliases save the names the user supplied, while $host etc. |
| 1075 | # will get canonicalized. |
| 1076 | case $host---$target---$nonopt in |
| 1077 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
| 1078 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
| 1079 | esac |
| 1080 | |
| 1081 | |
| 1082 | # Make sure we can run config.sub. |
| 1083 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
| 1084 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
| 1085 | fi |
| 1086 | |
| 1087 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
| 1088 | echo "configure:1089: checking host system type" >&5 |
| 1089 | |
| 1090 | host_alias=$host |
| 1091 | case "$host_alias" in |
| 1092 | NONE) |
| 1093 | case $nonopt in |
| 1094 | NONE) |
| 1095 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
| 1096 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
| 1097 | fi ;; |
| 1098 | *) host_alias=$nonopt ;; |
| 1099 | esac ;; |
| 1100 | esac |
| 1101 | |
| 1102 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
| 1103 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1104 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1105 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1106 | echo "$ac_t""$host" 1>&6 |
| 1107 | |
| 1108 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
| 1109 | echo "configure:1110: checking target system type" >&5 |
| 1110 | |
| 1111 | target_alias=$target |
| 1112 | case "$target_alias" in |
| 1113 | NONE) |
| 1114 | case $nonopt in |
| 1115 | NONE) target_alias=$host_alias ;; |
| 1116 | *) target_alias=$nonopt ;; |
| 1117 | esac ;; |
| 1118 | esac |
| 1119 | |
| 1120 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
| 1121 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1122 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1123 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1124 | echo "$ac_t""$target" 1>&6 |
| 1125 | |
| 1126 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
| 1127 | echo "configure:1128: checking build system type" >&5 |
| 1128 | |
| 1129 | build_alias=$build |
| 1130 | case "$build_alias" in |
| 1131 | NONE) |
| 1132 | case $nonopt in |
| 1133 | NONE) build_alias=$host_alias ;; |
| 1134 | *) build_alias=$nonopt ;; |
| 1135 | esac ;; |
| 1136 | esac |
| 1137 | |
| 1138 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
| 1139 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1140 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1141 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1142 | echo "$ac_t""$build" 1>&6 |
| 1143 | |
| 1144 | test "$host_alias" != "$target_alias" && |
| 1145 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1146 | NONENONEs,x,x, && |
| 1147 | program_prefix=${target_alias}- |
| 1148 | |
| 1149 | |
| 1150 | # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13 |
| 1151 | # doesn't support cross-compilation, but the one from Autoconf 2.5x |
| 1152 | # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to |
| 1153 | # deal with the lossage. Note that CY_GNU_GETTEXT currently calls |
| 1154 | # AC_PROG_RANLIB. This can be removed when we switch to # Autoconf |
| 1155 | # 2.5x. |
| 1156 | if test $host != $build; then |
| 1157 | ac_tool_prefix=${host_alias}- |
| 1158 | else |
| 1159 | ac_tool_prefix= |
| 1160 | fi |
| 1161 | |
| 1162 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 1163 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 1164 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1165 | echo "configure:1166: checking for $ac_word" >&5 |
| 1166 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1167 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1168 | else |
| 1169 | if test -n "$RANLIB"; then |
| 1170 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1171 | else |
| 1172 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1173 | ac_dummy="$PATH" |
| 1174 | for ac_dir in $ac_dummy; do |
| 1175 | test -z "$ac_dir" && ac_dir=. |
| 1176 | if test -f $ac_dir/$ac_word; then |
| 1177 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 1178 | break |
| 1179 | fi |
| 1180 | done |
| 1181 | IFS="$ac_save_ifs" |
| 1182 | fi |
| 1183 | fi |
| 1184 | RANLIB="$ac_cv_prog_RANLIB" |
| 1185 | if test -n "$RANLIB"; then |
| 1186 | echo "$ac_t""$RANLIB" 1>&6 |
| 1187 | else |
| 1188 | echo "$ac_t""no" 1>&6 |
| 1189 | fi |
| 1190 | |
| 1191 | |
| 1192 | if test -z "$ac_cv_prog_RANLIB"; then |
| 1193 | if test -n "$ac_tool_prefix"; then |
| 1194 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1195 | set dummy ranlib; ac_word=$2 |
| 1196 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1197 | echo "configure:1198: checking for $ac_word" >&5 |
| 1198 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1199 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1200 | else |
| 1201 | if test -n "$RANLIB"; then |
| 1202 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1203 | else |
| 1204 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1205 | ac_dummy="$PATH" |
| 1206 | for ac_dir in $ac_dummy; do |
| 1207 | test -z "$ac_dir" && ac_dir=. |
| 1208 | if test -f $ac_dir/$ac_word; then |
| 1209 | ac_cv_prog_RANLIB="ranlib" |
| 1210 | break |
| 1211 | fi |
| 1212 | done |
| 1213 | IFS="$ac_save_ifs" |
| 1214 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 1215 | fi |
| 1216 | fi |
| 1217 | RANLIB="$ac_cv_prog_RANLIB" |
| 1218 | if test -n "$RANLIB"; then |
| 1219 | echo "$ac_t""$RANLIB" 1>&6 |
| 1220 | else |
| 1221 | echo "$ac_t""no" 1>&6 |
| 1222 | fi |
| 1223 | |
| 1224 | else |
| 1225 | RANLIB=":" |
| 1226 | fi |
| 1227 | fi |
| 1228 | |
| 1229 | |
| 1230 | ALL_LINGUAS= |
| 1231 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| 1232 | echo "configure:1233: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 1233 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 1234 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 1235 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1236 | else |
| 1237 | cat > conftestmake <<\EOF |
| 1238 | all: |
| 1239 | @echo 'ac_maketemp="${MAKE}"' |
| 1240 | EOF |
| 1241 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1242 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 1243 | if test -n "$ac_maketemp"; then |
| 1244 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1245 | else |
| 1246 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1247 | fi |
| 1248 | rm -f conftestmake |
| 1249 | fi |
| 1250 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1251 | echo "$ac_t""yes" 1>&6 |
| 1252 | SET_MAKE= |
| 1253 | else |
| 1254 | echo "$ac_t""no" 1>&6 |
| 1255 | SET_MAKE="MAKE=${MAKE-make}" |
| 1256 | fi |
| 1257 | |
| 1258 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1259 | set dummy ranlib; ac_word=$2 |
| 1260 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1261 | echo "configure:1262: checking for $ac_word" >&5 |
| 1262 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1263 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1264 | else |
| 1265 | if test -n "$RANLIB"; then |
| 1266 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1267 | else |
| 1268 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1269 | ac_dummy="$PATH" |
| 1270 | for ac_dir in $ac_dummy; do |
| 1271 | test -z "$ac_dir" && ac_dir=. |
| 1272 | if test -f $ac_dir/$ac_word; then |
| 1273 | ac_cv_prog_RANLIB="ranlib" |
| 1274 | break |
| 1275 | fi |
| 1276 | done |
| 1277 | IFS="$ac_save_ifs" |
| 1278 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 1279 | fi |
| 1280 | fi |
| 1281 | RANLIB="$ac_cv_prog_RANLIB" |
| 1282 | if test -n "$RANLIB"; then |
| 1283 | echo "$ac_t""$RANLIB" 1>&6 |
| 1284 | else |
| 1285 | echo "$ac_t""no" 1>&6 |
| 1286 | fi |
| 1287 | |
| 1288 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 1289 | echo "configure:1290: checking for ANSI C header files" >&5 |
| 1290 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1291 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1292 | else |
| 1293 | cat > conftest.$ac_ext <<EOF |
| 1294 | #line 1295 "configure" |
| 1295 | #include "confdefs.h" |
| 1296 | #include <stdlib.h> |
| 1297 | #include <stdarg.h> |
| 1298 | #include <string.h> |
| 1299 | #include <float.h> |
| 1300 | EOF |
| 1301 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1302 | { (eval echo configure:1303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1303 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1304 | if test -z "$ac_err"; then |
| 1305 | rm -rf conftest* |
| 1306 | ac_cv_header_stdc=yes |
| 1307 | else |
| 1308 | echo "$ac_err" >&5 |
| 1309 | echo "configure: failed program was:" >&5 |
| 1310 | cat conftest.$ac_ext >&5 |
| 1311 | rm -rf conftest* |
| 1312 | ac_cv_header_stdc=no |
| 1313 | fi |
| 1314 | rm -f conftest* |
| 1315 | |
| 1316 | if test $ac_cv_header_stdc = yes; then |
| 1317 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1318 | cat > conftest.$ac_ext <<EOF |
| 1319 | #line 1320 "configure" |
| 1320 | #include "confdefs.h" |
| 1321 | #include <string.h> |
| 1322 | EOF |
| 1323 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1324 | egrep "memchr" >/dev/null 2>&1; then |
| 1325 | : |
| 1326 | else |
| 1327 | rm -rf conftest* |
| 1328 | ac_cv_header_stdc=no |
| 1329 | fi |
| 1330 | rm -f conftest* |
| 1331 | |
| 1332 | fi |
| 1333 | |
| 1334 | if test $ac_cv_header_stdc = yes; then |
| 1335 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1336 | cat > conftest.$ac_ext <<EOF |
| 1337 | #line 1338 "configure" |
| 1338 | #include "confdefs.h" |
| 1339 | #include <stdlib.h> |
| 1340 | EOF |
| 1341 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1342 | egrep "free" >/dev/null 2>&1; then |
| 1343 | : |
| 1344 | else |
| 1345 | rm -rf conftest* |
| 1346 | ac_cv_header_stdc=no |
| 1347 | fi |
| 1348 | rm -f conftest* |
| 1349 | |
| 1350 | fi |
| 1351 | |
| 1352 | if test $ac_cv_header_stdc = yes; then |
| 1353 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1354 | if test "$cross_compiling" = yes; then |
| 1355 | : |
| 1356 | else |
| 1357 | cat > conftest.$ac_ext <<EOF |
| 1358 | #line 1359 "configure" |
| 1359 | #include "confdefs.h" |
| 1360 | #include <ctype.h> |
| 1361 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1362 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 1363 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 1364 | int main () { int i; for (i = 0; i < 256; i++) |
| 1365 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1366 | exit (0); } |
| 1367 | |
| 1368 | EOF |
| 1369 | if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 1370 | then |
| 1371 | : |
| 1372 | else |
| 1373 | echo "configure: failed program was:" >&5 |
| 1374 | cat conftest.$ac_ext >&5 |
| 1375 | rm -fr conftest* |
| 1376 | ac_cv_header_stdc=no |
| 1377 | fi |
| 1378 | rm -fr conftest* |
| 1379 | fi |
| 1380 | |
| 1381 | fi |
| 1382 | fi |
| 1383 | |
| 1384 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 1385 | if test $ac_cv_header_stdc = yes; then |
| 1386 | cat >> confdefs.h <<\EOF |
| 1387 | #define STDC_HEADERS 1 |
| 1388 | EOF |
| 1389 | |
| 1390 | fi |
| 1391 | |
| 1392 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
| 1393 | echo "configure:1394: checking for working const" >&5 |
| 1394 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 1395 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1396 | else |
| 1397 | cat > conftest.$ac_ext <<EOF |
| 1398 | #line 1399 "configure" |
| 1399 | #include "confdefs.h" |
| 1400 | |
| 1401 | int main() { |
| 1402 | |
| 1403 | /* Ultrix mips cc rejects this. */ |
| 1404 | typedef int charset[2]; const charset x; |
| 1405 | /* SunOS 4.1.1 cc rejects this. */ |
| 1406 | char const *const *ccp; |
| 1407 | char **p; |
| 1408 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 1409 | struct point {int x, y;}; |
| 1410 | static struct point const zero = {0,0}; |
| 1411 | /* AIX XL C 1.02.0.0 rejects this. |
| 1412 | It does not let you subtract one const X* pointer from another in an arm |
| 1413 | of an if-expression whose if-part is not a constant expression */ |
| 1414 | const char *g = "string"; |
| 1415 | ccp = &g + (g ? g-g : 0); |
| 1416 | /* HPUX 7.0 cc rejects these. */ |
| 1417 | ++ccp; |
| 1418 | p = (char**) ccp; |
| 1419 | ccp = (char const *const *) p; |
| 1420 | { /* SCO 3.2v4 cc rejects this. */ |
| 1421 | char *t; |
| 1422 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 1423 | |
| 1424 | *t++ = 0; |
| 1425 | } |
| 1426 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 1427 | int x[] = {25, 17}; |
| 1428 | const int *foo = &x[0]; |
| 1429 | ++foo; |
| 1430 | } |
| 1431 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 1432 | typedef const int *iptr; |
| 1433 | iptr p = 0; |
| 1434 | ++p; |
| 1435 | } |
| 1436 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 1437 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 1438 | struct s { int j; const int *ap[3]; }; |
| 1439 | struct s *b; b->j = 5; |
| 1440 | } |
| 1441 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 1442 | const int foo = 10; |
| 1443 | } |
| 1444 | |
| 1445 | ; return 0; } |
| 1446 | EOF |
| 1447 | if { (eval echo configure:1448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1448 | rm -rf conftest* |
| 1449 | ac_cv_c_const=yes |
| 1450 | else |
| 1451 | echo "configure: failed program was:" >&5 |
| 1452 | cat conftest.$ac_ext >&5 |
| 1453 | rm -rf conftest* |
| 1454 | ac_cv_c_const=no |
| 1455 | fi |
| 1456 | rm -f conftest* |
| 1457 | fi |
| 1458 | |
| 1459 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 1460 | if test $ac_cv_c_const = no; then |
| 1461 | cat >> confdefs.h <<\EOF |
| 1462 | #define const |
| 1463 | EOF |
| 1464 | |
| 1465 | fi |
| 1466 | |
| 1467 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
| 1468 | echo "configure:1469: checking for inline" >&5 |
| 1469 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
| 1470 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1471 | else |
| 1472 | ac_cv_c_inline=no |
| 1473 | for ac_kw in inline __inline__ __inline; do |
| 1474 | cat > conftest.$ac_ext <<EOF |
| 1475 | #line 1476 "configure" |
| 1476 | #include "confdefs.h" |
| 1477 | |
| 1478 | int main() { |
| 1479 | } $ac_kw foo() { |
| 1480 | ; return 0; } |
| 1481 | EOF |
| 1482 | if { (eval echo configure:1483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1483 | rm -rf conftest* |
| 1484 | ac_cv_c_inline=$ac_kw; break |
| 1485 | else |
| 1486 | echo "configure: failed program was:" >&5 |
| 1487 | cat conftest.$ac_ext >&5 |
| 1488 | fi |
| 1489 | rm -f conftest* |
| 1490 | done |
| 1491 | |
| 1492 | fi |
| 1493 | |
| 1494 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 1495 | case "$ac_cv_c_inline" in |
| 1496 | inline | yes) ;; |
| 1497 | no) cat >> confdefs.h <<\EOF |
| 1498 | #define inline |
| 1499 | EOF |
| 1500 | ;; |
| 1501 | *) cat >> confdefs.h <<EOF |
| 1502 | #define inline $ac_cv_c_inline |
| 1503 | EOF |
| 1504 | ;; |
| 1505 | esac |
| 1506 | |
| 1507 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
| 1508 | echo "configure:1509: checking for off_t" >&5 |
| 1509 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
| 1510 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1511 | else |
| 1512 | cat > conftest.$ac_ext <<EOF |
| 1513 | #line 1514 "configure" |
| 1514 | #include "confdefs.h" |
| 1515 | #include <sys/types.h> |
| 1516 | #if STDC_HEADERS |
| 1517 | #include <stdlib.h> |
| 1518 | #include <stddef.h> |
| 1519 | #endif |
| 1520 | EOF |
| 1521 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1522 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 1523 | rm -rf conftest* |
| 1524 | ac_cv_type_off_t=yes |
| 1525 | else |
| 1526 | rm -rf conftest* |
| 1527 | ac_cv_type_off_t=no |
| 1528 | fi |
| 1529 | rm -f conftest* |
| 1530 | |
| 1531 | fi |
| 1532 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 1533 | if test $ac_cv_type_off_t = no; then |
| 1534 | cat >> confdefs.h <<\EOF |
| 1535 | #define off_t long |
| 1536 | EOF |
| 1537 | |
| 1538 | fi |
| 1539 | |
| 1540 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
| 1541 | echo "configure:1542: checking for size_t" >&5 |
| 1542 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 1543 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1544 | else |
| 1545 | cat > conftest.$ac_ext <<EOF |
| 1546 | #line 1547 "configure" |
| 1547 | #include "confdefs.h" |
| 1548 | #include <sys/types.h> |
| 1549 | #if STDC_HEADERS |
| 1550 | #include <stdlib.h> |
| 1551 | #include <stddef.h> |
| 1552 | #endif |
| 1553 | EOF |
| 1554 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1555 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 1556 | rm -rf conftest* |
| 1557 | ac_cv_type_size_t=yes |
| 1558 | else |
| 1559 | rm -rf conftest* |
| 1560 | ac_cv_type_size_t=no |
| 1561 | fi |
| 1562 | rm -f conftest* |
| 1563 | |
| 1564 | fi |
| 1565 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 1566 | if test $ac_cv_type_size_t = no; then |
| 1567 | cat >> confdefs.h <<\EOF |
| 1568 | #define size_t unsigned |
| 1569 | EOF |
| 1570 | |
| 1571 | fi |
| 1572 | |
| 1573 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 1574 | # for constant arguments. Useless! |
| 1575 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
| 1576 | echo "configure:1577: checking for working alloca.h" >&5 |
| 1577 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
| 1578 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1579 | else |
| 1580 | cat > conftest.$ac_ext <<EOF |
| 1581 | #line 1582 "configure" |
| 1582 | #include "confdefs.h" |
| 1583 | #include <alloca.h> |
| 1584 | int main() { |
| 1585 | char *p = alloca(2 * sizeof(int)); |
| 1586 | ; return 0; } |
| 1587 | EOF |
| 1588 | if { (eval echo configure:1589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1589 | rm -rf conftest* |
| 1590 | ac_cv_header_alloca_h=yes |
| 1591 | else |
| 1592 | echo "configure: failed program was:" >&5 |
| 1593 | cat conftest.$ac_ext >&5 |
| 1594 | rm -rf conftest* |
| 1595 | ac_cv_header_alloca_h=no |
| 1596 | fi |
| 1597 | rm -f conftest* |
| 1598 | fi |
| 1599 | |
| 1600 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
| 1601 | if test $ac_cv_header_alloca_h = yes; then |
| 1602 | cat >> confdefs.h <<\EOF |
| 1603 | #define HAVE_ALLOCA_H 1 |
| 1604 | EOF |
| 1605 | |
| 1606 | fi |
| 1607 | |
| 1608 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
| 1609 | echo "configure:1610: checking for alloca" >&5 |
| 1610 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
| 1611 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1612 | else |
| 1613 | cat > conftest.$ac_ext <<EOF |
| 1614 | #line 1615 "configure" |
| 1615 | #include "confdefs.h" |
| 1616 | |
| 1617 | #ifdef __GNUC__ |
| 1618 | # define alloca __builtin_alloca |
| 1619 | #else |
| 1620 | # ifdef _MSC_VER |
| 1621 | # include <malloc.h> |
| 1622 | # define alloca _alloca |
| 1623 | # else |
| 1624 | # if HAVE_ALLOCA_H |
| 1625 | # include <alloca.h> |
| 1626 | # else |
| 1627 | # ifdef _AIX |
| 1628 | #pragma alloca |
| 1629 | # else |
| 1630 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 1631 | char *alloca (); |
| 1632 | # endif |
| 1633 | # endif |
| 1634 | # endif |
| 1635 | # endif |
| 1636 | #endif |
| 1637 | |
| 1638 | int main() { |
| 1639 | char *p = (char *) alloca(1); |
| 1640 | ; return 0; } |
| 1641 | EOF |
| 1642 | if { (eval echo configure:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1643 | rm -rf conftest* |
| 1644 | ac_cv_func_alloca_works=yes |
| 1645 | else |
| 1646 | echo "configure: failed program was:" >&5 |
| 1647 | cat conftest.$ac_ext >&5 |
| 1648 | rm -rf conftest* |
| 1649 | ac_cv_func_alloca_works=no |
| 1650 | fi |
| 1651 | rm -f conftest* |
| 1652 | fi |
| 1653 | |
| 1654 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
| 1655 | if test $ac_cv_func_alloca_works = yes; then |
| 1656 | cat >> confdefs.h <<\EOF |
| 1657 | #define HAVE_ALLOCA 1 |
| 1658 | EOF |
| 1659 | |
| 1660 | fi |
| 1661 | |
| 1662 | if test $ac_cv_func_alloca_works = no; then |
| 1663 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 1664 | # that cause trouble. Some versions do not even contain alloca or |
| 1665 | # contain a buggy version. If you still want to use their alloca, |
| 1666 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 1667 | ALLOCA=alloca.${ac_objext} |
| 1668 | cat >> confdefs.h <<\EOF |
| 1669 | #define C_ALLOCA 1 |
| 1670 | EOF |
| 1671 | |
| 1672 | |
| 1673 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
| 1674 | echo "configure:1675: checking whether alloca needs Cray hooks" >&5 |
| 1675 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
| 1676 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1677 | else |
| 1678 | cat > conftest.$ac_ext <<EOF |
| 1679 | #line 1680 "configure" |
| 1680 | #include "confdefs.h" |
| 1681 | #if defined(CRAY) && ! defined(CRAY2) |
| 1682 | webecray |
| 1683 | #else |
| 1684 | wenotbecray |
| 1685 | #endif |
| 1686 | |
| 1687 | EOF |
| 1688 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1689 | egrep "webecray" >/dev/null 2>&1; then |
| 1690 | rm -rf conftest* |
| 1691 | ac_cv_os_cray=yes |
| 1692 | else |
| 1693 | rm -rf conftest* |
| 1694 | ac_cv_os_cray=no |
| 1695 | fi |
| 1696 | rm -f conftest* |
| 1697 | |
| 1698 | fi |
| 1699 | |
| 1700 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
| 1701 | if test $ac_cv_os_cray = yes; then |
| 1702 | for ac_func in _getb67 GETB67 getb67; do |
| 1703 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 1704 | echo "configure:1705: checking for $ac_func" >&5 |
| 1705 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 1706 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1707 | else |
| 1708 | cat > conftest.$ac_ext <<EOF |
| 1709 | #line 1710 "configure" |
| 1710 | #include "confdefs.h" |
| 1711 | /* System header to define __stub macros and hopefully few prototypes, |
| 1712 | which can conflict with char $ac_func(); below. */ |
| 1713 | #include <assert.h> |
| 1714 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1715 | /* We use char because int might match the return type of a gcc2 |
| 1716 | builtin and then its argument prototype would still apply. */ |
| 1717 | char $ac_func(); |
| 1718 | |
| 1719 | int main() { |
| 1720 | |
| 1721 | /* The GNU C library defines this for functions which it implements |
| 1722 | to always fail with ENOSYS. Some functions are actually named |
| 1723 | something starting with __ and the normal name is an alias. */ |
| 1724 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 1725 | choke me |
| 1726 | #else |
| 1727 | $ac_func(); |
| 1728 | #endif |
| 1729 | |
| 1730 | ; return 0; } |
| 1731 | EOF |
| 1732 | if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1733 | rm -rf conftest* |
| 1734 | eval "ac_cv_func_$ac_func=yes" |
| 1735 | else |
| 1736 | echo "configure: failed program was:" >&5 |
| 1737 | cat conftest.$ac_ext >&5 |
| 1738 | rm -rf conftest* |
| 1739 | eval "ac_cv_func_$ac_func=no" |
| 1740 | fi |
| 1741 | rm -f conftest* |
| 1742 | fi |
| 1743 | |
| 1744 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 1745 | echo "$ac_t""yes" 1>&6 |
| 1746 | cat >> confdefs.h <<EOF |
| 1747 | #define CRAY_STACKSEG_END $ac_func |
| 1748 | EOF |
| 1749 | |
| 1750 | break |
| 1751 | else |
| 1752 | echo "$ac_t""no" 1>&6 |
| 1753 | fi |
| 1754 | |
| 1755 | done |
| 1756 | fi |
| 1757 | |
| 1758 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
| 1759 | echo "configure:1760: checking stack direction for C alloca" >&5 |
| 1760 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
| 1761 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1762 | else |
| 1763 | if test "$cross_compiling" = yes; then |
| 1764 | ac_cv_c_stack_direction=0 |
| 1765 | else |
| 1766 | cat > conftest.$ac_ext <<EOF |
| 1767 | #line 1768 "configure" |
| 1768 | #include "confdefs.h" |
| 1769 | find_stack_direction () |
| 1770 | { |
| 1771 | static char *addr = 0; |
| 1772 | auto char dummy; |
| 1773 | if (addr == 0) |
| 1774 | { |
| 1775 | addr = &dummy; |
| 1776 | return find_stack_direction (); |
| 1777 | } |
| 1778 | else |
| 1779 | return (&dummy > addr) ? 1 : -1; |
| 1780 | } |
| 1781 | main () |
| 1782 | { |
| 1783 | exit (find_stack_direction() < 0); |
| 1784 | } |
| 1785 | EOF |
| 1786 | if { (eval echo configure:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 1787 | then |
| 1788 | ac_cv_c_stack_direction=1 |
| 1789 | else |
| 1790 | echo "configure: failed program was:" >&5 |
| 1791 | cat conftest.$ac_ext >&5 |
| 1792 | rm -fr conftest* |
| 1793 | ac_cv_c_stack_direction=-1 |
| 1794 | fi |
| 1795 | rm -fr conftest* |
| 1796 | fi |
| 1797 | |
| 1798 | fi |
| 1799 | |
| 1800 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
| 1801 | cat >> confdefs.h <<EOF |
| 1802 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 1803 | EOF |
| 1804 | |
| 1805 | fi |
| 1806 | |
| 1807 | for ac_hdr in unistd.h |
| 1808 | do |
| 1809 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1810 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1811 | echo "configure:1812: checking for $ac_hdr" >&5 |
| 1812 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1813 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1814 | else |
| 1815 | cat > conftest.$ac_ext <<EOF |
| 1816 | #line 1817 "configure" |
| 1817 | #include "confdefs.h" |
| 1818 | #include <$ac_hdr> |
| 1819 | EOF |
| 1820 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1821 | { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1822 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1823 | if test -z "$ac_err"; then |
| 1824 | rm -rf conftest* |
| 1825 | eval "ac_cv_header_$ac_safe=yes" |
| 1826 | else |
| 1827 | echo "$ac_err" >&5 |
| 1828 | echo "configure: failed program was:" >&5 |
| 1829 | cat conftest.$ac_ext >&5 |
| 1830 | rm -rf conftest* |
| 1831 | eval "ac_cv_header_$ac_safe=no" |
| 1832 | fi |
| 1833 | rm -f conftest* |
| 1834 | fi |
| 1835 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1836 | echo "$ac_t""yes" 1>&6 |
| 1837 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1838 | cat >> confdefs.h <<EOF |
| 1839 | #define $ac_tr_hdr 1 |
| 1840 | EOF |
| 1841 | |
| 1842 | else |
| 1843 | echo "$ac_t""no" 1>&6 |
| 1844 | fi |
| 1845 | done |
| 1846 | |
| 1847 | for ac_func in getpagesize |
| 1848 | do |
| 1849 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 1850 | echo "configure:1851: checking for $ac_func" >&5 |
| 1851 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 1852 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1853 | else |
| 1854 | cat > conftest.$ac_ext <<EOF |
| 1855 | #line 1856 "configure" |
| 1856 | #include "confdefs.h" |
| 1857 | /* System header to define __stub macros and hopefully few prototypes, |
| 1858 | which can conflict with char $ac_func(); below. */ |
| 1859 | #include <assert.h> |
| 1860 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1861 | /* We use char because int might match the return type of a gcc2 |
| 1862 | builtin and then its argument prototype would still apply. */ |
| 1863 | char $ac_func(); |
| 1864 | |
| 1865 | int main() { |
| 1866 | |
| 1867 | /* The GNU C library defines this for functions which it implements |
| 1868 | to always fail with ENOSYS. Some functions are actually named |
| 1869 | something starting with __ and the normal name is an alias. */ |
| 1870 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 1871 | choke me |
| 1872 | #else |
| 1873 | $ac_func(); |
| 1874 | #endif |
| 1875 | |
| 1876 | ; return 0; } |
| 1877 | EOF |
| 1878 | if { (eval echo configure:1879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1879 | rm -rf conftest* |
| 1880 | eval "ac_cv_func_$ac_func=yes" |
| 1881 | else |
| 1882 | echo "configure: failed program was:" >&5 |
| 1883 | cat conftest.$ac_ext >&5 |
| 1884 | rm -rf conftest* |
| 1885 | eval "ac_cv_func_$ac_func=no" |
| 1886 | fi |
| 1887 | rm -f conftest* |
| 1888 | fi |
| 1889 | |
| 1890 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 1891 | echo "$ac_t""yes" 1>&6 |
| 1892 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 1893 | cat >> confdefs.h <<EOF |
| 1894 | #define $ac_tr_func 1 |
| 1895 | EOF |
| 1896 | |
| 1897 | else |
| 1898 | echo "$ac_t""no" 1>&6 |
| 1899 | fi |
| 1900 | done |
| 1901 | |
| 1902 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
| 1903 | echo "configure:1904: checking for working mmap" >&5 |
| 1904 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
| 1905 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1906 | else |
| 1907 | if test "$cross_compiling" = yes; then |
| 1908 | ac_cv_func_mmap_fixed_mapped=no |
| 1909 | else |
| 1910 | cat > conftest.$ac_ext <<EOF |
| 1911 | #line 1912 "configure" |
| 1912 | #include "confdefs.h" |
| 1913 | |
| 1914 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 1915 | Here is a matrix of mmap possibilities: |
| 1916 | mmap private not fixed |
| 1917 | mmap private fixed at somewhere currently unmapped |
| 1918 | mmap private fixed at somewhere already mapped |
| 1919 | mmap shared not fixed |
| 1920 | mmap shared fixed at somewhere currently unmapped |
| 1921 | mmap shared fixed at somewhere already mapped |
| 1922 | For private mappings, we should verify that changes cannot be read() |
| 1923 | back from the file, nor mmap's back from the file at a different |
| 1924 | address. (There have been systems where private was not correctly |
| 1925 | implemented like the infamous i386 svr4.0, and systems where the |
| 1926 | VM page cache was not coherent with the filesystem buffer cache |
| 1927 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 1928 | For shared mappings, we should conversely verify that changes get |
| 1929 | propogated back to all the places they're supposed to be. |
| 1930 | |
| 1931 | Grep wants private fixed already mapped. |
| 1932 | The main things grep needs to know about mmap are: |
| 1933 | * does it exist and is it safe to write into the mmap'd area |
| 1934 | * how to use it (BSD variants) */ |
| 1935 | #include <sys/types.h> |
| 1936 | #include <fcntl.h> |
| 1937 | #include <sys/mman.h> |
| 1938 | |
| 1939 | /* This mess was copied from the GNU getpagesize.h. */ |
| 1940 | #ifndef HAVE_GETPAGESIZE |
| 1941 | # ifdef HAVE_UNISTD_H |
| 1942 | # include <unistd.h> |
| 1943 | # endif |
| 1944 | |
| 1945 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 1946 | # ifndef HAVE_SYS_PARAM_H |
| 1947 | # define HAVE_SYS_PARAM_H 1 |
| 1948 | # endif |
| 1949 | |
| 1950 | # ifdef _SC_PAGESIZE |
| 1951 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 1952 | # else /* no _SC_PAGESIZE */ |
| 1953 | # ifdef HAVE_SYS_PARAM_H |
| 1954 | # include <sys/param.h> |
| 1955 | # ifdef EXEC_PAGESIZE |
| 1956 | # define getpagesize() EXEC_PAGESIZE |
| 1957 | # else /* no EXEC_PAGESIZE */ |
| 1958 | # ifdef NBPG |
| 1959 | # define getpagesize() NBPG * CLSIZE |
| 1960 | # ifndef CLSIZE |
| 1961 | # define CLSIZE 1 |
| 1962 | # endif /* no CLSIZE */ |
| 1963 | # else /* no NBPG */ |
| 1964 | # ifdef NBPC |
| 1965 | # define getpagesize() NBPC |
| 1966 | # else /* no NBPC */ |
| 1967 | # ifdef PAGESIZE |
| 1968 | # define getpagesize() PAGESIZE |
| 1969 | # endif /* PAGESIZE */ |
| 1970 | # endif /* no NBPC */ |
| 1971 | # endif /* no NBPG */ |
| 1972 | # endif /* no EXEC_PAGESIZE */ |
| 1973 | # else /* no HAVE_SYS_PARAM_H */ |
| 1974 | # define getpagesize() 8192 /* punt totally */ |
| 1975 | # endif /* no HAVE_SYS_PARAM_H */ |
| 1976 | # endif /* no _SC_PAGESIZE */ |
| 1977 | |
| 1978 | #endif /* no HAVE_GETPAGESIZE */ |
| 1979 | |
| 1980 | #ifdef __cplusplus |
| 1981 | extern "C" { void *malloc(unsigned); } |
| 1982 | #else |
| 1983 | char *malloc(); |
| 1984 | #endif |
| 1985 | |
| 1986 | int |
| 1987 | main() |
| 1988 | { |
| 1989 | char *data, *data2, *data3; |
| 1990 | int i, pagesize; |
| 1991 | int fd; |
| 1992 | |
| 1993 | pagesize = getpagesize(); |
| 1994 | |
| 1995 | /* |
| 1996 | * First, make a file with some known garbage in it. |
| 1997 | */ |
| 1998 | data = malloc(pagesize); |
| 1999 | if (!data) |
| 2000 | exit(1); |
| 2001 | for (i = 0; i < pagesize; ++i) |
| 2002 | *(data + i) = rand(); |
| 2003 | umask(0); |
| 2004 | fd = creat("conftestmmap", 0600); |
| 2005 | if (fd < 0) |
| 2006 | exit(1); |
| 2007 | if (write(fd, data, pagesize) != pagesize) |
| 2008 | exit(1); |
| 2009 | close(fd); |
| 2010 | |
| 2011 | /* |
| 2012 | * Next, try to mmap the file at a fixed address which |
| 2013 | * already has something else allocated at it. If we can, |
| 2014 | * also make sure that we see the same garbage. |
| 2015 | */ |
| 2016 | fd = open("conftestmmap", O_RDWR); |
| 2017 | if (fd < 0) |
| 2018 | exit(1); |
| 2019 | data2 = malloc(2 * pagesize); |
| 2020 | if (!data2) |
| 2021 | exit(1); |
| 2022 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 2023 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
| 2024 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 2025 | exit(1); |
| 2026 | for (i = 0; i < pagesize; ++i) |
| 2027 | if (*(data + i) != *(data2 + i)) |
| 2028 | exit(1); |
| 2029 | |
| 2030 | /* |
| 2031 | * Finally, make sure that changes to the mapped area |
| 2032 | * do not percolate back to the file as seen by read(). |
| 2033 | * (This is a bug on some variants of i386 svr4.0.) |
| 2034 | */ |
| 2035 | for (i = 0; i < pagesize; ++i) |
| 2036 | *(data2 + i) = *(data2 + i) + 1; |
| 2037 | data3 = malloc(pagesize); |
| 2038 | if (!data3) |
| 2039 | exit(1); |
| 2040 | if (read(fd, data3, pagesize) != pagesize) |
| 2041 | exit(1); |
| 2042 | for (i = 0; i < pagesize; ++i) |
| 2043 | if (*(data + i) != *(data3 + i)) |
| 2044 | exit(1); |
| 2045 | close(fd); |
| 2046 | unlink("conftestmmap"); |
| 2047 | exit(0); |
| 2048 | } |
| 2049 | |
| 2050 | EOF |
| 2051 | if { (eval echo configure:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2052 | then |
| 2053 | ac_cv_func_mmap_fixed_mapped=yes |
| 2054 | else |
| 2055 | echo "configure: failed program was:" >&5 |
| 2056 | cat conftest.$ac_ext >&5 |
| 2057 | rm -fr conftest* |
| 2058 | ac_cv_func_mmap_fixed_mapped=no |
| 2059 | fi |
| 2060 | rm -fr conftest* |
| 2061 | fi |
| 2062 | |
| 2063 | fi |
| 2064 | |
| 2065 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
| 2066 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 2067 | cat >> confdefs.h <<\EOF |
| 2068 | #define HAVE_MMAP 1 |
| 2069 | EOF |
| 2070 | |
| 2071 | fi |
| 2072 | |
| 2073 | |
| 2074 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ |
| 2075 | unistd.h values.h sys/param.h |
| 2076 | do |
| 2077 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2078 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 2079 | echo "configure:2080: checking for $ac_hdr" >&5 |
| 2080 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2081 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2082 | else |
| 2083 | cat > conftest.$ac_ext <<EOF |
| 2084 | #line 2085 "configure" |
| 2085 | #include "confdefs.h" |
| 2086 | #include <$ac_hdr> |
| 2087 | EOF |
| 2088 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2089 | { (eval echo configure:2090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2090 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2091 | if test -z "$ac_err"; then |
| 2092 | rm -rf conftest* |
| 2093 | eval "ac_cv_header_$ac_safe=yes" |
| 2094 | else |
| 2095 | echo "$ac_err" >&5 |
| 2096 | echo "configure: failed program was:" >&5 |
| 2097 | cat conftest.$ac_ext >&5 |
| 2098 | rm -rf conftest* |
| 2099 | eval "ac_cv_header_$ac_safe=no" |
| 2100 | fi |
| 2101 | rm -f conftest* |
| 2102 | fi |
| 2103 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2104 | echo "$ac_t""yes" 1>&6 |
| 2105 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2106 | cat >> confdefs.h <<EOF |
| 2107 | #define $ac_tr_hdr 1 |
| 2108 | EOF |
| 2109 | |
| 2110 | else |
| 2111 | echo "$ac_t""no" 1>&6 |
| 2112 | fi |
| 2113 | done |
| 2114 | |
| 2115 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ |
| 2116 | __argz_count __argz_stringify __argz_next |
| 2117 | do |
| 2118 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2119 | echo "configure:2120: checking for $ac_func" >&5 |
| 2120 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2121 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2122 | else |
| 2123 | cat > conftest.$ac_ext <<EOF |
| 2124 | #line 2125 "configure" |
| 2125 | #include "confdefs.h" |
| 2126 | /* System header to define __stub macros and hopefully few prototypes, |
| 2127 | which can conflict with char $ac_func(); below. */ |
| 2128 | #include <assert.h> |
| 2129 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2130 | /* We use char because int might match the return type of a gcc2 |
| 2131 | builtin and then its argument prototype would still apply. */ |
| 2132 | char $ac_func(); |
| 2133 | |
| 2134 | int main() { |
| 2135 | |
| 2136 | /* The GNU C library defines this for functions which it implements |
| 2137 | to always fail with ENOSYS. Some functions are actually named |
| 2138 | something starting with __ and the normal name is an alias. */ |
| 2139 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2140 | choke me |
| 2141 | #else |
| 2142 | $ac_func(); |
| 2143 | #endif |
| 2144 | |
| 2145 | ; return 0; } |
| 2146 | EOF |
| 2147 | if { (eval echo configure:2148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2148 | rm -rf conftest* |
| 2149 | eval "ac_cv_func_$ac_func=yes" |
| 2150 | else |
| 2151 | echo "configure: failed program was:" >&5 |
| 2152 | cat conftest.$ac_ext >&5 |
| 2153 | rm -rf conftest* |
| 2154 | eval "ac_cv_func_$ac_func=no" |
| 2155 | fi |
| 2156 | rm -f conftest* |
| 2157 | fi |
| 2158 | |
| 2159 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2160 | echo "$ac_t""yes" 1>&6 |
| 2161 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2162 | cat >> confdefs.h <<EOF |
| 2163 | #define $ac_tr_func 1 |
| 2164 | EOF |
| 2165 | |
| 2166 | else |
| 2167 | echo "$ac_t""no" 1>&6 |
| 2168 | fi |
| 2169 | done |
| 2170 | |
| 2171 | |
| 2172 | if test "${ac_cv_func_stpcpy+set}" != "set"; then |
| 2173 | for ac_func in stpcpy |
| 2174 | do |
| 2175 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2176 | echo "configure:2177: checking for $ac_func" >&5 |
| 2177 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2178 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2179 | else |
| 2180 | cat > conftest.$ac_ext <<EOF |
| 2181 | #line 2182 "configure" |
| 2182 | #include "confdefs.h" |
| 2183 | /* System header to define __stub macros and hopefully few prototypes, |
| 2184 | which can conflict with char $ac_func(); below. */ |
| 2185 | #include <assert.h> |
| 2186 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2187 | /* We use char because int might match the return type of a gcc2 |
| 2188 | builtin and then its argument prototype would still apply. */ |
| 2189 | char $ac_func(); |
| 2190 | |
| 2191 | int main() { |
| 2192 | |
| 2193 | /* The GNU C library defines this for functions which it implements |
| 2194 | to always fail with ENOSYS. Some functions are actually named |
| 2195 | something starting with __ and the normal name is an alias. */ |
| 2196 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2197 | choke me |
| 2198 | #else |
| 2199 | $ac_func(); |
| 2200 | #endif |
| 2201 | |
| 2202 | ; return 0; } |
| 2203 | EOF |
| 2204 | if { (eval echo configure:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2205 | rm -rf conftest* |
| 2206 | eval "ac_cv_func_$ac_func=yes" |
| 2207 | else |
| 2208 | echo "configure: failed program was:" >&5 |
| 2209 | cat conftest.$ac_ext >&5 |
| 2210 | rm -rf conftest* |
| 2211 | eval "ac_cv_func_$ac_func=no" |
| 2212 | fi |
| 2213 | rm -f conftest* |
| 2214 | fi |
| 2215 | |
| 2216 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2217 | echo "$ac_t""yes" 1>&6 |
| 2218 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2219 | cat >> confdefs.h <<EOF |
| 2220 | #define $ac_tr_func 1 |
| 2221 | EOF |
| 2222 | |
| 2223 | else |
| 2224 | echo "$ac_t""no" 1>&6 |
| 2225 | fi |
| 2226 | done |
| 2227 | |
| 2228 | fi |
| 2229 | if test "${ac_cv_func_stpcpy}" = "yes"; then |
| 2230 | cat >> confdefs.h <<\EOF |
| 2231 | #define HAVE_STPCPY 1 |
| 2232 | EOF |
| 2233 | |
| 2234 | fi |
| 2235 | |
| 2236 | if test $ac_cv_header_locale_h = yes; then |
| 2237 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 |
| 2238 | echo "configure:2239: checking for LC_MESSAGES" >&5 |
| 2239 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
| 2240 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2241 | else |
| 2242 | cat > conftest.$ac_ext <<EOF |
| 2243 | #line 2244 "configure" |
| 2244 | #include "confdefs.h" |
| 2245 | #include <locale.h> |
| 2246 | int main() { |
| 2247 | return LC_MESSAGES |
| 2248 | ; return 0; } |
| 2249 | EOF |
| 2250 | if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2251 | rm -rf conftest* |
| 2252 | am_cv_val_LC_MESSAGES=yes |
| 2253 | else |
| 2254 | echo "configure: failed program was:" >&5 |
| 2255 | cat conftest.$ac_ext >&5 |
| 2256 | rm -rf conftest* |
| 2257 | am_cv_val_LC_MESSAGES=no |
| 2258 | fi |
| 2259 | rm -f conftest* |
| 2260 | fi |
| 2261 | |
| 2262 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 |
| 2263 | if test $am_cv_val_LC_MESSAGES = yes; then |
| 2264 | cat >> confdefs.h <<\EOF |
| 2265 | #define HAVE_LC_MESSAGES 1 |
| 2266 | EOF |
| 2267 | |
| 2268 | fi |
| 2269 | fi |
| 2270 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 |
| 2271 | echo "configure:2272: checking whether NLS is requested" >&5 |
| 2272 | # Check whether --enable-nls or --disable-nls was given. |
| 2273 | if test "${enable_nls+set}" = set; then |
| 2274 | enableval="$enable_nls" |
| 2275 | USE_NLS=$enableval |
| 2276 | else |
| 2277 | USE_NLS=yes |
| 2278 | fi |
| 2279 | |
| 2280 | echo "$ac_t""$USE_NLS" 1>&6 |
| 2281 | |
| 2282 | |
| 2283 | USE_INCLUDED_LIBINTL=no |
| 2284 | |
| 2285 | if test "$USE_NLS" = "yes"; then |
| 2286 | cat >> confdefs.h <<\EOF |
| 2287 | #define ENABLE_NLS 1 |
| 2288 | EOF |
| 2289 | |
| 2290 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 |
| 2291 | echo "configure:2292: checking whether included gettext is requested" >&5 |
| 2292 | # Check whether --with-included-gettext or --without-included-gettext was given. |
| 2293 | if test "${with_included_gettext+set}" = set; then |
| 2294 | withval="$with_included_gettext" |
| 2295 | nls_cv_force_use_gnu_gettext=$withval |
| 2296 | else |
| 2297 | nls_cv_force_use_gnu_gettext=no |
| 2298 | fi |
| 2299 | |
| 2300 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 |
| 2301 | |
| 2302 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 2303 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
| 2304 | nls_cv_header_intl= |
| 2305 | nls_cv_header_libgt= |
| 2306 | CATOBJEXT=NONE |
| 2307 | |
| 2308 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` |
| 2309 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 |
| 2310 | echo "configure:2311: checking for libintl.h" >&5 |
| 2311 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2312 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2313 | else |
| 2314 | cat > conftest.$ac_ext <<EOF |
| 2315 | #line 2316 "configure" |
| 2316 | #include "confdefs.h" |
| 2317 | #include <libintl.h> |
| 2318 | EOF |
| 2319 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2320 | { (eval echo configure:2321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2321 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2322 | if test -z "$ac_err"; then |
| 2323 | rm -rf conftest* |
| 2324 | eval "ac_cv_header_$ac_safe=yes" |
| 2325 | else |
| 2326 | echo "$ac_err" >&5 |
| 2327 | echo "configure: failed program was:" >&5 |
| 2328 | cat conftest.$ac_ext >&5 |
| 2329 | rm -rf conftest* |
| 2330 | eval "ac_cv_header_$ac_safe=no" |
| 2331 | fi |
| 2332 | rm -f conftest* |
| 2333 | fi |
| 2334 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2335 | echo "$ac_t""yes" 1>&6 |
| 2336 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 |
| 2337 | echo "configure:2338: checking for gettext in libc" >&5 |
| 2338 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
| 2339 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2340 | else |
| 2341 | cat > conftest.$ac_ext <<EOF |
| 2342 | #line 2343 "configure" |
| 2343 | #include "confdefs.h" |
| 2344 | #include <libintl.h> |
| 2345 | int main() { |
| 2346 | return (int) gettext ("") |
| 2347 | ; return 0; } |
| 2348 | EOF |
| 2349 | if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2350 | rm -rf conftest* |
| 2351 | gt_cv_func_gettext_libc=yes |
| 2352 | else |
| 2353 | echo "configure: failed program was:" >&5 |
| 2354 | cat conftest.$ac_ext >&5 |
| 2355 | rm -rf conftest* |
| 2356 | gt_cv_func_gettext_libc=no |
| 2357 | fi |
| 2358 | rm -f conftest* |
| 2359 | fi |
| 2360 | |
| 2361 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 |
| 2362 | |
| 2363 | if test "$gt_cv_func_gettext_libc" != "yes"; then |
| 2364 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 |
| 2365 | echo "configure:2366: checking for bindtextdomain in -lintl" >&5 |
| 2366 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
| 2367 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2368 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2369 | else |
| 2370 | ac_save_LIBS="$LIBS" |
| 2371 | LIBS="-lintl $LIBS" |
| 2372 | cat > conftest.$ac_ext <<EOF |
| 2373 | #line 2374 "configure" |
| 2374 | #include "confdefs.h" |
| 2375 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2376 | /* We use char because int might match the return type of a gcc2 |
| 2377 | builtin and then its argument prototype would still apply. */ |
| 2378 | char bindtextdomain(); |
| 2379 | |
| 2380 | int main() { |
| 2381 | bindtextdomain() |
| 2382 | ; return 0; } |
| 2383 | EOF |
| 2384 | if { (eval echo configure:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2385 | rm -rf conftest* |
| 2386 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2387 | else |
| 2388 | echo "configure: failed program was:" >&5 |
| 2389 | cat conftest.$ac_ext >&5 |
| 2390 | rm -rf conftest* |
| 2391 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2392 | fi |
| 2393 | rm -f conftest* |
| 2394 | LIBS="$ac_save_LIBS" |
| 2395 | |
| 2396 | fi |
| 2397 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2398 | echo "$ac_t""yes" 1>&6 |
| 2399 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 |
| 2400 | echo "configure:2401: checking for gettext in libintl" >&5 |
| 2401 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
| 2402 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2403 | else |
| 2404 | cat > conftest.$ac_ext <<EOF |
| 2405 | #line 2406 "configure" |
| 2406 | #include "confdefs.h" |
| 2407 | |
| 2408 | int main() { |
| 2409 | return (int) gettext ("") |
| 2410 | ; return 0; } |
| 2411 | EOF |
| 2412 | if { (eval echo configure:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2413 | rm -rf conftest* |
| 2414 | gt_cv_func_gettext_libintl=yes |
| 2415 | else |
| 2416 | echo "configure: failed program was:" >&5 |
| 2417 | cat conftest.$ac_ext >&5 |
| 2418 | rm -rf conftest* |
| 2419 | gt_cv_func_gettext_libintl=no |
| 2420 | fi |
| 2421 | rm -f conftest* |
| 2422 | fi |
| 2423 | |
| 2424 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 |
| 2425 | else |
| 2426 | echo "$ac_t""no" 1>&6 |
| 2427 | fi |
| 2428 | |
| 2429 | fi |
| 2430 | |
| 2431 | if test "$gt_cv_func_gettext_libc" = "yes" \ |
| 2432 | || test "$gt_cv_func_gettext_libintl" = "yes"; then |
| 2433 | cat >> confdefs.h <<\EOF |
| 2434 | #define HAVE_GETTEXT 1 |
| 2435 | EOF |
| 2436 | |
| 2437 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 2438 | set dummy msgfmt; ac_word=$2 |
| 2439 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2440 | echo "configure:2441: checking for $ac_word" >&5 |
| 2441 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
| 2442 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2443 | else |
| 2444 | case "$MSGFMT" in |
| 2445 | /*) |
| 2446 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 2447 | ;; |
| 2448 | *) |
| 2449 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 2450 | for ac_dir in $PATH; do |
| 2451 | test -z "$ac_dir" && ac_dir=. |
| 2452 | if test -f $ac_dir/$ac_word; then |
| 2453 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
| 2454 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
| 2455 | break |
| 2456 | fi |
| 2457 | fi |
| 2458 | done |
| 2459 | IFS="$ac_save_ifs" |
| 2460 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" |
| 2461 | ;; |
| 2462 | esac |
| 2463 | fi |
| 2464 | MSGFMT="$ac_cv_path_MSGFMT" |
| 2465 | if test -n "$MSGFMT"; then |
| 2466 | echo "$ac_t""$MSGFMT" 1>&6 |
| 2467 | else |
| 2468 | echo "$ac_t""no" 1>&6 |
| 2469 | fi |
| 2470 | if test "$MSGFMT" != "no"; then |
| 2471 | for ac_func in dcgettext |
| 2472 | do |
| 2473 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2474 | echo "configure:2475: checking for $ac_func" >&5 |
| 2475 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2476 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2477 | else |
| 2478 | cat > conftest.$ac_ext <<EOF |
| 2479 | #line 2480 "configure" |
| 2480 | #include "confdefs.h" |
| 2481 | /* System header to define __stub macros and hopefully few prototypes, |
| 2482 | which can conflict with char $ac_func(); below. */ |
| 2483 | #include <assert.h> |
| 2484 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2485 | /* We use char because int might match the return type of a gcc2 |
| 2486 | builtin and then its argument prototype would still apply. */ |
| 2487 | char $ac_func(); |
| 2488 | |
| 2489 | int main() { |
| 2490 | |
| 2491 | /* The GNU C library defines this for functions which it implements |
| 2492 | to always fail with ENOSYS. Some functions are actually named |
| 2493 | something starting with __ and the normal name is an alias. */ |
| 2494 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2495 | choke me |
| 2496 | #else |
| 2497 | $ac_func(); |
| 2498 | #endif |
| 2499 | |
| 2500 | ; return 0; } |
| 2501 | EOF |
| 2502 | if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2503 | rm -rf conftest* |
| 2504 | eval "ac_cv_func_$ac_func=yes" |
| 2505 | else |
| 2506 | echo "configure: failed program was:" >&5 |
| 2507 | cat conftest.$ac_ext >&5 |
| 2508 | rm -rf conftest* |
| 2509 | eval "ac_cv_func_$ac_func=no" |
| 2510 | fi |
| 2511 | rm -f conftest* |
| 2512 | fi |
| 2513 | |
| 2514 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2515 | echo "$ac_t""yes" 1>&6 |
| 2516 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2517 | cat >> confdefs.h <<EOF |
| 2518 | #define $ac_tr_func 1 |
| 2519 | EOF |
| 2520 | |
| 2521 | else |
| 2522 | echo "$ac_t""no" 1>&6 |
| 2523 | fi |
| 2524 | done |
| 2525 | |
| 2526 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 2527 | set dummy gmsgfmt; ac_word=$2 |
| 2528 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2529 | echo "configure:2530: checking for $ac_word" >&5 |
| 2530 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
| 2531 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2532 | else |
| 2533 | case "$GMSGFMT" in |
| 2534 | /*) |
| 2535 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 2536 | ;; |
| 2537 | ?:/*) |
| 2538 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
| 2539 | ;; |
| 2540 | *) |
| 2541 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2542 | ac_dummy="$PATH" |
| 2543 | for ac_dir in $ac_dummy; do |
| 2544 | test -z "$ac_dir" && ac_dir=. |
| 2545 | if test -f $ac_dir/$ac_word; then |
| 2546 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
| 2547 | break |
| 2548 | fi |
| 2549 | done |
| 2550 | IFS="$ac_save_ifs" |
| 2551 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 2552 | ;; |
| 2553 | esac |
| 2554 | fi |
| 2555 | GMSGFMT="$ac_cv_path_GMSGFMT" |
| 2556 | if test -n "$GMSGFMT"; then |
| 2557 | echo "$ac_t""$GMSGFMT" 1>&6 |
| 2558 | else |
| 2559 | echo "$ac_t""no" 1>&6 |
| 2560 | fi |
| 2561 | |
| 2562 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 2563 | set dummy xgettext; ac_word=$2 |
| 2564 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2565 | echo "configure:2566: checking for $ac_word" >&5 |
| 2566 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
| 2567 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2568 | else |
| 2569 | case "$XGETTEXT" in |
| 2570 | /*) |
| 2571 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 2572 | ;; |
| 2573 | *) |
| 2574 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 2575 | for ac_dir in $PATH; do |
| 2576 | test -z "$ac_dir" && ac_dir=. |
| 2577 | if test -f $ac_dir/$ac_word; then |
| 2578 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
| 2579 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
| 2580 | break |
| 2581 | fi |
| 2582 | fi |
| 2583 | done |
| 2584 | IFS="$ac_save_ifs" |
| 2585 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 2586 | ;; |
| 2587 | esac |
| 2588 | fi |
| 2589 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 2590 | if test -n "$XGETTEXT"; then |
| 2591 | echo "$ac_t""$XGETTEXT" 1>&6 |
| 2592 | else |
| 2593 | echo "$ac_t""no" 1>&6 |
| 2594 | fi |
| 2595 | |
| 2596 | cat > conftest.$ac_ext <<EOF |
| 2597 | #line 2598 "configure" |
| 2598 | #include "confdefs.h" |
| 2599 | |
| 2600 | int main() { |
| 2601 | extern int _nl_msg_cat_cntr; |
| 2602 | return _nl_msg_cat_cntr |
| 2603 | ; return 0; } |
| 2604 | EOF |
| 2605 | if { (eval echo configure:2606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2606 | rm -rf conftest* |
| 2607 | CATOBJEXT=.gmo |
| 2608 | DATADIRNAME=share |
| 2609 | else |
| 2610 | echo "configure: failed program was:" >&5 |
| 2611 | cat conftest.$ac_ext >&5 |
| 2612 | rm -rf conftest* |
| 2613 | CATOBJEXT=.mo |
| 2614 | DATADIRNAME=lib |
| 2615 | fi |
| 2616 | rm -f conftest* |
| 2617 | INSTOBJEXT=.mo |
| 2618 | fi |
| 2619 | fi |
| 2620 | |
| 2621 | else |
| 2622 | echo "$ac_t""no" 1>&6 |
| 2623 | fi |
| 2624 | |
| 2625 | |
| 2626 | |
| 2627 | if test "$CATOBJEXT" = "NONE"; then |
| 2628 | nls_cv_use_gnu_gettext=yes |
| 2629 | fi |
| 2630 | fi |
| 2631 | |
| 2632 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 2633 | INTLOBJS="\$(GETTOBJS)" |
| 2634 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 2635 | set dummy msgfmt; ac_word=$2 |
| 2636 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2637 | echo "configure:2638: checking for $ac_word" >&5 |
| 2638 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
| 2639 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2640 | else |
| 2641 | case "$MSGFMT" in |
| 2642 | /*) |
| 2643 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 2644 | ;; |
| 2645 | *) |
| 2646 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 2647 | for ac_dir in $PATH; do |
| 2648 | test -z "$ac_dir" && ac_dir=. |
| 2649 | if test -f $ac_dir/$ac_word; then |
| 2650 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
| 2651 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
| 2652 | break |
| 2653 | fi |
| 2654 | fi |
| 2655 | done |
| 2656 | IFS="$ac_save_ifs" |
| 2657 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" |
| 2658 | ;; |
| 2659 | esac |
| 2660 | fi |
| 2661 | MSGFMT="$ac_cv_path_MSGFMT" |
| 2662 | if test -n "$MSGFMT"; then |
| 2663 | echo "$ac_t""$MSGFMT" 1>&6 |
| 2664 | else |
| 2665 | echo "$ac_t""no" 1>&6 |
| 2666 | fi |
| 2667 | |
| 2668 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 2669 | set dummy gmsgfmt; ac_word=$2 |
| 2670 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2671 | echo "configure:2672: checking for $ac_word" >&5 |
| 2672 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
| 2673 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2674 | else |
| 2675 | case "$GMSGFMT" in |
| 2676 | /*) |
| 2677 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 2678 | ;; |
| 2679 | ?:/*) |
| 2680 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
| 2681 | ;; |
| 2682 | *) |
| 2683 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2684 | ac_dummy="$PATH" |
| 2685 | for ac_dir in $ac_dummy; do |
| 2686 | test -z "$ac_dir" && ac_dir=. |
| 2687 | if test -f $ac_dir/$ac_word; then |
| 2688 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
| 2689 | break |
| 2690 | fi |
| 2691 | done |
| 2692 | IFS="$ac_save_ifs" |
| 2693 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 2694 | ;; |
| 2695 | esac |
| 2696 | fi |
| 2697 | GMSGFMT="$ac_cv_path_GMSGFMT" |
| 2698 | if test -n "$GMSGFMT"; then |
| 2699 | echo "$ac_t""$GMSGFMT" 1>&6 |
| 2700 | else |
| 2701 | echo "$ac_t""no" 1>&6 |
| 2702 | fi |
| 2703 | |
| 2704 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 2705 | set dummy xgettext; ac_word=$2 |
| 2706 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2707 | echo "configure:2708: checking for $ac_word" >&5 |
| 2708 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
| 2709 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2710 | else |
| 2711 | case "$XGETTEXT" in |
| 2712 | /*) |
| 2713 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 2714 | ;; |
| 2715 | *) |
| 2716 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 2717 | for ac_dir in $PATH; do |
| 2718 | test -z "$ac_dir" && ac_dir=. |
| 2719 | if test -f $ac_dir/$ac_word; then |
| 2720 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
| 2721 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
| 2722 | break |
| 2723 | fi |
| 2724 | fi |
| 2725 | done |
| 2726 | IFS="$ac_save_ifs" |
| 2727 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 2728 | ;; |
| 2729 | esac |
| 2730 | fi |
| 2731 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 2732 | if test -n "$XGETTEXT"; then |
| 2733 | echo "$ac_t""$XGETTEXT" 1>&6 |
| 2734 | else |
| 2735 | echo "$ac_t""no" 1>&6 |
| 2736 | fi |
| 2737 | |
| 2738 | |
| 2739 | USE_INCLUDED_LIBINTL=yes |
| 2740 | CATOBJEXT=.gmo |
| 2741 | INSTOBJEXT=.mo |
| 2742 | DATADIRNAME=share |
| 2743 | INTLDEPS='$(top_builddir)/../intl/libintl.a' |
| 2744 | INTLLIBS=$INTLDEPS |
| 2745 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
| 2746 | nls_cv_header_intl=libintl.h |
| 2747 | nls_cv_header_libgt=libgettext.h |
| 2748 | fi |
| 2749 | |
| 2750 | if test "$XGETTEXT" != ":"; then |
| 2751 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
| 2752 | : ; |
| 2753 | else |
| 2754 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 |
| 2755 | XGETTEXT=":" |
| 2756 | fi |
| 2757 | fi |
| 2758 | |
| 2759 | # We need to process the po/ directory. |
| 2760 | POSUB=po |
| 2761 | else |
| 2762 | DATADIRNAME=share |
| 2763 | nls_cv_header_intl=libintl.h |
| 2764 | nls_cv_header_libgt=libgettext.h |
| 2765 | fi |
| 2766 | |
| 2767 | # If this is used in GNU gettext we have to set USE_NLS to `yes' |
| 2768 | # because some of the sources are only built for this goal. |
| 2769 | if test "$PACKAGE" = gettext; then |
| 2770 | USE_NLS=yes |
| 2771 | USE_INCLUDED_LIBINTL=yes |
| 2772 | fi |
| 2773 | |
| 2774 | for lang in $ALL_LINGUAS; do |
| 2775 | GMOFILES="$GMOFILES $lang.gmo" |
| 2776 | POFILES="$POFILES $lang.po" |
| 2777 | done |
| 2778 | |
| 2779 | |
| 2780 | |
| 2781 | |
| 2782 | |
| 2783 | |
| 2784 | |
| 2785 | |
| 2786 | |
| 2787 | |
| 2788 | |
| 2789 | |
| 2790 | |
| 2791 | |
| 2792 | if test "x$CATOBJEXT" != "x"; then |
| 2793 | if test "x$ALL_LINGUAS" = "x"; then |
| 2794 | LINGUAS= |
| 2795 | else |
| 2796 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 |
| 2797 | echo "configure:2798: checking for catalogs to be installed" >&5 |
| 2798 | NEW_LINGUAS= |
| 2799 | for lang in ${LINGUAS=$ALL_LINGUAS}; do |
| 2800 | case "$ALL_LINGUAS" in |
| 2801 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; |
| 2802 | esac |
| 2803 | done |
| 2804 | LINGUAS=$NEW_LINGUAS |
| 2805 | echo "$ac_t""$LINGUAS" 1>&6 |
| 2806 | fi |
| 2807 | |
| 2808 | if test -n "$LINGUAS"; then |
| 2809 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
| 2810 | fi |
| 2811 | fi |
| 2812 | |
| 2813 | if test $ac_cv_header_locale_h = yes; then |
| 2814 | INCLUDE_LOCALE_H="#include <locale.h>" |
| 2815 | else |
| 2816 | INCLUDE_LOCALE_H="\ |
| 2817 | /* The system does not provide the header <locale.h>. Take care yourself. */" |
| 2818 | fi |
| 2819 | |
| 2820 | |
| 2821 | if test -f $srcdir/po2tbl.sed.in; then |
| 2822 | if test "$CATOBJEXT" = ".cat"; then |
| 2823 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` |
| 2824 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 |
| 2825 | echo "configure:2826: checking for linux/version.h" >&5 |
| 2826 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2827 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2828 | else |
| 2829 | cat > conftest.$ac_ext <<EOF |
| 2830 | #line 2831 "configure" |
| 2831 | #include "confdefs.h" |
| 2832 | #include <linux/version.h> |
| 2833 | EOF |
| 2834 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2835 | { (eval echo configure:2836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2836 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2837 | if test -z "$ac_err"; then |
| 2838 | rm -rf conftest* |
| 2839 | eval "ac_cv_header_$ac_safe=yes" |
| 2840 | else |
| 2841 | echo "$ac_err" >&5 |
| 2842 | echo "configure: failed program was:" >&5 |
| 2843 | cat conftest.$ac_ext >&5 |
| 2844 | rm -rf conftest* |
| 2845 | eval "ac_cv_header_$ac_safe=no" |
| 2846 | fi |
| 2847 | rm -f conftest* |
| 2848 | fi |
| 2849 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2850 | echo "$ac_t""yes" 1>&6 |
| 2851 | msgformat=linux |
| 2852 | else |
| 2853 | echo "$ac_t""no" 1>&6 |
| 2854 | msgformat=xopen |
| 2855 | fi |
| 2856 | |
| 2857 | |
| 2858 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
| 2859 | fi |
| 2860 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ |
| 2861 | $srcdir/po2tbl.sed.in > po2tbl.sed |
| 2862 | fi |
| 2863 | |
| 2864 | if test "$PACKAGE" = "gettext"; then |
| 2865 | GT_NO="#NO#" |
| 2866 | GT_YES= |
| 2867 | else |
| 2868 | GT_NO= |
| 2869 | GT_YES="#YES#" |
| 2870 | fi |
| 2871 | |
| 2872 | |
| 2873 | |
| 2874 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" |
| 2875 | |
| 2876 | |
| 2877 | l= |
| 2878 | |
| 2879 | |
| 2880 | if test -f $srcdir/po/POTFILES.in; then |
| 2881 | test -d po || mkdir po |
| 2882 | if test "x$srcdir" != "x."; then |
| 2883 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
| 2884 | posrcprefix="$srcdir/" |
| 2885 | else |
| 2886 | posrcprefix="../$srcdir/" |
| 2887 | fi |
| 2888 | else |
| 2889 | posrcprefix="../" |
| 2890 | fi |
| 2891 | rm -f po/POTFILES |
| 2892 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
| 2893 | < $srcdir/po/POTFILES.in > po/POTFILES |
| 2894 | fi |
| 2895 | |
| 2896 | cat >> confdefs.h <<\EOF |
| 2897 | #define PACKAGE "gdb" |
| 2898 | EOF |
| 2899 | |
| 2900 | |
| 2901 | |
| 2902 | |
| 2903 | CONFIG_OBS= |
| 2904 | CONFIG_LIB_OBS= |
| 2905 | CONFIG_DEPS= |
| 2906 | CONFIG_SRCS= |
| 2907 | CONFIG_INITS= |
| 2908 | ENABLE_CFLAGS= |
| 2909 | CONFIG_ALL= |
| 2910 | CONFIG_CLEAN= |
| 2911 | CONFIG_INSTALL= |
| 2912 | CONFIG_UNINSTALL= |
| 2913 | |
| 2914 | subdirs="doc testsuite" |
| 2915 | |
| 2916 | configdirs= |
| 2917 | |
| 2918 | . $srcdir/configure.host |
| 2919 | |
| 2920 | . $srcdir/configure.tgt |
| 2921 | |
| 2922 | # Fetch the default architecture and default target vector from BFD. |
| 2923 | targ=$target; . $srcdir/../bfd/config.bfd |
| 2924 | |
| 2925 | # We only want the first architecture, so strip off the others if |
| 2926 | # there is more than one. |
| 2927 | targ_archs=`echo $targ_archs | sed 's/ .*//'` |
| 2928 | |
| 2929 | if test "x$targ_archs" != x; then |
| 2930 | cat >> confdefs.h <<EOF |
| 2931 | #define DEFAULT_BFD_ARCH $targ_archs |
| 2932 | EOF |
| 2933 | |
| 2934 | fi |
| 2935 | if test "x$targ_defvec" != x; then |
| 2936 | cat >> confdefs.h <<EOF |
| 2937 | #define DEFAULT_BFD_VEC $targ_defvec |
| 2938 | EOF |
| 2939 | |
| 2940 | fi |
| 2941 | |
| 2942 | if test "$program_transform_name" = s,x,x,; then |
| 2943 | program_transform_name= |
| 2944 | else |
| 2945 | # Double any \ or $. echo might interpret backslashes. |
| 2946 | cat <<\EOF_SED > conftestsed |
| 2947 | s,\\,\\\\,g; s,\$,$$,g |
| 2948 | EOF_SED |
| 2949 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
| 2950 | rm -f conftestsed |
| 2951 | fi |
| 2952 | test "$program_prefix" != NONE && |
| 2953 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
| 2954 | # Use a double $ so make ignores it. |
| 2955 | test "$program_suffix" != NONE && |
| 2956 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
| 2957 | |
| 2958 | # sed with no file args requires a program. |
| 2959 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
| 2960 | |
| 2961 | |
| 2962 | # The CLI cannot be disabled yet, but may be in the future. |
| 2963 | |
| 2964 | # Enable CLI. |
| 2965 | # Check whether --enable-gdbcli or --disable-gdbcli was given. |
| 2966 | if test "${enable_gdbcli+set}" = set; then |
| 2967 | enableval="$enable_gdbcli" |
| 2968 | case $enableval in |
| 2969 | yes) |
| 2970 | ;; |
| 2971 | no) |
| 2972 | { echo "configure: error: the command-line interface cannot be disabled yet" 1>&2; exit 1; } ;; |
| 2973 | *) |
| 2974 | { echo "configure: error: bad value $enableval for --enable-gdbcli" 1>&2; exit 1; } ;; |
| 2975 | esac |
| 2976 | else |
| 2977 | enable_gdbcli=yes |
| 2978 | fi |
| 2979 | |
| 2980 | if test x"$enable_gdbcli" = xyes; then |
| 2981 | if test -d $srcdir/cli; then |
| 2982 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" |
| 2983 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" |
| 2984 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" |
| 2985 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_CLI_INITS)" |
| 2986 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" |
| 2987 | CONFIG_ALL="$CONFIG_ALL \$(SUBDIR_CLI_ALL)" |
| 2988 | CONFIG_CLEAN="$CONFIG_CLEAN \$(SUBDIR_CLI_CLEAN)" |
| 2989 | CONFIG_INSTALL="$CONFIG_INSTALL \$(SUBDIR_CLI_INSTALL)" |
| 2990 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL \$(SUBDIR_CLI_UNINSTALL)" |
| 2991 | fi |
| 2992 | fi |
| 2993 | |
| 2994 | # Enable MI. |
| 2995 | # Check whether --enable-gdbmi or --disable-gdbmi was given. |
| 2996 | if test "${enable_gdbmi+set}" = set; then |
| 2997 | enableval="$enable_gdbmi" |
| 2998 | case $enableval in |
| 2999 | yes | no) |
| 3000 | ;; |
| 3001 | *) |
| 3002 | { echo "configure: error: bad value $enableval for --enable-gdbmi" 1>&2; exit 1; } ;; |
| 3003 | esac |
| 3004 | else |
| 3005 | enable_gdbmi=yes |
| 3006 | fi |
| 3007 | |
| 3008 | if test x"$enable_gdbmi" = xyes; then |
| 3009 | if test -d $srcdir/mi; then |
| 3010 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" |
| 3011 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" |
| 3012 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" |
| 3013 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_MI_INITS)" |
| 3014 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" |
| 3015 | CONFIG_ALL="$CONFIG_ALL \$(SUBDIR_MI_ALL)" |
| 3016 | CONFIG_CLEAN="$CONFIG_CLEAN \$(SUBDIR_MI_CLEAN)" |
| 3017 | CONFIG_INSTALL="$CONFIG_INSTALL \$(SUBDIR_MI_INSTALL)" |
| 3018 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL \$(SUBDIR_MI_UNINSTALL)" |
| 3019 | fi |
| 3020 | fi |
| 3021 | |
| 3022 | # Enable TUI. |
| 3023 | # Check whether --enable-tui or --disable-tui was given. |
| 3024 | if test "${enable_tui+set}" = set; then |
| 3025 | enableval="$enable_tui" |
| 3026 | case $enableval in |
| 3027 | yes | no) |
| 3028 | ;; |
| 3029 | *) |
| 3030 | { echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;; |
| 3031 | esac |
| 3032 | fi |
| 3033 | |
| 3034 | if test x"$enable_tui" = xyes; then |
| 3035 | if test -d $srcdir/tui; then |
| 3036 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" |
| 3037 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" |
| 3038 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" |
| 3039 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)" |
| 3040 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" |
| 3041 | CONFIG_ALL="$CONFIG_ALL \$(SUBDIR_TUI_ALL)" |
| 3042 | CONFIG_CLEAN="$CONFIG_CLEAN \$(SUBDIR_TUI_CLEAN)" |
| 3043 | CONFIG_INSTALL="$CONFIG_INSTALL \$(SUBDIR_TUI_INSTALL)" |
| 3044 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL \$(SUBDIR_TUI_UNINSTALL)" |
| 3045 | need_curses=yes |
| 3046 | fi |
| 3047 | fi |
| 3048 | |
| 3049 | # --------------------- # |
| 3050 | # Checks for programs. # |
| 3051 | # --------------------- # |
| 3052 | |
| 3053 | for ac_prog in mawk gawk nawk awk |
| 3054 | do |
| 3055 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3056 | set dummy $ac_prog; ac_word=$2 |
| 3057 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3058 | echo "configure:3059: checking for $ac_word" >&5 |
| 3059 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
| 3060 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3061 | else |
| 3062 | if test -n "$AWK"; then |
| 3063 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3064 | else |
| 3065 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3066 | ac_dummy="$PATH" |
| 3067 | for ac_dir in $ac_dummy; do |
| 3068 | test -z "$ac_dir" && ac_dir=. |
| 3069 | if test -f $ac_dir/$ac_word; then |
| 3070 | ac_cv_prog_AWK="$ac_prog" |
| 3071 | break |
| 3072 | fi |
| 3073 | done |
| 3074 | IFS="$ac_save_ifs" |
| 3075 | fi |
| 3076 | fi |
| 3077 | AWK="$ac_cv_prog_AWK" |
| 3078 | if test -n "$AWK"; then |
| 3079 | echo "$ac_t""$AWK" 1>&6 |
| 3080 | else |
| 3081 | echo "$ac_t""no" 1>&6 |
| 3082 | fi |
| 3083 | |
| 3084 | test -n "$AWK" && break |
| 3085 | done |
| 3086 | |
| 3087 | # Find a good install program. We prefer a C program (faster), |
| 3088 | # so one script is as good as another. But avoid the broken or |
| 3089 | # incompatible versions: |
| 3090 | # SysV /etc/install, /usr/sbin/install |
| 3091 | # SunOS /usr/etc/install |
| 3092 | # IRIX /sbin/install |
| 3093 | # AIX /bin/install |
| 3094 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3095 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3096 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3097 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3098 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| 3099 | echo "configure:3100: checking for a BSD compatible install" >&5 |
| 3100 | if test -z "$INSTALL"; then |
| 3101 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 3102 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3103 | else |
| 3104 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
| 3105 | for ac_dir in $PATH; do |
| 3106 | # Account for people who put trailing slashes in PATH elements. |
| 3107 | case "$ac_dir/" in |
| 3108 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 3109 | *) |
| 3110 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3111 | # Don't use installbsd from OSF since it installs stuff as root |
| 3112 | # by default. |
| 3113 | for ac_prog in ginstall scoinst install; do |
| 3114 | if test -f $ac_dir/$ac_prog; then |
| 3115 | if test $ac_prog = install && |
| 3116 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 3117 | # AIX install. It has an incompatible calling convention. |
| 3118 | : |
| 3119 | else |
| 3120 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 3121 | break 2 |
| 3122 | fi |
| 3123 | fi |
| 3124 | done |
| 3125 | ;; |
| 3126 | esac |
| 3127 | done |
| 3128 | IFS="$ac_save_IFS" |
| 3129 | |
| 3130 | fi |
| 3131 | if test "${ac_cv_path_install+set}" = set; then |
| 3132 | INSTALL="$ac_cv_path_install" |
| 3133 | else |
| 3134 | # As a last resort, use the slow shell script. We don't cache a |
| 3135 | # path for INSTALL within a source directory, because that will |
| 3136 | # break other packages using the cache if that directory is |
| 3137 | # removed, or if the path is relative. |
| 3138 | INSTALL="$ac_install_sh" |
| 3139 | fi |
| 3140 | fi |
| 3141 | echo "$ac_t""$INSTALL" 1>&6 |
| 3142 | |
| 3143 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3144 | # It thinks the first close brace ends the variable substitution. |
| 3145 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3146 | |
| 3147 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 3148 | |
| 3149 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3150 | |
| 3151 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
| 3152 | echo "configure:3153: checking whether ln -s works" >&5 |
| 3153 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 3154 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3155 | else |
| 3156 | rm -f conftestdata |
| 3157 | if ln -s X conftestdata 2>/dev/null |
| 3158 | then |
| 3159 | rm -f conftestdata |
| 3160 | ac_cv_prog_LN_S="ln -s" |
| 3161 | else |
| 3162 | ac_cv_prog_LN_S=ln |
| 3163 | fi |
| 3164 | fi |
| 3165 | LN_S="$ac_cv_prog_LN_S" |
| 3166 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| 3167 | echo "$ac_t""yes" 1>&6 |
| 3168 | else |
| 3169 | echo "$ac_t""no" 1>&6 |
| 3170 | fi |
| 3171 | |
| 3172 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3173 | set dummy ranlib; ac_word=$2 |
| 3174 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3175 | echo "configure:3176: checking for $ac_word" >&5 |
| 3176 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 3177 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3178 | else |
| 3179 | if test -n "$RANLIB"; then |
| 3180 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3181 | else |
| 3182 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3183 | ac_dummy="$PATH" |
| 3184 | for ac_dir in $ac_dummy; do |
| 3185 | test -z "$ac_dir" && ac_dir=. |
| 3186 | if test -f $ac_dir/$ac_word; then |
| 3187 | ac_cv_prog_RANLIB="ranlib" |
| 3188 | break |
| 3189 | fi |
| 3190 | done |
| 3191 | IFS="$ac_save_ifs" |
| 3192 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 3193 | fi |
| 3194 | fi |
| 3195 | RANLIB="$ac_cv_prog_RANLIB" |
| 3196 | if test -n "$RANLIB"; then |
| 3197 | echo "$ac_t""$RANLIB" 1>&6 |
| 3198 | else |
| 3199 | echo "$ac_t""no" 1>&6 |
| 3200 | fi |
| 3201 | |
| 3202 | for ac_prog in 'bison -y' byacc |
| 3203 | do |
| 3204 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3205 | set dummy $ac_prog; ac_word=$2 |
| 3206 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3207 | echo "configure:3208: checking for $ac_word" >&5 |
| 3208 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
| 3209 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3210 | else |
| 3211 | if test -n "$YACC"; then |
| 3212 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 3213 | else |
| 3214 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3215 | ac_dummy="$PATH" |
| 3216 | for ac_dir in $ac_dummy; do |
| 3217 | test -z "$ac_dir" && ac_dir=. |
| 3218 | if test -f $ac_dir/$ac_word; then |
| 3219 | ac_cv_prog_YACC="$ac_prog" |
| 3220 | break |
| 3221 | fi |
| 3222 | done |
| 3223 | IFS="$ac_save_ifs" |
| 3224 | fi |
| 3225 | fi |
| 3226 | YACC="$ac_cv_prog_YACC" |
| 3227 | if test -n "$YACC"; then |
| 3228 | echo "$ac_t""$YACC" 1>&6 |
| 3229 | else |
| 3230 | echo "$ac_t""no" 1>&6 |
| 3231 | fi |
| 3232 | |
| 3233 | test -n "$YACC" && break |
| 3234 | done |
| 3235 | test -n "$YACC" || YACC="yacc" |
| 3236 | |
| 3237 | |
| 3238 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 3239 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 3240 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3241 | echo "configure:3242: checking for $ac_word" >&5 |
| 3242 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 3243 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3244 | else |
| 3245 | if test -n "$AR"; then |
| 3246 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3247 | else |
| 3248 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3249 | ac_dummy="$PATH" |
| 3250 | for ac_dir in $ac_dummy; do |
| 3251 | test -z "$ac_dir" && ac_dir=. |
| 3252 | if test -f $ac_dir/$ac_word; then |
| 3253 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 3254 | break |
| 3255 | fi |
| 3256 | done |
| 3257 | IFS="$ac_save_ifs" |
| 3258 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
| 3259 | fi |
| 3260 | fi |
| 3261 | AR="$ac_cv_prog_AR" |
| 3262 | if test -n "$AR"; then |
| 3263 | echo "$ac_t""$AR" 1>&6 |
| 3264 | else |
| 3265 | echo "$ac_t""no" 1>&6 |
| 3266 | fi |
| 3267 | |
| 3268 | |
| 3269 | |
| 3270 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 3271 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 3272 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3273 | echo "configure:3274: checking for $ac_word" >&5 |
| 3274 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then |
| 3275 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3276 | else |
| 3277 | if test -n "$DLLTOOL"; then |
| 3278 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 3279 | else |
| 3280 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3281 | ac_dummy="$PATH" |
| 3282 | for ac_dir in $ac_dummy; do |
| 3283 | test -z "$ac_dir" && ac_dir=. |
| 3284 | if test -f $ac_dir/$ac_word; then |
| 3285 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 3286 | break |
| 3287 | fi |
| 3288 | done |
| 3289 | IFS="$ac_save_ifs" |
| 3290 | test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="dlltool" |
| 3291 | fi |
| 3292 | fi |
| 3293 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 3294 | if test -n "$DLLTOOL"; then |
| 3295 | echo "$ac_t""$DLLTOOL" 1>&6 |
| 3296 | else |
| 3297 | echo "$ac_t""no" 1>&6 |
| 3298 | fi |
| 3299 | |
| 3300 | |
| 3301 | |
| 3302 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 3303 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 3304 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3305 | echo "configure:3306: checking for $ac_word" >&5 |
| 3306 | if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then |
| 3307 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3308 | else |
| 3309 | if test -n "$WINDRES"; then |
| 3310 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 3311 | else |
| 3312 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3313 | ac_dummy="$PATH" |
| 3314 | for ac_dir in $ac_dummy; do |
| 3315 | test -z "$ac_dir" && ac_dir=. |
| 3316 | if test -f $ac_dir/$ac_word; then |
| 3317 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 3318 | break |
| 3319 | fi |
| 3320 | done |
| 3321 | IFS="$ac_save_ifs" |
| 3322 | test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES="windres" |
| 3323 | fi |
| 3324 | fi |
| 3325 | WINDRES="$ac_cv_prog_WINDRES" |
| 3326 | if test -n "$WINDRES"; then |
| 3327 | echo "$ac_t""$WINDRES" 1>&6 |
| 3328 | else |
| 3329 | echo "$ac_t""no" 1>&6 |
| 3330 | fi |
| 3331 | |
| 3332 | |
| 3333 | |
| 3334 | |
| 3335 | # Needed for GNU/Hurd. |
| 3336 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. |
| 3337 | set dummy ${ac_tool_prefix}mig; ac_word=$2 |
| 3338 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3339 | echo "configure:3340: checking for $ac_word" >&5 |
| 3340 | if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then |
| 3341 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3342 | else |
| 3343 | if test -n "$MIG"; then |
| 3344 | ac_cv_prog_MIG="$MIG" # Let the user override the test. |
| 3345 | else |
| 3346 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3347 | ac_dummy="$PATH" |
| 3348 | for ac_dir in $ac_dummy; do |
| 3349 | test -z "$ac_dir" && ac_dir=. |
| 3350 | if test -f $ac_dir/$ac_word; then |
| 3351 | ac_cv_prog_MIG="${ac_tool_prefix}mig" |
| 3352 | break |
| 3353 | fi |
| 3354 | done |
| 3355 | IFS="$ac_save_ifs" |
| 3356 | test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig" |
| 3357 | fi |
| 3358 | fi |
| 3359 | MIG="$ac_cv_prog_MIG" |
| 3360 | if test -n "$MIG"; then |
| 3361 | echo "$ac_t""$MIG" 1>&6 |
| 3362 | else |
| 3363 | echo "$ac_t""no" 1>&6 |
| 3364 | fi |
| 3365 | |
| 3366 | |
| 3367 | |
| 3368 | |
| 3369 | # ---------------------- # |
| 3370 | # Checks for libraries. # |
| 3371 | # ---------------------- # |
| 3372 | |
| 3373 | # We might need to link with -lm; most simulators need it. |
| 3374 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 |
| 3375 | echo "configure:3376: checking for main in -lm" >&5 |
| 3376 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` |
| 3377 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3378 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3379 | else |
| 3380 | ac_save_LIBS="$LIBS" |
| 3381 | LIBS="-lm $LIBS" |
| 3382 | cat > conftest.$ac_ext <<EOF |
| 3383 | #line 3384 "configure" |
| 3384 | #include "confdefs.h" |
| 3385 | |
| 3386 | int main() { |
| 3387 | main() |
| 3388 | ; return 0; } |
| 3389 | EOF |
| 3390 | if { (eval echo configure:3391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3391 | rm -rf conftest* |
| 3392 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3393 | else |
| 3394 | echo "configure: failed program was:" >&5 |
| 3395 | cat conftest.$ac_ext >&5 |
| 3396 | rm -rf conftest* |
| 3397 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3398 | fi |
| 3399 | rm -f conftest* |
| 3400 | LIBS="$ac_save_LIBS" |
| 3401 | |
| 3402 | fi |
| 3403 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3404 | echo "$ac_t""yes" 1>&6 |
| 3405 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3406 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 3407 | cat >> confdefs.h <<EOF |
| 3408 | #define $ac_tr_lib 1 |
| 3409 | EOF |
| 3410 | |
| 3411 | LIBS="-lm $LIBS" |
| 3412 | |
| 3413 | else |
| 3414 | echo "$ac_t""no" 1>&6 |
| 3415 | fi |
| 3416 | |
| 3417 | |
| 3418 | # We need to link with -lw to get `wctype' on Solaris before Solaris |
| 3419 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a |
| 3420 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 |
| 3421 | # is known to have this problem). Therefore we avoid libw if we can. |
| 3422 | echo $ac_n "checking for wctype""... $ac_c" 1>&6 |
| 3423 | echo "configure:3424: checking for wctype" >&5 |
| 3424 | if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then |
| 3425 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3426 | else |
| 3427 | cat > conftest.$ac_ext <<EOF |
| 3428 | #line 3429 "configure" |
| 3429 | #include "confdefs.h" |
| 3430 | /* System header to define __stub macros and hopefully few prototypes, |
| 3431 | which can conflict with char wctype(); below. */ |
| 3432 | #include <assert.h> |
| 3433 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3434 | /* We use char because int might match the return type of a gcc2 |
| 3435 | builtin and then its argument prototype would still apply. */ |
| 3436 | char wctype(); |
| 3437 | |
| 3438 | int main() { |
| 3439 | |
| 3440 | /* The GNU C library defines this for functions which it implements |
| 3441 | to always fail with ENOSYS. Some functions are actually named |
| 3442 | something starting with __ and the normal name is an alias. */ |
| 3443 | #if defined (__stub_wctype) || defined (__stub___wctype) |
| 3444 | choke me |
| 3445 | #else |
| 3446 | wctype(); |
| 3447 | #endif |
| 3448 | |
| 3449 | ; return 0; } |
| 3450 | EOF |
| 3451 | if { (eval echo configure:3452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3452 | rm -rf conftest* |
| 3453 | eval "ac_cv_func_wctype=yes" |
| 3454 | else |
| 3455 | echo "configure: failed program was:" >&5 |
| 3456 | cat conftest.$ac_ext >&5 |
| 3457 | rm -rf conftest* |
| 3458 | eval "ac_cv_func_wctype=no" |
| 3459 | fi |
| 3460 | rm -f conftest* |
| 3461 | fi |
| 3462 | |
| 3463 | if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then |
| 3464 | echo "$ac_t""yes" 1>&6 |
| 3465 | : |
| 3466 | else |
| 3467 | echo "$ac_t""no" 1>&6 |
| 3468 | echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6 |
| 3469 | echo "configure:3470: checking for wctype in -lw" >&5 |
| 3470 | ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'` |
| 3471 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3472 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3473 | else |
| 3474 | ac_save_LIBS="$LIBS" |
| 3475 | LIBS="-lw $LIBS" |
| 3476 | cat > conftest.$ac_ext <<EOF |
| 3477 | #line 3478 "configure" |
| 3478 | #include "confdefs.h" |
| 3479 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3480 | /* We use char because int might match the return type of a gcc2 |
| 3481 | builtin and then its argument prototype would still apply. */ |
| 3482 | char wctype(); |
| 3483 | |
| 3484 | int main() { |
| 3485 | wctype() |
| 3486 | ; return 0; } |
| 3487 | EOF |
| 3488 | if { (eval echo configure:3489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3489 | rm -rf conftest* |
| 3490 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3491 | else |
| 3492 | echo "configure: failed program was:" >&5 |
| 3493 | cat conftest.$ac_ext >&5 |
| 3494 | rm -rf conftest* |
| 3495 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3496 | fi |
| 3497 | rm -f conftest* |
| 3498 | LIBS="$ac_save_LIBS" |
| 3499 | |
| 3500 | fi |
| 3501 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3502 | echo "$ac_t""yes" 1>&6 |
| 3503 | ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3504 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 3505 | cat >> confdefs.h <<EOF |
| 3506 | #define $ac_tr_lib 1 |
| 3507 | EOF |
| 3508 | |
| 3509 | LIBS="-lw $LIBS" |
| 3510 | |
| 3511 | else |
| 3512 | echo "$ac_t""no" 1>&6 |
| 3513 | fi |
| 3514 | |
| 3515 | fi |
| 3516 | |
| 3517 | |
| 3518 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. |
| 3519 | |
| 3520 | echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6 |
| 3521 | echo "configure:3522: checking for library containing socketpair" >&5 |
| 3522 | if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then |
| 3523 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3524 | else |
| 3525 | ac_func_search_save_LIBS="$LIBS" |
| 3526 | ac_cv_search_socketpair="no" |
| 3527 | cat > conftest.$ac_ext <<EOF |
| 3528 | #line 3529 "configure" |
| 3529 | #include "confdefs.h" |
| 3530 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3531 | /* We use char because int might match the return type of a gcc2 |
| 3532 | builtin and then its argument prototype would still apply. */ |
| 3533 | char socketpair(); |
| 3534 | |
| 3535 | int main() { |
| 3536 | socketpair() |
| 3537 | ; return 0; } |
| 3538 | EOF |
| 3539 | if { (eval echo configure:3540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3540 | rm -rf conftest* |
| 3541 | ac_cv_search_socketpair="none required" |
| 3542 | else |
| 3543 | echo "configure: failed program was:" >&5 |
| 3544 | cat conftest.$ac_ext >&5 |
| 3545 | fi |
| 3546 | rm -f conftest* |
| 3547 | test "$ac_cv_search_socketpair" = "no" && for i in socket; do |
| 3548 | LIBS="-l$i $ac_func_search_save_LIBS" |
| 3549 | cat > conftest.$ac_ext <<EOF |
| 3550 | #line 3551 "configure" |
| 3551 | #include "confdefs.h" |
| 3552 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3553 | /* We use char because int might match the return type of a gcc2 |
| 3554 | builtin and then its argument prototype would still apply. */ |
| 3555 | char socketpair(); |
| 3556 | |
| 3557 | int main() { |
| 3558 | socketpair() |
| 3559 | ; return 0; } |
| 3560 | EOF |
| 3561 | if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3562 | rm -rf conftest* |
| 3563 | ac_cv_search_socketpair="-l$i" |
| 3564 | break |
| 3565 | else |
| 3566 | echo "configure: failed program was:" >&5 |
| 3567 | cat conftest.$ac_ext >&5 |
| 3568 | fi |
| 3569 | rm -f conftest* |
| 3570 | done |
| 3571 | LIBS="$ac_func_search_save_LIBS" |
| 3572 | fi |
| 3573 | |
| 3574 | echo "$ac_t""$ac_cv_search_socketpair" 1>&6 |
| 3575 | if test "$ac_cv_search_socketpair" != "no"; then |
| 3576 | test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS" |
| 3577 | |
| 3578 | else : |
| 3579 | |
| 3580 | fi |
| 3581 | |
| 3582 | # Since GDB uses Readline, we need termcap functionality, so we need |
| 3583 | # to find a library that provides that. When GDB is configured with |
| 3584 | # --enable-tui, we need full curses functionality. |
| 3585 | # |
| 3586 | # FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over |
| 3587 | # Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host |
| 3588 | # Makefile fragments. That's why we need to have `Hcurses' before |
| 3589 | # `curses'. I don't see why we should use HP curses if a more |
| 3590 | # standard curses is available, except that according to HP's |
| 3591 | # documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on |
| 3592 | # HP-UX 10.10 and 10.20. |
| 3593 | |
| 3594 | if test "$need_curses" = yes; then |
| 3595 | |
| 3596 | echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6 |
| 3597 | echo "configure:3598: checking for library containing initscr" >&5 |
| 3598 | if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then |
| 3599 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3600 | else |
| 3601 | ac_func_search_save_LIBS="$LIBS" |
| 3602 | ac_cv_search_initscr="no" |
| 3603 | cat > conftest.$ac_ext <<EOF |
| 3604 | #line 3605 "configure" |
| 3605 | #include "confdefs.h" |
| 3606 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3607 | /* We use char because int might match the return type of a gcc2 |
| 3608 | builtin and then its argument prototype would still apply. */ |
| 3609 | char initscr(); |
| 3610 | |
| 3611 | int main() { |
| 3612 | initscr() |
| 3613 | ; return 0; } |
| 3614 | EOF |
| 3615 | if { (eval echo configure:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3616 | rm -rf conftest* |
| 3617 | ac_cv_search_initscr="none required" |
| 3618 | else |
| 3619 | echo "configure: failed program was:" >&5 |
| 3620 | cat conftest.$ac_ext >&5 |
| 3621 | fi |
| 3622 | rm -f conftest* |
| 3623 | test "$ac_cv_search_initscr" = "no" && for i in ncurses Hcurses curses; do |
| 3624 | LIBS="-l$i $ac_func_search_save_LIBS" |
| 3625 | cat > conftest.$ac_ext <<EOF |
| 3626 | #line 3627 "configure" |
| 3627 | #include "confdefs.h" |
| 3628 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3629 | /* We use char because int might match the return type of a gcc2 |
| 3630 | builtin and then its argument prototype would still apply. */ |
| 3631 | char initscr(); |
| 3632 | |
| 3633 | int main() { |
| 3634 | initscr() |
| 3635 | ; return 0; } |
| 3636 | EOF |
| 3637 | if { (eval echo configure:3638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3638 | rm -rf conftest* |
| 3639 | ac_cv_search_initscr="-l$i" |
| 3640 | break |
| 3641 | else |
| 3642 | echo "configure: failed program was:" >&5 |
| 3643 | cat conftest.$ac_ext >&5 |
| 3644 | fi |
| 3645 | rm -f conftest* |
| 3646 | done |
| 3647 | LIBS="$ac_func_search_save_LIBS" |
| 3648 | fi |
| 3649 | |
| 3650 | echo "$ac_t""$ac_cv_search_initscr" 1>&6 |
| 3651 | if test "$ac_cv_search_initscr" != "no"; then |
| 3652 | test "$ac_cv_search_initscr" = "none required" || LIBS="$ac_cv_search_initscr $LIBS" |
| 3653 | |
| 3654 | else : |
| 3655 | { echo "configure: error: no curses library found" 1>&2; exit 1; } |
| 3656 | fi |
| 3657 | fi |
| 3658 | |
| 3659 | case $host_os in |
| 3660 | cygwin*) |
| 3661 | if test -d $srcdir/libtermcap; then |
| 3662 | LIBS="../libtermcap/libtermcap.a $LIBS" |
| 3663 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" |
| 3664 | fi ;; |
| 3665 | go32*) |
| 3666 | # ??? Is this really true? |
| 3667 | ac_cv_search_tgetent="none required" |
| 3668 | ;; |
| 3669 | aix*) |
| 3670 | # Readline prefers curses over termcap on AIX. |
| 3671 | # ??? Why? |
| 3672 | |
| 3673 | echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6 |
| 3674 | echo "configure:3675: checking for library containing tgetent" >&5 |
| 3675 | if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then |
| 3676 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3677 | else |
| 3678 | ac_func_search_save_LIBS="$LIBS" |
| 3679 | ac_cv_search_tgetent="no" |
| 3680 | cat > conftest.$ac_ext <<EOF |
| 3681 | #line 3682 "configure" |
| 3682 | #include "confdefs.h" |
| 3683 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3684 | /* We use char because int might match the return type of a gcc2 |
| 3685 | builtin and then its argument prototype would still apply. */ |
| 3686 | char tgetent(); |
| 3687 | |
| 3688 | int main() { |
| 3689 | tgetent() |
| 3690 | ; return 0; } |
| 3691 | EOF |
| 3692 | if { (eval echo configure:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3693 | rm -rf conftest* |
| 3694 | ac_cv_search_tgetent="none required" |
| 3695 | else |
| 3696 | echo "configure: failed program was:" >&5 |
| 3697 | cat conftest.$ac_ext >&5 |
| 3698 | fi |
| 3699 | rm -f conftest* |
| 3700 | test "$ac_cv_search_tgetent" = "no" && for i in tinfo ncurses curses termcap; do |
| 3701 | LIBS="-l$i $ac_func_search_save_LIBS" |
| 3702 | cat > conftest.$ac_ext <<EOF |
| 3703 | #line 3704 "configure" |
| 3704 | #include "confdefs.h" |
| 3705 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3706 | /* We use char because int might match the return type of a gcc2 |
| 3707 | builtin and then its argument prototype would still apply. */ |
| 3708 | char tgetent(); |
| 3709 | |
| 3710 | int main() { |
| 3711 | tgetent() |
| 3712 | ; return 0; } |
| 3713 | EOF |
| 3714 | if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3715 | rm -rf conftest* |
| 3716 | ac_cv_search_tgetent="-l$i" |
| 3717 | break |
| 3718 | else |
| 3719 | echo "configure: failed program was:" >&5 |
| 3720 | cat conftest.$ac_ext >&5 |
| 3721 | fi |
| 3722 | rm -f conftest* |
| 3723 | done |
| 3724 | LIBS="$ac_func_search_save_LIBS" |
| 3725 | fi |
| 3726 | |
| 3727 | echo "$ac_t""$ac_cv_search_tgetent" 1>&6 |
| 3728 | if test "$ac_cv_search_tgetent" != "no"; then |
| 3729 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" |
| 3730 | |
| 3731 | else : |
| 3732 | |
| 3733 | fi |
| 3734 | ;; |
| 3735 | esac |
| 3736 | |
| 3737 | # Note: We used to check for libtermlib and libterminfo too, but |
| 3738 | # Readline doesn't, so I think we're safe with leaving them out. |
| 3739 | |
| 3740 | echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6 |
| 3741 | echo "configure:3742: checking for library containing tgetent" >&5 |
| 3742 | if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then |
| 3743 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3744 | else |
| 3745 | ac_func_search_save_LIBS="$LIBS" |
| 3746 | ac_cv_search_tgetent="no" |
| 3747 | cat > conftest.$ac_ext <<EOF |
| 3748 | #line 3749 "configure" |
| 3749 | #include "confdefs.h" |
| 3750 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3751 | /* We use char because int might match the return type of a gcc2 |
| 3752 | builtin and then its argument prototype would still apply. */ |
| 3753 | char tgetent(); |
| 3754 | |
| 3755 | int main() { |
| 3756 | tgetent() |
| 3757 | ; return 0; } |
| 3758 | EOF |
| 3759 | if { (eval echo configure:3760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3760 | rm -rf conftest* |
| 3761 | ac_cv_search_tgetent="none required" |
| 3762 | else |
| 3763 | echo "configure: failed program was:" >&5 |
| 3764 | cat conftest.$ac_ext >&5 |
| 3765 | fi |
| 3766 | rm -f conftest* |
| 3767 | test "$ac_cv_search_tgetent" = "no" && for i in termcap tinfo ncurses Hcurses curses; do |
| 3768 | LIBS="-l$i $ac_func_search_save_LIBS" |
| 3769 | cat > conftest.$ac_ext <<EOF |
| 3770 | #line 3771 "configure" |
| 3771 | #include "confdefs.h" |
| 3772 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3773 | /* We use char because int might match the return type of a gcc2 |
| 3774 | builtin and then its argument prototype would still apply. */ |
| 3775 | char tgetent(); |
| 3776 | |
| 3777 | int main() { |
| 3778 | tgetent() |
| 3779 | ; return 0; } |
| 3780 | EOF |
| 3781 | if { (eval echo configure:3782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3782 | rm -rf conftest* |
| 3783 | ac_cv_search_tgetent="-l$i" |
| 3784 | break |
| 3785 | else |
| 3786 | echo "configure: failed program was:" >&5 |
| 3787 | cat conftest.$ac_ext >&5 |
| 3788 | fi |
| 3789 | rm -f conftest* |
| 3790 | done |
| 3791 | LIBS="$ac_func_search_save_LIBS" |
| 3792 | fi |
| 3793 | |
| 3794 | echo "$ac_t""$ac_cv_search_tgetent" 1>&6 |
| 3795 | if test "$ac_cv_search_tgetent" != "no"; then |
| 3796 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" |
| 3797 | |
| 3798 | else : |
| 3799 | |
| 3800 | fi |
| 3801 | |
| 3802 | if test "$ac_cv_search_tgetent" = no; then |
| 3803 | { echo "configure: error: no termcap library found" 1>&2; exit 1; } |
| 3804 | fi |
| 3805 | |
| 3806 | # ------------------------- # |
| 3807 | # Checks for header files. # |
| 3808 | # ------------------------- # |
| 3809 | |
| 3810 | ac_header_dirent=no |
| 3811 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 3812 | do |
| 3813 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3814 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
| 3815 | echo "configure:3816: checking for $ac_hdr that defines DIR" >&5 |
| 3816 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
| 3817 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3818 | else |
| 3819 | cat > conftest.$ac_ext <<EOF |
| 3820 | #line 3821 "configure" |
| 3821 | #include "confdefs.h" |
| 3822 | #include <sys/types.h> |
| 3823 | #include <$ac_hdr> |
| 3824 | int main() { |
| 3825 | DIR *dirp = 0; |
| 3826 | ; return 0; } |
| 3827 | EOF |
| 3828 | if { (eval echo configure:3829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 3829 | rm -rf conftest* |
| 3830 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 3831 | else |
| 3832 | echo "configure: failed program was:" >&5 |
| 3833 | cat conftest.$ac_ext >&5 |
| 3834 | rm -rf conftest* |
| 3835 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 3836 | fi |
| 3837 | rm -f conftest* |
| 3838 | fi |
| 3839 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then |
| 3840 | echo "$ac_t""yes" 1>&6 |
| 3841 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3842 | cat >> confdefs.h <<EOF |
| 3843 | #define $ac_tr_hdr 1 |
| 3844 | EOF |
| 3845 | ac_header_dirent=$ac_hdr; break |
| 3846 | else |
| 3847 | echo "$ac_t""no" 1>&6 |
| 3848 | fi |
| 3849 | done |
| 3850 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 3851 | if test $ac_header_dirent = dirent.h; then |
| 3852 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
| 3853 | echo "configure:3854: checking for opendir in -ldir" >&5 |
| 3854 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
| 3855 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3856 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3857 | else |
| 3858 | ac_save_LIBS="$LIBS" |
| 3859 | LIBS="-ldir $LIBS" |
| 3860 | cat > conftest.$ac_ext <<EOF |
| 3861 | #line 3862 "configure" |
| 3862 | #include "confdefs.h" |
| 3863 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3864 | /* We use char because int might match the return type of a gcc2 |
| 3865 | builtin and then its argument prototype would still apply. */ |
| 3866 | char opendir(); |
| 3867 | |
| 3868 | int main() { |
| 3869 | opendir() |
| 3870 | ; return 0; } |
| 3871 | EOF |
| 3872 | if { (eval echo configure:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3873 | rm -rf conftest* |
| 3874 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3875 | else |
| 3876 | echo "configure: failed program was:" >&5 |
| 3877 | cat conftest.$ac_ext >&5 |
| 3878 | rm -rf conftest* |
| 3879 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3880 | fi |
| 3881 | rm -f conftest* |
| 3882 | LIBS="$ac_save_LIBS" |
| 3883 | |
| 3884 | fi |
| 3885 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3886 | echo "$ac_t""yes" 1>&6 |
| 3887 | LIBS="$LIBS -ldir" |
| 3888 | else |
| 3889 | echo "$ac_t""no" 1>&6 |
| 3890 | fi |
| 3891 | |
| 3892 | else |
| 3893 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
| 3894 | echo "configure:3895: checking for opendir in -lx" >&5 |
| 3895 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
| 3896 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3897 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3898 | else |
| 3899 | ac_save_LIBS="$LIBS" |
| 3900 | LIBS="-lx $LIBS" |
| 3901 | cat > conftest.$ac_ext <<EOF |
| 3902 | #line 3903 "configure" |
| 3903 | #include "confdefs.h" |
| 3904 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3905 | /* We use char because int might match the return type of a gcc2 |
| 3906 | builtin and then its argument prototype would still apply. */ |
| 3907 | char opendir(); |
| 3908 | |
| 3909 | int main() { |
| 3910 | opendir() |
| 3911 | ; return 0; } |
| 3912 | EOF |
| 3913 | if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3914 | rm -rf conftest* |
| 3915 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3916 | else |
| 3917 | echo "configure: failed program was:" >&5 |
| 3918 | cat conftest.$ac_ext >&5 |
| 3919 | rm -rf conftest* |
| 3920 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3921 | fi |
| 3922 | rm -f conftest* |
| 3923 | LIBS="$ac_save_LIBS" |
| 3924 | |
| 3925 | fi |
| 3926 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3927 | echo "$ac_t""yes" 1>&6 |
| 3928 | LIBS="$LIBS -lx" |
| 3929 | else |
| 3930 | echo "$ac_t""no" 1>&6 |
| 3931 | fi |
| 3932 | |
| 3933 | fi |
| 3934 | |
| 3935 | echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 |
| 3936 | echo "configure:3937: checking whether stat file-mode macros are broken" >&5 |
| 3937 | if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then |
| 3938 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3939 | else |
| 3940 | cat > conftest.$ac_ext <<EOF |
| 3941 | #line 3942 "configure" |
| 3942 | #include "confdefs.h" |
| 3943 | #include <sys/types.h> |
| 3944 | #include <sys/stat.h> |
| 3945 | |
| 3946 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 3947 | # if S_ISBLK (S_IFDIR) |
| 3948 | You lose. |
| 3949 | # endif |
| 3950 | #endif |
| 3951 | |
| 3952 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 3953 | # if S_ISBLK (S_IFCHR) |
| 3954 | You lose. |
| 3955 | # endif |
| 3956 | #endif |
| 3957 | |
| 3958 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 3959 | # if S_ISLNK (S_IFREG) |
| 3960 | You lose. |
| 3961 | # endif |
| 3962 | #endif |
| 3963 | |
| 3964 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 3965 | # if S_ISSOCK (S_IFREG) |
| 3966 | You lose. |
| 3967 | # endif |
| 3968 | #endif |
| 3969 | |
| 3970 | EOF |
| 3971 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3972 | egrep "You lose" >/dev/null 2>&1; then |
| 3973 | rm -rf conftest* |
| 3974 | ac_cv_header_stat_broken=yes |
| 3975 | else |
| 3976 | rm -rf conftest* |
| 3977 | ac_cv_header_stat_broken=no |
| 3978 | fi |
| 3979 | rm -f conftest* |
| 3980 | |
| 3981 | fi |
| 3982 | |
| 3983 | echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 |
| 3984 | if test $ac_cv_header_stat_broken = yes; then |
| 3985 | cat >> confdefs.h <<\EOF |
| 3986 | #define STAT_MACROS_BROKEN 1 |
| 3987 | EOF |
| 3988 | |
| 3989 | fi |
| 3990 | |
| 3991 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 3992 | echo "configure:3993: checking for ANSI C header files" >&5 |
| 3993 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 3994 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3995 | else |
| 3996 | cat > conftest.$ac_ext <<EOF |
| 3997 | #line 3998 "configure" |
| 3998 | #include "confdefs.h" |
| 3999 | #include <stdlib.h> |
| 4000 | #include <stdarg.h> |
| 4001 | #include <string.h> |
| 4002 | #include <float.h> |
| 4003 | EOF |
| 4004 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4005 | { (eval echo configure:4006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4006 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4007 | if test -z "$ac_err"; then |
| 4008 | rm -rf conftest* |
| 4009 | ac_cv_header_stdc=yes |
| 4010 | else |
| 4011 | echo "$ac_err" >&5 |
| 4012 | echo "configure: failed program was:" >&5 |
| 4013 | cat conftest.$ac_ext >&5 |
| 4014 | rm -rf conftest* |
| 4015 | ac_cv_header_stdc=no |
| 4016 | fi |
| 4017 | rm -f conftest* |
| 4018 | |
| 4019 | if test $ac_cv_header_stdc = yes; then |
| 4020 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4021 | cat > conftest.$ac_ext <<EOF |
| 4022 | #line 4023 "configure" |
| 4023 | #include "confdefs.h" |
| 4024 | #include <string.h> |
| 4025 | EOF |
| 4026 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4027 | egrep "memchr" >/dev/null 2>&1; then |
| 4028 | : |
| 4029 | else |
| 4030 | rm -rf conftest* |
| 4031 | ac_cv_header_stdc=no |
| 4032 | fi |
| 4033 | rm -f conftest* |
| 4034 | |
| 4035 | fi |
| 4036 | |
| 4037 | if test $ac_cv_header_stdc = yes; then |
| 4038 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4039 | cat > conftest.$ac_ext <<EOF |
| 4040 | #line 4041 "configure" |
| 4041 | #include "confdefs.h" |
| 4042 | #include <stdlib.h> |
| 4043 | EOF |
| 4044 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4045 | egrep "free" >/dev/null 2>&1; then |
| 4046 | : |
| 4047 | else |
| 4048 | rm -rf conftest* |
| 4049 | ac_cv_header_stdc=no |
| 4050 | fi |
| 4051 | rm -f conftest* |
| 4052 | |
| 4053 | fi |
| 4054 | |
| 4055 | if test $ac_cv_header_stdc = yes; then |
| 4056 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4057 | if test "$cross_compiling" = yes; then |
| 4058 | : |
| 4059 | else |
| 4060 | cat > conftest.$ac_ext <<EOF |
| 4061 | #line 4062 "configure" |
| 4062 | #include "confdefs.h" |
| 4063 | #include <ctype.h> |
| 4064 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4065 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4066 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4067 | int main () { int i; for (i = 0; i < 256; i++) |
| 4068 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 4069 | exit (0); } |
| 4070 | |
| 4071 | EOF |
| 4072 | if { (eval echo configure:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 4073 | then |
| 4074 | : |
| 4075 | else |
| 4076 | echo "configure: failed program was:" >&5 |
| 4077 | cat conftest.$ac_ext >&5 |
| 4078 | rm -fr conftest* |
| 4079 | ac_cv_header_stdc=no |
| 4080 | fi |
| 4081 | rm -fr conftest* |
| 4082 | fi |
| 4083 | |
| 4084 | fi |
| 4085 | fi |
| 4086 | |
| 4087 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 4088 | if test $ac_cv_header_stdc = yes; then |
| 4089 | cat >> confdefs.h <<\EOF |
| 4090 | #define STDC_HEADERS 1 |
| 4091 | EOF |
| 4092 | |
| 4093 | fi |
| 4094 | |
| 4095 | for ac_hdr in link.h |
| 4096 | do |
| 4097 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4098 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4099 | echo "configure:4100: checking for $ac_hdr" >&5 |
| 4100 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4101 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4102 | else |
| 4103 | cat > conftest.$ac_ext <<EOF |
| 4104 | #line 4105 "configure" |
| 4105 | #include "confdefs.h" |
| 4106 | #include <$ac_hdr> |
| 4107 | EOF |
| 4108 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4109 | { (eval echo configure:4110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4110 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4111 | if test -z "$ac_err"; then |
| 4112 | rm -rf conftest* |
| 4113 | eval "ac_cv_header_$ac_safe=yes" |
| 4114 | else |
| 4115 | echo "$ac_err" >&5 |
| 4116 | echo "configure: failed program was:" >&5 |
| 4117 | cat conftest.$ac_ext >&5 |
| 4118 | rm -rf conftest* |
| 4119 | eval "ac_cv_header_$ac_safe=no" |
| 4120 | fi |
| 4121 | rm -f conftest* |
| 4122 | fi |
| 4123 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4124 | echo "$ac_t""yes" 1>&6 |
| 4125 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4126 | cat >> confdefs.h <<EOF |
| 4127 | #define $ac_tr_hdr 1 |
| 4128 | EOF |
| 4129 | |
| 4130 | else |
| 4131 | echo "$ac_t""no" 1>&6 |
| 4132 | fi |
| 4133 | done |
| 4134 | |
| 4135 | for ac_hdr in nlist.h |
| 4136 | do |
| 4137 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4138 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4139 | echo "configure:4140: checking for $ac_hdr" >&5 |
| 4140 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4141 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4142 | else |
| 4143 | cat > conftest.$ac_ext <<EOF |
| 4144 | #line 4145 "configure" |
| 4145 | #include "confdefs.h" |
| 4146 | #include <$ac_hdr> |
| 4147 | EOF |
| 4148 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4149 | { (eval echo configure:4150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4150 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4151 | if test -z "$ac_err"; then |
| 4152 | rm -rf conftest* |
| 4153 | eval "ac_cv_header_$ac_safe=yes" |
| 4154 | else |
| 4155 | echo "$ac_err" >&5 |
| 4156 | echo "configure: failed program was:" >&5 |
| 4157 | cat conftest.$ac_ext >&5 |
| 4158 | rm -rf conftest* |
| 4159 | eval "ac_cv_header_$ac_safe=no" |
| 4160 | fi |
| 4161 | rm -f conftest* |
| 4162 | fi |
| 4163 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4164 | echo "$ac_t""yes" 1>&6 |
| 4165 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4166 | cat >> confdefs.h <<EOF |
| 4167 | #define $ac_tr_hdr 1 |
| 4168 | EOF |
| 4169 | |
| 4170 | else |
| 4171 | echo "$ac_t""no" 1>&6 |
| 4172 | fi |
| 4173 | done |
| 4174 | |
| 4175 | for ac_hdr in poll.h sys/poll.h |
| 4176 | do |
| 4177 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4178 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4179 | echo "configure:4180: checking for $ac_hdr" >&5 |
| 4180 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4181 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4182 | else |
| 4183 | cat > conftest.$ac_ext <<EOF |
| 4184 | #line 4185 "configure" |
| 4185 | #include "confdefs.h" |
| 4186 | #include <$ac_hdr> |
| 4187 | EOF |
| 4188 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4189 | { (eval echo configure:4190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4190 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4191 | if test -z "$ac_err"; then |
| 4192 | rm -rf conftest* |
| 4193 | eval "ac_cv_header_$ac_safe=yes" |
| 4194 | else |
| 4195 | echo "$ac_err" >&5 |
| 4196 | echo "configure: failed program was:" >&5 |
| 4197 | cat conftest.$ac_ext >&5 |
| 4198 | rm -rf conftest* |
| 4199 | eval "ac_cv_header_$ac_safe=no" |
| 4200 | fi |
| 4201 | rm -f conftest* |
| 4202 | fi |
| 4203 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4204 | echo "$ac_t""yes" 1>&6 |
| 4205 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4206 | cat >> confdefs.h <<EOF |
| 4207 | #define $ac_tr_hdr 1 |
| 4208 | EOF |
| 4209 | |
| 4210 | else |
| 4211 | echo "$ac_t""no" 1>&6 |
| 4212 | fi |
| 4213 | done |
| 4214 | |
| 4215 | for ac_hdr in proc_service.h thread_db.h |
| 4216 | do |
| 4217 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4218 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4219 | echo "configure:4220: checking for $ac_hdr" >&5 |
| 4220 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4221 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4222 | else |
| 4223 | cat > conftest.$ac_ext <<EOF |
| 4224 | #line 4225 "configure" |
| 4225 | #include "confdefs.h" |
| 4226 | #include <$ac_hdr> |
| 4227 | EOF |
| 4228 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4229 | { (eval echo configure:4230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4230 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4231 | if test -z "$ac_err"; then |
| 4232 | rm -rf conftest* |
| 4233 | eval "ac_cv_header_$ac_safe=yes" |
| 4234 | else |
| 4235 | echo "$ac_err" >&5 |
| 4236 | echo "configure: failed program was:" >&5 |
| 4237 | cat conftest.$ac_ext >&5 |
| 4238 | rm -rf conftest* |
| 4239 | eval "ac_cv_header_$ac_safe=no" |
| 4240 | fi |
| 4241 | rm -f conftest* |
| 4242 | fi |
| 4243 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4244 | echo "$ac_t""yes" 1>&6 |
| 4245 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4246 | cat >> confdefs.h <<EOF |
| 4247 | #define $ac_tr_hdr 1 |
| 4248 | EOF |
| 4249 | |
| 4250 | else |
| 4251 | echo "$ac_t""no" 1>&6 |
| 4252 | fi |
| 4253 | done |
| 4254 | |
| 4255 | for ac_hdr in stddef.h |
| 4256 | do |
| 4257 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4258 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4259 | echo "configure:4260: checking for $ac_hdr" >&5 |
| 4260 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4261 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4262 | else |
| 4263 | cat > conftest.$ac_ext <<EOF |
| 4264 | #line 4265 "configure" |
| 4265 | #include "confdefs.h" |
| 4266 | #include <$ac_hdr> |
| 4267 | EOF |
| 4268 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4269 | { (eval echo configure:4270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4270 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4271 | if test -z "$ac_err"; then |
| 4272 | rm -rf conftest* |
| 4273 | eval "ac_cv_header_$ac_safe=yes" |
| 4274 | else |
| 4275 | echo "$ac_err" >&5 |
| 4276 | echo "configure: failed program was:" >&5 |
| 4277 | cat conftest.$ac_ext >&5 |
| 4278 | rm -rf conftest* |
| 4279 | eval "ac_cv_header_$ac_safe=no" |
| 4280 | fi |
| 4281 | rm -f conftest* |
| 4282 | fi |
| 4283 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4284 | echo "$ac_t""yes" 1>&6 |
| 4285 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4286 | cat >> confdefs.h <<EOF |
| 4287 | #define $ac_tr_hdr 1 |
| 4288 | EOF |
| 4289 | |
| 4290 | else |
| 4291 | echo "$ac_t""no" 1>&6 |
| 4292 | fi |
| 4293 | done |
| 4294 | |
| 4295 | for ac_hdr in stdlib.h |
| 4296 | do |
| 4297 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4298 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4299 | echo "configure:4300: checking for $ac_hdr" >&5 |
| 4300 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4301 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4302 | else |
| 4303 | cat > conftest.$ac_ext <<EOF |
| 4304 | #line 4305 "configure" |
| 4305 | #include "confdefs.h" |
| 4306 | #include <$ac_hdr> |
| 4307 | EOF |
| 4308 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4309 | { (eval echo configure:4310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4310 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4311 | if test -z "$ac_err"; then |
| 4312 | rm -rf conftest* |
| 4313 | eval "ac_cv_header_$ac_safe=yes" |
| 4314 | else |
| 4315 | echo "$ac_err" >&5 |
| 4316 | echo "configure: failed program was:" >&5 |
| 4317 | cat conftest.$ac_ext >&5 |
| 4318 | rm -rf conftest* |
| 4319 | eval "ac_cv_header_$ac_safe=no" |
| 4320 | fi |
| 4321 | rm -f conftest* |
| 4322 | fi |
| 4323 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4324 | echo "$ac_t""yes" 1>&6 |
| 4325 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4326 | cat >> confdefs.h <<EOF |
| 4327 | #define $ac_tr_hdr 1 |
| 4328 | EOF |
| 4329 | |
| 4330 | else |
| 4331 | echo "$ac_t""no" 1>&6 |
| 4332 | fi |
| 4333 | done |
| 4334 | |
| 4335 | for ac_hdr in stdint.h |
| 4336 | do |
| 4337 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4338 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4339 | echo "configure:4340: checking for $ac_hdr" >&5 |
| 4340 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4341 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4342 | else |
| 4343 | cat > conftest.$ac_ext <<EOF |
| 4344 | #line 4345 "configure" |
| 4345 | #include "confdefs.h" |
| 4346 | #include <$ac_hdr> |
| 4347 | EOF |
| 4348 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4349 | { (eval echo configure:4350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4350 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4351 | if test -z "$ac_err"; then |
| 4352 | rm -rf conftest* |
| 4353 | eval "ac_cv_header_$ac_safe=yes" |
| 4354 | else |
| 4355 | echo "$ac_err" >&5 |
| 4356 | echo "configure: failed program was:" >&5 |
| 4357 | cat conftest.$ac_ext >&5 |
| 4358 | rm -rf conftest* |
| 4359 | eval "ac_cv_header_$ac_safe=no" |
| 4360 | fi |
| 4361 | rm -f conftest* |
| 4362 | fi |
| 4363 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4364 | echo "$ac_t""yes" 1>&6 |
| 4365 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4366 | cat >> confdefs.h <<EOF |
| 4367 | #define $ac_tr_hdr 1 |
| 4368 | EOF |
| 4369 | |
| 4370 | else |
| 4371 | echo "$ac_t""no" 1>&6 |
| 4372 | fi |
| 4373 | done |
| 4374 | |
| 4375 | for ac_hdr in string.h memory.h strings.h |
| 4376 | do |
| 4377 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4378 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4379 | echo "configure:4380: checking for $ac_hdr" >&5 |
| 4380 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4381 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4382 | else |
| 4383 | cat > conftest.$ac_ext <<EOF |
| 4384 | #line 4385 "configure" |
| 4385 | #include "confdefs.h" |
| 4386 | #include <$ac_hdr> |
| 4387 | EOF |
| 4388 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4389 | { (eval echo configure:4390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4390 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4391 | if test -z "$ac_err"; then |
| 4392 | rm -rf conftest* |
| 4393 | eval "ac_cv_header_$ac_safe=yes" |
| 4394 | else |
| 4395 | echo "$ac_err" >&5 |
| 4396 | echo "configure: failed program was:" >&5 |
| 4397 | cat conftest.$ac_ext >&5 |
| 4398 | rm -rf conftest* |
| 4399 | eval "ac_cv_header_$ac_safe=no" |
| 4400 | fi |
| 4401 | rm -f conftest* |
| 4402 | fi |
| 4403 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4404 | echo "$ac_t""yes" 1>&6 |
| 4405 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4406 | cat >> confdefs.h <<EOF |
| 4407 | #define $ac_tr_hdr 1 |
| 4408 | EOF |
| 4409 | |
| 4410 | else |
| 4411 | echo "$ac_t""no" 1>&6 |
| 4412 | fi |
| 4413 | done |
| 4414 | |
| 4415 | for ac_hdr in sys/fault.h |
| 4416 | do |
| 4417 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4418 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4419 | echo "configure:4420: checking for $ac_hdr" >&5 |
| 4420 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4421 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4422 | else |
| 4423 | cat > conftest.$ac_ext <<EOF |
| 4424 | #line 4425 "configure" |
| 4425 | #include "confdefs.h" |
| 4426 | #include <$ac_hdr> |
| 4427 | EOF |
| 4428 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4429 | { (eval echo configure:4430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4430 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4431 | if test -z "$ac_err"; then |
| 4432 | rm -rf conftest* |
| 4433 | eval "ac_cv_header_$ac_safe=yes" |
| 4434 | else |
| 4435 | echo "$ac_err" >&5 |
| 4436 | echo "configure: failed program was:" >&5 |
| 4437 | cat conftest.$ac_ext >&5 |
| 4438 | rm -rf conftest* |
| 4439 | eval "ac_cv_header_$ac_safe=no" |
| 4440 | fi |
| 4441 | rm -f conftest* |
| 4442 | fi |
| 4443 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4444 | echo "$ac_t""yes" 1>&6 |
| 4445 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4446 | cat >> confdefs.h <<EOF |
| 4447 | #define $ac_tr_hdr 1 |
| 4448 | EOF |
| 4449 | |
| 4450 | else |
| 4451 | echo "$ac_t""no" 1>&6 |
| 4452 | fi |
| 4453 | done |
| 4454 | |
| 4455 | for ac_hdr in sys/file.h |
| 4456 | do |
| 4457 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4458 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4459 | echo "configure:4460: checking for $ac_hdr" >&5 |
| 4460 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4461 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4462 | else |
| 4463 | cat > conftest.$ac_ext <<EOF |
| 4464 | #line 4465 "configure" |
| 4465 | #include "confdefs.h" |
| 4466 | #include <$ac_hdr> |
| 4467 | EOF |
| 4468 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4469 | { (eval echo configure:4470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4470 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4471 | if test -z "$ac_err"; then |
| 4472 | rm -rf conftest* |
| 4473 | eval "ac_cv_header_$ac_safe=yes" |
| 4474 | else |
| 4475 | echo "$ac_err" >&5 |
| 4476 | echo "configure: failed program was:" >&5 |
| 4477 | cat conftest.$ac_ext >&5 |
| 4478 | rm -rf conftest* |
| 4479 | eval "ac_cv_header_$ac_safe=no" |
| 4480 | fi |
| 4481 | rm -f conftest* |
| 4482 | fi |
| 4483 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4484 | echo "$ac_t""yes" 1>&6 |
| 4485 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4486 | cat >> confdefs.h <<EOF |
| 4487 | #define $ac_tr_hdr 1 |
| 4488 | EOF |
| 4489 | |
| 4490 | else |
| 4491 | echo "$ac_t""no" 1>&6 |
| 4492 | fi |
| 4493 | done |
| 4494 | |
| 4495 | for ac_hdr in sys/filio.h |
| 4496 | do |
| 4497 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4498 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4499 | echo "configure:4500: checking for $ac_hdr" >&5 |
| 4500 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4501 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4502 | else |
| 4503 | cat > conftest.$ac_ext <<EOF |
| 4504 | #line 4505 "configure" |
| 4505 | #include "confdefs.h" |
| 4506 | #include <$ac_hdr> |
| 4507 | EOF |
| 4508 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4509 | { (eval echo configure:4510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4510 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4511 | if test -z "$ac_err"; then |
| 4512 | rm -rf conftest* |
| 4513 | eval "ac_cv_header_$ac_safe=yes" |
| 4514 | else |
| 4515 | echo "$ac_err" >&5 |
| 4516 | echo "configure: failed program was:" >&5 |
| 4517 | cat conftest.$ac_ext >&5 |
| 4518 | rm -rf conftest* |
| 4519 | eval "ac_cv_header_$ac_safe=no" |
| 4520 | fi |
| 4521 | rm -f conftest* |
| 4522 | fi |
| 4523 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4524 | echo "$ac_t""yes" 1>&6 |
| 4525 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4526 | cat >> confdefs.h <<EOF |
| 4527 | #define $ac_tr_hdr 1 |
| 4528 | EOF |
| 4529 | |
| 4530 | else |
| 4531 | echo "$ac_t""no" 1>&6 |
| 4532 | fi |
| 4533 | done |
| 4534 | |
| 4535 | for ac_hdr in sys/ioctl.h |
| 4536 | do |
| 4537 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4538 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4539 | echo "configure:4540: checking for $ac_hdr" >&5 |
| 4540 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4541 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4542 | else |
| 4543 | cat > conftest.$ac_ext <<EOF |
| 4544 | #line 4545 "configure" |
| 4545 | #include "confdefs.h" |
| 4546 | #include <$ac_hdr> |
| 4547 | EOF |
| 4548 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4549 | { (eval echo configure:4550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4550 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4551 | if test -z "$ac_err"; then |
| 4552 | rm -rf conftest* |
| 4553 | eval "ac_cv_header_$ac_safe=yes" |
| 4554 | else |
| 4555 | echo "$ac_err" >&5 |
| 4556 | echo "configure: failed program was:" >&5 |
| 4557 | cat conftest.$ac_ext >&5 |
| 4558 | rm -rf conftest* |
| 4559 | eval "ac_cv_header_$ac_safe=no" |
| 4560 | fi |
| 4561 | rm -f conftest* |
| 4562 | fi |
| 4563 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4564 | echo "$ac_t""yes" 1>&6 |
| 4565 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4566 | cat >> confdefs.h <<EOF |
| 4567 | #define $ac_tr_hdr 1 |
| 4568 | EOF |
| 4569 | |
| 4570 | else |
| 4571 | echo "$ac_t""no" 1>&6 |
| 4572 | fi |
| 4573 | done |
| 4574 | |
| 4575 | for ac_hdr in sys/param.h |
| 4576 | do |
| 4577 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4578 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4579 | echo "configure:4580: checking for $ac_hdr" >&5 |
| 4580 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4581 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4582 | else |
| 4583 | cat > conftest.$ac_ext <<EOF |
| 4584 | #line 4585 "configure" |
| 4585 | #include "confdefs.h" |
| 4586 | #include <$ac_hdr> |
| 4587 | EOF |
| 4588 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4589 | { (eval echo configure:4590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4590 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4591 | if test -z "$ac_err"; then |
| 4592 | rm -rf conftest* |
| 4593 | eval "ac_cv_header_$ac_safe=yes" |
| 4594 | else |
| 4595 | echo "$ac_err" >&5 |
| 4596 | echo "configure: failed program was:" >&5 |
| 4597 | cat conftest.$ac_ext >&5 |
| 4598 | rm -rf conftest* |
| 4599 | eval "ac_cv_header_$ac_safe=no" |
| 4600 | fi |
| 4601 | rm -f conftest* |
| 4602 | fi |
| 4603 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4604 | echo "$ac_t""yes" 1>&6 |
| 4605 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4606 | cat >> confdefs.h <<EOF |
| 4607 | #define $ac_tr_hdr 1 |
| 4608 | EOF |
| 4609 | |
| 4610 | else |
| 4611 | echo "$ac_t""no" 1>&6 |
| 4612 | fi |
| 4613 | done |
| 4614 | |
| 4615 | for ac_hdr in sys/proc.h |
| 4616 | do |
| 4617 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4618 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4619 | echo "configure:4620: checking for $ac_hdr" >&5 |
| 4620 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4621 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4622 | else |
| 4623 | cat > conftest.$ac_ext <<EOF |
| 4624 | #line 4625 "configure" |
| 4625 | #include "confdefs.h" |
| 4626 | #include <$ac_hdr> |
| 4627 | EOF |
| 4628 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4629 | { (eval echo configure:4630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4630 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4631 | if test -z "$ac_err"; then |
| 4632 | rm -rf conftest* |
| 4633 | eval "ac_cv_header_$ac_safe=yes" |
| 4634 | else |
| 4635 | echo "$ac_err" >&5 |
| 4636 | echo "configure: failed program was:" >&5 |
| 4637 | cat conftest.$ac_ext >&5 |
| 4638 | rm -rf conftest* |
| 4639 | eval "ac_cv_header_$ac_safe=no" |
| 4640 | fi |
| 4641 | rm -f conftest* |
| 4642 | fi |
| 4643 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4644 | echo "$ac_t""yes" 1>&6 |
| 4645 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4646 | cat >> confdefs.h <<EOF |
| 4647 | #define $ac_tr_hdr 1 |
| 4648 | EOF |
| 4649 | |
| 4650 | else |
| 4651 | echo "$ac_t""no" 1>&6 |
| 4652 | fi |
| 4653 | done |
| 4654 | |
| 4655 | for ac_hdr in sys/procfs.h |
| 4656 | do |
| 4657 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4658 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4659 | echo "configure:4660: checking for $ac_hdr" >&5 |
| 4660 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4661 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4662 | else |
| 4663 | cat > conftest.$ac_ext <<EOF |
| 4664 | #line 4665 "configure" |
| 4665 | #include "confdefs.h" |
| 4666 | #include <$ac_hdr> |
| 4667 | EOF |
| 4668 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4669 | { (eval echo configure:4670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4670 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4671 | if test -z "$ac_err"; then |
| 4672 | rm -rf conftest* |
| 4673 | eval "ac_cv_header_$ac_safe=yes" |
| 4674 | else |
| 4675 | echo "$ac_err" >&5 |
| 4676 | echo "configure: failed program was:" >&5 |
| 4677 | cat conftest.$ac_ext >&5 |
| 4678 | rm -rf conftest* |
| 4679 | eval "ac_cv_header_$ac_safe=no" |
| 4680 | fi |
| 4681 | rm -f conftest* |
| 4682 | fi |
| 4683 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4684 | echo "$ac_t""yes" 1>&6 |
| 4685 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4686 | cat >> confdefs.h <<EOF |
| 4687 | #define $ac_tr_hdr 1 |
| 4688 | EOF |
| 4689 | |
| 4690 | else |
| 4691 | echo "$ac_t""no" 1>&6 |
| 4692 | fi |
| 4693 | done |
| 4694 | |
| 4695 | for ac_hdr in sys/ptrace.h ptrace.h |
| 4696 | do |
| 4697 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4698 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4699 | echo "configure:4700: checking for $ac_hdr" >&5 |
| 4700 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4701 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4702 | else |
| 4703 | cat > conftest.$ac_ext <<EOF |
| 4704 | #line 4705 "configure" |
| 4705 | #include "confdefs.h" |
| 4706 | #include <$ac_hdr> |
| 4707 | EOF |
| 4708 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4709 | { (eval echo configure:4710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4710 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4711 | if test -z "$ac_err"; then |
| 4712 | rm -rf conftest* |
| 4713 | eval "ac_cv_header_$ac_safe=yes" |
| 4714 | else |
| 4715 | echo "$ac_err" >&5 |
| 4716 | echo "configure: failed program was:" >&5 |
| 4717 | cat conftest.$ac_ext >&5 |
| 4718 | rm -rf conftest* |
| 4719 | eval "ac_cv_header_$ac_safe=no" |
| 4720 | fi |
| 4721 | rm -f conftest* |
| 4722 | fi |
| 4723 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4724 | echo "$ac_t""yes" 1>&6 |
| 4725 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4726 | cat >> confdefs.h <<EOF |
| 4727 | #define $ac_tr_hdr 1 |
| 4728 | EOF |
| 4729 | |
| 4730 | else |
| 4731 | echo "$ac_t""no" 1>&6 |
| 4732 | fi |
| 4733 | done |
| 4734 | |
| 4735 | for ac_hdr in sys/reg.h sys/debugreg.h |
| 4736 | do |
| 4737 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4738 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4739 | echo "configure:4740: checking for $ac_hdr" >&5 |
| 4740 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4741 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4742 | else |
| 4743 | cat > conftest.$ac_ext <<EOF |
| 4744 | #line 4745 "configure" |
| 4745 | #include "confdefs.h" |
| 4746 | #include <$ac_hdr> |
| 4747 | EOF |
| 4748 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4749 | { (eval echo configure:4750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4750 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4751 | if test -z "$ac_err"; then |
| 4752 | rm -rf conftest* |
| 4753 | eval "ac_cv_header_$ac_safe=yes" |
| 4754 | else |
| 4755 | echo "$ac_err" >&5 |
| 4756 | echo "configure: failed program was:" >&5 |
| 4757 | cat conftest.$ac_ext >&5 |
| 4758 | rm -rf conftest* |
| 4759 | eval "ac_cv_header_$ac_safe=no" |
| 4760 | fi |
| 4761 | rm -f conftest* |
| 4762 | fi |
| 4763 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4764 | echo "$ac_t""yes" 1>&6 |
| 4765 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4766 | cat >> confdefs.h <<EOF |
| 4767 | #define $ac_tr_hdr 1 |
| 4768 | EOF |
| 4769 | |
| 4770 | else |
| 4771 | echo "$ac_t""no" 1>&6 |
| 4772 | fi |
| 4773 | done |
| 4774 | |
| 4775 | for ac_hdr in sys/select.h |
| 4776 | do |
| 4777 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4778 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4779 | echo "configure:4780: checking for $ac_hdr" >&5 |
| 4780 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4781 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4782 | else |
| 4783 | cat > conftest.$ac_ext <<EOF |
| 4784 | #line 4785 "configure" |
| 4785 | #include "confdefs.h" |
| 4786 | #include <$ac_hdr> |
| 4787 | EOF |
| 4788 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4789 | { (eval echo configure:4790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4790 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4791 | if test -z "$ac_err"; then |
| 4792 | rm -rf conftest* |
| 4793 | eval "ac_cv_header_$ac_safe=yes" |
| 4794 | else |
| 4795 | echo "$ac_err" >&5 |
| 4796 | echo "configure: failed program was:" >&5 |
| 4797 | cat conftest.$ac_ext >&5 |
| 4798 | rm -rf conftest* |
| 4799 | eval "ac_cv_header_$ac_safe=no" |
| 4800 | fi |
| 4801 | rm -f conftest* |
| 4802 | fi |
| 4803 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4804 | echo "$ac_t""yes" 1>&6 |
| 4805 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4806 | cat >> confdefs.h <<EOF |
| 4807 | #define $ac_tr_hdr 1 |
| 4808 | EOF |
| 4809 | |
| 4810 | else |
| 4811 | echo "$ac_t""no" 1>&6 |
| 4812 | fi |
| 4813 | done |
| 4814 | |
| 4815 | for ac_hdr in sys/syscall.h |
| 4816 | do |
| 4817 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4818 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4819 | echo "configure:4820: checking for $ac_hdr" >&5 |
| 4820 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4821 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4822 | else |
| 4823 | cat > conftest.$ac_ext <<EOF |
| 4824 | #line 4825 "configure" |
| 4825 | #include "confdefs.h" |
| 4826 | #include <$ac_hdr> |
| 4827 | EOF |
| 4828 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4829 | { (eval echo configure:4830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4830 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4831 | if test -z "$ac_err"; then |
| 4832 | rm -rf conftest* |
| 4833 | eval "ac_cv_header_$ac_safe=yes" |
| 4834 | else |
| 4835 | echo "$ac_err" >&5 |
| 4836 | echo "configure: failed program was:" >&5 |
| 4837 | cat conftest.$ac_ext >&5 |
| 4838 | rm -rf conftest* |
| 4839 | eval "ac_cv_header_$ac_safe=no" |
| 4840 | fi |
| 4841 | rm -f conftest* |
| 4842 | fi |
| 4843 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4844 | echo "$ac_t""yes" 1>&6 |
| 4845 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4846 | cat >> confdefs.h <<EOF |
| 4847 | #define $ac_tr_hdr 1 |
| 4848 | EOF |
| 4849 | |
| 4850 | else |
| 4851 | echo "$ac_t""no" 1>&6 |
| 4852 | fi |
| 4853 | done |
| 4854 | |
| 4855 | for ac_hdr in sys/user.h |
| 4856 | do |
| 4857 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4858 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4859 | echo "configure:4860: checking for $ac_hdr" >&5 |
| 4860 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4861 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4862 | else |
| 4863 | cat > conftest.$ac_ext <<EOF |
| 4864 | #line 4865 "configure" |
| 4865 | #include "confdefs.h" |
| 4866 | #include <$ac_hdr> |
| 4867 | EOF |
| 4868 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4869 | { (eval echo configure:4870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4870 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4871 | if test -z "$ac_err"; then |
| 4872 | rm -rf conftest* |
| 4873 | eval "ac_cv_header_$ac_safe=yes" |
| 4874 | else |
| 4875 | echo "$ac_err" >&5 |
| 4876 | echo "configure: failed program was:" >&5 |
| 4877 | cat conftest.$ac_ext >&5 |
| 4878 | rm -rf conftest* |
| 4879 | eval "ac_cv_header_$ac_safe=no" |
| 4880 | fi |
| 4881 | rm -f conftest* |
| 4882 | fi |
| 4883 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4884 | echo "$ac_t""yes" 1>&6 |
| 4885 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4886 | cat >> confdefs.h <<EOF |
| 4887 | #define $ac_tr_hdr 1 |
| 4888 | EOF |
| 4889 | |
| 4890 | else |
| 4891 | echo "$ac_t""no" 1>&6 |
| 4892 | fi |
| 4893 | done |
| 4894 | |
| 4895 | for ac_hdr in sys/wait.h wait.h |
| 4896 | do |
| 4897 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4898 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4899 | echo "configure:4900: checking for $ac_hdr" >&5 |
| 4900 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4901 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4902 | else |
| 4903 | cat > conftest.$ac_ext <<EOF |
| 4904 | #line 4905 "configure" |
| 4905 | #include "confdefs.h" |
| 4906 | #include <$ac_hdr> |
| 4907 | EOF |
| 4908 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4909 | { (eval echo configure:4910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4910 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4911 | if test -z "$ac_err"; then |
| 4912 | rm -rf conftest* |
| 4913 | eval "ac_cv_header_$ac_safe=yes" |
| 4914 | else |
| 4915 | echo "$ac_err" >&5 |
| 4916 | echo "configure: failed program was:" >&5 |
| 4917 | cat conftest.$ac_ext >&5 |
| 4918 | rm -rf conftest* |
| 4919 | eval "ac_cv_header_$ac_safe=no" |
| 4920 | fi |
| 4921 | rm -f conftest* |
| 4922 | fi |
| 4923 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4924 | echo "$ac_t""yes" 1>&6 |
| 4925 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4926 | cat >> confdefs.h <<EOF |
| 4927 | #define $ac_tr_hdr 1 |
| 4928 | EOF |
| 4929 | |
| 4930 | else |
| 4931 | echo "$ac_t""no" 1>&6 |
| 4932 | fi |
| 4933 | done |
| 4934 | |
| 4935 | for ac_hdr in termios.h termio.h sgtty.h |
| 4936 | do |
| 4937 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4938 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4939 | echo "configure:4940: checking for $ac_hdr" >&5 |
| 4940 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4941 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4942 | else |
| 4943 | cat > conftest.$ac_ext <<EOF |
| 4944 | #line 4945 "configure" |
| 4945 | #include "confdefs.h" |
| 4946 | #include <$ac_hdr> |
| 4947 | EOF |
| 4948 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4949 | { (eval echo configure:4950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4950 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4951 | if test -z "$ac_err"; then |
| 4952 | rm -rf conftest* |
| 4953 | eval "ac_cv_header_$ac_safe=yes" |
| 4954 | else |
| 4955 | echo "$ac_err" >&5 |
| 4956 | echo "configure: failed program was:" >&5 |
| 4957 | cat conftest.$ac_ext >&5 |
| 4958 | rm -rf conftest* |
| 4959 | eval "ac_cv_header_$ac_safe=no" |
| 4960 | fi |
| 4961 | rm -f conftest* |
| 4962 | fi |
| 4963 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4964 | echo "$ac_t""yes" 1>&6 |
| 4965 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4966 | cat >> confdefs.h <<EOF |
| 4967 | #define $ac_tr_hdr 1 |
| 4968 | EOF |
| 4969 | |
| 4970 | else |
| 4971 | echo "$ac_t""no" 1>&6 |
| 4972 | fi |
| 4973 | done |
| 4974 | |
| 4975 | for ac_hdr in unistd.h |
| 4976 | do |
| 4977 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4978 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4979 | echo "configure:4980: checking for $ac_hdr" >&5 |
| 4980 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4981 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4982 | else |
| 4983 | cat > conftest.$ac_ext <<EOF |
| 4984 | #line 4985 "configure" |
| 4985 | #include "confdefs.h" |
| 4986 | #include <$ac_hdr> |
| 4987 | EOF |
| 4988 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4989 | { (eval echo configure:4990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4990 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4991 | if test -z "$ac_err"; then |
| 4992 | rm -rf conftest* |
| 4993 | eval "ac_cv_header_$ac_safe=yes" |
| 4994 | else |
| 4995 | echo "$ac_err" >&5 |
| 4996 | echo "configure: failed program was:" >&5 |
| 4997 | cat conftest.$ac_ext >&5 |
| 4998 | rm -rf conftest* |
| 4999 | eval "ac_cv_header_$ac_safe=no" |
| 5000 | fi |
| 5001 | rm -f conftest* |
| 5002 | fi |
| 5003 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5004 | echo "$ac_t""yes" 1>&6 |
| 5005 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5006 | cat >> confdefs.h <<EOF |
| 5007 | #define $ac_tr_hdr 1 |
| 5008 | EOF |
| 5009 | |
| 5010 | else |
| 5011 | echo "$ac_t""no" 1>&6 |
| 5012 | fi |
| 5013 | done |
| 5014 | |
| 5015 | |
| 5016 | # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash |
| 5017 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
| 5018 | # think that we don't have <curses.h> if we're using GCC. |
| 5019 | case $host_os in |
| 5020 | solaris2.[78]) |
| 5021 | if test "$GCC" = yes; then |
| 5022 | cat >> confdefs.h <<\EOF |
| 5023 | #define _MSE_INT_H 1 |
| 5024 | EOF |
| 5025 | |
| 5026 | fi ;; |
| 5027 | esac |
| 5028 | for ac_hdr in curses.h ncurses.h term.h |
| 5029 | do |
| 5030 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5031 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 5032 | echo "configure:5033: checking for $ac_hdr" >&5 |
| 5033 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5034 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5035 | else |
| 5036 | cat > conftest.$ac_ext <<EOF |
| 5037 | #line 5038 "configure" |
| 5038 | #include "confdefs.h" |
| 5039 | #include <$ac_hdr> |
| 5040 | EOF |
| 5041 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5042 | { (eval echo configure:5043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5043 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5044 | if test -z "$ac_err"; then |
| 5045 | rm -rf conftest* |
| 5046 | eval "ac_cv_header_$ac_safe=yes" |
| 5047 | else |
| 5048 | echo "$ac_err" >&5 |
| 5049 | echo "configure: failed program was:" >&5 |
| 5050 | cat conftest.$ac_ext >&5 |
| 5051 | rm -rf conftest* |
| 5052 | eval "ac_cv_header_$ac_safe=no" |
| 5053 | fi |
| 5054 | rm -f conftest* |
| 5055 | fi |
| 5056 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5057 | echo "$ac_t""yes" 1>&6 |
| 5058 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5059 | cat >> confdefs.h <<EOF |
| 5060 | #define $ac_tr_hdr 1 |
| 5061 | EOF |
| 5062 | |
| 5063 | else |
| 5064 | echo "$ac_t""no" 1>&6 |
| 5065 | fi |
| 5066 | done |
| 5067 | |
| 5068 | |
| 5069 | # FIXME: kettenis/20030102: In most cases we include these |
| 5070 | # unconditionally, so what's the point in checking these? |
| 5071 | for ac_hdr in ctype.h time.h |
| 5072 | do |
| 5073 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5074 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 5075 | echo "configure:5076: checking for $ac_hdr" >&5 |
| 5076 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5077 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5078 | else |
| 5079 | cat > conftest.$ac_ext <<EOF |
| 5080 | #line 5081 "configure" |
| 5081 | #include "confdefs.h" |
| 5082 | #include <$ac_hdr> |
| 5083 | EOF |
| 5084 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5085 | { (eval echo configure:5086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5086 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5087 | if test -z "$ac_err"; then |
| 5088 | rm -rf conftest* |
| 5089 | eval "ac_cv_header_$ac_safe=yes" |
| 5090 | else |
| 5091 | echo "$ac_err" >&5 |
| 5092 | echo "configure: failed program was:" >&5 |
| 5093 | cat conftest.$ac_ext >&5 |
| 5094 | rm -rf conftest* |
| 5095 | eval "ac_cv_header_$ac_safe=no" |
| 5096 | fi |
| 5097 | rm -f conftest* |
| 5098 | fi |
| 5099 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5100 | echo "$ac_t""yes" 1>&6 |
| 5101 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5102 | cat >> confdefs.h <<EOF |
| 5103 | #define $ac_tr_hdr 1 |
| 5104 | EOF |
| 5105 | |
| 5106 | else |
| 5107 | echo "$ac_t""no" 1>&6 |
| 5108 | fi |
| 5109 | done |
| 5110 | |
| 5111 | |
| 5112 | # ------------------ # |
| 5113 | # Checks for types. # |
| 5114 | # ------------------ # |
| 5115 | |
| 5116 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
| 5117 | echo "configure:5118: checking return type of signal handlers" >&5 |
| 5118 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
| 5119 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5120 | else |
| 5121 | cat > conftest.$ac_ext <<EOF |
| 5122 | #line 5123 "configure" |
| 5123 | #include "confdefs.h" |
| 5124 | #include <sys/types.h> |
| 5125 | #include <signal.h> |
| 5126 | #ifdef signal |
| 5127 | #undef signal |
| 5128 | #endif |
| 5129 | #ifdef __cplusplus |
| 5130 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5131 | #else |
| 5132 | void (*signal ()) (); |
| 5133 | #endif |
| 5134 | |
| 5135 | int main() { |
| 5136 | int i; |
| 5137 | ; return 0; } |
| 5138 | EOF |
| 5139 | if { (eval echo configure:5140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5140 | rm -rf conftest* |
| 5141 | ac_cv_type_signal=void |
| 5142 | else |
| 5143 | echo "configure: failed program was:" >&5 |
| 5144 | cat conftest.$ac_ext >&5 |
| 5145 | rm -rf conftest* |
| 5146 | ac_cv_type_signal=int |
| 5147 | fi |
| 5148 | rm -f conftest* |
| 5149 | fi |
| 5150 | |
| 5151 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
| 5152 | cat >> confdefs.h <<EOF |
| 5153 | #define RETSIGTYPE $ac_cv_type_signal |
| 5154 | EOF |
| 5155 | |
| 5156 | |
| 5157 | |
| 5158 | # ------------------------------------- # |
| 5159 | # Checks for compiler characteristics. # |
| 5160 | # ------------------------------------- # |
| 5161 | |
| 5162 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
| 5163 | echo "configure:5164: checking for working const" >&5 |
| 5164 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 5165 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5166 | else |
| 5167 | cat > conftest.$ac_ext <<EOF |
| 5168 | #line 5169 "configure" |
| 5169 | #include "confdefs.h" |
| 5170 | |
| 5171 | int main() { |
| 5172 | |
| 5173 | /* Ultrix mips cc rejects this. */ |
| 5174 | typedef int charset[2]; const charset x; |
| 5175 | /* SunOS 4.1.1 cc rejects this. */ |
| 5176 | char const *const *ccp; |
| 5177 | char **p; |
| 5178 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5179 | struct point {int x, y;}; |
| 5180 | static struct point const zero = {0,0}; |
| 5181 | /* AIX XL C 1.02.0.0 rejects this. |
| 5182 | It does not let you subtract one const X* pointer from another in an arm |
| 5183 | of an if-expression whose if-part is not a constant expression */ |
| 5184 | const char *g = "string"; |
| 5185 | ccp = &g + (g ? g-g : 0); |
| 5186 | /* HPUX 7.0 cc rejects these. */ |
| 5187 | ++ccp; |
| 5188 | p = (char**) ccp; |
| 5189 | ccp = (char const *const *) p; |
| 5190 | { /* SCO 3.2v4 cc rejects this. */ |
| 5191 | char *t; |
| 5192 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5193 | |
| 5194 | *t++ = 0; |
| 5195 | } |
| 5196 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 5197 | int x[] = {25, 17}; |
| 5198 | const int *foo = &x[0]; |
| 5199 | ++foo; |
| 5200 | } |
| 5201 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5202 | typedef const int *iptr; |
| 5203 | iptr p = 0; |
| 5204 | ++p; |
| 5205 | } |
| 5206 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 5207 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5208 | struct s { int j; const int *ap[3]; }; |
| 5209 | struct s *b; b->j = 5; |
| 5210 | } |
| 5211 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5212 | const int foo = 10; |
| 5213 | } |
| 5214 | |
| 5215 | ; return 0; } |
| 5216 | EOF |
| 5217 | if { (eval echo configure:5218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5218 | rm -rf conftest* |
| 5219 | ac_cv_c_const=yes |
| 5220 | else |
| 5221 | echo "configure: failed program was:" >&5 |
| 5222 | cat conftest.$ac_ext >&5 |
| 5223 | rm -rf conftest* |
| 5224 | ac_cv_c_const=no |
| 5225 | fi |
| 5226 | rm -f conftest* |
| 5227 | fi |
| 5228 | |
| 5229 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 5230 | if test $ac_cv_c_const = no; then |
| 5231 | cat >> confdefs.h <<\EOF |
| 5232 | #define const |
| 5233 | EOF |
| 5234 | |
| 5235 | fi |
| 5236 | |
| 5237 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
| 5238 | echo "configure:5239: checking for inline" >&5 |
| 5239 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
| 5240 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5241 | else |
| 5242 | ac_cv_c_inline=no |
| 5243 | for ac_kw in inline __inline__ __inline; do |
| 5244 | cat > conftest.$ac_ext <<EOF |
| 5245 | #line 5246 "configure" |
| 5246 | #include "confdefs.h" |
| 5247 | |
| 5248 | int main() { |
| 5249 | } $ac_kw foo() { |
| 5250 | ; return 0; } |
| 5251 | EOF |
| 5252 | if { (eval echo configure:5253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5253 | rm -rf conftest* |
| 5254 | ac_cv_c_inline=$ac_kw; break |
| 5255 | else |
| 5256 | echo "configure: failed program was:" >&5 |
| 5257 | cat conftest.$ac_ext >&5 |
| 5258 | fi |
| 5259 | rm -f conftest* |
| 5260 | done |
| 5261 | |
| 5262 | fi |
| 5263 | |
| 5264 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 5265 | case "$ac_cv_c_inline" in |
| 5266 | inline | yes) ;; |
| 5267 | no) cat >> confdefs.h <<\EOF |
| 5268 | #define inline |
| 5269 | EOF |
| 5270 | ;; |
| 5271 | *) cat >> confdefs.h <<EOF |
| 5272 | #define inline $ac_cv_c_inline |
| 5273 | EOF |
| 5274 | ;; |
| 5275 | esac |
| 5276 | |
| 5277 | |
| 5278 | # ------------------------------ # |
| 5279 | # Checks for library functions. # |
| 5280 | # ------------------------------ # |
| 5281 | |
| 5282 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 5283 | # for constant arguments. Useless! |
| 5284 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
| 5285 | echo "configure:5286: checking for working alloca.h" >&5 |
| 5286 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
| 5287 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5288 | else |
| 5289 | cat > conftest.$ac_ext <<EOF |
| 5290 | #line 5291 "configure" |
| 5291 | #include "confdefs.h" |
| 5292 | #include <alloca.h> |
| 5293 | int main() { |
| 5294 | char *p = alloca(2 * sizeof(int)); |
| 5295 | ; return 0; } |
| 5296 | EOF |
| 5297 | if { (eval echo configure:5298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5298 | rm -rf conftest* |
| 5299 | ac_cv_header_alloca_h=yes |
| 5300 | else |
| 5301 | echo "configure: failed program was:" >&5 |
| 5302 | cat conftest.$ac_ext >&5 |
| 5303 | rm -rf conftest* |
| 5304 | ac_cv_header_alloca_h=no |
| 5305 | fi |
| 5306 | rm -f conftest* |
| 5307 | fi |
| 5308 | |
| 5309 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
| 5310 | if test $ac_cv_header_alloca_h = yes; then |
| 5311 | cat >> confdefs.h <<\EOF |
| 5312 | #define HAVE_ALLOCA_H 1 |
| 5313 | EOF |
| 5314 | |
| 5315 | fi |
| 5316 | |
| 5317 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
| 5318 | echo "configure:5319: checking for alloca" >&5 |
| 5319 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
| 5320 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5321 | else |
| 5322 | cat > conftest.$ac_ext <<EOF |
| 5323 | #line 5324 "configure" |
| 5324 | #include "confdefs.h" |
| 5325 | |
| 5326 | #ifdef __GNUC__ |
| 5327 | # define alloca __builtin_alloca |
| 5328 | #else |
| 5329 | # ifdef _MSC_VER |
| 5330 | # include <malloc.h> |
| 5331 | # define alloca _alloca |
| 5332 | # else |
| 5333 | # if HAVE_ALLOCA_H |
| 5334 | # include <alloca.h> |
| 5335 | # else |
| 5336 | # ifdef _AIX |
| 5337 | #pragma alloca |
| 5338 | # else |
| 5339 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 5340 | char *alloca (); |
| 5341 | # endif |
| 5342 | # endif |
| 5343 | # endif |
| 5344 | # endif |
| 5345 | #endif |
| 5346 | |
| 5347 | int main() { |
| 5348 | char *p = (char *) alloca(1); |
| 5349 | ; return 0; } |
| 5350 | EOF |
| 5351 | if { (eval echo configure:5352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5352 | rm -rf conftest* |
| 5353 | ac_cv_func_alloca_works=yes |
| 5354 | else |
| 5355 | echo "configure: failed program was:" >&5 |
| 5356 | cat conftest.$ac_ext >&5 |
| 5357 | rm -rf conftest* |
| 5358 | ac_cv_func_alloca_works=no |
| 5359 | fi |
| 5360 | rm -f conftest* |
| 5361 | fi |
| 5362 | |
| 5363 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
| 5364 | if test $ac_cv_func_alloca_works = yes; then |
| 5365 | cat >> confdefs.h <<\EOF |
| 5366 | #define HAVE_ALLOCA 1 |
| 5367 | EOF |
| 5368 | |
| 5369 | fi |
| 5370 | |
| 5371 | if test $ac_cv_func_alloca_works = no; then |
| 5372 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 5373 | # that cause trouble. Some versions do not even contain alloca or |
| 5374 | # contain a buggy version. If you still want to use their alloca, |
| 5375 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 5376 | ALLOCA=alloca.${ac_objext} |
| 5377 | cat >> confdefs.h <<\EOF |
| 5378 | #define C_ALLOCA 1 |
| 5379 | EOF |
| 5380 | |
| 5381 | |
| 5382 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
| 5383 | echo "configure:5384: checking whether alloca needs Cray hooks" >&5 |
| 5384 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
| 5385 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5386 | else |
| 5387 | cat > conftest.$ac_ext <<EOF |
| 5388 | #line 5389 "configure" |
| 5389 | #include "confdefs.h" |
| 5390 | #if defined(CRAY) && ! defined(CRAY2) |
| 5391 | webecray |
| 5392 | #else |
| 5393 | wenotbecray |
| 5394 | #endif |
| 5395 | |
| 5396 | EOF |
| 5397 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5398 | egrep "webecray" >/dev/null 2>&1; then |
| 5399 | rm -rf conftest* |
| 5400 | ac_cv_os_cray=yes |
| 5401 | else |
| 5402 | rm -rf conftest* |
| 5403 | ac_cv_os_cray=no |
| 5404 | fi |
| 5405 | rm -f conftest* |
| 5406 | |
| 5407 | fi |
| 5408 | |
| 5409 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
| 5410 | if test $ac_cv_os_cray = yes; then |
| 5411 | for ac_func in _getb67 GETB67 getb67; do |
| 5412 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 5413 | echo "configure:5414: checking for $ac_func" >&5 |
| 5414 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 5415 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5416 | else |
| 5417 | cat > conftest.$ac_ext <<EOF |
| 5418 | #line 5419 "configure" |
| 5419 | #include "confdefs.h" |
| 5420 | /* System header to define __stub macros and hopefully few prototypes, |
| 5421 | which can conflict with char $ac_func(); below. */ |
| 5422 | #include <assert.h> |
| 5423 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5424 | /* We use char because int might match the return type of a gcc2 |
| 5425 | builtin and then its argument prototype would still apply. */ |
| 5426 | char $ac_func(); |
| 5427 | |
| 5428 | int main() { |
| 5429 | |
| 5430 | /* The GNU C library defines this for functions which it implements |
| 5431 | to always fail with ENOSYS. Some functions are actually named |
| 5432 | something starting with __ and the normal name is an alias. */ |
| 5433 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5434 | choke me |
| 5435 | #else |
| 5436 | $ac_func(); |
| 5437 | #endif |
| 5438 | |
| 5439 | ; return 0; } |
| 5440 | EOF |
| 5441 | if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5442 | rm -rf conftest* |
| 5443 | eval "ac_cv_func_$ac_func=yes" |
| 5444 | else |
| 5445 | echo "configure: failed program was:" >&5 |
| 5446 | cat conftest.$ac_ext >&5 |
| 5447 | rm -rf conftest* |
| 5448 | eval "ac_cv_func_$ac_func=no" |
| 5449 | fi |
| 5450 | rm -f conftest* |
| 5451 | fi |
| 5452 | |
| 5453 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5454 | echo "$ac_t""yes" 1>&6 |
| 5455 | cat >> confdefs.h <<EOF |
| 5456 | #define CRAY_STACKSEG_END $ac_func |
| 5457 | EOF |
| 5458 | |
| 5459 | break |
| 5460 | else |
| 5461 | echo "$ac_t""no" 1>&6 |
| 5462 | fi |
| 5463 | |
| 5464 | done |
| 5465 | fi |
| 5466 | |
| 5467 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
| 5468 | echo "configure:5469: checking stack direction for C alloca" >&5 |
| 5469 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
| 5470 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5471 | else |
| 5472 | if test "$cross_compiling" = yes; then |
| 5473 | ac_cv_c_stack_direction=0 |
| 5474 | else |
| 5475 | cat > conftest.$ac_ext <<EOF |
| 5476 | #line 5477 "configure" |
| 5477 | #include "confdefs.h" |
| 5478 | find_stack_direction () |
| 5479 | { |
| 5480 | static char *addr = 0; |
| 5481 | auto char dummy; |
| 5482 | if (addr == 0) |
| 5483 | { |
| 5484 | addr = &dummy; |
| 5485 | return find_stack_direction (); |
| 5486 | } |
| 5487 | else |
| 5488 | return (&dummy > addr) ? 1 : -1; |
| 5489 | } |
| 5490 | main () |
| 5491 | { |
| 5492 | exit (find_stack_direction() < 0); |
| 5493 | } |
| 5494 | EOF |
| 5495 | if { (eval echo configure:5496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 5496 | then |
| 5497 | ac_cv_c_stack_direction=1 |
| 5498 | else |
| 5499 | echo "configure: failed program was:" >&5 |
| 5500 | cat conftest.$ac_ext >&5 |
| 5501 | rm -fr conftest* |
| 5502 | ac_cv_c_stack_direction=-1 |
| 5503 | fi |
| 5504 | rm -fr conftest* |
| 5505 | fi |
| 5506 | |
| 5507 | fi |
| 5508 | |
| 5509 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
| 5510 | cat >> confdefs.h <<EOF |
| 5511 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 5512 | EOF |
| 5513 | |
| 5514 | fi |
| 5515 | |
| 5516 | for ac_hdr in unistd.h |
| 5517 | do |
| 5518 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5519 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 5520 | echo "configure:5521: checking for $ac_hdr" >&5 |
| 5521 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5522 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5523 | else |
| 5524 | cat > conftest.$ac_ext <<EOF |
| 5525 | #line 5526 "configure" |
| 5526 | #include "confdefs.h" |
| 5527 | #include <$ac_hdr> |
| 5528 | EOF |
| 5529 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5530 | { (eval echo configure:5531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5531 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5532 | if test -z "$ac_err"; then |
| 5533 | rm -rf conftest* |
| 5534 | eval "ac_cv_header_$ac_safe=yes" |
| 5535 | else |
| 5536 | echo "$ac_err" >&5 |
| 5537 | echo "configure: failed program was:" >&5 |
| 5538 | cat conftest.$ac_ext >&5 |
| 5539 | rm -rf conftest* |
| 5540 | eval "ac_cv_header_$ac_safe=no" |
| 5541 | fi |
| 5542 | rm -f conftest* |
| 5543 | fi |
| 5544 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5545 | echo "$ac_t""yes" 1>&6 |
| 5546 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5547 | cat >> confdefs.h <<EOF |
| 5548 | #define $ac_tr_hdr 1 |
| 5549 | EOF |
| 5550 | |
| 5551 | else |
| 5552 | echo "$ac_t""no" 1>&6 |
| 5553 | fi |
| 5554 | done |
| 5555 | |
| 5556 | for ac_func in getpagesize |
| 5557 | do |
| 5558 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 5559 | echo "configure:5560: checking for $ac_func" >&5 |
| 5560 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 5561 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5562 | else |
| 5563 | cat > conftest.$ac_ext <<EOF |
| 5564 | #line 5565 "configure" |
| 5565 | #include "confdefs.h" |
| 5566 | /* System header to define __stub macros and hopefully few prototypes, |
| 5567 | which can conflict with char $ac_func(); below. */ |
| 5568 | #include <assert.h> |
| 5569 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5570 | /* We use char because int might match the return type of a gcc2 |
| 5571 | builtin and then its argument prototype would still apply. */ |
| 5572 | char $ac_func(); |
| 5573 | |
| 5574 | int main() { |
| 5575 | |
| 5576 | /* The GNU C library defines this for functions which it implements |
| 5577 | to always fail with ENOSYS. Some functions are actually named |
| 5578 | something starting with __ and the normal name is an alias. */ |
| 5579 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5580 | choke me |
| 5581 | #else |
| 5582 | $ac_func(); |
| 5583 | #endif |
| 5584 | |
| 5585 | ; return 0; } |
| 5586 | EOF |
| 5587 | if { (eval echo configure:5588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5588 | rm -rf conftest* |
| 5589 | eval "ac_cv_func_$ac_func=yes" |
| 5590 | else |
| 5591 | echo "configure: failed program was:" >&5 |
| 5592 | cat conftest.$ac_ext >&5 |
| 5593 | rm -rf conftest* |
| 5594 | eval "ac_cv_func_$ac_func=no" |
| 5595 | fi |
| 5596 | rm -f conftest* |
| 5597 | fi |
| 5598 | |
| 5599 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5600 | echo "$ac_t""yes" 1>&6 |
| 5601 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5602 | cat >> confdefs.h <<EOF |
| 5603 | #define $ac_tr_func 1 |
| 5604 | EOF |
| 5605 | |
| 5606 | else |
| 5607 | echo "$ac_t""no" 1>&6 |
| 5608 | fi |
| 5609 | done |
| 5610 | |
| 5611 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
| 5612 | echo "configure:5613: checking for working mmap" >&5 |
| 5613 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
| 5614 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5615 | else |
| 5616 | if test "$cross_compiling" = yes; then |
| 5617 | ac_cv_func_mmap_fixed_mapped=no |
| 5618 | else |
| 5619 | cat > conftest.$ac_ext <<EOF |
| 5620 | #line 5621 "configure" |
| 5621 | #include "confdefs.h" |
| 5622 | |
| 5623 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 5624 | Here is a matrix of mmap possibilities: |
| 5625 | mmap private not fixed |
| 5626 | mmap private fixed at somewhere currently unmapped |
| 5627 | mmap private fixed at somewhere already mapped |
| 5628 | mmap shared not fixed |
| 5629 | mmap shared fixed at somewhere currently unmapped |
| 5630 | mmap shared fixed at somewhere already mapped |
| 5631 | For private mappings, we should verify that changes cannot be read() |
| 5632 | back from the file, nor mmap's back from the file at a different |
| 5633 | address. (There have been systems where private was not correctly |
| 5634 | implemented like the infamous i386 svr4.0, and systems where the |
| 5635 | VM page cache was not coherent with the filesystem buffer cache |
| 5636 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 5637 | For shared mappings, we should conversely verify that changes get |
| 5638 | propogated back to all the places they're supposed to be. |
| 5639 | |
| 5640 | Grep wants private fixed already mapped. |
| 5641 | The main things grep needs to know about mmap are: |
| 5642 | * does it exist and is it safe to write into the mmap'd area |
| 5643 | * how to use it (BSD variants) */ |
| 5644 | #include <sys/types.h> |
| 5645 | #include <fcntl.h> |
| 5646 | #include <sys/mman.h> |
| 5647 | |
| 5648 | /* This mess was copied from the GNU getpagesize.h. */ |
| 5649 | #ifndef HAVE_GETPAGESIZE |
| 5650 | # ifdef HAVE_UNISTD_H |
| 5651 | # include <unistd.h> |
| 5652 | # endif |
| 5653 | |
| 5654 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 5655 | # ifndef HAVE_SYS_PARAM_H |
| 5656 | # define HAVE_SYS_PARAM_H 1 |
| 5657 | # endif |
| 5658 | |
| 5659 | # ifdef _SC_PAGESIZE |
| 5660 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 5661 | # else /* no _SC_PAGESIZE */ |
| 5662 | # ifdef HAVE_SYS_PARAM_H |
| 5663 | # include <sys/param.h> |
| 5664 | # ifdef EXEC_PAGESIZE |
| 5665 | # define getpagesize() EXEC_PAGESIZE |
| 5666 | # else /* no EXEC_PAGESIZE */ |
| 5667 | # ifdef NBPG |
| 5668 | # define getpagesize() NBPG * CLSIZE |
| 5669 | # ifndef CLSIZE |
| 5670 | # define CLSIZE 1 |
| 5671 | # endif /* no CLSIZE */ |
| 5672 | # else /* no NBPG */ |
| 5673 | # ifdef NBPC |
| 5674 | # define getpagesize() NBPC |
| 5675 | # else /* no NBPC */ |
| 5676 | # ifdef PAGESIZE |
| 5677 | # define getpagesize() PAGESIZE |
| 5678 | # endif /* PAGESIZE */ |
| 5679 | # endif /* no NBPC */ |
| 5680 | # endif /* no NBPG */ |
| 5681 | # endif /* no EXEC_PAGESIZE */ |
| 5682 | # else /* no HAVE_SYS_PARAM_H */ |
| 5683 | # define getpagesize() 8192 /* punt totally */ |
| 5684 | # endif /* no HAVE_SYS_PARAM_H */ |
| 5685 | # endif /* no _SC_PAGESIZE */ |
| 5686 | |
| 5687 | #endif /* no HAVE_GETPAGESIZE */ |
| 5688 | |
| 5689 | #ifdef __cplusplus |
| 5690 | extern "C" { void *malloc(unsigned); } |
| 5691 | #else |
| 5692 | char *malloc(); |
| 5693 | #endif |
| 5694 | |
| 5695 | int |
| 5696 | main() |
| 5697 | { |
| 5698 | char *data, *data2, *data3; |
| 5699 | int i, pagesize; |
| 5700 | int fd; |
| 5701 | |
| 5702 | pagesize = getpagesize(); |
| 5703 | |
| 5704 | /* |
| 5705 | * First, make a file with some known garbage in it. |
| 5706 | */ |
| 5707 | data = malloc(pagesize); |
| 5708 | if (!data) |
| 5709 | exit(1); |
| 5710 | for (i = 0; i < pagesize; ++i) |
| 5711 | *(data + i) = rand(); |
| 5712 | umask(0); |
| 5713 | fd = creat("conftestmmap", 0600); |
| 5714 | if (fd < 0) |
| 5715 | exit(1); |
| 5716 | if (write(fd, data, pagesize) != pagesize) |
| 5717 | exit(1); |
| 5718 | close(fd); |
| 5719 | |
| 5720 | /* |
| 5721 | * Next, try to mmap the file at a fixed address which |
| 5722 | * already has something else allocated at it. If we can, |
| 5723 | * also make sure that we see the same garbage. |
| 5724 | */ |
| 5725 | fd = open("conftestmmap", O_RDWR); |
| 5726 | if (fd < 0) |
| 5727 | exit(1); |
| 5728 | data2 = malloc(2 * pagesize); |
| 5729 | if (!data2) |
| 5730 | exit(1); |
| 5731 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 5732 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
| 5733 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 5734 | exit(1); |
| 5735 | for (i = 0; i < pagesize; ++i) |
| 5736 | if (*(data + i) != *(data2 + i)) |
| 5737 | exit(1); |
| 5738 | |
| 5739 | /* |
| 5740 | * Finally, make sure that changes to the mapped area |
| 5741 | * do not percolate back to the file as seen by read(). |
| 5742 | * (This is a bug on some variants of i386 svr4.0.) |
| 5743 | */ |
| 5744 | for (i = 0; i < pagesize; ++i) |
| 5745 | *(data2 + i) = *(data2 + i) + 1; |
| 5746 | data3 = malloc(pagesize); |
| 5747 | if (!data3) |
| 5748 | exit(1); |
| 5749 | if (read(fd, data3, pagesize) != pagesize) |
| 5750 | exit(1); |
| 5751 | for (i = 0; i < pagesize; ++i) |
| 5752 | if (*(data + i) != *(data3 + i)) |
| 5753 | exit(1); |
| 5754 | close(fd); |
| 5755 | unlink("conftestmmap"); |
| 5756 | exit(0); |
| 5757 | } |
| 5758 | |
| 5759 | EOF |
| 5760 | if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 5761 | then |
| 5762 | ac_cv_func_mmap_fixed_mapped=yes |
| 5763 | else |
| 5764 | echo "configure: failed program was:" >&5 |
| 5765 | cat conftest.$ac_ext >&5 |
| 5766 | rm -fr conftest* |
| 5767 | ac_cv_func_mmap_fixed_mapped=no |
| 5768 | fi |
| 5769 | rm -fr conftest* |
| 5770 | fi |
| 5771 | |
| 5772 | fi |
| 5773 | |
| 5774 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
| 5775 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 5776 | cat >> confdefs.h <<\EOF |
| 5777 | #define HAVE_MMAP 1 |
| 5778 | EOF |
| 5779 | |
| 5780 | fi |
| 5781 | |
| 5782 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
| 5783 | echo "configure:5784: checking for pid_t" >&5 |
| 5784 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
| 5785 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5786 | else |
| 5787 | cat > conftest.$ac_ext <<EOF |
| 5788 | #line 5789 "configure" |
| 5789 | #include "confdefs.h" |
| 5790 | #include <sys/types.h> |
| 5791 | #if STDC_HEADERS |
| 5792 | #include <stdlib.h> |
| 5793 | #include <stddef.h> |
| 5794 | #endif |
| 5795 | EOF |
| 5796 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5797 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 5798 | rm -rf conftest* |
| 5799 | ac_cv_type_pid_t=yes |
| 5800 | else |
| 5801 | rm -rf conftest* |
| 5802 | ac_cv_type_pid_t=no |
| 5803 | fi |
| 5804 | rm -f conftest* |
| 5805 | |
| 5806 | fi |
| 5807 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 5808 | if test $ac_cv_type_pid_t = no; then |
| 5809 | cat >> confdefs.h <<\EOF |
| 5810 | #define pid_t int |
| 5811 | EOF |
| 5812 | |
| 5813 | fi |
| 5814 | |
| 5815 | ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` |
| 5816 | echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 |
| 5817 | echo "configure:5818: checking for vfork.h" >&5 |
| 5818 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5819 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5820 | else |
| 5821 | cat > conftest.$ac_ext <<EOF |
| 5822 | #line 5823 "configure" |
| 5823 | #include "confdefs.h" |
| 5824 | #include <vfork.h> |
| 5825 | EOF |
| 5826 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5827 | { (eval echo configure:5828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5828 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5829 | if test -z "$ac_err"; then |
| 5830 | rm -rf conftest* |
| 5831 | eval "ac_cv_header_$ac_safe=yes" |
| 5832 | else |
| 5833 | echo "$ac_err" >&5 |
| 5834 | echo "configure: failed program was:" >&5 |
| 5835 | cat conftest.$ac_ext >&5 |
| 5836 | rm -rf conftest* |
| 5837 | eval "ac_cv_header_$ac_safe=no" |
| 5838 | fi |
| 5839 | rm -f conftest* |
| 5840 | fi |
| 5841 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5842 | echo "$ac_t""yes" 1>&6 |
| 5843 | cat >> confdefs.h <<\EOF |
| 5844 | #define HAVE_VFORK_H 1 |
| 5845 | EOF |
| 5846 | |
| 5847 | else |
| 5848 | echo "$ac_t""no" 1>&6 |
| 5849 | fi |
| 5850 | |
| 5851 | echo $ac_n "checking for working vfork""... $ac_c" 1>&6 |
| 5852 | echo "configure:5853: checking for working vfork" >&5 |
| 5853 | if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
| 5854 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5855 | else |
| 5856 | if test "$cross_compiling" = yes; then |
| 5857 | echo $ac_n "checking for vfork""... $ac_c" 1>&6 |
| 5858 | echo "configure:5859: checking for vfork" >&5 |
| 5859 | if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
| 5860 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5861 | else |
| 5862 | cat > conftest.$ac_ext <<EOF |
| 5863 | #line 5864 "configure" |
| 5864 | #include "confdefs.h" |
| 5865 | /* System header to define __stub macros and hopefully few prototypes, |
| 5866 | which can conflict with char vfork(); below. */ |
| 5867 | #include <assert.h> |
| 5868 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5869 | /* We use char because int might match the return type of a gcc2 |
| 5870 | builtin and then its argument prototype would still apply. */ |
| 5871 | char vfork(); |
| 5872 | |
| 5873 | int main() { |
| 5874 | |
| 5875 | /* The GNU C library defines this for functions which it implements |
| 5876 | to always fail with ENOSYS. Some functions are actually named |
| 5877 | something starting with __ and the normal name is an alias. */ |
| 5878 | #if defined (__stub_vfork) || defined (__stub___vfork) |
| 5879 | choke me |
| 5880 | #else |
| 5881 | vfork(); |
| 5882 | #endif |
| 5883 | |
| 5884 | ; return 0; } |
| 5885 | EOF |
| 5886 | if { (eval echo configure:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5887 | rm -rf conftest* |
| 5888 | eval "ac_cv_func_vfork=yes" |
| 5889 | else |
| 5890 | echo "configure: failed program was:" >&5 |
| 5891 | cat conftest.$ac_ext >&5 |
| 5892 | rm -rf conftest* |
| 5893 | eval "ac_cv_func_vfork=no" |
| 5894 | fi |
| 5895 | rm -f conftest* |
| 5896 | fi |
| 5897 | |
| 5898 | if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then |
| 5899 | echo "$ac_t""yes" 1>&6 |
| 5900 | : |
| 5901 | else |
| 5902 | echo "$ac_t""no" 1>&6 |
| 5903 | fi |
| 5904 | |
| 5905 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 5906 | else |
| 5907 | cat > conftest.$ac_ext <<EOF |
| 5908 | #line 5909 "configure" |
| 5909 | #include "confdefs.h" |
| 5910 | /* Thanks to Paul Eggert for this test. */ |
| 5911 | #include <stdio.h> |
| 5912 | #include <sys/types.h> |
| 5913 | #include <sys/stat.h> |
| 5914 | #ifdef HAVE_UNISTD_H |
| 5915 | #include <unistd.h> |
| 5916 | #endif |
| 5917 | #ifdef HAVE_VFORK_H |
| 5918 | #include <vfork.h> |
| 5919 | #endif |
| 5920 | /* On some sparc systems, changes by the child to local and incoming |
| 5921 | argument registers are propagated back to the parent. |
| 5922 | The compiler is told about this with #include <vfork.h>, |
| 5923 | but some compilers (e.g. gcc -O) don't grok <vfork.h>. |
| 5924 | Test for this by using a static variable whose address |
| 5925 | is put into a register that is clobbered by the vfork. */ |
| 5926 | static |
| 5927 | #ifdef __cplusplus |
| 5928 | sparc_address_test (int arg) |
| 5929 | #else |
| 5930 | sparc_address_test (arg) int arg; |
| 5931 | #endif |
| 5932 | { |
| 5933 | static pid_t child; |
| 5934 | if (!child) { |
| 5935 | child = vfork (); |
| 5936 | if (child < 0) { |
| 5937 | perror ("vfork"); |
| 5938 | _exit(2); |
| 5939 | } |
| 5940 | if (!child) { |
| 5941 | arg = getpid(); |
| 5942 | write(-1, "", 0); |
| 5943 | _exit (arg); |
| 5944 | } |
| 5945 | } |
| 5946 | } |
| 5947 | main() { |
| 5948 | pid_t parent = getpid (); |
| 5949 | pid_t child; |
| 5950 | |
| 5951 | sparc_address_test (); |
| 5952 | |
| 5953 | child = vfork (); |
| 5954 | |
| 5955 | if (child == 0) { |
| 5956 | /* Here is another test for sparc vfork register problems. |
| 5957 | This test uses lots of local variables, at least |
| 5958 | as many local variables as main has allocated so far |
| 5959 | including compiler temporaries. 4 locals are enough for |
| 5960 | gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. |
| 5961 | A buggy compiler should reuse the register of parent |
| 5962 | for one of the local variables, since it will think that |
| 5963 | parent can't possibly be used any more in this routine. |
| 5964 | Assigning to the local variable will thus munge parent |
| 5965 | in the parent process. */ |
| 5966 | pid_t |
| 5967 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 5968 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 5969 | /* Convince the compiler that p..p7 are live; otherwise, it might |
| 5970 | use the same hardware register for all 8 local variables. */ |
| 5971 | if (p != p1 || p != p2 || p != p3 || p != p4 |
| 5972 | || p != p5 || p != p6 || p != p7) |
| 5973 | _exit(1); |
| 5974 | |
| 5975 | /* On some systems (e.g. IRIX 3.3), |
| 5976 | vfork doesn't separate parent from child file descriptors. |
| 5977 | If the child closes a descriptor before it execs or exits, |
| 5978 | this munges the parent's descriptor as well. |
| 5979 | Test for this by closing stdout in the child. */ |
| 5980 | _exit(close(fileno(stdout)) != 0); |
| 5981 | } else { |
| 5982 | int status; |
| 5983 | struct stat st; |
| 5984 | |
| 5985 | while (wait(&status) != child) |
| 5986 | ; |
| 5987 | exit( |
| 5988 | /* Was there some problem with vforking? */ |
| 5989 | child < 0 |
| 5990 | |
| 5991 | /* Did the child fail? (This shouldn't happen.) */ |
| 5992 | || status |
| 5993 | |
| 5994 | /* Did the vfork/compiler bug occur? */ |
| 5995 | || parent != getpid() |
| 5996 | |
| 5997 | /* Did the file descriptor bug occur? */ |
| 5998 | || fstat(fileno(stdout), &st) != 0 |
| 5999 | ); |
| 6000 | } |
| 6001 | } |
| 6002 | EOF |
| 6003 | if { (eval echo configure:6004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 6004 | then |
| 6005 | ac_cv_func_vfork_works=yes |
| 6006 | else |
| 6007 | echo "configure: failed program was:" >&5 |
| 6008 | cat conftest.$ac_ext >&5 |
| 6009 | rm -fr conftest* |
| 6010 | ac_cv_func_vfork_works=no |
| 6011 | fi |
| 6012 | rm -fr conftest* |
| 6013 | fi |
| 6014 | |
| 6015 | fi |
| 6016 | |
| 6017 | echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 |
| 6018 | if test $ac_cv_func_vfork_works = no; then |
| 6019 | cat >> confdefs.h <<\EOF |
| 6020 | #define vfork fork |
| 6021 | EOF |
| 6022 | |
| 6023 | fi |
| 6024 | |
| 6025 | for ac_func in canonicalize_file_name realpath |
| 6026 | do |
| 6027 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 6028 | echo "configure:6029: checking for $ac_func" >&5 |
| 6029 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 6030 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6031 | else |
| 6032 | cat > conftest.$ac_ext <<EOF |
| 6033 | #line 6034 "configure" |
| 6034 | #include "confdefs.h" |
| 6035 | /* System header to define __stub macros and hopefully few prototypes, |
| 6036 | which can conflict with char $ac_func(); below. */ |
| 6037 | #include <assert.h> |
| 6038 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6039 | /* We use char because int might match the return type of a gcc2 |
| 6040 | builtin and then its argument prototype would still apply. */ |
| 6041 | char $ac_func(); |
| 6042 | |
| 6043 | int main() { |
| 6044 | |
| 6045 | /* The GNU C library defines this for functions which it implements |
| 6046 | to always fail with ENOSYS. Some functions are actually named |
| 6047 | something starting with __ and the normal name is an alias. */ |
| 6048 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6049 | choke me |
| 6050 | #else |
| 6051 | $ac_func(); |
| 6052 | #endif |
| 6053 | |
| 6054 | ; return 0; } |
| 6055 | EOF |
| 6056 | if { (eval echo configure:6057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 6057 | rm -rf conftest* |
| 6058 | eval "ac_cv_func_$ac_func=yes" |
| 6059 | else |
| 6060 | echo "configure: failed program was:" >&5 |
| 6061 | cat conftest.$ac_ext >&5 |
| 6062 | rm -rf conftest* |
| 6063 | eval "ac_cv_func_$ac_func=no" |
| 6064 | fi |
| 6065 | rm -f conftest* |
| 6066 | fi |
| 6067 | |
| 6068 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 6069 | echo "$ac_t""yes" 1>&6 |
| 6070 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6071 | cat >> confdefs.h <<EOF |
| 6072 | #define $ac_tr_func 1 |
| 6073 | EOF |
| 6074 | |
| 6075 | else |
| 6076 | echo "$ac_t""no" 1>&6 |
| 6077 | fi |
| 6078 | done |
| 6079 | |
| 6080 | for ac_func in poll |
| 6081 | do |
| 6082 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 6083 | echo "configure:6084: checking for $ac_func" >&5 |
| 6084 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 6085 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6086 | else |
| 6087 | cat > conftest.$ac_ext <<EOF |
| 6088 | #line 6089 "configure" |
| 6089 | #include "confdefs.h" |
| 6090 | /* System header to define __stub macros and hopefully few prototypes, |
| 6091 | which can conflict with char $ac_func(); below. */ |
| 6092 | #include <assert.h> |
| 6093 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6094 | /* We use char because int might match the return type of a gcc2 |
| 6095 | builtin and then its argument prototype would still apply. */ |
| 6096 | char $ac_func(); |
| 6097 | |
| 6098 | int main() { |
| 6099 | |
| 6100 | /* The GNU C library defines this for functions which it implements |
| 6101 | to always fail with ENOSYS. Some functions are actually named |
| 6102 | something starting with __ and the normal name is an alias. */ |
| 6103 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6104 | choke me |
| 6105 | #else |
| 6106 | $ac_func(); |
| 6107 | #endif |
| 6108 | |
| 6109 | ; return 0; } |
| 6110 | EOF |
| 6111 | if { (eval echo configure:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 6112 | rm -rf conftest* |
| 6113 | eval "ac_cv_func_$ac_func=yes" |
| 6114 | else |
| 6115 | echo "configure: failed program was:" >&5 |
| 6116 | cat conftest.$ac_ext >&5 |
| 6117 | rm -rf conftest* |
| 6118 | eval "ac_cv_func_$ac_func=no" |
| 6119 | fi |
| 6120 | rm -f conftest* |
| 6121 | fi |
| 6122 | |
| 6123 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 6124 | echo "$ac_t""yes" 1>&6 |
| 6125 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6126 | cat >> confdefs.h <<EOF |
| 6127 | #define $ac_tr_func 1 |
| 6128 | EOF |
| 6129 | |
| 6130 | else |
| 6131 | echo "$ac_t""no" 1>&6 |
| 6132 | fi |
| 6133 | done |
| 6134 | |
| 6135 | for ac_func in pread64 |
| 6136 | do |
| 6137 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 6138 | echo "configure:6139: checking for $ac_func" >&5 |
| 6139 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 6140 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6141 | else |
| 6142 | cat > conftest.$ac_ext <<EOF |
| 6143 | #line 6144 "configure" |
| 6144 | #include "confdefs.h" |
| 6145 | /* System header to define __stub macros and hopefully few prototypes, |
| 6146 | which can conflict with char $ac_func(); below. */ |
| 6147 | #include <assert.h> |
| 6148 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6149 | /* We use char because int might match the return type of a gcc2 |
| 6150 | builtin and then its argument prototype would still apply. */ |
| 6151 | char $ac_func(); |
| 6152 | |
| 6153 | int main() { |
| 6154 | |
| 6155 | /* The GNU C library defines this for functions which it implements |
| 6156 | to always fail with ENOSYS. Some functions are actually named |
| 6157 | something starting with __ and the normal name is an alias. */ |
| 6158 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6159 | choke me |
| 6160 | #else |
| 6161 | $ac_func(); |
| 6162 | #endif |
| 6163 | |
| 6164 | ; return 0; } |
| 6165 | EOF |
| 6166 | if { (eval echo configure:6167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 6167 | rm -rf conftest* |
| 6168 | eval "ac_cv_func_$ac_func=yes" |
| 6169 | else |
| 6170 | echo "configure: failed program was:" >&5 |
| 6171 | cat conftest.$ac_ext >&5 |
| 6172 | rm -rf conftest* |
| 6173 | eval "ac_cv_func_$ac_func=no" |
| 6174 | fi |
| 6175 | rm -f conftest* |
| 6176 | fi |
| 6177 | |
| 6178 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 6179 | echo "$ac_t""yes" 1>&6 |
| 6180 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6181 | cat >> confdefs.h <<EOF |
| 6182 | #define $ac_tr_func 1 |
| 6183 | EOF |
| 6184 | |
| 6185 | else |
| 6186 | echo "$ac_t""no" 1>&6 |
| 6187 | fi |
| 6188 | done |
| 6189 | |
| 6190 | for ac_func in sbrk |
| 6191 | do |
| 6192 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 6193 | echo "configure:6194: checking for $ac_func" >&5 |
| 6194 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 6195 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6196 | else |
| 6197 | cat > conftest.$ac_ext <<EOF |
| 6198 | #line 6199 "configure" |
| 6199 | #include "confdefs.h" |
| 6200 | /* System header to define __stub macros and hopefully few prototypes, |
| 6201 | which can conflict with char $ac_func(); below. */ |
| 6202 | #include <assert.h> |
| 6203 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6204 | /* We use char because int might match the return type of a gcc2 |
| 6205 | builtin and then its argument prototype would still apply. */ |
| 6206 | char $ac_func(); |
| 6207 | |
| 6208 | int main() { |
| 6209 | |
| 6210 | /* The GNU C library defines this for functions which it implements |
| 6211 | to always fail with ENOSYS. Some functions are actually named |
| 6212 | something starting with __ and the normal name is an alias. */ |
| 6213 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6214 | choke me |
| 6215 | #else |
| 6216 | $ac_func(); |
| 6217 | #endif |
| 6218 | |
| 6219 | ; return 0; } |
| 6220 | EOF |
| 6221 | if { (eval echo configure:6222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 6222 | rm -rf conftest* |
| 6223 | eval "ac_cv_func_$ac_func=yes" |
| 6224 | else |
| 6225 | echo "configure: failed program was:" >&5 |
| 6226 | cat conftest.$ac_ext >&5 |
| 6227 | rm -rf conftest* |
| 6228 | eval "ac_cv_func_$ac_func=no" |
| 6229 | fi |
| 6230 | rm -f conftest* |
| 6231 | fi |
| 6232 | |
| 6233 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 6234 | echo "$ac_t""yes" 1>&6 |
| 6235 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6236 | cat >> confdefs.h <<EOF |
| 6237 | #define $ac_tr_func 1 |
| 6238 | EOF |
| 6239 | |
| 6240 | else |
| 6241 | echo "$ac_t""no" 1>&6 |
| 6242 | fi |
| 6243 | done |
| 6244 | |
| 6245 | for ac_func in setpgid setpgrp |
| 6246 | do |
| 6247 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 6248 | echo "configure:6249: checking for $ac_func" >&5 |
| 6249 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 6250 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6251 | else |
| 6252 | cat > conftest.$ac_ext <<EOF |
| 6253 | #line 6254 "configure" |
| 6254 | #include "confdefs.h" |
| 6255 | /* System header to define __stub macros and hopefully few prototypes, |
| 6256 | which can conflict with char $ac_func(); below. */ |
| 6257 | #include <assert.h> |
| 6258 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6259 | /* We use char because int might match the return type of a gcc2 |
| 6260 | builtin and then its argument prototype would still apply. */ |
| 6261 | char $ac_func(); |
| 6262 | |
| 6263 | int main() { |
| 6264 | |
| 6265 | /* The GNU C library defines this for functions which it implements |
| 6266 | to always fail with ENOSYS. Some functions are actually named |
| 6267 | something starting with __ and the normal name is an alias. */ |
| 6268 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6269 | choke me |
| 6270 | #else |
| 6271 | $ac_func(); |
| 6272 | #endif |
| 6273 | |
| 6274 | ; return 0; } |
| 6275 | EOF |
| 6276 | if { (eval echo configure:6277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 6277 | rm -rf conftest* |
| 6278 | eval "ac_cv_func_$ac_func=yes" |
| 6279 | else |
| 6280 | echo "configure: failed program was:" >&5 |
| 6281 | cat conftest.$ac_ext >&5 |
| 6282 | rm -rf conftest* |
| 6283 | eval "ac_cv_func_$ac_func=no" |
| 6284 | fi |
| 6285 | rm -f conftest* |
| 6286 | fi |
| 6287 | |
| 6288 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 6289 | echo "$ac_t""yes" 1>&6 |
| 6290 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6291 | cat >> confdefs.h <<EOF |
| 6292 | #define $ac_tr_func 1 |
| 6293 | EOF |
| 6294 | |
| 6295 | else |
| 6296 | echo "$ac_t""no" 1>&6 |
| 6297 | fi |
| 6298 | done |
| 6299 | |
| 6300 | for ac_func in sigaction sigprocmask sigsetmask |
| 6301 | do |
| 6302 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 6303 | echo "configure:6304: checking for $ac_func" >&5 |
| 6304 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 6305 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6306 | else |
| 6307 | cat > conftest.$ac_ext <<EOF |
| 6308 | #line 6309 "configure" |
| 6309 | #include "confdefs.h" |
| 6310 | /* System header to define __stub macros and hopefully few prototypes, |
| 6311 | which can conflict with char $ac_func(); below. */ |
| 6312 | #include <assert.h> |
| 6313 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6314 | /* We use char because int might match the return type of a gcc2 |
| 6315 | builtin and then its argument prototype would still apply. */ |
| 6316 | char $ac_func(); |
| 6317 | |
| 6318 | int main() { |
| 6319 | |
| 6320 | /* The GNU C library defines this for functions which it implements |
| 6321 | to always fail with ENOSYS. Some functions are actually named |
| 6322 | something starting with __ and the normal name is an alias. */ |
| 6323 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6324 | choke me |
| 6325 | #else |
| 6326 | $ac_func(); |
| 6327 | #endif |
| 6328 | |
| 6329 | ; return 0; } |
| 6330 | EOF |
| 6331 | if { (eval echo configure:6332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 6332 | rm -rf conftest* |
| 6333 | eval "ac_cv_func_$ac_func=yes" |
| 6334 | else |
| 6335 | echo "configure: failed program was:" >&5 |
| 6336 | cat conftest.$ac_ext >&5 |
| 6337 | rm -rf conftest* |
| 6338 | eval "ac_cv_func_$ac_func=no" |
| 6339 | fi |
| 6340 | rm -f conftest* |
| 6341 | fi |
| 6342 | |
| 6343 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 6344 | echo "$ac_t""yes" 1>&6 |
| 6345 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6346 | cat >> confdefs.h <<EOF |
| 6347 | #define $ac_tr_func 1 |
| 6348 | EOF |
| 6349 | |
| 6350 | else |
| 6351 | echo "$ac_t""no" 1>&6 |
| 6352 | fi |
| 6353 | done |
| 6354 | |
| 6355 | for ac_func in socketpair |
| 6356 | do |
| 6357 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 6358 | echo "configure:6359: checking for $ac_func" >&5 |
| 6359 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 6360 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6361 | else |
| 6362 | cat > conftest.$ac_ext <<EOF |
| 6363 | #line 6364 "configure" |
| 6364 | #include "confdefs.h" |
| 6365 | /* System header to define __stub macros and hopefully few prototypes, |
| 6366 | which can conflict with char $ac_func(); below. */ |
| 6367 | #include <assert.h> |
| 6368 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6369 | /* We use char because int might match the return type of a gcc2 |
| 6370 | builtin and then its argument prototype would still apply. */ |
| 6371 | char $ac_func(); |
| 6372 | |
| 6373 | int main() { |
| 6374 | |
| 6375 | /* The GNU C library defines this for functions which it implements |
| 6376 | to always fail with ENOSYS. Some functions are actually named |
| 6377 | something starting with __ and the normal name is an alias. */ |
| 6378 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6379 | choke me |
| 6380 | #else |
| 6381 | $ac_func(); |
| 6382 | #endif |
| 6383 | |
| 6384 | ; return 0; } |
| 6385 | EOF |
| 6386 | if { (eval echo configure:6387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 6387 | rm -rf conftest* |
| 6388 | eval "ac_cv_func_$ac_func=yes" |
| 6389 | else |
| 6390 | echo "configure: failed program was:" >&5 |
| 6391 | cat conftest.$ac_ext >&5 |
| 6392 | rm -rf conftest* |
| 6393 | eval "ac_cv_func_$ac_func=no" |
| 6394 | fi |
| 6395 | rm -f conftest* |
| 6396 | fi |
| 6397 | |
| 6398 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 6399 | echo "$ac_t""yes" 1>&6 |
| 6400 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6401 | cat >> confdefs.h <<EOF |
| 6402 | #define $ac_tr_func 1 |
| 6403 | EOF |
| 6404 | |
| 6405 | else |
| 6406 | echo "$ac_t""no" 1>&6 |
| 6407 | fi |
| 6408 | done |
| 6409 | |
| 6410 | |
| 6411 | if test "$cross_compiling" = no; then |
| 6412 | echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6 |
| 6413 | echo "configure:6414: checking whether setpgrp takes no argument" >&5 |
| 6414 | if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then |
| 6415 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6416 | else |
| 6417 | if test "$cross_compiling" = yes; then |
| 6418 | { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; } |
| 6419 | else |
| 6420 | cat > conftest.$ac_ext <<EOF |
| 6421 | #line 6422 "configure" |
| 6422 | #include "confdefs.h" |
| 6423 | |
| 6424 | #ifdef HAVE_UNISTD_H |
| 6425 | #include <unistd.h> |
| 6426 | #endif |
| 6427 | |
| 6428 | /* |
| 6429 | * If this system has a BSD-style setpgrp, which takes arguments, exit |
| 6430 | * successfully. |
| 6431 | */ |
| 6432 | main() |
| 6433 | { |
| 6434 | if (setpgrp(1,1) == -1) |
| 6435 | exit(0); |
| 6436 | else |
| 6437 | exit(1); |
| 6438 | } |
| 6439 | |
| 6440 | EOF |
| 6441 | if { (eval echo configure:6442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 6442 | then |
| 6443 | ac_cv_func_setpgrp_void=no |
| 6444 | else |
| 6445 | echo "configure: failed program was:" >&5 |
| 6446 | cat conftest.$ac_ext >&5 |
| 6447 | rm -fr conftest* |
| 6448 | ac_cv_func_setpgrp_void=yes |
| 6449 | fi |
| 6450 | rm -fr conftest* |
| 6451 | fi |
| 6452 | |
| 6453 | |
| 6454 | fi |
| 6455 | |
| 6456 | echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6 |
| 6457 | if test $ac_cv_func_setpgrp_void = yes; then |
| 6458 | cat >> confdefs.h <<\EOF |
| 6459 | #define SETPGRP_VOID 1 |
| 6460 | EOF |
| 6461 | |
| 6462 | fi |
| 6463 | |
| 6464 | else |
| 6465 | echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6 |
| 6466 | echo "configure:6467: checking whether setpgrp takes no argument" >&5 |
| 6467 | if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then |
| 6468 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6469 | else |
| 6470 | cat > conftest.$ac_ext <<EOF |
| 6471 | #line 6472 "configure" |
| 6472 | #include "confdefs.h" |
| 6473 | |
| 6474 | #include <unistd.h> |
| 6475 | |
| 6476 | int main() { |
| 6477 | |
| 6478 | if (setpgrp(1,1) == -1) |
| 6479 | exit (0); |
| 6480 | else |
| 6481 | exit (1); |
| 6482 | |
| 6483 | ; return 0; } |
| 6484 | EOF |
| 6485 | if { (eval echo configure:6486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6486 | rm -rf conftest* |
| 6487 | ac_cv_func_setpgrp_void=no |
| 6488 | else |
| 6489 | echo "configure: failed program was:" >&5 |
| 6490 | cat conftest.$ac_ext >&5 |
| 6491 | rm -rf conftest* |
| 6492 | ac_cv_func_setpgrp_void=yes |
| 6493 | fi |
| 6494 | rm -f conftest* |
| 6495 | fi |
| 6496 | |
| 6497 | echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6 |
| 6498 | if test $ac_cv_func_setpgrp_void = yes; then |
| 6499 | cat >> confdefs.h <<\EOF |
| 6500 | #define SETPGRP_VOID 1 |
| 6501 | EOF |
| 6502 | |
| 6503 | fi |
| 6504 | fi |
| 6505 | |
| 6506 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
| 6507 | # since sigsetjmp might only be defined as a macro. |
| 6508 | echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 |
| 6509 | echo "configure:6510: checking for sigsetjmp" >&5 |
| 6510 | if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then |
| 6511 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6512 | else |
| 6513 | cat > conftest.$ac_ext <<EOF |
| 6514 | #line 6515 "configure" |
| 6515 | #include "confdefs.h" |
| 6516 | |
| 6517 | #include <setjmp.h> |
| 6518 | |
| 6519 | int main() { |
| 6520 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
| 6521 | ; return 0; } |
| 6522 | EOF |
| 6523 | if { (eval echo configure:6524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6524 | rm -rf conftest* |
| 6525 | gdb_cv_func_sigsetjmp=yes |
| 6526 | else |
| 6527 | echo "configure: failed program was:" >&5 |
| 6528 | cat conftest.$ac_ext >&5 |
| 6529 | rm -rf conftest* |
| 6530 | gdb_cv_func_sigsetjmp=no |
| 6531 | fi |
| 6532 | rm -f conftest* |
| 6533 | fi |
| 6534 | |
| 6535 | echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6 |
| 6536 | if test $gdb_cv_func_sigsetjmp = yes; then |
| 6537 | cat >> confdefs.h <<\EOF |
| 6538 | #define HAVE_SIGSETJMP 1 |
| 6539 | EOF |
| 6540 | |
| 6541 | fi |
| 6542 | |
| 6543 | # Assume we'll default to using the included libiberty regex. |
| 6544 | gdb_use_included_regex=yes |
| 6545 | |
| 6546 | # However, if the system regex is GNU regex, then default to *not* |
| 6547 | # using the included regex. |
| 6548 | echo $ac_n "checking for GNU regex""... $ac_c" 1>&6 |
| 6549 | echo "configure:6550: checking for GNU regex" >&5 |
| 6550 | if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then |
| 6551 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6552 | else |
| 6553 | cat > conftest.$ac_ext <<EOF |
| 6554 | #line 6555 "configure" |
| 6555 | #include "confdefs.h" |
| 6556 | #include <gnu-versions.h> |
| 6557 | int main() { |
| 6558 | #define REGEX_INTERFACE_VERSION 1 |
| 6559 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION |
| 6560 | # error "Version mismatch" |
| 6561 | #endif |
| 6562 | ; return 0; } |
| 6563 | EOF |
| 6564 | if { (eval echo configure:6565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6565 | rm -rf conftest* |
| 6566 | gdb_cv_have_gnu_regex=yes |
| 6567 | else |
| 6568 | echo "configure: failed program was:" >&5 |
| 6569 | cat conftest.$ac_ext >&5 |
| 6570 | rm -rf conftest* |
| 6571 | gdb_cv_have_gnu_regex=no |
| 6572 | fi |
| 6573 | rm -f conftest* |
| 6574 | fi |
| 6575 | |
| 6576 | echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6 |
| 6577 | if test $gdb_cv_have_gnu_regex = yes; then |
| 6578 | gdb_use_included_regex=no |
| 6579 | fi |
| 6580 | |
| 6581 | # Check whether --with-included-regex or --without-included-regex was given. |
| 6582 | if test "${with_included_regex+set}" = set; then |
| 6583 | withval="$with_included_regex" |
| 6584 | gdb_with_regex=$withval |
| 6585 | else |
| 6586 | gdb_with_regex=$gdb_use_included_regex |
| 6587 | fi |
| 6588 | |
| 6589 | if test "$gdb_with_regex" = yes; then |
| 6590 | cat >> confdefs.h <<\EOF |
| 6591 | #define USE_INCLUDED_REGEX 1 |
| 6592 | EOF |
| 6593 | |
| 6594 | fi |
| 6595 | |
| 6596 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
| 6597 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. |
| 6598 | echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6 |
| 6599 | echo "configure:6600: checking for r_fs in struct reg" >&5 |
| 6600 | if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then |
| 6601 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6602 | else |
| 6603 | cat > conftest.$ac_ext <<EOF |
| 6604 | #line 6605 "configure" |
| 6605 | #include "confdefs.h" |
| 6606 | #include <machine/reg.h> |
| 6607 | int main() { |
| 6608 | struct reg r; r.r_fs; |
| 6609 | ; return 0; } |
| 6610 | EOF |
| 6611 | if { (eval echo configure:6612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6612 | rm -rf conftest* |
| 6613 | gdb_cv_struct_reg_r_fs=yes |
| 6614 | else |
| 6615 | echo "configure: failed program was:" >&5 |
| 6616 | cat conftest.$ac_ext >&5 |
| 6617 | rm -rf conftest* |
| 6618 | gdb_cv_struct_reg_r_fs=no |
| 6619 | fi |
| 6620 | rm -f conftest* |
| 6621 | fi |
| 6622 | |
| 6623 | echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6 |
| 6624 | if test $gdb_cv_struct_reg_r_fs = yes; then |
| 6625 | cat >> confdefs.h <<\EOF |
| 6626 | #define HAVE_STRUCT_REG_R_FS 1 |
| 6627 | EOF |
| 6628 | |
| 6629 | fi |
| 6630 | echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6 |
| 6631 | echo "configure:6632: checking for r_gs in struct reg" >&5 |
| 6632 | if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then |
| 6633 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6634 | else |
| 6635 | cat > conftest.$ac_ext <<EOF |
| 6636 | #line 6637 "configure" |
| 6637 | #include "confdefs.h" |
| 6638 | #include <machine/reg.h> |
| 6639 | int main() { |
| 6640 | struct reg r; r.r_gs; |
| 6641 | ; return 0; } |
| 6642 | EOF |
| 6643 | if { (eval echo configure:6644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6644 | rm -rf conftest* |
| 6645 | gdb_cv_struct_reg_r_gs=yes |
| 6646 | else |
| 6647 | echo "configure: failed program was:" >&5 |
| 6648 | cat conftest.$ac_ext >&5 |
| 6649 | rm -rf conftest* |
| 6650 | gdb_cv_struct_reg_r_gs=no |
| 6651 | fi |
| 6652 | rm -f conftest* |
| 6653 | fi |
| 6654 | |
| 6655 | echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6 |
| 6656 | if test $gdb_cv_struct_reg_r_gs = yes; then |
| 6657 | cat >> confdefs.h <<\EOF |
| 6658 | #define HAVE_STRUCT_REG_R_GS 1 |
| 6659 | EOF |
| 6660 | |
| 6661 | fi |
| 6662 | |
| 6663 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
| 6664 | echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6 |
| 6665 | echo "configure:6666: checking for PTRACE_GETREGS" >&5 |
| 6666 | if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then |
| 6667 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6668 | else |
| 6669 | cat > conftest.$ac_ext <<EOF |
| 6670 | #line 6671 "configure" |
| 6671 | #include "confdefs.h" |
| 6672 | #include <sys/ptrace.h> |
| 6673 | int main() { |
| 6674 | PTRACE_GETREGS; |
| 6675 | ; return 0; } |
| 6676 | EOF |
| 6677 | if { (eval echo configure:6678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6678 | rm -rf conftest* |
| 6679 | gdb_cv_have_ptrace_getregs=yes |
| 6680 | else |
| 6681 | echo "configure: failed program was:" >&5 |
| 6682 | cat conftest.$ac_ext >&5 |
| 6683 | rm -rf conftest* |
| 6684 | gdb_cv_have_ptrace_getregs=no |
| 6685 | fi |
| 6686 | rm -f conftest* |
| 6687 | fi |
| 6688 | |
| 6689 | echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6 |
| 6690 | if test $gdb_cv_have_ptrace_getregs = yes; then |
| 6691 | cat >> confdefs.h <<\EOF |
| 6692 | #define HAVE_PTRACE_GETREGS 1 |
| 6693 | EOF |
| 6694 | |
| 6695 | fi |
| 6696 | |
| 6697 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
| 6698 | echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6 |
| 6699 | echo "configure:6700: checking for PTRACE_GETFPXREGS" >&5 |
| 6700 | if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then |
| 6701 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6702 | else |
| 6703 | cat > conftest.$ac_ext <<EOF |
| 6704 | #line 6705 "configure" |
| 6705 | #include "confdefs.h" |
| 6706 | #include <sys/ptrace.h> |
| 6707 | int main() { |
| 6708 | PTRACE_GETFPXREGS; |
| 6709 | ; return 0; } |
| 6710 | EOF |
| 6711 | if { (eval echo configure:6712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6712 | rm -rf conftest* |
| 6713 | gdb_cv_have_ptrace_getfpxregs=yes |
| 6714 | else |
| 6715 | echo "configure: failed program was:" >&5 |
| 6716 | cat conftest.$ac_ext >&5 |
| 6717 | rm -rf conftest* |
| 6718 | gdb_cv_have_ptrace_getfpxregs=no |
| 6719 | fi |
| 6720 | rm -f conftest* |
| 6721 | fi |
| 6722 | |
| 6723 | echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6 |
| 6724 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then |
| 6725 | cat >> confdefs.h <<\EOF |
| 6726 | #define HAVE_PTRACE_GETFPXREGS 1 |
| 6727 | EOF |
| 6728 | |
| 6729 | fi |
| 6730 | |
| 6731 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
| 6732 | echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6 |
| 6733 | echo "configure:6734: checking for PT_GETDBREGS" >&5 |
| 6734 | if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then |
| 6735 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6736 | else |
| 6737 | cat > conftest.$ac_ext <<EOF |
| 6738 | #line 6739 "configure" |
| 6739 | #include "confdefs.h" |
| 6740 | #include <sys/types.h> |
| 6741 | #include <sys/ptrace.h> |
| 6742 | int main() { |
| 6743 | PT_GETDBREGS; |
| 6744 | ; return 0; } |
| 6745 | EOF |
| 6746 | if { (eval echo configure:6747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6747 | rm -rf conftest* |
| 6748 | gdb_cv_have_pt_getdbregs=yes |
| 6749 | else |
| 6750 | echo "configure: failed program was:" >&5 |
| 6751 | cat conftest.$ac_ext >&5 |
| 6752 | rm -rf conftest* |
| 6753 | gdb_cv_have_pt_getdbregs=no |
| 6754 | fi |
| 6755 | rm -f conftest* |
| 6756 | fi |
| 6757 | |
| 6758 | echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6 |
| 6759 | if test $gdb_cv_have_pt_getdbregs = yes; then |
| 6760 | cat >> confdefs.h <<\EOF |
| 6761 | #define HAVE_PT_GETDBREGS 1 |
| 6762 | EOF |
| 6763 | |
| 6764 | fi |
| 6765 | |
| 6766 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
| 6767 | echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6 |
| 6768 | echo "configure:6769: checking for PT_GETXMMREGS" >&5 |
| 6769 | if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then |
| 6770 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6771 | else |
| 6772 | cat > conftest.$ac_ext <<EOF |
| 6773 | #line 6774 "configure" |
| 6774 | #include "confdefs.h" |
| 6775 | #include <sys/types.h> |
| 6776 | #include <sys/ptrace.h> |
| 6777 | int main() { |
| 6778 | PT_GETXMMREGS; |
| 6779 | ; return 0; } |
| 6780 | EOF |
| 6781 | if { (eval echo configure:6782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6782 | rm -rf conftest* |
| 6783 | gdb_cv_have_pt_getxmmregs=yes |
| 6784 | else |
| 6785 | echo "configure: failed program was:" >&5 |
| 6786 | cat conftest.$ac_ext >&5 |
| 6787 | rm -rf conftest* |
| 6788 | gdb_cv_have_pt_getxmmregs=no |
| 6789 | fi |
| 6790 | rm -f conftest* |
| 6791 | fi |
| 6792 | |
| 6793 | echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6 |
| 6794 | if test $gdb_cv_have_pt_getxmmregs = yes; then |
| 6795 | cat >> confdefs.h <<\EOF |
| 6796 | #define HAVE_PT_GETXMMREGS 1 |
| 6797 | EOF |
| 6798 | |
| 6799 | fi |
| 6800 | |
| 6801 | |
| 6802 | echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6 |
| 6803 | echo "configure:6804: checking whether malloc must be declared" >&5 |
| 6804 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then |
| 6805 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6806 | else |
| 6807 | cat > conftest.$ac_ext <<EOF |
| 6808 | #line 6809 "configure" |
| 6809 | #include "confdefs.h" |
| 6810 | |
| 6811 | #include <stdio.h> |
| 6812 | #ifdef HAVE_STRING_H |
| 6813 | #include <string.h> |
| 6814 | #else |
| 6815 | #ifdef HAVE_STRINGS_H |
| 6816 | #include <strings.h> |
| 6817 | #endif |
| 6818 | #endif |
| 6819 | #ifdef HAVE_STDLIB_H |
| 6820 | #include <stdlib.h> |
| 6821 | #endif |
| 6822 | #ifdef HAVE_UNISTD_H |
| 6823 | #include <unistd.h> |
| 6824 | #endif |
| 6825 | int main() { |
| 6826 | char *(*pfn) = (char *(*)) malloc |
| 6827 | ; return 0; } |
| 6828 | EOF |
| 6829 | if { (eval echo configure:6830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6830 | rm -rf conftest* |
| 6831 | bfd_cv_decl_needed_malloc=no |
| 6832 | else |
| 6833 | echo "configure: failed program was:" >&5 |
| 6834 | cat conftest.$ac_ext >&5 |
| 6835 | rm -rf conftest* |
| 6836 | bfd_cv_decl_needed_malloc=yes |
| 6837 | fi |
| 6838 | rm -f conftest* |
| 6839 | fi |
| 6840 | |
| 6841 | echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6 |
| 6842 | if test $bfd_cv_decl_needed_malloc = yes; then |
| 6843 | cat >> confdefs.h <<\EOF |
| 6844 | #define NEED_DECLARATION_MALLOC 1 |
| 6845 | EOF |
| 6846 | |
| 6847 | fi |
| 6848 | |
| 6849 | echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6 |
| 6850 | echo "configure:6851: checking whether realloc must be declared" >&5 |
| 6851 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then |
| 6852 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6853 | else |
| 6854 | cat > conftest.$ac_ext <<EOF |
| 6855 | #line 6856 "configure" |
| 6856 | #include "confdefs.h" |
| 6857 | |
| 6858 | #include <stdio.h> |
| 6859 | #ifdef HAVE_STRING_H |
| 6860 | #include <string.h> |
| 6861 | #else |
| 6862 | #ifdef HAVE_STRINGS_H |
| 6863 | #include <strings.h> |
| 6864 | #endif |
| 6865 | #endif |
| 6866 | #ifdef HAVE_STDLIB_H |
| 6867 | #include <stdlib.h> |
| 6868 | #endif |
| 6869 | #ifdef HAVE_UNISTD_H |
| 6870 | #include <unistd.h> |
| 6871 | #endif |
| 6872 | int main() { |
| 6873 | char *(*pfn) = (char *(*)) realloc |
| 6874 | ; return 0; } |
| 6875 | EOF |
| 6876 | if { (eval echo configure:6877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6877 | rm -rf conftest* |
| 6878 | bfd_cv_decl_needed_realloc=no |
| 6879 | else |
| 6880 | echo "configure: failed program was:" >&5 |
| 6881 | cat conftest.$ac_ext >&5 |
| 6882 | rm -rf conftest* |
| 6883 | bfd_cv_decl_needed_realloc=yes |
| 6884 | fi |
| 6885 | rm -f conftest* |
| 6886 | fi |
| 6887 | |
| 6888 | echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6 |
| 6889 | if test $bfd_cv_decl_needed_realloc = yes; then |
| 6890 | cat >> confdefs.h <<\EOF |
| 6891 | #define NEED_DECLARATION_REALLOC 1 |
| 6892 | EOF |
| 6893 | |
| 6894 | fi |
| 6895 | |
| 6896 | echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6 |
| 6897 | echo "configure:6898: checking whether free must be declared" >&5 |
| 6898 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then |
| 6899 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6900 | else |
| 6901 | cat > conftest.$ac_ext <<EOF |
| 6902 | #line 6903 "configure" |
| 6903 | #include "confdefs.h" |
| 6904 | |
| 6905 | #include <stdio.h> |
| 6906 | #ifdef HAVE_STRING_H |
| 6907 | #include <string.h> |
| 6908 | #else |
| 6909 | #ifdef HAVE_STRINGS_H |
| 6910 | #include <strings.h> |
| 6911 | #endif |
| 6912 | #endif |
| 6913 | #ifdef HAVE_STDLIB_H |
| 6914 | #include <stdlib.h> |
| 6915 | #endif |
| 6916 | #ifdef HAVE_UNISTD_H |
| 6917 | #include <unistd.h> |
| 6918 | #endif |
| 6919 | int main() { |
| 6920 | char *(*pfn) = (char *(*)) free |
| 6921 | ; return 0; } |
| 6922 | EOF |
| 6923 | if { (eval echo configure:6924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6924 | rm -rf conftest* |
| 6925 | bfd_cv_decl_needed_free=no |
| 6926 | else |
| 6927 | echo "configure: failed program was:" >&5 |
| 6928 | cat conftest.$ac_ext >&5 |
| 6929 | rm -rf conftest* |
| 6930 | bfd_cv_decl_needed_free=yes |
| 6931 | fi |
| 6932 | rm -f conftest* |
| 6933 | fi |
| 6934 | |
| 6935 | echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6 |
| 6936 | if test $bfd_cv_decl_needed_free = yes; then |
| 6937 | cat >> confdefs.h <<\EOF |
| 6938 | #define NEED_DECLARATION_FREE 1 |
| 6939 | EOF |
| 6940 | |
| 6941 | fi |
| 6942 | |
| 6943 | echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6 |
| 6944 | echo "configure:6945: checking whether strerror must be declared" >&5 |
| 6945 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then |
| 6946 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6947 | else |
| 6948 | cat > conftest.$ac_ext <<EOF |
| 6949 | #line 6950 "configure" |
| 6950 | #include "confdefs.h" |
| 6951 | |
| 6952 | #include <stdio.h> |
| 6953 | #ifdef HAVE_STRING_H |
| 6954 | #include <string.h> |
| 6955 | #else |
| 6956 | #ifdef HAVE_STRINGS_H |
| 6957 | #include <strings.h> |
| 6958 | #endif |
| 6959 | #endif |
| 6960 | #ifdef HAVE_STDLIB_H |
| 6961 | #include <stdlib.h> |
| 6962 | #endif |
| 6963 | #ifdef HAVE_UNISTD_H |
| 6964 | #include <unistd.h> |
| 6965 | #endif |
| 6966 | int main() { |
| 6967 | char *(*pfn) = (char *(*)) strerror |
| 6968 | ; return 0; } |
| 6969 | EOF |
| 6970 | if { (eval echo configure:6971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6971 | rm -rf conftest* |
| 6972 | bfd_cv_decl_needed_strerror=no |
| 6973 | else |
| 6974 | echo "configure: failed program was:" >&5 |
| 6975 | cat conftest.$ac_ext >&5 |
| 6976 | rm -rf conftest* |
| 6977 | bfd_cv_decl_needed_strerror=yes |
| 6978 | fi |
| 6979 | rm -f conftest* |
| 6980 | fi |
| 6981 | |
| 6982 | echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6 |
| 6983 | if test $bfd_cv_decl_needed_strerror = yes; then |
| 6984 | cat >> confdefs.h <<\EOF |
| 6985 | #define NEED_DECLARATION_STRERROR 1 |
| 6986 | EOF |
| 6987 | |
| 6988 | fi |
| 6989 | |
| 6990 | echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6 |
| 6991 | echo "configure:6992: checking whether strdup must be declared" >&5 |
| 6992 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then |
| 6993 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6994 | else |
| 6995 | cat > conftest.$ac_ext <<EOF |
| 6996 | #line 6997 "configure" |
| 6997 | #include "confdefs.h" |
| 6998 | |
| 6999 | #include <stdio.h> |
| 7000 | #ifdef HAVE_STRING_H |
| 7001 | #include <string.h> |
| 7002 | #else |
| 7003 | #ifdef HAVE_STRINGS_H |
| 7004 | #include <strings.h> |
| 7005 | #endif |
| 7006 | #endif |
| 7007 | #ifdef HAVE_STDLIB_H |
| 7008 | #include <stdlib.h> |
| 7009 | #endif |
| 7010 | #ifdef HAVE_UNISTD_H |
| 7011 | #include <unistd.h> |
| 7012 | #endif |
| 7013 | int main() { |
| 7014 | char *(*pfn) = (char *(*)) strdup |
| 7015 | ; return 0; } |
| 7016 | EOF |
| 7017 | if { (eval echo configure:7018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7018 | rm -rf conftest* |
| 7019 | bfd_cv_decl_needed_strdup=no |
| 7020 | else |
| 7021 | echo "configure: failed program was:" >&5 |
| 7022 | cat conftest.$ac_ext >&5 |
| 7023 | rm -rf conftest* |
| 7024 | bfd_cv_decl_needed_strdup=yes |
| 7025 | fi |
| 7026 | rm -f conftest* |
| 7027 | fi |
| 7028 | |
| 7029 | echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6 |
| 7030 | if test $bfd_cv_decl_needed_strdup = yes; then |
| 7031 | cat >> confdefs.h <<\EOF |
| 7032 | #define NEED_DECLARATION_STRDUP 1 |
| 7033 | EOF |
| 7034 | |
| 7035 | fi |
| 7036 | |
| 7037 | echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6 |
| 7038 | echo "configure:7039: checking whether strstr must be declared" >&5 |
| 7039 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then |
| 7040 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7041 | else |
| 7042 | cat > conftest.$ac_ext <<EOF |
| 7043 | #line 7044 "configure" |
| 7044 | #include "confdefs.h" |
| 7045 | |
| 7046 | #include <stdio.h> |
| 7047 | #ifdef HAVE_STRING_H |
| 7048 | #include <string.h> |
| 7049 | #else |
| 7050 | #ifdef HAVE_STRINGS_H |
| 7051 | #include <strings.h> |
| 7052 | #endif |
| 7053 | #endif |
| 7054 | #ifdef HAVE_STDLIB_H |
| 7055 | #include <stdlib.h> |
| 7056 | #endif |
| 7057 | #ifdef HAVE_UNISTD_H |
| 7058 | #include <unistd.h> |
| 7059 | #endif |
| 7060 | int main() { |
| 7061 | char *(*pfn) = (char *(*)) strstr |
| 7062 | ; return 0; } |
| 7063 | EOF |
| 7064 | if { (eval echo configure:7065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7065 | rm -rf conftest* |
| 7066 | bfd_cv_decl_needed_strstr=no |
| 7067 | else |
| 7068 | echo "configure: failed program was:" >&5 |
| 7069 | cat conftest.$ac_ext >&5 |
| 7070 | rm -rf conftest* |
| 7071 | bfd_cv_decl_needed_strstr=yes |
| 7072 | fi |
| 7073 | rm -f conftest* |
| 7074 | fi |
| 7075 | |
| 7076 | echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6 |
| 7077 | if test $bfd_cv_decl_needed_strstr = yes; then |
| 7078 | cat >> confdefs.h <<\EOF |
| 7079 | #define NEED_DECLARATION_STRSTR 1 |
| 7080 | EOF |
| 7081 | |
| 7082 | fi |
| 7083 | |
| 7084 | echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6 |
| 7085 | echo "configure:7086: checking whether canonicalize_file_name must be declared" >&5 |
| 7086 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then |
| 7087 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7088 | else |
| 7089 | cat > conftest.$ac_ext <<EOF |
| 7090 | #line 7091 "configure" |
| 7091 | #include "confdefs.h" |
| 7092 | |
| 7093 | #include <stdio.h> |
| 7094 | #ifdef HAVE_STRING_H |
| 7095 | #include <string.h> |
| 7096 | #else |
| 7097 | #ifdef HAVE_STRINGS_H |
| 7098 | #include <strings.h> |
| 7099 | #endif |
| 7100 | #endif |
| 7101 | #ifdef HAVE_STDLIB_H |
| 7102 | #include <stdlib.h> |
| 7103 | #endif |
| 7104 | #ifdef HAVE_UNISTD_H |
| 7105 | #include <unistd.h> |
| 7106 | #endif |
| 7107 | int main() { |
| 7108 | char *(*pfn) = (char *(*)) canonicalize_file_name |
| 7109 | ; return 0; } |
| 7110 | EOF |
| 7111 | if { (eval echo configure:7112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7112 | rm -rf conftest* |
| 7113 | bfd_cv_decl_needed_canonicalize_file_name=no |
| 7114 | else |
| 7115 | echo "configure: failed program was:" >&5 |
| 7116 | cat conftest.$ac_ext >&5 |
| 7117 | rm -rf conftest* |
| 7118 | bfd_cv_decl_needed_canonicalize_file_name=yes |
| 7119 | fi |
| 7120 | rm -f conftest* |
| 7121 | fi |
| 7122 | |
| 7123 | echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6 |
| 7124 | if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then |
| 7125 | cat >> confdefs.h <<\EOF |
| 7126 | #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1 |
| 7127 | EOF |
| 7128 | |
| 7129 | fi |
| 7130 | |
| 7131 | |
| 7132 | # The following save_state_t checkery is only necessary for HPUX |
| 7133 | # versions earlier than 10.20. When those fade from memory, this |
| 7134 | # could be expunged. --jsm 1999-03-22 |
| 7135 | |
| 7136 | echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6 |
| 7137 | echo "configure:7138: checking for HPUX save_state structure" >&5 |
| 7138 | cat > conftest.$ac_ext <<EOF |
| 7139 | #line 7140 "configure" |
| 7140 | #include "confdefs.h" |
| 7141 | #include <machine/save_state.h> |
| 7142 | EOF |
| 7143 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7144 | egrep "save_state_t" >/dev/null 2>&1; then |
| 7145 | rm -rf conftest* |
| 7146 | gdb_cv_hpux_savestate=yes |
| 7147 | else |
| 7148 | rm -rf conftest* |
| 7149 | gdb_cv_hpux_savestate=no |
| 7150 | fi |
| 7151 | rm -f conftest* |
| 7152 | |
| 7153 | cat > conftest.$ac_ext <<EOF |
| 7154 | #line 7155 "configure" |
| 7155 | #include "confdefs.h" |
| 7156 | #include <machine/save_state.h> |
| 7157 | EOF |
| 7158 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7159 | egrep "ss_wide" >/dev/null 2>&1; then |
| 7160 | rm -rf conftest* |
| 7161 | gdb_cv_hpux_sswide=yes |
| 7162 | else |
| 7163 | rm -rf conftest* |
| 7164 | gdb_cv_hpux_sswide=no |
| 7165 | fi |
| 7166 | rm -f conftest* |
| 7167 | |
| 7168 | if test $gdb_cv_hpux_savestate = yes |
| 7169 | then |
| 7170 | cat >> confdefs.h <<\EOF |
| 7171 | #define HAVE_STRUCT_SAVE_STATE_T 1 |
| 7172 | EOF |
| 7173 | |
| 7174 | fi |
| 7175 | if test $gdb_cv_hpux_sswide = yes |
| 7176 | then |
| 7177 | cat >> confdefs.h <<\EOF |
| 7178 | #define HAVE_STRUCT_MEMBER_SS_WIDE 1 |
| 7179 | EOF |
| 7180 | |
| 7181 | fi |
| 7182 | echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6 |
| 7183 | |
| 7184 | |
| 7185 | # If we are configured native on GNU/Linux, work around problems with |
| 7186 | # sys/procfs.h |
| 7187 | # Also detect which type of /proc is in use, such as for Unixware or Solaris. |
| 7188 | |
| 7189 | if test "${target}" = "${host}"; then |
| 7190 | case "${host}" in |
| 7191 | i[3456]86-*-linux*) |
| 7192 | cat >> confdefs.h <<\EOF |
| 7193 | #define START_INFERIOR_TRAPS_EXPECTED 2 |
| 7194 | EOF |
| 7195 | |
| 7196 | cat >> confdefs.h <<\EOF |
| 7197 | #define sys_quotactl 1 |
| 7198 | EOF |
| 7199 | |
| 7200 | ;; |
| 7201 | ia64-*-aix*) |
| 7202 | cat >> confdefs.h <<\EOF |
| 7203 | #define NEW_PROC_API 1 |
| 7204 | EOF |
| 7205 | |
| 7206 | ;; |
| 7207 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) |
| 7208 | cat >> confdefs.h <<\EOF |
| 7209 | #define NEW_PROC_API 1 |
| 7210 | EOF |
| 7211 | |
| 7212 | ;; |
| 7213 | *-*-solaris2.[678]) |
| 7214 | cat >> confdefs.h <<\EOF |
| 7215 | #define NEW_PROC_API 1 |
| 7216 | EOF |
| 7217 | |
| 7218 | ;; |
| 7219 | esac |
| 7220 | fi |
| 7221 | |
| 7222 | if test "$ac_cv_header_sys_procfs_h" = yes; then |
| 7223 | echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
| 7224 | echo "configure:7225: checking for pstatus_t in sys/procfs.h" >&5 |
| 7225 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then |
| 7226 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7227 | else |
| 7228 | cat > conftest.$ac_ext <<EOF |
| 7229 | #line 7230 "configure" |
| 7230 | #include "confdefs.h" |
| 7231 | |
| 7232 | #define _SYSCALL32 |
| 7233 | #include <sys/procfs.h> |
| 7234 | int main() { |
| 7235 | pstatus_t avar |
| 7236 | ; return 0; } |
| 7237 | EOF |
| 7238 | if { (eval echo configure:7239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7239 | rm -rf conftest* |
| 7240 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
| 7241 | else |
| 7242 | echo "configure: failed program was:" >&5 |
| 7243 | cat conftest.$ac_ext >&5 |
| 7244 | rm -rf conftest* |
| 7245 | bfd_cv_have_sys_procfs_type_pstatus_t=no |
| 7246 | |
| 7247 | fi |
| 7248 | rm -f conftest* |
| 7249 | fi |
| 7250 | |
| 7251 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
| 7252 | cat >> confdefs.h <<\EOF |
| 7253 | #define HAVE_PSTATUS_T 1 |
| 7254 | EOF |
| 7255 | |
| 7256 | fi |
| 7257 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6 |
| 7258 | |
| 7259 | echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6 |
| 7260 | echo "configure:7261: checking for prrun_t in sys/procfs.h" >&5 |
| 7261 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then |
| 7262 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7263 | else |
| 7264 | cat > conftest.$ac_ext <<EOF |
| 7265 | #line 7266 "configure" |
| 7266 | #include "confdefs.h" |
| 7267 | |
| 7268 | #define _SYSCALL32 |
| 7269 | #include <sys/procfs.h> |
| 7270 | int main() { |
| 7271 | prrun_t avar |
| 7272 | ; return 0; } |
| 7273 | EOF |
| 7274 | if { (eval echo configure:7275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7275 | rm -rf conftest* |
| 7276 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
| 7277 | else |
| 7278 | echo "configure: failed program was:" >&5 |
| 7279 | cat conftest.$ac_ext >&5 |
| 7280 | rm -rf conftest* |
| 7281 | bfd_cv_have_sys_procfs_type_prrun_t=no |
| 7282 | |
| 7283 | fi |
| 7284 | rm -f conftest* |
| 7285 | fi |
| 7286 | |
| 7287 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
| 7288 | cat >> confdefs.h <<\EOF |
| 7289 | #define HAVE_PRRUN_T 1 |
| 7290 | EOF |
| 7291 | |
| 7292 | fi |
| 7293 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6 |
| 7294 | |
| 7295 | echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6 |
| 7296 | echo "configure:7297: checking for gregset_t in sys/procfs.h" >&5 |
| 7297 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then |
| 7298 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7299 | else |
| 7300 | cat > conftest.$ac_ext <<EOF |
| 7301 | #line 7302 "configure" |
| 7302 | #include "confdefs.h" |
| 7303 | |
| 7304 | #define _SYSCALL32 |
| 7305 | #include <sys/procfs.h> |
| 7306 | int main() { |
| 7307 | gregset_t avar |
| 7308 | ; return 0; } |
| 7309 | EOF |
| 7310 | if { (eval echo configure:7311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7311 | rm -rf conftest* |
| 7312 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
| 7313 | else |
| 7314 | echo "configure: failed program was:" >&5 |
| 7315 | cat conftest.$ac_ext >&5 |
| 7316 | rm -rf conftest* |
| 7317 | bfd_cv_have_sys_procfs_type_gregset_t=no |
| 7318 | |
| 7319 | fi |
| 7320 | rm -f conftest* |
| 7321 | fi |
| 7322 | |
| 7323 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
| 7324 | cat >> confdefs.h <<\EOF |
| 7325 | #define HAVE_GREGSET_T 1 |
| 7326 | EOF |
| 7327 | |
| 7328 | fi |
| 7329 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6 |
| 7330 | |
| 7331 | echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6 |
| 7332 | echo "configure:7333: checking for fpregset_t in sys/procfs.h" >&5 |
| 7333 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then |
| 7334 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7335 | else |
| 7336 | cat > conftest.$ac_ext <<EOF |
| 7337 | #line 7338 "configure" |
| 7338 | #include "confdefs.h" |
| 7339 | |
| 7340 | #define _SYSCALL32 |
| 7341 | #include <sys/procfs.h> |
| 7342 | int main() { |
| 7343 | fpregset_t avar |
| 7344 | ; return 0; } |
| 7345 | EOF |
| 7346 | if { (eval echo configure:7347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7347 | rm -rf conftest* |
| 7348 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
| 7349 | else |
| 7350 | echo "configure: failed program was:" >&5 |
| 7351 | cat conftest.$ac_ext >&5 |
| 7352 | rm -rf conftest* |
| 7353 | bfd_cv_have_sys_procfs_type_fpregset_t=no |
| 7354 | |
| 7355 | fi |
| 7356 | rm -f conftest* |
| 7357 | fi |
| 7358 | |
| 7359 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
| 7360 | cat >> confdefs.h <<\EOF |
| 7361 | #define HAVE_FPREGSET_T 1 |
| 7362 | EOF |
| 7363 | |
| 7364 | fi |
| 7365 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6 |
| 7366 | |
| 7367 | echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6 |
| 7368 | echo "configure:7369: checking for prgregset_t in sys/procfs.h" >&5 |
| 7369 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then |
| 7370 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7371 | else |
| 7372 | cat > conftest.$ac_ext <<EOF |
| 7373 | #line 7374 "configure" |
| 7374 | #include "confdefs.h" |
| 7375 | |
| 7376 | #define _SYSCALL32 |
| 7377 | #include <sys/procfs.h> |
| 7378 | int main() { |
| 7379 | prgregset_t avar |
| 7380 | ; return 0; } |
| 7381 | EOF |
| 7382 | if { (eval echo configure:7383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7383 | rm -rf conftest* |
| 7384 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
| 7385 | else |
| 7386 | echo "configure: failed program was:" >&5 |
| 7387 | cat conftest.$ac_ext >&5 |
| 7388 | rm -rf conftest* |
| 7389 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
| 7390 | |
| 7391 | fi |
| 7392 | rm -f conftest* |
| 7393 | fi |
| 7394 | |
| 7395 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
| 7396 | cat >> confdefs.h <<\EOF |
| 7397 | #define HAVE_PRGREGSET_T 1 |
| 7398 | EOF |
| 7399 | |
| 7400 | fi |
| 7401 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6 |
| 7402 | |
| 7403 | echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6 |
| 7404 | echo "configure:7405: checking for prfpregset_t in sys/procfs.h" >&5 |
| 7405 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then |
| 7406 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7407 | else |
| 7408 | cat > conftest.$ac_ext <<EOF |
| 7409 | #line 7410 "configure" |
| 7410 | #include "confdefs.h" |
| 7411 | |
| 7412 | #define _SYSCALL32 |
| 7413 | #include <sys/procfs.h> |
| 7414 | int main() { |
| 7415 | prfpregset_t avar |
| 7416 | ; return 0; } |
| 7417 | EOF |
| 7418 | if { (eval echo configure:7419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7419 | rm -rf conftest* |
| 7420 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
| 7421 | else |
| 7422 | echo "configure: failed program was:" >&5 |
| 7423 | cat conftest.$ac_ext >&5 |
| 7424 | rm -rf conftest* |
| 7425 | bfd_cv_have_sys_procfs_type_prfpregset_t=no |
| 7426 | |
| 7427 | fi |
| 7428 | rm -f conftest* |
| 7429 | fi |
| 7430 | |
| 7431 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
| 7432 | cat >> confdefs.h <<\EOF |
| 7433 | #define HAVE_PRFPREGSET_T 1 |
| 7434 | EOF |
| 7435 | |
| 7436 | fi |
| 7437 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6 |
| 7438 | |
| 7439 | echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6 |
| 7440 | echo "configure:7441: checking for prgregset32_t in sys/procfs.h" >&5 |
| 7441 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then |
| 7442 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7443 | else |
| 7444 | cat > conftest.$ac_ext <<EOF |
| 7445 | #line 7446 "configure" |
| 7446 | #include "confdefs.h" |
| 7447 | |
| 7448 | #define _SYSCALL32 |
| 7449 | #include <sys/procfs.h> |
| 7450 | int main() { |
| 7451 | prgregset32_t avar |
| 7452 | ; return 0; } |
| 7453 | EOF |
| 7454 | if { (eval echo configure:7455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7455 | rm -rf conftest* |
| 7456 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
| 7457 | else |
| 7458 | echo "configure: failed program was:" >&5 |
| 7459 | cat conftest.$ac_ext >&5 |
| 7460 | rm -rf conftest* |
| 7461 | bfd_cv_have_sys_procfs_type_prgregset32_t=no |
| 7462 | |
| 7463 | fi |
| 7464 | rm -f conftest* |
| 7465 | fi |
| 7466 | |
| 7467 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
| 7468 | cat >> confdefs.h <<\EOF |
| 7469 | #define HAVE_PRGREGSET32_T 1 |
| 7470 | EOF |
| 7471 | |
| 7472 | fi |
| 7473 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6 |
| 7474 | |
| 7475 | echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6 |
| 7476 | echo "configure:7477: checking for prfpregset32_t in sys/procfs.h" >&5 |
| 7477 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then |
| 7478 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7479 | else |
| 7480 | cat > conftest.$ac_ext <<EOF |
| 7481 | #line 7482 "configure" |
| 7482 | #include "confdefs.h" |
| 7483 | |
| 7484 | #define _SYSCALL32 |
| 7485 | #include <sys/procfs.h> |
| 7486 | int main() { |
| 7487 | prfpregset32_t avar |
| 7488 | ; return 0; } |
| 7489 | EOF |
| 7490 | if { (eval echo configure:7491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7491 | rm -rf conftest* |
| 7492 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
| 7493 | else |
| 7494 | echo "configure: failed program was:" >&5 |
| 7495 | cat conftest.$ac_ext >&5 |
| 7496 | rm -rf conftest* |
| 7497 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no |
| 7498 | |
| 7499 | fi |
| 7500 | rm -f conftest* |
| 7501 | fi |
| 7502 | |
| 7503 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
| 7504 | cat >> confdefs.h <<\EOF |
| 7505 | #define HAVE_PRFPREGSET32_T 1 |
| 7506 | EOF |
| 7507 | |
| 7508 | fi |
| 7509 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6 |
| 7510 | |
| 7511 | echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6 |
| 7512 | echo "configure:7513: checking for lwpid_t in sys/procfs.h" >&5 |
| 7513 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then |
| 7514 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7515 | else |
| 7516 | cat > conftest.$ac_ext <<EOF |
| 7517 | #line 7518 "configure" |
| 7518 | #include "confdefs.h" |
| 7519 | |
| 7520 | #define _SYSCALL32 |
| 7521 | #include <sys/procfs.h> |
| 7522 | int main() { |
| 7523 | lwpid_t avar |
| 7524 | ; return 0; } |
| 7525 | EOF |
| 7526 | if { (eval echo configure:7527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7527 | rm -rf conftest* |
| 7528 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
| 7529 | else |
| 7530 | echo "configure: failed program was:" >&5 |
| 7531 | cat conftest.$ac_ext >&5 |
| 7532 | rm -rf conftest* |
| 7533 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
| 7534 | |
| 7535 | fi |
| 7536 | rm -f conftest* |
| 7537 | fi |
| 7538 | |
| 7539 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
| 7540 | cat >> confdefs.h <<\EOF |
| 7541 | #define HAVE_LWPID_T 1 |
| 7542 | EOF |
| 7543 | |
| 7544 | fi |
| 7545 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6 |
| 7546 | |
| 7547 | echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6 |
| 7548 | echo "configure:7549: checking for psaddr_t in sys/procfs.h" >&5 |
| 7549 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then |
| 7550 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7551 | else |
| 7552 | cat > conftest.$ac_ext <<EOF |
| 7553 | #line 7554 "configure" |
| 7554 | #include "confdefs.h" |
| 7555 | |
| 7556 | #define _SYSCALL32 |
| 7557 | #include <sys/procfs.h> |
| 7558 | int main() { |
| 7559 | psaddr_t avar |
| 7560 | ; return 0; } |
| 7561 | EOF |
| 7562 | if { (eval echo configure:7563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7563 | rm -rf conftest* |
| 7564 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
| 7565 | else |
| 7566 | echo "configure: failed program was:" >&5 |
| 7567 | cat conftest.$ac_ext >&5 |
| 7568 | rm -rf conftest* |
| 7569 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
| 7570 | |
| 7571 | fi |
| 7572 | rm -f conftest* |
| 7573 | fi |
| 7574 | |
| 7575 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
| 7576 | cat >> confdefs.h <<\EOF |
| 7577 | #define HAVE_PSADDR_T 1 |
| 7578 | EOF |
| 7579 | |
| 7580 | fi |
| 7581 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6 |
| 7582 | |
| 7583 | echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6 |
| 7584 | echo "configure:7585: checking for prsysent_t in sys/procfs.h" >&5 |
| 7585 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then |
| 7586 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7587 | else |
| 7588 | cat > conftest.$ac_ext <<EOF |
| 7589 | #line 7590 "configure" |
| 7590 | #include "confdefs.h" |
| 7591 | |
| 7592 | #define _SYSCALL32 |
| 7593 | #include <sys/procfs.h> |
| 7594 | int main() { |
| 7595 | prsysent_t avar |
| 7596 | ; return 0; } |
| 7597 | EOF |
| 7598 | if { (eval echo configure:7599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7599 | rm -rf conftest* |
| 7600 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
| 7601 | else |
| 7602 | echo "configure: failed program was:" >&5 |
| 7603 | cat conftest.$ac_ext >&5 |
| 7604 | rm -rf conftest* |
| 7605 | bfd_cv_have_sys_procfs_type_prsysent_t=no |
| 7606 | |
| 7607 | fi |
| 7608 | rm -f conftest* |
| 7609 | fi |
| 7610 | |
| 7611 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
| 7612 | cat >> confdefs.h <<\EOF |
| 7613 | #define HAVE_PRSYSENT_T 1 |
| 7614 | EOF |
| 7615 | |
| 7616 | fi |
| 7617 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6 |
| 7618 | |
| 7619 | echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6 |
| 7620 | echo "configure:7621: checking for pr_sigset_t in sys/procfs.h" >&5 |
| 7621 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then |
| 7622 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7623 | else |
| 7624 | cat > conftest.$ac_ext <<EOF |
| 7625 | #line 7626 "configure" |
| 7626 | #include "confdefs.h" |
| 7627 | |
| 7628 | #define _SYSCALL32 |
| 7629 | #include <sys/procfs.h> |
| 7630 | int main() { |
| 7631 | pr_sigset_t avar |
| 7632 | ; return 0; } |
| 7633 | EOF |
| 7634 | if { (eval echo configure:7635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7635 | rm -rf conftest* |
| 7636 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
| 7637 | else |
| 7638 | echo "configure: failed program was:" >&5 |
| 7639 | cat conftest.$ac_ext >&5 |
| 7640 | rm -rf conftest* |
| 7641 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no |
| 7642 | |
| 7643 | fi |
| 7644 | rm -f conftest* |
| 7645 | fi |
| 7646 | |
| 7647 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
| 7648 | cat >> confdefs.h <<\EOF |
| 7649 | #define HAVE_PR_SIGSET_T 1 |
| 7650 | EOF |
| 7651 | |
| 7652 | fi |
| 7653 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6 |
| 7654 | |
| 7655 | echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6 |
| 7656 | echo "configure:7657: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
| 7657 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then |
| 7658 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7659 | else |
| 7660 | cat > conftest.$ac_ext <<EOF |
| 7661 | #line 7662 "configure" |
| 7662 | #include "confdefs.h" |
| 7663 | |
| 7664 | #define _SYSCALL32 |
| 7665 | #include <sys/procfs.h> |
| 7666 | int main() { |
| 7667 | pr_sigaction64_t avar |
| 7668 | ; return 0; } |
| 7669 | EOF |
| 7670 | if { (eval echo configure:7671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7671 | rm -rf conftest* |
| 7672 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
| 7673 | else |
| 7674 | echo "configure: failed program was:" >&5 |
| 7675 | cat conftest.$ac_ext >&5 |
| 7676 | rm -rf conftest* |
| 7677 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no |
| 7678 | |
| 7679 | fi |
| 7680 | rm -f conftest* |
| 7681 | fi |
| 7682 | |
| 7683 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
| 7684 | cat >> confdefs.h <<\EOF |
| 7685 | #define HAVE_PR_SIGACTION64_T 1 |
| 7686 | EOF |
| 7687 | |
| 7688 | fi |
| 7689 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6 |
| 7690 | |
| 7691 | echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6 |
| 7692 | echo "configure:7693: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
| 7693 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then |
| 7694 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7695 | else |
| 7696 | cat > conftest.$ac_ext <<EOF |
| 7697 | #line 7698 "configure" |
| 7698 | #include "confdefs.h" |
| 7699 | |
| 7700 | #define _SYSCALL32 |
| 7701 | #include <sys/procfs.h> |
| 7702 | int main() { |
| 7703 | pr_siginfo64_t avar |
| 7704 | ; return 0; } |
| 7705 | EOF |
| 7706 | if { (eval echo configure:7707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7707 | rm -rf conftest* |
| 7708 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
| 7709 | else |
| 7710 | echo "configure: failed program was:" >&5 |
| 7711 | cat conftest.$ac_ext >&5 |
| 7712 | rm -rf conftest* |
| 7713 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no |
| 7714 | |
| 7715 | fi |
| 7716 | rm -f conftest* |
| 7717 | fi |
| 7718 | |
| 7719 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
| 7720 | cat >> confdefs.h <<\EOF |
| 7721 | #define HAVE_PR_SIGINFO64_T 1 |
| 7722 | EOF |
| 7723 | |
| 7724 | fi |
| 7725 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6 |
| 7726 | |
| 7727 | |
| 7728 | |
| 7729 | |
| 7730 | |
| 7731 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
| 7732 | echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6 |
| 7733 | echo "configure:7734: checking whether prfpregset_t type is broken" >&5 |
| 7734 | if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then |
| 7735 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7736 | else |
| 7737 | if test "$cross_compiling" = yes; then |
| 7738 | gdb_cv_prfpregset_t_broken=yes |
| 7739 | else |
| 7740 | cat > conftest.$ac_ext <<EOF |
| 7741 | #line 7742 "configure" |
| 7742 | #include "confdefs.h" |
| 7743 | #include <sys/procfs.h> |
| 7744 | int main () |
| 7745 | { |
| 7746 | if (sizeof (prfpregset_t) == sizeof (void *)) |
| 7747 | return 1; |
| 7748 | return 0; |
| 7749 | } |
| 7750 | EOF |
| 7751 | if { (eval echo configure:7752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 7752 | then |
| 7753 | gdb_cv_prfpregset_t_broken=no |
| 7754 | else |
| 7755 | echo "configure: failed program was:" >&5 |
| 7756 | cat conftest.$ac_ext >&5 |
| 7757 | rm -fr conftest* |
| 7758 | gdb_cv_prfpregset_t_broken=yes |
| 7759 | fi |
| 7760 | rm -fr conftest* |
| 7761 | fi |
| 7762 | |
| 7763 | fi |
| 7764 | |
| 7765 | echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6 |
| 7766 | if test $gdb_cv_prfpregset_t_broken = yes; then |
| 7767 | cat >> confdefs.h <<\EOF |
| 7768 | #define PRFPREGSET_T_BROKEN 1 |
| 7769 | EOF |
| 7770 | |
| 7771 | fi |
| 7772 | fi |
| 7773 | |
| 7774 | |
| 7775 | echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6 |
| 7776 | echo "configure:7777: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 |
| 7777 | if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then |
| 7778 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7779 | else |
| 7780 | cat > conftest.$ac_ext <<EOF |
| 7781 | #line 7782 "configure" |
| 7782 | #include "confdefs.h" |
| 7783 | #include <unistd.h> |
| 7784 | #include <sys/types.h> |
| 7785 | #include <sys/procfs.h> |
| 7786 | |
| 7787 | int main() { |
| 7788 | |
| 7789 | int dummy;; |
| 7790 | dummy = ioctl(0, PIOCSET, &dummy); |
| 7791 | |
| 7792 | ; return 0; } |
| 7793 | EOF |
| 7794 | if { (eval echo configure:7795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7795 | rm -rf conftest* |
| 7796 | gdb_cv_have_procfs_piocset=yes |
| 7797 | else |
| 7798 | echo "configure: failed program was:" >&5 |
| 7799 | cat conftest.$ac_ext >&5 |
| 7800 | rm -rf conftest* |
| 7801 | gdb_cv_have_procfs_piocset=no |
| 7802 | fi |
| 7803 | rm -f conftest* |
| 7804 | fi |
| 7805 | |
| 7806 | echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6 |
| 7807 | if test $gdb_cv_have_procfs_piocset = yes; then |
| 7808 | cat >> confdefs.h <<\EOF |
| 7809 | #define HAVE_PROCFS_PIOCSET 1 |
| 7810 | EOF |
| 7811 | |
| 7812 | fi |
| 7813 | fi |
| 7814 | |
| 7815 | if test ${host} = ${target} ; then |
| 7816 | |
| 7817 | echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6 |
| 7818 | echo "configure:7819: checking for member l_addr in struct link_map" >&5 |
| 7819 | if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then |
| 7820 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7821 | else |
| 7822 | cat > conftest.$ac_ext <<EOF |
| 7823 | #line 7824 "configure" |
| 7824 | #include "confdefs.h" |
| 7825 | #include <link.h> |
| 7826 | int main() { |
| 7827 | struct link_map lm; (void) lm.l_addr; |
| 7828 | ; return 0; } |
| 7829 | EOF |
| 7830 | if { (eval echo configure:7831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7831 | rm -rf conftest* |
| 7832 | gdb_cv_have_struct_link_map_with_l_members=yes |
| 7833 | else |
| 7834 | echo "configure: failed program was:" >&5 |
| 7835 | cat conftest.$ac_ext >&5 |
| 7836 | rm -rf conftest* |
| 7837 | gdb_cv_have_struct_link_map_with_l_members=no |
| 7838 | fi |
| 7839 | rm -f conftest* |
| 7840 | fi |
| 7841 | |
| 7842 | echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6 |
| 7843 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
| 7844 | cat >> confdefs.h <<\EOF |
| 7845 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
| 7846 | EOF |
| 7847 | |
| 7848 | fi |
| 7849 | |
| 7850 | |
| 7851 | echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6 |
| 7852 | echo "configure:7853: checking for member lm_addr in struct link_map" >&5 |
| 7853 | if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then |
| 7854 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7855 | else |
| 7856 | cat > conftest.$ac_ext <<EOF |
| 7857 | #line 7858 "configure" |
| 7858 | #include "confdefs.h" |
| 7859 | #include <sys/types.h> |
| 7860 | #include <link.h> |
| 7861 | int main() { |
| 7862 | struct link_map lm; (void) lm.lm_addr; |
| 7863 | ; return 0; } |
| 7864 | EOF |
| 7865 | if { (eval echo configure:7866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7866 | rm -rf conftest* |
| 7867 | gdb_cv_have_struct_link_map_with_lm_members=yes |
| 7868 | else |
| 7869 | echo "configure: failed program was:" >&5 |
| 7870 | cat conftest.$ac_ext >&5 |
| 7871 | rm -rf conftest* |
| 7872 | gdb_cv_have_struct_link_map_with_lm_members=no |
| 7873 | fi |
| 7874 | rm -f conftest* |
| 7875 | fi |
| 7876 | |
| 7877 | echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6 |
| 7878 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
| 7879 | cat >> confdefs.h <<\EOF |
| 7880 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
| 7881 | EOF |
| 7882 | |
| 7883 | fi |
| 7884 | |
| 7885 | |
| 7886 | echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6 |
| 7887 | echo "configure:7888: checking for member som_addr in struct so_map" >&5 |
| 7888 | if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then |
| 7889 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7890 | else |
| 7891 | cat > conftest.$ac_ext <<EOF |
| 7892 | #line 7893 "configure" |
| 7893 | #include "confdefs.h" |
| 7894 | #include <sys/types.h> |
| 7895 | #ifdef HAVE_NLIST_H |
| 7896 | #include <nlist.h> |
| 7897 | #endif |
| 7898 | #include <link.h> |
| 7899 | int main() { |
| 7900 | struct so_map lm; (void) lm.som_addr; |
| 7901 | ; return 0; } |
| 7902 | EOF |
| 7903 | if { (eval echo configure:7904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7904 | rm -rf conftest* |
| 7905 | gdb_cv_have_struct_so_map_with_som_members=yes |
| 7906 | else |
| 7907 | echo "configure: failed program was:" >&5 |
| 7908 | cat conftest.$ac_ext >&5 |
| 7909 | rm -rf conftest* |
| 7910 | gdb_cv_have_struct_so_map_with_som_members=no |
| 7911 | fi |
| 7912 | rm -f conftest* |
| 7913 | fi |
| 7914 | |
| 7915 | echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6 |
| 7916 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
| 7917 | cat >> confdefs.h <<\EOF |
| 7918 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
| 7919 | EOF |
| 7920 | |
| 7921 | fi |
| 7922 | |
| 7923 | |
| 7924 | echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6 |
| 7925 | echo "configure:7926: checking for struct link_map32 in sys/link.h" >&5 |
| 7926 | if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then |
| 7927 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7928 | else |
| 7929 | cat > conftest.$ac_ext <<EOF |
| 7930 | #line 7931 "configure" |
| 7931 | #include "confdefs.h" |
| 7932 | #define _SYSCALL32 |
| 7933 | #include <sys/link.h> |
| 7934 | int main() { |
| 7935 | struct link_map32 l; |
| 7936 | ; return 0; } |
| 7937 | EOF |
| 7938 | if { (eval echo configure:7939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7939 | rm -rf conftest* |
| 7940 | gdb_cv_have_struct_link_map32=yes |
| 7941 | else |
| 7942 | echo "configure: failed program was:" >&5 |
| 7943 | cat conftest.$ac_ext >&5 |
| 7944 | rm -rf conftest* |
| 7945 | gdb_cv_have_struct_link_map32=no |
| 7946 | fi |
| 7947 | rm -f conftest* |
| 7948 | fi |
| 7949 | |
| 7950 | echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6 |
| 7951 | if test $gdb_cv_have_struct_link_map32 = yes; then |
| 7952 | cat >> confdefs.h <<\EOF |
| 7953 | #define HAVE_STRUCT_LINK_MAP32 1 |
| 7954 | EOF |
| 7955 | |
| 7956 | cat >> confdefs.h <<\EOF |
| 7957 | #define _SYSCALL32 1 |
| 7958 | EOF |
| 7959 | |
| 7960 | fi |
| 7961 | fi |
| 7962 | |
| 7963 | |
| 7964 | echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6 |
| 7965 | echo "configure:7966: checking for long long support in compiler" >&5 |
| 7966 | if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then |
| 7967 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7968 | else |
| 7969 | cat > conftest.$ac_ext <<EOF |
| 7970 | #line 7971 "configure" |
| 7971 | #include "confdefs.h" |
| 7972 | |
| 7973 | int main() { |
| 7974 | |
| 7975 | extern long long foo; |
| 7976 | switch (foo & 2) { case 0: return 1; } |
| 7977 | |
| 7978 | ; return 0; } |
| 7979 | EOF |
| 7980 | if { (eval echo configure:7981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7981 | rm -rf conftest* |
| 7982 | gdb_cv_c_long_long=yes |
| 7983 | else |
| 7984 | echo "configure: failed program was:" >&5 |
| 7985 | cat conftest.$ac_ext >&5 |
| 7986 | rm -rf conftest* |
| 7987 | gdb_cv_c_long_long=no |
| 7988 | fi |
| 7989 | rm -f conftest* |
| 7990 | fi |
| 7991 | |
| 7992 | echo "$ac_t""$gdb_cv_c_long_long" 1>&6 |
| 7993 | if test $gdb_cv_c_long_long = yes; then |
| 7994 | cat >> confdefs.h <<\EOF |
| 7995 | #define CC_HAS_LONG_LONG 1 |
| 7996 | EOF |
| 7997 | |
| 7998 | fi |
| 7999 | |
| 8000 | |
| 8001 | echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6 |
| 8002 | echo "configure:8003: checking for long long support in printf" >&5 |
| 8003 | if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then |
| 8004 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8005 | else |
| 8006 | if test "$cross_compiling" = yes; then |
| 8007 | gdb_cv_printf_has_long_long=no |
| 8008 | else |
| 8009 | cat > conftest.$ac_ext <<EOF |
| 8010 | #line 8011 "configure" |
| 8011 | #include "confdefs.h" |
| 8012 | |
| 8013 | int main () { |
| 8014 | char buf[32]; |
| 8015 | long long l = 0; |
| 8016 | l = (l << 16) + 0x0123; |
| 8017 | l = (l << 16) + 0x4567; |
| 8018 | l = (l << 16) + 0x89ab; |
| 8019 | l = (l << 16) + 0xcdef; |
| 8020 | sprintf (buf, "0x%016llx", l); |
| 8021 | return (strcmp ("0x0123456789abcdef", buf)); |
| 8022 | } |
| 8023 | EOF |
| 8024 | if { (eval echo configure:8025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 8025 | then |
| 8026 | gdb_cv_printf_has_long_long=yes |
| 8027 | else |
| 8028 | echo "configure: failed program was:" >&5 |
| 8029 | cat conftest.$ac_ext >&5 |
| 8030 | rm -fr conftest* |
| 8031 | gdb_cv_printf_has_long_long=no |
| 8032 | fi |
| 8033 | rm -fr conftest* |
| 8034 | fi |
| 8035 | |
| 8036 | fi |
| 8037 | |
| 8038 | if test $gdb_cv_printf_has_long_long = yes; then |
| 8039 | cat >> confdefs.h <<\EOF |
| 8040 | #define PRINTF_HAS_LONG_LONG 1 |
| 8041 | EOF |
| 8042 | |
| 8043 | fi |
| 8044 | echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6 |
| 8045 | |
| 8046 | |
| 8047 | echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6 |
| 8048 | echo "configure:8049: checking for long double support in compiler" >&5 |
| 8049 | if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then |
| 8050 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8051 | else |
| 8052 | cat > conftest.$ac_ext <<EOF |
| 8053 | #line 8054 "configure" |
| 8054 | #include "confdefs.h" |
| 8055 | |
| 8056 | int main() { |
| 8057 | long double foo; |
| 8058 | ; return 0; } |
| 8059 | EOF |
| 8060 | if { (eval echo configure:8061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 8061 | rm -rf conftest* |
| 8062 | ac_cv_c_long_double=yes |
| 8063 | else |
| 8064 | echo "configure: failed program was:" >&5 |
| 8065 | cat conftest.$ac_ext >&5 |
| 8066 | rm -rf conftest* |
| 8067 | ac_cv_c_long_double=no |
| 8068 | fi |
| 8069 | rm -f conftest* |
| 8070 | fi |
| 8071 | |
| 8072 | echo "$ac_t""$ac_cv_c_long_double" 1>&6 |
| 8073 | if test $ac_cv_c_long_double = yes; then |
| 8074 | cat >> confdefs.h <<\EOF |
| 8075 | #define HAVE_LONG_DOUBLE 1 |
| 8076 | EOF |
| 8077 | |
| 8078 | fi |
| 8079 | |
| 8080 | |
| 8081 | echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6 |
| 8082 | echo "configure:8083: checking for long double support in printf" >&5 |
| 8083 | if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then |
| 8084 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8085 | else |
| 8086 | if test "$cross_compiling" = yes; then |
| 8087 | gdb_cv_printf_has_long_double=no |
| 8088 | else |
| 8089 | cat > conftest.$ac_ext <<EOF |
| 8090 | #line 8091 "configure" |
| 8091 | #include "confdefs.h" |
| 8092 | |
| 8093 | int main () { |
| 8094 | char buf[16]; |
| 8095 | long double f = 3.141592653; |
| 8096 | sprintf (buf, "%Lg", f); |
| 8097 | return (strncmp ("3.14159", buf, 7)); |
| 8098 | } |
| 8099 | EOF |
| 8100 | if { (eval echo configure:8101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 8101 | then |
| 8102 | gdb_cv_printf_has_long_double=yes |
| 8103 | else |
| 8104 | echo "configure: failed program was:" >&5 |
| 8105 | cat conftest.$ac_ext >&5 |
| 8106 | rm -fr conftest* |
| 8107 | gdb_cv_printf_has_long_double=no |
| 8108 | fi |
| 8109 | rm -fr conftest* |
| 8110 | fi |
| 8111 | |
| 8112 | fi |
| 8113 | |
| 8114 | if test $gdb_cv_printf_has_long_double = yes; then |
| 8115 | cat >> confdefs.h <<\EOF |
| 8116 | #define PRINTF_HAS_LONG_DOUBLE 1 |
| 8117 | EOF |
| 8118 | |
| 8119 | fi |
| 8120 | echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6 |
| 8121 | |
| 8122 | |
| 8123 | echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6 |
| 8124 | echo "configure:8125: checking for long double support in scanf" >&5 |
| 8125 | if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then |
| 8126 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8127 | else |
| 8128 | if test "$cross_compiling" = yes; then |
| 8129 | gdb_cv_scanf_has_long_double=no |
| 8130 | else |
| 8131 | cat > conftest.$ac_ext <<EOF |
| 8132 | #line 8133 "configure" |
| 8133 | #include "confdefs.h" |
| 8134 | |
| 8135 | int main () { |
| 8136 | char *buf = "3.141592653"; |
| 8137 | long double f = 0; |
| 8138 | sscanf (buf, "%Lg", &f); |
| 8139 | return !(f > 3.14159 && f < 3.14160); |
| 8140 | } |
| 8141 | EOF |
| 8142 | if { (eval echo configure:8143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 8143 | then |
| 8144 | gdb_cv_scanf_has_long_double=yes |
| 8145 | else |
| 8146 | echo "configure: failed program was:" >&5 |
| 8147 | cat conftest.$ac_ext >&5 |
| 8148 | rm -fr conftest* |
| 8149 | gdb_cv_scanf_has_long_double=no |
| 8150 | fi |
| 8151 | rm -fr conftest* |
| 8152 | fi |
| 8153 | |
| 8154 | fi |
| 8155 | |
| 8156 | if test $gdb_cv_scanf_has_long_double = yes; then |
| 8157 | cat >> confdefs.h <<\EOF |
| 8158 | #define SCANF_HAS_LONG_DOUBLE 1 |
| 8159 | EOF |
| 8160 | |
| 8161 | fi |
| 8162 | echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6 |
| 8163 | |
| 8164 | case ${host_os} in |
| 8165 | aix*) |
| 8166 | echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6 |
| 8167 | echo "configure:8168: checking for -bbigtoc option" >&5 |
| 8168 | if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then |
| 8169 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8170 | else |
| 8171 | |
| 8172 | SAVE_LDFLAGS=$LDFLAGS |
| 8173 | |
| 8174 | case $GCC in |
| 8175 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; |
| 8176 | *) gdb_cv_bigtoc=-bbigtoc ;; |
| 8177 | esac |
| 8178 | |
| 8179 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc |
| 8180 | cat > conftest.$ac_ext <<EOF |
| 8181 | #line 8182 "configure" |
| 8182 | #include "confdefs.h" |
| 8183 | |
| 8184 | int main() { |
| 8185 | int i; |
| 8186 | ; return 0; } |
| 8187 | EOF |
| 8188 | if { (eval echo configure:8189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 8189 | : |
| 8190 | else |
| 8191 | echo "configure: failed program was:" >&5 |
| 8192 | cat conftest.$ac_ext >&5 |
| 8193 | rm -rf conftest* |
| 8194 | gdb_cv_bigtoc= |
| 8195 | fi |
| 8196 | rm -f conftest* |
| 8197 | |
| 8198 | fi |
| 8199 | |
| 8200 | echo "$ac_t""$gdb_cv_bigtoc" 1>&6 |
| 8201 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
| 8202 | ;; |
| 8203 | esac |
| 8204 | |
| 8205 | |
| 8206 | |
| 8207 | if test ${build} = ${host} -a ${host} = ${target} ; then |
| 8208 | case ${host_os} in |
| 8209 | hpux*) |
| 8210 | echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6 |
| 8211 | echo "configure:8212: checking for HPUX/OSF thread support" >&5 |
| 8212 | if test -f /usr/include/dce/cma_config.h ; then |
| 8213 | if test "$GCC" = "yes" ; then |
| 8214 | echo "$ac_t""yes" 1>&6 |
| 8215 | cat >> confdefs.h <<\EOF |
| 8216 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
| 8217 | EOF |
| 8218 | |
| 8219 | CONFIG_LIB_OBS="${CONFIG_LIB_OBS} hpux-thread.o" |
| 8220 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
| 8221 | else |
| 8222 | echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6 |
| 8223 | fi |
| 8224 | else |
| 8225 | echo "$ac_t""no" 1>&6 |
| 8226 | fi |
| 8227 | ;; |
| 8228 | solaris*) |
| 8229 | # See if thread_db library is around for Solaris thread debugging. |
| 8230 | # Note that we must explicitly test for version 1 of the library |
| 8231 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have |
| 8232 | # the same API. |
| 8233 | echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6 |
| 8234 | echo "configure:8235: checking for Solaris thread debugging library" >&5 |
| 8235 | if test -f /usr/lib/libthread_db.so.1 ; then |
| 8236 | echo "$ac_t""yes" 1>&6 |
| 8237 | cat >> confdefs.h <<\EOF |
| 8238 | #define HAVE_THREAD_DB_LIB 1 |
| 8239 | EOF |
| 8240 | |
| 8241 | CONFIG_LIB_OBS="${CONFIG_LIB_OBS} sol-thread.o" |
| 8242 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
| 8243 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
| 8244 | echo "configure:8245: checking for dlopen in -ldl" >&5 |
| 8245 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
| 8246 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 8247 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8248 | else |
| 8249 | ac_save_LIBS="$LIBS" |
| 8250 | LIBS="-ldl $LIBS" |
| 8251 | cat > conftest.$ac_ext <<EOF |
| 8252 | #line 8253 "configure" |
| 8253 | #include "confdefs.h" |
| 8254 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8255 | /* We use char because int might match the return type of a gcc2 |
| 8256 | builtin and then its argument prototype would still apply. */ |
| 8257 | char dlopen(); |
| 8258 | |
| 8259 | int main() { |
| 8260 | dlopen() |
| 8261 | ; return 0; } |
| 8262 | EOF |
| 8263 | if { (eval echo configure:8264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 8264 | rm -rf conftest* |
| 8265 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 8266 | else |
| 8267 | echo "configure: failed program was:" >&5 |
| 8268 | cat conftest.$ac_ext >&5 |
| 8269 | rm -rf conftest* |
| 8270 | eval "ac_cv_lib_$ac_lib_var=no" |
| 8271 | fi |
| 8272 | rm -f conftest* |
| 8273 | LIBS="$ac_save_LIBS" |
| 8274 | |
| 8275 | fi |
| 8276 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 8277 | echo "$ac_t""yes" 1>&6 |
| 8278 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 8279 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 8280 | cat >> confdefs.h <<EOF |
| 8281 | #define $ac_tr_lib 1 |
| 8282 | EOF |
| 8283 | |
| 8284 | LIBS="-ldl $LIBS" |
| 8285 | |
| 8286 | else |
| 8287 | echo "$ac_t""no" 1>&6 |
| 8288 | fi |
| 8289 | |
| 8290 | if test "$GCC" = "yes" ; then |
| 8291 | # The GNU linker requires the -export-dynamic option to make |
| 8292 | # all symbols visible in the dynamic symbol table. |
| 8293 | hold_ldflags=$LDFLAGS |
| 8294 | echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6 |
| 8295 | echo "configure:8296: checking for the ld -export-dynamic flag" >&5 |
| 8296 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
| 8297 | cat > conftest.$ac_ext <<EOF |
| 8298 | #line 8299 "configure" |
| 8299 | #include "confdefs.h" |
| 8300 | |
| 8301 | int main() { |
| 8302 | int i; |
| 8303 | ; return 0; } |
| 8304 | EOF |
| 8305 | if { (eval echo configure:8306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 8306 | rm -rf conftest* |
| 8307 | found=yes |
| 8308 | else |
| 8309 | echo "configure: failed program was:" >&5 |
| 8310 | cat conftest.$ac_ext >&5 |
| 8311 | rm -rf conftest* |
| 8312 | found=no |
| 8313 | fi |
| 8314 | rm -f conftest* |
| 8315 | LDFLAGS=$hold_ldflags |
| 8316 | echo "$ac_t""$found" 1>&6 |
| 8317 | if test $found = yes; then |
| 8318 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" |
| 8319 | fi |
| 8320 | fi |
| 8321 | # Sun randomly tweaked the prototypes in <proc_service.h> |
| 8322 | # at one point. |
| 8323 | echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6 |
| 8324 | echo "configure:8325: checking if <proc_service.h> is old" >&5 |
| 8325 | if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then |
| 8326 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8327 | else |
| 8328 | |
| 8329 | cat > conftest.$ac_ext <<EOF |
| 8330 | #line 8331 "configure" |
| 8331 | #include "confdefs.h" |
| 8332 | |
| 8333 | #include <proc_service.h> |
| 8334 | ps_err_e ps_pdwrite |
| 8335 | (struct ps_prochandle*, psaddr_t, const void*, size_t); |
| 8336 | |
| 8337 | int main() { |
| 8338 | |
| 8339 | ; return 0; } |
| 8340 | EOF |
| 8341 | if { (eval echo configure:8342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 8342 | rm -rf conftest* |
| 8343 | gdb_cv_proc_service_is_old=no |
| 8344 | else |
| 8345 | echo "configure: failed program was:" >&5 |
| 8346 | cat conftest.$ac_ext >&5 |
| 8347 | rm -rf conftest* |
| 8348 | gdb_cv_proc_service_is_old=yes |
| 8349 | fi |
| 8350 | rm -f conftest* |
| 8351 | |
| 8352 | fi |
| 8353 | |
| 8354 | echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6 |
| 8355 | if test $gdb_cv_proc_service_is_old = yes; then |
| 8356 | cat >> confdefs.h <<\EOF |
| 8357 | #define PROC_SERVICE_IS_OLD 1 |
| 8358 | EOF |
| 8359 | |
| 8360 | fi |
| 8361 | else |
| 8362 | echo "$ac_t""no" 1>&6 |
| 8363 | fi |
| 8364 | ;; |
| 8365 | aix*) |
| 8366 | echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6 |
| 8367 | echo "configure:8368: checking for AiX thread debugging library" >&5 |
| 8368 | if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then |
| 8369 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8370 | else |
| 8371 | cat > conftest.$ac_ext <<EOF |
| 8372 | #line 8373 "configure" |
| 8373 | #include "confdefs.h" |
| 8374 | #include <sys/pthdebug.h> |
| 8375 | int main() { |
| 8376 | #ifndef PTHDB_VERSION_3 |
| 8377 | #error |
| 8378 | #endif |
| 8379 | ; return 0; } |
| 8380 | EOF |
| 8381 | if { (eval echo configure:8382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 8382 | rm -rf conftest* |
| 8383 | gdb_cv_have_aix_thread_debug=yes |
| 8384 | else |
| 8385 | echo "configure: failed program was:" >&5 |
| 8386 | cat conftest.$ac_ext >&5 |
| 8387 | rm -rf conftest* |
| 8388 | gdb_cv_have_aix_thread_debug=no |
| 8389 | fi |
| 8390 | rm -f conftest* |
| 8391 | fi |
| 8392 | |
| 8393 | echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6 |
| 8394 | if test $gdb_cv_have_aix_thread_debug = yes; then |
| 8395 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" |
| 8396 | CONFIG_LIB_OBS="${CONFIG_LIB_OBS} aix-thread.o" |
| 8397 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
| 8398 | fi |
| 8399 | ;; |
| 8400 | esac |
| 8401 | |
| 8402 | fi |
| 8403 | |
| 8404 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
| 8405 | echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6 |
| 8406 | echo "configure:8407: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
| 8407 | if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then |
| 8408 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8409 | else |
| 8410 | cat > conftest.$ac_ext <<EOF |
| 8411 | #line 8412 "configure" |
| 8412 | #include "confdefs.h" |
| 8413 | #include <thread_db.h> |
| 8414 | int main() { |
| 8415 | int i = TD_NOTALLOC; |
| 8416 | ; return 0; } |
| 8417 | EOF |
| 8418 | if { (eval echo configure:8419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 8419 | rm -rf conftest* |
| 8420 | gdb_cv_thread_db_h_has_td_notalloc=yes |
| 8421 | else |
| 8422 | echo "configure: failed program was:" >&5 |
| 8423 | cat conftest.$ac_ext >&5 |
| 8424 | rm -rf conftest* |
| 8425 | gdb_cv_thread_db_h_has_td_notalloc=no |
| 8426 | |
| 8427 | fi |
| 8428 | rm -f conftest* |
| 8429 | |
| 8430 | fi |
| 8431 | |
| 8432 | echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6 |
| 8433 | fi |
| 8434 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then |
| 8435 | cat >> confdefs.h <<\EOF |
| 8436 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
| 8437 | EOF |
| 8438 | |
| 8439 | fi |
| 8440 | |
| 8441 | |
| 8442 | # NOTE: Don't add -Wall or -Wunused, they both include |
| 8443 | # -Wunused-parameter which reports bogus warnings. |
| 8444 | # NOTE: If you add to this list, remember to update |
| 8445 | # gdb/doc/gdbint.texinfo. |
| 8446 | build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ |
| 8447 | -Wformat -Wparentheses -Wpointer-arith -Wuninitialized" |
| 8448 | # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs |
| 8449 | # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value |
| 8450 | # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual |
| 8451 | # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes |
| 8452 | # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls |
| 8453 | # -Woverloaded-virtual -Winline -Werror" |
| 8454 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
| 8455 | if test "${enable_build_warnings+set}" = set; then |
| 8456 | enableval="$enable_build_warnings" |
| 8457 | case "${enableval}" in |
| 8458 | yes) ;; |
| 8459 | no) build_warnings="-w";; |
| 8460 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 8461 | build_warnings="${build_warnings} ${t}";; |
| 8462 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 8463 | build_warnings="${t} ${build_warnings}";; |
| 8464 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
| 8465 | esac |
| 8466 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
| 8467 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
| 8468 | fi |
| 8469 | fi |
| 8470 | # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
| 8471 | if test "${enable_gdb_build_warnings+set}" = set; then |
| 8472 | enableval="$enable_gdb_build_warnings" |
| 8473 | case "${enableval}" in |
| 8474 | yes) ;; |
| 8475 | no) build_warnings="-w";; |
| 8476 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 8477 | build_warnings="${build_warnings} ${t}";; |
| 8478 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 8479 | build_warnings="${t} ${build_warnings}";; |
| 8480 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
| 8481 | esac |
| 8482 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
| 8483 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 |
| 8484 | fi |
| 8485 | fi |
| 8486 | WARN_CFLAGS="" |
| 8487 | WERROR_CFLAGS="" |
| 8488 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
| 8489 | then |
| 8490 | echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6 |
| 8491 | echo "configure:8492: checking compiler warning flags" >&5 |
| 8492 | # Separate out the -Werror flag as some files just cannot be |
| 8493 | # compiled with it enabled. |
| 8494 | for w in ${build_warnings}; do |
| 8495 | case $w in |
| 8496 | -Werr*) WERROR_CFLAGS=-Werror ;; |
| 8497 | *) # Check that GCC accepts it |
| 8498 | saved_CFLAGS="$CFLAGS" |
| 8499 | CFLAGS="$CFLAGS $w" |
| 8500 | cat > conftest.$ac_ext <<EOF |
| 8501 | #line 8502 "configure" |
| 8502 | #include "confdefs.h" |
| 8503 | |
| 8504 | int main() { |
| 8505 | |
| 8506 | ; return 0; } |
| 8507 | EOF |
| 8508 | if { (eval echo configure:8509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 8509 | rm -rf conftest* |
| 8510 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
| 8511 | else |
| 8512 | echo "configure: failed program was:" >&5 |
| 8513 | cat conftest.$ac_ext >&5 |
| 8514 | fi |
| 8515 | rm -f conftest* |
| 8516 | CFLAGS="$saved_CFLAGS" |
| 8517 | esac |
| 8518 | done |
| 8519 | echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6 |
| 8520 | fi |
| 8521 | |
| 8522 | |
| 8523 | |
| 8524 | MMALLOC_CFLAGS= |
| 8525 | MMALLOC= |
| 8526 | |
| 8527 | |
| 8528 | |
| 8529 | # Check whether --with-mmalloc or --without-mmalloc was given. |
| 8530 | if test "${with_mmalloc+set}" = set; then |
| 8531 | withval="$with_mmalloc" |
| 8532 | case "${withval}" in |
| 8533 | yes) want_mmalloc=true ;; |
| 8534 | no) want_mmalloc=false;; |
| 8535 | *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;; |
| 8536 | esac |
| 8537 | else |
| 8538 | want_mmalloc=false |
| 8539 | fi |
| 8540 | |
| 8541 | if test x$want_mmalloc = xtrue; then |
| 8542 | cat >> confdefs.h <<\EOF |
| 8543 | #define USE_MMALLOC 1 |
| 8544 | EOF |
| 8545 | |
| 8546 | cat >> confdefs.h <<\EOF |
| 8547 | #define MMCHECK_FORCE 1 |
| 8548 | EOF |
| 8549 | |
| 8550 | MMALLOC_CFLAGS="-I$srcdir/../mmalloc" |
| 8551 | MMALLOC='../mmalloc/libmmalloc.a' |
| 8552 | fi |
| 8553 | |
| 8554 | # In the Cygwin environment, we need some additional flags. |
| 8555 | echo $ac_n "checking for cygwin""... $ac_c" 1>&6 |
| 8556 | echo "configure:8557: checking for cygwin" >&5 |
| 8557 | if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then |
| 8558 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8559 | else |
| 8560 | cat > conftest.$ac_ext <<EOF |
| 8561 | #line 8562 "configure" |
| 8562 | #include "confdefs.h" |
| 8563 | |
| 8564 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) |
| 8565 | lose |
| 8566 | #endif |
| 8567 | EOF |
| 8568 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8569 | egrep "lose" >/dev/null 2>&1; then |
| 8570 | rm -rf conftest* |
| 8571 | gdb_cv_os_cygwin=yes |
| 8572 | else |
| 8573 | rm -rf conftest* |
| 8574 | gdb_cv_os_cygwin=no |
| 8575 | fi |
| 8576 | rm -f conftest* |
| 8577 | |
| 8578 | fi |
| 8579 | |
| 8580 | echo "$ac_t""$gdb_cv_os_cygwin" 1>&6 |
| 8581 | |
| 8582 | |
| 8583 | SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o" |
| 8584 | case ${host} in |
| 8585 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
| 8586 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; |
| 8587 | esac |
| 8588 | |
| 8589 | |
| 8590 | # libreadline needs libuser32.a in a cygwin environment |
| 8591 | WIN32LIBS= |
| 8592 | if test x$gdb_cv_os_cygwin = xyes; then |
| 8593 | WIN32LIBS="-luser32" |
| 8594 | case "${target}" in |
| 8595 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" |
| 8596 | ;; |
| 8597 | esac |
| 8598 | fi |
| 8599 | |
| 8600 | |
| 8601 | LIBGUI="../libgui/src/libgui.a" |
| 8602 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" |
| 8603 | |
| 8604 | |
| 8605 | |
| 8606 | # Check whether --enable-gdbtk or --disable-gdbtk was given. |
| 8607 | if test "${enable_gdbtk+set}" = set; then |
| 8608 | enableval="$enable_gdbtk" |
| 8609 | case "${enableval}" in |
| 8610 | yes) |
| 8611 | case "$host" in |
| 8612 | *go32*) |
| 8613 | echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2 |
| 8614 | enable_gdbtk=no ;; |
| 8615 | *windows*) |
| 8616 | echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2 |
| 8617 | enable_gdbtk=no ;; |
| 8618 | *) |
| 8619 | enable_gdbtk=yes ;; |
| 8620 | esac ;; |
| 8621 | no) |
| 8622 | enable_gdbtk=no ;; |
| 8623 | *) |
| 8624 | { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;; |
| 8625 | esac |
| 8626 | else |
| 8627 | |
| 8628 | # Default is on for everything but go32 and Cygwin |
| 8629 | case "$host" in |
| 8630 | *go32* | *windows*) |
| 8631 | ;; |
| 8632 | *) |
| 8633 | if test -d "${srcdir}/gdbtk" ; then |
| 8634 | enable_gdbtk=yes |
| 8635 | fi |
| 8636 | ;; |
| 8637 | esac |
| 8638 | |
| 8639 | fi |
| 8640 | |
| 8641 | |
| 8642 | WIN32LDAPP= |
| 8643 | |
| 8644 | |
| 8645 | |
| 8646 | configdir="unix" |
| 8647 | |
| 8648 | GDBTKLIBS= |
| 8649 | if test "${enable_gdbtk}" = "yes"; then |
| 8650 | |
| 8651 | # Gdbtk must have an absolute path to srcdir in order to run |
| 8652 | # properly when not installed. |
| 8653 | here=`pwd` |
| 8654 | cd ${srcdir} |
| 8655 | GDBTK_SRC_DIR=`pwd` |
| 8656 | cd $here |
| 8657 | |
| 8658 | |
| 8659 | # |
| 8660 | # Ok, lets find the tcl configuration |
| 8661 | # First, look for one uninstalled. |
| 8662 | # the alternative search directory is invoked by --with-tclconfig |
| 8663 | # |
| 8664 | |
| 8665 | if test x"${no_tcl}" = x ; then |
| 8666 | # we reset no_tcl in case something fails here |
| 8667 | no_tcl=true |
| 8668 | # Check whether --with-tclconfig or --without-tclconfig was given. |
| 8669 | if test "${with_tclconfig+set}" = set; then |
| 8670 | withval="$with_tclconfig" |
| 8671 | with_tclconfig=${withval} |
| 8672 | fi |
| 8673 | |
| 8674 | echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6 |
| 8675 | echo "configure:8676: checking for Tcl configuration" >&5 |
| 8676 | if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then |
| 8677 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8678 | else |
| 8679 | |
| 8680 | |
| 8681 | # First check to see if --with-tclconfig was specified. |
| 8682 | if test x"${with_tclconfig}" != x ; then |
| 8683 | if test -f "${with_tclconfig}/tclConfig.sh" ; then |
| 8684 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` |
| 8685 | else |
| 8686 | { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; } |
| 8687 | fi |
| 8688 | fi |
| 8689 | |
| 8690 | # then check for a private Tcl installation |
| 8691 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 8692 | for i in \ |
| 8693 | ../tcl \ |
| 8694 | `ls -dr ../tcl[7-9]* 2>/dev/null` \ |
| 8695 | ../../tcl \ |
| 8696 | `ls -dr ../../tcl[7-9]* 2>/dev/null` \ |
| 8697 | ../../../tcl \ |
| 8698 | `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do |
| 8699 | if test -f "$i/${configdir}/tclConfig.sh" ; then |
| 8700 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` |
| 8701 | break |
| 8702 | fi |
| 8703 | done |
| 8704 | fi |
| 8705 | # check in a few common install locations |
| 8706 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 8707 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do |
| 8708 | if test -f "$i/tclConfig.sh" ; then |
| 8709 | ac_cv_c_tclconfig=`(cd $i; pwd)` |
| 8710 | break |
| 8711 | fi |
| 8712 | done |
| 8713 | fi |
| 8714 | # check in a few other private locations |
| 8715 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 8716 | for i in \ |
| 8717 | ${srcdir}/../tcl \ |
| 8718 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do |
| 8719 | if test -f "$i/${configdir}/tclConfig.sh" ; then |
| 8720 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` |
| 8721 | break |
| 8722 | fi |
| 8723 | done |
| 8724 | fi |
| 8725 | |
| 8726 | fi |
| 8727 | |
| 8728 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 8729 | TCLCONFIG="# no Tcl configs found" |
| 8730 | echo "configure: warning: Can't find Tcl configuration definitions" 1>&2 |
| 8731 | else |
| 8732 | no_tcl= |
| 8733 | TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh |
| 8734 | echo "$ac_t""found $TCLCONFIG" 1>&6 |
| 8735 | fi |
| 8736 | fi |
| 8737 | |
| 8738 | if test -z "${no_tcl}"; then |
| 8739 | |
| 8740 | . $TCLCONFIG |
| 8741 | |
| 8742 | |
| 8743 | |
| 8744 | |
| 8745 | |
| 8746 | |
| 8747 | |
| 8748 | |
| 8749 | |
| 8750 | |
| 8751 | |
| 8752 | |
| 8753 | |
| 8754 | |
| 8755 | |
| 8756 | |
| 8757 | |
| 8758 | |
| 8759 | |
| 8760 | |
| 8761 | |
| 8762 | |
| 8763 | |
| 8764 | |
| 8765 | |
| 8766 | |
| 8767 | # |
| 8768 | # Ok, lets find the tk configuration |
| 8769 | # First, look for one uninstalled. |
| 8770 | # the alternative search directory is invoked by --with-tkconfig |
| 8771 | # |
| 8772 | |
| 8773 | if test x"${no_tk}" = x ; then |
| 8774 | # we reset no_tk in case something fails here |
| 8775 | no_tk=true |
| 8776 | # Check whether --with-tkconfig or --without-tkconfig was given. |
| 8777 | if test "${with_tkconfig+set}" = set; then |
| 8778 | withval="$with_tkconfig" |
| 8779 | with_tkconfig=${withval} |
| 8780 | fi |
| 8781 | |
| 8782 | echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6 |
| 8783 | echo "configure:8784: checking for Tk configuration" >&5 |
| 8784 | if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then |
| 8785 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8786 | else |
| 8787 | |
| 8788 | |
| 8789 | # First check to see if --with-tkconfig was specified. |
| 8790 | if test x"${with_tkconfig}" != x ; then |
| 8791 | if test -f "${with_tkconfig}/tkConfig.sh" ; then |
| 8792 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` |
| 8793 | else |
| 8794 | { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; } |
| 8795 | fi |
| 8796 | fi |
| 8797 | |
| 8798 | # then check for a private Tk library |
| 8799 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 8800 | for i in \ |
| 8801 | ../tk \ |
| 8802 | `ls -dr ../tk[4-9]* 2>/dev/null` \ |
| 8803 | ../../tk \ |
| 8804 | `ls -dr ../../tk[4-9]* 2>/dev/null` \ |
| 8805 | ../../../tk \ |
| 8806 | `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do |
| 8807 | if test -f "$i/${configdir}/tkConfig.sh" ; then |
| 8808 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` |
| 8809 | break |
| 8810 | fi |
| 8811 | done |
| 8812 | fi |
| 8813 | # check in a few common install locations |
| 8814 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 8815 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do |
| 8816 | if test -f "$i/tkConfig.sh" ; then |
| 8817 | ac_cv_c_tkconfig=`(cd $i; pwd)` |
| 8818 | break |
| 8819 | fi |
| 8820 | done |
| 8821 | fi |
| 8822 | # check in a few other private locations |
| 8823 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 8824 | for i in \ |
| 8825 | ${srcdir}/../tk \ |
| 8826 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do |
| 8827 | if test -f "$i/${configdir}/tkConfig.sh" ; then |
| 8828 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` |
| 8829 | break |
| 8830 | fi |
| 8831 | done |
| 8832 | fi |
| 8833 | |
| 8834 | fi |
| 8835 | |
| 8836 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 8837 | TKCONFIG="# no Tk configs found" |
| 8838 | echo "configure: warning: Can't find Tk configuration definitions" 1>&2 |
| 8839 | else |
| 8840 | no_tk= |
| 8841 | TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh |
| 8842 | echo "$ac_t""found $TKCONFIG" 1>&6 |
| 8843 | fi |
| 8844 | fi |
| 8845 | |
| 8846 | |
| 8847 | |
| 8848 | # now look for Tcl library stuff |
| 8849 | |
| 8850 | case "${host}" in |
| 8851 | *-*-cygwin*) |
| 8852 | tcldir=../tcl/win/ |
| 8853 | ;; |
| 8854 | *) |
| 8855 | tcldir=../tcl/unix/ |
| 8856 | ;; |
| 8857 | esac |
| 8858 | |
| 8859 | TCL_DEPS="${tcldir}${TCL_LIB_FILE}" |
| 8860 | |
| 8861 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
| 8862 | # point to doing Tcl. |
| 8863 | if test -z "${no_tk}"; then |
| 8864 | |
| 8865 | if test -f "$TKCONFIG" ; then |
| 8866 | . $TKCONFIG |
| 8867 | fi |
| 8868 | |
| 8869 | |
| 8870 | |
| 8871 | |
| 8872 | |
| 8873 | |
| 8874 | |
| 8875 | |
| 8876 | |
| 8877 | |
| 8878 | |
| 8879 | |
| 8880 | |
| 8881 | |
| 8882 | # |
| 8883 | # Ok, lets find the tcl source trees so we can use the headers |
| 8884 | # Warning: transition of version 9 to 10 will break this algorithm |
| 8885 | # because 10 sorts before 9. We also look for just tcl. We have to |
| 8886 | # be careful that we don't match stuff like tclX by accident. |
| 8887 | # the alternative search directory is involked by --with-tclinclude |
| 8888 | # |
| 8889 | |
| 8890 | no_tcl=true |
| 8891 | echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6 |
| 8892 | echo "configure:8893: checking for Tcl private headers. dir=${configdir}" >&5 |
| 8893 | # Check whether --with-tclinclude or --without-tclinclude was given. |
| 8894 | if test "${with_tclinclude+set}" = set; then |
| 8895 | withval="$with_tclinclude" |
| 8896 | with_tclinclude=${withval} |
| 8897 | fi |
| 8898 | |
| 8899 | if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then |
| 8900 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8901 | else |
| 8902 | |
| 8903 | # first check to see if --with-tclinclude was specified |
| 8904 | if test x"${with_tclinclude}" != x ; then |
| 8905 | if test -f ${with_tclinclude}/tclInt.h ; then |
| 8906 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` |
| 8907 | elif test -f ${with_tclinclude}/generic/tclInt.h ; then |
| 8908 | ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` |
| 8909 | else |
| 8910 | { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; } |
| 8911 | fi |
| 8912 | fi |
| 8913 | |
| 8914 | # next check if it came with Tcl configuration file |
| 8915 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 8916 | if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then |
| 8917 | ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)` |
| 8918 | fi |
| 8919 | fi |
| 8920 | |
| 8921 | # next check in private source directory |
| 8922 | # |
| 8923 | # since ls returns lowest version numbers first, reverse its output |
| 8924 | if test x"${ac_cv_c_tclh}" = x ; then |
| 8925 | for i in \ |
| 8926 | ${srcdir}/../tcl \ |
| 8927 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \ |
| 8928 | ${srcdir}/../../tcl \ |
| 8929 | `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \ |
| 8930 | ${srcdir}/../../../tcl \ |
| 8931 | `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do |
| 8932 | if test -f $i/generic/tclInt.h ; then |
| 8933 | ac_cv_c_tclh=`(cd $i/generic; pwd)` |
| 8934 | break |
| 8935 | fi |
| 8936 | done |
| 8937 | fi |
| 8938 | # finally check in a few common install locations |
| 8939 | # |
| 8940 | # since ls returns lowest version numbers first, reverse its output |
| 8941 | if test x"${ac_cv_c_tclh}" = x ; then |
| 8942 | for i in \ |
| 8943 | `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \ |
| 8944 | `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \ |
| 8945 | /usr/local/src/tcl \ |
| 8946 | /usr/local/lib/tcl \ |
| 8947 | ${prefix}/include ; do |
| 8948 | if test -f $i/generic/tclInt.h ; then |
| 8949 | ac_cv_c_tclh=`(cd $i/generic; pwd)` |
| 8950 | break |
| 8951 | fi |
| 8952 | done |
| 8953 | fi |
| 8954 | # see if one is installed |
| 8955 | if test x"${ac_cv_c_tclh}" = x ; then |
| 8956 | ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'` |
| 8957 | echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6 |
| 8958 | echo "configure:8959: checking for tclInt.h" >&5 |
| 8959 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 8960 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8961 | else |
| 8962 | cat > conftest.$ac_ext <<EOF |
| 8963 | #line 8964 "configure" |
| 8964 | #include "confdefs.h" |
| 8965 | #include <tclInt.h> |
| 8966 | EOF |
| 8967 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 8968 | { (eval echo configure:8969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 8969 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 8970 | if test -z "$ac_err"; then |
| 8971 | rm -rf conftest* |
| 8972 | eval "ac_cv_header_$ac_safe=yes" |
| 8973 | else |
| 8974 | echo "$ac_err" >&5 |
| 8975 | echo "configure: failed program was:" >&5 |
| 8976 | cat conftest.$ac_ext >&5 |
| 8977 | rm -rf conftest* |
| 8978 | eval "ac_cv_header_$ac_safe=no" |
| 8979 | fi |
| 8980 | rm -f conftest* |
| 8981 | fi |
| 8982 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 8983 | echo "$ac_t""yes" 1>&6 |
| 8984 | ac_cv_c_tclh=installed |
| 8985 | else |
| 8986 | echo "$ac_t""no" 1>&6 |
| 8987 | ac_cv_c_tclh="" |
| 8988 | fi |
| 8989 | |
| 8990 | fi |
| 8991 | |
| 8992 | fi |
| 8993 | |
| 8994 | if test x"${ac_cv_c_tclh}" = x ; then |
| 8995 | TCLHDIR="# no Tcl private headers found" |
| 8996 | { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; } |
| 8997 | fi |
| 8998 | if test x"${ac_cv_c_tclh}" != x ; then |
| 8999 | no_tcl="" |
| 9000 | if test x"${ac_cv_c_tclh}" = x"installed" ; then |
| 9001 | echo "$ac_t""is installed" 1>&6 |
| 9002 | TCLHDIR="" |
| 9003 | else |
| 9004 | echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6 |
| 9005 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. |
| 9006 | TCLHDIR="-I${ac_cv_c_tclh}" |
| 9007 | fi |
| 9008 | fi |
| 9009 | |
| 9010 | |
| 9011 | |
| 9012 | |
| 9013 | # |
| 9014 | # Ok, lets find the tk source trees so we can use the headers |
| 9015 | # If the directory (presumably symlink) named "tk" exists, use that one |
| 9016 | # in preference to any others. Same logic is used when choosing library |
| 9017 | # and again with Tcl. The search order is the best place to look first, then in |
| 9018 | # decreasing significance. The loop breaks if the trigger file is found. |
| 9019 | # Note the gross little conversion here of srcdir by cd'ing to the found |
| 9020 | # directory. This converts the path from a relative to an absolute, so |
| 9021 | # recursive cache variables for the path will work right. We check all |
| 9022 | # the possible paths in one loop rather than many seperate loops to speed |
| 9023 | # things up. |
| 9024 | # the alternative search directory is involked by --with-tkinclude |
| 9025 | # |
| 9026 | no_tk=true |
| 9027 | echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6 |
| 9028 | echo "configure:9029: checking for Tk private headers" >&5 |
| 9029 | # Check whether --with-tkinclude or --without-tkinclude was given. |
| 9030 | if test "${with_tkinclude+set}" = set; then |
| 9031 | withval="$with_tkinclude" |
| 9032 | with_tkinclude=${withval} |
| 9033 | fi |
| 9034 | |
| 9035 | if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then |
| 9036 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 9037 | else |
| 9038 | |
| 9039 | # first check to see if --with-tkinclude was specified |
| 9040 | if test x"${with_tkinclude}" != x ; then |
| 9041 | if test -f ${with_tkinclude}/tk.h ; then |
| 9042 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` |
| 9043 | elif test -f ${with_tkinclude}/generic/tk.h ; then |
| 9044 | ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` |
| 9045 | else |
| 9046 | { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; } |
| 9047 | fi |
| 9048 | fi |
| 9049 | |
| 9050 | # next check if it came with Tk configuration file |
| 9051 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 9052 | if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then |
| 9053 | ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)` |
| 9054 | fi |
| 9055 | fi |
| 9056 | |
| 9057 | # next check in private source directory |
| 9058 | # |
| 9059 | # since ls returns lowest version numbers first, reverse its output |
| 9060 | if test x"${ac_cv_c_tkh}" = x ; then |
| 9061 | for i in \ |
| 9062 | ${srcdir}/../tk \ |
| 9063 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \ |
| 9064 | ${srcdir}/../../tk \ |
| 9065 | `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \ |
| 9066 | ${srcdir}/../../../tk \ |
| 9067 | `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do |
| 9068 | if test -f $i/generic/tk.h ; then |
| 9069 | ac_cv_c_tkh=`(cd $i/generic; pwd)` |
| 9070 | break |
| 9071 | fi |
| 9072 | done |
| 9073 | fi |
| 9074 | # finally check in a few common install locations |
| 9075 | # |
| 9076 | # since ls returns lowest version numbers first, reverse its output |
| 9077 | if test x"${ac_cv_c_tkh}" = x ; then |
| 9078 | for i in \ |
| 9079 | `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \ |
| 9080 | `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \ |
| 9081 | /usr/local/src/tk \ |
| 9082 | /usr/local/lib/tk \ |
| 9083 | ${prefix}/include ; do |
| 9084 | if test -f $i/generic/tk.h ; then |
| 9085 | ac_cv_c_tkh=`(cd $i/generic; pwd)` |
| 9086 | break |
| 9087 | fi |
| 9088 | done |
| 9089 | fi |
| 9090 | # see if one is installed |
| 9091 | if test x"${ac_cv_c_tkh}" = x ; then |
| 9092 | ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'` |
| 9093 | echo $ac_n "checking for tk.h""... $ac_c" 1>&6 |
| 9094 | echo "configure:9095: checking for tk.h" >&5 |
| 9095 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 9096 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 9097 | else |
| 9098 | cat > conftest.$ac_ext <<EOF |
| 9099 | #line 9100 "configure" |
| 9100 | #include "confdefs.h" |
| 9101 | #include <tk.h> |
| 9102 | EOF |
| 9103 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 9104 | { (eval echo configure:9105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 9105 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 9106 | if test -z "$ac_err"; then |
| 9107 | rm -rf conftest* |
| 9108 | eval "ac_cv_header_$ac_safe=yes" |
| 9109 | else |
| 9110 | echo "$ac_err" >&5 |
| 9111 | echo "configure: failed program was:" >&5 |
| 9112 | cat conftest.$ac_ext >&5 |
| 9113 | rm -rf conftest* |
| 9114 | eval "ac_cv_header_$ac_safe=no" |
| 9115 | fi |
| 9116 | rm -f conftest* |
| 9117 | fi |
| 9118 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 9119 | echo "$ac_t""yes" 1>&6 |
| 9120 | ac_cv_c_tkh=installed |
| 9121 | else |
| 9122 | echo "$ac_t""no" 1>&6 |
| 9123 | ac_cv_c_tkh="" |
| 9124 | fi |
| 9125 | |
| 9126 | fi |
| 9127 | |
| 9128 | fi |
| 9129 | |
| 9130 | if test x"${ac_cv_c_tkh}" != x ; then |
| 9131 | no_tk="" |
| 9132 | if test x"${ac_cv_c_tkh}" = x"installed" ; then |
| 9133 | echo "$ac_t""is installed" 1>&6 |
| 9134 | TKHDIR="" |
| 9135 | else |
| 9136 | echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6 |
| 9137 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. |
| 9138 | TKHDIR="-I${ac_cv_c_tkh}" |
| 9139 | fi |
| 9140 | else |
| 9141 | TKHDIR="# no Tk directory found" |
| 9142 | echo "configure: warning: Can't find Tk private headers" 1>&2 |
| 9143 | no_tk=true |
| 9144 | fi |
| 9145 | |
| 9146 | |
| 9147 | |
| 9148 | |
| 9149 | echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6 |
| 9150 | echo "configure:9151: checking for Itcl private headers. srcdir=${srcdir}" >&5 |
| 9151 | if test x"${ac_cv_c_itclh}" = x ; then |
| 9152 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do |
| 9153 | if test -f $i/generic/itcl.h ; then |
| 9154 | ac_cv_c_itclh=`(cd $i/generic; pwd)` |
| 9155 | break |
| 9156 | fi |
| 9157 | done |
| 9158 | fi |
| 9159 | if test x"${ac_cv_c_itclh}" = x ; then |
| 9160 | ITCLHDIR="# no Itcl private headers found" |
| 9161 | { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; } |
| 9162 | fi |
| 9163 | if test x"${ac_cv_c_itclh}" != x ; then |
| 9164 | ITCLHDIR="-I${ac_cv_c_itclh}" |
| 9165 | fi |
| 9166 | # should always be here |
| 9167 | # ITCLLIB="../itcl/itcl/unix/libitcl.a" |
| 9168 | |
| 9169 | #AC_SUBST(ITCLLIB) |
| 9170 | |
| 9171 | |
| 9172 | echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6 |
| 9173 | echo "configure:9174: checking for Itk private headers. srcdir=${srcdir}" >&5 |
| 9174 | if test x"${ac_cv_c_itkh}" = x ; then |
| 9175 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do |
| 9176 | if test -f $i/generic/itk.h ; then |
| 9177 | ac_cv_c_itkh=`(cd $i/generic; pwd)` |
| 9178 | break |
| 9179 | fi |
| 9180 | done |
| 9181 | fi |
| 9182 | if test x"${ac_cv_c_itkh}" = x ; then |
| 9183 | ITKHDIR="# no Itk private headers found" |
| 9184 | { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; } |
| 9185 | fi |
| 9186 | if test x"${ac_cv_c_itkh}" != x ; then |
| 9187 | ITKHDIR="-I${ac_cv_c_itkh}" |
| 9188 | fi |
| 9189 | # should always be here |
| 9190 | # ITKLIB="../itcl/itk/unix/libitk.a" |
| 9191 | |
| 9192 | #AC_SUBST(ITKLIB) |
| 9193 | |
| 9194 | |
| 9195 | |
| 9196 | # now look for Tk library stuff |
| 9197 | |
| 9198 | case "${host}" in |
| 9199 | *-*-cygwin*) |
| 9200 | tkdir=../tk/win/ |
| 9201 | ;; |
| 9202 | *) |
| 9203 | tkdir=../tk/unix/ |
| 9204 | ;; |
| 9205 | esac |
| 9206 | |
| 9207 | TK_DEPS="${tkdir}${TK_LIB_FILE}" |
| 9208 | |
| 9209 | # now look for Itcl library stuff |
| 9210 | |
| 9211 | |
| 9212 | # |
| 9213 | # Ok, lets find the itcl configuration |
| 9214 | # First, look for one uninstalled. |
| 9215 | # the alternative search directory is invoked by --with-itclconfig |
| 9216 | # |
| 9217 | |
| 9218 | if test x"${no_itcl}" = x ; then |
| 9219 | # we reset no_itcl in case something fails here |
| 9220 | no_itcl=true |
| 9221 | # Check whether --with-itclconfig or --without-itclconfig was given. |
| 9222 | if test "${with_itclconfig+set}" = set; then |
| 9223 | withval="$with_itclconfig" |
| 9224 | with_itclconfig=${withval} |
| 9225 | fi |
| 9226 | |
| 9227 | echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6 |
| 9228 | echo "configure:9229: checking for Itcl configuration" >&5 |
| 9229 | if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then |
| 9230 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 9231 | else |
| 9232 | |
| 9233 | |
| 9234 | # First check to see if --with-itclconfig was specified. |
| 9235 | if test x"${with_itclconfig}" != x ; then |
| 9236 | if test -f "${with_itclconfig}/itclConfig.sh" ; then |
| 9237 | ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)` |
| 9238 | else |
| 9239 | { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; } |
| 9240 | fi |
| 9241 | fi |
| 9242 | |
| 9243 | # then check for a private Itcl library |
| 9244 | if test x"${ac_cv_c_itclconfig}" = x ; then |
| 9245 | for i in \ |
| 9246 | ../itcl/itcl \ |
| 9247 | `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \ |
| 9248 | ../../itcl \ |
| 9249 | `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \ |
| 9250 | ../../../itcl \ |
| 9251 | `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do |
| 9252 | if test -f "$i/itclConfig.sh" ; then |
| 9253 | ac_cv_c_itclconfig=`(cd $i; pwd)` |
| 9254 | break |
| 9255 | fi |
| 9256 | done |
| 9257 | fi |
| 9258 | # check in a few common install locations |
| 9259 | if test x"${ac_cv_c_itclconfig}" = x ; then |
| 9260 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do |
| 9261 | if test -f "$i/itclConfig.sh" ; then |
| 9262 | ac_cv_c_itclconfig=`(cd $i; pwd)` |
| 9263 | break |
| 9264 | fi |
| 9265 | done |
| 9266 | fi |
| 9267 | # check in a few other private locations |
| 9268 | if test x"${ac_cv_c_itclconfig}" = x ; then |
| 9269 | for i in \ |
| 9270 | ${srcdir}/../itcl/itcl \ |
| 9271 | `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do |
| 9272 | if test -f "$i/itclConfig.sh" ; then |
| 9273 | ac_cv_c_itclconfig=`(cd $i; pwd)` |
| 9274 | break |
| 9275 | fi |
| 9276 | done |
| 9277 | fi |
| 9278 | |
| 9279 | fi |
| 9280 | |
| 9281 | if test x"${ac_cv_c_itclconfig}" = x ; then |
| 9282 | ITCLCONFIG="# no Itcl configs found" |
| 9283 | echo "configure: warning: Can't find Itcl configuration definitions" 1>&2 |
| 9284 | else |
| 9285 | no_itcl= |
| 9286 | ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh |
| 9287 | echo "$ac_t""found $ITCLCONFIG" 1>&6 |
| 9288 | fi |
| 9289 | fi |
| 9290 | |
| 9291 | if test -z "${no_itcl}"; then |
| 9292 | |
| 9293 | if test -f "$ITCLCONFIG" ; then |
| 9294 | . $ITCLCONFIG |
| 9295 | fi |
| 9296 | |
| 9297 | |
| 9298 | |
| 9299 | |
| 9300 | |
| 9301 | |
| 9302 | |
| 9303 | |
| 9304 | |
| 9305 | |
| 9306 | |
| 9307 | |
| 9308 | ITCLLIB="${ITCL_BUILD_LIB_SPEC}" |
| 9309 | ITCL_DEPS="${ITCL_LIB_FULL_PATH}" |
| 9310 | fi |
| 9311 | |
| 9312 | |
| 9313 | # now look for Itk library stuff |
| 9314 | |
| 9315 | # |
| 9316 | # Ok, lets find the itk configuration |
| 9317 | # First, look for one uninstalled. |
| 9318 | # the alternative search directory is invoked by --with-itkconfig |
| 9319 | # |
| 9320 | |
| 9321 | if test x"${no_itk}" = x ; then |
| 9322 | # we reset no_itk in case something fails here |
| 9323 | no_itk=true |
| 9324 | # Check whether --with-itkconfig or --without-itkconfig was given. |
| 9325 | if test "${with_itkconfig+set}" = set; then |
| 9326 | withval="$with_itkconfig" |
| 9327 | with_itkconfig=${withval} |
| 9328 | fi |
| 9329 | |
| 9330 | echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6 |
| 9331 | echo "configure:9332: checking for Itk configuration" >&5 |
| 9332 | if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then |
| 9333 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 9334 | else |
| 9335 | |
| 9336 | |
| 9337 | # First check to see if --with-itkconfig was specified. |
| 9338 | if test x"${with_itkconfig}" != x ; then |
| 9339 | if test -f "${with_itkconfig}/itkConfig.sh" ; then |
| 9340 | ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)` |
| 9341 | else |
| 9342 | { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; } |
| 9343 | fi |
| 9344 | fi |
| 9345 | |
| 9346 | # then check for a private Itk library |
| 9347 | if test x"${ac_cv_c_itkconfig}" = x ; then |
| 9348 | for i in \ |
| 9349 | ../itcl/itk \ |
| 9350 | `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \ |
| 9351 | ../../itk \ |
| 9352 | `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \ |
| 9353 | ../../../itk \ |
| 9354 | `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do |
| 9355 | if test -f "$i/itkConfig.sh" ; then |
| 9356 | ac_cv_c_itkconfig=`(cd $i; pwd)` |
| 9357 | break |
| 9358 | fi |
| 9359 | done |
| 9360 | fi |
| 9361 | # check in a few common install locations |
| 9362 | if test x"${ac_cv_c_itkconfig}" = x ; then |
| 9363 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do |
| 9364 | if test -f "$i/itkConfig.sh" ; then |
| 9365 | ac_cv_c_itkconfig=`(cd $i; pwd)` |
| 9366 | break |
| 9367 | fi |
| 9368 | done |
| 9369 | fi |
| 9370 | # check in a few other private locations |
| 9371 | if test x"${ac_cv_c_itkconfig}" = x ; then |
| 9372 | for i in \ |
| 9373 | ${srcdir}/../itcl/itk \ |
| 9374 | `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do |
| 9375 | if test -f "$i/itkConfig.sh" ; then |
| 9376 | ac_cv_c_itkconfig=`(cd $i; pwd)` |
| 9377 | break |
| 9378 | fi |
| 9379 | done |
| 9380 | fi |
| 9381 | |
| 9382 | fi |
| 9383 | |
| 9384 | if test x"${ac_cv_c_itkconfig}" = x ; then |
| 9385 | ITKCONFIG="# no Itk configs found" |
| 9386 | echo "configure: warning: Can't find Itk configuration definitions" 1>&2 |
| 9387 | else |
| 9388 | no_itk= |
| 9389 | ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh |
| 9390 | echo "$ac_t""found $ITKCONFIG" 1>&6 |
| 9391 | fi |
| 9392 | fi |
| 9393 | |
| 9394 | |
| 9395 | if test -z "${no_itcl}"; then |
| 9396 | |
| 9397 | if test -f "$ITKCONFIG" ; then |
| 9398 | . $ITKCONFIG |
| 9399 | fi |
| 9400 | |
| 9401 | |
| 9402 | |
| 9403 | |
| 9404 | |
| 9405 | |
| 9406 | |
| 9407 | |
| 9408 | |
| 9409 | |
| 9410 | |
| 9411 | |
| 9412 | ITKLIB="${ITK_BUILD_LIB_SPEC}" |
| 9413 | ITK_DEPS="${ITK_LIB_FULL_PATH}" |
| 9414 | fi |
| 9415 | |
| 9416 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
| 9417 | # Tcl/Tk 8.1 require -fwritable strings. I don't |
| 9418 | # know whether 8.2 will or not, but I bet it will. |
| 9419 | # I don't have to worry about 7.x since we don't support it. |
| 9420 | GDBTK_CFLAGS="" |
| 9421 | if test "$GCC" = "yes"; then |
| 9422 | if test "$TCL_VERSION" != "8.0" ; then |
| 9423 | GDBTK_CFLAGS="-fwritable-strings" |
| 9424 | fi |
| 9425 | fi |
| 9426 | |
| 9427 | # Include some libraries that Tcl and Tk want. |
| 9428 | TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
| 9429 | # Yes, the ordering seems wrong here. But it isn't. |
| 9430 | # TK_LIBS is the list of libraries that need to be linked |
| 9431 | # after Tcl/Tk. Note that this isn't put into LIBS. If it |
| 9432 | # were in LIBS then any link tests after this point would |
| 9433 | # try to include things like `$(LIBGUI)', which wouldn't work. |
| 9434 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" |
| 9435 | |
| 9436 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" |
| 9437 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" |
| 9438 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" |
| 9439 | CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)" |
| 9440 | CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)" |
| 9441 | CONFIG_CLEAN="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)" |
| 9442 | CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)" |
| 9443 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)" |
| 9444 | |
| 9445 | if test x$gdb_cv_os_cygwin = xyes; then |
| 9446 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" |
| 9447 | WIN32LDAPP="-Wl,--subsystem,console" |
| 9448 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" |
| 9449 | fi |
| 9450 | fi |
| 9451 | fi |
| 9452 | |
| 9453 | configdirs="${configdirs} gdbtk" |
| 9454 | fi |
| 9455 | |
| 9456 | |
| 9457 | |
| 9458 | |
| 9459 | |
| 9460 | |
| 9461 | |
| 9462 | |
| 9463 | |
| 9464 | |
| 9465 | |
| 9466 | |
| 9467 | |
| 9468 | |
| 9469 | # If we find X, set shell vars x_includes and x_libraries to the |
| 9470 | # paths, otherwise set no_x=yes. |
| 9471 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
| 9472 | # --without-x overrides everything else, but does not touch the cache. |
| 9473 | echo $ac_n "checking for X""... $ac_c" 1>&6 |
| 9474 | echo "configure:9475: checking for X" >&5 |
| 9475 | |
| 9476 | # Check whether --with-x or --without-x was given. |
| 9477 | if test "${with_x+set}" = set; then |
| 9478 | withval="$with_x" |
| 9479 | : |
| 9480 | fi |
| 9481 | |
| 9482 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 9483 | if test "x$with_x" = xno; then |
| 9484 | # The user explicitly disabled X. |
| 9485 | have_x=disabled |
| 9486 | else |
| 9487 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 9488 | # Both variables are already set. |
| 9489 | have_x=yes |
| 9490 | else |
| 9491 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
| 9492 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 9493 | else |
| 9494 | # One or both of the vars are not set, and there is no cached value. |
| 9495 | ac_x_includes=NO ac_x_libraries=NO |
| 9496 | rm -fr conftestdir |
| 9497 | if mkdir conftestdir; then |
| 9498 | cd conftestdir |
| 9499 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 9500 | cat > Imakefile <<'EOF' |
| 9501 | acfindx: |
| 9502 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 9503 | EOF |
| 9504 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 9505 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 9506 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 9507 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 9508 | for ac_extension in a so sl; do |
| 9509 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 9510 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 9511 | ac_im_usrlibdir=$ac_im_libdir; break |
| 9512 | fi |
| 9513 | done |
| 9514 | # Screen out bogus values from the imake configuration. They are |
| 9515 | # bogus both because they are the default anyway, and because |
| 9516 | # using them would break gcc on systems where it needs fixed includes. |
| 9517 | case "$ac_im_incroot" in |
| 9518 | /usr/include) ;; |
| 9519 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
| 9520 | esac |
| 9521 | case "$ac_im_usrlibdir" in |
| 9522 | /usr/lib | /lib) ;; |
| 9523 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
| 9524 | esac |
| 9525 | fi |
| 9526 | cd .. |
| 9527 | rm -fr conftestdir |
| 9528 | fi |
| 9529 | |
| 9530 | if test "$ac_x_includes" = NO; then |
| 9531 | # Guess where to find include files, by looking for this one X11 .h file. |
| 9532 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
| 9533 | |
| 9534 | # First, try using that file with no special directory specified. |
| 9535 | cat > conftest.$ac_ext <<EOF |
| 9536 | #line 9537 "configure" |
| 9537 | #include "confdefs.h" |
| 9538 | #include <$x_direct_test_include> |
| 9539 | EOF |
| 9540 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 9541 | { (eval echo configure:9542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 9542 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 9543 | if test -z "$ac_err"; then |
| 9544 | rm -rf conftest* |
| 9545 | # We can compile using X headers with no special include directory. |
| 9546 | ac_x_includes= |
| 9547 | else |
| 9548 | echo "$ac_err" >&5 |
| 9549 | echo "configure: failed program was:" >&5 |
| 9550 | cat conftest.$ac_ext >&5 |
| 9551 | rm -rf conftest* |
| 9552 | # Look for the header file in a standard set of common directories. |
| 9553 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 9554 | for ac_dir in \ |
| 9555 | /usr/X11/include \ |
| 9556 | /usr/X11R6/include \ |
| 9557 | /usr/X11R5/include \ |
| 9558 | /usr/X11R4/include \ |
| 9559 | \ |
| 9560 | /usr/include/X11 \ |
| 9561 | /usr/include/X11R6 \ |
| 9562 | /usr/include/X11R5 \ |
| 9563 | /usr/include/X11R4 \ |
| 9564 | \ |
| 9565 | /usr/local/X11/include \ |
| 9566 | /usr/local/X11R6/include \ |
| 9567 | /usr/local/X11R5/include \ |
| 9568 | /usr/local/X11R4/include \ |
| 9569 | \ |
| 9570 | /usr/local/include/X11 \ |
| 9571 | /usr/local/include/X11R6 \ |
| 9572 | /usr/local/include/X11R5 \ |
| 9573 | /usr/local/include/X11R4 \ |
| 9574 | \ |
| 9575 | /usr/X386/include \ |
| 9576 | /usr/x386/include \ |
| 9577 | /usr/XFree86/include/X11 \ |
| 9578 | \ |
| 9579 | /usr/include \ |
| 9580 | /usr/local/include \ |
| 9581 | /usr/unsupported/include \ |
| 9582 | /usr/athena/include \ |
| 9583 | /usr/local/x11r5/include \ |
| 9584 | /usr/lpp/Xamples/include \ |
| 9585 | \ |
| 9586 | /usr/openwin/include \ |
| 9587 | /usr/openwin/share/include \ |
| 9588 | ; \ |
| 9589 | do |
| 9590 | if test -r "$ac_dir/$x_direct_test_include"; then |
| 9591 | ac_x_includes=$ac_dir |
| 9592 | break |
| 9593 | fi |
| 9594 | done |
| 9595 | fi |
| 9596 | rm -f conftest* |
| 9597 | fi # $ac_x_includes = NO |
| 9598 | |
| 9599 | if test "$ac_x_libraries" = NO; then |
| 9600 | # Check for the libraries. |
| 9601 | |
| 9602 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
| 9603 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
| 9604 | |
| 9605 | # See if we find them without any special options. |
| 9606 | # Don't add to $LIBS permanently. |
| 9607 | ac_save_LIBS="$LIBS" |
| 9608 | LIBS="-l$x_direct_test_library $LIBS" |
| 9609 | cat > conftest.$ac_ext <<EOF |
| 9610 | #line 9611 "configure" |
| 9611 | #include "confdefs.h" |
| 9612 | |
| 9613 | int main() { |
| 9614 | ${x_direct_test_function}() |
| 9615 | ; return 0; } |
| 9616 | EOF |
| 9617 | if { (eval echo configure:9618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 9618 | rm -rf conftest* |
| 9619 | LIBS="$ac_save_LIBS" |
| 9620 | # We can link X programs with no special library path. |
| 9621 | ac_x_libraries= |
| 9622 | else |
| 9623 | echo "configure: failed program was:" >&5 |
| 9624 | cat conftest.$ac_ext >&5 |
| 9625 | rm -rf conftest* |
| 9626 | LIBS="$ac_save_LIBS" |
| 9627 | # First see if replacing the include by lib works. |
| 9628 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 9629 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
| 9630 | /usr/X11/lib \ |
| 9631 | /usr/X11R6/lib \ |
| 9632 | /usr/X11R5/lib \ |
| 9633 | /usr/X11R4/lib \ |
| 9634 | \ |
| 9635 | /usr/lib/X11 \ |
| 9636 | /usr/lib/X11R6 \ |
| 9637 | /usr/lib/X11R5 \ |
| 9638 | /usr/lib/X11R4 \ |
| 9639 | \ |
| 9640 | /usr/local/X11/lib \ |
| 9641 | /usr/local/X11R6/lib \ |
| 9642 | /usr/local/X11R5/lib \ |
| 9643 | /usr/local/X11R4/lib \ |
| 9644 | \ |
| 9645 | /usr/local/lib/X11 \ |
| 9646 | /usr/local/lib/X11R6 \ |
| 9647 | /usr/local/lib/X11R5 \ |
| 9648 | /usr/local/lib/X11R4 \ |
| 9649 | \ |
| 9650 | /usr/X386/lib \ |
| 9651 | /usr/x386/lib \ |
| 9652 | /usr/XFree86/lib/X11 \ |
| 9653 | \ |
| 9654 | /usr/lib \ |
| 9655 | /usr/local/lib \ |
| 9656 | /usr/unsupported/lib \ |
| 9657 | /usr/athena/lib \ |
| 9658 | /usr/local/x11r5/lib \ |
| 9659 | /usr/lpp/Xamples/lib \ |
| 9660 | /lib/usr/lib/X11 \ |
| 9661 | \ |
| 9662 | /usr/openwin/lib \ |
| 9663 | /usr/openwin/share/lib \ |
| 9664 | ; \ |
| 9665 | do |
| 9666 | for ac_extension in a so sl; do |
| 9667 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
| 9668 | ac_x_libraries=$ac_dir |
| 9669 | break 2 |
| 9670 | fi |
| 9671 | done |
| 9672 | done |
| 9673 | fi |
| 9674 | rm -f conftest* |
| 9675 | fi # $ac_x_libraries = NO |
| 9676 | |
| 9677 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
| 9678 | # Didn't find X anywhere. Cache the known absence of X. |
| 9679 | ac_cv_have_x="have_x=no" |
| 9680 | else |
| 9681 | # Record where we found X for the cache. |
| 9682 | ac_cv_have_x="have_x=yes \ |
| 9683 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
| 9684 | fi |
| 9685 | fi |
| 9686 | fi |
| 9687 | eval "$ac_cv_have_x" |
| 9688 | fi # $with_x != no |
| 9689 | |
| 9690 | if test "$have_x" != yes; then |
| 9691 | echo "$ac_t""$have_x" 1>&6 |
| 9692 | no_x=yes |
| 9693 | else |
| 9694 | # If each of the values was on the command line, it overrides each guess. |
| 9695 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 9696 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 9697 | # Update the cache value to reflect the command line values. |
| 9698 | ac_cv_have_x="have_x=yes \ |
| 9699 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
| 9700 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
| 9701 | fi |
| 9702 | |
| 9703 | |
| 9704 | |
| 9705 | # Unlike the sim directory, whether a simulator is linked is controlled by |
| 9706 | # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file. |
| 9707 | # This code just checks for a few cases where we'd like to ignore those |
| 9708 | # definitions, even when they're present in the '.mt' file. These cases |
| 9709 | # are when --disable-sim is specified, or if the simulator directory is |
| 9710 | # not part of the source tree. |
| 9711 | # |
| 9712 | # Check whether --enable-sim or --disable-sim was given. |
| 9713 | if test "${enable_sim+set}" = set; then |
| 9714 | enableval="$enable_sim" |
| 9715 | echo "enable_sim = $enable_sim"; |
| 9716 | echo "enableval = ${enableval}"; |
| 9717 | case "${enableval}" in |
| 9718 | yes) ignore_sim=false ;; |
| 9719 | no) ignore_sim=true ;; |
| 9720 | *) ignore_sim=false ;; |
| 9721 | esac |
| 9722 | else |
| 9723 | ignore_sim=false |
| 9724 | fi |
| 9725 | |
| 9726 | |
| 9727 | if test ! -d "${srcdir}/../sim"; then |
| 9728 | ignore_sim=true |
| 9729 | fi |
| 9730 | |
| 9731 | if test "${ignore_sim}" = "true"; then |
| 9732 | IGNORE_SIM="SIM=" |
| 9733 | IGNORE_SIM_OBS="SIM_OBS=" |
| 9734 | else |
| 9735 | IGNORE_SIM="" |
| 9736 | IGNORE_SIM_OBS="" |
| 9737 | cat >> confdefs.h <<\EOF |
| 9738 | #define WITH_SIM 1 |
| 9739 | EOF |
| 9740 | |
| 9741 | fi |
| 9742 | |
| 9743 | |
| 9744 | |
| 9745 | |
| 9746 | |
| 9747 | |
| 9748 | |
| 9749 | |
| 9750 | |
| 9751 | |
| 9752 | |
| 9753 | |
| 9754 | |
| 9755 | |
| 9756 | |
| 9757 | # Begin stuff to support --enable-shared |
| 9758 | # Check whether --enable-shared or --disable-shared was given. |
| 9759 | if test "${enable_shared+set}" = set; then |
| 9760 | enableval="$enable_shared" |
| 9761 | case "${enableval}" in |
| 9762 | yes) shared=true ;; |
| 9763 | no) shared=false ;; |
| 9764 | *) shared=true ;; |
| 9765 | esac |
| 9766 | fi |
| 9767 | |
| 9768 | HLDFLAGS= |
| 9769 | HLDENV= |
| 9770 | # If we have shared libraries, try to set rpath reasonably. |
| 9771 | if test "${shared}" = "true"; then |
| 9772 | case "${host}" in |
| 9773 | *-*-hpux*) |
| 9774 | HLDFLAGS='-Wl,+s,+b,$(libdir)' |
| 9775 | ;; |
| 9776 | *-*-irix5* | *-*-irix6*) |
| 9777 | HLDFLAGS='-Wl,-rpath,$(libdir)' |
| 9778 | ;; |
| 9779 | *-*-linux*aout*) |
| 9780 | ;; |
| 9781 | *-*-linux* | *-pc-linux-gnu*) |
| 9782 | HLDFLAGS='-Wl,-rpath,$(libdir)' |
| 9783 | ;; |
| 9784 | *-*-solaris*) |
| 9785 | HLDFLAGS='-R $(libdir)' |
| 9786 | ;; |
| 9787 | *-*-sysv4*) |
| 9788 | HLDENV='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;' |
| 9789 | ;; |
| 9790 | esac |
| 9791 | fi |
| 9792 | |
| 9793 | # On SunOS, if the linker supports the -rpath option, use it to |
| 9794 | # prevent ../bfd and ../opcodes from being included in the run time |
| 9795 | # search path. |
| 9796 | case "${host}" in |
| 9797 | *-*-sunos*) |
| 9798 | echo 'main () { }' > conftest.c |
| 9799 | ${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t |
| 9800 | if grep 'unrecognized' conftest.t >/dev/null 2>&1; then |
| 9801 | : |
| 9802 | elif grep 'No such file' conftest.t >/dev/null 2>&1; then |
| 9803 | : |
| 9804 | elif grep 'do not mix' conftest.t >/dev/null 2>&1; then |
| 9805 | : |
| 9806 | elif grep 'some text already loaded' conftest.t >/dev/null 2>&1; then |
| 9807 | : |
| 9808 | elif test "${shared}" = "true"; then |
| 9809 | HLDFLAGS='-Wl,-rpath=$(libdir)' |
| 9810 | else |
| 9811 | HLDFLAGS='-Wl,-rpath=' |
| 9812 | fi |
| 9813 | rm -f conftest.t conftest.c conftest |
| 9814 | ;; |
| 9815 | esac |
| 9816 | |
| 9817 | |
| 9818 | # End stuff to support --enable-shared |
| 9819 | |
| 9820 | # target_subdir is used by the testsuite to find the target libraries. |
| 9821 | target_subdir= |
| 9822 | if test "${host}" != "${target}"; then |
| 9823 | target_subdir="${target_alias}/" |
| 9824 | fi |
| 9825 | |
| 9826 | |
| 9827 | frags= |
| 9828 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh |
| 9829 | if test ! -f ${host_makefile_frag}; then |
| 9830 | # When building a native debuger the .mh file containing things |
| 9831 | # like NATDEPFILES is needed. Cross debuggers don't need .mh |
| 9832 | # since it no longer contains anything useful. |
| 9833 | if test "${target}" = "${host}"; then |
| 9834 | { echo "configure: error: "*** Gdb does not support native target ${host}"" 1>&2; exit 1; } |
| 9835 | else |
| 9836 | host_makefile_frag=/dev/null |
| 9837 | fi |
| 9838 | fi |
| 9839 | frags="$frags $host_makefile_frag" |
| 9840 | |
| 9841 | target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt |
| 9842 | if test ! -f ${target_makefile_frag}; then |
| 9843 | { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; } |
| 9844 | fi |
| 9845 | frags="$frags $target_makefile_frag" |
| 9846 | |
| 9847 | |
| 9848 | |
| 9849 | |
| 9850 | |
| 9851 | hostfile=`sed -n ' |
| 9852 | s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
| 9853 | ' ${host_makefile_frag}` |
| 9854 | |
| 9855 | targetfile=`sed -n ' |
| 9856 | s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
| 9857 | ' ${target_makefile_frag}` |
| 9858 | |
| 9859 | GDB_MULTI_ARCH=`sed -n ' |
| 9860 | s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p |
| 9861 | ' ${target_makefile_frag}` |
| 9862 | |
| 9863 | if test "${target}" = "${host}"; then |
| 9864 | # We pick this up from the host configuration file (.mh) because we |
| 9865 | # do not have a native configuration Makefile fragment. |
| 9866 | nativefile=`sed -n ' |
| 9867 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
| 9868 | ' ${host_makefile_frag}` |
| 9869 | fi |
| 9870 | |
| 9871 | |
| 9872 | # New targets should just set gdb_multi_arch=yes in configure.tgt. |
| 9873 | # Old targets being converted can either do that or set GDB_MULTI_ARCH |
| 9874 | # in the target specific makefile frag. Eventually gdb_multi_arch=yes |
| 9875 | # will be the default. |
| 9876 | if test x"${GDB_MULTI_ARCH}" = x ; then |
| 9877 | case "${gdb_multi_arch}" in |
| 9878 | yes ) GDB_MULTI_ARCH=GDB_MULTI_ARCH_PURE ;; |
| 9879 | no ) GDB_MULTI_ARCH=0 ;; |
| 9880 | 0|1|2 ) GDB_MULTI_ARCH=${gdb_multi_arch} ;; |
| 9881 | esac |
| 9882 | fi |
| 9883 | if test x"${GDB_MULTI_ARCH}" != x ; then |
| 9884 | cat >> confdefs.h <<EOF |
| 9885 | #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH} |
| 9886 | EOF |
| 9887 | |
| 9888 | fi |
| 9889 | # Warn the user when they use an old practice |
| 9890 | case "${GDB_MULTI_ARCH}" in |
| 9891 | "" ) ;; |
| 9892 | 0 | GDB_MULTI_ARCH_PARTIAL | 1 | GDB_MULTI_ARCH_TM | 2 ) |
| 9893 | echo "configure: warning: "GDB: Target is not pure multi-arch"" 1>&2 ;; |
| 9894 | GDB_MULTI_ARCH_PURE ) |
| 9895 | if test x"${targetfile}" != x ; then |
| 9896 | echo "configure: warning: "GDB: Ignoring TM_FILE in ${target_makefile_frag}"" 1>&2 |
| 9897 | targetfile="" |
| 9898 | fi ;; |
| 9899 | *) { echo "configure: error: "GDB: Unknown GDB_MULTI_ARCH value ${GDB_MULTI_ARCH}"" 1>&2; exit 1; };; |
| 9900 | esac |
| 9901 | |
| 9902 | # Enable multi-ice-gdb-server. |
| 9903 | # Check whether --enable-multi-ice or --disable-multi-ice was given. |
| 9904 | if test "${enable_multi_ice+set}" = set; then |
| 9905 | enableval="$enable_multi_ice" |
| 9906 | case $enableval in |
| 9907 | yes | no) |
| 9908 | ;; |
| 9909 | *) { echo "configure: error: bad value $enableval for --enable-multi-ice" 1>&2; exit 1; } ;; |
| 9910 | esac |
| 9911 | fi |
| 9912 | |
| 9913 | if test "x$enable_multi_ice" = xyes; then |
| 9914 | configdirs="$configdirs multi-ice" |
| 9915 | fi |
| 9916 | |
| 9917 | # We only build gdbserver automatically if host and target are the same. |
| 9918 | if test "x$target" = "x$host"; then |
| 9919 | echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6 |
| 9920 | echo "configure:9921: checking whether gdbserver is supported on this host" >&5 |
| 9921 | if test "x$build_gdbserver" = xyes; then |
| 9922 | configdirs="$configdirs gdbserver" |
| 9923 | echo "$ac_t""yes" 1>&6 |
| 9924 | else |
| 9925 | echo "$ac_t""no" 1>&6 |
| 9926 | fi |
| 9927 | fi |
| 9928 | |
| 9929 | subdirs="doc testsuite $configdirs" |
| 9930 | |
| 9931 | SUBDIRS=$subdirs |
| 9932 | |
| 9933 | |
| 9934 | # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile |
| 9935 | # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty |
| 9936 | # version. |
| 9937 | |
| 9938 | files= |
| 9939 | links= |
| 9940 | |
| 9941 | rm -f xm.h |
| 9942 | xm_h="" |
| 9943 | if test "${hostfile}" != ""; then |
| 9944 | xm_h=xm.h |
| 9945 | GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" |
| 9946 | files="${files} ${GDB_XM_FILE}" |
| 9947 | links="${links} xm.h" |
| 9948 | cat >> confdefs.h <<EOF |
| 9949 | #define GDB_XM_FILE ${GDB_XM_FILE} |
| 9950 | EOF |
| 9951 | |
| 9952 | fi |
| 9953 | |
| 9954 | |
| 9955 | rm -f tm.h |
| 9956 | tm_h="" |
| 9957 | if test "${targetfile}" != ""; then |
| 9958 | tm_h=tm.h |
| 9959 | GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" |
| 9960 | files="${files} ${GDB_TM_FILE}" |
| 9961 | links="${links} tm.h" |
| 9962 | cat >> confdefs.h <<EOF |
| 9963 | #define GDB_TM_FILE ${GDB_TM_FILE} |
| 9964 | EOF |
| 9965 | |
| 9966 | fi |
| 9967 | |
| 9968 | |
| 9969 | rm -f nm.h |
| 9970 | nm_h="" |
| 9971 | if test "${nativefile}" != ""; then |
| 9972 | nm_h=nm.h |
| 9973 | GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" |
| 9974 | files="${files} ${GDB_NM_FILE}" |
| 9975 | links="${links} nm.h" |
| 9976 | cat >> confdefs.h <<EOF |
| 9977 | #define GDB_NM_FILE ${GDB_NM_FILE} |
| 9978 | EOF |
| 9979 | |
| 9980 | fi |
| 9981 | |
| 9982 | |
| 9983 | |
| 9984 | |
| 9985 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
| 9986 | echo "configure:9987: checking for Cygwin environment" >&5 |
| 9987 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
| 9988 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 9989 | else |
| 9990 | cat > conftest.$ac_ext <<EOF |
| 9991 | #line 9992 "configure" |
| 9992 | #include "confdefs.h" |
| 9993 | |
| 9994 | int main() { |
| 9995 | |
| 9996 | #ifndef __CYGWIN__ |
| 9997 | #define __CYGWIN__ __CYGWIN32__ |
| 9998 | #endif |
| 9999 | return __CYGWIN__; |
| 10000 | ; return 0; } |
| 10001 | EOF |
| 10002 | if { (eval echo configure:10003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 10003 | rm -rf conftest* |
| 10004 | ac_cv_cygwin=yes |
| 10005 | else |
| 10006 | echo "configure: failed program was:" >&5 |
| 10007 | cat conftest.$ac_ext >&5 |
| 10008 | rm -rf conftest* |
| 10009 | ac_cv_cygwin=no |
| 10010 | fi |
| 10011 | rm -f conftest* |
| 10012 | rm -f conftest* |
| 10013 | fi |
| 10014 | |
| 10015 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
| 10016 | CYGWIN= |
| 10017 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
| 10018 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
| 10019 | echo "configure:10020: checking for mingw32 environment" >&5 |
| 10020 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
| 10021 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 10022 | else |
| 10023 | cat > conftest.$ac_ext <<EOF |
| 10024 | #line 10025 "configure" |
| 10025 | #include "confdefs.h" |
| 10026 | |
| 10027 | int main() { |
| 10028 | return __MINGW32__; |
| 10029 | ; return 0; } |
| 10030 | EOF |
| 10031 | if { (eval echo configure:10032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 10032 | rm -rf conftest* |
| 10033 | ac_cv_mingw32=yes |
| 10034 | else |
| 10035 | echo "configure: failed program was:" >&5 |
| 10036 | cat conftest.$ac_ext >&5 |
| 10037 | rm -rf conftest* |
| 10038 | ac_cv_mingw32=no |
| 10039 | fi |
| 10040 | rm -f conftest* |
| 10041 | rm -f conftest* |
| 10042 | fi |
| 10043 | |
| 10044 | echo "$ac_t""$ac_cv_mingw32" 1>&6 |
| 10045 | MINGW32= |
| 10046 | test "$ac_cv_mingw32" = yes && MINGW32=yes |
| 10047 | |
| 10048 | |
| 10049 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
| 10050 | echo "configure:10051: checking for executable suffix" >&5 |
| 10051 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
| 10052 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 10053 | else |
| 10054 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 10055 | ac_cv_exeext=.exe |
| 10056 | else |
| 10057 | rm -f conftest* |
| 10058 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 10059 | ac_cv_exeext= |
| 10060 | if { (eval echo configure:10061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
| 10061 | for file in conftest.*; do |
| 10062 | case $file in |
| 10063 | *.c | *.C | *.o | *.obj | *.ilk | *.pdb) ;; |
| 10064 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
| 10065 | esac |
| 10066 | done |
| 10067 | else |
| 10068 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
| 10069 | fi |
| 10070 | rm -f conftest* |
| 10071 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
| 10072 | fi |
| 10073 | fi |
| 10074 | |
| 10075 | EXEEXT="" |
| 10076 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
| 10077 | echo "$ac_t""${ac_cv_exeext}" 1>&6 |
| 10078 | ac_exeext=$EXEEXT |
| 10079 | |
| 10080 | |
| 10081 | |
| 10082 | cat >> confdefs.h <<\EOF |
| 10083 | #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" |
| 10084 | EOF |
| 10085 | |
| 10086 | |
| 10087 | |
| 10088 | |
| 10089 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
| 10090 | if test "${with_libiconv_prefix+set}" = set; then |
| 10091 | withval="$with_libiconv_prefix" |
| 10092 | |
| 10093 | for dir in `echo "$withval" | tr : ' '`; do |
| 10094 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi |
| 10095 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi |
| 10096 | done |
| 10097 | |
| 10098 | fi |
| 10099 | |
| 10100 | |
| 10101 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
| 10102 | echo "configure:10103: checking for iconv" >&5 |
| 10103 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
| 10104 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 10105 | else |
| 10106 | |
| 10107 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 10108 | am_cv_lib_iconv=no |
| 10109 | cat > conftest.$ac_ext <<EOF |
| 10110 | #line 10111 "configure" |
| 10111 | #include "confdefs.h" |
| 10112 | #include <stdlib.h> |
| 10113 | #include <iconv.h> |
| 10114 | int main() { |
| 10115 | iconv_t cd = iconv_open("",""); |
| 10116 | iconv(cd,NULL,NULL,NULL,NULL); |
| 10117 | iconv_close(cd); |
| 10118 | ; return 0; } |
| 10119 | EOF |
| 10120 | if { (eval echo configure:10121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 10121 | rm -rf conftest* |
| 10122 | am_cv_func_iconv=yes |
| 10123 | else |
| 10124 | echo "configure: failed program was:" >&5 |
| 10125 | cat conftest.$ac_ext >&5 |
| 10126 | fi |
| 10127 | rm -f conftest* |
| 10128 | if test "$am_cv_func_iconv" != yes; then |
| 10129 | am_save_LIBS="$LIBS" |
| 10130 | LIBS="$LIBS -liconv" |
| 10131 | cat > conftest.$ac_ext <<EOF |
| 10132 | #line 10133 "configure" |
| 10133 | #include "confdefs.h" |
| 10134 | #include <stdlib.h> |
| 10135 | #include <iconv.h> |
| 10136 | int main() { |
| 10137 | iconv_t cd = iconv_open("",""); |
| 10138 | iconv(cd,NULL,NULL,NULL,NULL); |
| 10139 | iconv_close(cd); |
| 10140 | ; return 0; } |
| 10141 | EOF |
| 10142 | if { (eval echo configure:10143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 10143 | rm -rf conftest* |
| 10144 | am_cv_lib_iconv=yes |
| 10145 | am_cv_func_iconv=yes |
| 10146 | else |
| 10147 | echo "configure: failed program was:" >&5 |
| 10148 | cat conftest.$ac_ext >&5 |
| 10149 | fi |
| 10150 | rm -f conftest* |
| 10151 | LIBS="$am_save_LIBS" |
| 10152 | fi |
| 10153 | |
| 10154 | fi |
| 10155 | |
| 10156 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
| 10157 | if test "$am_cv_func_iconv" = yes; then |
| 10158 | cat >> confdefs.h <<\EOF |
| 10159 | #define HAVE_ICONV 1 |
| 10160 | EOF |
| 10161 | |
| 10162 | echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6 |
| 10163 | echo "configure:10164: checking for iconv declaration" >&5 |
| 10164 | if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then |
| 10165 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 10166 | else |
| 10167 | |
| 10168 | cat > conftest.$ac_ext <<EOF |
| 10169 | #line 10170 "configure" |
| 10170 | #include "confdefs.h" |
| 10171 | |
| 10172 | #include <stdlib.h> |
| 10173 | #include <iconv.h> |
| 10174 | extern |
| 10175 | #ifdef __cplusplus |
| 10176 | "C" |
| 10177 | #endif |
| 10178 | #if defined(__STDC__) || defined(__cplusplus) |
| 10179 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 10180 | #else |
| 10181 | size_t iconv(); |
| 10182 | #endif |
| 10183 | |
| 10184 | int main() { |
| 10185 | |
| 10186 | ; return 0; } |
| 10187 | EOF |
| 10188 | if { (eval echo configure:10189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 10189 | rm -rf conftest* |
| 10190 | am_cv_proto_iconv_arg1="" |
| 10191 | else |
| 10192 | echo "configure: failed program was:" >&5 |
| 10193 | cat conftest.$ac_ext >&5 |
| 10194 | rm -rf conftest* |
| 10195 | am_cv_proto_iconv_arg1="const" |
| 10196 | fi |
| 10197 | rm -f conftest* |
| 10198 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
| 10199 | fi |
| 10200 | |
| 10201 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
| 10202 | echo "$ac_t""${ac_t:- |
| 10203 | }$am_cv_proto_iconv" 1>&6 |
| 10204 | cat >> confdefs.h <<EOF |
| 10205 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
| 10206 | EOF |
| 10207 | |
| 10208 | fi |
| 10209 | LIBICONV= |
| 10210 | if test "$am_cv_lib_iconv" = yes; then |
| 10211 | LIBICONV="-liconv" |
| 10212 | fi |
| 10213 | |
| 10214 | |
| 10215 | |
| 10216 | trap '' 1 2 15 |
| 10217 | cat > confcache <<\EOF |
| 10218 | # This file is a shell script that caches the results of configure |
| 10219 | # tests run on this system so they can be shared between configure |
| 10220 | # scripts and configure runs. It is not useful on other systems. |
| 10221 | # If it contains results you don't want to keep, you may remove or edit it. |
| 10222 | # |
| 10223 | # By default, configure uses ./config.cache as the cache file, |
| 10224 | # creating it if it does not exist already. You can give configure |
| 10225 | # the --cache-file=FILE option to use a different cache file; that is |
| 10226 | # what configure does when it calls configure scripts in |
| 10227 | # subdirectories, so they share the cache. |
| 10228 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 10229 | # config.status only pays attention to the cache file if you give it the |
| 10230 | # --recheck option to rerun configure. |
| 10231 | # |
| 10232 | EOF |
| 10233 | # The following way of writing the cache mishandles newlines in values, |
| 10234 | # but we know of no workaround that is simple, portable, and efficient. |
| 10235 | # So, don't put newlines in cache variables' values. |
| 10236 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 10237 | # and sets the high bit in the cache file unless we assign to the vars. |
| 10238 | (set) 2>&1 | |
| 10239 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 10240 | *ac_space=\ *) |
| 10241 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 10242 | # turns \\\\ into \\, and sed turns \\ into \). |
| 10243 | sed -n \ |
| 10244 | -e "s/'/'\\\\''/g" \ |
| 10245 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 10246 | ;; |
| 10247 | *) |
| 10248 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 10249 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 10250 | ;; |
| 10251 | esac >> confcache |
| 10252 | if cmp -s $cache_file confcache; then |
| 10253 | : |
| 10254 | else |
| 10255 | if test -w $cache_file; then |
| 10256 | echo "updating cache $cache_file" |
| 10257 | cat confcache > $cache_file |
| 10258 | else |
| 10259 | echo "not updating unwritable cache $cache_file" |
| 10260 | fi |
| 10261 | fi |
| 10262 | rm -f confcache |
| 10263 | |
| 10264 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 10265 | |
| 10266 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 10267 | # Let make expand exec_prefix. |
| 10268 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 10269 | |
| 10270 | # Any assignment to VPATH causes Sun make to only execute |
| 10271 | # the first set of double-colon rules, so remove it if not needed. |
| 10272 | # If there is a colon in the path, we need to keep it. |
| 10273 | if test "x$srcdir" = x.; then |
| 10274 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 10275 | fi |
| 10276 | |
| 10277 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 10278 | |
| 10279 | DEFS=-DHAVE_CONFIG_H |
| 10280 | |
| 10281 | # Without the "./", some shells look in PATH for config.status. |
| 10282 | : ${CONFIG_STATUS=./config.status} |
| 10283 | |
| 10284 | echo creating $CONFIG_STATUS |
| 10285 | rm -f $CONFIG_STATUS |
| 10286 | cat > $CONFIG_STATUS <<EOF |
| 10287 | #! /bin/sh |
| 10288 | # Generated automatically by configure. |
| 10289 | # Run this file to recreate the current configuration. |
| 10290 | # This directory was configured as follows, |
| 10291 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 10292 | # |
| 10293 | # $0 $ac_configure_args |
| 10294 | # |
| 10295 | # Compiler output produced by configure, useful for debugging |
| 10296 | # configure, is in ./config.log if it exists. |
| 10297 | |
| 10298 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 10299 | for ac_option |
| 10300 | do |
| 10301 | case "\$ac_option" in |
| 10302 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 10303 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 10304 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 10305 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 10306 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
| 10307 | exit 0 ;; |
| 10308 | -help | --help | --hel | --he | --h) |
| 10309 | echo "\$ac_cs_usage"; exit 0 ;; |
| 10310 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 10311 | esac |
| 10312 | done |
| 10313 | |
| 10314 | ac_given_srcdir=$srcdir |
| 10315 | ac_given_INSTALL="$INSTALL" |
| 10316 | |
| 10317 | trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 10318 | EOF |
| 10319 | cat >> $CONFIG_STATUS <<EOF |
| 10320 | |
| 10321 | # Protect against being on the right side of a sed subst in config.status. |
| 10322 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 10323 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 10324 | $ac_vpsub |
| 10325 | $extrasub |
| 10326 | s%@SHELL@%$SHELL%g |
| 10327 | s%@CFLAGS@%$CFLAGS%g |
| 10328 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 10329 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 10330 | s%@FFLAGS@%$FFLAGS%g |
| 10331 | s%@DEFS@%$DEFS%g |
| 10332 | s%@LDFLAGS@%$LDFLAGS%g |
| 10333 | s%@LIBS@%$LIBS%g |
| 10334 | s%@exec_prefix@%$exec_prefix%g |
| 10335 | s%@prefix@%$prefix%g |
| 10336 | s%@program_transform_name@%$program_transform_name%g |
| 10337 | s%@bindir@%$bindir%g |
| 10338 | s%@sbindir@%$sbindir%g |
| 10339 | s%@libexecdir@%$libexecdir%g |
| 10340 | s%@datadir@%$datadir%g |
| 10341 | s%@sysconfdir@%$sysconfdir%g |
| 10342 | s%@sharedstatedir@%$sharedstatedir%g |
| 10343 | s%@localstatedir@%$localstatedir%g |
| 10344 | s%@libdir@%$libdir%g |
| 10345 | s%@includedir@%$includedir%g |
| 10346 | s%@oldincludedir@%$oldincludedir%g |
| 10347 | s%@infodir@%$infodir%g |
| 10348 | s%@mandir@%$mandir%g |
| 10349 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
| 10350 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g |
| 10351 | s%@MAINT@%$MAINT%g |
| 10352 | s%@CC@%$CC%g |
| 10353 | s%@CPP@%$CPP%g |
| 10354 | s%@host@%$host%g |
| 10355 | s%@host_alias@%$host_alias%g |
| 10356 | s%@host_cpu@%$host_cpu%g |
| 10357 | s%@host_vendor@%$host_vendor%g |
| 10358 | s%@host_os@%$host_os%g |
| 10359 | s%@target@%$target%g |
| 10360 | s%@target_alias@%$target_alias%g |
| 10361 | s%@target_cpu@%$target_cpu%g |
| 10362 | s%@target_vendor@%$target_vendor%g |
| 10363 | s%@target_os@%$target_os%g |
| 10364 | s%@build@%$build%g |
| 10365 | s%@build_alias@%$build_alias%g |
| 10366 | s%@build_cpu@%$build_cpu%g |
| 10367 | s%@build_vendor@%$build_vendor%g |
| 10368 | s%@build_os@%$build_os%g |
| 10369 | s%@RANLIB@%$RANLIB%g |
| 10370 | s%@SET_MAKE@%$SET_MAKE%g |
| 10371 | s%@ALLOCA@%$ALLOCA%g |
| 10372 | s%@USE_NLS@%$USE_NLS%g |
| 10373 | s%@MSGFMT@%$MSGFMT%g |
| 10374 | s%@GMSGFMT@%$GMSGFMT%g |
| 10375 | s%@XGETTEXT@%$XGETTEXT%g |
| 10376 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g |
| 10377 | s%@CATALOGS@%$CATALOGS%g |
| 10378 | s%@CATOBJEXT@%$CATOBJEXT%g |
| 10379 | s%@DATADIRNAME@%$DATADIRNAME%g |
| 10380 | s%@GMOFILES@%$GMOFILES%g |
| 10381 | s%@INSTOBJEXT@%$INSTOBJEXT%g |
| 10382 | s%@INTLDEPS@%$INTLDEPS%g |
| 10383 | s%@INTLLIBS@%$INTLLIBS%g |
| 10384 | s%@INTLOBJS@%$INTLOBJS%g |
| 10385 | s%@POFILES@%$POFILES%g |
| 10386 | s%@POSUB@%$POSUB%g |
| 10387 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g |
| 10388 | s%@GT_NO@%$GT_NO%g |
| 10389 | s%@GT_YES@%$GT_YES%g |
| 10390 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g |
| 10391 | s%@l@%$l%g |
| 10392 | s%@subdirs@%$subdirs%g |
| 10393 | s%@AWK@%$AWK%g |
| 10394 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 10395 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
| 10396 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
| 10397 | s%@LN_S@%$LN_S%g |
| 10398 | s%@YACC@%$YACC%g |
| 10399 | s%@AR@%$AR%g |
| 10400 | s%@DLLTOOL@%$DLLTOOL%g |
| 10401 | s%@WINDRES@%$WINDRES%g |
| 10402 | s%@MIG@%$MIG%g |
| 10403 | s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g |
| 10404 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g |
| 10405 | s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g |
| 10406 | s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g |
| 10407 | s%@MMALLOC@%$MMALLOC%g |
| 10408 | s%@SER_HARDWIRE@%$SER_HARDWIRE%g |
| 10409 | s%@WIN32LIBS@%$WIN32LIBS%g |
| 10410 | s%@LIBGUI@%$LIBGUI%g |
| 10411 | s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g |
| 10412 | s%@WIN32LDAPP@%$WIN32LDAPP%g |
| 10413 | s%@TCL_VERSION@%$TCL_VERSION%g |
| 10414 | s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g |
| 10415 | s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g |
| 10416 | s%@TCL_CC@%$TCL_CC%g |
| 10417 | s%@TCL_DEFS@%$TCL_DEFS%g |
| 10418 | s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g |
| 10419 | s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g |
| 10420 | s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g |
| 10421 | s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g |
| 10422 | s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g |
| 10423 | s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g |
| 10424 | s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g |
| 10425 | s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g |
| 10426 | s%@TCL_RANLIB@%$TCL_RANLIB%g |
| 10427 | s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g |
| 10428 | s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g |
| 10429 | s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g |
| 10430 | s%@TK_VERSION@%$TK_VERSION%g |
| 10431 | s%@TK_DEFS@%$TK_DEFS%g |
| 10432 | s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g |
| 10433 | s%@TK_XINCLUDES@%$TK_XINCLUDES%g |
| 10434 | s%@TK_XLIBSW@%$TK_XLIBSW%g |
| 10435 | s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g |
| 10436 | s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g |
| 10437 | s%@TCLHDIR@%$TCLHDIR%g |
| 10438 | s%@TKHDIR@%$TKHDIR%g |
| 10439 | s%@ITCLHDIR@%$ITCLHDIR%g |
| 10440 | s%@ITKHDIR@%$ITKHDIR%g |
| 10441 | s%@ITCL_VERSION@%$ITCL_VERSION%g |
| 10442 | s%@ITCL_DEFS@%$ITCL_DEFS%g |
| 10443 | s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g |
| 10444 | s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g |
| 10445 | s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g |
| 10446 | s%@ITK_VERSION@%$ITK_VERSION%g |
| 10447 | s%@ITK_DEFS@%$ITK_DEFS%g |
| 10448 | s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g |
| 10449 | s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g |
| 10450 | s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g |
| 10451 | s%@X_CFLAGS@%$X_CFLAGS%g |
| 10452 | s%@X_LDFLAGS@%$X_LDFLAGS%g |
| 10453 | s%@X_LIBS@%$X_LIBS%g |
| 10454 | s%@TCL_DEPS@%$TCL_DEPS%g |
| 10455 | s%@TK_DEPS@%$TK_DEPS%g |
| 10456 | s%@ITCLLIB@%$ITCLLIB%g |
| 10457 | s%@ITCL_DEPS@%$ITCL_DEPS%g |
| 10458 | s%@ITKLIB@%$ITKLIB%g |
| 10459 | s%@ITK_DEPS@%$ITK_DEPS%g |
| 10460 | s%@GDBTKLIBS@%$GDBTKLIBS%g |
| 10461 | s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g |
| 10462 | s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g |
| 10463 | s%@IGNORE_SIM@%$IGNORE_SIM%g |
| 10464 | s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g |
| 10465 | s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g |
| 10466 | s%@CONFIG_OBS@%$CONFIG_OBS%g |
| 10467 | s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g |
| 10468 | s%@CONFIG_DEPS@%$CONFIG_DEPS%g |
| 10469 | s%@CONFIG_SRCS@%$CONFIG_SRCS%g |
| 10470 | s%@CONFIG_INITS@%$CONFIG_INITS%g |
| 10471 | s%@CONFIG_ALL@%$CONFIG_ALL%g |
| 10472 | s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g |
| 10473 | s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g |
| 10474 | s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g |
| 10475 | s%@HLDFLAGS@%$HLDFLAGS%g |
| 10476 | s%@HLDENV@%$HLDENV%g |
| 10477 | s%@target_subdir@%$target_subdir%g |
| 10478 | /@host_makefile_frag@/r $host_makefile_frag |
| 10479 | s%@host_makefile_frag@%%g |
| 10480 | /@target_makefile_frag@/r $target_makefile_frag |
| 10481 | s%@target_makefile_frag@%%g |
| 10482 | s%@frags@%$frags%g |
| 10483 | s%@SUBDIRS@%$SUBDIRS%g |
| 10484 | s%@xm_h@%$xm_h%g |
| 10485 | s%@tm_h@%$tm_h%g |
| 10486 | s%@nm_h@%$nm_h%g |
| 10487 | s%@EXEEXT@%$EXEEXT%g |
| 10488 | s%@LIBICONV@%$LIBICONV%g |
| 10489 | |
| 10490 | CEOF |
| 10491 | EOF |
| 10492 | |
| 10493 | cat >> $CONFIG_STATUS <<\EOF |
| 10494 | |
| 10495 | # Split the substitutions into bite-sized pieces for seds with |
| 10496 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 10497 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 10498 | ac_file=1 # Number of current file. |
| 10499 | ac_beg=1 # First line for current file. |
| 10500 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 10501 | ac_more_lines=: |
| 10502 | ac_sed_cmds="" |
| 10503 | while $ac_more_lines; do |
| 10504 | if test $ac_beg -gt 1; then |
| 10505 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 10506 | else |
| 10507 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 10508 | fi |
| 10509 | if test ! -s conftest.s$ac_file; then |
| 10510 | ac_more_lines=false |
| 10511 | rm -f conftest.s$ac_file |
| 10512 | else |
| 10513 | if test -z "$ac_sed_cmds"; then |
| 10514 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 10515 | else |
| 10516 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 10517 | fi |
| 10518 | ac_file=`expr $ac_file + 1` |
| 10519 | ac_beg=$ac_end |
| 10520 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 10521 | fi |
| 10522 | done |
| 10523 | if test -z "$ac_sed_cmds"; then |
| 10524 | ac_sed_cmds=cat |
| 10525 | fi |
| 10526 | EOF |
| 10527 | |
| 10528 | cat >> $CONFIG_STATUS <<EOF |
| 10529 | |
| 10530 | CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"} |
| 10531 | EOF |
| 10532 | cat >> $CONFIG_STATUS <<\EOF |
| 10533 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 10534 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 10535 | case "$ac_file" in |
| 10536 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 10537 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 10538 | *) ac_file_in="${ac_file}.in" ;; |
| 10539 | esac |
| 10540 | |
| 10541 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 10542 | |
| 10543 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 10544 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 10545 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 10546 | # The file is in a subdirectory. |
| 10547 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 10548 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 10549 | # A "../" for each directory in $ac_dir_suffix. |
| 10550 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 10551 | else |
| 10552 | ac_dir_suffix= ac_dots= |
| 10553 | fi |
| 10554 | |
| 10555 | case "$ac_given_srcdir" in |
| 10556 | .) srcdir=. |
| 10557 | if test -z "$ac_dots"; then top_srcdir=. |
| 10558 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 10559 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 10560 | *) # Relative path. |
| 10561 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 10562 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 10563 | esac |
| 10564 | |
| 10565 | case "$ac_given_INSTALL" in |
| 10566 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 10567 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 10568 | esac |
| 10569 | |
| 10570 | echo creating "$ac_file" |
| 10571 | rm -f "$ac_file" |
| 10572 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 10573 | case "$ac_file" in |
| 10574 | *Makefile*) ac_comsub="1i\\ |
| 10575 | # $configure_input" ;; |
| 10576 | *) ac_comsub= ;; |
| 10577 | esac |
| 10578 | |
| 10579 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 10580 | sed -e "$ac_comsub |
| 10581 | s%@configure_input@%$configure_input%g |
| 10582 | s%@srcdir@%$srcdir%g |
| 10583 | s%@top_srcdir@%$top_srcdir%g |
| 10584 | s%@INSTALL@%$INSTALL%g |
| 10585 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 10586 | fi; done |
| 10587 | rm -f conftest.s* |
| 10588 | |
| 10589 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 10590 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 10591 | # |
| 10592 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 10593 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 10594 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
| 10595 | ac_dC='\3' |
| 10596 | ac_dD='%g' |
| 10597 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
| 10598 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 10599 | ac_uB='\([ ]\)%\1#\2define\3' |
| 10600 | ac_uC=' ' |
| 10601 | ac_uD='\4%g' |
| 10602 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 10603 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 10604 | ac_eB='$%\1#\2define\3' |
| 10605 | ac_eC=' ' |
| 10606 | ac_eD='%g' |
| 10607 | |
| 10608 | if test "${CONFIG_HEADERS+set}" != set; then |
| 10609 | EOF |
| 10610 | cat >> $CONFIG_STATUS <<EOF |
| 10611 | CONFIG_HEADERS="config.h:config.in" |
| 10612 | EOF |
| 10613 | cat >> $CONFIG_STATUS <<\EOF |
| 10614 | fi |
| 10615 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
| 10616 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 10617 | case "$ac_file" in |
| 10618 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 10619 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 10620 | *) ac_file_in="${ac_file}.in" ;; |
| 10621 | esac |
| 10622 | |
| 10623 | echo creating $ac_file |
| 10624 | |
| 10625 | rm -f conftest.frag conftest.in conftest.out |
| 10626 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 10627 | cat $ac_file_inputs > conftest.in |
| 10628 | |
| 10629 | EOF |
| 10630 | |
| 10631 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 10632 | # the proper values into config.h.in to produce config.h. And first: |
| 10633 | # Protect against being on the right side of a sed subst in config.status. |
| 10634 | # Protect against being in an unquoted here document in config.status. |
| 10635 | rm -f conftest.vals |
| 10636 | cat > conftest.hdr <<\EOF |
| 10637 | s/[\\&%]/\\&/g |
| 10638 | s%[\\$`]%\\&%g |
| 10639 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
| 10640 | s%ac_d%ac_u%gp |
| 10641 | s%ac_u%ac_e%gp |
| 10642 | EOF |
| 10643 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 10644 | rm -f conftest.hdr |
| 10645 | |
| 10646 | # This sed command replaces #undef with comments. This is necessary, for |
| 10647 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 10648 | # on some systems where configure will not decide to define it. |
| 10649 | cat >> conftest.vals <<\EOF |
| 10650 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 10651 | EOF |
| 10652 | |
| 10653 | # Break up conftest.vals because some shells have a limit on |
| 10654 | # the size of here documents, and old seds have small limits too. |
| 10655 | |
| 10656 | rm -f conftest.tail |
| 10657 | while : |
| 10658 | do |
| 10659 | ac_lines=`grep -c . conftest.vals` |
| 10660 | # grep -c gives empty output for an empty file on some AIX systems. |
| 10661 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 10662 | # Write a limited-size here document to conftest.frag. |
| 10663 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 10664 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 10665 | echo 'CEOF |
| 10666 | sed -f conftest.frag conftest.in > conftest.out |
| 10667 | rm -f conftest.in |
| 10668 | mv conftest.out conftest.in |
| 10669 | ' >> $CONFIG_STATUS |
| 10670 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 10671 | rm -f conftest.vals |
| 10672 | mv conftest.tail conftest.vals |
| 10673 | done |
| 10674 | rm -f conftest.vals |
| 10675 | |
| 10676 | cat >> $CONFIG_STATUS <<\EOF |
| 10677 | rm -f conftest.frag conftest.h |
| 10678 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
| 10679 | cat conftest.in >> conftest.h |
| 10680 | rm -f conftest.in |
| 10681 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
| 10682 | echo "$ac_file is unchanged" |
| 10683 | rm -f conftest.h |
| 10684 | else |
| 10685 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 10686 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 10687 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 10688 | # The file is in a subdirectory. |
| 10689 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 10690 | fi |
| 10691 | rm -f $ac_file |
| 10692 | mv conftest.h $ac_file |
| 10693 | fi |
| 10694 | fi; done |
| 10695 | |
| 10696 | EOF |
| 10697 | |
| 10698 | cat >> $CONFIG_STATUS <<EOF |
| 10699 | ac_sources="$files" |
| 10700 | ac_dests="$links" |
| 10701 | EOF |
| 10702 | |
| 10703 | cat >> $CONFIG_STATUS <<\EOF |
| 10704 | srcdir=$ac_given_srcdir |
| 10705 | while test -n "$ac_sources"; do |
| 10706 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* |
| 10707 | set $ac_sources; ac_source=$1; shift; ac_sources=$* |
| 10708 | |
| 10709 | echo "linking $srcdir/$ac_source to $ac_dest" |
| 10710 | |
| 10711 | if test ! -r $srcdir/$ac_source; then |
| 10712 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } |
| 10713 | fi |
| 10714 | rm -f $ac_dest |
| 10715 | |
| 10716 | # Make relative symlinks. |
| 10717 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 10718 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` |
| 10719 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then |
| 10720 | # The dest file is in a subdirectory. |
| 10721 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" |
| 10722 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" |
| 10723 | # A "../" for each directory in $ac_dest_dir_suffix. |
| 10724 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` |
| 10725 | else |
| 10726 | ac_dest_dir_suffix= ac_dots= |
| 10727 | fi |
| 10728 | |
| 10729 | case "$srcdir" in |
| 10730 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; |
| 10731 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; |
| 10732 | esac |
| 10733 | |
| 10734 | # Make a symlink if possible; otherwise try a hard link. |
| 10735 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || |
| 10736 | ln $srcdir/$ac_source $ac_dest; then : |
| 10737 | else |
| 10738 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } |
| 10739 | fi |
| 10740 | done |
| 10741 | EOF |
| 10742 | cat >> $CONFIG_STATUS <<EOF |
| 10743 | |
| 10744 | gdb_host_cpu=$gdb_host_cpu |
| 10745 | gdb_target_cpu=$gdb_target_cpu |
| 10746 | nativefile=$nativefile |
| 10747 | |
| 10748 | EOF |
| 10749 | cat >> $CONFIG_STATUS <<\EOF |
| 10750 | |
| 10751 | if test "${nativefile}" = ""; then |
| 10752 | < Makefile \ |
| 10753 | sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \ |
| 10754 | -e '/^NATDEPFILES[ ]*=/s/^/# /' \ |
| 10755 | | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \ |
| 10756 | > Makefile.tem |
| 10757 | mv -f Makefile.tem Makefile |
| 10758 | fi |
| 10759 | |
| 10760 | sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/, |
| 10761 | /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/, |
| 10762 | /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp |
| 10763 | mv -f Makefile.tmp Makefile |
| 10764 | |
| 10765 | |
| 10766 | case x$CONFIG_HEADERS in |
| 10767 | xconfig.h:config.in) |
| 10768 | echo > stamp-h ;; |
| 10769 | esac |
| 10770 | |
| 10771 | exit 0 |
| 10772 | EOF |
| 10773 | chmod +x $CONFIG_STATUS |
| 10774 | rm -fr confdefs* $ac_clean_files |
| 10775 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 10776 | |
| 10777 | if test "$no_recursion" != yes; then |
| 10778 | |
| 10779 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 10780 | ac_sub_configure_args= |
| 10781 | ac_prev= |
| 10782 | for ac_arg in $ac_configure_args; do |
| 10783 | if test -n "$ac_prev"; then |
| 10784 | ac_prev= |
| 10785 | continue |
| 10786 | fi |
| 10787 | case "$ac_arg" in |
| 10788 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 10789 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 10790 | ac_prev=cache_file ;; |
| 10791 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 10792 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 10793 | ;; |
| 10794 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 10795 | ac_prev=srcdir ;; |
| 10796 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 10797 | ;; |
| 10798 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
| 10799 | esac |
| 10800 | done |
| 10801 | |
| 10802 | for ac_config_dir in doc testsuite $configdirs; do |
| 10803 | |
| 10804 | # Do not complain, so a configure script can configure whichever |
| 10805 | # parts of a large source tree are present. |
| 10806 | if test ! -d $srcdir/$ac_config_dir; then |
| 10807 | continue |
| 10808 | fi |
| 10809 | |
| 10810 | echo configuring in $ac_config_dir |
| 10811 | |
| 10812 | case "$srcdir" in |
| 10813 | .) ;; |
| 10814 | *) |
| 10815 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
| 10816 | else |
| 10817 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } |
| 10818 | fi |
| 10819 | ;; |
| 10820 | esac |
| 10821 | |
| 10822 | ac_popdir=`pwd` |
| 10823 | cd $ac_config_dir |
| 10824 | |
| 10825 | # A "../" for each directory in /$ac_config_dir. |
| 10826 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` |
| 10827 | |
| 10828 | case "$srcdir" in |
| 10829 | .) # No --srcdir option. We are building in place. |
| 10830 | ac_sub_srcdir=$srcdir ;; |
| 10831 | /*) # Absolute path. |
| 10832 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; |
| 10833 | *) # Relative path. |
| 10834 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
| 10835 | esac |
| 10836 | |
| 10837 | # Check for guested configure; otherwise get Cygnus style configure. |
| 10838 | if test -f $ac_sub_srcdir/configure; then |
| 10839 | ac_sub_configure=$ac_sub_srcdir/configure |
| 10840 | elif test -f $ac_sub_srcdir/configure.in; then |
| 10841 | ac_sub_configure=$ac_configure |
| 10842 | else |
| 10843 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
| 10844 | ac_sub_configure= |
| 10845 | fi |
| 10846 | |
| 10847 | # The recursion is here. |
| 10848 | if test -n "$ac_sub_configure"; then |
| 10849 | |
| 10850 | # Make the cache file name correct relative to the subdirectory. |
| 10851 | case "$cache_file" in |
| 10852 | /*) ac_sub_cache_file=$cache_file ;; |
| 10853 | *) # Relative path. |
| 10854 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
| 10855 | esac |
| 10856 | case "$ac_given_INSTALL" in |
| 10857 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 10858 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 10859 | esac |
| 10860 | |
| 10861 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
| 10862 | # The eval makes quoting arguments work. |
| 10863 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
| 10864 | then : |
| 10865 | else |
| 10866 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } |
| 10867 | fi |
| 10868 | fi |
| 10869 | |
| 10870 | cd $ac_popdir |
| 10871 | done |
| 10872 | fi |
| 10873 | |
| 10874 | |
| 10875 | exit 0 |