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