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_default_prefix=/usr/local 15ac_help="$ac_help 16 --enable-debug creates debugging code [default=no]" 17ac_help="$ac_help 18 --enable-strict compiles with strict compiler options (may not work!)" 19ac_help="$ac_help 20 --enable-shared[=PKGS] build shared libraries [default=yes]" 21ac_help="$ac_help 22 --enable-static[=PKGS] build static libraries [default=no]" 23ac_help="$ac_help 24 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" 25ac_help="$ac_help 26 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 27ac_help="$ac_help 28 --disable-libtool-lock avoid locking (might break parallel builds)" 29ac_help="$ac_help 30 --with-pic try to use only PIC/non-PIC objects [default=use both]" 31ac_help="$ac_help 32 --with-extra-includes=DIR 33 adds non standard include paths" 34ac_help="$ac_help 35 --with-extra-libs=DIR adds non standard library paths" 36 37# Initialize some variables set by options. 38# The variables have the same names as the options, with 39# dashes changed to underlines. 40build=NONE 41cache_file=./config.cache 42exec_prefix=NONE 43host=NONE 44no_create= 45nonopt=NONE 46no_recursion= 47prefix=NONE 48program_prefix=NONE 49program_suffix=NONE 50program_transform_name=s,x,x, 51silent= 52site= 53srcdir= 54target=NONE 55verbose= 56x_includes=NONE 57x_libraries=NONE 58bindir='${exec_prefix}/bin' 59sbindir='${exec_prefix}/sbin' 60libexecdir='${exec_prefix}/libexec' 61datadir='${prefix}/share' 62sysconfdir='${prefix}/etc' 63sharedstatedir='${prefix}/com' 64localstatedir='${prefix}/var' 65libdir='${exec_prefix}/lib' 66includedir='${prefix}/include' 67oldincludedir='/usr/include' 68infodir='${prefix}/info' 69mandir='${prefix}/man' 70 71# Initialize some other variables. 72subdirs= 73MFLAGS= MAKEFLAGS= 74SHELL=${CONFIG_SHELL-/bin/sh} 75# Maximum number of lines to put in a shell here document. 76ac_max_here_lines=12 77 78ac_prev= 79for ac_option 80do 81 82 # If the previous option needs an argument, assign it. 83 if test -n "$ac_prev"; then 84 eval "$ac_prev=\$ac_option" 85 ac_prev= 86 continue 87 fi 88 89 case "$ac_option" in 90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 91 *) ac_optarg= ;; 92 esac 93 94 # Accept the important Cygnus configure options, so we can diagnose typos. 95 96 case "$ac_option" in 97 98 -bindir | --bindir | --bindi | --bind | --bin | --bi) 99 ac_prev=bindir ;; 100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 101 bindir="$ac_optarg" ;; 102 103 -build | --build | --buil | --bui | --bu) 104 ac_prev=build ;; 105 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 106 build="$ac_optarg" ;; 107 108 -cache-file | --cache-file | --cache-fil | --cache-fi \ 109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 110 ac_prev=cache_file ;; 111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 113 cache_file="$ac_optarg" ;; 114 115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 116 ac_prev=datadir ;; 117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 118 | --da=*) 119 datadir="$ac_optarg" ;; 120 121 -disable-* | --disable-*) 122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 123 # Reject names that are not valid shell variable names. 124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 126 fi 127 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 128 eval "enable_${ac_feature}=no" ;; 129 130 -enable-* | --enable-*) 131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 132 # Reject names that are not valid shell variable names. 133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 135 fi 136 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 137 case "$ac_option" in 138 *=*) ;; 139 *) ac_optarg=yes ;; 140 esac 141 eval "enable_${ac_feature}='$ac_optarg'" ;; 142 143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 145 | --exec | --exe | --ex) 146 ac_prev=exec_prefix ;; 147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 149 | --exec=* | --exe=* | --ex=*) 150 exec_prefix="$ac_optarg" ;; 151 152 -gas | --gas | --ga | --g) 153 # Obsolete; use --with-gas. 154 with_gas=yes ;; 155 156 -help | --help | --hel | --he) 157 # Omit some internal or obsolete options to make the list less imposing. 158 # This message is too long to be a string in the A/UX 3.1 sh. 159 cat << EOF 160Usage: configure [options] [host] 161Options: [defaults in brackets after descriptions] 162Configuration: 163 --cache-file=FILE cache test results in FILE 164 --help print this message 165 --no-create do not create output files 166 --quiet, --silent do not print \`checking...' messages 167 --version print the version of autoconf that created configure 168Directory and file names: 169 --prefix=PREFIX install architecture-independent files in PREFIX 170 [$ac_default_prefix] 171 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 172 [same as prefix] 173 --bindir=DIR user executables in DIR [EPREFIX/bin] 174 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 175 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 176 --datadir=DIR read-only architecture-independent data in DIR 177 [PREFIX/share] 178 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 179 --sharedstatedir=DIR modifiable architecture-independent data in DIR 180 [PREFIX/com] 181 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 182 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 183 --includedir=DIR C header files in DIR [PREFIX/include] 184 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 185 --infodir=DIR info documentation in DIR [PREFIX/info] 186 --mandir=DIR man documentation in DIR [PREFIX/man] 187 --srcdir=DIR find the sources in DIR [configure dir or ..] 188 --program-prefix=PREFIX prepend PREFIX to installed program names 189 --program-suffix=SUFFIX append SUFFIX to installed program names 190 --program-transform-name=PROGRAM 191 run sed PROGRAM on installed program names 192EOF 193 cat << EOF 194Host type: 195 --build=BUILD configure for building on BUILD [BUILD=HOST] 196 --host=HOST configure for HOST [guessed] 197 --target=TARGET configure for TARGET [TARGET=HOST] 198Features and packages: 199 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 200 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 201 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 202 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 203 --x-includes=DIR X include files are in DIR 204 --x-libraries=DIR X library files are in DIR 205EOF 206 if test -n "$ac_help"; then 207 echo "--enable and --with options recognized:$ac_help" 208 fi 209 exit 0 ;; 210 211 -host | --host | --hos | --ho) 212 ac_prev=host ;; 213 -host=* | --host=* | --hos=* | --ho=*) 214 host="$ac_optarg" ;; 215 216 -includedir | --includedir | --includedi | --included | --include \ 217 | --includ | --inclu | --incl | --inc) 218 ac_prev=includedir ;; 219 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 220 | --includ=* | --inclu=* | --incl=* | --inc=*) 221 includedir="$ac_optarg" ;; 222 223 -infodir | --infodir | --infodi | --infod | --info | --inf) 224 ac_prev=infodir ;; 225 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 226 infodir="$ac_optarg" ;; 227 228 -libdir | --libdir | --libdi | --libd) 229 ac_prev=libdir ;; 230 -libdir=* | --libdir=* | --libdi=* | --libd=*) 231 libdir="$ac_optarg" ;; 232 233 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 234 | --libexe | --libex | --libe) 235 ac_prev=libexecdir ;; 236 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 237 | --libexe=* | --libex=* | --libe=*) 238 libexecdir="$ac_optarg" ;; 239 240 -localstatedir | --localstatedir | --localstatedi | --localstated \ 241 | --localstate | --localstat | --localsta | --localst \ 242 | --locals | --local | --loca | --loc | --lo) 243 ac_prev=localstatedir ;; 244 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 245 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 246 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 247 localstatedir="$ac_optarg" ;; 248 249 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 250 ac_prev=mandir ;; 251 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 252 mandir="$ac_optarg" ;; 253 254 -nfp | --nfp | --nf) 255 # Obsolete; use --without-fp. 256 with_fp=no ;; 257 258 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 259 | --no-cr | --no-c) 260 no_create=yes ;; 261 262 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 263 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 264 no_recursion=yes ;; 265 266 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 267 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 268 | --oldin | --oldi | --old | --ol | --o) 269 ac_prev=oldincludedir ;; 270 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 271 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 272 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 273 oldincludedir="$ac_optarg" ;; 274 275 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 276 ac_prev=prefix ;; 277 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 278 prefix="$ac_optarg" ;; 279 280 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 281 | --program-pre | --program-pr | --program-p) 282 ac_prev=program_prefix ;; 283 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 284 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 285 program_prefix="$ac_optarg" ;; 286 287 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 288 | --program-suf | --program-su | --program-s) 289 ac_prev=program_suffix ;; 290 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 291 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 292 program_suffix="$ac_optarg" ;; 293 294 -program-transform-name | --program-transform-name \ 295 | --program-transform-nam | --program-transform-na \ 296 | --program-transform-n | --program-transform- \ 297 | --program-transform | --program-transfor \ 298 | --program-transfo | --program-transf \ 299 | --program-trans | --program-tran \ 300 | --progr-tra | --program-tr | --program-t) 301 ac_prev=program_transform_name ;; 302 -program-transform-name=* | --program-transform-name=* \ 303 | --program-transform-nam=* | --program-transform-na=* \ 304 | --program-transform-n=* | --program-transform-=* \ 305 | --program-transform=* | --program-transfor=* \ 306 | --program-transfo=* | --program-transf=* \ 307 | --program-trans=* | --program-tran=* \ 308 | --progr-tra=* | --program-tr=* | --program-t=*) 309 program_transform_name="$ac_optarg" ;; 310 311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 312 | -silent | --silent | --silen | --sile | --sil) 313 silent=yes ;; 314 315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 316 ac_prev=sbindir ;; 317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 318 | --sbi=* | --sb=*) 319 sbindir="$ac_optarg" ;; 320 321 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 323 | --sharedst | --shareds | --shared | --share | --shar \ 324 | --sha | --sh) 325 ac_prev=sharedstatedir ;; 326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 329 | --sha=* | --sh=*) 330 sharedstatedir="$ac_optarg" ;; 331 332 -site | --site | --sit) 333 ac_prev=site ;; 334 -site=* | --site=* | --sit=*) 335 site="$ac_optarg" ;; 336 337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 338 ac_prev=srcdir ;; 339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 340 srcdir="$ac_optarg" ;; 341 342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 343 | --syscon | --sysco | --sysc | --sys | --sy) 344 ac_prev=sysconfdir ;; 345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 347 sysconfdir="$ac_optarg" ;; 348 349 -target | --target | --targe | --targ | --tar | --ta | --t) 350 ac_prev=target ;; 351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 352 target="$ac_optarg" ;; 353 354 -v | -verbose | --verbose | --verbos | --verbo | --verb) 355 verbose=yes ;; 356 357 -version | --version | --versio | --versi | --vers) 358 echo "configure generated by autoconf version 2.13" 359 exit 0 ;; 360 361 -with-* | --with-*) 362 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 363 # Reject names that are not valid shell variable names. 364 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 366 fi 367 ac_package=`echo $ac_package| sed 's/-/_/g'` 368 case "$ac_option" in 369 *=*) ;; 370 *) ac_optarg=yes ;; 371 esac 372 eval "with_${ac_package}='$ac_optarg'" ;; 373 374 -without-* | --without-*) 375 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 376 # Reject names that are not valid shell variable names. 377 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 379 fi 380 ac_package=`echo $ac_package| sed 's/-/_/g'` 381 eval "with_${ac_package}=no" ;; 382 383 --x) 384 # Obsolete; use --with-x. 385 with_x=yes ;; 386 387 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 388 | --x-incl | --x-inc | --x-in | --x-i) 389 ac_prev=x_includes ;; 390 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 391 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 392 x_includes="$ac_optarg" ;; 393 394 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 395 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 396 ac_prev=x_libraries ;; 397 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 398 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 399 x_libraries="$ac_optarg" ;; 400 401 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 402 ;; 403 404 *) 405 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 406 echo "configure: warning: $ac_option: invalid host type" 1>&2 407 fi 408 if test "x$nonopt" != xNONE; then 409 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 410 fi 411 nonopt="$ac_option" 412 ;; 413 414 esac 415done 416 417if test -n "$ac_prev"; then 418 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 419fi 420 421trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 422 423# File descriptor usage: 424# 0 standard input 425# 1 file creation 426# 2 errors and warnings 427# 3 some systems may open it to /dev/tty 428# 4 used on the Kubota Titan 429# 6 checking for... messages and results 430# 5 compiler messages saved in config.log 431if test "$silent" = yes; then 432 exec 6>/dev/null 433else 434 exec 6>&1 435fi 436exec 5>./config.log 437 438echo "\ 439This file contains any messages produced by compilers while 440running configure, to aid debugging if configure makes a mistake. 441" 1>&5 442 443# Strip out --no-create and --no-recursion so they do not pile up. 444# Also quote any args containing shell metacharacters. 445ac_configure_args= 446for ac_arg 447do 448 case "$ac_arg" in 449 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 450 | --no-cr | --no-c) ;; 451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 454 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 455 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 456 esac 457done 458 459# NLS nuisances. 460# Only set these to C if already set. These must not be set unconditionally 461# because not all systems understand e.g. LANG=C (notably SCO). 462# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 463# Non-C LC_CTYPE values break the ctype check. 464if test "${LANG+set}" = set; then LANG=C; export LANG; fi 465if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 466if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 467if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 468 469# confdefs.h avoids OS command line length limits that DEFS can exceed. 470rm -rf conftest* confdefs.h 471# AIX cpp loses on an empty file, so make sure it contains at least a newline. 472echo > confdefs.h 473 474# A filename unique to this package, relative to the directory that 475# configure is in, which we can look for to find out if srcdir is correct. 476ac_unique_file=acinclude.m4 477 478# Find the source files, if location was not specified. 479if test -z "$srcdir"; then 480 ac_srcdir_defaulted=yes 481 # Try the directory containing this script, then its parent. 482 ac_prog=$0 483 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 484 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 485 srcdir=$ac_confdir 486 if test ! -r $srcdir/$ac_unique_file; then 487 srcdir=.. 488 fi 489else 490 ac_srcdir_defaulted=no 491fi 492if test ! -r $srcdir/$ac_unique_file; then 493 if test "$ac_srcdir_defaulted" = yes; then 494 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 495 else 496 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 497 fi 498fi 499srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 500 501# Prefer explicitly selected file to automatically selected ones. 502if test -z "$CONFIG_SITE"; then 503 if test "x$prefix" != xNONE; then 504 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 505 else 506 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 507 fi 508fi 509for ac_site_file in $CONFIG_SITE; do 510 if test -r "$ac_site_file"; then 511 echo "loading site script $ac_site_file" 512 . "$ac_site_file" 513 fi 514done 515 516if test -r "$cache_file"; then 517 echo "loading cache $cache_file" 518 . $cache_file 519else 520 echo "creating cache $cache_file" 521 > $cache_file 522fi 523 524ac_ext=c 525# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 526ac_cpp='$CPP $CPPFLAGS' 527ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 528ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 529cross_compiling=$ac_cv_prog_cc_cross 530 531ac_exeext= 532ac_objext=o 533if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 534 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 535 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 536 ac_n= ac_c=' 537' ac_t=' ' 538 else 539 ac_n=-n ac_c= ac_t= 540 fi 541else 542 ac_n= ac_c='\c' ac_t= 543fi 544 545 546 547 548ac_aux_dir= 549for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 550 if test -f $ac_dir/install-sh; then 551 ac_aux_dir=$ac_dir 552 ac_install_sh="$ac_aux_dir/install-sh -c" 553 break 554 elif test -f $ac_dir/install.sh; then 555 ac_aux_dir=$ac_dir 556 ac_install_sh="$ac_aux_dir/install.sh -c" 557 break 558 fi 559done 560if test -z "$ac_aux_dir"; then 561 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 562fi 563ac_config_guess=$ac_aux_dir/config.guess 564ac_config_sub=$ac_aux_dir/config.sub 565ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 566 567 568# Do some error checking and defaulting for the host and target type. 569# The inputs are: 570# configure --host=HOST --target=TARGET --build=BUILD NONOPT 571# 572# The rules are: 573# 1. You are not allowed to specify --host, --target, and nonopt at the 574# same time. 575# 2. Host defaults to nonopt. 576# 3. If nonopt is not specified, then host defaults to the current host, 577# as determined by config.guess. 578# 4. Target and build default to nonopt. 579# 5. If nonopt is not specified, then target and build default to host. 580 581# The aliases save the names the user supplied, while $host etc. 582# will get canonicalized. 583case $host---$target---$nonopt in 584NONE---*---* | *---NONE---* | *---*---NONE) ;; 585*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 586esac 587 588 589# Make sure we can run config.sub. 590if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 591else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 592fi 593 594echo $ac_n "checking host system type""... $ac_c" 1>&6 595echo "configure:596: checking host system type" >&5 596 597host_alias=$host 598case "$host_alias" in 599NONE) 600 case $nonopt in 601 NONE) 602 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 603 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 604 fi ;; 605 *) host_alias=$nonopt ;; 606 esac ;; 607esac 608 609host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 610host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 611host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 612host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 613echo "$ac_t""$host" 1>&6 614 615echo $ac_n "checking target system type""... $ac_c" 1>&6 616echo "configure:617: checking target system type" >&5 617 618target_alias=$target 619case "$target_alias" in 620NONE) 621 case $nonopt in 622 NONE) target_alias=$host_alias ;; 623 *) target_alias=$nonopt ;; 624 esac ;; 625esac 626 627target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 628target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 629target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 630target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 631echo "$ac_t""$target" 1>&6 632 633echo $ac_n "checking build system type""... $ac_c" 1>&6 634echo "configure:635: checking build system type" >&5 635 636build_alias=$build 637case "$build_alias" in 638NONE) 639 case $nonopt in 640 NONE) build_alias=$host_alias ;; 641 *) build_alias=$nonopt ;; 642 esac ;; 643esac 644 645build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 646build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 647build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 648build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 649echo "$ac_t""$build" 1>&6 650 651test "$host_alias" != "$target_alias" && 652 test "$program_prefix$program_suffix$program_transform_name" = \ 653 NONENONEs,x,x, && 654 program_prefix=${target_alias}- 655 656if test "$program_transform_name" = s,x,x,; then 657 program_transform_name= 658else 659 # Double any \ or $. echo might interpret backslashes. 660 cat <<\EOF_SED > conftestsed 661s,\\,\\\\,g; s,\$,$$,g 662EOF_SED 663 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 664 rm -f conftestsed 665fi 666test "$program_prefix" != NONE && 667 program_transform_name="s,^,${program_prefix},; $program_transform_name" 668# Use a double $ so make ignores it. 669test "$program_suffix" != NONE && 670 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 671 672# sed with no file args requires a program. 673test "$program_transform_name" = "" && program_transform_name="s,x,x," 674 675 676# Find a good install program. We prefer a C program (faster), 677# so one script is as good as another. But avoid the broken or 678# incompatible versions: 679# SysV /etc/install, /usr/sbin/install 680# SunOS /usr/etc/install 681# IRIX /sbin/install 682# AIX /bin/install 683# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 684# AFS /usr/afsws/bin/install, which mishandles nonexistent args 685# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 686# ./install, which can be erroneously created by make from ./install.sh. 687echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 688echo "configure:689: checking for a BSD compatible install" >&5 689if test -z "$INSTALL"; then 690if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 691 echo $ac_n "(cached) $ac_c" 1>&6 692else 693 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 694 for ac_dir in $PATH; do 695 # Account for people who put trailing slashes in PATH elements. 696 case "$ac_dir/" in 697 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 698 *) 699 # OSF1 and SCO ODT 3.0 have their own names for install. 700 # Don't use installbsd from OSF since it installs stuff as root 701 # by default. 702 for ac_prog in ginstall scoinst install; do 703 if test -f $ac_dir/$ac_prog; then 704 if test $ac_prog = install && 705 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 706 # AIX install. It has an incompatible calling convention. 707 : 708 else 709 ac_cv_path_install="$ac_dir/$ac_prog -c" 710 break 2 711 fi 712 fi 713 done 714 ;; 715 esac 716 done 717 IFS="$ac_save_IFS" 718 719fi 720 if test "${ac_cv_path_install+set}" = set; then 721 INSTALL="$ac_cv_path_install" 722 else 723 # As a last resort, use the slow shell script. We don't cache a 724 # path for INSTALL within a source directory, because that will 725 # break other packages using the cache if that directory is 726 # removed, or if the path is relative. 727 INSTALL="$ac_install_sh" 728 fi 729fi 730echo "$ac_t""$INSTALL" 1>&6 731 732# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 733# It thinks the first close brace ends the variable substitution. 734test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 735 736test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 737 738test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 739 740echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 741echo "configure:742: checking whether build environment is sane" >&5 742# Just in case 743sleep 1 744echo timestamp > conftestfile 745# Do `set' in a subshell so we don't clobber the current shell's 746# arguments. Must try -L first in case configure is actually a 747# symlink; some systems play weird games with the mod time of symlinks 748# (eg FreeBSD returns the mod time of the symlink's containing 749# directory). 750if ( 751 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 752 if test "$*" = "X"; then 753 # -L didn't work. 754 set X `ls -t $srcdir/configure conftestfile` 755 fi 756 if test "$*" != "X $srcdir/configure conftestfile" \ 757 && test "$*" != "X conftestfile $srcdir/configure"; then 758 759 # If neither matched, then we have a broken ls. This can happen 760 # if, for instance, CONFIG_SHELL is bash and it inherits a 761 # broken ls alias from the environment. This has actually 762 # happened. Such a system could not be considered "sane". 763 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 764alias in your environment" 1>&2; exit 1; } 765 fi 766 767 test "$2" = conftestfile 768 ) 769then 770 # Ok. 771 : 772else 773 { echo "configure: error: newly created file is older than distributed files! 774Check your system clock" 1>&2; exit 1; } 775fi 776rm -f conftest* 777echo "$ac_t""yes" 1>&6 778echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 779echo "configure:780: checking whether ${MAKE-make} sets \${MAKE}" >&5 780set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 781if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 782 echo $ac_n "(cached) $ac_c" 1>&6 783else 784 cat > conftestmake <<\EOF 785all: 786 @echo 'ac_maketemp="${MAKE}"' 787EOF 788# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 789eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 790if test -n "$ac_maketemp"; then 791 eval ac_cv_prog_make_${ac_make}_set=yes 792else 793 eval ac_cv_prog_make_${ac_make}_set=no 794fi 795rm -f conftestmake 796fi 797if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 798 echo "$ac_t""yes" 1>&6 799 SET_MAKE= 800else 801 echo "$ac_t""no" 1>&6 802 SET_MAKE="MAKE=${MAKE-make}" 803fi 804 805 806PACKAGE=sectar 807 808VERSION=1.02 809 810if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 811 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 812fi 813cat >> confdefs.h <<EOF 814#define PACKAGE "$PACKAGE" 815EOF 816 817cat >> confdefs.h <<EOF 818#define VERSION "$VERSION" 819EOF 820 821 822 823missing_dir=`cd $ac_aux_dir && pwd` 824echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 825echo "configure:826: checking for working aclocal" >&5 826# Run test in a subshell; some versions of sh will print an error if 827# an executable is not found, even if stderr is redirected. 828# Redirect stdin to placate older versions of autoconf. Sigh. 829if (aclocal --version) < /dev/null > /dev/null 2>&1; then 830 ACLOCAL=aclocal 831 echo "$ac_t""found" 1>&6 832else 833 ACLOCAL="$missing_dir/missing aclocal" 834 echo "$ac_t""missing" 1>&6 835fi 836 837echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 838echo "configure:839: checking for working autoconf" >&5 839# Run test in a subshell; some versions of sh will print an error if 840# an executable is not found, even if stderr is redirected. 841# Redirect stdin to placate older versions of autoconf. Sigh. 842if (autoconf --version) < /dev/null > /dev/null 2>&1; then 843 AUTOCONF=autoconf 844 echo "$ac_t""found" 1>&6 845else 846 AUTOCONF="$missing_dir/missing autoconf" 847 echo "$ac_t""missing" 1>&6 848fi 849 850echo $ac_n "checking for working automake""... $ac_c" 1>&6 851echo "configure:852: checking for working automake" >&5 852# Run test in a subshell; some versions of sh will print an error if 853# an executable is not found, even if stderr is redirected. 854# Redirect stdin to placate older versions of autoconf. Sigh. 855if (automake --version) < /dev/null > /dev/null 2>&1; then 856 AUTOMAKE=automake 857 echo "$ac_t""found" 1>&6 858else 859 AUTOMAKE="$missing_dir/missing automake" 860 echo "$ac_t""missing" 1>&6 861fi 862 863echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 864echo "configure:865: checking for working autoheader" >&5 865# Run test in a subshell; some versions of sh will print an error if 866# an executable is not found, even if stderr is redirected. 867# Redirect stdin to placate older versions of autoconf. Sigh. 868if (autoheader --version) < /dev/null > /dev/null 2>&1; then 869 AUTOHEADER=autoheader 870 echo "$ac_t""found" 1>&6 871else 872 AUTOHEADER="$missing_dir/missing autoheader" 873 echo "$ac_t""missing" 1>&6 874fi 875 876echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 877echo "configure:878: checking for working makeinfo" >&5 878# Run test in a subshell; some versions of sh will print an error if 879# an executable is not found, even if stderr is redirected. 880# Redirect stdin to placate older versions of autoconf. Sigh. 881if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 882 MAKEINFO=makeinfo 883 echo "$ac_t""found" 1>&6 884else 885 MAKEINFO="$missing_dir/missing makeinfo" 886 echo "$ac_t""missing" 1>&6 887fi 888 889 890 891 892if test "x$prefix" = "xNONE"; then 893 prefix=$ac_default_prefix 894 ac_configure_args="$ac_configure_args --prefix $prefix" 895fi 896 897 898 899 900 901 902 903 904 # Check whether --enable-debug or --disable-debug was given. 905if test "${enable_debug+set}" = set; then 906 enableval="$enable_debug" 907 908 if test $enableval = "no"; then 909 kde_use_debug_code="no" 910 kde_use_debug_define=yes 911 else 912 kde_use_debug_code="yes" 913 kde_use_debug_define=no 914 fi 915 916else 917 kde_use_debug_code="no" 918 kde_use_debug_define=no 919 920fi 921 922 923 # Check whether --enable-strict or --disable-strict was given. 924if test "${enable_strict+set}" = set; then 925 enableval="$enable_strict" 926 927 if test $enableval = "no"; then 928 kde_use_strict_options="no" 929 else 930 kde_use_strict_options="yes" 931 fi 932 933else 934 kde_use_strict_options="no" 935fi 936 937 938 echo $ac_n "checking for a C-Compiler""... $ac_c" 1>&6 939echo "configure:940: checking for a C-Compiler" >&5 940 echo "$ac_t""$CC" 1>&6 941 942 if test -z "$CC"; then # Extract the first word of "gcc", so it can be a program name with args. 943set dummy gcc; ac_word=$2 944echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 945echo "configure:946: checking for $ac_word" >&5 946if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 947 echo $ac_n "(cached) $ac_c" 1>&6 948else 949 if test -n "$CC"; then 950 ac_cv_prog_CC="$CC" # Let the user override the test. 951else 952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 953 ac_dummy="$PATH" 954 for ac_dir in $ac_dummy; do 955 test -z "$ac_dir" && ac_dir=. 956 if test -f $ac_dir/$ac_word; then 957 ac_cv_prog_CC="gcc" 958 break 959 fi 960 done 961 IFS="$ac_save_ifs" 962fi 963fi 964CC="$ac_cv_prog_CC" 965if test -n "$CC"; then 966 echo "$ac_t""$CC" 1>&6 967else 968 echo "$ac_t""no" 1>&6 969fi 970 fi 971 if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. 972set dummy cc; ac_word=$2 973echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 974echo "configure:975: checking for $ac_word" >&5 975if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 976 echo $ac_n "(cached) $ac_c" 1>&6 977else 978 if test -n "$CC"; then 979 ac_cv_prog_CC="$CC" # Let the user override the test. 980else 981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 982 ac_prog_rejected=no 983 ac_dummy="$PATH" 984 for ac_dir in $ac_dummy; do 985 test -z "$ac_dir" && ac_dir=. 986 if test -f $ac_dir/$ac_word; then 987 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 988 ac_prog_rejected=yes 989 continue 990 fi 991 ac_cv_prog_CC="cc" 992 break 993 fi 994 done 995 IFS="$ac_save_ifs" 996if test $ac_prog_rejected = yes; then 997 # We found a bogon in the path, so make sure we never use it. 998 set dummy $ac_cv_prog_CC 999 shift 1000 if test $# -gt 0; then 1001 # We chose a different compiler from the bogus one. 1002 # However, it has the same basename, so the bogon will be chosen 1003 # first if we set CC to just the basename; use the full file name. 1004 shift 1005 set dummy "$ac_dir/$ac_word" "$@" 1006 shift 1007 ac_cv_prog_CC="$@" 1008 fi 1009fi 1010fi 1011fi 1012CC="$ac_cv_prog_CC" 1013if test -n "$CC"; then 1014 echo "$ac_t""$CC" 1>&6 1015else 1016 echo "$ac_t""no" 1>&6 1017fi 1018 fi 1019 if test -z "$CC"; then # Extract the first word of "xlc", so it can be a program name with args. 1020set dummy xlc; ac_word=$2 1021echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1022echo "configure:1023: checking for $ac_word" >&5 1023if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1024 echo $ac_n "(cached) $ac_c" 1>&6 1025else 1026 if test -n "$CC"; then 1027 ac_cv_prog_CC="$CC" # Let the user override the test. 1028else 1029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1030 ac_dummy="$PATH" 1031 for ac_dir in $ac_dummy; do 1032 test -z "$ac_dir" && ac_dir=. 1033 if test -f $ac_dir/$ac_word; then 1034 ac_cv_prog_CC="xlc" 1035 break 1036 fi 1037 done 1038 IFS="$ac_save_ifs" 1039fi 1040fi 1041CC="$ac_cv_prog_CC" 1042if test -n "$CC"; then 1043 echo "$ac_t""$CC" 1>&6 1044else 1045 echo "$ac_t""no" 1>&6 1046fi 1047 fi 1048 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1049 1050 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1051echo "configure:1052: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1052 1053ac_ext=c 1054# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1055ac_cpp='$CPP $CPPFLAGS' 1056ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1057ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1058cross_compiling=$ac_cv_prog_cc_cross 1059 1060cat > conftest.$ac_ext << EOF 1061 1062#line 1063 "configure" 1063#include "confdefs.h" 1064 1065main(){return(0);} 1066EOF 1067if { (eval echo configure:1068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1068 ac_cv_prog_cc_works=yes 1069 # If we can't run a trivial program, we are probably using a cross compiler. 1070 if (./conftest; exit) 2>/dev/null; then 1071 ac_cv_prog_cc_cross=no 1072 else 1073 ac_cv_prog_cc_cross=yes 1074 fi 1075else 1076 echo "configure: failed program was:" >&5 1077 cat conftest.$ac_ext >&5 1078 ac_cv_prog_cc_works=no 1079fi 1080rm -fr conftest* 1081ac_ext=c 1082# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1083ac_cpp='$CPP $CPPFLAGS' 1084ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1085ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1086cross_compiling=$ac_cv_prog_cc_cross 1087 1088echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1089if test $ac_cv_prog_cc_works = no; then 1090 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1091fi 1092echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1093echo "configure:1094: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1094echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1095cross_compiling=$ac_cv_prog_cc_cross 1096 1097 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1098echo "configure:1099: checking whether we are using GNU C" >&5 1099if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1100 echo $ac_n "(cached) $ac_c" 1>&6 1101else 1102 cat > conftest.c <<EOF 1103#ifdef __GNUC__ 1104 yes; 1105#endif 1106EOF 1107if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1108 ac_cv_prog_gcc=yes 1109else 1110 ac_cv_prog_gcc=no 1111fi 1112fi 1113 1114echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1115 1116 if test $ac_cv_prog_gcc = yes; then 1117 GCC=yes 1118 else 1119 GCC= 1120 fi 1121 1122 if test -z "$CFLAGS"; then 1123 if test "$kde_use_debug_code" = "yes"; then 1124 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1125echo "configure:1126: checking whether ${CC-cc} accepts -g" >&5 1126if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1127 echo $ac_n "(cached) $ac_c" 1>&6 1128else 1129 echo 'void f(){}' > conftest.c 1130if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1131 ac_cv_prog_cc_g=yes 1132else 1133 ac_cv_prog_cc_g=no 1134fi 1135rm -f conftest* 1136 1137fi 1138 1139echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1140 if test $ac_cv_prog_cc_g = yes; then 1141 CFLAGS="-g" 1142 fi 1143 else 1144 if test "$GCC" = "yes"; then 1145 CFLAGS="-O2" 1146 else 1147 CFLAGS="" 1148 fi 1149 if test "$kde_use_debug_define" = "yes"; then 1150 CFLAGS="$CFLAGS -DNDEBUG" 1151 fi 1152 fi 1153 1154 if test "$GCC" = "yes"; then 1155 CFLAGS="$CFLAGS" 1156 1157 if test "$kde_use_strict_options" = "yes"; then 1158 CFLAGS="$CFLAGS -W -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" 1159 fi 1160 fi 1161 1162 fi 1163 1164 case "$host" in 1165 *-*-sysv4.2uw*) CFLAGS="$CFLAGS -D_UNIXWARE";; 1166 esac 1167 1168 if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then 1169 LDFLAGS="-s" 1170 fi 1171 1172 1173 1174 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1175echo "configure:1176: checking how to run the C preprocessor" >&5 1176 # On Suns, sometimes $CPP names a directory. 1177 if test -n "$CPP" && test -d "$CPP"; then 1178 CPP= 1179 fi 1180 if test -z "$CPP"; then 1181 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1182 echo $ac_n "(cached) $ac_c" 1>&6 1183else 1184 # This must be in double quotes, not single quotes, because CPP may get 1185 # substituted into the Makefile and "${CC-cc}" will confuse make. 1186 CPP="${CC-cc} -E" 1187 # On the NeXT, cc -E runs the code through the compiler's parser, 1188 # not just through cpp. 1189 cat > conftest.$ac_ext <<EOF 1190#line 1191 "configure" 1191#include "confdefs.h" 1192#include <assert.h> 1193 Syntax Error 1194EOF 1195ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1196{ (eval echo configure:1197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1197ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1198if test -z "$ac_err"; then 1199 : 1200else 1201 echo "$ac_err" >&5 1202 echo "configure: failed program was:" >&5 1203 cat conftest.$ac_ext >&5 1204 rm -rf conftest* 1205 CPP="${CC-cc} -E -traditional-cpp" 1206 cat > conftest.$ac_ext <<EOF 1207#line 1208 "configure" 1208#include "confdefs.h" 1209#include <assert.h> 1210 Syntax Error 1211EOF 1212ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1213{ (eval echo configure:1214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1214ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1215if test -z "$ac_err"; then 1216 : 1217else 1218 echo "$ac_err" >&5 1219 echo "configure: failed program was:" >&5 1220 cat conftest.$ac_ext >&5 1221 rm -rf conftest* 1222 CPP=/lib/cpp 1223fi 1224rm -f conftest* 1225fi 1226rm -f conftest* 1227 ac_cv_prog_CPP="$CPP" 1228fi 1229 CPP="$ac_cv_prog_CPP" 1230 else 1231 ac_cv_prog_CPP="$CPP" 1232 fi 1233 echo "$ac_t""$CPP" 1>&6 1234 1235 1236# Check whether --enable-shared or --disable-shared was given. 1237if test "${enable_shared+set}" = set; then 1238 enableval="$enable_shared" 1239 p=${PACKAGE-default} 1240case "$enableval" in 1241yes) enable_shared=yes ;; 1242no) enable_shared=no ;; 1243*) 1244 enable_shared=no 1245 # Look at the argument we got. We use all the common list separators. 1246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1247 for pkg in $enableval; do 1248 if test "X$pkg" = "X$p"; then 1249 enable_shared=yes 1250 fi 1251 done 1252 IFS="$ac_save_ifs" 1253 ;; 1254esac 1255else 1256 enable_shared=yes 1257fi 1258 1259 1260# Check whether --enable-static or --disable-static was given. 1261if test "${enable_static+set}" = set; then 1262 enableval="$enable_static" 1263 p=${PACKAGE-default} 1264case "$enableval" in 1265yes) enable_static=yes ;; 1266no) enable_static=no ;; 1267*) 1268 enable_static=no 1269 # Look at the argument we got. We use all the common list separators. 1270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1271 for pkg in $enableval; do 1272 if test "X$pkg" = "X$p"; then 1273 enable_static=yes 1274 fi 1275 done 1276 IFS="$ac_save_ifs" 1277 ;; 1278esac 1279else 1280 enable_static=no 1281fi 1282 1283 1284if test -z "$LIBTOOL"; then 1285 1286 ac_ext=c 1287# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1288ac_cpp='$CPP $CPPFLAGS' 1289ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1290ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1291cross_compiling=$ac_cv_prog_cc_cross 1292 1293 1294 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 1295echo "configure:1296: checking for Cygwin environment" >&5 1296if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 1297 echo $ac_n "(cached) $ac_c" 1>&6 1298else 1299 cat > conftest.$ac_ext <<EOF 1300#line 1301 "configure" 1301#include "confdefs.h" 1302 1303int main() { 1304 1305#ifndef __CYGWIN__ 1306#define __CYGWIN__ __CYGWIN32__ 1307#endif 1308return __CYGWIN__; 1309; return 0; } 1310EOF 1311if { (eval echo configure:1312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1312 rm -rf conftest* 1313 ac_cv_cygwin=yes 1314else 1315 echo "configure: failed program was:" >&5 1316 cat conftest.$ac_ext >&5 1317 rm -rf conftest* 1318 ac_cv_cygwin=no 1319fi 1320rm -f conftest* 1321rm -f conftest* 1322fi 1323 1324echo "$ac_t""$ac_cv_cygwin" 1>&6 1325CYGWIN= 1326test "$ac_cv_cygwin" = yes && CYGWIN=yes 1327echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 1328echo "configure:1329: checking for mingw32 environment" >&5 1329if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 1330 echo $ac_n "(cached) $ac_c" 1>&6 1331else 1332 cat > conftest.$ac_ext <<EOF 1333#line 1334 "configure" 1334#include "confdefs.h" 1335 1336int main() { 1337return __MINGW32__; 1338; return 0; } 1339EOF 1340if { (eval echo configure:1341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1341 rm -rf conftest* 1342 ac_cv_mingw32=yes 1343else 1344 echo "configure: failed program was:" >&5 1345 cat conftest.$ac_ext >&5 1346 rm -rf conftest* 1347 ac_cv_mingw32=no 1348fi 1349rm -f conftest* 1350rm -f conftest* 1351fi 1352 1353echo "$ac_t""$ac_cv_mingw32" 1>&6 1354MINGW32= 1355test "$ac_cv_mingw32" = yes && MINGW32=yes 1356# Check whether --enable-fast-install or --disable-fast-install was given. 1357if test "${enable_fast_install+set}" = set; then 1358 enableval="$enable_fast_install" 1359 p=${PACKAGE-default} 1360case "$enableval" in 1361yes) enable_fast_install=yes ;; 1362no) enable_fast_install=no ;; 1363*) 1364 enable_fast_install=no 1365 # Look at the argument we got. We use all the common list separators. 1366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1367 for pkg in $enableval; do 1368 if test "X$pkg" = "X$p"; then 1369 enable_fast_install=yes 1370 fi 1371 done 1372 IFS="$ac_save_ifs" 1373 ;; 1374esac 1375else 1376 enable_fast_install=yes 1377fi 1378 1379# Check whether --with-gnu-ld or --without-gnu-ld was given. 1380if test "${with_gnu_ld+set}" = set; then 1381 withval="$with_gnu_ld" 1382 test "$withval" = no || with_gnu_ld=yes 1383else 1384 with_gnu_ld=no 1385fi 1386 1387ac_prog=ld 1388if test "$ac_cv_prog_gcc" = yes; then 1389 # Check if gcc -print-prog-name=ld gives a path. 1390 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 1391echo "configure:1392: checking for ld used by GCC" >&5 1392 case $lt_target in 1393 *-*-mingw*) 1394 # gcc leaves a trailing carriage return which upsets mingw 1395 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 1396 *) 1397 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 1398 esac 1399 case "$ac_prog" in 1400 # Accept absolute paths. 1401 [\\/]* | [A-Za-z]:[\\/]*) 1402 re_direlt='/[^/][^/]*/\.\./' 1403 # Canonicalize the path of ld 1404 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 1405 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 1406 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 1407 done 1408 test -z "$LD" && LD="$ac_prog" 1409 ;; 1410 "") 1411 # If it fails, then pretend we aren't using GCC. 1412 ac_prog=ld 1413 ;; 1414 *) 1415 # If it is relative, then search for the first ld in PATH. 1416 with_gnu_ld=unknown 1417 ;; 1418 esac 1419elif test "$with_gnu_ld" = yes; then 1420 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 1421echo "configure:1422: checking for GNU ld" >&5 1422else 1423 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 1424echo "configure:1425: checking for non-GNU ld" >&5 1425fi 1426if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then 1427 echo $ac_n "(cached) $ac_c" 1>&6 1428else 1429 if test -z "$LD"; then 1430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 1431 for ac_dir in $PATH; do 1432 test -z "$ac_dir" && ac_dir=. 1433 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 1434 ac_cv_path_LD="$ac_dir/$ac_prog" 1435 # Check to see if the program is GNU ld. I'd rather use --version, 1436 # but apparently some GNU ld's only accept -v. 1437 # Break only if it was the GNU/non-GNU ld that we prefer. 1438 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 1439 test "$with_gnu_ld" != no && break 1440 else 1441 test "$with_gnu_ld" != yes && break 1442 fi 1443 fi 1444 done 1445 IFS="$ac_save_ifs" 1446else 1447 ac_cv_path_LD="$LD" # Let the user override the test with a path. 1448fi 1449fi 1450 1451LD="$ac_cv_path_LD" 1452if test -n "$LD"; then 1453 echo "$ac_t""$LD" 1>&6 1454else 1455 echo "$ac_t""no" 1>&6 1456fi 1457test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 1458echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 1459echo "configure:1460: checking if the linker ($LD) is GNU ld" >&5 1460if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then 1461 echo $ac_n "(cached) $ac_c" 1>&6 1462else 1463 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 1464if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 1465 ac_cv_prog_gnu_ld=yes 1466else 1467 ac_cv_prog_gnu_ld=no 1468fi 1469fi 1470 1471echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 1472with_gnu_ld=$ac_cv_prog_gnu_ld 1473 1474 1475echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 1476echo "configure:1477: checking for $LD option to reload object files" >&5 1477if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then 1478 echo $ac_n "(cached) $ac_c" 1>&6 1479else 1480 lt_cv_ld_reload_flag='-r' 1481fi 1482 1483echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 1484reload_flag=$lt_cv_ld_reload_flag 1485test -n "$reload_flag" && reload_flag=" $reload_flag" 1486 1487echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 1488echo "configure:1489: checking for BSD-compatible nm" >&5 1489if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then 1490 echo $ac_n "(cached) $ac_c" 1>&6 1491else 1492 if test -n "$NM"; then 1493 # Let the user override the test. 1494 ac_cv_path_NM="$NM" 1495else 1496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 1497 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 1498 test -z "$ac_dir" && ac_dir=. 1499 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then 1500 # Check to see if the nm accepts a BSD-compat flag. 1501 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 1502 # nm: unknown option "B" ignored 1503 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 1504 ac_cv_path_NM="$ac_dir/nm -B" 1505 break 1506 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 1507 ac_cv_path_NM="$ac_dir/nm -p" 1508 break 1509 else 1510 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but 1511 continue # so that we can try to find one that supports BSD flags 1512 fi 1513 fi 1514 done 1515 IFS="$ac_save_ifs" 1516 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm 1517fi 1518fi 1519 1520NM="$ac_cv_path_NM" 1521echo "$ac_t""$NM" 1>&6 1522 1523echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1524echo "configure:1525: checking whether ln -s works" >&5 1525if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1526 echo $ac_n "(cached) $ac_c" 1>&6 1527else 1528 rm -f conftestdata 1529if ln -s X conftestdata 2>/dev/null 1530then 1531 rm -f conftestdata 1532 ac_cv_prog_LN_S="ln -s" 1533else 1534 ac_cv_prog_LN_S=ln 1535fi 1536fi 1537LN_S="$ac_cv_prog_LN_S" 1538if test "$ac_cv_prog_LN_S" = "ln -s"; then 1539 echo "$ac_t""yes" 1>&6 1540else 1541 echo "$ac_t""no" 1>&6 1542fi 1543 1544echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 1545echo "configure:1546: checking how to recognise dependant libraries" >&5 1546if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then 1547 echo $ac_n "(cached) $ac_c" 1>&6 1548else 1549 lt_cv_file_magic_cmd='${MAGIC}' 1550lt_cv_file_magic_test_file= 1551lt_cv_deplibs_check_method='unknown' 1552# Need to set the preceding variable on all platforms that support 1553# interlibrary dependencies. 1554# 'none' -- dependencies not supported. 1555# `unknown' -- same as none, but documents that we really don't know. 1556# 'pass_all' -- all dependencies passed with no checks. 1557# 'test_compile' -- check by making test program. 1558# 'file_magic [regex]' -- check by looking for files in library path 1559# which responds to the $file_magic_cmd with a given egrep regex. 1560# If you have `file' or equivalent on your system and you're not sure 1561# whether `pass_all' will *always* work, you probably want this one. 1562 1563case "$host_os" in 1564aix4* | beos*) 1565 lt_cv_deplibs_check_method=pass_all 1566 ;; 1567 1568bsdi4*) 1569 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 1570 lt_cv_file_magic_test_file=/shlib/libc.so 1571 ;; 1572 1573cygwin* | mingw*) 1574 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 1575 lt_cv_file_magic_cmd='${OBJDUMP} -f' 1576 ;; 1577 1578freebsd*) 1579 lt_cv_deplibs_check_method=pass_all 1580 ;; 1581 1582gnu*) 1583 lt_cv_deplibs_check_method=pass_all 1584 ;; 1585 1586irix5* | irix6*) 1587 case "$host_os" in 1588 irix5*) 1589 # this will be overridden with pass_all, but let us keep it just in case 1590 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 1591 ;; 1592 *) 1593 case "$LD" in 1594 *-32|*"-32 ") libmagic=32-bit;; 1595 *-n32|*"-n32 ") libmagic=N32;; 1596 *-64|*"-64 ") libmagic=64-bit;; 1597 *) libmagic=never-match;; 1598 esac 1599 # this will be overridden with pass_all, but let us keep it just in case 1600 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 1601 ;; 1602 esac 1603 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 1604 lt_cv_deplibs_check_method=pass_all 1605 ;; 1606 1607# This must be Linux ELF. 1608linux-gnu*) 1609 case "$host_cpu" in 1610 alpha* | i*86 | powerpc* | sparc* ) 1611 lt_cv_deplibs_check_method=pass_all ;; 1612 *) 1613 # glibc up to 2.1.1 does not perform some relocations on ARM 1614 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 1615 esac 1616 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 1617 ;; 1618 1619osf3* | osf4* | osf5*) 1620 # this will be overridden with pass_all, but let us keep it just in case 1621 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 1622 lt_cv_file_magic_test_file=/shlib/libc.so 1623 lt_cv_deplibs_check_method=pass_all 1624 ;; 1625 1626sco3.2v5*) 1627 lt_cv_deplibs_check_method=pass_all 1628 ;; 1629 1630solaris*) 1631 lt_cv_deplibs_check_method=pass_all 1632 lt_cv_file_magic_test_file=/lib/libc.so 1633 ;; 1634 1635sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 1636 case "$host_vendor" in 1637 ncr) 1638 lt_cv_deplibs_check_method=pass_all 1639 ;; 1640 motorola) 1641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 1642 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 1643 ;; 1644 esac 1645 ;; 1646esac 1647 1648fi 1649 1650echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 1651file_magic_cmd=$lt_cv_file_magic_cmd 1652deplibs_check_method=$lt_cv_deplibs_check_method 1653 1654echo $ac_n "checking for object suffix""... $ac_c" 1>&6 1655echo "configure:1656: checking for object suffix" >&5 1656if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then 1657 echo $ac_n "(cached) $ac_c" 1>&6 1658else 1659 rm -f conftest* 1660echo 'int i = 1;' > conftest.$ac_ext 1661if { (eval echo configure:1662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1662 for ac_file in conftest.*; do 1663 case $ac_file in 1664 *.c) ;; 1665 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; 1666 esac 1667 done 1668else 1669 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } 1670fi 1671rm -f conftest* 1672fi 1673 1674echo "$ac_t""$ac_cv_objext" 1>&6 1675OBJEXT=$ac_cv_objext 1676ac_objext=$ac_cv_objext 1677 1678 1679 1680echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 1681echo "configure:1682: checking for executable suffix" >&5 1682if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 1683 echo $ac_n "(cached) $ac_c" 1>&6 1684else 1685 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 1686 ac_cv_exeext=.exe 1687else 1688 rm -f conftest* 1689 echo 'int main () { return 0; }' > conftest.$ac_ext 1690 ac_cv_exeext= 1691 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1692 for file in conftest.*; do 1693 case $file in 1694 *.c | *.o | *.obj) ;; 1695 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 1696 esac 1697 done 1698 else 1699 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 1700 fi 1701 rm -f conftest* 1702 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 1703fi 1704fi 1705 1706EXEEXT="" 1707test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 1708echo "$ac_t""${ac_cv_exeext}" 1>&6 1709ac_exeext=$EXEEXT 1710 1711if test $host != $build; then 1712 ac_tool_prefix=${host_alias}- 1713else 1714 ac_tool_prefix= 1715fi 1716 1717 1718# Only perform the check for file, if the check method requires it 1719case "$deplibs_check_method" in 1720file_magic*) 1721 if test "$file_magic_cmd" = '${MAGIC}'; then 1722 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 1723echo "configure:1724: checking for ${ac_tool_prefix}file" >&5 1724if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then 1725 echo $ac_n "(cached) $ac_c" 1>&6 1726else 1727 case "$MAGIC" in 1728 /*) 1729 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path. 1730 ;; 1731 ?:/*) 1732 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path. 1733 ;; 1734 *) 1735 ac_save_MAGIC="$MAGIC" 1736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1737 ac_dummy="/usr/bin:$PATH" 1738 for ac_dir in $ac_dummy; do 1739 test -z "$ac_dir" && ac_dir=. 1740 if test -f $ac_dir/${ac_tool_prefix}file; then 1741 lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file" 1742 if test -n "$file_magic_test_file"; then 1743 case "$deplibs_check_method" in 1744 "file_magic "*) 1745 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 1746 MAGIC="$lt_cv_path_MAGIC" 1747 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 1748 egrep "$file_magic_regex" > /dev/null; then 1749 : 1750 else 1751 cat <<EOF 1>&2 1752 1753*** Warning: the command libtool uses to detect shared libraries, 1754*** $file_magic_cmd, produces output that libtool cannot recognize. 1755*** The result is that libtool may fail to recognize shared libraries 1756*** as such. This will affect the creation of libtool libraries that 1757*** depend on shared libraries, but programs linked with such libtool 1758*** libraries will work regardless of this problem. Nevertheless, you 1759*** may want to report the problem to your system manager and/or to 1760*** bug-libtool@gnu.org 1761 1762EOF 1763 fi ;; 1764 esac 1765 fi 1766 break 1767 fi 1768 done 1769 IFS="$ac_save_ifs" 1770 MAGIC="$ac_save_MAGIC" 1771 ;; 1772esac 1773fi 1774 1775MAGIC="$lt_cv_path_MAGIC" 1776if test -n "$MAGIC"; then 1777 echo "$ac_t""$MAGIC" 1>&6 1778else 1779 echo "$ac_t""no" 1>&6 1780fi 1781 1782if test -z "$lt_cv_path_MAGIC"; then 1783 if test -n "$ac_tool_prefix"; then 1784 echo $ac_n "checking for file""... $ac_c" 1>&6 1785echo "configure:1786: checking for file" >&5 1786if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then 1787 echo $ac_n "(cached) $ac_c" 1>&6 1788else 1789 case "$MAGIC" in 1790 /*) 1791 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path. 1792 ;; 1793 ?:/*) 1794 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path. 1795 ;; 1796 *) 1797 ac_save_MAGIC="$MAGIC" 1798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1799 ac_dummy="/usr/bin:$PATH" 1800 for ac_dir in $ac_dummy; do 1801 test -z "$ac_dir" && ac_dir=. 1802 if test -f $ac_dir/file; then 1803 lt_cv_path_MAGIC="$ac_dir/file" 1804 if test -n "$file_magic_test_file"; then 1805 case "$deplibs_check_method" in 1806 "file_magic "*) 1807 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 1808 MAGIC="$lt_cv_path_MAGIC" 1809 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 1810 egrep "$file_magic_regex" > /dev/null; then 1811 : 1812 else 1813 cat <<EOF 1>&2 1814 1815*** Warning: the command libtool uses to detect shared libraries, 1816*** $file_magic_cmd, produces output that libtool cannot recognize. 1817*** The result is that libtool may fail to recognize shared libraries 1818*** as such. This will affect the creation of libtool libraries that 1819*** depend on shared libraries, but programs linked with such libtool 1820*** libraries will work regardless of this problem. Nevertheless, you 1821*** may want to report the problem to your system manager and/or to 1822*** bug-libtool@gnu.org 1823 1824EOF 1825 fi ;; 1826 esac 1827 fi 1828 break 1829 fi 1830 done 1831 IFS="$ac_save_ifs" 1832 MAGIC="$ac_save_MAGIC" 1833 ;; 1834esac 1835fi 1836 1837MAGIC="$lt_cv_path_MAGIC" 1838if test -n "$MAGIC"; then 1839 echo "$ac_t""$MAGIC" 1>&6 1840else 1841 echo "$ac_t""no" 1>&6 1842fi 1843 1844 else 1845 MAGIC=: 1846 fi 1847fi 1848 1849 fi 1850 ;; 1851esac 1852 1853case "$target" in 1854NONE) lt_target="$host" ;; 1855*) lt_target="$target" ;; 1856esac 1857 1858# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 1859set dummy ${ac_tool_prefix}ranlib; ac_word=$2 1860echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1861echo "configure:1862: checking for $ac_word" >&5 1862if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1863 echo $ac_n "(cached) $ac_c" 1>&6 1864else 1865 if test -n "$RANLIB"; then 1866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1867else 1868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1869 ac_dummy="$PATH" 1870 for ac_dir in $ac_dummy; do 1871 test -z "$ac_dir" && ac_dir=. 1872 if test -f $ac_dir/$ac_word; then 1873 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 1874 break 1875 fi 1876 done 1877 IFS="$ac_save_ifs" 1878fi 1879fi 1880RANLIB="$ac_cv_prog_RANLIB" 1881if test -n "$RANLIB"; then 1882 echo "$ac_t""$RANLIB" 1>&6 1883else 1884 echo "$ac_t""no" 1>&6 1885fi 1886 1887 1888if test -z "$ac_cv_prog_RANLIB"; then 1889if test -n "$ac_tool_prefix"; then 1890 # Extract the first word of "ranlib", so it can be a program name with args. 1891set dummy ranlib; ac_word=$2 1892echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1893echo "configure:1894: checking for $ac_word" >&5 1894if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1895 echo $ac_n "(cached) $ac_c" 1>&6 1896else 1897 if test -n "$RANLIB"; then 1898 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1899else 1900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1901 ac_dummy="$PATH" 1902 for ac_dir in $ac_dummy; do 1903 test -z "$ac_dir" && ac_dir=. 1904 if test -f $ac_dir/$ac_word; then 1905 ac_cv_prog_RANLIB="ranlib" 1906 break 1907 fi 1908 done 1909 IFS="$ac_save_ifs" 1910 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1911fi 1912fi 1913RANLIB="$ac_cv_prog_RANLIB" 1914if test -n "$RANLIB"; then 1915 echo "$ac_t""$RANLIB" 1>&6 1916else 1917 echo "$ac_t""no" 1>&6 1918fi 1919 1920else 1921 RANLIB=":" 1922fi 1923fi 1924 1925# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1926set dummy ${ac_tool_prefix}strip; ac_word=$2 1927echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1928echo "configure:1929: checking for $ac_word" >&5 1929if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 1930 echo $ac_n "(cached) $ac_c" 1>&6 1931else 1932 if test -n "$STRIP"; then 1933 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1934else 1935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1936 ac_dummy="$PATH" 1937 for ac_dir in $ac_dummy; do 1938 test -z "$ac_dir" && ac_dir=. 1939 if test -f $ac_dir/$ac_word; then 1940 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1941 break 1942 fi 1943 done 1944 IFS="$ac_save_ifs" 1945fi 1946fi 1947STRIP="$ac_cv_prog_STRIP" 1948if test -n "$STRIP"; then 1949 echo "$ac_t""$STRIP" 1>&6 1950else 1951 echo "$ac_t""no" 1>&6 1952fi 1953 1954 1955if test -z "$ac_cv_prog_STRIP"; then 1956if test -n "$ac_tool_prefix"; then 1957 # Extract the first word of "strip", so it can be a program name with args. 1958set dummy strip; ac_word=$2 1959echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1960echo "configure:1961: checking for $ac_word" >&5 1961if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 1962 echo $ac_n "(cached) $ac_c" 1>&6 1963else 1964 if test -n "$STRIP"; then 1965 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1966else 1967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1968 ac_dummy="$PATH" 1969 for ac_dir in $ac_dummy; do 1970 test -z "$ac_dir" && ac_dir=. 1971 if test -f $ac_dir/$ac_word; then 1972 ac_cv_prog_STRIP="strip" 1973 break 1974 fi 1975 done 1976 IFS="$ac_save_ifs" 1977 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 1978fi 1979fi 1980STRIP="$ac_cv_prog_STRIP" 1981if test -n "$STRIP"; then 1982 echo "$ac_t""$STRIP" 1>&6 1983else 1984 echo "$ac_t""no" 1>&6 1985fi 1986 1987else 1988 STRIP=":" 1989fi 1990fi 1991 1992 1993# Check for any special flags to pass to ltconfig. 1994libtool_flags="--cache-file=$cache_file" 1995test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 1996test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 1997test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 1998test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" 1999test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 2000libtool_flags="$libtool_flags --enable-dlopen" 2001 2002# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 2003if test "${enable_libtool_lock+set}" = set; then 2004 enableval="$enable_libtool_lock" 2005 : 2006fi 2007 2008test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 2009test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 2010 2011# Check whether --with-pic or --without-pic was given. 2012if test "${with_pic+set}" = set; then 2013 withval="$with_pic" 2014 pic_mode="$withval" 2015else 2016 pic_mode=default 2017fi 2018 2019test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" 2020test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" 2021 2022# Some flags need to be propagated to the compiler or linker for good 2023# libtool support. 2024case "$lt_target" in 2025*-*-irix6*) 2026 # Find out which ABI we are using. 2027 echo '#line 2028 "configure"' > conftest.$ac_ext 2028 if { (eval echo configure:2029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2029 case "`/usr/bin/file conftest.o`" in 2030 *32-bit*) 2031 LD="${LD-ld} -32" 2032 ;; 2033 *N32*) 2034 LD="${LD-ld} -n32" 2035 ;; 2036 *64-bit*) 2037 LD="${LD-ld} -64" 2038 ;; 2039 esac 2040 fi 2041 rm -rf conftest* 2042 ;; 2043 2044*-*-sco3.2v5*) 2045 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 2046 SAVE_CFLAGS="$CFLAGS" 2047 CFLAGS="$CFLAGS -belf" 2048 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 2049echo "configure:2050: checking whether the C compiler needs -belf" >&5 2050if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 2051 echo $ac_n "(cached) $ac_c" 1>&6 2052else 2053 2054 ac_ext=c 2055# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2056ac_cpp='$CPP $CPPFLAGS' 2057ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2058ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2059cross_compiling=$ac_cv_prog_cc_cross 2060 2061 cat > conftest.$ac_ext <<EOF 2062#line 2063 "configure" 2063#include "confdefs.h" 2064 2065int main() { 2066 2067; return 0; } 2068EOF 2069if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2070 rm -rf conftest* 2071 lt_cv_cc_needs_belf=yes 2072else 2073 echo "configure: failed program was:" >&5 2074 cat conftest.$ac_ext >&5 2075 rm -rf conftest* 2076 lt_cv_cc_needs_belf=no 2077fi 2078rm -f conftest* 2079 ac_ext=c 2080# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2081ac_cpp='$CPP $CPPFLAGS' 2082ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2083ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2084cross_compiling=$ac_cv_prog_cc_cross 2085 2086fi 2087 2088echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 2089 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 2090 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 2091 CFLAGS="$SAVE_CFLAGS" 2092 fi 2093 ;; 2094 2095 2096esac 2097 2098 2099# Save cache, so that ltconfig can load it 2100cat > confcache <<\EOF 2101# This file is a shell script that caches the results of configure 2102# tests run on this system so they can be shared between configure 2103# scripts and configure runs. It is not useful on other systems. 2104# If it contains results you don't want to keep, you may remove or edit it. 2105# 2106# By default, configure uses ./config.cache as the cache file, 2107# creating it if it does not exist already. You can give configure 2108# the --cache-file=FILE option to use a different cache file; that is 2109# what configure does when it calls configure scripts in 2110# subdirectories, so they share the cache. 2111# Giving --cache-file=/dev/null disables caching, for debugging configure. 2112# config.status only pays attention to the cache file if you give it the 2113# --recheck option to rerun configure. 2114# 2115EOF 2116# The following way of writing the cache mishandles newlines in values, 2117# but we know of no workaround that is simple, portable, and efficient. 2118# So, don't put newlines in cache variables' values. 2119# Ultrix sh set writes to stderr and can't be redirected directly, 2120# and sets the high bit in the cache file unless we assign to the vars. 2121(set) 2>&1 | 2122 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2123 *ac_space=\ *) 2124 # `set' does not quote correctly, so add quotes (double-quote substitution 2125 # turns \\\\ into \\, and sed turns \\ into \). 2126 sed -n \ 2127 -e "s/'/'\\\\''/g" \ 2128 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2129 ;; 2130 *) 2131 # `set' quotes correctly as required by POSIX, so do not add quotes. 2132 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2133 ;; 2134 esac >> confcache 2135if cmp -s $cache_file confcache; then 2136 : 2137else 2138 if test -w $cache_file; then 2139 echo "updating cache $cache_file" 2140 cat confcache > $cache_file 2141 else 2142 echo "not updating unwritable cache $cache_file" 2143 fi 2144fi 2145rm -f confcache 2146 2147 2148# Actually configure libtool. ac_aux_dir is where install-sh is found. 2149AR="$AR" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 2150MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 2151LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ 2152AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ 2153objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ 2154deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ 2155${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 2156$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $lt_target \ 2157|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } 2158 2159# Reload cache, that may have been modified by ltconfig 2160if test -r "$cache_file"; then 2161 echo "loading cache $cache_file" 2162 . $cache_file 2163else 2164 echo "creating cache $cache_file" 2165 > $cache_file 2166fi 2167 2168 2169# This can be used to rebuild libtool when needed 2170LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" 2171 2172# Always use our own libtool. 2173LIBTOOL='$(SHELL) $(top_builddir)/libtool' 2174 2175# Redirect the config.log output again, so that the ltconfig log is not 2176# clobbered by the next message. 2177exec 5>>./config.log 2178 2179 ac_ext=c 2180# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2181ac_cpp='$CPP $CPPFLAGS' 2182ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2183ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2184cross_compiling=$ac_cv_prog_cc_cross 2185 2186 LIBTOOL_SHELL='/bin/sh ./libtool' 2187else 2188 LIBTOOL_SHELL=$LIBTOOL 2189fi 2190 2191 2192echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 2193echo "configure:2194: checking for dlopen in -ldl" >&5 2194ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 2195if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2196 echo $ac_n "(cached) $ac_c" 1>&6 2197else 2198 ac_save_LIBS="$LIBS" 2199LIBS="-ldl $LIBS" 2200cat > conftest.$ac_ext <<EOF 2201#line 2202 "configure" 2202#include "confdefs.h" 2203/* Override any gcc2 internal prototype to avoid an error. */ 2204/* We use char because int might match the return type of a gcc2 2205 builtin and then its argument prototype would still apply. */ 2206char dlopen(); 2207 2208int main() { 2209dlopen() 2210; return 0; } 2211EOF 2212if { (eval echo configure:2213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2213 rm -rf conftest* 2214 eval "ac_cv_lib_$ac_lib_var=yes" 2215else 2216 echo "configure: failed program was:" >&5 2217 cat conftest.$ac_ext >&5 2218 rm -rf conftest* 2219 eval "ac_cv_lib_$ac_lib_var=no" 2220fi 2221rm -f conftest* 2222LIBS="$ac_save_LIBS" 2223 2224fi 2225if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2226 echo "$ac_t""yes" 1>&6 2227 2228LIBDL="-ldl" 2229ac_cv_have_dlfcn=yes 2230 2231else 2232 echo "$ac_t""no" 1>&6 2233fi 2234 2235 2236echo $ac_n "checking for shl_unload in -ldld""... $ac_c" 1>&6 2237echo "configure:2238: checking for shl_unload in -ldld" >&5 2238ac_lib_var=`echo dld'_'shl_unload | sed 'y%./+-%__p_%'` 2239if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2240 echo $ac_n "(cached) $ac_c" 1>&6 2241else 2242 ac_save_LIBS="$LIBS" 2243LIBS="-ldld $LIBS" 2244cat > conftest.$ac_ext <<EOF 2245#line 2246 "configure" 2246#include "confdefs.h" 2247/* Override any gcc2 internal prototype to avoid an error. */ 2248/* We use char because int might match the return type of a gcc2 2249 builtin and then its argument prototype would still apply. */ 2250char shl_unload(); 2251 2252int main() { 2253shl_unload() 2254; return 0; } 2255EOF 2256if { (eval echo configure:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2257 rm -rf conftest* 2258 eval "ac_cv_lib_$ac_lib_var=yes" 2259else 2260 echo "configure: failed program was:" >&5 2261 cat conftest.$ac_ext >&5 2262 rm -rf conftest* 2263 eval "ac_cv_lib_$ac_lib_var=no" 2264fi 2265rm -f conftest* 2266LIBS="$ac_save_LIBS" 2267 2268fi 2269if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2270 echo "$ac_t""yes" 1>&6 2271 2272LIBDL="-ldld" 2273ac_cv_have_shload=yes 2274 2275else 2276 echo "$ac_t""no" 1>&6 2277fi 2278 2279 2280 2281 2282 2283 2284 2285all_libraries="$all_libraries $USER_LDFLAGS" 2286all_includes="$all_includes $USER_INCLUDES" 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296echo $ac_n "checking for extra includes""... $ac_c" 1>&6 2297echo "configure:2298: checking for extra includes" >&5 2298# Check whether --with-extra-includes or --without-extra-includes was given. 2299if test "${with_extra_includes+set}" = set; then 2300 withval="$with_extra_includes" 2301 kde_use_extra_includes="$withval" 2302else 2303 kde_use_extra_includes=NONE 2304 2305fi 2306 2307kde_extra_includes= 2308if test -n "$kde_use_extra_includes" && \ 2309 test "$kde_use_extra_includes" != "NONE"; then 2310 2311 ac_save_ifs=$IFS 2312 IFS=':' 2313 for dir in $kde_use_extra_includes; do 2314 kde_extra_includes="$kde_extra_includes $dir" 2315 USER_INCLUDES="$USER_INCLUDES -I$dir" 2316 done 2317 IFS=$ac_save_ifs 2318 kde_use_extra_includes="added" 2319else 2320 kde_use_extra_includes="no" 2321fi 2322 2323 2324echo "$ac_t""$kde_use_extra_includes" 1>&6 2325 2326kde_extra_libs= 2327echo $ac_n "checking for extra libs""... $ac_c" 1>&6 2328echo "configure:2329: checking for extra libs" >&5 2329# Check whether --with-extra-libs or --without-extra-libs was given. 2330if test "${with_extra_libs+set}" = set; then 2331 withval="$with_extra_libs" 2332 kde_use_extra_libs=$withval 2333else 2334 kde_use_extra_libs=NONE 2335 2336fi 2337 2338if test -n "$kde_use_extra_libs" && \ 2339 test "$kde_use_extra_libs" != "NONE"; then 2340 2341 ac_save_ifs=$IFS 2342 IFS=':' 2343 for dir in $kde_use_extra_libs; do 2344 kde_extra_libs="$kde_extra_libs $dir" 2345 KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -rpath $dir" 2346 USER_LDFLAGS="$USER_LDFLAGS -L$dir" 2347 done 2348 IFS=$ac_save_ifs 2349 kde_use_extra_libs="added" 2350else 2351 kde_use_extra_libs="no" 2352fi 2353 2354 2355 2356echo "$ac_t""$kde_use_extra_libs" 1>&6 2357 2358 2359if test "$program_transform_name" = s,x,x,; then 2360 program_transform_name= 2361else 2362 # Double any \ or $. echo might interpret backslashes. 2363 cat <<\EOF_SED > conftestsed 2364s,\\,\\\\,g; s,\$,$$,g 2365EOF_SED 2366 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 2367 rm -f conftestsed 2368fi 2369test "$program_prefix" != NONE && 2370 program_transform_name="s,^,${program_prefix},; $program_transform_name" 2371# Use a double $ so make ignores it. 2372test "$program_suffix" != NONE && 2373 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 2374 2375# sed with no file args requires a program. 2376test "$program_transform_name" = "" && program_transform_name="s,x,x," 2377 2378 2379trap '' 1 2 15 2380cat > confcache <<\EOF 2381# This file is a shell script that caches the results of configure 2382# tests run on this system so they can be shared between configure 2383# scripts and configure runs. It is not useful on other systems. 2384# If it contains results you don't want to keep, you may remove or edit it. 2385# 2386# By default, configure uses ./config.cache as the cache file, 2387# creating it if it does not exist already. You can give configure 2388# the --cache-file=FILE option to use a different cache file; that is 2389# what configure does when it calls configure scripts in 2390# subdirectories, so they share the cache. 2391# Giving --cache-file=/dev/null disables caching, for debugging configure. 2392# config.status only pays attention to the cache file if you give it the 2393# --recheck option to rerun configure. 2394# 2395EOF 2396# The following way of writing the cache mishandles newlines in values, 2397# but we know of no workaround that is simple, portable, and efficient. 2398# So, don't put newlines in cache variables' values. 2399# Ultrix sh set writes to stderr and can't be redirected directly, 2400# and sets the high bit in the cache file unless we assign to the vars. 2401(set) 2>&1 | 2402 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2403 *ac_space=\ *) 2404 # `set' does not quote correctly, so add quotes (double-quote substitution 2405 # turns \\\\ into \\, and sed turns \\ into \). 2406 sed -n \ 2407 -e "s/'/'\\\\''/g" \ 2408 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2409 ;; 2410 *) 2411 # `set' quotes correctly as required by POSIX, so do not add quotes. 2412 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2413 ;; 2414 esac >> confcache 2415if cmp -s $cache_file confcache; then 2416 : 2417else 2418 if test -w $cache_file; then 2419 echo "updating cache $cache_file" 2420 cat confcache > $cache_file 2421 else 2422 echo "not updating unwritable cache $cache_file" 2423 fi 2424fi 2425rm -f confcache 2426 2427trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 2428 2429test "x$prefix" = xNONE && prefix=$ac_default_prefix 2430# Let make expand exec_prefix. 2431test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2432 2433# Any assignment to VPATH causes Sun make to only execute 2434# the first set of double-colon rules, so remove it if not needed. 2435# If there is a colon in the path, we need to keep it. 2436if test "x$srcdir" = x.; then 2437 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 2438fi 2439 2440trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 2441 2442DEFS=-DHAVE_CONFIG_H 2443 2444# Without the "./", some shells look in PATH for config.status. 2445: ${CONFIG_STATUS=./config.status} 2446 2447echo creating $CONFIG_STATUS 2448rm -f $CONFIG_STATUS 2449cat > $CONFIG_STATUS <<EOF 2450#! /bin/sh 2451# Generated automatically by configure. 2452# Run this file to recreate the current configuration. 2453# This directory was configured as follows, 2454# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2455# 2456# $0 $ac_configure_args 2457# 2458# Compiler output produced by configure, useful for debugging 2459# configure, is in ./config.log if it exists. 2460 2461ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 2462for ac_option 2463do 2464 case "\$ac_option" in 2465 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2466 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2467 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2468 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2469 echo "$CONFIG_STATUS generated by autoconf version 2.13" 2470 exit 0 ;; 2471 -help | --help | --hel | --he | --h) 2472 echo "\$ac_cs_usage"; exit 0 ;; 2473 *) echo "\$ac_cs_usage"; exit 1 ;; 2474 esac 2475done 2476 2477ac_given_srcdir=$srcdir 2478ac_given_INSTALL="$INSTALL" 2479 2480trap 'rm -fr `echo "Makefile sectar/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2481EOF 2482cat >> $CONFIG_STATUS <<EOF 2483 2484# Protect against being on the right side of a sed subst in config.status. 2485sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 2486 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 2487$ac_vpsub 2488$extrasub 2489s%@SHELL@%$SHELL%g 2490s%@CFLAGS@%$CFLAGS%g 2491s%@CPPFLAGS@%$CPPFLAGS%g 2492s%@CXXFLAGS@%$CXXFLAGS%g 2493s%@FFLAGS@%$FFLAGS%g 2494s%@DEFS@%$DEFS%g 2495s%@LDFLAGS@%$LDFLAGS%g 2496s%@LIBS@%$LIBS%g 2497s%@exec_prefix@%$exec_prefix%g 2498s%@prefix@%$prefix%g 2499s%@program_transform_name@%$program_transform_name%g 2500s%@bindir@%$bindir%g 2501s%@sbindir@%$sbindir%g 2502s%@libexecdir@%$libexecdir%g 2503s%@datadir@%$datadir%g 2504s%@sysconfdir@%$sysconfdir%g 2505s%@sharedstatedir@%$sharedstatedir%g 2506s%@localstatedir@%$localstatedir%g 2507s%@libdir@%$libdir%g 2508s%@includedir@%$includedir%g 2509s%@oldincludedir@%$oldincludedir%g 2510s%@infodir@%$infodir%g 2511s%@mandir@%$mandir%g 2512s%@host@%$host%g 2513s%@host_alias@%$host_alias%g 2514s%@host_cpu@%$host_cpu%g 2515s%@host_vendor@%$host_vendor%g 2516s%@host_os@%$host_os%g 2517s%@target@%$target%g 2518s%@target_alias@%$target_alias%g 2519s%@target_cpu@%$target_cpu%g 2520s%@target_vendor@%$target_vendor%g 2521s%@target_os@%$target_os%g 2522s%@build@%$build%g 2523s%@build_alias@%$build_alias%g 2524s%@build_cpu@%$build_cpu%g 2525s%@build_vendor@%$build_vendor%g 2526s%@build_os@%$build_os%g 2527s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 2528s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 2529s%@INSTALL_DATA@%$INSTALL_DATA%g 2530s%@PACKAGE@%$PACKAGE%g 2531s%@VERSION@%$VERSION%g 2532s%@ACLOCAL@%$ACLOCAL%g 2533s%@AUTOCONF@%$AUTOCONF%g 2534s%@AUTOMAKE@%$AUTOMAKE%g 2535s%@AUTOHEADER@%$AUTOHEADER%g 2536s%@MAKEINFO@%$MAKEINFO%g 2537s%@SET_MAKE@%$SET_MAKE%g 2538s%@CC@%$CC%g 2539s%@CPP@%$CPP%g 2540s%@LN_S@%$LN_S%g 2541s%@OBJEXT@%$OBJEXT%g 2542s%@EXEEXT@%$EXEEXT%g 2543s%@RANLIB@%$RANLIB%g 2544s%@STRIP@%$STRIP%g 2545s%@LIBTOOL@%$LIBTOOL%g 2546s%@LIBDL@%$LIBDL%g 2547s%@USER_INCLUDES@%$USER_INCLUDES%g 2548s%@USER_LDFLAGS@%$USER_LDFLAGS%g 2549s%@all_includes@%$all_includes%g 2550s%@all_libraries@%$all_libraries%g 2551s%@AUTODIRS@%$AUTODIRS%g 2552 2553CEOF 2554EOF 2555 2556cat >> $CONFIG_STATUS <<\EOF 2557 2558# Split the substitutions into bite-sized pieces for seds with 2559# small command number limits, like on Digital OSF/1 and HP-UX. 2560ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 2561ac_file=1 # Number of current file. 2562ac_beg=1 # First line for current file. 2563ac_end=$ac_max_sed_cmds # Line after last line for current file. 2564ac_more_lines=: 2565ac_sed_cmds="" 2566while $ac_more_lines; do 2567 if test $ac_beg -gt 1; then 2568 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 2569 else 2570 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 2571 fi 2572 if test ! -s conftest.s$ac_file; then 2573 ac_more_lines=false 2574 rm -f conftest.s$ac_file 2575 else 2576 if test -z "$ac_sed_cmds"; then 2577 ac_sed_cmds="sed -f conftest.s$ac_file" 2578 else 2579 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 2580 fi 2581 ac_file=`expr $ac_file + 1` 2582 ac_beg=$ac_end 2583 ac_end=`expr $ac_end + $ac_max_sed_cmds` 2584 fi 2585done 2586if test -z "$ac_sed_cmds"; then 2587 ac_sed_cmds=cat 2588fi 2589EOF 2590 2591cat >> $CONFIG_STATUS <<EOF 2592 2593CONFIG_FILES=\${CONFIG_FILES-"Makefile sectar/Makefile"} 2594EOF 2595cat >> $CONFIG_STATUS <<\EOF 2596for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2597 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2598 case "$ac_file" in 2599 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2600 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2601 *) ac_file_in="${ac_file}.in" ;; 2602 esac 2603 2604 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 2605 2606 # Remove last slash and all that follows it. Not all systems have dirname. 2607 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2608 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2609 # The file is in a subdirectory. 2610 test ! -d "$ac_dir" && mkdir "$ac_dir" 2611 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2612 # A "../" for each directory in $ac_dir_suffix. 2613 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 2614 else 2615 ac_dir_suffix= ac_dots= 2616 fi 2617 2618 case "$ac_given_srcdir" in 2619 .) srcdir=. 2620 if test -z "$ac_dots"; then top_srcdir=. 2621 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2622 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2623 *) # Relative path. 2624 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2625 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2626 esac 2627 2628 case "$ac_given_INSTALL" in 2629 [/$]*) INSTALL="$ac_given_INSTALL" ;; 2630 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2631 esac 2632 2633 echo creating "$ac_file" 2634 rm -f "$ac_file" 2635 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2636 case "$ac_file" in 2637 *Makefile*) ac_comsub="1i\\ 2638# $configure_input" ;; 2639 *) ac_comsub= ;; 2640 esac 2641 2642 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2643 sed -e "$ac_comsub 2644s%@configure_input@%$configure_input%g 2645s%@srcdir@%$srcdir%g 2646s%@top_srcdir@%$top_srcdir%g 2647s%@INSTALL@%$INSTALL%g 2648" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2649fi; done 2650rm -f conftest.s* 2651 2652# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 2653# NAME is the cpp macro being defined and VALUE is the value it is being given. 2654# 2655# ac_d sets the value in "#define NAME VALUE" lines. 2656ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 2657ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 2658ac_dC='\3' 2659ac_dD='%g' 2660# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 2661ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2662ac_uB='\([ ]\)%\1#\2define\3' 2663ac_uC=' ' 2664ac_uD='\4%g' 2665# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 2666ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2667ac_eB='$%\1#\2define\3' 2668ac_eC=' ' 2669ac_eD='%g' 2670 2671if test "${CONFIG_HEADERS+set}" != set; then 2672EOF 2673cat >> $CONFIG_STATUS <<EOF 2674 CONFIG_HEADERS="config.h" 2675EOF 2676cat >> $CONFIG_STATUS <<\EOF 2677fi 2678for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 2679 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2680 case "$ac_file" in 2681 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2682 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2683 *) ac_file_in="${ac_file}.in" ;; 2684 esac 2685 2686 echo creating $ac_file 2687 2688 rm -f conftest.frag conftest.in conftest.out 2689 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2690 cat $ac_file_inputs > conftest.in 2691 2692EOF 2693 2694# Transform confdefs.h into a sed script conftest.vals that substitutes 2695# the proper values into config.h.in to produce config.h. And first: 2696# Protect against being on the right side of a sed subst in config.status. 2697# Protect against being in an unquoted here document in config.status. 2698rm -f conftest.vals 2699cat > conftest.hdr <<\EOF 2700s/[\\&%]/\\&/g 2701s%[\\$`]%\\&%g 2702s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 2703s%ac_d%ac_u%gp 2704s%ac_u%ac_e%gp 2705EOF 2706sed -n -f conftest.hdr confdefs.h > conftest.vals 2707rm -f conftest.hdr 2708 2709# This sed command replaces #undef with comments. This is necessary, for 2710# example, in the case of _POSIX_SOURCE, which is predefined and required 2711# on some systems where configure will not decide to define it. 2712cat >> conftest.vals <<\EOF 2713s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 2714EOF 2715 2716# Break up conftest.vals because some shells have a limit on 2717# the size of here documents, and old seds have small limits too. 2718 2719rm -f conftest.tail 2720while : 2721do 2722 ac_lines=`grep -c . conftest.vals` 2723 # grep -c gives empty output for an empty file on some AIX systems. 2724 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 2725 # Write a limited-size here document to conftest.frag. 2726 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 2727 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 2728 echo 'CEOF 2729 sed -f conftest.frag conftest.in > conftest.out 2730 rm -f conftest.in 2731 mv conftest.out conftest.in 2732' >> $CONFIG_STATUS 2733 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 2734 rm -f conftest.vals 2735 mv conftest.tail conftest.vals 2736done 2737rm -f conftest.vals 2738 2739cat >> $CONFIG_STATUS <<\EOF 2740 rm -f conftest.frag conftest.h 2741 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 2742 cat conftest.in >> conftest.h 2743 rm -f conftest.in 2744 if cmp -s $ac_file conftest.h 2>/dev/null; then 2745 echo "$ac_file is unchanged" 2746 rm -f conftest.h 2747 else 2748 # Remove last slash and all that follows it. Not all systems have dirname. 2749 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2750 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2751 # The file is in a subdirectory. 2752 test ! -d "$ac_dir" && mkdir "$ac_dir" 2753 fi 2754 rm -f $ac_file 2755 mv conftest.h $ac_file 2756 fi 2757fi; done 2758 2759EOF 2760cat >> $CONFIG_STATUS <<EOF 2761 2762 2763EOF 2764cat >> $CONFIG_STATUS <<\EOF 2765test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 2766 2767exit 0 2768EOF 2769chmod +x $CONFIG_STATUS 2770rm -fr confdefs* $ac_clean_files 2771test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 2772 2773