(file) Return to configure CVS log (file) (dir) Up to [Pegasus] / pegasus_unsupported / slp_client

   1 karl  1.1 #! /bin/sh
   2           # From configure.ac Revision: 1.14 .
   3           # Guess values for system-dependent variables and create Makefiles.
   4           # Generated by GNU Autoconf 2.53 for slp 0.8 .
   5           #
   6           # Report bugs to <lslp-bugs@lists.sourceforge.net>.
   7           #
   8           # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
   9           # Free Software Foundation, Inc.
  10           # This configure script is free software; the Free Software Foundation
  11           # gives unlimited permission to copy, distribute and modify it.
  12           #
  13           # Configuration input files:
  14           # Copyright (c) 2002, Michael Day
  15           # Copyright (c) 2002, International Business Machines
  16           #
  17           # Permission is hereby granted, free of charge, to any person obtaining a
  18           # copy of this software and associated documentation files (the "Software"),
  19           # to deal in the Software without restriction, including without limitation
  20           # the rights to use, copy, modify, merge, publish, distribute, sublicense,
  21           # and/or sell copies of the Software, and to permit persons to whom the
  22 karl  1.1 # Software is furnished to do so, subject to the following conditions:
  23           #
  24           # The above copyright notice and this permission notice shall be included in
  25           # all copies or substantial portions of the Software.
  26           
  27           # Find the correct PATH separator.  Usually this is `:', but
  28           # DJGPP uses `;' like DOS.
  29           if test "X${PATH_SEPARATOR+set}" != Xset; then
  30             UNAME=${UNAME-`uname 2>/dev/null`}
  31             case X$UNAME in
  32               *-DOS) lt_cv_sys_path_separator=';' ;;
  33               *)     lt_cv_sys_path_separator=':' ;;
  34             esac
  35             PATH_SEPARATOR=$lt_cv_sys_path_separator
  36           fi
  37           
  38           
  39           # Check that we are running under the correct shell.
  40           SHELL=${CONFIG_SHELL-/bin/sh}
  41           
  42           case X$ECHO in
  43 karl  1.1 X*--fallback-echo)
  44             # Remove one level of quotation (which was required for Make).
  45             ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  46             ;;
  47           esac
  48           
  49           echo=${ECHO-echo}
  50           if test "X$1" = X--no-reexec; then
  51             # Discard the --no-reexec flag, and continue.
  52             shift
  53           elif test "X$1" = X--fallback-echo; then
  54             # Avoid inline document here, it may be left over
  55             :
  56           elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  57             # Yippee, $echo works!
  58             :
  59           else
  60             # Restart under the correct shell.
  61             exec $SHELL "$0" --no-reexec ${1+"$@"}
  62           fi
  63           
  64 karl  1.1 if test "X$1" = X--fallback-echo; then
  65             # used as fallback echo
  66             shift
  67             cat <<EOF
  68           
  69           EOF
  70             exit 0
  71           fi
  72           
  73           # The HP-UX ksh and POSIX shell print the target directory to stdout
  74           # if CDPATH is set.
  75           if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  76           
  77           if test -z "$ECHO"; then
  78           if test "X${echo_test_string+set}" != Xset; then
  79           # find a string as large as possible, as long as the shell can cope with it
  80             for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  81               # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  82               if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  83                  echo_test_string="`eval $cmd`" &&
  84                  (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  85 karl  1.1     then
  86                 break
  87               fi
  88             done
  89           fi
  90           
  91           if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  92              echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  93              test "X$echo_testing_string" = "X$echo_test_string"; then
  94             :
  95           else
  96             # The Solaris, AIX, and Digital Unix default echo programs unquote
  97             # backslashes.  This makes it impossible to quote backslashes using
  98             #   echo "$something" | sed 's/\\/\\\\/g'
  99             #
 100             # So, first we look for a working echo in the user's PATH.
 101           
 102             IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 103             for dir in $PATH /usr/ucb; do
 104               if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 105                  test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 106 karl  1.1        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 107                  test "X$echo_testing_string" = "X$echo_test_string"; then
 108                 echo="$dir/echo"
 109                 break
 110               fi
 111             done
 112             IFS="$save_ifs"
 113           
 114             if test "X$echo" = Xecho; then
 115               # We didn't find a better echo, so look for alternatives.
 116               if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 117                  echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 118                  test "X$echo_testing_string" = "X$echo_test_string"; then
 119                 # This shell has a builtin print -r that does the trick.
 120                 echo='print -r'
 121               elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 122           	 test "X$CONFIG_SHELL" != X/bin/ksh; then
 123                 # If we have ksh, try running configure again with it.
 124                 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 125                 export ORIGINAL_CONFIG_SHELL
 126                 CONFIG_SHELL=/bin/ksh
 127 karl  1.1       export CONFIG_SHELL
 128                 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 129               else
 130                 # Try using printf.
 131                 echo='printf %s\n'
 132                 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 133           	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 134           	 test "X$echo_testing_string" = "X$echo_test_string"; then
 135           	# Cool, printf works
 136           	:
 137                 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 138           	   test "X$echo_testing_string" = 'X\t' &&
 139           	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 140           	   test "X$echo_testing_string" = "X$echo_test_string"; then
 141           	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 142           	export CONFIG_SHELL
 143           	SHELL="$CONFIG_SHELL"
 144           	export SHELL
 145           	echo="$CONFIG_SHELL $0 --fallback-echo"
 146                 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 147           	   test "X$echo_testing_string" = 'X\t' &&
 148 karl  1.1 	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 149           	   test "X$echo_testing_string" = "X$echo_test_string"; then
 150           	echo="$CONFIG_SHELL $0 --fallback-echo"
 151                 else
 152           	# maybe with a smaller string...
 153           	prev=:
 154           
 155           	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 156           	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 157           	  then
 158           	    break
 159           	  fi
 160           	  prev="$cmd"
 161           	done
 162           
 163           	if test "$prev" != 'sed 50q "$0"'; then
 164           	  echo_test_string=`eval $prev`
 165           	  export echo_test_string
 166           	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 167           	else
 168           	  # Oops.  We lost completely, so just stick with echo.
 169 karl  1.1 	  echo=echo
 170           	fi
 171                 fi
 172               fi
 173             fi
 174           fi
 175           fi
 176           
 177           # Copy echo and quote the copy suitably for passing to libtool from
 178           # the Makefile, instead of quoting the original, which is used later.
 179           ECHO=$echo
 180           if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 181              ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 182           fi
 183           
 184           
 185           
 186           if expr a : '\(a\)' >/dev/null 2>&1; then
 187             as_expr=expr
 188           else
 189             as_expr=false
 190 karl  1.1 fi
 191           
 192           
 193           ## --------------------- ##
 194           ## M4sh Initialization.  ##
 195           ## --------------------- ##
 196           
 197           # Be Bourne compatible
 198           if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 199             emulate sh
 200             NULLCMD=:
 201           elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 202             set -o posix
 203           fi
 204           
 205           # NLS nuisances.
 206           # Support unset when possible.
 207           if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 208             as_unset=unset
 209           else
 210             as_unset=false
 211 karl  1.1 fi
 212           
 213           (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
 214               { $as_unset LANG || test "${LANG+set}" != set; } ||
 215                 { LANG=C; export LANG; }
 216           (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
 217               { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
 218                 { LC_ALL=C; export LC_ALL; }
 219           (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
 220               { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
 221                 { LC_TIME=C; export LC_TIME; }
 222           (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
 223               { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
 224                 { LC_CTYPE=C; export LC_CTYPE; }
 225           (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
 226               { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
 227                 { LANGUAGE=C; export LANGUAGE; }
 228           (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
 229               { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
 230                 { LC_COLLATE=C; export LC_COLLATE; }
 231           (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
 232 karl  1.1     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
 233                 { LC_NUMERIC=C; export LC_NUMERIC; }
 234           (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
 235               { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
 236                 { LC_MESSAGES=C; export LC_MESSAGES; }
 237           
 238           
 239           # Name of the executable.
 240           as_me=`(basename "$0") 2>/dev/null ||
 241           $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 242           	 X"$0" : 'X\(//\)$' \| \
 243           	 X"$0" : 'X\(/\)$' \| \
 244           	 .     : '\(.\)' 2>/dev/null ||
 245           echo X/"$0" |
 246               sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 247             	  /^X\/\(\/\/\)$/{ s//\1/; q; }
 248             	  /^X\/\(\/\).*/{ s//\1/; q; }
 249             	  s/.*/./; q'`
 250           
 251           # PATH needs CR, and LINENO needs CR and PATH.
 252           # Avoid depending upon Character Ranges.
 253 karl  1.1 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 254           as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 255           as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 256           as_cr_digits='0123456789'
 257           as_cr_alnum=$as_cr_Letters$as_cr_digits
 258           
 259           # The user is always right.
 260           if test "${PATH_SEPARATOR+set}" != set; then
 261             echo "#! /bin/sh" >conftest.sh
 262             echo  "exit 0"   >>conftest.sh
 263             chmod +x conftest.sh
 264             if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
 265               PATH_SEPARATOR=';'
 266             else
 267               PATH_SEPARATOR=:
 268             fi
 269             rm -f conftest.sh
 270           fi
 271           
 272           
 273             as_lineno_1=$LINENO
 274 karl  1.1   as_lineno_2=$LINENO
 275             as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 276             test "x$as_lineno_1" != "x$as_lineno_2" &&
 277             test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 278             # Find who we are.  Look in the path if we contain no path at all
 279             # relative or not.
 280             case $0 in
 281               *[\\/]* ) as_myself=$0 ;;
 282               *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 283           for as_dir in $PATH
 284           do
 285             IFS=$as_save_IFS
 286             test -z "$as_dir" && as_dir=.
 287             test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 288           done
 289           
 290                  ;;
 291             esac
 292             # We did not find ourselves, most probably we were run as `sh COMMAND'
 293             # in which case we are not to be found in the path.
 294             if test "x$as_myself" = x; then
 295 karl  1.1     as_myself=$0
 296             fi
 297             if test ! -f "$as_myself"; then
 298               { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 299              { (exit 1); exit 1; }; }
 300             fi
 301             case $CONFIG_SHELL in
 302             '')
 303               as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 304           for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 305           do
 306             IFS=$as_save_IFS
 307             test -z "$as_dir" && as_dir=.
 308             for as_base in sh bash ksh sh5; do
 309           	 case $as_dir in
 310           	 /*)
 311           	   if ("$as_dir/$as_base" -c '
 312             as_lineno_1=$LINENO
 313             as_lineno_2=$LINENO
 314             as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 315             test "x$as_lineno_1" != "x$as_lineno_2" &&
 316 karl  1.1   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 317           	     CONFIG_SHELL=$as_dir/$as_base
 318           	     export CONFIG_SHELL
 319           	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 320           	   fi;;
 321           	 esac
 322                  done
 323           done
 324           ;;
 325             esac
 326           
 327             # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 328             # uniformly replaced by the line number.  The first 'sed' inserts a
 329             # line-number line before each line; the second 'sed' does the real
 330             # work.  The second script uses 'N' to pair each line-number line
 331             # with the numbered line, and appends trailing '-' during
 332             # substitution so that $LINENO is not a special case at line end.
 333             # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 334             # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 335             sed '=' <$as_myself |
 336               sed '
 337 karl  1.1       N
 338                 s,$,-,
 339                 : loop
 340                 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 341                 t loop
 342                 s,-$,,
 343                 s,^['$as_cr_digits']*\n,,
 344               ' >$as_me.lineno &&
 345             chmod +x $as_me.lineno ||
 346               { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 347              { (exit 1); exit 1; }; }
 348           
 349             # Don't try to exec as it changes $[0], causing all sort of problems
 350             # (the dirname of $[0] is not the place where we might find the
 351             # original and so on.  Autoconf is especially sensible to this).
 352             . ./$as_me.lineno
 353             # Exit status is that of the last command.
 354             exit
 355           }
 356           
 357           
 358 karl  1.1 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 359             *c*,-n*) ECHO_N= ECHO_C='
 360           ' ECHO_T='	' ;;
 361             *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 362             *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 363           esac
 364           
 365           if expr a : '\(a\)' >/dev/null 2>&1; then
 366             as_expr=expr
 367           else
 368             as_expr=false
 369           fi
 370           
 371           rm -f conf$$ conf$$.exe conf$$.file
 372           echo >conf$$.file
 373           if ln -s conf$$.file conf$$ 2>/dev/null; then
 374             # We could just check for DJGPP; but this test a) works b) is more generic
 375             # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 376             if test -f conf$$.exe; then
 377               # Don't use ln at all; we don't have any links
 378               as_ln_s='cp -p'
 379 karl  1.1   else
 380               as_ln_s='ln -s'
 381             fi
 382           elif ln conf$$.file conf$$ 2>/dev/null; then
 383             as_ln_s=ln
 384           else
 385             as_ln_s='cp -p'
 386           fi
 387           rm -f conf$$ conf$$.exe conf$$.file
 388           
 389           as_executable_p="test -f"
 390           
 391           # Sed expression to map a string onto a valid CPP name.
 392           as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 393           
 394           # Sed expression to map a string onto a valid variable name.
 395           as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 396           
 397           
 398           # IFS
 399           # We need space, tab and new line, in precisely that order.
 400 karl  1.1 as_nl='
 401           '
 402           IFS=" 	$as_nl"
 403           
 404           # CDPATH.
 405           $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
 406           
 407           
 408           # Name of the host.
 409           # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 410           # so uname gets run too.
 411           ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 412           
 413           exec 6>&1
 414           
 415           #
 416           # Initializations.
 417           #
 418           ac_default_prefix=/usr/local
 419           cross_compiling=no
 420           subdirs=
 421 karl  1.1 MFLAGS=
 422           MAKEFLAGS=
 423           SHELL=${CONFIG_SHELL-/bin/sh}
 424           
 425           # Maximum number of lines to put in a shell here document.
 426           # This variable seems obsolete.  It should probably be removed, and
 427           # only ac_max_sed_lines should be used.
 428           : ${ac_max_here_lines=38}
 429           
 430           # Identity of this package.
 431           PACKAGE_NAME='slp'
 432           PACKAGE_TARNAME='lslp.tar.gz'
 433           PACKAGE_VERSION='0.8 '
 434           PACKAGE_STRING='slp 0.8 '
 435           PACKAGE_BUGREPORT='lslp-bugs@lists.sourceforge.net'
 436           
 437           ac_unique_file="config.guess"
 438           # Factoring default headers for most tests.
 439           ac_includes_default="\
 440           #include <stdio.h>
 441           #if HAVE_SYS_TYPES_H
 442 karl  1.1 # include <sys/types.h>
 443           #endif
 444           #if HAVE_SYS_STAT_H
 445           # include <sys/stat.h>
 446           #endif
 447           #if STDC_HEADERS
 448           # include <stdlib.h>
 449           # include <stddef.h>
 450           #else
 451           # if HAVE_STDLIB_H
 452           #  include <stdlib.h>
 453           # endif
 454           #endif
 455           #if HAVE_STRING_H
 456           # if !STDC_HEADERS && HAVE_MEMORY_H
 457           #  include <memory.h>
 458           # endif
 459           # include <string.h>
 460           #endif
 461           #if HAVE_STRINGS_H
 462           # include <strings.h>
 463 karl  1.1 #endif
 464           #if HAVE_INTTYPES_H
 465           # include <inttypes.h>
 466           #else
 467           # if HAVE_STDINT_H
 468           #  include <stdint.h>
 469           # endif
 470           #endif
 471           #if HAVE_UNISTD_H
 472           # include <unistd.h>
 473           #endif"
 474           
 475           
 476           # Initialize some variables set by options.
 477           ac_init_help=
 478           ac_init_version=false
 479           # The variables have the same names as the options, with
 480           # dashes changed to underlines.
 481           cache_file=/dev/null
 482           exec_prefix=NONE
 483           no_create=
 484 karl  1.1 no_recursion=
 485           prefix=NONE
 486           program_prefix=NONE
 487           program_suffix=NONE
 488           program_transform_name=s,x,x,
 489           silent=
 490           site=
 491           srcdir=
 492           verbose=
 493           x_includes=NONE
 494           x_libraries=NONE
 495           
 496           # Installation directory options.
 497           # These are left unexpanded so users can "make install exec_prefix=/foo"
 498           # and all the variables that are supposed to be based on exec_prefix
 499           # by default will actually change.
 500           # Use braces instead of parens because sh, perl, etc. also accept them.
 501           bindir='${exec_prefix}/bin'
 502           sbindir='${exec_prefix}/sbin'
 503           libexecdir='${exec_prefix}/libexec'
 504           datadir='${prefix}/share'
 505 karl  1.1 sysconfdir='${prefix}/etc'
 506           sharedstatedir='${prefix}/com'
 507           localstatedir='${prefix}/var'
 508           libdir='${exec_prefix}/lib'
 509           includedir='${prefix}/include'
 510           oldincludedir='/usr/include'
 511           infodir='${prefix}/info'
 512           mandir='${prefix}/man'
 513           
 514           ac_prev=
 515           for ac_option
 516           do
 517             # If the previous option needs an argument, assign it.
 518             if test -n "$ac_prev"; then
 519               eval "$ac_prev=\$ac_option"
 520               ac_prev=
 521               continue
 522             fi
 523           
 524             ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 525           
 526 karl  1.1   # Accept the important Cygnus configure options, so we can diagnose typos.
 527           
 528             case $ac_option in
 529           
 530             -bindir | --bindir | --bindi | --bind | --bin | --bi)
 531               ac_prev=bindir ;;
 532             -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 533               bindir=$ac_optarg ;;
 534           
 535             -build | --build | --buil | --bui | --bu)
 536               ac_prev=build_alias ;;
 537             -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 538               build_alias=$ac_optarg ;;
 539           
 540             -cache-file | --cache-file | --cache-fil | --cache-fi \
 541             | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 542               ac_prev=cache_file ;;
 543             -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 544             | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 545               cache_file=$ac_optarg ;;
 546           
 547 karl  1.1   --config-cache | -C)
 548               cache_file=config.cache ;;
 549           
 550             -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 551               ac_prev=datadir ;;
 552             -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 553             | --da=*)
 554               datadir=$ac_optarg ;;
 555           
 556             -disable-* | --disable-*)
 557               ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 558               # Reject names that are not valid shell variable names.
 559               expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 560                 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 561              { (exit 1); exit 1; }; }
 562               ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 563               eval "enable_$ac_feature=no" ;;
 564           
 565             -enable-* | --enable-*)
 566               ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 567               # Reject names that are not valid shell variable names.
 568 karl  1.1     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 569                 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 570              { (exit 1); exit 1; }; }
 571               ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 572               case $ac_option in
 573                 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 574                 *) ac_optarg=yes ;;
 575               esac
 576               eval "enable_$ac_feature='$ac_optarg'" ;;
 577           
 578             -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 579             | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 580             | --exec | --exe | --ex)
 581               ac_prev=exec_prefix ;;
 582             -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 583             | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 584             | --exec=* | --exe=* | --ex=*)
 585               exec_prefix=$ac_optarg ;;
 586           
 587             -gas | --gas | --ga | --g)
 588               # Obsolete; use --with-gas.
 589 karl  1.1     with_gas=yes ;;
 590           
 591             -help | --help | --hel | --he | -h)
 592               ac_init_help=long ;;
 593             -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 594               ac_init_help=recursive ;;
 595             -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 596               ac_init_help=short ;;
 597           
 598             -host | --host | --hos | --ho)
 599               ac_prev=host_alias ;;
 600             -host=* | --host=* | --hos=* | --ho=*)
 601               host_alias=$ac_optarg ;;
 602           
 603             -includedir | --includedir | --includedi | --included | --include \
 604             | --includ | --inclu | --incl | --inc)
 605               ac_prev=includedir ;;
 606             -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 607             | --includ=* | --inclu=* | --incl=* | --inc=*)
 608               includedir=$ac_optarg ;;
 609           
 610 karl  1.1   -infodir | --infodir | --infodi | --infod | --info | --inf)
 611               ac_prev=infodir ;;
 612             -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 613               infodir=$ac_optarg ;;
 614           
 615             -libdir | --libdir | --libdi | --libd)
 616               ac_prev=libdir ;;
 617             -libdir=* | --libdir=* | --libdi=* | --libd=*)
 618               libdir=$ac_optarg ;;
 619           
 620             -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 621             | --libexe | --libex | --libe)
 622               ac_prev=libexecdir ;;
 623             -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 624             | --libexe=* | --libex=* | --libe=*)
 625               libexecdir=$ac_optarg ;;
 626           
 627             -localstatedir | --localstatedir | --localstatedi | --localstated \
 628             | --localstate | --localstat | --localsta | --localst \
 629             | --locals | --local | --loca | --loc | --lo)
 630               ac_prev=localstatedir ;;
 631 karl  1.1   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 632             | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 633             | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 634               localstatedir=$ac_optarg ;;
 635           
 636             -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 637               ac_prev=mandir ;;
 638             -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 639               mandir=$ac_optarg ;;
 640           
 641             -nfp | --nfp | --nf)
 642               # Obsolete; use --without-fp.
 643               with_fp=no ;;
 644           
 645             -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 646             | --no-cr | --no-c | -n)
 647               no_create=yes ;;
 648           
 649             -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 650             | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 651               no_recursion=yes ;;
 652 karl  1.1 
 653             -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 654             | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 655             | --oldin | --oldi | --old | --ol | --o)
 656               ac_prev=oldincludedir ;;
 657             -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 658             | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 659             | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 660               oldincludedir=$ac_optarg ;;
 661           
 662             -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 663               ac_prev=prefix ;;
 664             -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 665               prefix=$ac_optarg ;;
 666           
 667             -program-prefix | --program-prefix | --program-prefi | --program-pref \
 668             | --program-pre | --program-pr | --program-p)
 669               ac_prev=program_prefix ;;
 670             -program-prefix=* | --program-prefix=* | --program-prefi=* \
 671             | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 672               program_prefix=$ac_optarg ;;
 673 karl  1.1 
 674             -program-suffix | --program-suffix | --program-suffi | --program-suff \
 675             | --program-suf | --program-su | --program-s)
 676               ac_prev=program_suffix ;;
 677             -program-suffix=* | --program-suffix=* | --program-suffi=* \
 678             | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 679               program_suffix=$ac_optarg ;;
 680           
 681             -program-transform-name | --program-transform-name \
 682             | --program-transform-nam | --program-transform-na \
 683             | --program-transform-n | --program-transform- \
 684             | --program-transform | --program-transfor \
 685             | --program-transfo | --program-transf \
 686             | --program-trans | --program-tran \
 687             | --progr-tra | --program-tr | --program-t)
 688               ac_prev=program_transform_name ;;
 689             -program-transform-name=* | --program-transform-name=* \
 690             | --program-transform-nam=* | --program-transform-na=* \
 691             | --program-transform-n=* | --program-transform-=* \
 692             | --program-transform=* | --program-transfor=* \
 693             | --program-transfo=* | --program-transf=* \
 694 karl  1.1   | --program-trans=* | --program-tran=* \
 695             | --progr-tra=* | --program-tr=* | --program-t=*)
 696               program_transform_name=$ac_optarg ;;
 697           
 698             -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 699             | -silent | --silent | --silen | --sile | --sil)
 700               silent=yes ;;
 701           
 702             -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 703               ac_prev=sbindir ;;
 704             -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 705             | --sbi=* | --sb=*)
 706               sbindir=$ac_optarg ;;
 707           
 708             -sharedstatedir | --sharedstatedir | --sharedstatedi \
 709             | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 710             | --sharedst | --shareds | --shared | --share | --shar \
 711             | --sha | --sh)
 712               ac_prev=sharedstatedir ;;
 713             -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 714             | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 715 karl  1.1   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 716             | --sha=* | --sh=*)
 717               sharedstatedir=$ac_optarg ;;
 718           
 719             -site | --site | --sit)
 720               ac_prev=site ;;
 721             -site=* | --site=* | --sit=*)
 722               site=$ac_optarg ;;
 723           
 724             -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 725               ac_prev=srcdir ;;
 726             -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 727               srcdir=$ac_optarg ;;
 728           
 729             -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 730             | --syscon | --sysco | --sysc | --sys | --sy)
 731               ac_prev=sysconfdir ;;
 732             -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 733             | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 734               sysconfdir=$ac_optarg ;;
 735           
 736 karl  1.1   -target | --target | --targe | --targ | --tar | --ta | --t)
 737               ac_prev=target_alias ;;
 738             -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 739               target_alias=$ac_optarg ;;
 740           
 741             -v | -verbose | --verbose | --verbos | --verbo | --verb)
 742               verbose=yes ;;
 743           
 744             -version | --version | --versio | --versi | --vers | -V)
 745               ac_init_version=: ;;
 746           
 747             -with-* | --with-*)
 748               ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 749               # Reject names that are not valid shell variable names.
 750               expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 751                 { echo "$as_me: error: invalid package name: $ac_package" >&2
 752              { (exit 1); exit 1; }; }
 753               ac_package=`echo $ac_package| sed 's/-/_/g'`
 754               case $ac_option in
 755                 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 756                 *) ac_optarg=yes ;;
 757 karl  1.1     esac
 758               eval "with_$ac_package='$ac_optarg'" ;;
 759           
 760             -without-* | --without-*)
 761               ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 762               # Reject names that are not valid shell variable names.
 763               expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 764                 { echo "$as_me: error: invalid package name: $ac_package" >&2
 765              { (exit 1); exit 1; }; }
 766               ac_package=`echo $ac_package | sed 's/-/_/g'`
 767               eval "with_$ac_package=no" ;;
 768           
 769             --x)
 770               # Obsolete; use --with-x.
 771               with_x=yes ;;
 772           
 773             -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 774             | --x-incl | --x-inc | --x-in | --x-i)
 775               ac_prev=x_includes ;;
 776             -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 777             | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 778 karl  1.1     x_includes=$ac_optarg ;;
 779           
 780             -x-libraries | --x-libraries | --x-librarie | --x-librari \
 781             | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 782               ac_prev=x_libraries ;;
 783             -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 784             | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 785               x_libraries=$ac_optarg ;;
 786           
 787             -*) { echo "$as_me: error: unrecognized option: $ac_option
 788           Try \`$0 --help' for more information." >&2
 789              { (exit 1); exit 1; }; }
 790               ;;
 791           
 792             *=*)
 793               ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 794               # Reject names that are not valid shell variable names.
 795               expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 796                 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 797              { (exit 1); exit 1; }; }
 798               ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 799 karl  1.1     eval "$ac_envvar='$ac_optarg'"
 800               export $ac_envvar ;;
 801           
 802             *)
 803               # FIXME: should be removed in autoconf 3.0.
 804               echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 805               expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 806                 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 807               : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 808               ;;
 809           
 810             esac
 811           done
 812           
 813           if test -n "$ac_prev"; then
 814             ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 815             { echo "$as_me: error: missing argument to $ac_option" >&2
 816              { (exit 1); exit 1; }; }
 817           fi
 818           
 819           # Be sure to have absolute paths.
 820 karl  1.1 for ac_var in exec_prefix prefix
 821           do
 822             eval ac_val=$`echo $ac_var`
 823             case $ac_val in
 824               [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 825               *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 826              { (exit 1); exit 1; }; };;
 827             esac
 828           done
 829           
 830           # Be sure to have absolute paths.
 831           for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 832                         localstatedir libdir includedir oldincludedir infodir mandir
 833           do
 834             eval ac_val=$`echo $ac_var`
 835             case $ac_val in
 836               [\\/$]* | ?:[\\/]* ) ;;
 837               *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 838              { (exit 1); exit 1; }; };;
 839             esac
 840           done
 841 karl  1.1 
 842           # There might be people who depend on the old broken behavior: `$host'
 843           # used to hold the argument of --host etc.
 844           # FIXME: To remove some day.
 845           build=$build_alias
 846           host=$host_alias
 847           target=$target_alias
 848           
 849           # FIXME: To remove some day.
 850           if test "x$host_alias" != x; then
 851             if test "x$build_alias" = x; then
 852               cross_compiling=maybe
 853               echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 854               If a cross compiler is detected then cross compile mode will be used." >&2
 855             elif test "x$build_alias" != "x$host_alias"; then
 856               cross_compiling=yes
 857             fi
 858           fi
 859           
 860           ac_tool_prefix=
 861           test -n "$host_alias" && ac_tool_prefix=$host_alias-
 862 karl  1.1 
 863           test "$silent" = yes && exec 6>/dev/null
 864           
 865           
 866           # Find the source files, if location was not specified.
 867           if test -z "$srcdir"; then
 868             ac_srcdir_defaulted=yes
 869             # Try the directory containing this script, then its parent.
 870             ac_confdir=`(dirname "$0") 2>/dev/null ||
 871           $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 872                    X"$0" : 'X\(//\)[^/]' \| \
 873                    X"$0" : 'X\(//\)$' \| \
 874                    X"$0" : 'X\(/\)' \| \
 875                    .     : '\(.\)' 2>/dev/null ||
 876           echo X"$0" |
 877               sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 878             	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 879             	  /^X\(\/\/\)$/{ s//\1/; q; }
 880             	  /^X\(\/\).*/{ s//\1/; q; }
 881             	  s/.*/./; q'`
 882             srcdir=$ac_confdir
 883 karl  1.1   if test ! -r $srcdir/$ac_unique_file; then
 884               srcdir=..
 885             fi
 886           else
 887             ac_srcdir_defaulted=no
 888           fi
 889           if test ! -r $srcdir/$ac_unique_file; then
 890             if test "$ac_srcdir_defaulted" = yes; then
 891               { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 892              { (exit 1); exit 1; }; }
 893             else
 894               { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 895              { (exit 1); exit 1; }; }
 896             fi
 897           fi
 898           srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 899           ac_env_build_alias_set=${build_alias+set}
 900           ac_env_build_alias_value=$build_alias
 901           ac_cv_env_build_alias_set=${build_alias+set}
 902           ac_cv_env_build_alias_value=$build_alias
 903           ac_env_host_alias_set=${host_alias+set}
 904 karl  1.1 ac_env_host_alias_value=$host_alias
 905           ac_cv_env_host_alias_set=${host_alias+set}
 906           ac_cv_env_host_alias_value=$host_alias
 907           ac_env_target_alias_set=${target_alias+set}
 908           ac_env_target_alias_value=$target_alias
 909           ac_cv_env_target_alias_set=${target_alias+set}
 910           ac_cv_env_target_alias_value=$target_alias
 911           ac_env_CC_set=${CC+set}
 912           ac_env_CC_value=$CC
 913           ac_cv_env_CC_set=${CC+set}
 914           ac_cv_env_CC_value=$CC
 915           ac_env_CFLAGS_set=${CFLAGS+set}
 916           ac_env_CFLAGS_value=$CFLAGS
 917           ac_cv_env_CFLAGS_set=${CFLAGS+set}
 918           ac_cv_env_CFLAGS_value=$CFLAGS
 919           ac_env_LDFLAGS_set=${LDFLAGS+set}
 920           ac_env_LDFLAGS_value=$LDFLAGS
 921           ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 922           ac_cv_env_LDFLAGS_value=$LDFLAGS
 923           ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 924           ac_env_CPPFLAGS_value=$CPPFLAGS
 925 karl  1.1 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 926           ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 927           ac_env_CPP_set=${CPP+set}
 928           ac_env_CPP_value=$CPP
 929           ac_cv_env_CPP_set=${CPP+set}
 930           ac_cv_env_CPP_value=$CPP
 931           
 932           #
 933           # Report the --help message.
 934           #
 935           if test "$ac_init_help" = "long"; then
 936             # Omit some internal or obsolete options to make the list less imposing.
 937             # This message is too long to be a string in the A/UX 3.1 sh.
 938             cat <<_ACEOF
 939           \`configure' configures slp 0.8  to adapt to many kinds of systems.
 940           
 941           Usage: $0 [OPTION]... [VAR=VALUE]...
 942           
 943           To assign environment variables (e.g., CC, CFLAGS...), specify them as
 944           VAR=VALUE.  See below for descriptions of some of the useful variables.
 945           
 946 karl  1.1 Defaults for the options are specified in brackets.
 947           
 948           Configuration:
 949             -h, --help              display this help and exit
 950                 --help=short        display options specific to this package
 951                 --help=recursive    display the short help of all the included packages
 952             -V, --version           display version information and exit
 953             -q, --quiet, --silent   do not print \`checking...' messages
 954                 --cache-file=FILE   cache test results in FILE [disabled]
 955             -C, --config-cache      alias for \`--cache-file=config.cache'
 956             -n, --no-create         do not create output files
 957                 --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 958           
 959           _ACEOF
 960           
 961             cat <<_ACEOF
 962           Installation directories:
 963             --prefix=PREFIX         install architecture-independent files in PREFIX
 964                                     [$ac_default_prefix]
 965             --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 966                                     [PREFIX]
 967 karl  1.1 
 968           By default, \`make install' will install all the files in
 969           \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 970           an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 971           for instance \`--prefix=\$HOME'.
 972           
 973           For better control, use the options below.
 974           
 975           Fine tuning of the installation directories:
 976             --bindir=DIR           user executables [EPREFIX/bin]
 977             --sbindir=DIR          system admin executables [EPREFIX/sbin]
 978             --libexecdir=DIR       program executables [EPREFIX/libexec]
 979             --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 980             --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 981             --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 982             --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 983             --libdir=DIR           object code libraries [EPREFIX/lib]
 984             --includedir=DIR       C header files [PREFIX/include]
 985             --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 986             --infodir=DIR          info documentation [PREFIX/info]
 987             --mandir=DIR           man documentation [PREFIX/man]
 988 karl  1.1 _ACEOF
 989           
 990             cat <<\_ACEOF
 991           
 992           System types:
 993             --build=BUILD     configure for building on BUILD [guessed]
 994             --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 995           _ACEOF
 996           fi
 997           
 998           if test -n "$ac_init_help"; then
 999             case $ac_init_help in
1000                short | recursive ) echo "Configuration of slp 0.8 :";;
1001              esac
1002             cat <<\_ACEOF
1003           
1004           Optional Features:
1005             --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1006             --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1007             --enable-shared=PKGS  build shared libraries default=yes
1008             --enable-static=PKGS  build static libraries default=yes
1009 karl  1.1   --enable-fast-install=PKGS  optimize for fast installation default=yes
1010             --disable-libtool-lock  avoid locking (might break parallel builds)
1011           
1012           Optional Packages:
1013             --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1014             --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1015             --with-gnu-ld           assume the C compiler uses GNU ld default=no
1016             --with-pic              try to use only PIC/non-PIC objects default=use both
1017           
1018           Some influential environment variables:
1019             CC          C compiler command
1020             CFLAGS      C compiler flags
1021             LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1022                         nonstandard directory <lib dir>
1023             CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1024                         headers in a nonstandard directory <include dir>
1025             CPP         C preprocessor
1026           
1027           Use these variables to override the choices made by `configure' or to help
1028           it to find libraries and programs with nonstandard names/locations.
1029           
1030 karl  1.1 Report bugs to <lslp-bugs@lists.sourceforge.net>.
1031           _ACEOF
1032           fi
1033           
1034           if test "$ac_init_help" = "recursive"; then
1035             # If there are subdirs, report their specific --help.
1036             ac_popdir=`pwd`
1037             for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1038               test -d $ac_dir || continue
1039               ac_builddir=.
1040           
1041           if test "$ac_dir" != .; then
1042             ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1043             # A "../" for each directory in $ac_dir_suffix.
1044             ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1045           else
1046             ac_dir_suffix= ac_top_builddir=
1047           fi
1048           
1049           case $srcdir in
1050             .)  # No --srcdir option.  We are building in place.
1051 karl  1.1     ac_srcdir=.
1052               if test -z "$ac_top_builddir"; then
1053                  ac_top_srcdir=.
1054               else
1055                  ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1056               fi ;;
1057             [\\/]* | ?:[\\/]* )  # Absolute path.
1058               ac_srcdir=$srcdir$ac_dir_suffix;
1059               ac_top_srcdir=$srcdir ;;
1060             *) # Relative path.
1061               ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1062               ac_top_srcdir=$ac_top_builddir$srcdir ;;
1063           esac
1064           # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1065           # absolute.
1066           ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1067           ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1068           ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1069           ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1070           
1071               cd $ac_dir
1072 karl  1.1     # Check for guested configure; otherwise get Cygnus style configure.
1073               if test -f $ac_srcdir/configure.gnu; then
1074                 echo
1075                 $SHELL $ac_srcdir/configure.gnu  --help=recursive
1076               elif test -f $ac_srcdir/configure; then
1077                 echo
1078                 $SHELL $ac_srcdir/configure  --help=recursive
1079               elif test -f $ac_srcdir/configure.ac ||
1080                      test -f $ac_srcdir/configure.in; then
1081                 echo
1082                 $ac_configure --help
1083               else
1084                 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1085               fi
1086               cd $ac_popdir
1087             done
1088           fi
1089           
1090           test -n "$ac_init_help" && exit 0
1091           if $ac_init_version; then
1092             cat <<\_ACEOF
1093 karl  1.1 slp configure 0.8
1094           generated by GNU Autoconf 2.53
1095           
1096           Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1097           Free Software Foundation, Inc.
1098           This configure script is free software; the Free Software Foundation
1099           gives unlimited permission to copy, distribute and modify it.
1100           
1101           Configuration input files:
1102           Copyright (c) 2002, Michael Day
1103           Copyright (c) 2002, International Business Machines
1104           
1105           Permission is hereby granted, free of charge, to any person obtaining a
1106           copy of this software and associated documentation files (the "Software"),
1107           to deal in the Software without restriction, including without limitation
1108           the rights to use, copy, modify, merge, publish, distribute, sublicense,
1109           and/or sell copies of the Software, and to permit persons to whom the
1110           Software is furnished to do so, subject to the following conditions:
1111           
1112           The above copyright notice and this permission notice shall be included in
1113           all copies or substantial portions of the Software.
1114 karl  1.1 _ACEOF
1115             exit 0
1116           fi
1117           exec 5>config.log
1118           cat >&5 <<_ACEOF
1119           This file contains any messages produced by compilers while
1120           running configure, to aid debugging if configure makes a mistake.
1121           
1122           It was created by slp $as_me 0.8 , which was
1123           generated by GNU Autoconf 2.53.  Invocation command line was
1124           
1125             $ $0 $@
1126           
1127           _ACEOF
1128           {
1129           cat <<_ASUNAME
1130           ## --------- ##
1131           ## Platform. ##
1132           ## --------- ##
1133           
1134           hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1135 karl  1.1 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1136           uname -r = `(uname -r) 2>/dev/null || echo unknown`
1137           uname -s = `(uname -s) 2>/dev/null || echo unknown`
1138           uname -v = `(uname -v) 2>/dev/null || echo unknown`
1139           
1140           /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1141           /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1142           
1143           /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1144           /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1145           /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1146           hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1147           /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1148           /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1149           /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1150           
1151           _ASUNAME
1152           
1153           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1154           for as_dir in $PATH
1155           do
1156 karl  1.1   IFS=$as_save_IFS
1157             test -z "$as_dir" && as_dir=.
1158             echo "PATH: $as_dir"
1159           done
1160           
1161           } >&5
1162           
1163           cat >&5 <<_ACEOF
1164           
1165           
1166           ## ----------- ##
1167           ## Core tests. ##
1168           ## ----------- ##
1169           
1170           _ACEOF
1171           
1172           
1173           # Keep a trace of the command line.
1174           # Strip out --no-create and --no-recursion so they do not pile up.
1175           # Also quote any args containing shell meta-characters.
1176           ac_configure_args=
1177 karl  1.1 ac_sep=
1178           for ac_arg
1179           do
1180             case $ac_arg in
1181             -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182             | --no-cr | --no-c | -n ) continue ;;
1183             -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184             | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185               continue ;;
1186             *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1187               ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1188             esac
1189             case " $ac_configure_args " in
1190               *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1191               *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1192                  ac_sep=" " ;;
1193             esac
1194             # Get rid of the leading space.
1195           done
1196           
1197           # When interrupted or exit'd, cleanup temporary files, and complete
1198 karl  1.1 # config.log.  We remove comments because anyway the quotes in there
1199           # would cause problems or look ugly.
1200           # WARNING: Be sure not to use single quotes in there, as some shells,
1201           # such as our DU 5.0 friend, will then `close' the trap.
1202           trap 'exit_status=$?
1203             # Save into config.log some information that might help in debugging.
1204             {
1205               echo
1206               cat <<\_ASBOX
1207           ## ---------------- ##
1208           ## Cache variables. ##
1209           ## ---------------- ##
1210           _ASBOX
1211               echo
1212               # The following way of writing the cache mishandles newlines in values,
1213           {
1214             (set) 2>&1 |
1215               case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1216               *ac_space=\ *)
1217                 sed -n \
1218                   "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1219 karl  1.1     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1220                 ;;
1221               *)
1222                 sed -n \
1223                   "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1224                 ;;
1225               esac;
1226           }
1227               echo
1228               if test -s confdefs.h; then
1229                 cat <<\_ASBOX
1230           ## ----------- ##
1231           ## confdefs.h. ##
1232           ## ----------- ##
1233           _ASBOX
1234                 echo
1235                 sed "/^$/d" confdefs.h
1236                 echo
1237               fi
1238               test "$ac_signal" != 0 &&
1239                 echo "$as_me: caught signal $ac_signal"
1240 karl  1.1     echo "$as_me: exit $exit_status"
1241             } >&5
1242             rm -f core core.* *.core &&
1243             rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1244               exit $exit_status
1245                ' 0
1246           for ac_signal in 1 2 13 15; do
1247             trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1248           done
1249           ac_signal=0
1250           
1251           # confdefs.h avoids OS command line length limits that DEFS can exceed.
1252           rm -rf conftest* confdefs.h
1253           # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1254           echo >confdefs.h
1255           
1256           # Predefined preprocessor variables.
1257           
1258           cat >>confdefs.h <<_ACEOF
1259           #define PACKAGE_NAME "$PACKAGE_NAME"
1260           _ACEOF
1261 karl  1.1 
1262           
1263           cat >>confdefs.h <<_ACEOF
1264           #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1265           _ACEOF
1266           
1267           
1268           cat >>confdefs.h <<_ACEOF
1269           #define PACKAGE_VERSION "$PACKAGE_VERSION"
1270           _ACEOF
1271           
1272           
1273           cat >>confdefs.h <<_ACEOF
1274           #define PACKAGE_STRING "$PACKAGE_STRING"
1275           _ACEOF
1276           
1277           
1278           cat >>confdefs.h <<_ACEOF
1279           #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1280           _ACEOF
1281           
1282 karl  1.1 
1283           # Let the site file select an alternate cache file if it wants to.
1284           # Prefer explicitly selected file to automatically selected ones.
1285           if test -z "$CONFIG_SITE"; then
1286             if test "x$prefix" != xNONE; then
1287               CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1288             else
1289               CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1290             fi
1291           fi
1292           for ac_site_file in $CONFIG_SITE; do
1293             if test -r "$ac_site_file"; then
1294               { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1295           echo "$as_me: loading site script $ac_site_file" >&6;}
1296               sed 's/^/| /' "$ac_site_file" >&5
1297               . "$ac_site_file"
1298             fi
1299           done
1300           
1301           if test -r "$cache_file"; then
1302             # Some versions of bash will fail to source /dev/null (special
1303 karl  1.1   # files actually), so we avoid doing that.
1304             if test -f "$cache_file"; then
1305               { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1306           echo "$as_me: loading cache $cache_file" >&6;}
1307               case $cache_file in
1308                 [\\/]* | ?:[\\/]* ) . $cache_file;;
1309                 *)                      . ./$cache_file;;
1310               esac
1311             fi
1312           else
1313             { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1314           echo "$as_me: creating cache $cache_file" >&6;}
1315             >$cache_file
1316           fi
1317           
1318           # Check that the precious variables saved in the cache have kept the same
1319           # value.
1320           ac_cache_corrupted=false
1321           for ac_var in `(set) 2>&1 |
1322                          sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1323             eval ac_old_set=\$ac_cv_env_${ac_var}_set
1324 karl  1.1   eval ac_new_set=\$ac_env_${ac_var}_set
1325             eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1326             eval ac_new_val="\$ac_env_${ac_var}_value"
1327             case $ac_old_set,$ac_new_set in
1328               set,)
1329                 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1330           echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1331                 ac_cache_corrupted=: ;;
1332               ,set)
1333                 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1334           echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1335                 ac_cache_corrupted=: ;;
1336               ,);;
1337               *)
1338                 if test "x$ac_old_val" != "x$ac_new_val"; then
1339                   { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1340           echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1341                   { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1342           echo "$as_me:   former value:  $ac_old_val" >&2;}
1343                   { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1344           echo "$as_me:   current value: $ac_new_val" >&2;}
1345 karl  1.1         ac_cache_corrupted=:
1346                 fi;;
1347             esac
1348             # Pass precious variables to config.status.
1349             if test "$ac_new_set" = set; then
1350               case $ac_new_val in
1351               *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1352                 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1353               *) ac_arg=$ac_var=$ac_new_val ;;
1354               esac
1355               case " $ac_configure_args " in
1356                 *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1357                 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1358               esac
1359             fi
1360           done
1361           if $ac_cache_corrupted; then
1362             { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1363           echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1364             { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1365           echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1366 karl  1.1    { (exit 1); exit 1; }; }
1367           fi
1368           
1369           ac_ext=c
1370           ac_cpp='$CPP $CPPFLAGS'
1371           ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372           ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373           ac_compiler_gnu=$ac_cv_c_compiler_gnu
1374           
1375           
1376           
1377           
1378           
1379           
1380           
1381           
1382           
1383           
1384           
1385           
1386           
1387 karl  1.1 
1388           
1389           
1390           
1391           
1392           
1393           
1394           
1395           
1396           
1397           
1398           
1399           
1400           
1401           
1402           
1403           
1404           ac_aux_dir=
1405           for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1406             if test -f $ac_dir/install-sh; then
1407               ac_aux_dir=$ac_dir
1408 karl  1.1     ac_install_sh="$ac_aux_dir/install-sh -c"
1409               break
1410             elif test -f $ac_dir/install.sh; then
1411               ac_aux_dir=$ac_dir
1412               ac_install_sh="$ac_aux_dir/install.sh -c"
1413               break
1414             elif test -f $ac_dir/shtool; then
1415               ac_aux_dir=$ac_dir
1416               ac_install_sh="$ac_aux_dir/shtool install -c"
1417               break
1418             fi
1419           done
1420           if test -z "$ac_aux_dir"; then
1421             { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1422           echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1423              { (exit 1); exit 1; }; }
1424           fi
1425           ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1426           ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1427           ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1428           
1429 karl  1.1 # Make sure we can run config.sub.
1430           $ac_config_sub sun4 >/dev/null 2>&1 ||
1431             { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1432           echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1433              { (exit 1); exit 1; }; }
1434           
1435           echo "$as_me:$LINENO: checking build system type" >&5
1436           echo $ECHO_N "checking build system type... $ECHO_C" >&6
1437           if test "${ac_cv_build+set}" = set; then
1438             echo $ECHO_N "(cached) $ECHO_C" >&6
1439           else
1440             ac_cv_build_alias=$build_alias
1441           test -z "$ac_cv_build_alias" &&
1442             ac_cv_build_alias=`$ac_config_guess`
1443           test -z "$ac_cv_build_alias" &&
1444             { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1445           echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1446              { (exit 1); exit 1; }; }
1447           ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1448             { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1449           echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1450 karl  1.1    { (exit 1); exit 1; }; }
1451           
1452           fi
1453           echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1454           echo "${ECHO_T}$ac_cv_build" >&6
1455           build=$ac_cv_build
1456           build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1457           build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1458           build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1459           
1460           
1461           
1462           
1463           
1464           # Check whether --enable-shared or --disable-shared was given.
1465           if test "${enable_shared+set}" = set; then
1466             enableval="$enable_shared"
1467             p=${PACKAGE-default}
1468           case $enableval in
1469           yes) enable_shared=yes ;;
1470           no) enable_shared=no ;;
1471 karl  1.1 *)
1472             enable_shared=no
1473             # Look at the argument we got.  We use all the common list separators.
1474             IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1475             for pkg in $enableval; do
1476               if test "X$pkg" = "X$p"; then
1477                 enable_shared=yes
1478               fi
1479             done
1480             IFS="$ac_save_ifs"
1481             ;;
1482           esac
1483           else
1484             enable_shared=yes
1485           fi;
1486           # Check whether --enable-static or --disable-static was given.
1487           if test "${enable_static+set}" = set; then
1488             enableval="$enable_static"
1489             p=${PACKAGE-default}
1490           case $enableval in
1491           yes) enable_static=yes ;;
1492 karl  1.1 no) enable_static=no ;;
1493           *)
1494             enable_static=no
1495             # Look at the argument we got.  We use all the common list separators.
1496             IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1497             for pkg in $enableval; do
1498               if test "X$pkg" = "X$p"; then
1499                 enable_static=yes
1500               fi
1501             done
1502             IFS="$ac_save_ifs"
1503             ;;
1504           esac
1505           else
1506             enable_static=yes
1507           fi;
1508           # Check whether --enable-fast-install or --disable-fast-install was given.
1509           if test "${enable_fast_install+set}" = set; then
1510             enableval="$enable_fast_install"
1511             p=${PACKAGE-default}
1512           case $enableval in
1513 karl  1.1 yes) enable_fast_install=yes ;;
1514           no) enable_fast_install=no ;;
1515           *)
1516             enable_fast_install=no
1517             # Look at the argument we got.  We use all the common list separators.
1518             IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1519             for pkg in $enableval; do
1520               if test "X$pkg" = "X$p"; then
1521                 enable_fast_install=yes
1522               fi
1523             done
1524             IFS="$ac_save_ifs"
1525             ;;
1526           esac
1527           else
1528             enable_fast_install=yes
1529           fi;
1530           echo "$as_me:$LINENO: checking host system type" >&5
1531           echo $ECHO_N "checking host system type... $ECHO_C" >&6
1532           if test "${ac_cv_host+set}" = set; then
1533             echo $ECHO_N "(cached) $ECHO_C" >&6
1534 karl  1.1 else
1535             ac_cv_host_alias=$host_alias
1536           test -z "$ac_cv_host_alias" &&
1537             ac_cv_host_alias=$ac_cv_build_alias
1538           ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1539             { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1540           echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1541              { (exit 1); exit 1; }; }
1542           
1543           fi
1544           echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1545           echo "${ECHO_T}$ac_cv_host" >&6
1546           host=$ac_cv_host
1547           host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548           host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549           host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550           
1551           
1552           ac_ext=c
1553           ac_cpp='$CPP $CPPFLAGS'
1554           ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1555 karl  1.1 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1556           ac_compiler_gnu=$ac_cv_c_compiler_gnu
1557           if test -n "$ac_tool_prefix"; then
1558             # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1559           set dummy ${ac_tool_prefix}gcc; ac_word=$2
1560           echo "$as_me:$LINENO: checking for $ac_word" >&5
1561           echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562           if test "${ac_cv_prog_CC+set}" = set; then
1563             echo $ECHO_N "(cached) $ECHO_C" >&6
1564           else
1565             if test -n "$CC"; then
1566             ac_cv_prog_CC="$CC" # Let the user override the test.
1567           else
1568           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569           for as_dir in $PATH
1570           do
1571             IFS=$as_save_IFS
1572             test -z "$as_dir" && as_dir=.
1573             for ac_exec_ext in '' $ac_executable_extensions; do
1574             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575               ac_cv_prog_CC="${ac_tool_prefix}gcc"
1576 karl  1.1     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577               break 2
1578             fi
1579           done
1580           done
1581           
1582           fi
1583           fi
1584           CC=$ac_cv_prog_CC
1585           if test -n "$CC"; then
1586             echo "$as_me:$LINENO: result: $CC" >&5
1587           echo "${ECHO_T}$CC" >&6
1588           else
1589             echo "$as_me:$LINENO: result: no" >&5
1590           echo "${ECHO_T}no" >&6
1591           fi
1592           
1593           fi
1594           if test -z "$ac_cv_prog_CC"; then
1595             ac_ct_CC=$CC
1596             # Extract the first word of "gcc", so it can be a program name with args.
1597 karl  1.1 set dummy gcc; ac_word=$2
1598           echo "$as_me:$LINENO: checking for $ac_word" >&5
1599           echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600           if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1601             echo $ECHO_N "(cached) $ECHO_C" >&6
1602           else
1603             if test -n "$ac_ct_CC"; then
1604             ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1605           else
1606           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607           for as_dir in $PATH
1608           do
1609             IFS=$as_save_IFS
1610             test -z "$as_dir" && as_dir=.
1611             for ac_exec_ext in '' $ac_executable_extensions; do
1612             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613               ac_cv_prog_ac_ct_CC="gcc"
1614               echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615               break 2
1616             fi
1617           done
1618 karl  1.1 done
1619           
1620           fi
1621           fi
1622           ac_ct_CC=$ac_cv_prog_ac_ct_CC
1623           if test -n "$ac_ct_CC"; then
1624             echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1625           echo "${ECHO_T}$ac_ct_CC" >&6
1626           else
1627             echo "$as_me:$LINENO: result: no" >&5
1628           echo "${ECHO_T}no" >&6
1629           fi
1630           
1631             CC=$ac_ct_CC
1632           else
1633             CC="$ac_cv_prog_CC"
1634           fi
1635           
1636           if test -z "$CC"; then
1637             if test -n "$ac_tool_prefix"; then
1638             # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1639 karl  1.1 set dummy ${ac_tool_prefix}cc; ac_word=$2
1640           echo "$as_me:$LINENO: checking for $ac_word" >&5
1641           echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642           if test "${ac_cv_prog_CC+set}" = set; then
1643             echo $ECHO_N "(cached) $ECHO_C" >&6
1644           else
1645             if test -n "$CC"; then
1646             ac_cv_prog_CC="$CC" # Let the user override the test.
1647           else
1648           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649           for as_dir in $PATH
1650           do
1651             IFS=$as_save_IFS
1652             test -z "$as_dir" && as_dir=.
1653             for ac_exec_ext in '' $ac_executable_extensions; do
1654             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655               ac_cv_prog_CC="${ac_tool_prefix}cc"
1656               echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657               break 2
1658             fi
1659           done
1660 karl  1.1 done
1661           
1662           fi
1663           fi
1664           CC=$ac_cv_prog_CC
1665           if test -n "$CC"; then
1666             echo "$as_me:$LINENO: result: $CC" >&5
1667           echo "${ECHO_T}$CC" >&6
1668           else
1669             echo "$as_me:$LINENO: result: no" >&5
1670           echo "${ECHO_T}no" >&6
1671           fi
1672           
1673           fi
1674           if test -z "$ac_cv_prog_CC"; then
1675             ac_ct_CC=$CC
1676             # Extract the first word of "cc", so it can be a program name with args.
1677           set dummy cc; ac_word=$2
1678           echo "$as_me:$LINENO: checking for $ac_word" >&5
1679           echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680           if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1681 karl  1.1   echo $ECHO_N "(cached) $ECHO_C" >&6
1682           else
1683             if test -n "$ac_ct_CC"; then
1684             ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1685           else
1686           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687           for as_dir in $PATH
1688           do
1689             IFS=$as_save_IFS
1690             test -z "$as_dir" && as_dir=.
1691             for ac_exec_ext in '' $ac_executable_extensions; do
1692             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1693               ac_cv_prog_ac_ct_CC="cc"
1694               echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1695               break 2
1696             fi
1697           done
1698           done
1699           
1700           fi
1701           fi
1702 karl  1.1 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1703           if test -n "$ac_ct_CC"; then
1704             echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1705           echo "${ECHO_T}$ac_ct_CC" >&6
1706           else
1707             echo "$as_me:$LINENO: result: no" >&5
1708           echo "${ECHO_T}no" >&6
1709           fi
1710           
1711             CC=$ac_ct_CC
1712           else
1713             CC="$ac_cv_prog_CC"
1714           fi
1715           
1716           fi
1717           if test -z "$CC"; then
1718             # Extract the first word of "cc", so it can be a program name with args.
1719           set dummy cc; ac_word=$2
1720           echo "$as_me:$LINENO: checking for $ac_word" >&5
1721           echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722           if test "${ac_cv_prog_CC+set}" = set; then
1723 karl  1.1   echo $ECHO_N "(cached) $ECHO_C" >&6
1724           else
1725             if test -n "$CC"; then
1726             ac_cv_prog_CC="$CC" # Let the user override the test.
1727           else
1728             ac_prog_rejected=no
1729           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730           for as_dir in $PATH
1731           do
1732             IFS=$as_save_IFS
1733             test -z "$as_dir" && as_dir=.
1734             for ac_exec_ext in '' $ac_executable_extensions; do
1735             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736               if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1737                  ac_prog_rejected=yes
1738                  continue
1739                fi
1740               ac_cv_prog_CC="cc"
1741               echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742               break 2
1743             fi
1744 karl  1.1 done
1745           done
1746           
1747           if test $ac_prog_rejected = yes; then
1748             # We found a bogon in the path, so make sure we never use it.
1749             set dummy $ac_cv_prog_CC
1750             shift
1751             if test $# != 0; then
1752               # We chose a different compiler from the bogus one.
1753               # However, it has the same basename, so the bogon will be chosen
1754               # first if we set CC to just the basename; use the full file name.
1755               shift
1756               set dummy "$as_dir/$ac_word" ${1+"$@"}
1757               shift
1758               ac_cv_prog_CC="$@"
1759             fi
1760           fi
1761           fi
1762           fi
1763           CC=$ac_cv_prog_CC
1764           if test -n "$CC"; then
1765 karl  1.1   echo "$as_me:$LINENO: result: $CC" >&5
1766           echo "${ECHO_T}$CC" >&6
1767           else
1768             echo "$as_me:$LINENO: result: no" >&5
1769           echo "${ECHO_T}no" >&6
1770           fi
1771           
1772           fi
1773           if test -z "$CC"; then
1774             if test -n "$ac_tool_prefix"; then
1775             for ac_prog in cl
1776             do
1777               # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1778           set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1779           echo "$as_me:$LINENO: checking for $ac_word" >&5
1780           echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781           if test "${ac_cv_prog_CC+set}" = set; then
1782             echo $ECHO_N "(cached) $ECHO_C" >&6
1783           else
1784             if test -n "$CC"; then
1785             ac_cv_prog_CC="$CC" # Let the user override the test.
1786 karl  1.1 else
1787           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788           for as_dir in $PATH
1789           do
1790             IFS=$as_save_IFS
1791             test -z "$as_dir" && as_dir=.
1792             for ac_exec_ext in '' $ac_executable_extensions; do
1793             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794               ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1795               echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796               break 2
1797             fi
1798           done
1799           done
1800           
1801           fi
1802           fi
1803           CC=$ac_cv_prog_CC
1804           if test -n "$CC"; then
1805             echo "$as_me:$LINENO: result: $CC" >&5
1806           echo "${ECHO_T}$CC" >&6
1807 karl  1.1 else
1808             echo "$as_me:$LINENO: result: no" >&5
1809           echo "${ECHO_T}no" >&6
1810           fi
1811           
1812               test -n "$CC" && break
1813             done
1814           fi
1815           if test -z "$CC"; then
1816             ac_ct_CC=$CC
1817             for ac_prog in cl
1818           do
1819             # Extract the first word of "$ac_prog", so it can be a program name with args.
1820           set dummy $ac_prog; ac_word=$2
1821           echo "$as_me:$LINENO: checking for $ac_word" >&5
1822           echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1823           if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1824             echo $ECHO_N "(cached) $ECHO_C" >&6
1825           else
1826             if test -n "$ac_ct_CC"; then
1827             ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1828 karl  1.1 else
1829           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830           for as_dir in $PATH
1831           do
1832             IFS=$as_save_IFS
1833             test -z "$as_dir" && as_dir=.
1834             for ac_exec_ext in '' $ac_executable_extensions; do
1835             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1836               ac_cv_prog_ac_ct_CC="$ac_prog"
1837               echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1838               break 2
1839             fi
1840           done
1841           done
1842           
1843           fi
1844           fi
1845           ac_ct_CC=$ac_cv_prog_ac_ct_CC
1846           if test -n "$ac_ct_CC"; then
1847             echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1848           echo "${ECHO_T}$ac_ct_CC" >&6
1849 karl  1.1 else
1850             echo "$as_me:$LINENO: result: no" >&5
1851           echo "${ECHO_T}no" >&6
1852           fi
1853           
1854             test -n "$ac_ct_CC" && break
1855           done
1856           
1857             CC=$ac_ct_CC
1858           fi
1859           
1860           fi
1861           
1862           
1863           test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1864           echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1865              { (exit 1); exit 1; }; }
1866           
1867           # Provide some information about the compiler.
1868           echo "$as_me:$LINENO:" \
1869                "checking for C compiler version" >&5
1870 karl  1.1 ac_compiler=`set X $ac_compile; echo $2`
1871           { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1872             (eval $ac_compiler --version </dev/null >&5) 2>&5
1873             ac_status=$?
1874             echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875             (exit $ac_status); }
1876           { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1877             (eval $ac_compiler -v </dev/null >&5) 2>&5
1878             ac_status=$?
1879             echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880             (exit $ac_status); }
1881           { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1882             (eval $ac_compiler -V </dev/null >&5) 2>&5
1883             ac_status=$?
1884             echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885             (exit $ac_status); }
1886           
1887           cat >conftest.$ac_ext <<_ACEOF
1888           #line $LINENO "configure"
1889           #include "confdefs.h"
1890           
1891 karl  1.1 #ifdef F77_DUMMY_MAIN
1892           #  ifdef __cplusplus
1893                extern "C"
1894           #  endif
1895              int F77_DUMMY_MAIN() { return 1; }
1896           #endif
1897           int
1898           main ()
1899           {
1900           
1901             ;
1902             return 0;
1903           }
1904           _ACEOF
1905           ac_clean_files_save=$ac_clean_files
1906           ac_clean_files="$ac_clean_files a.out a.exe"
1907           # Try to create an executable without -o first, disregard a.out.
1908           # It will help us diagnose broken compilers, and finding out an intuition
1909           # of exeext.
1910           echo "$as_me:$LINENO: checking for C compiler default output" >&5
1911           echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1912 karl  1.1 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1913           if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1914             (eval $ac_link_default) 2>&5
1915             ac_status=$?
1916             echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917             (exit $ac_status); }; then
1918             # Find the output, starting from the most likely.  This scheme is
1919           # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1920           # resort.
1921           
1922           # Be careful to initialize this variable, since it used to be cached.
1923           # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1924           ac_cv_exeext=
1925           for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1926                           ls a.out conftest 2>/dev/null;
1927                           ls a.* conftest.* 2>/dev/null`; do
1928             case $ac_file in
1929               *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1930               a.out ) # We found the default executable, but exeext='' is most
1931                       # certainly right.
1932                       break;;
1933 karl  1.1     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1934                     # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1935                     export ac_cv_exeext
1936                     break;;
1937               * ) break;;
1938             esac
1939           done
1940           else
1941             echo "$as_me: failed program was:" >&5
1942           cat conftest.$ac_ext >&5
1943           { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1944           echo "$as_me: error: C compiler cannot create executables" >&2;}
1945              { (exit 77); exit 77; }; }
1946           fi
1947           
1948           ac_exeext=$ac_cv_exeext
1949           echo "$as_me:$LINENO: result: $ac_file" >&5
1950           echo "${ECHO_T}$ac_file" >&6
1951           
1952           # Check the compiler produces executables we can run.  If not, either
1953           # the compiler is broken, or we cross compile.
1954 karl  1.1 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1955           echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1956           # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1957           # If not cross compiling, check that we can run a simple program.
1958           if test "$cross_compiling" != yes; then
1959             if { ac_try='./$ac_file'
1960             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1961             (eval $ac_try) 2>&5
1962             ac_status=$?
1963             echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964             (exit $ac_status); }; }; then
1965               cross_compiling=no
1966             else
1967               if test "$cross_compiling" = maybe; then
1968           	cross_compiling=yes
1969               else
1970           	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1971           If you meant to cross compile, use \`--host'." >&5
1972           echo "$as_me: error: cannot run C compiled programs.
1973           If you meant to cross compile, use \`--host'." >&2;}
1974              { (exit 1); exit 1; }; }
1975 karl  1.1     fi
1976             fi
1977           fi
1978           echo "$as_me:$LINENO: result: yes" >&5
1979           echo "${ECHO_T}yes" >&6
1980           
1981           rm -f a.out a.exe conftest$ac_cv_exeext
1982           ac_clean_files=$ac_clean_files_save
1983           # Check the compiler produces executables we can run.  If not, either
1984           # the compiler is broken, or we cross compile.
1985           echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1986           echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1987           echo "$as_me:$LINENO: result: $cross_compiling" >&5
1988           echo "${ECHO_T}$cross_compiling" >&6
1989           
1990           echo "$as_me:$LINENO: checking for suffix of executables" >&5
1991           echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1992           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1993             (eval $ac_link) 2>&5
1994             ac_status=$?
1995             echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 karl  1.1   (exit $ac_status); }; then
1997             # If both `conftest.exe' and `conftest' are `present' (well, observable)
1998           # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1999           # work properly (i.e., refer to `conftest.exe'), while it won't with
2000           # `rm'.
2001           for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2002             case $ac_file in
2003               *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2004               *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2005                     export ac_cv_exeext
2006                     break;;
2007               * ) break;;
2008             esac
2009           done
2010           else
2011             { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2012           echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2013              { (exit 1); exit 1; }; }
2014           fi
2015           
2016           rm -f conftest$ac_cv_exeext
2017 karl  1.1 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2018           echo "${ECHO_T}$ac_cv_exeext" >&6
2019           
2020           rm -f conftest.$ac_ext
2021           EXEEXT=$ac_cv_exeext
2022           ac_exeext=$EXEEXT
2023           echo "$as_me:$LINENO: checking for suffix of object files" >&5
2024           echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2025           if test "${ac_cv_objext+set}" = set; then
2026             echo $ECHO_N "(cached) $ECHO_C" >&6
2027           else
2028             cat >conftest.$ac_ext <<_ACEOF
2029           #line $LINENO "configure"
2030           #include "confdefs.h"
2031           
2032           #ifdef F77_DUMMY_MAIN
2033           #  ifdef __cplusplus
2034                extern "C"
2035           #  endif
2036              int F77_DUMMY_MAIN() { return 1; }
2037           #endif
2038 karl  1.1 int
2039           main ()
2040           {
2041           
2042             ;
2043             return 0;
2044           }
2045           _ACEOF
2046           rm -f conftest.o conftest.obj
2047           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048             (eval $ac_compile) 2>&5
2049             ac_status=$?
2050             echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051             (exit $ac_status); }; then
2052             for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2053             case $ac_file in
2054               *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2055               *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2056                  break;;
2057             esac
2058           done
2059 karl  1.1 else
2060             echo "$as_me: failed program was:" >&5
2061           cat conftest.$ac_ext >&5
2062           { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2063           echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2064              { (exit 1); exit 1; }; }
2065           fi
2066           
2067           rm -f conftest.$ac_cv_objext conftest.$ac_ext
2068           fi
2069           echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2070           echo "${ECHO_T}$ac_cv_objext" >&6
2071           OBJEXT=$ac_cv_objext
2072           ac_objext=$OBJEXT
2073           echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2074           echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2075           if test "${ac_cv_c_compiler_gnu+set}" = set; then
2076             echo $ECHO_N "(cached) $ECHO_C" >&6
2077           else
2078             cat >conftest.$ac_ext <<_ACEOF
2079           #line $LINENO "configure"
2080 karl  1.1 #include "confdefs.h"
2081           
2082           #ifdef F77_DUMMY_MAIN
2083           #  ifdef __cplusplus
2084                extern "C"
2085           #  endif
2086              int F77_DUMMY_MAIN() { return 1; }
2087           #endif
2088           int
2089           main ()
2090           {
2091           #ifndef __GNUC__
2092                  choke me
2093           #endif
2094           
2095             ;
2096             return 0;
2097           }
2098           _ACEOF
2099           rm -f conftest.$ac_objext
2100           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101 karl  1.1   (eval $ac_compile) 2>&5
2102             ac_status=$?
2103             echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104             (exit $ac_status); } &&
2105                    { ac_try='test -s conftest.$ac_objext'
2106             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107             (eval $ac_try) 2>&5
2108             ac_status=$?
2109             echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110             (exit $ac_status); }; }; then
2111             ac_compiler_gnu=yes
2112           else
2113             echo "$as_me: failed program was:" >&5
2114           cat conftest.$ac_ext >&5
2115           ac_compiler_gnu=no
2116           fi
2117           rm -f conftest.$ac_objext conftest.$ac_ext
2118           ac_cv_c_compiler_gnu=$ac_compiler_gnu
2119           
2120           fi
2121           echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2122 karl  1.1 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2123           GCC=`test $ac_compiler_gnu = yes && echo yes`
2124           ac_test_CFLAGS=${CFLAGS+set}
2125           ac_save_CFLAGS=$CFLAGS
2126           CFLAGS="-g"
2127           echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2128           echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2129           if test "${ac_cv_prog_cc_g+set}" = set; then
2130             echo $ECHO_N "(cached) $ECHO_C" >&6
2131           else
2132             cat >conftest.$ac_ext <<_ACEOF
2133           #line $LINENO "configure"
2134           #include "confdefs.h"
2135           
2136           #ifdef F77_DUMMY_MAIN
2137           #  ifdef __cplusplus
2138                extern "C"
2139           #  endif
2140              int F77_DUMMY_MAIN() { return 1; }
2141           #endif
2142           int
2143 karl  1.1 main ()
2144           {
2145           
2146             ;
2147             return 0;
2148           }
2149           _ACEOF
2150           rm -f conftest.$ac_objext
2151           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152             (eval $ac_compile) 2>&5
2153             ac_status=$?
2154             echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155             (exit $ac_status); } &&
2156                    { ac_try='test -s conftest.$ac_objext'
2157             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158             (eval $ac_try) 2>&5
2159             ac_status=$?
2160             echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161             (exit $ac_status); }; }; then
2162             ac_cv_prog_cc_g=yes
2163           else
2164 karl  1.1   echo "$as_me: failed program was:" >&5
2165           cat conftest.$ac_ext >&5
2166           ac_cv_prog_cc_g=no
2167           fi
2168           rm -f conftest.$ac_objext conftest.$ac_ext
2169           fi
2170           echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2171           echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2172           if test "$ac_test_CFLAGS" = set; then
2173             CFLAGS=$ac_save_CFLAGS
2174           elif test $ac_cv_prog_cc_g = yes; then
2175             if test "$GCC" = yes; then
2176               CFLAGS="-g -O2"
2177             else
2178               CFLAGS="-g"
2179             fi
2180           else
2181             if test "$GCC" = yes; then
2182               CFLAGS="-O2"
2183             else
2184               CFLAGS=
2185 karl  1.1   fi
2186           fi
2187           # Some people use a C++ compiler to compile C.  Since we use `exit',
2188           # in C++ we need to declare it.  In case someone uses the same compiler
2189           # for both compiling C and C++ we need to have the C++ compiler decide
2190           # the declaration of exit, since it's the most demanding environment.
2191           cat >conftest.$ac_ext <<_ACEOF
2192           #ifndef __cplusplus
2193             choke me
2194           #endif
2195           _ACEOF
2196           rm -f conftest.$ac_objext
2197           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198             (eval $ac_compile) 2>&5
2199             ac_status=$?
2200             echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201             (exit $ac_status); } &&
2202                    { ac_try='test -s conftest.$ac_objext'
2203             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204             (eval $ac_try) 2>&5
2205             ac_status=$?
2206 karl  1.1   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207             (exit $ac_status); }; }; then
2208             for ac_declaration in \
2209              ''\
2210              '#include <stdlib.h>' \
2211              'extern "C" void std::exit (int) throw (); using std::exit;' \
2212              'extern "C" void std::exit (int); using std::exit;' \
2213              'extern "C" void exit (int) throw ();' \
2214              'extern "C" void exit (int);' \
2215              'void exit (int);'
2216           do
2217             cat >conftest.$ac_ext <<_ACEOF
2218           #line $LINENO "configure"
2219           #include "confdefs.h"
2220           #include <stdlib.h>
2221           $ac_declaration
2222           #ifdef F77_DUMMY_MAIN
2223           #  ifdef __cplusplus
2224                extern "C"
2225           #  endif
2226              int F77_DUMMY_MAIN() { return 1; }
2227 karl  1.1 #endif
2228           int
2229           main ()
2230           {
2231           exit (42);
2232             ;
2233             return 0;
2234           }
2235           _ACEOF
2236           rm -f conftest.$ac_objext
2237           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238             (eval $ac_compile) 2>&5
2239             ac_status=$?
2240             echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241             (exit $ac_status); } &&
2242                    { ac_try='test -s conftest.$ac_objext'
2243             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244             (eval $ac_try) 2>&5
2245             ac_status=$?
2246             echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247             (exit $ac_status); }; }; then
2248 karl  1.1   :
2249           else
2250             echo "$as_me: failed program was:" >&5
2251           cat conftest.$ac_ext >&5
2252           continue
2253           fi
2254           rm -f conftest.$ac_objext conftest.$ac_ext
2255             cat >conftest.$ac_ext <<_ACEOF
2256           #line $LINENO "configure"
2257           #include "confdefs.h"
2258           $ac_declaration
2259           #ifdef F77_DUMMY_MAIN
2260           #  ifdef __cplusplus
2261                extern "C"
2262           #  endif
2263              int F77_DUMMY_MAIN() { return 1; }
2264           #endif
2265           int
2266           main ()
2267           {
2268           exit (42);
2269 karl  1.1   ;
2270             return 0;
2271           }
2272           _ACEOF
2273           rm -f conftest.$ac_objext
2274           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275             (eval $ac_compile) 2>&5
2276             ac_status=$?
2277             echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278             (exit $ac_status); } &&
2279                    { ac_try='test -s conftest.$ac_objext'
2280             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281             (eval $ac_try) 2>&5
2282             ac_status=$?
2283             echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284             (exit $ac_status); }; }; then
2285             break
2286           else
2287             echo "$as_me: failed program was:" >&5
2288           cat conftest.$ac_ext >&5
2289           fi
2290 karl  1.1 rm -f conftest.$ac_objext conftest.$ac_ext
2291           done
2292           rm -f conftest*
2293           if test -n "$ac_declaration"; then
2294             echo '#ifdef __cplusplus' >>confdefs.h
2295             echo $ac_declaration      >>confdefs.h
2296             echo '#endif'             >>confdefs.h
2297           fi
2298           
2299           else
2300             echo "$as_me: failed program was:" >&5
2301           cat conftest.$ac_ext >&5
2302           fi
2303           rm -f conftest.$ac_objext conftest.$ac_ext
2304           ac_ext=c
2305           ac_cpp='$CPP $CPPFLAGS'
2306           ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2307           ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2308           ac_compiler_gnu=$ac_cv_c_compiler_gnu
2309           
2310           # Find the correct PATH separator.  Usually this is `:', but
2311 karl  1.1 # DJGPP uses `;' like DOS.
2312           if test "X${PATH_SEPARATOR+set}" != Xset; then
2313             UNAME=${UNAME-`uname 2>/dev/null`}
2314             case X$UNAME in
2315               *-DOS) lt_cv_sys_path_separator=';' ;;
2316               *)     lt_cv_sys_path_separator=':' ;;
2317             esac
2318             PATH_SEPARATOR=$lt_cv_sys_path_separator
2319           fi
2320           
2321           
2322           # Check whether --with-gnu-ld or --without-gnu-ld was given.
2323           if test "${with_gnu_ld+set}" = set; then
2324             withval="$with_gnu_ld"
2325             test "$withval" = no || with_gnu_ld=yes
2326           else
2327             with_gnu_ld=no
2328           fi;
2329           ac_prog=ld
2330           if test "$GCC" = yes; then
2331             # Check if gcc -print-prog-name=ld gives a path.
2332 karl  1.1   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2333           echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2334             case $host in
2335             *-*-mingw*)
2336               # gcc leaves a trailing carriage return which upsets mingw
2337               ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2338             *)
2339               ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2340             esac
2341             case $ac_prog in
2342               # Accept absolute paths.
2343               [\\/]* | [A-Za-z]:[\\/]*)
2344                 re_direlt='/[^/][^/]*/\.\./'
2345                 # Canonicalize the path of ld
2346                 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2347                 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2348           	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2349                 done
2350                 test -z "$LD" && LD="$ac_prog"
2351                 ;;
2352             "")
2353 karl  1.1     # If it fails, then pretend we aren't using GCC.
2354               ac_prog=ld
2355               ;;
2356             *)
2357               # If it is relative, then search for the first ld in PATH.
2358               with_gnu_ld=unknown
2359               ;;
2360             esac
2361           elif test "$with_gnu_ld" = yes; then
2362             echo "$as_me:$LINENO: checking for GNU ld" >&5
2363           echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2364           else
2365             echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2366           echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2367           fi
2368           if test "${lt_cv_path_LD+set}" = set; then
2369             echo $ECHO_N "(cached) $ECHO_C" >&6
2370           else
2371             if test -z "$LD"; then
2372             IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2373             for ac_dir in $PATH; do
2374 karl  1.1     test -z "$ac_dir" && ac_dir=.
2375               if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2376                 lt_cv_path_LD="$ac_dir/$ac_prog"
2377                 # Check to see if the program is GNU ld.  I'd rather use --version,
2378                 # but apparently some GNU ld's only accept -v.
2379                 # Break only if it was the GNU/non-GNU ld that we prefer.
2380                 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2381           	test "$with_gnu_ld" != no && break
2382                 else
2383           	test "$with_gnu_ld" != yes && break
2384                 fi
2385               fi
2386             done
2387             IFS="$ac_save_ifs"
2388           else
2389             lt_cv_path_LD="$LD" # Let the user override the test with a path.
2390           fi
2391           fi
2392           
2393           LD="$lt_cv_path_LD"
2394           if test -n "$LD"; then
2395 karl  1.1   echo "$as_me:$LINENO: result: $LD" >&5
2396           echo "${ECHO_T}$LD" >&6
2397           else
2398             echo "$as_me:$LINENO: result: no" >&5
2399           echo "${ECHO_T}no" >&6
2400           fi
2401           test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2402           echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2403              { (exit 1); exit 1; }; }
2404           echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2405           echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2406           if test "${lt_cv_prog_gnu_ld+set}" = set; then
2407             echo $ECHO_N "(cached) $ECHO_C" >&6
2408           else
2409             # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2410           if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2411             lt_cv_prog_gnu_ld=yes
2412           else
2413             lt_cv_prog_gnu_ld=no
2414           fi
2415           fi
2416 karl  1.1 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2417           echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2418           with_gnu_ld=$lt_cv_prog_gnu_ld
2419           
2420           
2421           echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2422           echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2423           if test "${lt_cv_ld_reload_flag+set}" = set; then
2424             echo $ECHO_N "(cached) $ECHO_C" >&6
2425           else
2426             lt_cv_ld_reload_flag='-r'
2427           fi
2428           echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2429           echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2430           reload_flag=$lt_cv_ld_reload_flag
2431           test -n "$reload_flag" && reload_flag=" $reload_flag"
2432           
2433           echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2434           echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2435           if test "${lt_cv_path_NM+set}" = set; then
2436             echo $ECHO_N "(cached) $ECHO_C" >&6
2437 karl  1.1 else
2438             if test -n "$NM"; then
2439             # Let the user override the test.
2440             lt_cv_path_NM="$NM"
2441           else
2442             IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2443             for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2444               test -z "$ac_dir" && ac_dir=.
2445               tmp_nm=$ac_dir/${ac_tool_prefix}nm
2446               if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2447                 # Check to see if the nm accepts a BSD-compat flag.
2448                 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2449                 #   nm: unknown option "B" ignored
2450                 # Tru64's nm complains that /dev/null is an invalid object file
2451                 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2452           	lt_cv_path_NM="$tmp_nm -B"
2453           	break
2454                 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2455           	lt_cv_path_NM="$tmp_nm -p"
2456           	break
2457                 else
2458 karl  1.1 	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2459           	continue # so that we can try to find one that supports BSD flags
2460                 fi
2461               fi
2462             done
2463             IFS="$ac_save_ifs"
2464             test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2465           fi
2466           fi
2467           
2468           NM="$lt_cv_path_NM"
2469           echo "$as_me:$LINENO: result: $NM" >&5
2470           echo "${ECHO_T}$NM" >&6
2471           
2472           echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2473           echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2474           if test "${lt_cv_path_SED+set}" = set; then
2475             echo $ECHO_N "(cached) $ECHO_C" >&6
2476           else
2477             # Loop through the user's path and test for sed and gsed.
2478           # Then use that list of sed's as ones to test for truncation.
2479 karl  1.1 as_executable_p="test -f"
2480           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481           for as_dir in $PATH
2482           do
2483             IFS=$as_save_IFS
2484             test -z "$as_dir" && as_dir=.
2485             for ac_prog in sed gsed; do
2486               for ac_exec_ext in '' $ac_executable_extensions; do
2487                 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2488                   _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
2489                 fi
2490               done
2491             done
2492           done
2493           
2494             # Create a temporary directory, and hook for its removal unless debugging.
2495           $debug ||
2496           {
2497             trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2498             trap '{ (exit 1); exit 1; }' 1 2 13 15
2499           }
2500 karl  1.1 
2501           # Create a (secure) tmp directory for tmp files.
2502           : ${TMPDIR=/tmp}
2503           {
2504             tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
2505             test -n "$tmp" && test -d "$tmp"
2506           }  ||
2507           {
2508             tmp=$TMPDIR/sed$$-$RANDOM
2509             (umask 077 && mkdir $tmp)
2510           } ||
2511           {
2512              echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2513              { (exit 1); exit 1; }
2514           }
2515             _max=0
2516             _count=0
2517             # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2518             # along with /bin/sed that truncates output.
2519             for _sed in $_sed_list /usr/xpg4/bin/sed; do
2520               test ! -f ${_sed} && break
2521 karl  1.1     cat /dev/null > "$tmp/sed.in"
2522               _count=0
2523               echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
2524               # Check for GNU sed and select it if it is found.
2525               if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
2526                 lt_cv_path_SED=${_sed}
2527                 break
2528               fi
2529               while true; do
2530                 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
2531                 mv "$tmp/sed.tmp" "$tmp/sed.in"
2532                 cp "$tmp/sed.in" "$tmp/sed.nl"
2533                 echo >>"$tmp/sed.nl"
2534                 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
2535                 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
2536                 # 40000 chars as input seems more than enough
2537                 test $_count -gt 10 && break
2538                 _count=`expr $_count + 1`
2539                 if test $_count -gt $_max; then
2540                   _max=$_count
2541                   lt_cv_path_SED=$_sed
2542 karl  1.1       fi
2543               done
2544             done
2545             rm -rf "$tmp"
2546           
2547           fi
2548           
2549           if test "X$SED" != "X"; then
2550             lt_cv_path_SED=$SED
2551           else
2552             SED=$lt_cv_path_SED
2553           fi
2554           echo "$as_me:$LINENO: result: $SED" >&5
2555           echo "${ECHO_T}$SED" >&6
2556           
2557           echo "$as_me:$LINENO: checking whether ln -s works" >&5
2558           echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2559           LN_S=$as_ln_s
2560           if test "$LN_S" = "ln -s"; then
2561             echo "$as_me:$LINENO: result: yes" >&5
2562           echo "${ECHO_T}yes" >&6
2563 karl  1.1 else
2564             echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2565           echo "${ECHO_T}no, using $LN_S" >&6
2566           fi
2567           
2568           echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2569           echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2570           if test "${lt_cv_deplibs_check_method+set}" = set; then
2571             echo $ECHO_N "(cached) $ECHO_C" >&6
2572           else
2573             lt_cv_file_magic_cmd='$MAGIC_CMD'
2574           lt_cv_file_magic_test_file=
2575           lt_cv_deplibs_check_method='unknown'
2576           # Need to set the preceding variable on all platforms that support
2577           # interlibrary dependencies.
2578           # 'none' -- dependencies not supported.
2579           # `unknown' -- same as none, but documents that we really don't know.
2580           # 'pass_all' -- all dependencies passed with no checks.
2581           # 'test_compile' -- check by making test program.
2582           # 'file_magic [[regex]]' -- check by looking for files in library path
2583           # which responds to the $file_magic_cmd with a given egrep regex.
2584 karl  1.1 # If you have `file' or equivalent on your system and you're not sure
2585           # whether `pass_all' will *always* work, you probably want this one.
2586           
2587           case $host_os in
2588           aix4* | aix5*)
2589             lt_cv_deplibs_check_method=pass_all
2590             ;;
2591           
2592           beos*)
2593             lt_cv_deplibs_check_method=pass_all
2594             ;;
2595           
2596           bsdi4*)
2597             lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2598             lt_cv_file_magic_cmd='/usr/bin/file -L'
2599             lt_cv_file_magic_test_file=/shlib/libc.so
2600             ;;
2601           
2602           cygwin* | mingw* | pw32*)
2603             lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2604             lt_cv_file_magic_cmd='$OBJDUMP -f'
2605 karl  1.1   ;;
2606           
2607           darwin* | rhapsody*)
2608             lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2609             lt_cv_file_magic_cmd='/usr/bin/file -L'
2610             case "$host_os" in
2611             rhapsody* | darwin1.[012])
2612               lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2613               ;;
2614             *) # Darwin 1.3 on
2615               lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2616               ;;
2617             esac
2618             ;;
2619           
2620           freebsd*)
2621             if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2622               case $host_cpu in
2623               i*86 )
2624                 # Not sure whether the presence of OpenBSD here was a mistake.
2625                 # Let's accept both of them until this is cleared up.
2626 karl  1.1       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2627                 lt_cv_file_magic_cmd=/usr/bin/file
2628                 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2629                 ;;
2630               esac
2631             else
2632               lt_cv_deplibs_check_method=pass_all
2633             fi
2634             ;;
2635           
2636           gnu*)
2637             lt_cv_deplibs_check_method=pass_all
2638             ;;
2639           
2640           hpux10.20*|hpux11*)
2641             lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2642             lt_cv_file_magic_cmd=/usr/bin/file
2643             lt_cv_file_magic_test_file=/usr/lib/libc.sl
2644             ;;
2645           
2646           irix5* | irix6* | nonstopux*)
2647 karl  1.1   case $host_os in
2648             irix5* | nonstopux*)
2649               # this will be overridden with pass_all, but let us keep it just in case
2650               lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2651               ;;
2652             *)
2653               case $LD in
2654               *-32|*"-32 ") libmagic=32-bit;;
2655               *-n32|*"-n32 ") libmagic=N32;;
2656               *-64|*"-64 ") libmagic=64-bit;;
2657               *) libmagic=never-match;;
2658               esac
2659               # this will be overridden with pass_all, but let us keep it just in case
2660               lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2661               ;;
2662             esac
2663             lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2664             lt_cv_deplibs_check_method=pass_all
2665             ;;
2666           
2667           # This must be Linux ELF.
2668 karl  1.1 linux-gnu*)
2669             case $host_cpu in
2670             alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
2671               lt_cv_deplibs_check_method=pass_all ;;
2672             *)
2673               # glibc up to 2.1.1 does not perform some relocations on ARM
2674               lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2675             esac
2676             lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2677             ;;
2678           
2679           netbsd*)
2680             if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2681               lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2682             else
2683               lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2684             fi
2685             ;;
2686           
2687           newos6*)
2688             lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2689 karl  1.1   lt_cv_file_magic_cmd=/usr/bin/file
2690             lt_cv_file_magic_test_file=/usr/lib/libnls.so
2691             ;;
2692           
2693           openbsd*)
2694             lt_cv_file_magic_cmd=/usr/bin/file
2695             lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2696             if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2697               lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2698             else
2699               lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2700             fi
2701             ;;
2702           
2703           osf3* | osf4* | osf5*)
2704             # this will be overridden with pass_all, but let us keep it just in case
2705             lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2706             lt_cv_file_magic_test_file=/shlib/libc.so
2707             lt_cv_deplibs_check_method=pass_all
2708             ;;
2709           
2710 karl  1.1 sco3.2v5*)
2711             lt_cv_deplibs_check_method=pass_all
2712             ;;
2713           
2714           solaris*)
2715             lt_cv_deplibs_check_method=pass_all
2716             lt_cv_file_magic_test_file=/lib/libc.so
2717             ;;
2718           
2719           sysv5uw[78]* | sysv4*uw2*)
2720             lt_cv_deplibs_check_method=pass_all
2721             ;;
2722           
2723           sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2724             case $host_vendor in
2725             motorola)
2726               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]'
2727               lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2728               ;;
2729             ncr)
2730               lt_cv_deplibs_check_method=pass_all
2731 karl  1.1     ;;
2732             sequent)
2733               lt_cv_file_magic_cmd='/bin/file'
2734               lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2735               ;;
2736             sni)
2737               lt_cv_file_magic_cmd='/bin/file'
2738               lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2739               lt_cv_file_magic_test_file=/lib/libc.so
2740               ;;
2741             siemens)
2742               lt_cv_deplibs_check_method=pass_all
2743               ;;
2744             esac
2745             ;;
2746           esac
2747           
2748           fi
2749           echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
2750           echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2751           file_magic_cmd=$lt_cv_file_magic_cmd
2752 karl  1.1 deplibs_check_method=$lt_cv_deplibs_check_method
2753           
2754           
2755           
2756           
2757           
2758           
2759           
2760           
2761           # Check for command to grab the raw symbol name followed by C symbol from nm.
2762           echo "$as_me:$LINENO: checking command to parse $NM output" >&5
2763           echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2764           if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2765             echo $ECHO_N "(cached) $ECHO_C" >&6
2766           else
2767           
2768           # These are sane defaults that work on at least a few old systems.
2769           # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
2770           
2771           # Character class describing NM global symbol codes.
2772           symcode='[BCDEGRST]'
2773 karl  1.1 
2774           # Regexp to match symbols that can be accessed directly from C.
2775           sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2776           
2777           # Transform the above into a raw symbol and a C symbol.
2778           symxfrm='\1 \2\3 \3'
2779           
2780           # Transform an extracted symbol line into a proper C declaration
2781           lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2782           
2783           # Transform an extracted symbol line into symbol name and symbol address
2784           lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
2785           
2786           # Define system-specific variables.
2787           case $host_os in
2788           aix*)
2789             symcode='[BCDT]'
2790             ;;
2791           cygwin* | mingw* | pw32*)
2792             symcode='[ABCDGISTW]'
2793             ;;
2794 karl  1.1 hpux*) # Its linker distinguishes data from code symbols
2795             lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2796             lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
2797             ;;
2798           irix* | nonstopux*)
2799             symcode='[BCDEGRST]'
2800             ;;
2801           osf*)
2802             symcode='[BCDEGQRST]'
2803             ;;
2804           solaris* | sysv5*)
2805             symcode='[BDT]'
2806             ;;
2807           sysv4)
2808             symcode='[DFNSTU]'
2809             ;;
2810           esac
2811           
2812           # Handle CRLF in mingw tool chain
2813           opt_cr=
2814           case $host_os in
2815 karl  1.1 mingw*)
2816             opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2817             ;;
2818           esac
2819           
2820           # If we're using GNU nm, then use its standard symbol codes.
2821           if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2822             symcode='[ABCDGISTW]'
2823           fi
2824           
2825           # Try without a prefix undercore, then with it.
2826           for ac_symprfx in "" "_"; do
2827           
2828             # Write the raw and C identifiers.
2829           lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2830           
2831             # Check to see that the pipe works correctly.
2832             pipe_works=no
2833             rm -f conftest*
2834             cat > conftest.$ac_ext <<EOF
2835           #ifdef __cplusplus
2836 karl  1.1 extern "C" {
2837           #endif
2838           char nm_test_var;
2839           void nm_test_func(){}
2840           #ifdef __cplusplus
2841           }
2842           #endif
2843           int main(){nm_test_var='a';nm_test_func();return(0);}
2844           EOF
2845           
2846             if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2847             (eval $ac_compile) 2>&5
2848             ac_status=$?
2849             echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850             (exit $ac_status); }; then
2851               # Now try to grab the symbols.
2852               nlist=conftest.nm
2853               if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
2854             (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
2855             ac_status=$?
2856             echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 karl  1.1   (exit $ac_status); } && test -s "$nlist"; then
2858                 # Try sorting and uniquifying the output.
2859                 if sort "$nlist" | uniq > "$nlist"T; then
2860           	mv -f "$nlist"T "$nlist"
2861                 else
2862           	rm -f "$nlist"T
2863                 fi
2864           
2865                 # Make sure that we snagged all the symbols we need.
2866                 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2867           	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2868           	  cat <<EOF > conftest.$ac_ext
2869           #ifdef __cplusplus
2870           extern "C" {
2871           #endif
2872           
2873           EOF
2874           	  # Now generate the symbol file.
2875           	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2876           
2877           	  cat <<EOF >> conftest.$ac_ext
2878 karl  1.1 #if defined (__STDC__) && __STDC__
2879           # define lt_ptr void *
2880           #else
2881           # define lt_ptr char *
2882           # define const
2883           #endif
2884           
2885           /* The mapping between symbol names and symbols. */
2886           const struct {
2887             const char *name;
2888             lt_ptr address;
2889           }
2890           lt_preloaded_symbols[] =
2891           {
2892           EOF
2893           	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2894           	  cat <<\EOF >> conftest.$ac_ext
2895             {0, (lt_ptr) 0}
2896           };
2897           
2898           #ifdef __cplusplus
2899 karl  1.1 }
2900           #endif
2901           EOF
2902           	  # Now try linking the two files.
2903           	  mv conftest.$ac_objext conftstm.$ac_objext
2904           	  save_LIBS="$LIBS"
2905           	  save_CFLAGS="$CFLAGS"
2906           	  LIBS="conftstm.$ac_objext"
2907           	  CFLAGS="$CFLAGS$no_builtin_flag"
2908           	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2909             (eval $ac_link) 2>&5
2910             ac_status=$?
2911             echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912             (exit $ac_status); } && test -s conftest$ac_exeext; then
2913           	    pipe_works=yes
2914           	  fi
2915           	  LIBS="$save_LIBS"
2916           	  CFLAGS="$save_CFLAGS"
2917           	else
2918           	  echo "cannot find nm_test_func in $nlist" >&5
2919           	fi
2920 karl  1.1       else
2921           	echo "cannot find nm_test_var in $nlist" >&5
2922                 fi
2923               else
2924                 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2925               fi
2926             else
2927               echo "$progname: failed program was:" >&5
2928               cat conftest.$ac_ext >&5
2929             fi
2930             rm -f conftest* conftst*
2931           
2932             # Do not use the global_symbol_pipe unless it works.
2933             if test "$pipe_works" = yes; then
2934               break
2935             else
2936               lt_cv_sys_global_symbol_pipe=
2937             fi
2938           done
2939           
2940           fi
2941 karl  1.1 
2942           global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2943           if test -z "$lt_cv_sys_global_symbol_pipe"; then
2944             global_symbol_to_cdecl=
2945             global_symbol_to_c_name_address=
2946           else
2947             global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2948             global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2949           fi
2950           if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2951           then
2952             echo "$as_me:$LINENO: result: failed" >&5
2953           echo "${ECHO_T}failed" >&6
2954           else
2955             echo "$as_me:$LINENO: result: ok" >&5
2956           echo "${ECHO_T}ok" >&6
2957           fi
2958           
2959           ac_ext=c
2960           ac_cpp='$CPP $CPPFLAGS'
2961           ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 karl  1.1 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963           ac_compiler_gnu=$ac_cv_c_compiler_gnu
2964           echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2965           echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2966           # On Suns, sometimes $CPP names a directory.
2967           if test -n "$CPP" && test -d "$CPP"; then
2968             CPP=
2969           fi
2970           if test -z "$CPP"; then
2971             if test "${ac_cv_prog_CPP+set}" = set; then
2972             echo $ECHO_N "(cached) $ECHO_C" >&6
2973           else
2974                 # Double quotes because CPP needs to be expanded
2975               for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2976               do
2977                 ac_preproc_ok=false
2978           for ac_c_preproc_warn_flag in '' yes
2979           do
2980             # Use a header file that comes with gcc, so configuring glibc
2981             # with a fresh cross-compiler works.
2982             # On the NeXT, cc -E runs the code through the compiler's parser,
2983 karl  1.1   # not just through cpp. "Syntax error" is here to catch this case.
2984             cat >conftest.$ac_ext <<_ACEOF
2985           #line $LINENO "configure"
2986           #include "confdefs.h"
2987           #include <assert.h>
2988                                Syntax error
2989           _ACEOF
2990           if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2991             (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2992             ac_status=$?
2993             egrep -v '^ *\+' conftest.er1 >conftest.err
2994             rm -f conftest.er1
2995             cat conftest.err >&5
2996             echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997             (exit $ac_status); } >/dev/null; then
2998             if test -s conftest.err; then
2999               ac_cpp_err=$ac_c_preproc_warn_flag
3000             else
3001               ac_cpp_err=
3002             fi
3003           else
3004 karl  1.1   ac_cpp_err=yes
3005           fi
3006           if test -z "$ac_cpp_err"; then
3007             :
3008           else
3009             echo "$as_me: failed program was:" >&5
3010             cat conftest.$ac_ext >&5
3011             # Broken: fails on valid input.
3012           continue
3013           fi
3014           rm -f conftest.err conftest.$ac_ext
3015           
3016             # OK, works on sane cases.  Now check whether non-existent headers
3017             # can be detected and how.
3018             cat >conftest.$ac_ext <<_ACEOF
3019           #line $LINENO "configure"
3020           #include "confdefs.h"
3021           #include <ac_nonexistent.h>
3022           _ACEOF
3023           if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024             (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025 karl  1.1   ac_status=$?
3026             egrep -v '^ *\+' conftest.er1 >conftest.err
3027             rm -f conftest.er1
3028             cat conftest.err >&5
3029             echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030             (exit $ac_status); } >/dev/null; then
3031             if test -s conftest.err; then
3032               ac_cpp_err=$ac_c_preproc_warn_flag
3033             else
3034               ac_cpp_err=
3035             fi
3036           else
3037             ac_cpp_err=yes
3038           fi
3039           if test -z "$ac_cpp_err"; then
3040             # Broken: success on invalid input.
3041           continue
3042           else
3043             echo "$as_me: failed program was:" >&5
3044             cat conftest.$ac_ext >&5
3045             # Passes both tests.
3046 karl  1.1 ac_preproc_ok=:
3047           break
3048           fi
3049           rm -f conftest.err conftest.$ac_ext
3050           
3051           done
3052           # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3053           rm -f conftest.err conftest.$ac_ext
3054           if $ac_preproc_ok; then
3055             break
3056           fi
3057           
3058               done
3059               ac_cv_prog_CPP=$CPP
3060           
3061           fi
3062             CPP=$ac_cv_prog_CPP
3063           else
3064             ac_cv_prog_CPP=$CPP
3065           fi
3066           echo "$as_me:$LINENO: result: $CPP" >&5
3067 karl  1.1 echo "${ECHO_T}$CPP" >&6
3068           ac_preproc_ok=false
3069           for ac_c_preproc_warn_flag in '' yes
3070           do
3071             # Use a header file that comes with gcc, so configuring glibc
3072             # with a fresh cross-compiler works.
3073             # On the NeXT, cc -E runs the code through the compiler's parser,
3074             # not just through cpp. "Syntax error" is here to catch this case.
3075             cat >conftest.$ac_ext <<_ACEOF
3076           #line $LINENO "configure"
3077           #include "confdefs.h"
3078           #include <assert.h>
3079                                Syntax error
3080           _ACEOF
3081           if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082             (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083             ac_status=$?
3084             egrep -v '^ *\+' conftest.er1 >conftest.err
3085             rm -f conftest.er1
3086             cat conftest.err >&5
3087             echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 karl  1.1   (exit $ac_status); } >/dev/null; then
3089             if test -s conftest.err; then
3090               ac_cpp_err=$ac_c_preproc_warn_flag
3091             else
3092               ac_cpp_err=
3093             fi
3094           else
3095             ac_cpp_err=yes
3096           fi
3097           if test -z "$ac_cpp_err"; then
3098             :
3099           else
3100             echo "$as_me: failed program was:" >&5
3101             cat conftest.$ac_ext >&5
3102             # Broken: fails on valid input.
3103           continue
3104           fi
3105           rm -f conftest.err conftest.$ac_ext
3106           
3107             # OK, works on sane cases.  Now check whether non-existent headers
3108             # can be detected and how.
3109 karl  1.1   cat >conftest.$ac_ext <<_ACEOF
3110           #line $LINENO "configure"
3111           #include "confdefs.h"
3112           #include <ac_nonexistent.h>
3113           _ACEOF
3114           if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3115             (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3116             ac_status=$?
3117             egrep -v '^ *\+' conftest.er1 >conftest.err
3118             rm -f conftest.er1
3119             cat conftest.err >&5
3120             echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121             (exit $ac_status); } >/dev/null; then
3122             if test -s conftest.err; then
3123               ac_cpp_err=$ac_c_preproc_warn_flag
3124             else
3125               ac_cpp_err=
3126             fi
3127           else
3128             ac_cpp_err=yes
3129           fi
3130 karl  1.1 if test -z "$ac_cpp_err"; then
3131             # Broken: success on invalid input.
3132           continue
3133           else
3134             echo "$as_me: failed program was:" >&5
3135             cat conftest.$ac_ext >&5
3136             # Passes both tests.
3137           ac_preproc_ok=:
3138           break
3139           fi
3140           rm -f conftest.err conftest.$ac_ext
3141           
3142           done
3143           # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3144           rm -f conftest.err conftest.$ac_ext
3145           if $ac_preproc_ok; then
3146             :
3147           else
3148             { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3149           echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3150              { (exit 1); exit 1; }; }
3151 karl  1.1 fi
3152           
3153           ac_ext=c
3154           ac_cpp='$CPP $CPPFLAGS'
3155           ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156           ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157           ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158           
3159           
3160           echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3161           echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3162           if test "${ac_cv_header_stdc+set}" = set; then
3163             echo $ECHO_N "(cached) $ECHO_C" >&6
3164           else
3165             cat >conftest.$ac_ext <<_ACEOF
3166           #line $LINENO "configure"
3167           #include "confdefs.h"
3168           #include <stdlib.h>
3169           #include <stdarg.h>
3170           #include <string.h>
3171           #include <float.h>
3172 karl  1.1 
3173           _ACEOF
3174           if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3175             (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3176             ac_status=$?
3177             egrep -v '^ *\+' conftest.er1 >conftest.err
3178             rm -f conftest.er1
3179             cat conftest.err >&5
3180             echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181             (exit $ac_status); } >/dev/null; then
3182             if test -s conftest.err; then
3183               ac_cpp_err=$ac_c_preproc_warn_flag
3184             else
3185               ac_cpp_err=
3186             fi
3187           else
3188             ac_cpp_err=yes
3189           fi
3190           if test -z "$ac_cpp_err"; then
3191             ac_cv_header_stdc=yes
3192           else
3193 karl  1.1   echo "$as_me: failed program was:" >&5
3194             cat conftest.$ac_ext >&5
3195             ac_cv_header_stdc=no
3196           fi
3197           rm -f conftest.err conftest.$ac_ext
3198           
3199           if test $ac_cv_header_stdc = yes; then
3200             # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3201             cat >conftest.$ac_ext <<_ACEOF
3202           #line $LINENO "configure"
3203           #include "confdefs.h"
3204           #include <string.h>
3205           
3206           _ACEOF
3207           if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3208             egrep "memchr" >/dev/null 2>&1; then
3209             :
3210           else
3211             ac_cv_header_stdc=no
3212           fi
3213           rm -f conftest*
3214 karl  1.1 
3215           fi
3216           
3217           if test $ac_cv_header_stdc = yes; then
3218             # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3219             cat >conftest.$ac_ext <<_ACEOF
3220           #line $LINENO "configure"
3221           #include "confdefs.h"
3222           #include <stdlib.h>
3223           
3224           _ACEOF
3225           if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3226             egrep "free" >/dev/null 2>&1; then
3227             :
3228           else
3229             ac_cv_header_stdc=no
3230           fi
3231           rm -f conftest*
3232           
3233           fi
3234           
3235 karl  1.1 if test $ac_cv_header_stdc = yes; then
3236             # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3237             if test "$cross_compiling" = yes; then
3238             :
3239           else
3240             cat >conftest.$ac_ext <<_ACEOF
3241           #line $LINENO "configure"
3242           #include "confdefs.h"
3243           #include <ctype.h>
3244           #if ((' ' & 0x0FF) == 0x020)
3245           # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3246           # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3247           #else
3248           # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3249                                || ('j' <= (c) && (c) <= 'r') \
3250                                || ('s' <= (c) && (c) <= 'z'))
3251           # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3252           #endif
3253           
3254           #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3255           int
3256 karl  1.1 main ()
3257           {
3258             int i;
3259             for (i = 0; i < 256; i++)
3260               if (XOR (islower (i), ISLOWER (i))
3261                   || toupper (i) != TOUPPER (i))
3262                 exit(2);
3263             exit (0);
3264           }
3265           _ACEOF
3266           rm -f conftest$ac_exeext
3267           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3268             (eval $ac_link) 2>&5
3269             ac_status=$?
3270             echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271             (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3272             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273             (eval $ac_try) 2>&5
3274             ac_status=$?
3275             echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276             (exit $ac_status); }; }; then
3277 karl  1.1   :
3278           else
3279             echo "$as_me: program exited with status $ac_status" >&5
3280           echo "$as_me: failed program was:" >&5
3281           cat conftest.$ac_ext >&5
3282           ( exit $ac_status )
3283           ac_cv_header_stdc=no
3284           fi
3285           rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3286           fi
3287           fi
3288           fi
3289           echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3290           echo "${ECHO_T}$ac_cv_header_stdc" >&6
3291           if test $ac_cv_header_stdc = yes; then
3292           
3293           cat >>confdefs.h <<\_ACEOF
3294           #define STDC_HEADERS 1
3295           _ACEOF
3296           
3297           fi
3298 karl  1.1 
3299           # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3300           
3301           
3302           
3303           
3304           
3305           
3306           
3307           
3308           
3309           for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3310                             inttypes.h stdint.h unistd.h
3311           do
3312           as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3313           echo "$as_me:$LINENO: checking for $ac_header" >&5
3314           echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3315           if eval "test \"\${$as_ac_Header+set}\" = set"; then
3316             echo $ECHO_N "(cached) $ECHO_C" >&6
3317           else
3318             cat >conftest.$ac_ext <<_ACEOF
3319 karl  1.1 #line $LINENO "configure"
3320           #include "confdefs.h"
3321           $ac_includes_default
3322           
3323           #include <$ac_header>
3324           _ACEOF
3325           rm -f conftest.$ac_objext
3326           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3327             (eval $ac_compile) 2>&5
3328             ac_status=$?
3329             echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330             (exit $ac_status); } &&
3331                    { ac_try='test -s conftest.$ac_objext'
3332             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333             (eval $ac_try) 2>&5
3334             ac_status=$?
3335             echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336             (exit $ac_status); }; }; then
3337             eval "$as_ac_Header=yes"
3338           else
3339             echo "$as_me: failed program was:" >&5
3340 karl  1.1 cat conftest.$ac_ext >&5
3341           eval "$as_ac_Header=no"
3342           fi
3343           rm -f conftest.$ac_objext conftest.$ac_ext
3344           fi
3345           echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3346           echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3347           if test `eval echo '${'$as_ac_Header'}'` = yes; then
3348             cat >>confdefs.h <<_ACEOF
3349           #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3350           _ACEOF
3351           
3352           fi
3353           
3354           done
3355           
3356           
3357           
3358           for ac_header in dlfcn.h
3359           do
3360           as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3361 karl  1.1 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3362             echo "$as_me:$LINENO: checking for $ac_header" >&5
3363           echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3364           if eval "test \"\${$as_ac_Header+set}\" = set"; then
3365             echo $ECHO_N "(cached) $ECHO_C" >&6
3366           fi
3367           echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3368           echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3369           else
3370             # Is the header compilable?
3371           echo "$as_me:$LINENO: checking $ac_header usability" >&5
3372           echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3373           cat >conftest.$ac_ext <<_ACEOF
3374           #line $LINENO "configure"
3375           #include "confdefs.h"
3376           $ac_includes_default
3377           #include <$ac_header>
3378           _ACEOF
3379           rm -f conftest.$ac_objext
3380           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381             (eval $ac_compile) 2>&5
3382 karl  1.1   ac_status=$?
3383             echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384             (exit $ac_status); } &&
3385                    { ac_try='test -s conftest.$ac_objext'
3386             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387             (eval $ac_try) 2>&5
3388             ac_status=$?
3389             echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390             (exit $ac_status); }; }; then
3391             ac_header_compiler=yes
3392           else
3393             echo "$as_me: failed program was:" >&5
3394           cat conftest.$ac_ext >&5
3395           ac_header_compiler=no
3396           fi
3397           rm -f conftest.$ac_objext conftest.$ac_ext
3398           echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3399           echo "${ECHO_T}$ac_header_compiler" >&6
3400           
3401           # Is the header present?
3402           echo "$as_me:$LINENO: checking $ac_header presence" >&5
3403 karl  1.1 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3404           cat >conftest.$ac_ext <<_ACEOF
3405           #line $LINENO "configure"
3406           #include "confdefs.h"
3407           #include <$ac_header>
3408           _ACEOF
3409           if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3410             (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3411             ac_status=$?
3412             egrep -v '^ *\+' conftest.er1 >conftest.err
3413             rm -f conftest.er1
3414             cat conftest.err >&5
3415             echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416             (exit $ac_status); } >/dev/null; then
3417             if test -s conftest.err; then
3418               ac_cpp_err=$ac_c_preproc_warn_flag
3419             else
3420               ac_cpp_err=
3421             fi
3422           else
3423             ac_cpp_err=yes
3424 karl  1.1 fi
3425           if test -z "$ac_cpp_err"; then
3426             ac_header_preproc=yes
3427           else
3428             echo "$as_me: failed program was:" >&5
3429             cat conftest.$ac_ext >&5
3430             ac_header_preproc=no
3431           fi
3432           rm -f conftest.err conftest.$ac_ext
3433           echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3434           echo "${ECHO_T}$ac_header_preproc" >&6
3435           
3436           # So?  What about this header?
3437           case $ac_header_compiler:$ac_header_preproc in
3438             yes:no )
3439               { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3440           echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3441               { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3442           echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3443             no:yes )
3444               { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3445 karl  1.1 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3446               { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3447           echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3448               { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3449           echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3450           esac
3451           echo "$as_me:$LINENO: checking for $ac_header" >&5
3452           echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3453           if eval "test \"\${$as_ac_Header+set}\" = set"; then
3454             echo $ECHO_N "(cached) $ECHO_C" >&6
3455           else
3456             eval "$as_ac_Header=$ac_header_preproc"
3457           fi
3458           echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3459           echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3460           
3461           fi
3462           if test `eval echo '${'$as_ac_Header'}'` = yes; then
3463             cat >>confdefs.h <<_ACEOF
3464           #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3465           _ACEOF
3466 karl  1.1 
3467           fi
3468           
3469           done
3470           
3471           
3472           
3473           
3474           
3475           
3476           # Only perform the check for file, if the check method requires it
3477           case $deplibs_check_method in
3478           file_magic*)
3479             if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3480               echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3481           echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3482           if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3483             echo $ECHO_N "(cached) $ECHO_C" >&6
3484           else
3485             case $MAGIC_CMD in
3486             /*)
3487 karl  1.1   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3488             ;;
3489             ?:/*)
3490             lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3491             ;;
3492             *)
3493             ac_save_MAGIC_CMD="$MAGIC_CMD"
3494             IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3495             ac_dummy="/usr/bin:$PATH"
3496             for ac_dir in $ac_dummy; do
3497               test -z "$ac_dir" && ac_dir=.
3498               if test -f $ac_dir/${ac_tool_prefix}file; then
3499                 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3500                 if test -n "$file_magic_test_file"; then
3501           	case $deplibs_check_method in
3502           	"file_magic "*)
3503           	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3504           	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3505           	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3506           	    egrep "$file_magic_regex" > /dev/null; then
3507           	    :
3508 karl  1.1 	  else
3509           	    cat <<EOF 1>&2
3510           
3511           *** Warning: the command libtool uses to detect shared libraries,
3512           *** $file_magic_cmd, produces output that libtool cannot recognize.
3513           *** The result is that libtool may fail to recognize shared libraries
3514           *** as such.  This will affect the creation of libtool libraries that
3515           *** depend on shared libraries, but programs linked with such libtool
3516           *** libraries will work regardless of this problem.  Nevertheless, you
3517           *** may want to report the problem to your system manager and/or to
3518           *** bug-libtool@gnu.org
3519           
3520           EOF
3521           	  fi ;;
3522           	esac
3523                 fi
3524                 break
3525               fi
3526             done
3527             IFS="$ac_save_ifs"
3528             MAGIC_CMD="$ac_save_MAGIC_CMD"
3529 karl  1.1   ;;
3530           esac
3531           fi
3532           
3533           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3534           if test -n "$MAGIC_CMD"; then
3535             echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3536           echo "${ECHO_T}$MAGIC_CMD" >&6
3537           else
3538             echo "$as_me:$LINENO: result: no" >&5
3539           echo "${ECHO_T}no" >&6
3540           fi
3541           
3542           if test -z "$lt_cv_path_MAGIC_CMD"; then
3543             if test -n "$ac_tool_prefix"; then
3544               echo "$as_me:$LINENO: checking for file" >&5
3545           echo $ECHO_N "checking for file... $ECHO_C" >&6
3546           if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3547             echo $ECHO_N "(cached) $ECHO_C" >&6
3548           else
3549             case $MAGIC_CMD in
3550 karl  1.1   /*)
3551             lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3552             ;;
3553             ?:/*)
3554             lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3555             ;;
3556             *)
3557             ac_save_MAGIC_CMD="$MAGIC_CMD"
3558             IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3559             ac_dummy="/usr/bin:$PATH"
3560             for ac_dir in $ac_dummy; do
3561               test -z "$ac_dir" && ac_dir=.
3562               if test -f $ac_dir/file; then
3563                 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3564                 if test -n "$file_magic_test_file"; then
3565           	case $deplibs_check_method in
3566           	"file_magic "*)
3567           	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3568           	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3569           	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3570           	    egrep "$file_magic_regex" > /dev/null; then
3571 karl  1.1 	    :
3572           	  else
3573           	    cat <<EOF 1>&2
3574           
3575           *** Warning: the command libtool uses to detect shared libraries,
3576           *** $file_magic_cmd, produces output that libtool cannot recognize.
3577           *** The result is that libtool may fail to recognize shared libraries
3578           *** as such.  This will affect the creation of libtool libraries that
3579           *** depend on shared libraries, but programs linked with such libtool
3580           *** libraries will work regardless of this problem.  Nevertheless, you
3581           *** may want to report the problem to your system manager and/or to
3582           *** bug-libtool@gnu.org
3583           
3584           EOF
3585           	  fi ;;
3586           	esac
3587                 fi
3588                 break
3589               fi
3590             done
3591             IFS="$ac_save_ifs"
3592 karl  1.1   MAGIC_CMD="$ac_save_MAGIC_CMD"
3593             ;;
3594           esac
3595           fi
3596           
3597           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3598           if test -n "$MAGIC_CMD"; then
3599             echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3600           echo "${ECHO_T}$MAGIC_CMD" >&6
3601           else
3602             echo "$as_me:$LINENO: result: no" >&5
3603           echo "${ECHO_T}no" >&6
3604           fi
3605           
3606             else
3607               MAGIC_CMD=:
3608             fi
3609           fi
3610           
3611             fi
3612             ;;
3613 karl  1.1 esac
3614           
3615           if test -n "$ac_tool_prefix"; then
3616             # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3617           set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3618           echo "$as_me:$LINENO: checking for $ac_word" >&5
3619           echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3620           if test "${ac_cv_prog_RANLIB+set}" = set; then
3621             echo $ECHO_N "(cached) $ECHO_C" >&6
3622           else
3623             if test -n "$RANLIB"; then
3624             ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3625           else
3626           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627           for as_dir in $PATH
3628           do
3629             IFS=$as_save_IFS
3630             test -z "$as_dir" && as_dir=.
3631             for ac_exec_ext in '' $ac_executable_extensions; do
3632             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633               ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3634 karl  1.1     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635               break 2
3636             fi
3637           done
3638           done
3639           
3640           fi
3641           fi
3642           RANLIB=$ac_cv_prog_RANLIB
3643           if test -n "$RANLIB"; then
3644             echo "$as_me:$LINENO: result: $RANLIB" >&5
3645           echo "${ECHO_T}$RANLIB" >&6
3646           else
3647             echo "$as_me:$LINENO: result: no" >&5
3648           echo "${ECHO_T}no" >&6
3649           fi
3650           
3651           fi
3652           if test -z "$ac_cv_prog_RANLIB"; then
3653             ac_ct_RANLIB=$RANLIB
3654             # Extract the first word of "ranlib", so it can be a program name with args.
3655 karl  1.1 set dummy ranlib; ac_word=$2
3656           echo "$as_me:$LINENO: checking for $ac_word" >&5
3657           echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3658           if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3659             echo $ECHO_N "(cached) $ECHO_C" >&6
3660           else
3661             if test -n "$ac_ct_RANLIB"; then
3662             ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3663           else
3664           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665           for as_dir in $PATH
3666           do
3667             IFS=$as_save_IFS
3668             test -z "$as_dir" && as_dir=.
3669             for ac_exec_ext in '' $ac_executable_extensions; do
3670             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3671               ac_cv_prog_ac_ct_RANLIB="ranlib"
3672               echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3673               break 2
3674             fi
3675           done
3676 karl  1.1 done
3677           
3678             test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3679           fi
3680           fi
3681           ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3682           if test -n "$ac_ct_RANLIB"; then
3683             echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3684           echo "${ECHO_T}$ac_ct_RANLIB" >&6
3685           else
3686             echo "$as_me:$LINENO: result: no" >&5
3687           echo "${ECHO_T}no" >&6
3688           fi
3689           
3690             RANLIB=$ac_ct_RANLIB
3691           else
3692             RANLIB="$ac_cv_prog_RANLIB"
3693           fi
3694           
3695           if test -n "$ac_tool_prefix"; then
3696             # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3697 karl  1.1 set dummy ${ac_tool_prefix}strip; ac_word=$2
3698           echo "$as_me:$LINENO: checking for $ac_word" >&5
3699           echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3700           if test "${ac_cv_prog_STRIP+set}" = set; then
3701             echo $ECHO_N "(cached) $ECHO_C" >&6
3702           else
3703             if test -n "$STRIP"; then
3704             ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3705           else
3706           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707           for as_dir in $PATH
3708           do
3709             IFS=$as_save_IFS
3710             test -z "$as_dir" && as_dir=.
3711             for ac_exec_ext in '' $ac_executable_extensions; do
3712             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713               ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3714               echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715               break 2
3716             fi
3717           done
3718 karl  1.1 done
3719           
3720           fi
3721           fi
3722           STRIP=$ac_cv_prog_STRIP
3723           if test -n "$STRIP"; then
3724             echo "$as_me:$LINENO: result: $STRIP" >&5
3725           echo "${ECHO_T}$STRIP" >&6
3726           else
3727             echo "$as_me:$LINENO: result: no" >&5
3728           echo "${ECHO_T}no" >&6
3729           fi
3730           
3731           fi
3732           if test -z "$ac_cv_prog_STRIP"; then
3733             ac_ct_STRIP=$STRIP
3734             # Extract the first word of "strip", so it can be a program name with args.
3735           set dummy strip; ac_word=$2
3736           echo "$as_me:$LINENO: checking for $ac_word" >&5
3737           echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3738           if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3739 karl  1.1   echo $ECHO_N "(cached) $ECHO_C" >&6
3740           else
3741             if test -n "$ac_ct_STRIP"; then
3742             ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3743           else
3744           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745           for as_dir in $PATH
3746           do
3747             IFS=$as_save_IFS
3748             test -z "$as_dir" && as_dir=.
3749             for ac_exec_ext in '' $ac_executable_extensions; do
3750             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751               ac_cv_prog_ac_ct_STRIP="strip"
3752               echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3753               break 2
3754             fi
3755           done
3756           done
3757           
3758             test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3759           fi
3760 karl  1.1 fi
3761           ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3762           if test -n "$ac_ct_STRIP"; then
3763             echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3764           echo "${ECHO_T}$ac_ct_STRIP" >&6
3765           else
3766             echo "$as_me:$LINENO: result: no" >&5
3767           echo "${ECHO_T}no" >&6
3768           fi
3769           
3770             STRIP=$ac_ct_STRIP
3771           else
3772             STRIP="$ac_cv_prog_STRIP"
3773           fi
3774           
3775           
3776           enable_dlopen=no
3777           enable_win32_dll=no
3778           
3779           # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3780           if test "${enable_libtool_lock+set}" = set; then
3781 karl  1.1   enableval="$enable_libtool_lock"
3782           
3783           fi;
3784           test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3785           
3786           # Some flags need to be propagated to the compiler or linker for good
3787           # libtool support.
3788           case $host in
3789           *-*-irix6*)
3790             # Find out which ABI we are using.
3791             echo '#line 3791 "configure"' > conftest.$ac_ext
3792             if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3793             (eval $ac_compile) 2>&5
3794             ac_status=$?
3795             echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796             (exit $ac_status); }; then
3797               case `/usr/bin/file conftest.$ac_objext` in
3798               *32-bit*)
3799                 LD="${LD-ld} -32"
3800                 ;;
3801               *N32*)
3802 karl  1.1       LD="${LD-ld} -n32"
3803                 ;;
3804               *64-bit*)
3805                 LD="${LD-ld} -64"
3806                 ;;
3807               esac
3808             fi
3809             rm -rf conftest*
3810             ;;
3811           
3812           *-*-sco3.2v5*)
3813             # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3814             SAVE_CFLAGS="$CFLAGS"
3815             CFLAGS="$CFLAGS -belf"
3816             echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3817           echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3818           if test "${lt_cv_cc_needs_belf+set}" = set; then
3819             echo $ECHO_N "(cached) $ECHO_C" >&6
3820           else
3821           
3822           
3823 karl  1.1      ac_ext=c
3824           ac_cpp='$CPP $CPPFLAGS'
3825           ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826           ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827           ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828           
3829                cat >conftest.$ac_ext <<_ACEOF
3830           #line $LINENO "configure"
3831           #include "confdefs.h"
3832           
3833           #ifdef F77_DUMMY_MAIN
3834           #  ifdef __cplusplus
3835                extern "C"
3836           #  endif
3837              int F77_DUMMY_MAIN() { return 1; }
3838           #endif
3839           int
3840           main ()
3841           {
3842           
3843             ;
3844 karl  1.1   return 0;
3845           }
3846           _ACEOF
3847           rm -f conftest.$ac_objext conftest$ac_exeext
3848           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3849             (eval $ac_link) 2>&5
3850             ac_status=$?
3851             echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852             (exit $ac_status); } &&
3853                    { ac_try='test -s conftest$ac_exeext'
3854             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855             (eval $ac_try) 2>&5
3856             ac_status=$?
3857             echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858             (exit $ac_status); }; }; then
3859             lt_cv_cc_needs_belf=yes
3860           else
3861             echo "$as_me: failed program was:" >&5
3862           cat conftest.$ac_ext >&5
3863           lt_cv_cc_needs_belf=no
3864           fi
3865 karl  1.1 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3866                ac_ext=c
3867           ac_cpp='$CPP $CPPFLAGS'
3868           ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3869           ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3870           ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871           
3872           fi
3873           echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3874           echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3875             if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3876               # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3877               CFLAGS="$SAVE_CFLAGS"
3878             fi
3879             ;;
3880           
3881           
3882           esac
3883           
3884           # Sed substitution that helps us do robust quoting.  It backslashifies
3885           # metacharacters that are still active within double-quoted strings.
3886 karl  1.1 Xsed='sed -e s/^X//'
3887           sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3888           
3889           # Same as above, but do not quote variable references.
3890           double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3891           
3892           # Sed substitution to delay expansion of an escaped shell variable in a
3893           # double_quote_subst'ed string.
3894           delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3895           
3896           # Constants:
3897           rm="rm -f"
3898           
3899           # Global variables:
3900           default_ofile=libtool
3901           can_build_shared=yes
3902           
3903           # All known linkers require a `.a' archive for static linking (except M$VC,
3904           # which needs '.lib').
3905           libext=a
3906           ltmain="$ac_aux_dir/ltmain.sh"
3907 karl  1.1 ofile="$default_ofile"
3908           with_gnu_ld="$lt_cv_prog_gnu_ld"
3909           need_locks="$enable_libtool_lock"
3910           
3911           old_CC="$CC"
3912           old_CFLAGS="$CFLAGS"
3913           
3914           # Set sane defaults for various variables
3915           test -z "$AR" && AR=ar
3916           test -z "$AR_FLAGS" && AR_FLAGS=cru
3917           test -z "$AS" && AS=as
3918           test -z "$CC" && CC=cc
3919           test -z "$DLLTOOL" && DLLTOOL=dlltool
3920           test -z "$LD" && LD=ld
3921           test -z "$LN_S" && LN_S="ln -s"
3922           test -z "$MAGIC_CMD" && MAGIC_CMD=file
3923           test -z "$NM" && NM=nm
3924           test -z "$OBJDUMP" && OBJDUMP=objdump
3925           test -z "$RANLIB" && RANLIB=:
3926           test -z "$STRIP" && STRIP=:
3927           test -z "$ac_objext" && ac_objext=o
3928 karl  1.1 
3929           if test x"$host" != x"$build"; then
3930             ac_tool_prefix=${host_alias}-
3931           else
3932             ac_tool_prefix=
3933           fi
3934           
3935           # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3936           case $host_os in
3937           linux-gnu*) ;;
3938           linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3939           esac
3940           
3941           case $host_os in
3942           aix3*)
3943             # AIX sometimes has problems with the GCC collect2 program.  For some
3944             # reason, if we set the COLLECT_NAMES environment variable, the problems
3945             # vanish in a puff of smoke.
3946             if test "X${COLLECT_NAMES+set}" != Xset; then
3947               COLLECT_NAMES=
3948               export COLLECT_NAMES
3949 karl  1.1   fi
3950             ;;
3951           esac
3952           
3953           # Determine commands to create old-style static archives.
3954           old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3955           old_postinstall_cmds='chmod 644 $oldlib'
3956           old_postuninstall_cmds=
3957           
3958           if test -n "$RANLIB"; then
3959             case $host_os in
3960             openbsd*)
3961               old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3962               ;;
3963             *)
3964               old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3965               ;;
3966             esac
3967             old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3968           fi
3969           
3970 karl  1.1 # Allow CC to be a program name with arguments.
3971           set dummy $CC
3972           compiler="$2"
3973           
3974           echo "$as_me:$LINENO: checking for objdir" >&5
3975           echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3976           rm -f .libs 2>/dev/null
3977           mkdir .libs 2>/dev/null
3978           if test -d .libs; then
3979             objdir=.libs
3980           else
3981             # MS-DOS does not allow filenames that begin with a dot.
3982             objdir=_libs
3983           fi
3984           rmdir .libs 2>/dev/null
3985           echo "$as_me:$LINENO: result: $objdir" >&5
3986           echo "${ECHO_T}$objdir" >&6
3987           
3988           
3989           
3990           # Check whether --with-pic or --without-pic was given.
3991 karl  1.1 if test "${with_pic+set}" = set; then
3992             withval="$with_pic"
3993             pic_mode="$withval"
3994           else
3995             pic_mode=default
3996           fi;
3997           test -z "$pic_mode" && pic_mode=default
3998           
3999           # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4000           # in isolation, and that seeing it set (from the cache) indicates that
4001           # the associated values are set (in the cache) correctly too.
4002           echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4003           echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4004           if test "${lt_cv_prog_cc_pic+set}" = set; then
4005             echo $ECHO_N "(cached) $ECHO_C" >&6
4006           else
4007              lt_cv_prog_cc_pic=
4008             lt_cv_prog_cc_shlib=
4009             lt_cv_prog_cc_wl=
4010             lt_cv_prog_cc_static=
4011             lt_cv_prog_cc_no_builtin=
4012 karl  1.1   lt_cv_prog_cc_can_build_shared=$can_build_shared
4013           
4014             if test "$GCC" = yes; then
4015               lt_cv_prog_cc_wl='-Wl,'
4016               lt_cv_prog_cc_static='-static'
4017           
4018               case $host_os in
4019               aix*)
4020                 # Below there is a dirty hack to force normal static linking with -ldl
4021                 # The problem is because libdl dynamically linked with both libc and
4022                 # libC (AIX C++ library), which obviously doesn't included in libraries
4023                 # list by gcc. This cause undefined symbols with -static flags.
4024                 # This hack allows C programs to be linked with "-static -ldl", but
4025                 # not sure about C++ programs.
4026                 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4027                 ;;
4028               amigaos*)
4029                 # FIXME: we need at least 68020 code to build shared libraries, but
4030                 # adding the `-m68020' flag to GCC prevents building anything better,
4031                 # like `-m68040'.
4032                 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4033 karl  1.1       ;;
4034               beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4035                 # PIC is the default for these OSes.
4036                 ;;
4037               darwin* | rhapsody*)
4038                 # PIC is the default on this platform
4039                 # Common symbols not allowed in MH_DYLIB files
4040                 lt_cv_prog_cc_pic='-fno-common'
4041                 ;;
4042               cygwin* | mingw* | pw32* | os2*)
4043                 # This hack is so that the source file can tell whether it is being
4044                 # built for inclusion in a dll (and should export symbols for example).
4045                 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4046                 ;;
4047               sysv4*MP*)
4048                 if test -d /usr/nec; then
4049           	 lt_cv_prog_cc_pic=-Kconform_pic
4050                 fi
4051                 ;;
4052               *)
4053                 lt_cv_prog_cc_pic='-fPIC'
4054 karl  1.1       ;;
4055               esac
4056             else
4057               # PORTME Check for PIC flags for the system compiler.
4058               case $host_os in
4059               aix3* | aix4* | aix5*)
4060                 lt_cv_prog_cc_wl='-Wl,'
4061                 # All AIX code is PIC.
4062                 if test "$host_cpu" = ia64; then
4063           	# AIX 5 now supports IA64 processor
4064           	lt_cv_prog_cc_static='-Bstatic'
4065                 else
4066           	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4067                 fi
4068                 ;;
4069           
4070               hpux9* | hpux10* | hpux11*)
4071                 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4072                 lt_cv_prog_cc_wl='-Wl,'
4073                 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4074                 lt_cv_prog_cc_pic='+Z'
4075 karl  1.1       ;;
4076           
4077               irix5* | irix6* | nonstopux*)
4078                 lt_cv_prog_cc_wl='-Wl,'
4079                 lt_cv_prog_cc_static='-non_shared'
4080                 # PIC (with -KPIC) is the default.
4081                 ;;
4082           
4083               cygwin* | mingw* | pw32* | os2*)
4084                 # This hack is so that the source file can tell whether it is being
4085                 # built for inclusion in a dll (and should export symbols for example).
4086                 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4087                 ;;
4088           
4089               newsos6)
4090                 lt_cv_prog_cc_pic='-KPIC'
4091                 lt_cv_prog_cc_static='-Bstatic'
4092                 ;;
4093           
4094               osf3* | osf4* | osf5*)
4095                 # All OSF/1 code is PIC.
4096 karl  1.1       lt_cv_prog_cc_wl='-Wl,'
4097                 lt_cv_prog_cc_static='-non_shared'
4098                 ;;
4099           
4100               sco3.2v5*)
4101                 lt_cv_prog_cc_pic='-Kpic'
4102                 lt_cv_prog_cc_static='-dn'
4103                 lt_cv_prog_cc_shlib='-belf'
4104                 ;;
4105           
4106               solaris*)
4107                 lt_cv_prog_cc_pic='-KPIC'
4108                 lt_cv_prog_cc_static='-Bstatic'
4109                 lt_cv_prog_cc_wl='-Wl,'
4110                 ;;
4111           
4112               sunos4*)
4113                 lt_cv_prog_cc_pic='-PIC'
4114                 lt_cv_prog_cc_static='-Bstatic'
4115                 lt_cv_prog_cc_wl='-Qoption ld '
4116                 ;;
4117 karl  1.1 
4118               sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4119                 lt_cv_prog_cc_pic='-KPIC'
4120                 lt_cv_prog_cc_static='-Bstatic'
4121                 lt_cv_prog_cc_wl='-Wl,'
4122                 ;;
4123           
4124               uts4*)
4125                 lt_cv_prog_cc_pic='-pic'
4126                 lt_cv_prog_cc_static='-Bstatic'
4127                 ;;
4128           
4129               sysv4*MP*)
4130                 if test -d /usr/nec ;then
4131           	lt_cv_prog_cc_pic='-Kconform_pic'
4132           	lt_cv_prog_cc_static='-Bstatic'
4133                 fi
4134                 ;;
4135           
4136               *)
4137                 lt_cv_prog_cc_can_build_shared=no
4138 karl  1.1       ;;
4139               esac
4140             fi
4141           
4142           fi
4143           
4144           if test -z "$lt_cv_prog_cc_pic"; then
4145             echo "$as_me:$LINENO: result: none" >&5
4146           echo "${ECHO_T}none" >&6
4147           else
4148             echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4149           echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4150           
4151             # Check to make sure the pic_flag actually works.
4152             echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4153           echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4154             if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4155             echo $ECHO_N "(cached) $ECHO_C" >&6
4156           else
4157                 save_CFLAGS="$CFLAGS"
4158               CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4159 karl  1.1     cat >conftest.$ac_ext <<_ACEOF
4160           #line $LINENO "configure"
4161           #include "confdefs.h"
4162           
4163           #ifdef F77_DUMMY_MAIN
4164           #  ifdef __cplusplus
4165                extern "C"
4166           #  endif
4167              int F77_DUMMY_MAIN() { return 1; }
4168           #endif
4169           int
4170           main ()
4171           {
4172           
4173             ;
4174             return 0;
4175           }
4176           _ACEOF
4177           rm -f conftest.$ac_objext
4178           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4179             (eval $ac_compile) 2>&5
4180 karl  1.1   ac_status=$?
4181             echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182             (exit $ac_status); } &&
4183                    { ac_try='test -s conftest.$ac_objext'
4184             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185             (eval $ac_try) 2>&5
4186             ac_status=$?
4187             echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188             (exit $ac_status); }; }; then
4189                   case $host_os in
4190                 hpux9* | hpux10* | hpux11*)
4191           	# On HP-UX, both CC and GCC only warn that PIC is supported... then
4192           	# they create non-PIC objects.  So, if there were any warnings, we
4193           	# assume that PIC is not supported.
4194           	if test -s conftest.err; then
4195           	  lt_cv_prog_cc_pic_works=no
4196           	else
4197           	  lt_cv_prog_cc_pic_works=yes
4198           	fi
4199           	;;
4200                 *)
4201 karl  1.1 	lt_cv_prog_cc_pic_works=yes
4202           	;;
4203                 esac
4204           
4205           else
4206             echo "$as_me: failed program was:" >&5
4207           cat conftest.$ac_ext >&5
4208                 lt_cv_prog_cc_pic_works=no
4209           
4210           fi
4211           rm -f conftest.$ac_objext conftest.$ac_ext
4212               CFLAGS="$save_CFLAGS"
4213           
4214           fi
4215           
4216           
4217             if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4218               lt_cv_prog_cc_pic=
4219               lt_cv_prog_cc_can_build_shared=no
4220             else
4221               lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4222 karl  1.1   fi
4223           
4224             echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4225           echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4226           fi
4227           
4228           # Check for any special shared library compilation flags.
4229           if test -n "$lt_cv_prog_cc_shlib"; then
4230             { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4231           echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4232             if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
4233             else
4234              { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4235           echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4236               lt_cv_prog_cc_can_build_shared=no
4237             fi
4238           fi
4239           
4240           echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4241           echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4242           if test "${lt_cv_prog_cc_static_works+set}" = set; then
4243 karl  1.1   echo $ECHO_N "(cached) $ECHO_C" >&6
4244           else
4245               lt_cv_prog_cc_static_works=no
4246             save_LDFLAGS="$LDFLAGS"
4247             LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4248             cat >conftest.$ac_ext <<_ACEOF
4249           #line $LINENO "configure"
4250           #include "confdefs.h"
4251           
4252           #ifdef F77_DUMMY_MAIN
4253           #  ifdef __cplusplus
4254                extern "C"
4255           #  endif
4256              int F77_DUMMY_MAIN() { return 1; }
4257           #endif
4258           int
4259           main ()
4260           {
4261           
4262             ;
4263             return 0;
4264 karl  1.1 }
4265           _ACEOF
4266           rm -f conftest.$ac_objext conftest$ac_exeext
4267           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4268             (eval $ac_link) 2>&5
4269             ac_status=$?
4270             echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271             (exit $ac_status); } &&
4272                    { ac_try='test -s conftest$ac_exeext'
4273             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274             (eval $ac_try) 2>&5
4275             ac_status=$?
4276             echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277             (exit $ac_status); }; }; then
4278             lt_cv_prog_cc_static_works=yes
4279           else
4280             echo "$as_me: failed program was:" >&5
4281           cat conftest.$ac_ext >&5
4282           fi
4283           rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4284             LDFLAGS="$save_LDFLAGS"
4285 karl  1.1 
4286           fi
4287           
4288           
4289           # Belt *and* braces to stop my trousers falling down:
4290           test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4291           echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4292           echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4293           
4294           pic_flag="$lt_cv_prog_cc_pic"
4295           special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4296           wl="$lt_cv_prog_cc_wl"
4297           link_static_flag="$lt_cv_prog_cc_static"
4298           no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4299           can_build_shared="$lt_cv_prog_cc_can_build_shared"
4300           
4301           
4302           # Check to see if options -o and -c are simultaneously supported by compiler
4303           echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4304           echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4305           if test "${lt_cv_compiler_c_o+set}" = set; then
4306 karl  1.1   echo $ECHO_N "(cached) $ECHO_C" >&6
4307           else
4308           
4309           $rm -r conftest 2>/dev/null
4310           mkdir conftest
4311           cd conftest
4312           echo "int some_variable = 0;" > conftest.$ac_ext
4313           mkdir out
4314           # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4315           # that will create temporary files in the current directory regardless of
4316           # the output directory.  Thus, making CWD read-only will cause this test
4317           # to fail, enabling locking or at least warning the user not to do parallel
4318           # builds.
4319           chmod -w .
4320           save_CFLAGS="$CFLAGS"
4321           CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4322           compiler_c_o=no
4323           if { (eval echo configure:4323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4324             # The compiler can only warn and ignore the option if not recognized
4325             # So say no if there are warnings
4326             if test -s out/conftest.err; then
4327 karl  1.1     lt_cv_compiler_c_o=no
4328             else
4329               lt_cv_compiler_c_o=yes
4330             fi
4331           else
4332             # Append any errors to the config.log.
4333             cat out/conftest.err 1>&5
4334             lt_cv_compiler_c_o=no
4335           fi
4336           CFLAGS="$save_CFLAGS"
4337           chmod u+w .
4338           $rm conftest* out/*
4339           rmdir out
4340           cd ..
4341           rmdir conftest
4342           $rm -r conftest 2>/dev/null
4343           
4344           fi
4345           
4346           compiler_c_o=$lt_cv_compiler_c_o
4347           echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4348 karl  1.1 echo "${ECHO_T}$compiler_c_o" >&6
4349           
4350           if test x"$compiler_c_o" = x"yes"; then
4351             # Check to see if we can write to a .lo
4352             echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4353           echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4354             if test "${lt_cv_compiler_o_lo+set}" = set; then
4355             echo $ECHO_N "(cached) $ECHO_C" >&6
4356           else
4357           
4358             lt_cv_compiler_o_lo=no
4359             save_CFLAGS="$CFLAGS"
4360             CFLAGS="$CFLAGS -c -o conftest.lo"
4361             save_objext="$ac_objext"
4362             ac_objext=lo
4363             cat >conftest.$ac_ext <<_ACEOF
4364           #line $LINENO "configure"
4365           #include "confdefs.h"
4366           
4367           #ifdef F77_DUMMY_MAIN
4368           #  ifdef __cplusplus
4369 karl  1.1      extern "C"
4370           #  endif
4371              int F77_DUMMY_MAIN() { return 1; }
4372           #endif
4373           int
4374           main ()
4375           {
4376           int some_variable = 0;
4377             ;
4378             return 0;
4379           }
4380           _ACEOF
4381           rm -f conftest.$ac_objext
4382           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4383             (eval $ac_compile) 2>&5
4384             ac_status=$?
4385             echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386             (exit $ac_status); } &&
4387                    { ac_try='test -s conftest.$ac_objext'
4388             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389             (eval $ac_try) 2>&5
4390 karl  1.1   ac_status=$?
4391             echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392             (exit $ac_status); }; }; then
4393                 # The compiler can only warn and ignore the option if not recognized
4394               # So say no if there are warnings
4395               if test -s conftest.err; then
4396                 lt_cv_compiler_o_lo=no
4397               else
4398                 lt_cv_compiler_o_lo=yes
4399               fi
4400           
4401           else
4402             echo "$as_me: failed program was:" >&5
4403           cat conftest.$ac_ext >&5
4404           fi
4405           rm -f conftest.$ac_objext conftest.$ac_ext
4406             ac_objext="$save_objext"
4407             CFLAGS="$save_CFLAGS"
4408           
4409           fi
4410           
4411 karl  1.1   compiler_o_lo=$lt_cv_compiler_o_lo
4412             echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4413           echo "${ECHO_T}$compiler_o_lo" >&6
4414           else
4415             compiler_o_lo=no
4416           fi
4417           
4418           # Check to see if we can do hard links to lock some files if needed
4419           hard_links="nottested"
4420           if test "$compiler_c_o" = no && test "$need_locks" != no; then
4421             # do not overwrite the value of need_locks provided by the user
4422             echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4423           echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4424             hard_links=yes
4425             $rm conftest*
4426             ln conftest.a conftest.b 2>/dev/null && hard_links=no
4427             touch conftest.a
4428             ln conftest.a conftest.b 2>&5 || hard_links=no
4429             ln conftest.a conftest.b 2>/dev/null && hard_links=no
4430             echo "$as_me:$LINENO: result: $hard_links" >&5
4431           echo "${ECHO_T}$hard_links" >&6
4432 karl  1.1   if test "$hard_links" = no; then
4433               { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4434           echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4435               need_locks=warn
4436             fi
4437           else
4438             need_locks=no
4439           fi
4440           
4441           if test "$GCC" = yes; then
4442             # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4443             echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4444           echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4445             echo "int some_variable = 0;" > conftest.$ac_ext
4446             save_CFLAGS="$CFLAGS"
4447             CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4448             compiler_rtti_exceptions=no
4449             cat >conftest.$ac_ext <<_ACEOF
4450           #line $LINENO "configure"
4451           #include "confdefs.h"
4452           
4453 karl  1.1 #ifdef F77_DUMMY_MAIN
4454           #  ifdef __cplusplus
4455                extern "C"
4456           #  endif
4457              int F77_DUMMY_MAIN() { return 1; }
4458           #endif
4459           int
4460           main ()
4461           {
4462           int some_variable = 0;
4463             ;
4464             return 0;
4465           }
4466           _ACEOF
4467           rm -f conftest.$ac_objext
4468           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469             (eval $ac_compile) 2>&5
4470             ac_status=$?
4471             echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472             (exit $ac_status); } &&
4473                    { ac_try='test -s conftest.$ac_objext'
4474 karl  1.1   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475             (eval $ac_try) 2>&5
4476             ac_status=$?
4477             echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478             (exit $ac_status); }; }; then
4479                 # The compiler can only warn and ignore the option if not recognized
4480               # So say no if there are warnings
4481               if test -s conftest.err; then
4482                 compiler_rtti_exceptions=no
4483               else
4484                 compiler_rtti_exceptions=yes
4485               fi
4486           
4487           else
4488             echo "$as_me: failed program was:" >&5
4489           cat conftest.$ac_ext >&5
4490           fi
4491           rm -f conftest.$ac_objext conftest.$ac_ext
4492             CFLAGS="$save_CFLAGS"
4493             echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4494           echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4495 karl  1.1 
4496             if test "$compiler_rtti_exceptions" = "yes"; then
4497               no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4498             else
4499               no_builtin_flag=' -fno-builtin'
4500             fi
4501           fi
4502           
4503           # See if the linker supports building shared libraries.
4504           echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4505           echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4506           
4507           allow_undefined_flag=
4508           no_undefined_flag=
4509           need_lib_prefix=unknown
4510           need_version=unknown
4511           # when you set need_version to no, make sure it does not cause -set_version
4512           # flags to be left without arguments
4513           archive_cmds=
4514           archive_expsym_cmds=
4515           old_archive_from_new_cmds=
4516 karl  1.1 old_archive_from_expsyms_cmds=
4517           export_dynamic_flag_spec=
4518           whole_archive_flag_spec=
4519           thread_safe_flag_spec=
4520           hardcode_into_libs=no
4521           hardcode_libdir_flag_spec=
4522           hardcode_libdir_separator=
4523           hardcode_direct=no
4524           hardcode_minus_L=no
4525           hardcode_shlibpath_var=unsupported
4526           runpath_var=
4527           link_all_deplibs=unknown
4528           always_export_symbols=no
4529           export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4530           # include_expsyms should be a list of space-separated symbols to be *always*
4531           # included in the symbol list
4532           include_expsyms=
4533           # exclude_expsyms can be an egrep regular expression of symbols to exclude
4534           # it will be wrapped by ` (' and `)$', so one must not match beginning or
4535           # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4536           # as well as any symbol that contains `d'.
4537 karl  1.1 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4538           # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4539           # platforms (ab)use it in PIC code, but their linkers get confused if
4540           # the symbol is explicitly referenced.  Since portable code cannot
4541           # rely on this symbol name, it's probably fine to never include it in
4542           # preloaded symbol tables.
4543           extract_expsyms_cmds=
4544           
4545           case $host_os in
4546           cygwin* | mingw* | pw32*)
4547             # FIXME: the MSVC++ port hasn't been tested in a loooong time
4548             # When not using gcc, we currently assume that we are using
4549             # Microsoft Visual C++.
4550             if test "$GCC" != yes; then
4551               with_gnu_ld=no
4552             fi
4553             ;;
4554           openbsd*)
4555             with_gnu_ld=no
4556             ;;
4557           esac
4558 karl  1.1 
4559           ld_shlibs=yes
4560           if test "$with_gnu_ld" = yes; then
4561             # If archive_cmds runs LD, not CC, wlarc should be empty
4562             wlarc='${wl}'
4563           
4564             # See if GNU ld supports shared libraries.
4565             case $host_os in
4566             aix3* | aix4* | aix5*)
4567               # On AIX, the GNU linker is very broken
4568               # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4569               ld_shlibs=no
4570               cat <<EOF 1>&2
4571           
4572           *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4573           *** to be unable to reliably create shared libraries on AIX.
4574           *** Therefore, libtool is disabling shared libraries support.  If you
4575           *** really care for shared libraries, you may want to modify your PATH
4576           *** so that a non-GNU linker is found, and then restart.
4577           
4578           EOF
4579 karl  1.1     ;;
4580           
4581             amigaos*)
4582               archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4583               hardcode_libdir_flag_spec='-L$libdir'
4584               hardcode_minus_L=yes
4585           
4586               # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4587               # that the semantics of dynamic libraries on AmigaOS, at least up
4588               # to version 4, is to share data among multiple programs linked
4589               # with the same dynamic library.  Since this doesn't match the
4590               # behavior of shared libraries on other platforms, we can use
4591               # them.
4592               ld_shlibs=no
4593               ;;
4594           
4595             beos*)
4596               if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4597                 allow_undefined_flag=unsupported
4598                 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4599                 # support --undefined.  This deserves some investigation.  FIXME
4600 karl  1.1       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4601               else
4602                 ld_shlibs=no
4603               fi
4604               ;;
4605           
4606             cygwin* | mingw* | pw32*)
4607               # hardcode_libdir_flag_spec is actually meaningless, as there is
4608               # no search path for DLLs.
4609               hardcode_libdir_flag_spec='-L$libdir'
4610               allow_undefined_flag=unsupported
4611               always_export_symbols=yes
4612           
4613               extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4614                 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4615                 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4616                 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4617                 else $CC -o impgen impgen.c ; fi)~
4618                 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4619           
4620               old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4621 karl  1.1 
4622               # cygwin and mingw dlls have different entry points and sets of symbols
4623               # to exclude.
4624               # FIXME: what about values for MSVC?
4625               dll_entry=__cygwin_dll_entry@12
4626               dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4627               case $host_os in
4628               mingw*)
4629                 # mingw values
4630                 dll_entry=_DllMainCRTStartup@12
4631                 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4632                 ;;
4633               esac
4634           
4635               # mingw and cygwin differ, and it's simplest to just exclude the union
4636               # of the two symbol sets.
4637               dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4638           
4639               # recent cygwin and mingw systems supply a stub DllMain which the user
4640               # can override, but on older systems we have to supply one (in ltdll.c)
4641               if test "x$lt_cv_need_dllmain" = "xyes"; then
4642 karl  1.1       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4643                 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
4644           	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4645               else
4646                 ltdll_obj=
4647                 ltdll_cmds=
4648               fi
4649           
4650               # Extract the symbol export list from an `--export-all' def file,
4651               # then regenerate the def file from the symbol export list, so that
4652               # the compiled dll only exports the symbol export list.
4653               # Be careful not to strip the DATA tag left be newer dlltools.
4654               export_symbols_cmds="$ltdll_cmds"'
4655                 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4656                 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4657           
4658               # If the export-symbols file already is a .def file (1st line
4659               # is EXPORTS), use it as is.
4660               # If DATA tags from a recent dlltool are present, honour them!
4661               archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
4662           	cp $export_symbols $output_objdir/$soname-def;
4663 karl  1.1       else
4664           	echo EXPORTS > $output_objdir/$soname-def;
4665           	_lt_hint=1;
4666           	cat $export_symbols | while read symbol; do
4667           	 set dummy \$symbol;
4668           	 case \$# in
4669           	   2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4670           	   4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
4671           	   *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4672           	 esac;
4673           	 _lt_hint=`expr 1 + \$_lt_hint`;
4674           	done;
4675                 fi~
4676                 '"$ltdll_cmds"'
4677                 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4678                 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4679                 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4680                 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4681                 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4682               ;;
4683           
4684 karl  1.1   netbsd*)
4685               if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4686                 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4687                 wlarc=
4688               else
4689                 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4690                 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4691               fi
4692               ;;
4693           
4694             solaris* | sysv5*)
4695               if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4696                 ld_shlibs=no
4697                 cat <<EOF 1>&2
4698           
4699           *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4700           *** create shared libraries on Solaris systems.  Therefore, libtool
4701           *** is disabling shared libraries support.  We urge you to upgrade GNU
4702           *** binutils to release 2.9.1 or newer.  Another option is to modify
4703           *** your PATH or compiler configuration so that the native linker is
4704           *** used, and then restart.
4705 karl  1.1 
4706           EOF
4707               elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4708                 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4709                 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4710               else
4711                 ld_shlibs=no
4712               fi
4713               ;;
4714           
4715             sunos4*)
4716               archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4717               wlarc=
4718               hardcode_direct=yes
4719               hardcode_shlibpath_var=no
4720               ;;
4721           
4722             *)
4723               if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4724                 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4725                 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4726 karl  1.1     else
4727                 ld_shlibs=no
4728               fi
4729               ;;
4730             esac
4731           
4732             if test "$ld_shlibs" = yes; then
4733               runpath_var=LD_RUN_PATH
4734               hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4735               export_dynamic_flag_spec='${wl}--export-dynamic'
4736               case $host_os in
4737               cygwin* | mingw* | pw32*)
4738                 # dlltool doesn't understand --whole-archive et. al.
4739                 whole_archive_flag_spec=
4740                 ;;
4741               *)
4742                 # ancient GNU ld didn't support --whole-archive et. al.
4743                 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4744           	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4745                 else
4746           	whole_archive_flag_spec=
4747 karl  1.1       fi
4748                 ;;
4749               esac
4750             fi
4751           else
4752             # PORTME fill in a description of your system's linker (not GNU ld)
4753             case $host_os in
4754             aix3*)
4755               allow_undefined_flag=unsupported
4756               always_export_symbols=yes
4757               archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4758               # Note: this linker hardcodes the directories in LIBPATH if there
4759               # are no directories specified by -L.
4760               hardcode_minus_L=yes
4761               if test "$GCC" = yes && test -z "$link_static_flag"; then
4762                 # Neither direct hardcoding nor static linking is supported with a
4763                 # broken collect2.
4764                 hardcode_direct=unsupported
4765               fi
4766               ;;
4767           
4768 karl  1.1   aix4* | aix5*)
4769               if test "$host_cpu" = ia64; then
4770                 # On IA64, the linker does run time linking by default, so we don't
4771                 # have to do anything special.
4772                 aix_use_runtimelinking=no
4773                 exp_sym_flag='-Bexport'
4774                 no_entry_flag=""
4775               else
4776                 aix_use_runtimelinking=no
4777           
4778                 # Test if we are trying to use run time linking or normal
4779                 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4780                 # need to do runtime linking.
4781                 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4782           	for ld_flag in $LDFLAGS; do
4783           	  case $ld_flag in
4784           	  *-brtl*)
4785           	    aix_use_runtimelinking=yes
4786           	    break
4787           	  ;;
4788           	  esac
4789 karl  1.1 	done
4790                 esac
4791           
4792                 exp_sym_flag='-bexport'
4793                 no_entry_flag='-bnoentry'
4794               fi
4795           
4796               # When large executables or shared objects are built, AIX ld can
4797               # have problems creating the table of contents.  If linking a library
4798               # or program results in "error TOC overflow" add -mminimal-toc to
4799               # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
4800               # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4801           
4802               hardcode_direct=yes
4803               archive_cmds=''
4804               hardcode_libdir_separator=':'
4805               if test "$GCC" = yes; then
4806                 case $host_os in aix4.[012]|aix4.[012].*)
4807           	collect2name=`${CC} -print-prog-name=collect2`
4808           	if test -f "$collect2name" && \
4809           	  strings "$collect2name" | grep resolve_lib_name >/dev/null
4810 karl  1.1 	then
4811           	  # We have reworked collect2
4812           	  hardcode_direct=yes
4813           	else
4814           	  # We have old collect2
4815           	  hardcode_direct=unsupported
4816           	  # It fails to find uninstalled libraries when the uninstalled
4817           	  # path is not listed in the libpath.  Setting hardcode_minus_L
4818           	  # to unsupported forces relinking
4819           	  hardcode_minus_L=yes
4820           	  hardcode_libdir_flag_spec='-L$libdir'
4821           	  hardcode_libdir_separator=
4822           	fi
4823                 esac
4824           
4825                 shared_flag='-shared'
4826               else
4827                 # not using gcc
4828                 if test "$host_cpu" = ia64; then
4829           	shared_flag='${wl}-G'
4830                 else
4831 karl  1.1 	if test "$aix_use_runtimelinking" = yes; then
4832           	  shared_flag='${wl}-G'
4833           	else
4834           	  shared_flag='${wl}-bM:SRE'
4835           	fi
4836                 fi
4837               fi
4838           
4839               # It seems that -bexpall can do strange things, so it is better to
4840               # generate a list of symbols to export.
4841               always_export_symbols=yes
4842               if test "$aix_use_runtimelinking" = yes; then
4843                 # Warning - without using the other runtime loading flags (-brtl),
4844                 # -berok will link without error, but may produce a broken library.
4845                 allow_undefined_flag='-berok'
4846                 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4847                 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4848               else
4849                 if test "$host_cpu" = ia64; then
4850           	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4851           	allow_undefined_flag="-z nodefs"
4852 karl  1.1 	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4853                 else
4854           	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4855           	# Warning - without using the other run time loading flags,
4856           	# -berok will link without error, but may produce a broken library.
4857           	allow_undefined_flag='${wl}-berok'
4858           	# This is a bit strange, but is similar to how AIX traditionally builds
4859           	# it's shared libraries.
4860           	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
4861                 fi
4862               fi
4863               ;;
4864           
4865             amigaos*)
4866               archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4867               hardcode_libdir_flag_spec='-L$libdir'
4868               hardcode_minus_L=yes
4869               # see comment about different semantics on the GNU ld section
4870               ld_shlibs=no
4871               ;;
4872           
4873 karl  1.1   cygwin* | mingw* | pw32*)
4874               # When not using gcc, we currently assume that we are using
4875               # Microsoft Visual C++.
4876               # hardcode_libdir_flag_spec is actually meaningless, as there is
4877               # no search path for DLLs.
4878               hardcode_libdir_flag_spec=' '
4879               allow_undefined_flag=unsupported
4880               # Tell ltmain to make .lib files, not .a files.
4881               libext=lib
4882               # FIXME: Setting linknames here is a bad hack.
4883               archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4884               # The linker will automatically build a .lib file if we build a DLL.
4885               old_archive_from_new_cmds='true'
4886               # FIXME: Should let the user specify the lib program.
4887               old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4888               fix_srcfile_path='`cygpath -w "$srcfile"`'
4889               ;;
4890           
4891             darwin* | rhapsody*)
4892               case "$host_os" in
4893               rhapsody* | darwin1.[012])
4894 karl  1.1       allow_undefined_flag='-undefined suppress'
4895                 ;;
4896               *) # Darwin 1.3 on
4897                 allow_undefined_flag='-flat_namespace -undefined suppress'
4898                 ;;
4899               esac
4900               # FIXME: Relying on posixy $() will cause problems for
4901               #        cross-compilation, but unfortunately the echo tests do not
4902               #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
4903               #	     `"' quotes if we put them in here... so don't!
4904               archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
4905               # We need to add '_' to the symbols in $export_symbols first
4906               #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4907               hardcode_direct=yes
4908               hardcode_shlibpath_var=no
4909               whole_archive_flag_spec='-all_load $convenience'
4910               ;;
4911           
4912             freebsd1*)
4913               ld_shlibs=no
4914               ;;
4915 karl  1.1 
4916             # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4917             # support.  Future versions do this automatically, but an explicit c++rt0.o
4918             # does not break anything, and helps significantly (at the cost of a little
4919             # extra space).
4920             freebsd2.2*)
4921               archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4922               hardcode_libdir_flag_spec='-R$libdir'
4923               hardcode_direct=yes
4924               hardcode_shlibpath_var=no
4925               ;;
4926           
4927             # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4928             freebsd2*)
4929               archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4930               hardcode_direct=yes
4931               hardcode_minus_L=yes
4932               hardcode_shlibpath_var=no
4933               ;;
4934           
4935             # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4936 karl  1.1   freebsd*)
4937               archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4938               hardcode_libdir_flag_spec='-R$libdir'
4939               hardcode_direct=yes
4940               hardcode_shlibpath_var=no
4941               ;;
4942           
4943             hpux9* | hpux10* | hpux11*)
4944               case $host_os in
4945               hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
4946               *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4947               esac
4948               hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4949               hardcode_libdir_separator=:
4950               hardcode_direct=yes
4951               hardcode_minus_L=yes # Not in the search PATH, but as the default
4952           			 # location of the library.
4953               export_dynamic_flag_spec='${wl}-E'
4954               ;;
4955           
4956             irix5* | irix6* | nonstopux*)
4957 karl  1.1     if test "$GCC" = yes; then
4958                 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4959                 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4960               else
4961                 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4962                 hardcode_libdir_flag_spec='-rpath $libdir'
4963               fi
4964               hardcode_libdir_separator=:
4965               link_all_deplibs=yes
4966               ;;
4967           
4968             netbsd*)
4969               if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4970                 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4971               else
4972                 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
4973               fi
4974               hardcode_libdir_flag_spec='-R$libdir'
4975               hardcode_direct=yes
4976               hardcode_shlibpath_var=no
4977               ;;
4978 karl  1.1 
4979             newsos6)
4980               archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4981               hardcode_direct=yes
4982               hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4983               hardcode_libdir_separator=:
4984               hardcode_shlibpath_var=no
4985               ;;
4986           
4987             openbsd*)
4988               hardcode_direct=yes
4989               hardcode_shlibpath_var=no
4990               if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4991                 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4992                 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4993                 export_dynamic_flag_spec='${wl}-E'
4994               else
4995                 case "$host_os" in
4996                 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
4997           	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4998           	hardcode_libdir_flag_spec='-R$libdir'
4999 karl  1.1         ;;
5000                 *)
5001                   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5002                   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5003                   ;;
5004                 esac
5005               fi
5006               ;;
5007           
5008             os2*)
5009               hardcode_libdir_flag_spec='-L$libdir'
5010               hardcode_minus_L=yes
5011               allow_undefined_flag=unsupported
5012               archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5013               old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5014               ;;
5015           
5016             osf3*)
5017               if test "$GCC" = yes; then
5018                 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5019                 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5020 karl  1.1     else
5021                 allow_undefined_flag=' -expect_unresolved \*'
5022                 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5023               fi
5024               hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5025               hardcode_libdir_separator=:
5026               ;;
5027           
5028             osf4* | osf5*)	# as osf3* with the addition of -msym flag
5029               if test "$GCC" = yes; then
5030                 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5031                 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5032                 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5033               else
5034                 allow_undefined_flag=' -expect_unresolved \*'
5035                 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5036                 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5037                 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5038           
5039                 #Both c and cxx compiler support -rpath directly
5040                 hardcode_libdir_flag_spec='-rpath $libdir'
5041 karl  1.1     fi
5042               hardcode_libdir_separator=:
5043               ;;
5044           
5045             sco3.2v5*)
5046               archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5047               hardcode_shlibpath_var=no
5048               runpath_var=LD_RUN_PATH
5049               hardcode_runpath_var=yes
5050               export_dynamic_flag_spec='${wl}-Bexport'
5051               ;;
5052           
5053             solaris*)
5054               # gcc --version < 3.0 without binutils cannot create self contained
5055               # shared libraries reliably, requiring libgcc.a to resolve some of
5056               # the object symbols generated in some cases.  Libraries that use
5057               # assert need libgcc.a to resolve __eprintf, for example.  Linking
5058               # a copy of libgcc.a into every shared library to guarantee resolving
5059               # such symbols causes other problems:  According to Tim Van Holder
5060               # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5061               # (to the application) exception stack for one thing.
5062 karl  1.1     no_undefined_flag=' -z defs'
5063               if test "$GCC" = yes; then
5064                 case `$CC --version 2>/dev/null` in
5065                 [12].*)
5066           	cat <<EOF 1>&2
5067           
5068           *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5069           *** create self contained shared libraries on Solaris systems, without
5070           *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5071           *** -no-undefined support, which will at least allow you to build shared
5072           *** libraries.  However, you may find that when you link such libraries
5073           *** into an application without using GCC, you have to manually add
5074           *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5075           *** upgrade to a newer version of GCC.  Another option is to rebuild your
5076           *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5077           
5078           EOF
5079                   no_undefined_flag=
5080           	;;
5081                 esac
5082               fi
5083 karl  1.1     # $CC -shared without GNU ld will not create a library from C++
5084               # object files and a static libstdc++, better avoid it by now
5085               archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5086               archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5087           		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5088               hardcode_libdir_flag_spec='-R$libdir'
5089               hardcode_shlibpath_var=no
5090               case $host_os in
5091               solaris2.[0-5] | solaris2.[0-5].*) ;;
5092               *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5093                 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5094               esac
5095               link_all_deplibs=yes
5096               ;;
5097           
5098             sunos4*)
5099               if test "x$host_vendor" = xsequent; then
5100                 # Use $CC to link under sequent, because it throws in some extra .o
5101                 # files that make .init and .fini sections work.
5102                 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5103               else
5104 karl  1.1       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5105               fi
5106               hardcode_libdir_flag_spec='-L$libdir'
5107               hardcode_direct=yes
5108               hardcode_minus_L=yes
5109               hardcode_shlibpath_var=no
5110               ;;
5111           
5112             sysv4)
5113               case $host_vendor in
5114                 sni)
5115                   archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5116                   hardcode_direct=yes # is this really true???
5117                   ;;
5118                 siemens)
5119                   ## LD is ld it makes a PLAMLIB
5120                   ## CC just makes a GrossModule.
5121                   archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5122                   reload_cmds='$CC -r -o $output$reload_objs'
5123                   hardcode_direct=no
5124                   ;;
5125 karl  1.1       motorola)
5126                   archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5127                   hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5128                   ;;
5129               esac
5130               runpath_var='LD_RUN_PATH'
5131               hardcode_shlibpath_var=no
5132               ;;
5133           
5134             sysv4.3*)
5135               archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5136               hardcode_shlibpath_var=no
5137               export_dynamic_flag_spec='-Bexport'
5138               ;;
5139           
5140             sysv5*)
5141               no_undefined_flag=' -z text'
5142               # $CC -shared without GNU ld will not create a library from C++
5143               # object files and a static libstdc++, better avoid it by now
5144               archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5145               archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5146 karl  1.1 		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5147               hardcode_libdir_flag_spec=
5148               hardcode_shlibpath_var=no
5149               runpath_var='LD_RUN_PATH'
5150               ;;
5151           
5152             uts4*)
5153               archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5154               hardcode_libdir_flag_spec='-L$libdir'
5155               hardcode_shlibpath_var=no
5156               ;;
5157           
5158             dgux*)
5159               archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5160               hardcode_libdir_flag_spec='-L$libdir'
5161               hardcode_shlibpath_var=no
5162               ;;
5163           
5164             sysv4*MP*)
5165               if test -d /usr/nec; then
5166                 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5167 karl  1.1       hardcode_shlibpath_var=no
5168                 runpath_var=LD_RUN_PATH
5169                 hardcode_runpath_var=yes
5170                 ld_shlibs=yes
5171               fi
5172               ;;
5173           
5174             sysv4.2uw2*)
5175               archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5176               hardcode_direct=yes
5177               hardcode_minus_L=no
5178               hardcode_shlibpath_var=no
5179               hardcode_runpath_var=yes
5180               runpath_var=LD_RUN_PATH
5181               ;;
5182           
5183             sysv5uw7* | unixware7*)
5184               no_undefined_flag='${wl}-z ${wl}text'
5185               if test "$GCC" = yes; then
5186                 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5187               else
5188 karl  1.1       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5189               fi
5190               runpath_var='LD_RUN_PATH'
5191               hardcode_shlibpath_var=no
5192               ;;
5193           
5194             *)
5195               ld_shlibs=no
5196               ;;
5197             esac
5198           fi
5199           echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5200           echo "${ECHO_T}$ld_shlibs" >&6
5201           test "$ld_shlibs" = no && can_build_shared=no
5202           
5203           # Check hardcoding attributes.
5204           echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5205           echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5206           hardcode_action=
5207           if test -n "$hardcode_libdir_flag_spec" || \
5208              test -n "$runpath_var"; then
5209 karl  1.1 
5210             # We can hardcode non-existant directories.
5211             if test "$hardcode_direct" != no &&
5212                # If the only mechanism to avoid hardcoding is shlibpath_var, we
5213                # have to relink, otherwise we might link with an installed library
5214                # when we should be linking with a yet-to-be-installed one
5215                ## test "$hardcode_shlibpath_var" != no &&
5216                test "$hardcode_minus_L" != no; then
5217               # Linking always hardcodes the temporary library directory.
5218               hardcode_action=relink
5219             else
5220               # We can link without hardcoding, and we can hardcode nonexisting dirs.
5221               hardcode_action=immediate
5222             fi
5223           else
5224             # We cannot hardcode anything, or else we can only hardcode existing
5225             # directories.
5226             hardcode_action=unsupported
5227           fi
5228           echo "$as_me:$LINENO: result: $hardcode_action" >&5
5229           echo "${ECHO_T}$hardcode_action" >&6
5230 karl  1.1 
5231           striplib=
5232           old_striplib=
5233           echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5234           echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5235           if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5236             test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5237             test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5238             echo "$as_me:$LINENO: result: yes" >&5
5239           echo "${ECHO_T}yes" >&6
5240           else
5241             echo "$as_me:$LINENO: result: no" >&5
5242           echo "${ECHO_T}no" >&6
5243           fi
5244           
5245           reload_cmds='$LD$reload_flag -o $output$reload_objs'
5246           test -z "$deplibs_check_method" && deplibs_check_method=unknown
5247           
5248           # PORTME Fill in your ld.so characteristics
5249           echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5250           echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5251 karl  1.1 library_names_spec=
5252           libname_spec='lib$name'
5253           soname_spec=
5254           postinstall_cmds=
5255           postuninstall_cmds=
5256           finish_cmds=
5257           finish_eval=
5258           shlibpath_var=
5259           shlibpath_overrides_runpath=unknown
5260           version_type=none
5261           dynamic_linker="$host_os ld.so"
5262           sys_lib_dlsearch_path_spec="/lib /usr/lib"
5263           sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5264           
5265           case $host_os in
5266           aix3*)
5267             version_type=linux
5268             library_names_spec='${libname}${release}.so$versuffix $libname.a'
5269             shlibpath_var=LIBPATH
5270           
5271             # AIX has no versioning support, so we append a major version to the name.
5272 karl  1.1   soname_spec='${libname}${release}.so$major'
5273             ;;
5274           
5275           aix4* | aix5*)
5276             version_type=linux
5277             need_lib_prefix=no
5278             need_version=no
5279             hardcode_into_libs=yes
5280             if test "$host_cpu" = ia64; then
5281               # AIX 5 supports IA64
5282               library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5283               shlibpath_var=LD_LIBRARY_PATH
5284             else
5285               # With GCC up to 2.95.x, collect2 would create an import file
5286               # for dependence libraries.  The import file would start with
5287               # the line `#! .'.  This would cause the generated library to
5288               # depend on `.', always an invalid library.  This was fixed in
5289               # development snapshots of GCC prior to 3.0.
5290               case $host_os in
5291                 aix4 | aix4.[01] | aix4.[01].*)
5292           	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5293 karl  1.1 	     echo ' yes '
5294           	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5295           	  :
5296           	else
5297           	  can_build_shared=no
5298           	fi
5299           	;;
5300               esac
5301               # AIX (on Power*) has no versioning support, so currently we can
5302               # not hardcode correct soname into executable. Probably we can
5303               # add versioning support to collect2, so additional links can
5304               # be useful in future.
5305               if test "$aix_use_runtimelinking" = yes; then
5306                 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5307                 # instead of lib<name>.a to let people know that these are not
5308                 # typical AIX shared libraries.
5309                 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5310               else
5311                 # We preserve .a as extension for shared libraries through AIX4.2
5312                 # and later when we are not doing run time linking.
5313                 library_names_spec='${libname}${release}.a $libname.a'
5314 karl  1.1       soname_spec='${libname}${release}.so$major'
5315               fi
5316               shlibpath_var=LIBPATH
5317             fi
5318             hardcode_into_libs=yes
5319             ;;
5320           
5321           amigaos*)
5322             library_names_spec='$libname.ixlibrary $libname.a'
5323             # Create ${libname}_ixlibrary.a entries in /sys/libs.
5324             finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5325             ;;
5326           
5327           beos*)
5328             library_names_spec='${libname}.so'
5329             dynamic_linker="$host_os ld.so"
5330             shlibpath_var=LIBRARY_PATH
5331             ;;
5332           
5333           bsdi4*)
5334             version_type=linux
5335 karl  1.1   need_version=no
5336             library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5337             soname_spec='${libname}${release}.so$major'
5338             finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5339             shlibpath_var=LD_LIBRARY_PATH
5340             sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5341             sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5342             export_dynamic_flag_spec=-rdynamic
5343             # the default ld.so.conf also contains /usr/contrib/lib and
5344             # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5345             # libtool to hard-code these into programs
5346             ;;
5347           
5348           cygwin* | mingw* | pw32*)
5349             version_type=windows
5350             need_version=no
5351             need_lib_prefix=no
5352             case $GCC,$host_os in
5353             yes,cygwin*)
5354               library_names_spec='$libname.dll.a'
5355               soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5356 karl  1.1     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5357                 dldir=$destdir/`dirname \$dlpath`~
5358                 test -d \$dldir || mkdir -p \$dldir~
5359                 $install_prog .libs/$dlname \$dldir/$dlname'
5360               postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5361                 dlpath=$dir/\$dldll~
5362                  $rm \$dlpath'
5363               ;;
5364             yes,mingw*)
5365               library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5366               sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5367               ;;
5368             yes,pw32*)
5369               library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5370               ;;
5371             *)
5372               library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5373               ;;
5374             esac
5375             dynamic_linker='Win32 ld.exe'
5376             # FIXME: first we should search . and the directory the executable is in
5377 karl  1.1   shlibpath_var=PATH
5378             ;;
5379           
5380           darwin* | rhapsody*)
5381             dynamic_linker="$host_os dyld"
5382             version_type=darwin
5383             need_lib_prefix=no
5384             need_version=no
5385             # FIXME: Relying on posixy $() will cause problems for
5386             #        cross-compilation, but unfortunately the echo tests do not
5387             #        yet detect zsh echo's removal of \ escapes.
5388             library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5389             soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5390             shlibpath_overrides_runpath=yes
5391             shlibpath_var=DYLD_LIBRARY_PATH
5392             ;;
5393           
5394           freebsd1*)
5395             dynamic_linker=no
5396             ;;
5397           
5398 karl  1.1 freebsd*)
5399             objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5400             version_type=freebsd-$objformat
5401             case $version_type in
5402               freebsd-elf*)
5403                 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5404                 need_version=no
5405                 need_lib_prefix=no
5406                 ;;
5407               freebsd-*)
5408                 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5409                 need_version=yes
5410                 ;;
5411             esac
5412             shlibpath_var=LD_LIBRARY_PATH
5413             case $host_os in
5414             freebsd2*)
5415               shlibpath_overrides_runpath=yes
5416               ;;
5417             *)
5418               shlibpath_overrides_runpath=no
5419 karl  1.1     hardcode_into_libs=yes
5420               ;;
5421             esac
5422             ;;
5423           
5424           gnu*)
5425             version_type=linux
5426             need_lib_prefix=no
5427             need_version=no
5428             library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5429             soname_spec='${libname}${release}.so$major'
5430             shlibpath_var=LD_LIBRARY_PATH
5431             hardcode_into_libs=yes
5432             ;;
5433           
5434           hpux9* | hpux10* | hpux11*)
5435             # Give a soname corresponding to the major version so that dld.sl refuses to
5436             # link against other versions.
5437             dynamic_linker="$host_os dld.sl"
5438             version_type=sunos
5439             need_lib_prefix=no
5440 karl  1.1   need_version=no
5441             shlibpath_var=SHLIB_PATH
5442             shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5443             library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5444             soname_spec='${libname}${release}.sl$major'
5445             # HP-UX runs *really* slowly unless shared libraries are mode 555.
5446             postinstall_cmds='chmod 555 $lib'
5447             ;;
5448           
5449           irix5* | irix6* | nonstopux*)
5450             case $host_os in
5451               nonstopux*) version_type=nonstopux ;;
5452               *)          version_type=irix ;;
5453             esac
5454             need_lib_prefix=no
5455             need_version=no
5456             soname_spec='${libname}${release}.so$major'
5457             library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5458             case $host_os in
5459             irix5* | nonstopux*)
5460               libsuff= shlibsuff=
5461 karl  1.1     ;;
5462             *)
5463               case $LD in # libtool.m4 will add one of these switches to LD
5464               *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5465               *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5466               *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5467               *) libsuff= shlibsuff= libmagic=never-match;;
5468               esac
5469               ;;
5470             esac
5471             shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5472             shlibpath_overrides_runpath=no
5473             sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5474             sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5475             ;;
5476           
5477           # No shared lib support for Linux oldld, aout, or coff.
5478           linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5479             dynamic_linker=no
5480             ;;
5481           
5482 karl  1.1 # This must be Linux ELF.
5483           linux-gnu*)
5484             version_type=linux
5485             need_lib_prefix=no
5486             need_version=no
5487             library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5488             soname_spec='${libname}${release}.so$major'
5489             finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5490             shlibpath_var=LD_LIBRARY_PATH
5491             shlibpath_overrides_runpath=no
5492             # This implies no fast_install, which is unacceptable.
5493             # Some rework will be needed to allow for fast_install
5494             # before this can be enabled.
5495             hardcode_into_libs=yes
5496           
5497             # We used to test for /lib/ld.so.1 and disable shared libraries on
5498             # powerpc, because MkLinux only supported shared libraries with the
5499             # GNU dynamic linker.  Since this was broken with cross compilers,
5500             # most powerpc-linux boxes support dynamic linking these days and
5501             # people can always --disable-shared, the test was removed, and we
5502             # assume the GNU/Linux dynamic linker is in use.
5503 karl  1.1   dynamic_linker='GNU/Linux ld.so'
5504             ;;
5505           
5506           netbsd*)
5507             version_type=sunos
5508             need_lib_prefix=no
5509             need_version=no
5510             if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5511               library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5512               finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5513               dynamic_linker='NetBSD (a.out) ld.so'
5514             else
5515               library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5516               soname_spec='${libname}${release}.so$major'
5517               dynamic_linker='NetBSD ld.elf_so'
5518             fi
5519             shlibpath_var=LD_LIBRARY_PATH
5520             shlibpath_overrides_runpath=yes
5521             hardcode_into_libs=yes
5522             ;;
5523           
5524 karl  1.1 newsos6)
5525             version_type=linux
5526             library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5527             shlibpath_var=LD_LIBRARY_PATH
5528             shlibpath_overrides_runpath=yes
5529             ;;
5530           
5531           openbsd*)
5532             version_type=sunos
5533             need_lib_prefix=no
5534             need_version=no
5535             if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5536               case "$host_os" in
5537               openbsd2.[89] | openbsd2.[89].*)
5538                 shlibpath_overrides_runpath=no
5539                 ;;
5540               *)
5541                 shlibpath_overrides_runpath=yes
5542                 ;;
5543               esac
5544             else
5545 karl  1.1     shlibpath_overrides_runpath=yes
5546             fi
5547             library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5548             finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5549             shlibpath_var=LD_LIBRARY_PATH
5550             ;;
5551           
5552           os2*)
5553             libname_spec='$name'
5554             need_lib_prefix=no
5555             library_names_spec='$libname.dll $libname.a'
5556             dynamic_linker='OS/2 ld.exe'
5557             shlibpath_var=LIBPATH
5558             ;;
5559           
5560           osf3* | osf4* | osf5*)
5561             version_type=osf
5562             need_version=no
5563             soname_spec='${libname}${release}.so$major'
5564             library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5565             shlibpath_var=LD_LIBRARY_PATH
5566 karl  1.1   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5567             sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5568             hardcode_into_libs=yes
5569             ;;
5570           
5571           sco3.2v5*)
5572             version_type=osf
5573             soname_spec='${libname}${release}.so$major'
5574             library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5575             shlibpath_var=LD_LIBRARY_PATH
5576             ;;
5577           
5578           solaris*)
5579             version_type=linux
5580             need_lib_prefix=no
5581             need_version=no
5582             library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5583             soname_spec='${libname}${release}.so$major'
5584             shlibpath_var=LD_LIBRARY_PATH
5585             shlibpath_overrides_runpath=yes
5586             hardcode_into_libs=yes
5587 karl  1.1   # ldd complains unless libraries are executable
5588             postinstall_cmds='chmod +x $lib'
5589             ;;
5590           
5591           sunos4*)
5592             version_type=sunos
5593             library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5594             finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5595             shlibpath_var=LD_LIBRARY_PATH
5596             shlibpath_overrides_runpath=yes
5597             if test "$with_gnu_ld" = yes; then
5598               need_lib_prefix=no
5599             fi
5600             need_version=yes
5601             ;;
5602           
5603           sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5604             version_type=linux
5605             library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5606             soname_spec='${libname}${release}.so$major'
5607             shlibpath_var=LD_LIBRARY_PATH
5608 karl  1.1   case $host_vendor in
5609               sni)
5610                 shlibpath_overrides_runpath=no
5611                 need_lib_prefix=no
5612                 export_dynamic_flag_spec='${wl}-Blargedynsym'
5613                 runpath_var=LD_RUN_PATH
5614                 ;;
5615               siemens)
5616                 need_lib_prefix=no
5617                 ;;
5618               motorola)
5619                 need_lib_prefix=no
5620                 need_version=no
5621                 shlibpath_overrides_runpath=no
5622                 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5623                 ;;
5624             esac
5625             ;;
5626           
5627           uts4*)
5628             version_type=linux
5629 karl  1.1   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5630             soname_spec='${libname}${release}.so$major'
5631             shlibpath_var=LD_LIBRARY_PATH
5632             ;;
5633           
5634           dgux*)
5635             version_type=linux
5636             need_lib_prefix=no
5637             need_version=no
5638             library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5639             soname_spec='${libname}${release}.so$major'
5640             shlibpath_var=LD_LIBRARY_PATH
5641             ;;
5642           
5643           sysv4*MP*)
5644             if test -d /usr/nec ;then
5645               version_type=linux
5646               library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5647               soname_spec='$libname.so.$major'
5648               shlibpath_var=LD_LIBRARY_PATH
5649             fi
5650 karl  1.1   ;;
5651           
5652           *)
5653             dynamic_linker=no
5654             ;;
5655           esac
5656           echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5657           echo "${ECHO_T}$dynamic_linker" >&6
5658           test "$dynamic_linker" = no && can_build_shared=no
5659           
5660           # Report the final consequences.
5661           echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
5662           echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5663           echo "$as_me:$LINENO: result: $can_build_shared" >&5
5664           echo "${ECHO_T}$can_build_shared" >&6
5665           
5666           echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5667           echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5668           test "$can_build_shared" = "no" && enable_shared=no
5669           
5670           # On AIX, shared libraries and static libraries use the same namespace, and
5671 karl  1.1 # are all built from PIC.
5672           case "$host_os" in
5673           aix3*)
5674             test "$enable_shared" = yes && enable_static=no
5675             if test -n "$RANLIB"; then
5676               archive_cmds="$archive_cmds~\$RANLIB \$lib"
5677               postinstall_cmds='$RANLIB $lib'
5678             fi
5679             ;;
5680           
5681           aix4*)
5682             if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5683               test "$enable_shared" = yes && enable_static=no
5684             fi
5685             ;;
5686           esac
5687           echo "$as_me:$LINENO: result: $enable_shared" >&5
5688           echo "${ECHO_T}$enable_shared" >&6
5689           
5690           echo "$as_me:$LINENO: checking whether to build static libraries" >&5
5691           echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5692 karl  1.1 # Make sure either enable_shared or enable_static is yes.
5693           test "$enable_shared" = yes || enable_static=yes
5694           echo "$as_me:$LINENO: result: $enable_static" >&5
5695           echo "${ECHO_T}$enable_static" >&6
5696           
5697           if test "$hardcode_action" = relink; then
5698             # Fast installation is not supported
5699             enable_fast_install=no
5700           elif test "$shlibpath_overrides_runpath" = yes ||
5701                test "$enable_shared" = no; then
5702             # Fast installation is not necessary
5703             enable_fast_install=needless
5704           fi
5705           
5706           variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5707           if test "$GCC" = yes; then
5708             variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5709           fi
5710           
5711           if test "x$enable_dlopen" != xyes; then
5712             enable_dlopen=unknown
5713 karl  1.1   enable_dlopen_self=unknown
5714             enable_dlopen_self_static=unknown
5715           else
5716             lt_cv_dlopen=no
5717             lt_cv_dlopen_libs=
5718           
5719             case $host_os in
5720             beos*)
5721               lt_cv_dlopen="load_add_on"
5722               lt_cv_dlopen_libs=
5723               lt_cv_dlopen_self=yes
5724               ;;
5725           
5726             cygwin* | mingw* | pw32*)
5727               lt_cv_dlopen="LoadLibrary"
5728               lt_cv_dlopen_libs=
5729              ;;
5730           
5731             *)
5732               echo "$as_me:$LINENO: checking for shl_load" >&5
5733           echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5734 karl  1.1 if test "${ac_cv_func_shl_load+set}" = set; then
5735             echo $ECHO_N "(cached) $ECHO_C" >&6
5736           else
5737             cat >conftest.$ac_ext <<_ACEOF
5738           #line $LINENO "configure"
5739           #include "confdefs.h"
5740           /* System header to define __stub macros and hopefully few prototypes,
5741               which can conflict with char shl_load (); below.  */
5742           #include <assert.h>
5743           /* Override any gcc2 internal prototype to avoid an error.  */
5744           #ifdef __cplusplus
5745           extern "C"
5746           #endif
5747           /* We use char because int might match the return type of a gcc2
5748              builtin and then its argument prototype would still apply.  */
5749           char shl_load ();
5750           char (*f) ();
5751           
5752           #ifdef F77_DUMMY_MAIN
5753           #  ifdef __cplusplus
5754                extern "C"
5755 karl  1.1 #  endif
5756              int F77_DUMMY_MAIN() { return 1; }
5757           #endif
5758           int
5759           main ()
5760           {
5761           /* The GNU C library defines this for functions which it implements
5762               to always fail with ENOSYS.  Some functions are actually named
5763               something starting with __ and the normal name is an alias.  */
5764           #if defined (__stub_shl_load) || defined (__stub___shl_load)
5765           choke me
5766           #else
5767           f = shl_load;
5768           #endif
5769           
5770             ;
5771             return 0;
5772           }
5773           _ACEOF
5774           rm -f conftest.$ac_objext conftest$ac_exeext
5775           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5776 karl  1.1   (eval $ac_link) 2>&5
5777             ac_status=$?
5778             echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779             (exit $ac_status); } &&
5780                    { ac_try='test -s conftest$ac_exeext'
5781             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782             (eval $ac_try) 2>&5
5783             ac_status=$?
5784             echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785             (exit $ac_status); }; }; then
5786             ac_cv_func_shl_load=yes
5787           else
5788             echo "$as_me: failed program was:" >&5
5789           cat conftest.$ac_ext >&5
5790           ac_cv_func_shl_load=no
5791           fi
5792           rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5793           fi
5794           echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
5795           echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5796           if test $ac_cv_func_shl_load = yes; then
5797 karl  1.1   lt_cv_dlopen="shl_load"
5798           else
5799             echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
5800           echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5801           if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5802             echo $ECHO_N "(cached) $ECHO_C" >&6
5803           else
5804             ac_check_lib_save_LIBS=$LIBS
5805           LIBS="-ldld  $LIBS"
5806           cat >conftest.$ac_ext <<_ACEOF
5807           #line $LINENO "configure"
5808           #include "confdefs.h"
5809           
5810           /* Override any gcc2 internal prototype to avoid an error.  */
5811           #ifdef __cplusplus
5812           extern "C"
5813           #endif
5814           /* We use char because int might match the return type of a gcc2
5815              builtin and then its argument prototype would still apply.  */
5816           char shl_load ();
5817           #ifdef F77_DUMMY_MAIN
5818 karl  1.1 #  ifdef __cplusplus
5819                extern "C"
5820           #  endif
5821              int F77_DUMMY_MAIN() { return 1; }
5822           #endif
5823           int
5824           main ()
5825           {
5826           shl_load ();
5827             ;
5828             return 0;
5829           }
5830           _ACEOF
5831           rm -f conftest.$ac_objext conftest$ac_exeext
5832           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5833             (eval $ac_link) 2>&5
5834             ac_status=$?
5835             echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836             (exit $ac_status); } &&
5837                    { ac_try='test -s conftest$ac_exeext'
5838             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 karl  1.1   (eval $ac_try) 2>&5
5840             ac_status=$?
5841             echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842             (exit $ac_status); }; }; then
5843             ac_cv_lib_dld_shl_load=yes
5844           else
5845             echo "$as_me: failed program was:" >&5
5846           cat conftest.$ac_ext >&5
5847           ac_cv_lib_dld_shl_load=no
5848           fi
5849           rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5850           LIBS=$ac_check_lib_save_LIBS
5851           fi
5852           echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
5853           echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5854           if test $ac_cv_lib_dld_shl_load = yes; then
5855             lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5856           else
5857             echo "$as_me:$LINENO: checking for dlopen" >&5
5858           echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5859           if test "${ac_cv_func_dlopen+set}" = set; then
5860 karl  1.1   echo $ECHO_N "(cached) $ECHO_C" >&6
5861           else
5862             cat >conftest.$ac_ext <<_ACEOF
5863           #line $LINENO "configure"
5864           #include "confdefs.h"
5865           /* System header to define __stub macros and hopefully few prototypes,
5866               which can conflict with char dlopen (); below.  */
5867           #include <assert.h>
5868           /* Override any gcc2 internal prototype to avoid an error.  */
5869           #ifdef __cplusplus
5870           extern "C"
5871           #endif
5872           /* We use char because int might match the return type of a gcc2
5873              builtin and then its argument prototype would still apply.  */
5874           char dlopen ();
5875           char (*f) ();
5876           
5877           #ifdef F77_DUMMY_MAIN
5878           #  ifdef __cplusplus
5879                extern "C"
5880           #  endif
5881 karl  1.1    int F77_DUMMY_MAIN() { return 1; }
5882           #endif
5883           int
5884           main ()
5885           {
5886           /* The GNU C library defines this for functions which it implements
5887               to always fail with ENOSYS.  Some functions are actually named
5888               something starting with __ and the normal name is an alias.  */
5889           #if defined (__stub_dlopen) || defined (__stub___dlopen)
5890           choke me
5891           #else
5892           f = dlopen;
5893           #endif
5894           
5895             ;
5896             return 0;
5897           }
5898           _ACEOF
5899           rm -f conftest.$ac_objext conftest$ac_exeext
5900           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901             (eval $ac_link) 2>&5
5902 karl  1.1   ac_status=$?
5903             echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904             (exit $ac_status); } &&
5905                    { ac_try='test -s conftest$ac_exeext'
5906             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907             (eval $ac_try) 2>&5
5908             ac_status=$?
5909             echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910             (exit $ac_status); }; }; then
5911             ac_cv_func_dlopen=yes
5912           else
5913             echo "$as_me: failed program was:" >&5
5914           cat conftest.$ac_ext >&5
5915           ac_cv_func_dlopen=no
5916           fi
5917           rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5918           fi
5919           echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5920           echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5921           if test $ac_cv_func_dlopen = yes; then
5922             lt_cv_dlopen="dlopen"
5923 karl  1.1 else
5924             echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5925           echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5926           if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5927             echo $ECHO_N "(cached) $ECHO_C" >&6
5928           else
5929             ac_check_lib_save_LIBS=$LIBS
5930           LIBS="-ldl  $LIBS"
5931           cat >conftest.$ac_ext <<_ACEOF
5932           #line $LINENO "configure"
5933           #include "confdefs.h"
5934           
5935           /* Override any gcc2 internal prototype to avoid an error.  */
5936           #ifdef __cplusplus
5937           extern "C"
5938           #endif
5939           /* We use char because int might match the return type of a gcc2
5940              builtin and then its argument prototype would still apply.  */
5941           char dlopen ();
5942           #ifdef F77_DUMMY_MAIN
5943           #  ifdef __cplusplus
5944 karl  1.1      extern "C"
5945           #  endif
5946              int F77_DUMMY_MAIN() { return 1; }
5947           #endif
5948           int
5949           main ()
5950           {
5951           dlopen ();
5952             ;
5953             return 0;
5954           }
5955           _ACEOF
5956           rm -f conftest.$ac_objext conftest$ac_exeext
5957           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5958             (eval $ac_link) 2>&5
5959             ac_status=$?
5960             echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961             (exit $ac_status); } &&
5962                    { ac_try='test -s conftest$ac_exeext'
5963             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964             (eval $ac_try) 2>&5
5965 karl  1.1   ac_status=$?
5966             echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967             (exit $ac_status); }; }; then
5968             ac_cv_lib_dl_dlopen=yes
5969           else
5970             echo "$as_me: failed program was:" >&5
5971           cat conftest.$ac_ext >&5
5972           ac_cv_lib_dl_dlopen=no
5973           fi
5974           rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5975           LIBS=$ac_check_lib_save_LIBS
5976           fi
5977           echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5978           echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5979           if test $ac_cv_lib_dl_dlopen = yes; then
5980             lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5981           else
5982             echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
5983           echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5984           if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5985             echo $ECHO_N "(cached) $ECHO_C" >&6
5986 karl  1.1 else
5987             ac_check_lib_save_LIBS=$LIBS
5988           LIBS="-lsvld  $LIBS"
5989           cat >conftest.$ac_ext <<_ACEOF
5990           #line $LINENO "configure"
5991           #include "confdefs.h"
5992           
5993           /* Override any gcc2 internal prototype to avoid an error.  */
5994           #ifdef __cplusplus
5995           extern "C"
5996           #endif
5997           /* We use char because int might match the return type of a gcc2
5998              builtin and then its argument prototype would still apply.  */
5999           char dlopen ();
6000           #ifdef F77_DUMMY_MAIN
6001           #  ifdef __cplusplus
6002                extern "C"
6003           #  endif
6004              int F77_DUMMY_MAIN() { return 1; }
6005           #endif
6006           int
6007 karl  1.1 main ()
6008           {
6009           dlopen ();
6010             ;
6011             return 0;
6012           }
6013           _ACEOF
6014           rm -f conftest.$ac_objext conftest$ac_exeext
6015           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6016             (eval $ac_link) 2>&5
6017             ac_status=$?
6018             echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019             (exit $ac_status); } &&
6020                    { ac_try='test -s conftest$ac_exeext'
6021             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022             (eval $ac_try) 2>&5
6023             ac_status=$?
6024             echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025             (exit $ac_status); }; }; then
6026             ac_cv_lib_svld_dlopen=yes
6027           else
6028 karl  1.1   echo "$as_me: failed program was:" >&5
6029           cat conftest.$ac_ext >&5
6030           ac_cv_lib_svld_dlopen=no
6031           fi
6032           rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6033           LIBS=$ac_check_lib_save_LIBS
6034           fi
6035           echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6036           echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6037           if test $ac_cv_lib_svld_dlopen = yes; then
6038             lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6039           else
6040             echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6041           echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6042           if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6043             echo $ECHO_N "(cached) $ECHO_C" >&6
6044           else
6045             ac_check_lib_save_LIBS=$LIBS
6046           LIBS="-ldld  $LIBS"
6047           cat >conftest.$ac_ext <<_ACEOF
6048           #line $LINENO "configure"
6049 karl  1.1 #include "confdefs.h"
6050           
6051           /* Override any gcc2 internal prototype to avoid an error.  */
6052           #ifdef __cplusplus
6053           extern "C"
6054           #endif
6055           /* We use char because int might match the return type of a gcc2
6056              builtin and then its argument prototype would still apply.  */
6057           char dld_link ();
6058           #ifdef F77_DUMMY_MAIN
6059           #  ifdef __cplusplus
6060                extern "C"
6061           #  endif
6062              int F77_DUMMY_MAIN() { return 1; }
6063           #endif
6064           int
6065           main ()
6066           {
6067           dld_link ();
6068             ;
6069             return 0;
6070 karl  1.1 }
6071           _ACEOF
6072           rm -f conftest.$ac_objext conftest$ac_exeext
6073           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6074             (eval $ac_link) 2>&5
6075             ac_status=$?
6076             echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077             (exit $ac_status); } &&
6078                    { ac_try='test -s conftest$ac_exeext'
6079             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080             (eval $ac_try) 2>&5
6081             ac_status=$?
6082             echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083             (exit $ac_status); }; }; then
6084             ac_cv_lib_dld_dld_link=yes
6085           else
6086             echo "$as_me: failed program was:" >&5
6087           cat conftest.$ac_ext >&5
6088           ac_cv_lib_dld_dld_link=no
6089           fi
6090           rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6091 karl  1.1 LIBS=$ac_check_lib_save_LIBS
6092           fi
6093           echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6094           echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6095           if test $ac_cv_lib_dld_dld_link = yes; then
6096             lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6097           fi
6098           
6099           
6100           fi
6101           
6102           
6103           fi
6104           
6105           
6106           fi
6107           
6108           
6109           fi
6110           
6111           
6112 karl  1.1 fi
6113           
6114               ;;
6115             esac
6116           
6117             if test "x$lt_cv_dlopen" != xno; then
6118               enable_dlopen=yes
6119             else
6120               enable_dlopen=no
6121             fi
6122           
6123             case $lt_cv_dlopen in
6124             dlopen)
6125               save_CPPFLAGS="$CPPFLAGS"
6126                   test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6127           
6128               save_LDFLAGS="$LDFLAGS"
6129               eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6130           
6131               save_LIBS="$LIBS"
6132               LIBS="$lt_cv_dlopen_libs $LIBS"
6133 karl  1.1 
6134               echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6135           echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6136           if test "${lt_cv_dlopen_self+set}" = set; then
6137             echo $ECHO_N "(cached) $ECHO_C" >&6
6138           else
6139             	  if test "$cross_compiling" = yes; then :
6140             lt_cv_dlopen_self=cross
6141           else
6142               lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6143             lt_status=$lt_dlunknown
6144             cat > conftest.$ac_ext <<EOF
6145           #line 6145 "configure"
6146           #include "confdefs.h"
6147           
6148           #if HAVE_DLFCN_H
6149           #include <dlfcn.h>
6150           #endif
6151           
6152           #include <stdio.h>
6153           
6154 karl  1.1 #ifdef RTLD_GLOBAL
6155           #  define LT_DLGLOBAL		RTLD_GLOBAL
6156           #else
6157           #  ifdef DL_GLOBAL
6158           #    define LT_DLGLOBAL		DL_GLOBAL
6159           #  else
6160           #    define LT_DLGLOBAL		0
6161           #  endif
6162           #endif
6163           
6164           /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6165              find out it does not work in some platform. */
6166           #ifndef LT_DLLAZY_OR_NOW
6167           #  ifdef RTLD_LAZY
6168           #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
6169           #  else
6170           #    ifdef DL_LAZY
6171           #      define LT_DLLAZY_OR_NOW		DL_LAZY
6172           #    else
6173           #      ifdef RTLD_NOW
6174           #        define LT_DLLAZY_OR_NOW	RTLD_NOW
6175 karl  1.1 #      else
6176           #        ifdef DL_NOW
6177           #          define LT_DLLAZY_OR_NOW	DL_NOW
6178           #        else
6179           #          define LT_DLLAZY_OR_NOW	0
6180           #        endif
6181           #      endif
6182           #    endif
6183           #  endif
6184           #endif
6185           
6186           #ifdef __cplusplus
6187           extern "C" void exit (int);
6188           #endif
6189           
6190           void fnord() { int i=42;}
6191           int main ()
6192           {
6193             void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6194             int status = $lt_dlunknown;
6195           
6196 karl  1.1   if (self)
6197               {
6198                 if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6199                 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6200                 /* dlclose (self); */
6201               }
6202           
6203               exit (status);
6204           }
6205           EOF
6206             if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6207             (eval $ac_link) 2>&5
6208             ac_status=$?
6209             echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210             (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6211               (./conftest; exit; ) 2>/dev/null
6212               lt_status=$?
6213               case x$lt_status in
6214                 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6215                 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6216                 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6217 karl  1.1     esac
6218             else :
6219               # compilation failed
6220               lt_cv_dlopen_self=no
6221             fi
6222           fi
6223           rm -fr conftest*
6224           
6225           
6226           fi
6227           echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6228           echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6229           
6230               if test "x$lt_cv_dlopen_self" = xyes; then
6231                 LDFLAGS="$LDFLAGS $link_static_flag"
6232                 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6233           echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6234           if test "${lt_cv_dlopen_self_static+set}" = set; then
6235             echo $ECHO_N "(cached) $ECHO_C" >&6
6236           else
6237             	  if test "$cross_compiling" = yes; then :
6238 karl  1.1   lt_cv_dlopen_self_static=cross
6239           else
6240               lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6241             lt_status=$lt_dlunknown
6242             cat > conftest.$ac_ext <<EOF
6243           #line 6243 "configure"
6244           #include "confdefs.h"
6245           
6246           #if HAVE_DLFCN_H
6247           #include <dlfcn.h>
6248           #endif
6249           
6250           #include <stdio.h>
6251           
6252           #ifdef RTLD_GLOBAL
6253           #  define LT_DLGLOBAL		RTLD_GLOBAL
6254           #else
6255           #  ifdef DL_GLOBAL
6256           #    define LT_DLGLOBAL		DL_GLOBAL
6257           #  else
6258           #    define LT_DLGLOBAL		0
6259 karl  1.1 #  endif
6260           #endif
6261           
6262           /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6263              find out it does not work in some platform. */
6264           #ifndef LT_DLLAZY_OR_NOW
6265           #  ifdef RTLD_LAZY
6266           #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
6267           #  else
6268           #    ifdef DL_LAZY
6269           #      define LT_DLLAZY_OR_NOW		DL_LAZY
6270           #    else
6271           #      ifdef RTLD_NOW
6272           #        define LT_DLLAZY_OR_NOW	RTLD_NOW
6273           #      else
6274           #        ifdef DL_NOW
6275           #          define LT_DLLAZY_OR_NOW	DL_NOW
6276           #        else
6277           #          define LT_DLLAZY_OR_NOW	0
6278           #        endif
6279           #      endif
6280 karl  1.1 #    endif
6281           #  endif
6282           #endif
6283           
6284           #ifdef __cplusplus
6285           extern "C" void exit (int);
6286           #endif
6287           
6288           void fnord() { int i=42;}
6289           int main ()
6290           {
6291             void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6292             int status = $lt_dlunknown;
6293           
6294             if (self)
6295               {
6296                 if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6297                 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6298                 /* dlclose (self); */
6299               }
6300           
6301 karl  1.1     exit (status);
6302           }
6303           EOF
6304             if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6305             (eval $ac_link) 2>&5
6306             ac_status=$?
6307             echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308             (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6309               (./conftest; exit; ) 2>/dev/null
6310               lt_status=$?
6311               case x$lt_status in
6312                 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6313                 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6314                 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6315               esac
6316             else :
6317               # compilation failed
6318               lt_cv_dlopen_self_static=no
6319             fi
6320           fi
6321           rm -fr conftest*
6322 karl  1.1 
6323           
6324           fi
6325           echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6326           echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6327               fi
6328           
6329               CPPFLAGS="$save_CPPFLAGS"
6330               LDFLAGS="$save_LDFLAGS"
6331               LIBS="$save_LIBS"
6332               ;;
6333             esac
6334           
6335             case $lt_cv_dlopen_self in
6336             yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6337             *) enable_dlopen_self=unknown ;;
6338             esac
6339           
6340             case $lt_cv_dlopen_self_static in
6341             yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6342             *) enable_dlopen_self_static=unknown ;;
6343 karl  1.1   esac
6344           fi
6345           
6346           
6347           if test "$enable_shared" = yes && test "$GCC" = yes; then
6348             case $archive_cmds in
6349             *'~'*)
6350               # FIXME: we may have to deal with multi-command sequences.
6351               ;;
6352             '$CC '*)
6353               # Test whether the compiler implicitly links with -lc since on some
6354               # systems, -lgcc has to come before -lc. If gcc already passes -lc
6355               # to ld, don't add -lc before -lgcc.
6356               echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6357           echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6358               if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6359             echo $ECHO_N "(cached) $ECHO_C" >&6
6360           else
6361             $rm conftest*
6362               echo 'static int dummy;' > conftest.$ac_ext
6363           
6364 karl  1.1     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6365             (eval $ac_compile) 2>&5
6366             ac_status=$?
6367             echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368             (exit $ac_status); }; then
6369                 soname=conftest
6370                 lib=conftest
6371                 libobjs=conftest.$ac_objext
6372                 deplibs=
6373                 wl=$lt_cv_prog_cc_wl
6374                 compiler_flags=-v
6375                 linker_flags=-v
6376                 verstring=
6377                 output_objdir=.
6378                 libname=conftest
6379                 save_allow_undefined_flag=$allow_undefined_flag
6380                 allow_undefined_flag=
6381                 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6382             (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6383             ac_status=$?
6384             echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 karl  1.1   (exit $ac_status); }
6386                 then
6387           	lt_cv_archive_cmds_need_lc=no
6388                 else
6389           	lt_cv_archive_cmds_need_lc=yes
6390                 fi
6391                 allow_undefined_flag=$save_allow_undefined_flag
6392               else
6393                 cat conftest.err 1>&5
6394               fi
6395           fi
6396           
6397               echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6398           echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6399               ;;
6400             esac
6401           fi
6402           need_lc=${lt_cv_archive_cmds_need_lc-yes}
6403           
6404           # The second clause should only fire when bootstrapping the
6405           # libtool distribution, otherwise you forgot to ship ltmain.sh
6406 karl  1.1 # with your package, and you will get complaints that there are
6407           # no rules to generate ltmain.sh.
6408           if test -f "$ltmain"; then
6409             :
6410           else
6411             # If there is no Makefile yet, we rely on a make rule to execute
6412             # `config.status --recheck' to rerun these tests and create the
6413             # libtool script then.
6414             test -f Makefile && make "$ltmain"
6415           fi
6416           
6417           if test -f "$ltmain"; then
6418             trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6419             $rm -f "${ofile}T"
6420           
6421             echo creating $ofile
6422           
6423             # Now quote all the things that may contain metacharacters while being
6424             # careful not to overquote the AC_SUBSTed values.  We take copies of the
6425             # variables and quote the copies for generation of the libtool script.
6426             for var in echo old_CC old_CFLAGS SED \
6427 karl  1.1     AR AR_FLAGS CC LD LN_S NM SHELL \
6428               reload_flag reload_cmds wl \
6429               pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6430               thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6431               library_names_spec soname_spec \
6432               RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6433               old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6434               postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6435               old_striplib striplib file_magic_cmd export_symbols_cmds \
6436               deplibs_check_method allow_undefined_flag no_undefined_flag \
6437               finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6438               global_symbol_to_c_name_address \
6439               hardcode_libdir_flag_spec hardcode_libdir_separator  \
6440               sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6441               compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6442           
6443               case $var in
6444               reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6445               old_postinstall_cmds | old_postuninstall_cmds | \
6446               export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6447               extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6448 karl  1.1     postinstall_cmds | postuninstall_cmds | \
6449               finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6450                 # Double-quote double-evaled strings.
6451                 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6452                 ;;
6453               *)
6454                 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6455                 ;;
6456               esac
6457             done
6458           
6459             cat <<__EOF__ > "${ofile}T"
6460           #! $SHELL
6461           
6462           # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6463           # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6464           # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6465           #
6466           # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6467           # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6468           #
6469 karl  1.1 # This program is free software; you can redistribute it and/or modify
6470           # it under the terms of the GNU General Public License as published by
6471           # the Free Software Foundation; either version 2 of the License, or
6472           # (at your option) any later version.
6473           #
6474           # This program is distributed in the hope that it will be useful, but
6475           # WITHOUT ANY WARRANTY; without even the implied warranty of
6476           # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6477           # General Public License for more details.
6478           #
6479           # You should have received a copy of the GNU General Public License
6480           # along with this program; if not, write to the Free Software
6481           # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6482           #
6483           # As a special exception to the GNU General Public License, if you
6484           # distribute this file as part of a program that contains a
6485           # configuration script generated by Autoconf, you may include it under
6486           # the same distribution terms that you use for the rest of that program.
6487           
6488           # A sed that does not truncate output.
6489           SED=$lt_SED
6490 karl  1.1 
6491           # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6492           Xsed="${SED} -e s/^X//"
6493           
6494           # The HP-UX ksh and POSIX shell print the target directory to stdout
6495           # if CDPATH is set.
6496           if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6497           
6498           # ### BEGIN LIBTOOL CONFIG
6499           
6500           # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6501           
6502           # Shell to use when invoking shell scripts.
6503           SHELL=$lt_SHELL
6504           
6505           # Whether or not to build shared libraries.
6506           build_libtool_libs=$enable_shared
6507           
6508           # Whether or not to build static libraries.
6509           build_old_libs=$enable_static
6510           
6511 karl  1.1 # Whether or not to add -lc for building shared libraries.
6512           build_libtool_need_lc=$need_lc
6513           
6514           # Whether or not to optimize for fast installation.
6515           fast_install=$enable_fast_install
6516           
6517           # The host system.
6518           host_alias=$host_alias
6519           host=$host
6520           
6521           # An echo program that does not interpret backslashes.
6522           echo=$lt_echo
6523           
6524           # The archiver.
6525           AR=$lt_AR
6526           AR_FLAGS=$lt_AR_FLAGS
6527           
6528           # The default C compiler.
6529           CC=$lt_CC
6530           
6531           # Is the compiler the GNU C compiler?
6532 karl  1.1 with_gcc=$GCC
6533           
6534           # The linker used to build libraries.
6535           LD=$lt_LD
6536           
6537           # Whether we need hard or soft links.
6538           LN_S=$lt_LN_S
6539           
6540           # A BSD-compatible nm program.
6541           NM=$lt_NM
6542           
6543           # A symbol stripping program
6544           STRIP=$STRIP
6545           
6546           # Used to examine libraries when file_magic_cmd begins "file"
6547           MAGIC_CMD=$MAGIC_CMD
6548           
6549           # Used on cygwin: DLL creation program.
6550           DLLTOOL="$DLLTOOL"
6551           
6552           # Used on cygwin: object dumper.
6553 karl  1.1 OBJDUMP="$OBJDUMP"
6554           
6555           # Used on cygwin: assembler.
6556           AS="$AS"
6557           
6558           # The name of the directory that contains temporary libtool files.
6559           objdir=$objdir
6560           
6561           # How to create reloadable object files.
6562           reload_flag=$lt_reload_flag
6563           reload_cmds=$lt_reload_cmds
6564           
6565           # How to pass a linker flag through the compiler.
6566           wl=$lt_wl
6567           
6568           # Object file suffix (normally "o").
6569           objext="$ac_objext"
6570           
6571           # Old archive suffix (normally "a").
6572           libext="$libext"
6573           
6574 karl  1.1 # Executable file suffix (normally "").
6575           exeext="$exeext"
6576           
6577           # Additional compiler flags for building library objects.
6578           pic_flag=$lt_pic_flag
6579           pic_mode=$pic_mode
6580           
6581           # Does compiler simultaneously support -c and -o options?
6582           compiler_c_o=$lt_compiler_c_o
6583           
6584           # Can we write directly to a .lo ?
6585           compiler_o_lo=$lt_compiler_o_lo
6586           
6587           # Must we lock files when doing compilation ?
6588           need_locks=$lt_need_locks
6589           
6590           # Do we need the lib prefix for modules?
6591           need_lib_prefix=$need_lib_prefix
6592           
6593           # Do we need a version for libraries?
6594           need_version=$need_version
6595 karl  1.1 
6596           # Whether dlopen is supported.
6597           dlopen_support=$enable_dlopen
6598           
6599           # Whether dlopen of programs is supported.
6600           dlopen_self=$enable_dlopen_self
6601           
6602           # Whether dlopen of statically linked programs is supported.
6603           dlopen_self_static=$enable_dlopen_self_static
6604           
6605           # Compiler flag to prevent dynamic linking.
6606           link_static_flag=$lt_link_static_flag
6607           
6608           # Compiler flag to turn off builtin functions.
6609           no_builtin_flag=$lt_no_builtin_flag
6610           
6611           # Compiler flag to allow reflexive dlopens.
6612           export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6613           
6614           # Compiler flag to generate shared objects directly from archives.
6615           whole_archive_flag_spec=$lt_whole_archive_flag_spec
6616 karl  1.1 
6617           # Compiler flag to generate thread-safe objects.
6618           thread_safe_flag_spec=$lt_thread_safe_flag_spec
6619           
6620           # Library versioning type.
6621           version_type=$version_type
6622           
6623           # Format of library name prefix.
6624           libname_spec=$lt_libname_spec
6625           
6626           # List of archive names.  First name is the real one, the rest are links.
6627           # The last name is the one that the linker finds with -lNAME.
6628           library_names_spec=$lt_library_names_spec
6629           
6630           # The coded name of the library, if different from the real name.
6631           soname_spec=$lt_soname_spec
6632           
6633           # Commands used to build and install an old-style archive.
6634           RANLIB=$lt_RANLIB
6635           old_archive_cmds=$lt_old_archive_cmds
6636           old_postinstall_cmds=$lt_old_postinstall_cmds
6637 karl  1.1 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6638           
6639           # Create an old-style archive from a shared archive.
6640           old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6641           
6642           # Create a temporary old-style archive to link instead of a shared archive.
6643           old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6644           
6645           # Commands used to build and install a shared archive.
6646           archive_cmds=$lt_archive_cmds
6647           archive_expsym_cmds=$lt_archive_expsym_cmds
6648           postinstall_cmds=$lt_postinstall_cmds
6649           postuninstall_cmds=$lt_postuninstall_cmds
6650           
6651           # Commands to strip libraries.
6652           old_striplib=$lt_old_striplib
6653           striplib=$lt_striplib
6654           
6655           # Method to check whether dependent libraries are shared objects.
6656           deplibs_check_method=$lt_deplibs_check_method
6657           
6658 karl  1.1 # Command to use when deplibs_check_method == file_magic.
6659           file_magic_cmd=$lt_file_magic_cmd
6660           
6661           # Flag that allows shared libraries with undefined symbols to be built.
6662           allow_undefined_flag=$lt_allow_undefined_flag
6663           
6664           # Flag that forces no undefined symbols.
6665           no_undefined_flag=$lt_no_undefined_flag
6666           
6667           # Commands used to finish a libtool library installation in a directory.
6668           finish_cmds=$lt_finish_cmds
6669           
6670           # Same as above, but a single script fragment to be evaled but not shown.
6671           finish_eval=$lt_finish_eval
6672           
6673           # Take the output of nm and produce a listing of raw symbols and C names.
6674           global_symbol_pipe=$lt_global_symbol_pipe
6675           
6676           # Transform the output of nm in a proper C declaration
6677           global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6678           
6679 karl  1.1 # Transform the output of nm in a C name address pair
6680           global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6681           
6682           # This is the shared library runtime path variable.
6683           runpath_var=$runpath_var
6684           
6685           # This is the shared library path variable.
6686           shlibpath_var=$shlibpath_var
6687           
6688           # Is shlibpath searched before the hard-coded library search path?
6689           shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6690           
6691           # How to hardcode a shared library path into an executable.
6692           hardcode_action=$hardcode_action
6693           
6694           # Whether we should hardcode library paths into libraries.
6695           hardcode_into_libs=$hardcode_into_libs
6696           
6697           # Flag to hardcode \$libdir into a binary during linking.
6698           # This must work even if \$libdir does not exist.
6699           hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6700 karl  1.1 
6701           # Whether we need a single -rpath flag with a separated argument.
6702           hardcode_libdir_separator=$lt_hardcode_libdir_separator
6703           
6704           # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6705           # resulting binary.
6706           hardcode_direct=$hardcode_direct
6707           
6708           # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6709           # resulting binary.
6710           hardcode_minus_L=$hardcode_minus_L
6711           
6712           # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6713           # the resulting binary.
6714           hardcode_shlibpath_var=$hardcode_shlibpath_var
6715           
6716           # Variables whose values should be saved in libtool wrapper scripts and
6717           # restored at relink time.
6718           variables_saved_for_relink="$variables_saved_for_relink"
6719           
6720           # Whether libtool must link a program against all its dependency libraries.
6721 karl  1.1 link_all_deplibs=$link_all_deplibs
6722           
6723           # Compile-time system search path for libraries
6724           sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6725           
6726           # Run-time system search path for libraries
6727           sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6728           
6729           # Fix the shell variable \$srcfile for the compiler.
6730           fix_srcfile_path="$fix_srcfile_path"
6731           
6732           # Set to yes if exported symbols are required.
6733           always_export_symbols=$always_export_symbols
6734           
6735           # The commands to list exported symbols.
6736           export_symbols_cmds=$lt_export_symbols_cmds
6737           
6738           # The commands to extract the exported symbol list from a shared archive.
6739           extract_expsyms_cmds=$lt_extract_expsyms_cmds
6740           
6741           # Symbols that should not be listed in the preloaded symbols.
6742 karl  1.1 exclude_expsyms=$lt_exclude_expsyms
6743           
6744           # Symbols that must always be exported.
6745           include_expsyms=$lt_include_expsyms
6746           
6747           # ### END LIBTOOL CONFIG
6748           
6749           __EOF__
6750           
6751             case $host_os in
6752             aix3*)
6753               cat <<\EOF >> "${ofile}T"
6754           
6755           # AIX sometimes has problems with the GCC collect2 program.  For some
6756           # reason, if we set the COLLECT_NAMES environment variable, the problems
6757           # vanish in a puff of smoke.
6758           if test "X${COLLECT_NAMES+set}" != Xset; then
6759             COLLECT_NAMES=
6760             export COLLECT_NAMES
6761           fi
6762           EOF
6763 karl  1.1     ;;
6764             esac
6765           
6766             case $host_os in
6767             cygwin* | mingw* | pw32* | os2*)
6768               cat <<'EOF' >> "${ofile}T"
6769                 # This is a source program that is used to create dlls on Windows
6770                 # Don't remove nor modify the starting and closing comments
6771           # /* ltdll.c starts here */
6772           # #define WIN32_LEAN_AND_MEAN
6773           # #include <windows.h>
6774           # #undef WIN32_LEAN_AND_MEAN
6775           # #include <stdio.h>
6776           #
6777           # #ifndef __CYGWIN__
6778           # #  ifdef __CYGWIN32__
6779           # #    define __CYGWIN__ __CYGWIN32__
6780           # #  endif
6781           # #endif
6782           #
6783           # #ifdef __cplusplus
6784 karl  1.1 # extern "C" {
6785           # #endif
6786           # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6787           # #ifdef __cplusplus
6788           # }
6789           # #endif
6790           #
6791           # #ifdef __CYGWIN__
6792           # #include <cygwin/cygwin_dll.h>
6793           # DECLARE_CYGWIN_DLL( DllMain );
6794           # #endif
6795           # HINSTANCE __hDllInstance_base;
6796           #
6797           # BOOL APIENTRY
6798           # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6799           # {
6800           #   __hDllInstance_base = hInst;
6801           #   return TRUE;
6802           # }
6803           # /* ltdll.c ends here */
6804           	# This is a source program that is used to create import libraries
6805 karl  1.1 	# on Windows for dlls which lack them. Don't remove nor modify the
6806           	# starting and closing comments
6807           # /* impgen.c starts here */
6808           # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
6809           #
6810           #  This file is part of GNU libtool.
6811           #
6812           #  This program is free software; you can redistribute it and/or modify
6813           #  it under the terms of the GNU General Public License as published by
6814           #  the Free Software Foundation; either version 2 of the License, or
6815           #  (at your option) any later version.
6816           #
6817           #  This program is distributed in the hope that it will be useful,
6818           #  but WITHOUT ANY WARRANTY; without even the implied warranty of
6819           #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6820           #  GNU General Public License for more details.
6821           #
6822           #  You should have received a copy of the GNU General Public License
6823           #  along with this program; if not, write to the Free Software
6824           #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6825           #  */
6826 karl  1.1 #
6827           # #include <stdio.h>		/* for printf() */
6828           # #include <unistd.h>		/* for open(), lseek(), read() */
6829           # #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
6830           # #include <string.h>		/* for strdup() */
6831           #
6832           # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6833           # #ifndef O_BINARY
6834           # #define O_BINARY 0
6835           # #endif
6836           #
6837           # static unsigned int
6838           # pe_get16 (fd, offset)
6839           #      int fd;
6840           #      int offset;
6841           # {
6842           #   unsigned char b[2];
6843           #   lseek (fd, offset, SEEK_SET);
6844           #   read (fd, b, 2);
6845           #   return b[0] + (b[1]<<8);
6846           # }
6847 karl  1.1 #
6848           # static unsigned int
6849           # pe_get32 (fd, offset)
6850           #     int fd;
6851           #     int offset;
6852           # {
6853           #   unsigned char b[4];
6854           #   lseek (fd, offset, SEEK_SET);
6855           #   read (fd, b, 4);
6856           #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6857           # }
6858           #
6859           # static unsigned int
6860           # pe_as32 (ptr)
6861           #      void *ptr;
6862           # {
6863           #   unsigned char *b = ptr;
6864           #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6865           # }
6866           #
6867           # int
6868 karl  1.1 # main (argc, argv)
6869           #     int argc;
6870           #     char *argv[];
6871           # {
6872           #     int dll;
6873           #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6874           #     unsigned long export_rva, export_size, nsections, secptr, expptr;
6875           #     unsigned long name_rvas, nexp;
6876           #     unsigned char *expdata, *erva;
6877           #     char *filename, *dll_name;
6878           #
6879           #     filename = argv[1];
6880           #
6881           #     dll = open(filename, O_RDONLY|O_BINARY);
6882           #     if (dll < 1)
6883           # 	return 1;
6884           #
6885           #     dll_name = filename;
6886           #
6887           #     for (i=0; filename[i]; i++)
6888           # 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
6889 karl  1.1 # 	    dll_name = filename + i +1;
6890           #
6891           #     pe_header_offset = pe_get32 (dll, 0x3c);
6892           #     opthdr_ofs = pe_header_offset + 4 + 20;
6893           #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
6894           #
6895           #     if (num_entries < 1) /* no exports */
6896           # 	return 1;
6897           #
6898           #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
6899           #     export_size = pe_get32 (dll, opthdr_ofs + 100);
6900           #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6901           #     secptr = (pe_header_offset + 4 + 20 +
6902           # 	      pe_get16 (dll, pe_header_offset + 4 + 16));
6903           #
6904           #     expptr = 0;
6905           #     for (i = 0; i < nsections; i++)
6906           #     {
6907           # 	char sname[8];
6908           # 	unsigned long secptr1 = secptr + 40 * i;
6909           # 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6910 karl  1.1 # 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6911           # 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6912           # 	lseek(dll, secptr1, SEEK_SET);
6913           # 	read(dll, sname, 8);
6914           # 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
6915           # 	{
6916           # 	    expptr = fptr + (export_rva - vaddr);
6917           # 	    if (export_rva + export_size > vaddr + vsize)
6918           # 		export_size = vsize - (export_rva - vaddr);
6919           # 	    break;
6920           # 	}
6921           #     }
6922           #
6923           #     expdata = (unsigned char*)malloc(export_size);
6924           #     lseek (dll, expptr, SEEK_SET);
6925           #     read (dll, expdata, export_size);
6926           #     erva = expdata - export_rva;
6927           #
6928           #     nexp = pe_as32 (expdata+24);
6929           #     name_rvas = pe_as32 (expdata+32);
6930           #
6931 karl  1.1 #     printf ("EXPORTS\n");
6932           #     for (i = 0; i<nexp; i++)
6933           #     {
6934           # 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6935           # 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6936           #     }
6937           #
6938           #     return 0;
6939           # }
6940           # /* impgen.c ends here */
6941           
6942           EOF
6943               ;;
6944             esac
6945           
6946             # We use sed instead of cat because bash on DJGPP gets confused if
6947             # if finds mixed CR/LF and LF-only lines.  Since sed operates in
6948             # text mode, it properly converts lines to CR/LF.  This bash problem
6949             # is reportedly fixed, but why not run on old versions too?
6950             sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6951           
6952 karl  1.1   mv -f "${ofile}T" "$ofile" || \
6953               (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6954             chmod +x "$ofile"
6955           fi
6956           
6957           
6958           
6959           
6960           
6961           # This can be used to rebuild libtool when needed
6962           LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6963           
6964           # Always use our own libtool.
6965           LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6966           
6967           # Prevent multiple expansion
6968           
6969           
6970           ## establish the kind of executable to build (debug or production)
6971           
6972           if
6973 karl  1.1  [ $DEBUG ]
6974           then
6975           	echo Configuring to build $PACKAGE_NAME with debugging symbols
6976           
6977           cat >>confdefs.h <<\_ACEOF
6978           #define DEBUG 1
6979           _ACEOF
6980           
6981           
6982           else
6983           	echo Configuring to build a production version of $PACKAGE_NAME
6984           fi
6985           
6986           ## libtool & Make variables
6987           LIBTOOL=libtool
6988           OBJ=.lo
6989           IGNORE=-
6990           LIB_PATH=-rpath
6991           LEX=flex
6992           YACC=bison
6993           STATIC_LINK_CMD=-static
6994 karl  1.1 DLL_LINK_CMD=-module
6995           
6996           MV=mv
6997           MV_FLAGS=-fv
6998           RM=rm
6999           RM_FLAGS=-fv
7000           CP=cp
7001           CP_FLAGS=-fv
7002           MAKE=make
7003           ## establish the target OS and PROC
7004           
7005           case $build in
7006             *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
7007           
7008           cat >>confdefs.h <<\_ACEOF
7009           #define HOST_OS "Windows"
7010           _ACEOF
7011           
7012           
7013           cat >>confdefs.h <<\_ACEOF
7014           #define OS_PORT_INCLUDE "lslp-windows.h"
7015 karl  1.1 _ACEOF
7016           
7017           	OS_PORT_INC=lslp-windows.h
7018           	OS_PORT_SRC=lslp-windows.c
7019           	OS_PORT_OBJ=lslp-windows.lo
7020           	HOST_OS=Windows
7021           	CC=cl
7022           	LINKER=$CC
7023           	EXE=.exe
7024           	LIBS=ws2_32.lib
7025           	THREAD_LIBS=
7026           	REENTRANT_FLAG=
7027           	NO_LINK_FLAG=
7028           	LIB_SUFFIX=.lib
7029           	DLL_SUFFIX=.dll
7030           	EXE_OUT=/Fe
7031           	OBJ_OUT=/Fo
7032           	LIB_INCLUDE_FLAG
7033           
7034           cat >>confdefs.h <<\_ACEOF
7035           #define DLL_IMPORT __declspec(dllimport)
7036 karl  1.1 _ACEOF
7037           
7038           
7039           cat >>confdefs.h <<\_ACEOF
7040           #define DLL_EXPORT __declspec(dllexport)
7041           _ACEOF
7042           
7043           	if  [ $DEBUG ]
7044           	then
7045           		CFLAGS="-GX -GR -W3 -Od -Zi -MDd -DDEBUG_ALLOC"
7046           		LDFLAGS=-debug
7047           	        DLL_LIB_FLAG=/LDd
7048           		LFLAGS="-p -v -d"
7049           		YFLAGS="-v -d"
7050                   else
7051           		CFLAGS="-GX -GR -W3 -O2 -MD"
7052           		LDFLAGS=""
7053           	        DLL_LIB_FLAG=/LD
7054           		LFLAGS="-f -w"
7055           		YFLAGS=-l
7056           	fi
7057 karl  1.1 
7058           	bindir=$SYSTEMROOT/system32
7059           	sbindir=$SYSTEMROOT/system32
7060           	libexecdir=$SYSTEMROOT/system32
7061           	sysconfdir=$SYSTEMROOT/system32
7062           	libdir=$SYSTEMROOT/system32
7063           
7064           
7065               ;;
7066             *-*-linux*)
7067           
7068           cat >>confdefs.h <<\_ACEOF
7069           #define HOST_OS "Linux"
7070           _ACEOF
7071           
7072           
7073           cat >>confdefs.h <<\_ACEOF
7074           #define OS_PORT_INCLUDE "lslp-linux.h"
7075           _ACEOF
7076           
7077           	OS_PORT_INC=lslp-linux.h
7078 karl  1.1 	OS_PORT_SRC=lslp-linux.c
7079           	OS_PORT_OBJ=lslp-linux.lo
7080           	HOST_OS=linux
7081           	ac_ext=c
7082           ac_cpp='$CPP $CPPFLAGS'
7083           ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7084           ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7085           ac_compiler_gnu=$ac_cv_c_compiler_gnu
7086           if test -n "$ac_tool_prefix"; then
7087             # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7088           set dummy ${ac_tool_prefix}gcc; ac_word=$2
7089           echo "$as_me:$LINENO: checking for $ac_word" >&5
7090           echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7091           if test "${ac_cv_prog_CC+set}" = set; then
7092             echo $ECHO_N "(cached) $ECHO_C" >&6
7093           else
7094             if test -n "$CC"; then
7095             ac_cv_prog_CC="$CC" # Let the user override the test.
7096           else
7097           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098           for as_dir in $PATH
7099 karl  1.1 do
7100             IFS=$as_save_IFS
7101             test -z "$as_dir" && as_dir=.
7102             for ac_exec_ext in '' $ac_executable_extensions; do
7103             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104               ac_cv_prog_CC="${ac_tool_prefix}gcc"
7105               echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106               break 2
7107             fi
7108           done
7109           done
7110           
7111           fi
7112           fi
7113           CC=$ac_cv_prog_CC
7114           if test -n "$CC"; then
7115             echo "$as_me:$LINENO: result: $CC" >&5
7116           echo "${ECHO_T}$CC" >&6
7117           else
7118             echo "$as_me:$LINENO: result: no" >&5
7119           echo "${ECHO_T}no" >&6
7120 karl  1.1 fi
7121           
7122           fi
7123           if test -z "$ac_cv_prog_CC"; then
7124             ac_ct_CC=$CC
7125             # Extract the first word of "gcc", so it can be a program name with args.
7126           set dummy gcc; ac_word=$2
7127           echo "$as_me:$LINENO: checking for $ac_word" >&5
7128           echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7129           if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7130             echo $ECHO_N "(cached) $ECHO_C" >&6
7131           else
7132             if test -n "$ac_ct_CC"; then
7133             ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7134           else
7135           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136           for as_dir in $PATH
7137           do
7138             IFS=$as_save_IFS
7139             test -z "$as_dir" && as_dir=.
7140             for ac_exec_ext in '' $ac_executable_extensions; do
7141 karl  1.1   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142               ac_cv_prog_ac_ct_CC="gcc"
7143               echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144               break 2
7145             fi
7146           done
7147           done
7148           
7149           fi
7150           fi
7151           ac_ct_CC=$ac_cv_prog_ac_ct_CC
7152           if test -n "$ac_ct_CC"; then
7153             echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7154           echo "${ECHO_T}$ac_ct_CC" >&6
7155           else
7156             echo "$as_me:$LINENO: result: no" >&5
7157           echo "${ECHO_T}no" >&6
7158           fi
7159           
7160             CC=$ac_ct_CC
7161           else
7162 karl  1.1   CC="$ac_cv_prog_CC"
7163           fi
7164           
7165           if test -z "$CC"; then
7166             if test -n "$ac_tool_prefix"; then
7167             # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7168           set dummy ${ac_tool_prefix}cc; ac_word=$2
7169           echo "$as_me:$LINENO: checking for $ac_word" >&5
7170           echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7171           if test "${ac_cv_prog_CC+set}" = set; then
7172             echo $ECHO_N "(cached) $ECHO_C" >&6
7173           else
7174             if test -n "$CC"; then
7175             ac_cv_prog_CC="$CC" # Let the user override the test.
7176           else
7177           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178           for as_dir in $PATH
7179           do
7180             IFS=$as_save_IFS
7181             test -z "$as_dir" && as_dir=.
7182             for ac_exec_ext in '' $ac_executable_extensions; do
7183 karl  1.1   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184               ac_cv_prog_CC="${ac_tool_prefix}cc"
7185               echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186               break 2
7187             fi
7188           done
7189           done
7190           
7191           fi
7192           fi
7193           CC=$ac_cv_prog_CC
7194           if test -n "$CC"; then
7195             echo "$as_me:$LINENO: result: $CC" >&5
7196           echo "${ECHO_T}$CC" >&6
7197           else
7198             echo "$as_me:$LINENO: result: no" >&5
7199           echo "${ECHO_T}no" >&6
7200           fi
7201           
7202           fi
7203           if test -z "$ac_cv_prog_CC"; then
7204 karl  1.1   ac_ct_CC=$CC
7205             # Extract the first word of "cc", so it can be a program name with args.
7206           set dummy cc; ac_word=$2
7207           echo "$as_me:$LINENO: checking for $ac_word" >&5
7208           echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7209           if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7210             echo $ECHO_N "(cached) $ECHO_C" >&6
7211           else
7212             if test -n "$ac_ct_CC"; then
7213             ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7214           else
7215           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216           for as_dir in $PATH
7217           do
7218             IFS=$as_save_IFS
7219             test -z "$as_dir" && as_dir=.
7220             for ac_exec_ext in '' $ac_executable_extensions; do
7221             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7222               ac_cv_prog_ac_ct_CC="cc"
7223               echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224               break 2
7225 karl  1.1   fi
7226           done
7227           done
7228           
7229           fi
7230           fi
7231           ac_ct_CC=$ac_cv_prog_ac_ct_CC
7232           if test -n "$ac_ct_CC"; then
7233             echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7234           echo "${ECHO_T}$ac_ct_CC" >&6
7235           else
7236             echo "$as_me:$LINENO: result: no" >&5
7237           echo "${ECHO_T}no" >&6
7238           fi
7239           
7240             CC=$ac_ct_CC
7241           else
7242             CC="$ac_cv_prog_CC"
7243           fi
7244           
7245           fi
7246 karl  1.1 if test -z "$CC"; then
7247             # Extract the first word of "cc", so it can be a program name with args.
7248           set dummy cc; ac_word=$2
7249           echo "$as_me:$LINENO: checking for $ac_word" >&5
7250           echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7251           if test "${ac_cv_prog_CC+set}" = set; then
7252             echo $ECHO_N "(cached) $ECHO_C" >&6
7253           else
7254             if test -n "$CC"; then
7255             ac_cv_prog_CC="$CC" # Let the user override the test.
7256           else
7257             ac_prog_rejected=no
7258           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259           for as_dir in $PATH
7260           do
7261             IFS=$as_save_IFS
7262             test -z "$as_dir" && as_dir=.
7263             for ac_exec_ext in '' $ac_executable_extensions; do
7264             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265               if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7266                  ac_prog_rejected=yes
7267 karl  1.1        continue
7268                fi
7269               ac_cv_prog_CC="cc"
7270               echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271               break 2
7272             fi
7273           done
7274           done
7275           
7276           if test $ac_prog_rejected = yes; then
7277             # We found a bogon in the path, so make sure we never use it.
7278             set dummy $ac_cv_prog_CC
7279             shift
7280             if test $# != 0; then
7281               # We chose a different compiler from the bogus one.
7282               # However, it has the same basename, so the bogon will be chosen
7283               # first if we set CC to just the basename; use the full file name.
7284               shift
7285               set dummy "$as_dir/$ac_word" ${1+"$@"}
7286               shift
7287               ac_cv_prog_CC="$@"
7288 karl  1.1   fi
7289           fi
7290           fi
7291           fi
7292           CC=$ac_cv_prog_CC
7293           if test -n "$CC"; then
7294             echo "$as_me:$LINENO: result: $CC" >&5
7295           echo "${ECHO_T}$CC" >&6
7296           else
7297             echo "$as_me:$LINENO: result: no" >&5
7298           echo "${ECHO_T}no" >&6
7299           fi
7300           
7301           fi
7302           if test -z "$CC"; then
7303             if test -n "$ac_tool_prefix"; then
7304             for ac_prog in cl
7305             do
7306               # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7307           set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7308           echo "$as_me:$LINENO: checking for $ac_word" >&5
7309 karl  1.1 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7310           if test "${ac_cv_prog_CC+set}" = set; then
7311             echo $ECHO_N "(cached) $ECHO_C" >&6
7312           else
7313             if test -n "$CC"; then
7314             ac_cv_prog_CC="$CC" # Let the user override the test.
7315           else
7316           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317           for as_dir in $PATH
7318           do
7319             IFS=$as_save_IFS
7320             test -z "$as_dir" && as_dir=.
7321             for ac_exec_ext in '' $ac_executable_extensions; do
7322             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323               ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7324               echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325               break 2
7326             fi
7327           done
7328           done
7329           
7330 karl  1.1 fi
7331           fi
7332           CC=$ac_cv_prog_CC
7333           if test -n "$CC"; then
7334             echo "$as_me:$LINENO: result: $CC" >&5
7335           echo "${ECHO_T}$CC" >&6
7336           else
7337             echo "$as_me:$LINENO: result: no" >&5
7338           echo "${ECHO_T}no" >&6
7339           fi
7340           
7341               test -n "$CC" && break
7342             done
7343           fi
7344           if test -z "$CC"; then
7345             ac_ct_CC=$CC
7346             for ac_prog in cl
7347           do
7348             # Extract the first word of "$ac_prog", so it can be a program name with args.
7349           set dummy $ac_prog; ac_word=$2
7350           echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 karl  1.1 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7352           if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7353             echo $ECHO_N "(cached) $ECHO_C" >&6
7354           else
7355             if test -n "$ac_ct_CC"; then
7356             ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7357           else
7358           as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359           for as_dir in $PATH
7360           do
7361             IFS=$as_save_IFS
7362             test -z "$as_dir" && as_dir=.
7363             for ac_exec_ext in '' $ac_executable_extensions; do
7364             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365               ac_cv_prog_ac_ct_CC="$ac_prog"
7366               echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7367               break 2
7368             fi
7369           done
7370           done
7371           
7372 karl  1.1 fi
7373           fi
7374           ac_ct_CC=$ac_cv_prog_ac_ct_CC
7375           if test -n "$ac_ct_CC"; then
7376             echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7377           echo "${ECHO_T}$ac_ct_CC" >&6
7378           else
7379             echo "$as_me:$LINENO: result: no" >&5
7380           echo "${ECHO_T}no" >&6
7381           fi
7382           
7383             test -n "$ac_ct_CC" && break
7384           done
7385           
7386             CC=$ac_ct_CC
7387           fi
7388           
7389           fi
7390           
7391           
7392           test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
7393 karl  1.1 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
7394              { (exit 1); exit 1; }; }
7395           
7396           # Provide some information about the compiler.
7397           echo "$as_me:$LINENO:" \
7398                "checking for C compiler version" >&5
7399           ac_compiler=`set X $ac_compile; echo $2`
7400           { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7401             (eval $ac_compiler --version </dev/null >&5) 2>&5
7402             ac_status=$?
7403             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404             (exit $ac_status); }
7405           { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7406             (eval $ac_compiler -v </dev/null >&5) 2>&5
7407             ac_status=$?
7408             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409             (exit $ac_status); }
7410           { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7411             (eval $ac_compiler -V </dev/null >&5) 2>&5
7412             ac_status=$?
7413             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 karl  1.1   (exit $ac_status); }
7415           
7416           echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7417           echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7418           if test "${ac_cv_c_compiler_gnu+set}" = set; then
7419             echo $ECHO_N "(cached) $ECHO_C" >&6
7420           else
7421             cat >conftest.$ac_ext <<_ACEOF
7422           #line $LINENO "configure"
7423           #include "confdefs.h"
7424           
7425           #ifdef F77_DUMMY_MAIN
7426           #  ifdef __cplusplus
7427                extern "C"
7428           #  endif
7429              int F77_DUMMY_MAIN() { return 1; }
7430           #endif
7431           int
7432           main ()
7433           {
7434           #ifndef __GNUC__
7435 karl  1.1        choke me
7436           #endif
7437           
7438             ;
7439             return 0;
7440           }
7441           _ACEOF
7442           rm -f conftest.$ac_objext
7443           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7444             (eval $ac_compile) 2>&5
7445             ac_status=$?
7446             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447             (exit $ac_status); } &&
7448                    { ac_try='test -s conftest.$ac_objext'
7449             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450             (eval $ac_try) 2>&5
7451             ac_status=$?
7452             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453             (exit $ac_status); }; }; then
7454             ac_compiler_gnu=yes
7455           else
7456 karl  1.1   echo "$as_me: failed program was:" >&5
7457           cat conftest.$ac_ext >&5
7458           ac_compiler_gnu=no
7459           fi
7460           rm -f conftest.$ac_objext conftest.$ac_ext
7461           ac_cv_c_compiler_gnu=$ac_compiler_gnu
7462           
7463           fi
7464           echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7465           echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7466           GCC=`test $ac_compiler_gnu = yes && echo yes`
7467           ac_test_CFLAGS=${CFLAGS+set}
7468           ac_save_CFLAGS=$CFLAGS
7469           CFLAGS="-g"
7470           echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7471           echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7472           if test "${ac_cv_prog_cc_g+set}" = set; then
7473             echo $ECHO_N "(cached) $ECHO_C" >&6
7474           else
7475             cat >conftest.$ac_ext <<_ACEOF
7476           #line $LINENO "configure"
7477 karl  1.1 #include "confdefs.h"
7478           
7479           #ifdef F77_DUMMY_MAIN
7480           #  ifdef __cplusplus
7481                extern "C"
7482           #  endif
7483              int F77_DUMMY_MAIN() { return 1; }
7484           #endif
7485           int
7486           main ()
7487           {
7488           
7489             ;
7490             return 0;
7491           }
7492           _ACEOF
7493           rm -f conftest.$ac_objext
7494           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7495             (eval $ac_compile) 2>&5
7496             ac_status=$?
7497             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 karl  1.1   (exit $ac_status); } &&
7499                    { ac_try='test -s conftest.$ac_objext'
7500             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501             (eval $ac_try) 2>&5
7502             ac_status=$?
7503             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504             (exit $ac_status); }; }; then
7505             ac_cv_prog_cc_g=yes
7506           else
7507             echo "$as_me: failed program was:" >&5
7508           cat conftest.$ac_ext >&5
7509           ac_cv_prog_cc_g=no
7510           fi
7511           rm -f conftest.$ac_objext conftest.$ac_ext
7512           fi
7513           echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7514           echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7515           if test "$ac_test_CFLAGS" = set; then
7516             CFLAGS=$ac_save_CFLAGS
7517           elif test $ac_cv_prog_cc_g = yes; then
7518             if test "$GCC" = yes; then
7519 karl  1.1     CFLAGS="-g -O2"
7520             else
7521               CFLAGS="-g"
7522             fi
7523           else
7524             if test "$GCC" = yes; then
7525               CFLAGS="-O2"
7526             else
7527               CFLAGS=
7528             fi
7529           fi
7530           # Some people use a C++ compiler to compile C.  Since we use `exit',
7531           # in C++ we need to declare it.  In case someone uses the same compiler
7532           # for both compiling C and C++ we need to have the C++ compiler decide
7533           # the declaration of exit, since it's the most demanding environment.
7534           cat >conftest.$ac_ext <<_ACEOF
7535           #ifndef __cplusplus
7536             choke me
7537           #endif
7538           _ACEOF
7539           rm -f conftest.$ac_objext
7540 karl  1.1 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7541             (eval $ac_compile) 2>&5
7542             ac_status=$?
7543             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544             (exit $ac_status); } &&
7545                    { ac_try='test -s conftest.$ac_objext'
7546             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547             (eval $ac_try) 2>&5
7548             ac_status=$?
7549             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550             (exit $ac_status); }; }; then
7551             for ac_declaration in \
7552              ''\
7553              '#include <stdlib.h>' \
7554              'extern "C" void std::exit (int) throw (); using std::exit;' \
7555              'extern "C" void std::exit (int); using std::exit;' \
7556              'extern "C" void exit (int) throw ();' \
7557              'extern "C" void exit (int);' \
7558              'void exit (int);'
7559           do
7560             cat >conftest.$ac_ext <<_ACEOF
7561 karl  1.1 #line $LINENO "configure"
7562           #include "confdefs.h"
7563           #include <stdlib.h>
7564           $ac_declaration
7565           #ifdef F77_DUMMY_MAIN
7566           #  ifdef __cplusplus
7567                extern "C"
7568           #  endif
7569              int F77_DUMMY_MAIN() { return 1; }
7570           #endif
7571           int
7572           main ()
7573           {
7574           exit (42);
7575             ;
7576             return 0;
7577           }
7578           _ACEOF
7579           rm -f conftest.$ac_objext
7580           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7581             (eval $ac_compile) 2>&5
7582 karl  1.1   ac_status=$?
7583             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584             (exit $ac_status); } &&
7585                    { ac_try='test -s conftest.$ac_objext'
7586             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587             (eval $ac_try) 2>&5
7588             ac_status=$?
7589             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590             (exit $ac_status); }; }; then
7591             :
7592           else
7593             echo "$as_me: failed program was:" >&5
7594           cat conftest.$ac_ext >&5
7595           continue
7596           fi
7597           rm -f conftest.$ac_objext conftest.$ac_ext
7598             cat >conftest.$ac_ext <<_ACEOF
7599           #line $LINENO "configure"
7600           #include "confdefs.h"
7601           $ac_declaration
7602           #ifdef F77_DUMMY_MAIN
7603 karl  1.1 #  ifdef __cplusplus
7604                extern "C"
7605           #  endif
7606              int F77_DUMMY_MAIN() { return 1; }
7607           #endif
7608           int
7609           main ()
7610           {
7611           exit (42);
7612             ;
7613             return 0;
7614           }
7615           _ACEOF
7616           rm -f conftest.$ac_objext
7617           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7618             (eval $ac_compile) 2>&5
7619             ac_status=$?
7620             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621             (exit $ac_status); } &&
7622                    { ac_try='test -s conftest.$ac_objext'
7623             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 karl  1.1   (eval $ac_try) 2>&5
7625             ac_status=$?
7626             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627             (exit $ac_status); }; }; then
7628             break
7629           else
7630             echo "$as_me: failed program was:" >&5
7631           cat conftest.$ac_ext >&5
7632           fi
7633           rm -f conftest.$ac_objext conftest.$ac_ext
7634           done
7635           rm -f conftest*
7636           if test -n "$ac_declaration"; then
7637             echo '#ifdef __cplusplus' >>confdefs.h
7638             echo $ac_declaration      >>confdefs.h
7639             echo '#endif'             >>confdefs.h
7640           fi
7641           
7642           else
7643             echo "$as_me: failed program was:" >&5
7644           cat conftest.$ac_ext >&5
7645 karl  1.1 fi
7646           rm -f conftest.$ac_objext conftest.$ac_ext
7647           ac_ext=c
7648           ac_cpp='$CPP $CPPFLAGS'
7649           ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7650           ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7651           ac_compiler_gnu=$ac_cv_c_compiler_gnu
7652           
7653           	LINKER=$CC
7654           	EXE=
7655           	LIBS=
7656           	LIB_INCLUDE_FLAG=-l
7657           	THREAD_LIBS=-lpthread
7658           	REENTRANT_FLAG=-D_REENTRANT
7659           	NO_LINK_FLAG=-c
7660           	LIB_SUFFIX=.o
7661           	DLL_SUFFIX=.so
7662           
7663           cat >>confdefs.h <<\_ACEOF
7664           #define DLL_IMPORT
7665           _ACEOF
7666 karl  1.1 
7667           
7668           cat >>confdefs.h <<\_ACEOF
7669           #define DLL_EXPORT
7670           _ACEOF
7671           
7672           	EXE_OUT=-o
7673           	OBJ_OUT=-o
7674           	if  [ $DEBUG ]
7675           	then
7676           		CFLAGS="-g -Wall -Dlinux -DDEBUG_ALLOC"
7677           		LDFLAGS=-g
7678           		LFLAGS="-p -v -d "
7679           		YFLAGS="-v -d"
7680                   else
7681           		CFLAGS="-O -Wall -Dlinux"
7682           		LDFLAGS=-s
7683           		LFLAGS="-f -w"
7684           		YFLAGS=-l
7685           	fi
7686           
7687 karl  1.1 	bindir=/bin
7688           	sbindir=/sbin
7689           	libexecdir=/lib
7690           	sysconfdir=/etc
7691           	libdir=/usr/lib
7692           
7693               ;;
7694             *-*-aix*)
7695           
7696           cat >>confdefs.h <<\_ACEOF
7697           #define HOST_OS "AIX"
7698           _ACEOF
7699           
7700           	HOST_OS=AIX
7701               ;;
7702           esac
7703           
7704           case $build in
7705             i?86-*-*)
7706           
7707           cat >>confdefs.h <<\_ACEOF
7708 karl  1.1 #define PLATFORM "x86"
7709           _ACEOF
7710           
7711           	PLATFORM=x86
7712               ;;
7713             ia64-*-*)
7714           
7715           cat >>confdefs.h <<\_ACEOF
7716           #define PLATFORM "ia64"
7717           _ACEOF
7718           
7719           	PLATFORM=ia64
7720               ;;
7721             ppc-*-*)
7722           
7723           cat >>confdefs.h <<\_ACEOF
7724           #define PLATFORM "ppc"
7725           _ACEOF
7726           
7727           	PLATFORM=ppc
7728               ;;
7729 karl  1.1   mipsel-*-*)
7730           
7731           cat >>confdefs.h <<\_ACEOF
7732           #define PLATFORM "mipsel"
7733           _ACEOF
7734           
7735           	PLATFORM=mipsel
7736             ;;
7737             mipseb-*-*)
7738           
7739           cat >>confdefs.h <<\_ACEOF
7740           #define PLATFORM "mipseb"
7741           _ACEOF
7742           
7743           	PLATFORM=mipseb
7744           esac
7745           
7746           
7747           ## check for headers and declarations we need
7748           
7749           # will be false on windows systems
7750 karl  1.1 
7751           for ac_header in unistd.h
7752           do
7753           as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7754           if eval "test \"\${$as_ac_Header+set}\" = set"; then
7755             echo "$as_me:$LINENO: checking for $ac_header" >&5
7756           echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7757           if eval "test \"\${$as_ac_Header+set}\" = set"; then
7758             echo $ECHO_N "(cached) $ECHO_C" >&6
7759           fi
7760           echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7761           echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7762           else
7763             # Is the header compilable?
7764           echo "$as_me:$LINENO: checking $ac_header usability" >&5
7765           echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7766           cat >conftest.$ac_ext <<_ACEOF
7767           #line $LINENO "configure"
7768           #include "confdefs.h"
7769           $ac_includes_default
7770           #include <$ac_header>
7771 karl  1.1 _ACEOF
7772           rm -f conftest.$ac_objext
7773           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7774             (eval $ac_compile) 2>&5
7775             ac_status=$?
7776             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777             (exit $ac_status); } &&
7778                    { ac_try='test -s conftest.$ac_objext'
7779             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780             (eval $ac_try) 2>&5
7781             ac_status=$?
7782             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783             (exit $ac_status); }; }; then
7784             ac_header_compiler=yes
7785           else
7786             echo "$as_me: failed program was:" >&5
7787           cat conftest.$ac_ext >&5
7788           ac_header_compiler=no
7789           fi
7790           rm -f conftest.$ac_objext conftest.$ac_ext
7791           echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7792 karl  1.1 echo "${ECHO_T}$ac_header_compiler" >&6
7793           
7794           # Is the header present?
7795           echo "$as_me:$LINENO: checking $ac_header presence" >&5
7796           echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7797           cat >conftest.$ac_ext <<_ACEOF
7798           #line $LINENO "configure"
7799           #include "confdefs.h"
7800           #include <$ac_header>
7801           _ACEOF
7802           if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7803             (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7804             ac_status=$?
7805             egrep -v '^ *\+' conftest.er1 >conftest.err
7806             rm -f conftest.er1
7807             cat conftest.err >&5
7808             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809             (exit $ac_status); } >/dev/null; then
7810             if test -s conftest.err; then
7811               ac_cpp_err=$ac_c_preproc_warn_flag
7812             else
7813 karl  1.1     ac_cpp_err=
7814             fi
7815           else
7816             ac_cpp_err=yes
7817           fi
7818           if test -z "$ac_cpp_err"; then
7819             ac_header_preproc=yes
7820           else
7821             echo "$as_me: failed program was:" >&5
7822             cat conftest.$ac_ext >&5
7823             ac_header_preproc=no
7824           fi
7825           rm -f conftest.err conftest.$ac_ext
7826           echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7827           echo "${ECHO_T}$ac_header_preproc" >&6
7828           
7829           # So?  What about this header?
7830           case $ac_header_compiler:$ac_header_preproc in
7831             yes:no )
7832               { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7833           echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7834 karl  1.1     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7835           echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7836             no:yes )
7837               { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7838           echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7839               { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7840           echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7841               { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7842           echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7843           esac
7844           echo "$as_me:$LINENO: checking for $ac_header" >&5
7845           echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7846           if eval "test \"\${$as_ac_Header+set}\" = set"; then
7847             echo $ECHO_N "(cached) $ECHO_C" >&6
7848           else
7849             eval "$as_ac_Header=$ac_header_preproc"
7850           fi
7851           echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7852           echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7853           
7854           fi
7855 karl  1.1 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7856             cat >>confdefs.h <<_ACEOF
7857           #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7858           _ACEOF
7859           
7860           fi
7861           
7862           done
7863           
7864           
7865           for ac_header in linux/if.h
7866           do
7867           as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7868           if eval "test \"\${$as_ac_Header+set}\" = set"; then
7869             echo "$as_me:$LINENO: checking for $ac_header" >&5
7870           echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7871           if eval "test \"\${$as_ac_Header+set}\" = set"; then
7872             echo $ECHO_N "(cached) $ECHO_C" >&6
7873           fi
7874           echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7875           echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7876 karl  1.1 else
7877             # Is the header compilable?
7878           echo "$as_me:$LINENO: checking $ac_header usability" >&5
7879           echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7880           cat >conftest.$ac_ext <<_ACEOF
7881           #line $LINENO "configure"
7882           #include "confdefs.h"
7883           $ac_includes_default
7884           #include <$ac_header>
7885           _ACEOF
7886           rm -f conftest.$ac_objext
7887           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888             (eval $ac_compile) 2>&5
7889             ac_status=$?
7890             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891             (exit $ac_status); } &&
7892                    { ac_try='test -s conftest.$ac_objext'
7893             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894             (eval $ac_try) 2>&5
7895             ac_status=$?
7896             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 karl  1.1   (exit $ac_status); }; }; then
7898             ac_header_compiler=yes
7899           else
7900             echo "$as_me: failed program was:" >&5
7901           cat conftest.$ac_ext >&5
7902           ac_header_compiler=no
7903           fi
7904           rm -f conftest.$ac_objext conftest.$ac_ext
7905           echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7906           echo "${ECHO_T}$ac_header_compiler" >&6
7907           
7908           # Is the header present?
7909           echo "$as_me:$LINENO: checking $ac_header presence" >&5
7910           echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7911           cat >conftest.$ac_ext <<_ACEOF
7912           #line $LINENO "configure"
7913           #include "confdefs.h"
7914           #include <$ac_header>
7915           _ACEOF
7916           if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7917             (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7918 karl  1.1   ac_status=$?
7919             egrep -v '^ *\+' conftest.er1 >conftest.err
7920             rm -f conftest.er1
7921             cat conftest.err >&5
7922             echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923             (exit $ac_status); } >/dev/null; then
7924             if test -s conftest.err; then
7925               ac_cpp_err=$ac_c_preproc_warn_flag
7926             else
7927               ac_cpp_err=
7928             fi
7929           else
7930             ac_cpp_err=yes
7931           fi
7932           if test -z "$ac_cpp_err"; then
7933             ac_header_preproc=yes
7934           else
7935             echo "$as_me: failed program was:" >&5
7936             cat conftest.$ac_ext >&5
7937             ac_header_preproc=no
7938           fi
7939 karl  1.1 rm -f conftest.err conftest.$ac_ext
7940           echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7941           echo "${ECHO_T}$ac_header_preproc" >&6
7942           
7943           # So?  What about this header?
7944           case $ac_header_compiler:$ac_header_preproc in
7945             yes:no )
7946               { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7947           echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7948               { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7949           echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7950             no:yes )
7951               { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7952           echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7953               { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7954           echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7955               { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7956           echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7957           esac
7958           echo "$as_me:$LINENO: checking for $ac_header" >&5
7959           echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7960 karl  1.1 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7961             echo $ECHO_N "(cached) $ECHO_C" >&6
7962           else
7963             eval "$as_ac_Header=$ac_header_preproc"
7964           fi
7965           echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7966           echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7967           
7968           fi
7969           if test `eval echo '${'$as_ac_Header'}'` = yes; then
7970             cat >>confdefs.h <<_ACEOF
7971           #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7972           _ACEOF
7973            HAVE_IF_H=1
7974           fi
7975           
7976           done
7977           
7978           
7979           if
7980            [ $HAVE_IF_H ]
7981 karl  1.1 then
7982           
7983           cat >>confdefs.h <<\_ACEOF
7984           #define HAVE_IF_H 1
7985           _ACEOF
7986           
7987           fi
7988           
7989           ## create the appropriate directories to hold binaries
7990           SRC_DIR=
7991           
7992           
7993           ## set up environment variables that control the build for specific variants
7994           case $HOST_OS in
7995             linux)
7996           	case $PLATFORM in
7997                       x86)
7998           
7999           	    ;;
8000           
8001           	    ia64)
8002 karl  1.1 
8003           	    ;;
8004           
8005                       ppc)
8006           
8007           
8008                       ;;
8009                   esac
8010           
8011             ;;
8012             Windows)
8013           	case $PLATFORM in
8014                       x86)
8015           
8016           	    ;;
8017           
8018           	    ia64)
8019           
8020           	    ;;
8021           
8022                       ppc)
8023 karl  1.1 
8024           
8025                       ;;
8026                   esac
8027           
8028             ;;
8029             AIX)
8030           	case $PLATFORM in
8031                       x86)
8032           
8033           	    ;;
8034           
8035           	    ia64)
8036           
8037           	    ;;
8038           
8039                       ppc)
8040           
8041           
8042                       ;;
8043                   esac
8044 karl  1.1   ;;
8045           
8046           esac
8047           
8048           echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8049           echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8050           if test "${ac_cv_c_bigendian+set}" = set; then
8051             echo $ECHO_N "(cached) $ECHO_C" >&6
8052           else
8053             # See if sys/param.h defines the BYTE_ORDER macro.
8054           cat >conftest.$ac_ext <<_ACEOF
8055           #line $LINENO "configure"
8056           #include "confdefs.h"
8057           #include <sys/types.h>
8058           #include <sys/param.h>
8059           
8060           #ifdef F77_DUMMY_MAIN
8061           #  ifdef __cplusplus
8062                extern "C"
8063           #  endif
8064              int F77_DUMMY_MAIN() { return 1; }
8065 karl  1.1 #endif
8066           int
8067           main ()
8068           {
8069           #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8070            bogus endian macros
8071           #endif
8072           
8073             ;
8074             return 0;
8075           }
8076           _ACEOF
8077           rm -f conftest.$ac_objext
8078           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8079             (eval $ac_compile) 2>&5
8080             ac_status=$?
8081             echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082             (exit $ac_status); } &&
8083                    { ac_try='test -s conftest.$ac_objext'
8084             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085             (eval $ac_try) 2>&5
8086 karl  1.1   ac_status=$?
8087             echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088             (exit $ac_status); }; }; then
8089             # It does; now see whether it defined to BIG_ENDIAN or not.
8090           cat >conftest.$ac_ext <<_ACEOF
8091           #line $LINENO "configure"
8092           #include "confdefs.h"
8093           #include <sys/types.h>
8094           #include <sys/param.h>
8095           
8096           #ifdef F77_DUMMY_MAIN
8097           #  ifdef __cplusplus
8098                extern "C"
8099           #  endif
8100              int F77_DUMMY_MAIN() { return 1; }
8101           #endif
8102           int
8103           main ()
8104           {
8105           #if BYTE_ORDER != BIG_ENDIAN
8106            not big endian
8107 karl  1.1 #endif
8108           
8109             ;
8110             return 0;
8111           }
8112           _ACEOF
8113           rm -f conftest.$ac_objext
8114           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8115             (eval $ac_compile) 2>&5
8116             ac_status=$?
8117             echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118             (exit $ac_status); } &&
8119                    { ac_try='test -s conftest.$ac_objext'
8120             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121             (eval $ac_try) 2>&5
8122             ac_status=$?
8123             echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124             (exit $ac_status); }; }; then
8125             ac_cv_c_bigendian=yes
8126           else
8127             echo "$as_me: failed program was:" >&5
8128 karl  1.1 cat conftest.$ac_ext >&5
8129           ac_cv_c_bigendian=no
8130           fi
8131           rm -f conftest.$ac_objext conftest.$ac_ext
8132           else
8133             echo "$as_me: failed program was:" >&5
8134           cat conftest.$ac_ext >&5
8135           # It does not; compile a test program.
8136           if test "$cross_compiling" = yes; then
8137             # try to guess the endianess by grep'ing values into an object file
8138             ac_cv_c_bigendian=unknown
8139             cat >conftest.$ac_ext <<_ACEOF
8140           #line $LINENO "configure"
8141           #include "confdefs.h"
8142           short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8143           short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8144           void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8145           short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8146           short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8147           void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8148           #ifdef F77_DUMMY_MAIN
8149 karl  1.1 #  ifdef __cplusplus
8150                extern "C"
8151           #  endif
8152              int F77_DUMMY_MAIN() { return 1; }
8153           #endif
8154           int
8155           main ()
8156           {
8157            _ascii (); _ebcdic ();
8158             ;
8159             return 0;
8160           }
8161           _ACEOF
8162           rm -f conftest.$ac_objext
8163           if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8164             (eval $ac_compile) 2>&5
8165             ac_status=$?
8166             echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167             (exit $ac_status); } &&
8168                    { ac_try='test -s conftest.$ac_objext'
8169             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 karl  1.1   (eval $ac_try) 2>&5
8171             ac_status=$?
8172             echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173             (exit $ac_status); }; }; then
8174             if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8175             ac_cv_c_bigendian=yes
8176           fi
8177           if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8178             if test "$ac_cv_c_bigendian" = unknown; then
8179               ac_cv_c_bigendian=no
8180             else
8181               # finding both strings is unlikely to happen, but who knows?
8182               ac_cv_c_bigendian=unknown
8183             fi
8184           fi
8185           else
8186             echo "$as_me: failed program was:" >&5
8187           cat conftest.$ac_ext >&5
8188           fi
8189           rm -f conftest.$ac_objext conftest.$ac_ext
8190           else
8191 karl  1.1   cat >conftest.$ac_ext <<_ACEOF
8192           #line $LINENO "configure"
8193           #include "confdefs.h"
8194           int
8195           main ()
8196           {
8197             /* Are we little or big endian?  From Harbison&Steele.  */
8198             union
8199             {
8200               long l;
8201               char c[sizeof (long)];
8202             } u;
8203             u.l = 1;
8204             exit (u.c[sizeof (long) - 1] == 1);
8205           }
8206           _ACEOF
8207           rm -f conftest$ac_exeext
8208           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8209             (eval $ac_link) 2>&5
8210             ac_status=$?
8211             echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 karl  1.1   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8213             { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214             (eval $ac_try) 2>&5
8215             ac_status=$?
8216             echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217             (exit $ac_status); }; }; then
8218             ac_cv_c_bigendian=no
8219           else
8220             echo "$as_me: program exited with status $ac_status" >&5
8221           echo "$as_me: failed program was:" >&5
8222           cat conftest.$ac_ext >&5
8223           ( exit $ac_status )
8224           ac_cv_c_bigendian=yes
8225           fi
8226           rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8227           fi
8228           fi
8229           rm -f conftest.$ac_objext conftest.$ac_ext
8230           fi
8231           echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8232           echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8233 karl  1.1 case $ac_cv_c_bigendian in
8234             yes)
8235           
8236           cat >>confdefs.h <<\_ACEOF
8237           #define WORDS_BIGENDIAN 1
8238           _ACEOF
8239            ;;
8240             no)
8241                ;;
8242             *)
8243               { { echo "$as_me:$LINENO: error: unknown endianess
8244           presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8245           echo "$as_me: error: unknown endianess
8246           presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8247              { (exit 1); exit 1; }; } ;;
8248           esac
8249           
8250           
8251           
8252           
8253           
8254 karl  1.1 
8255           
8256           
8257           
8258           
8259           
8260           
8261           
8262           
8263           
8264           
8265           
8266           
8267           
8268           
8269           
8270           
8271           
8272           
8273           
8274           
8275 karl  1.1 
8276           
8277           
8278           
8279           
8280           
8281           
8282           
8283           
8284           
8285           
8286           
8287           
8288           
8289           
8290           
8291           
8292           
8293           
8294           
8295           
8296 karl  1.1 
8297           echo Build Process set for $HOST_OS running on $PLATFORM
8298           echo Using Compiler: $CC $CFLAGS
8299           echo Using Linker: $LINKER $LDFLAGS $LIBS
8300           ac_config_files="$ac_config_files Makefile"
8301           
8302           ac_config_headers="$ac_config_headers config.h"
8303           
8304           
8305           cat >confcache <<\_ACEOF
8306           # This file is a shell script that caches the results of configure
8307           # tests run on this system so they can be shared between configure
8308           # scripts and configure runs, see configure's option --config-cache.
8309           # It is not useful on other systems.  If it contains results you don't
8310           # want to keep, you may remove or edit it.
8311           #
8312           # config.status only pays attention to the cache file if you give it
8313           # the --recheck option to rerun configure.
8314           #
8315           # `ac_cv_env_foo' variables (set or unset) will be overriden when
8316           # loading this file, other *unset* `ac_cv_foo' will be assigned the
8317 karl  1.1 # following values.
8318           
8319           _ACEOF
8320           
8321           # The following way of writing the cache mishandles newlines in values,
8322           # but we know of no workaround that is simple, portable, and efficient.
8323           # So, don't put newlines in cache variables' values.
8324           # Ultrix sh set writes to stderr and can't be redirected directly,
8325           # and sets the high bit in the cache file unless we assign to the vars.
8326           {
8327             (set) 2>&1 |
8328               case `(ac_space=' '; set | grep ac_space) 2>&1` in
8329               *ac_space=\ *)
8330                 # `set' does not quote correctly, so add quotes (double-quote
8331                 # substitution turns \\\\ into \\, and sed turns \\ into \).
8332                 sed -n \
8333                   "s/'/'\\\\''/g;
8334               	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8335                 ;;
8336               *)
8337                 # `set' quotes correctly as required by POSIX, so do not add quotes.
8338 karl  1.1       sed -n \
8339                   "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8340                 ;;
8341               esac;
8342           } |
8343             sed '
8344                t clear
8345                : clear
8346                s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8347                t end
8348                /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8349                : end' >>confcache
8350           if cmp -s $cache_file confcache; then :; else
8351             if test -w $cache_file; then
8352               test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8353               cat confcache >$cache_file
8354             else
8355               echo "not updating unwritable cache $cache_file"
8356             fi
8357           fi
8358           rm -f confcache
8359 karl  1.1 
8360           test "x$prefix" = xNONE && prefix=$ac_default_prefix
8361           # Let make expand exec_prefix.
8362           test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8363           
8364           # VPATH may cause trouble with some makes, so we remove $(srcdir),
8365           # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8366           # trailing colons and then remove the whole line if VPATH becomes empty
8367           # (actually we leave an empty line to preserve line numbers).
8368           if test "x$srcdir" = x.; then
8369             ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
8370           s/:*\$(srcdir):*/:/;
8371           s/:*\${srcdir}:*/:/;
8372           s/:*@srcdir@:*/:/;
8373           s/^\([^=]*=[ 	]*\):*/\1/;
8374           s/:*$//;
8375           s/^[^=]*=[ 	]*$//;
8376           }'
8377           fi
8378           
8379           DEFS=-DHAVE_CONFIG_H
8380 karl  1.1 
8381           
8382           : ${CONFIG_STATUS=./config.status}
8383           ac_clean_files_save=$ac_clean_files
8384           ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8385           { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8386           echo "$as_me: creating $CONFIG_STATUS" >&6;}
8387           cat >$CONFIG_STATUS <<_ACEOF
8388           #! $SHELL
8389           # Generated by $as_me.
8390           # Run this file to recreate the current configuration.
8391           # Compiler output produced by configure, useful for debugging
8392           # configure, is in config.log if it exists.
8393           
8394           debug=false
8395           SHELL=\${CONFIG_SHELL-$SHELL}
8396           _ACEOF
8397           
8398           cat >>$CONFIG_STATUS <<\_ACEOF
8399           
8400           ## --------------------- ##
8401 karl  1.1 ## M4sh Initialization.  ##
8402           ## --------------------- ##
8403           
8404           # Be Bourne compatible
8405           if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8406             emulate sh
8407             NULLCMD=:
8408           elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8409             set -o posix
8410           fi
8411           
8412           # NLS nuisances.
8413           # Support unset when possible.
8414           if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8415             as_unset=unset
8416           else
8417             as_unset=false
8418           fi
8419           
8420           (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
8421               { $as_unset LANG || test "${LANG+set}" != set; } ||
8422 karl  1.1       { LANG=C; export LANG; }
8423           (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
8424               { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
8425                 { LC_ALL=C; export LC_ALL; }
8426           (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
8427               { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
8428                 { LC_TIME=C; export LC_TIME; }
8429           (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
8430               { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
8431                 { LC_CTYPE=C; export LC_CTYPE; }
8432           (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
8433               { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
8434                 { LANGUAGE=C; export LANGUAGE; }
8435           (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
8436               { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
8437                 { LC_COLLATE=C; export LC_COLLATE; }
8438           (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
8439               { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
8440                 { LC_NUMERIC=C; export LC_NUMERIC; }
8441           (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
8442               { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
8443 karl  1.1       { LC_MESSAGES=C; export LC_MESSAGES; }
8444           
8445           
8446           # Name of the executable.
8447           as_me=`(basename "$0") 2>/dev/null ||
8448           $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8449           	 X"$0" : 'X\(//\)$' \| \
8450           	 X"$0" : 'X\(/\)$' \| \
8451           	 .     : '\(.\)' 2>/dev/null ||
8452           echo X/"$0" |
8453               sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8454             	  /^X\/\(\/\/\)$/{ s//\1/; q; }
8455             	  /^X\/\(\/\).*/{ s//\1/; q; }
8456             	  s/.*/./; q'`
8457           
8458           # PATH needs CR, and LINENO needs CR and PATH.
8459           # Avoid depending upon Character Ranges.
8460           as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8461           as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8462           as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8463           as_cr_digits='0123456789'
8464 karl  1.1 as_cr_alnum=$as_cr_Letters$as_cr_digits
8465           
8466           # The user is always right.
8467           if test "${PATH_SEPARATOR+set}" != set; then
8468             echo "#! /bin/sh" >conftest.sh
8469             echo  "exit 0"   >>conftest.sh
8470             chmod +x conftest.sh
8471             if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
8472               PATH_SEPARATOR=';'
8473             else
8474               PATH_SEPARATOR=:
8475             fi
8476             rm -f conftest.sh
8477           fi
8478           
8479           
8480             as_lineno_1=$LINENO
8481             as_lineno_2=$LINENO
8482             as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8483             test "x$as_lineno_1" != "x$as_lineno_2" &&
8484             test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8485 karl  1.1   # Find who we are.  Look in the path if we contain no path at all
8486             # relative or not.
8487             case $0 in
8488               *[\\/]* ) as_myself=$0 ;;
8489               *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490           for as_dir in $PATH
8491           do
8492             IFS=$as_save_IFS
8493             test -z "$as_dir" && as_dir=.
8494             test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8495           done
8496           
8497                  ;;
8498             esac
8499             # We did not find ourselves, most probably we were run as `sh COMMAND'
8500             # in which case we are not to be found in the path.
8501             if test "x$as_myself" = x; then
8502               as_myself=$0
8503             fi
8504             if test ! -f "$as_myself"; then
8505               { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8506 karl  1.1 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8507              { (exit 1); exit 1; }; }
8508             fi
8509             case $CONFIG_SHELL in
8510             '')
8511               as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512           for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8513           do
8514             IFS=$as_save_IFS
8515             test -z "$as_dir" && as_dir=.
8516             for as_base in sh bash ksh sh5; do
8517           	 case $as_dir in
8518           	 /*)
8519           	   if ("$as_dir/$as_base" -c '
8520             as_lineno_1=$LINENO
8521             as_lineno_2=$LINENO
8522             as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8523             test "x$as_lineno_1" != "x$as_lineno_2" &&
8524             test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8525           	     CONFIG_SHELL=$as_dir/$as_base
8526           	     export CONFIG_SHELL
8527 karl  1.1 	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8528           	   fi;;
8529           	 esac
8530                  done
8531           done
8532           ;;
8533             esac
8534           
8535             # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8536             # uniformly replaced by the line number.  The first 'sed' inserts a
8537             # line-number line before each line; the second 'sed' does the real
8538             # work.  The second script uses 'N' to pair each line-number line
8539             # with the numbered line, and appends trailing '-' during
8540             # substitution so that $LINENO is not a special case at line end.
8541             # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8542             # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8543             sed '=' <$as_myself |
8544               sed '
8545                 N
8546                 s,$,-,
8547                 : loop
8548 karl  1.1       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8549                 t loop
8550                 s,-$,,
8551                 s,^['$as_cr_digits']*\n,,
8552               ' >$as_me.lineno &&
8553             chmod +x $as_me.lineno ||
8554               { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8555           echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8556              { (exit 1); exit 1; }; }
8557           
8558             # Don't try to exec as it changes $[0], causing all sort of problems
8559             # (the dirname of $[0] is not the place where we might find the
8560             # original and so on.  Autoconf is especially sensible to this).
8561             . ./$as_me.lineno
8562             # Exit status is that of the last command.
8563             exit
8564           }
8565           
8566           
8567           case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8568             *c*,-n*) ECHO_N= ECHO_C='
8569 karl  1.1 ' ECHO_T='	' ;;
8570             *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8571             *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8572           esac
8573           
8574           if expr a : '\(a\)' >/dev/null 2>&1; then
8575             as_expr=expr
8576           else
8577             as_expr=false
8578           fi
8579           
8580           rm -f conf$$ conf$$.exe conf$$.file
8581           echo >conf$$.file
8582           if ln -s conf$$.file conf$$ 2>/dev/null; then
8583             # We could just check for DJGPP; but this test a) works b) is more generic
8584             # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8585             if test -f conf$$.exe; then
8586               # Don't use ln at all; we don't have any links
8587               as_ln_s='cp -p'
8588             else
8589               as_ln_s='ln -s'
8590 karl  1.1   fi
8591           elif ln conf$$.file conf$$ 2>/dev/null; then
8592             as_ln_s=ln
8593           else
8594             as_ln_s='cp -p'
8595           fi
8596           rm -f conf$$ conf$$.exe conf$$.file
8597           
8598           as_executable_p="test -f"
8599           
8600           # Sed expression to map a string onto a valid CPP name.
8601           as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8602           
8603           # Sed expression to map a string onto a valid variable name.
8604           as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8605           
8606           
8607           # IFS
8608           # We need space, tab and new line, in precisely that order.
8609           as_nl='
8610           '
8611 karl  1.1 IFS=" 	$as_nl"
8612           
8613           # CDPATH.
8614           $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
8615           
8616           exec 6>&1
8617           
8618           # Open the log real soon, to keep \$[0] and so on meaningful, and to
8619           # report actual input values of CONFIG_FILES etc. instead of their
8620           # values after options handling.  Logging --version etc. is OK.
8621           exec 5>>config.log
8622           {
8623             echo
8624             sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8625           ## Running $as_me. ##
8626           _ASBOX
8627           } >&5
8628           cat >&5 <<_CSEOF
8629           
8630           This file was extended by slp $as_me 0.8 , which was
8631           generated by GNU Autoconf 2.53.  Invocation command line was
8632 karl  1.1 
8633             CONFIG_FILES    = $CONFIG_FILES
8634             CONFIG_HEADERS  = $CONFIG_HEADERS
8635             CONFIG_LINKS    = $CONFIG_LINKS
8636             CONFIG_COMMANDS = $CONFIG_COMMANDS
8637             $ $0 $@
8638           
8639           _CSEOF
8640           echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8641           echo >&5
8642           _ACEOF
8643           
8644           # Files that config.status was made for.
8645           if test -n "$ac_config_files"; then
8646             echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8647           fi
8648           
8649           if test -n "$ac_config_headers"; then
8650             echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8651           fi
8652           
8653 karl  1.1 if test -n "$ac_config_links"; then
8654             echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8655           fi
8656           
8657           if test -n "$ac_config_commands"; then
8658             echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8659           fi
8660           
8661           cat >>$CONFIG_STATUS <<\_ACEOF
8662           
8663           ac_cs_usage="\
8664           \`$as_me' instantiates files from templates according to the
8665           current configuration.
8666           
8667           Usage: $0 [OPTIONS] [FILE]...
8668           
8669             -h, --help       print this help, then exit
8670             -V, --version    print version number, then exit
8671             -d, --debug      don't remove temporary files
8672                 --recheck    update $as_me by reconfiguring in the same conditions
8673             --file=FILE[:TEMPLATE]
8674 karl  1.1                    instantiate the configuration file FILE
8675             --header=FILE[:TEMPLATE]
8676                              instantiate the configuration header FILE
8677           
8678           Configuration files:
8679           $config_files
8680           
8681           Configuration headers:
8682           $config_headers
8683           
8684           Report bugs to <bug-autoconf@gnu.org>."
8685           _ACEOF
8686           
8687           cat >>$CONFIG_STATUS <<_ACEOF
8688           ac_cs_version="\\
8689           slp config.status 0.8
8690           configured by $0, generated by GNU Autoconf 2.53,
8691             with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8692           
8693           Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8694           Free Software Foundation, Inc.
8695 karl  1.1 This config.status script is free software; the Free Software Foundation
8696           gives unlimited permission to copy, distribute and modify it."
8697           srcdir=$srcdir
8698           _ACEOF
8699           
8700           cat >>$CONFIG_STATUS <<\_ACEOF
8701           # If no file are specified by the user, then we need to provide default
8702           # value.  By we need to know if files were specified by the user.
8703           ac_need_defaults=:
8704           while test $# != 0
8705           do
8706             case $1 in
8707             --*=*)
8708               ac_option=`expr "x$1" : 'x\([^=]*\)='`
8709               ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8710               shift
8711               set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8712               shift
8713               ;;
8714             -*);;
8715             *) # This is not an option, so the user has probably given explicit
8716 karl  1.1      # arguments.
8717                ac_need_defaults=false;;
8718             esac
8719           
8720             case $1 in
8721             # Handling of the options.
8722           _ACEOF
8723           cat >>$CONFIG_STATUS <<_ACEOF
8724             -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8725               echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8726               exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8727           _ACEOF
8728           cat >>$CONFIG_STATUS <<\_ACEOF
8729             --version | --vers* | -V )
8730               echo "$ac_cs_version"; exit 0 ;;
8731             --he | --h)
8732               # Conflict between --help and --header
8733               { { echo "$as_me:$LINENO: error: ambiguous option: $1
8734           Try \`$0 --help' for more information." >&5
8735           echo "$as_me: error: ambiguous option: $1
8736           Try \`$0 --help' for more information." >&2;}
8737 karl  1.1    { (exit 1); exit 1; }; };;
8738             --help | --hel | -h )
8739               echo "$ac_cs_usage"; exit 0 ;;
8740             --debug | --d* | -d )
8741               debug=: ;;
8742             --file | --fil | --fi | --f )
8743               shift
8744               CONFIG_FILES="$CONFIG_FILES $1"
8745               ac_need_defaults=false;;
8746             --header | --heade | --head | --hea )
8747               shift
8748               CONFIG_HEADERS="$CONFIG_HEADERS $1"
8749               ac_need_defaults=false;;
8750           
8751             # This is an error.
8752             -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8753           Try \`$0 --help' for more information." >&5
8754           echo "$as_me: error: unrecognized option: $1
8755           Try \`$0 --help' for more information." >&2;}
8756              { (exit 1); exit 1; }; } ;;
8757           
8758 karl  1.1   *) ac_config_targets="$ac_config_targets $1" ;;
8759           
8760             esac
8761             shift
8762           done
8763           
8764           _ACEOF
8765           
8766           
8767           
8768           
8769           
8770           cat >>$CONFIG_STATUS <<\_ACEOF
8771           for ac_config_target in $ac_config_targets
8772           do
8773             case "$ac_config_target" in
8774             # Handling of arguments.
8775             "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8776             "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8777             *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8778           echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8779 karl  1.1    { (exit 1); exit 1; }; };;
8780             esac
8781           done
8782           
8783           # If the user did not use the arguments to specify the items to instantiate,
8784           # then the envvar interface is used.  Set only those that are not.
8785           # We use the long form for the default assignment because of an extremely
8786           # bizarre bug on SunOS 4.1.3.
8787           if $ac_need_defaults; then
8788             test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8789             test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8790           fi
8791           
8792           # Create a temporary directory, and hook for its removal unless debugging.
8793           $debug ||
8794           {
8795             trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8796             trap '{ (exit 1); exit 1; }' 1 2 13 15
8797           }
8798           
8799           # Create a (secure) tmp directory for tmp files.
8800 karl  1.1 : ${TMPDIR=/tmp}
8801           {
8802             tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8803             test -n "$tmp" && test -d "$tmp"
8804           }  ||
8805           {
8806             tmp=$TMPDIR/cs$$-$RANDOM
8807             (umask 077 && mkdir $tmp)
8808           } ||
8809           {
8810              echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8811              { (exit 1); exit 1; }
8812           }
8813           
8814           _ACEOF
8815           
8816           cat >>$CONFIG_STATUS <<_ACEOF
8817           
8818           #
8819           # CONFIG_FILES section.
8820           #
8821 karl  1.1 
8822           # No need to generate the scripts if there are no CONFIG_FILES.
8823           # This happens for instance when ./config.status config.h
8824           if test -n "\$CONFIG_FILES"; then
8825             # Protect against being on the right side of a sed subst in config.status.
8826             sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8827              s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8828           s,@SHELL@,$SHELL,;t t
8829           s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8830           s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8831           s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8832           s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8833           s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8834           s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8835           s,@exec_prefix@,$exec_prefix,;t t
8836           s,@prefix@,$prefix,;t t
8837           s,@program_transform_name@,$program_transform_name,;t t
8838           s,@bindir@,$bindir,;t t
8839           s,@sbindir@,$sbindir,;t t
8840           s,@libexecdir@,$libexecdir,;t t
8841           s,@datadir@,$datadir,;t t
8842 karl  1.1 s,@sysconfdir@,$sysconfdir,;t t
8843           s,@sharedstatedir@,$sharedstatedir,;t t
8844           s,@localstatedir@,$localstatedir,;t t
8845           s,@libdir@,$libdir,;t t
8846           s,@includedir@,$includedir,;t t
8847           s,@oldincludedir@,$oldincludedir,;t t
8848           s,@infodir@,$infodir,;t t
8849           s,@mandir@,$mandir,;t t
8850           s,@build_alias@,$build_alias,;t t
8851           s,@host_alias@,$host_alias,;t t
8852           s,@target_alias@,$target_alias,;t t
8853           s,@DEFS@,$DEFS,;t t
8854           s,@ECHO_C@,$ECHO_C,;t t
8855           s,@ECHO_N@,$ECHO_N,;t t
8856           s,@ECHO_T@,$ECHO_T,;t t
8857           s,@LIBS@,$LIBS,;t t
8858           s,@build@,$build,;t t
8859           s,@build_cpu@,$build_cpu,;t t
8860           s,@build_vendor@,$build_vendor,;t t
8861           s,@build_os@,$build_os,;t t
8862           s,@host@,$host,;t t
8863 karl  1.1 s,@host_cpu@,$host_cpu,;t t
8864           s,@host_vendor@,$host_vendor,;t t
8865           s,@host_os@,$host_os,;t t
8866           s,@CC@,$CC,;t t
8867           s,@CFLAGS@,$CFLAGS,;t t
8868           s,@LDFLAGS@,$LDFLAGS,;t t
8869           s,@CPPFLAGS@,$CPPFLAGS,;t t
8870           s,@ac_ct_CC@,$ac_ct_CC,;t t
8871           s,@EXEEXT@,$EXEEXT,;t t
8872           s,@OBJEXT@,$OBJEXT,;t t
8873           s,@LN_S@,$LN_S,;t t
8874           s,@ECHO@,$ECHO,;t t
8875           s,@RANLIB@,$RANLIB,;t t
8876           s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8877           s,@STRIP@,$STRIP,;t t
8878           s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8879           s,@CPP@,$CPP,;t t
8880           s,@LIBTOOL@,$LIBTOOL,;t t
8881           s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
8882           s,@DEBUG@,$DEBUG,;t t
8883           s,@OBJ@,$OBJ,;t t
8884 karl  1.1 s,@IGNORE@,$IGNORE,;t t
8885           s,@LIB_PATH@,$LIB_PATH,;t t
8886           s,@LEX@,$LEX,;t t
8887           s,@YACC@,$YACC,;t t
8888           s,@STATIC_LINK_CMD@,$STATIC_LINK_CMD,;t t
8889           s,@DLL_LINK_CMD@,$DLL_LINK_CMD,;t t
8890           s,@MV@,$MV,;t t
8891           s,@MV_FLAGS@,$MV_FLAGS,;t t
8892           s,@RM@,$RM,;t t
8893           s,@RM_FLAGS@,$RM_FLAGS,;t t
8894           s,@CP@,$CP,;t t
8895           s,@CP_FLAGS@,$CP_FLAGS,;t t
8896           s,@MAKE@,$MAKE,;t t
8897           s,@OS_PORT_INC@,$OS_PORT_INC,;t t
8898           s,@OS_PORT_SRC@,$OS_PORT_SRC,;t t
8899           s,@OS_PORT_OBJ@,$OS_PORT_OBJ,;t t
8900           s,@HOST_OS@,$HOST_OS,;t t
8901           s,@LINKER@,$LINKER,;t t
8902           s,@EXE@,$EXE,;t t
8903           s,@THREAD_LIBS@,$THREAD_LIBS,;t t
8904           s,@REENTRANT_FLAG@,$REENTRANT_FLAG,;t t
8905 karl  1.1 s,@NO_LINK_FLAG@,$NO_LINK_FLAG,;t t
8906           s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
8907           s,@DLL_SUFFIX @,$DLL_SUFFIX ,;t t
8908           s,@EXE_OUT@,$EXE_OUT,;t t
8909           s,@OBJ_OUT@,$OBJ_OUT,;t t
8910           s,@LIB_INCLUDE_FLAG@,$LIB_INCLUDE_FLAG,;t t
8911           s,@DLL_LIB_FLAG@,$DLL_LIB_FLAG,;t t
8912           s,@LFLAGS@,$LFLAGS,;t t
8913           s,@YFLAGS@,$YFLAGS,;t t
8914           s,@PLATFORM@,$PLATFORM,;t t
8915           CEOF
8916           
8917           _ACEOF
8918           
8919             cat >>$CONFIG_STATUS <<\_ACEOF
8920             # Split the substitutions into bite-sized pieces for seds with
8921             # small command number limits, like on Digital OSF/1 and HP-UX.
8922             ac_max_sed_lines=48
8923             ac_sed_frag=1 # Number of current file.
8924             ac_beg=1 # First line for current file.
8925             ac_end=$ac_max_sed_lines # Line after last line for current file.
8926 karl  1.1   ac_more_lines=:
8927             ac_sed_cmds=
8928             while $ac_more_lines; do
8929               if test $ac_beg -gt 1; then
8930                 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8931               else
8932                 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8933               fi
8934               if test ! -s $tmp/subs.frag; then
8935                 ac_more_lines=false
8936               else
8937                 # The purpose of the label and of the branching condition is to
8938                 # speed up the sed processing (if there are no `@' at all, there
8939                 # is no need to browse any of the substitutions).
8940                 # These are the two extra sed commands mentioned above.
8941                 (echo ':t
8942             /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8943                 if test -z "$ac_sed_cmds"; then
8944             	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8945                 else
8946             	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8947 karl  1.1       fi
8948                 ac_sed_frag=`expr $ac_sed_frag + 1`
8949                 ac_beg=$ac_end
8950                 ac_end=`expr $ac_end + $ac_max_sed_lines`
8951               fi
8952             done
8953             if test -z "$ac_sed_cmds"; then
8954               ac_sed_cmds=cat
8955             fi
8956           fi # test -n "$CONFIG_FILES"
8957           
8958           _ACEOF
8959           cat >>$CONFIG_STATUS <<\_ACEOF
8960           for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8961             # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8962             case $ac_file in
8963             - | *:- | *:-:* ) # input from stdin
8964                   cat >$tmp/stdin
8965                   ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8966                   ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8967             *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8968 karl  1.1         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8969             * )   ac_file_in=$ac_file.in ;;
8970             esac
8971           
8972             # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8973             ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8974           $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8975                    X"$ac_file" : 'X\(//\)[^/]' \| \
8976                    X"$ac_file" : 'X\(//\)$' \| \
8977                    X"$ac_file" : 'X\(/\)' \| \
8978                    .     : '\(.\)' 2>/dev/null ||
8979           echo X"$ac_file" |
8980               sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8981             	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8982             	  /^X\(\/\/\)$/{ s//\1/; q; }
8983             	  /^X\(\/\).*/{ s//\1/; q; }
8984             	  s/.*/./; q'`
8985             { case "$ac_dir" in
8986             [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8987             *)                      as_incr_dir=.;;
8988           esac
8989 karl  1.1 as_dummy="$ac_dir"
8990           for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8991             case $as_mkdir_dir in
8992               # Skip DOS drivespec
8993               ?:) as_incr_dir=$as_mkdir_dir ;;
8994               *)
8995                 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8996                 test -d "$as_incr_dir" ||
8997                   mkdir "$as_incr_dir" ||
8998           	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
8999           echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9000              { (exit 1); exit 1; }; }
9001               ;;
9002             esac
9003           done; }
9004           
9005             ac_builddir=.
9006           
9007           if test "$ac_dir" != .; then
9008             ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9009             # A "../" for each directory in $ac_dir_suffix.
9010 karl  1.1   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9011           else
9012             ac_dir_suffix= ac_top_builddir=
9013           fi
9014           
9015           case $srcdir in
9016             .)  # No --srcdir option.  We are building in place.
9017               ac_srcdir=.
9018               if test -z "$ac_top_builddir"; then
9019                  ac_top_srcdir=.
9020               else
9021                  ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9022               fi ;;
9023             [\\/]* | ?:[\\/]* )  # Absolute path.
9024               ac_srcdir=$srcdir$ac_dir_suffix;
9025               ac_top_srcdir=$srcdir ;;
9026             *) # Relative path.
9027               ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9028               ac_top_srcdir=$ac_top_builddir$srcdir ;;
9029           esac
9030           # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9031 karl  1.1 # absolute.
9032           ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9033           ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9034           ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9035           ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9036           
9037           
9038           
9039             if test x"$ac_file" != x-; then
9040               { echo "$as_me:$LINENO: creating $ac_file" >&5
9041           echo "$as_me: creating $ac_file" >&6;}
9042               rm -f "$ac_file"
9043             fi
9044             # Let's still pretend it is `configure' which instantiates (i.e., don't
9045             # use $as_me), people would be surprised to read:
9046             #    /* config.h.  Generated by config.status.  */
9047             if test x"$ac_file" = x-; then
9048               configure_input=
9049             else
9050               configure_input="$ac_file.  "
9051             fi
9052 karl  1.1   configure_input=$configure_input"Generated from `echo $ac_file_in |
9053                                                sed 's,.*/,,'` by configure."
9054           
9055             # First look for the input files in the build tree, otherwise in the
9056             # src tree.
9057             ac_file_inputs=`IFS=:
9058               for f in $ac_file_in; do
9059                 case $f in
9060                 -) echo $tmp/stdin ;;
9061                 [\\/$]*)
9062                    # Absolute (can't be DOS-style, as IFS=:)
9063                    test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9064           echo "$as_me: error: cannot find input file: $f" >&2;}
9065              { (exit 1); exit 1; }; }
9066                    echo $f;;
9067                 *) # Relative
9068                    if test -f "$f"; then
9069                      # Build tree
9070                      echo $f
9071                    elif test -f "$srcdir/$f"; then
9072                      # Source tree
9073 karl  1.1            echo $srcdir/$f
9074                    else
9075                      # /dev/null tree
9076                      { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9077           echo "$as_me: error: cannot find input file: $f" >&2;}
9078              { (exit 1); exit 1; }; }
9079                    fi;;
9080                 esac
9081               done` || { (exit 1); exit 1; }
9082           _ACEOF
9083           cat >>$CONFIG_STATUS <<_ACEOF
9084             sed "$ac_vpsub
9085           $extrasub
9086           _ACEOF
9087           cat >>$CONFIG_STATUS <<\_ACEOF
9088           :t
9089           /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9090           s,@configure_input@,$configure_input,;t t
9091           s,@srcdir@,$ac_srcdir,;t t
9092           s,@abs_srcdir@,$ac_abs_srcdir,;t t
9093           s,@top_srcdir@,$ac_top_srcdir,;t t
9094 karl  1.1 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9095           s,@builddir@,$ac_builddir,;t t
9096           s,@abs_builddir@,$ac_abs_builddir,;t t
9097           s,@top_builddir@,$ac_top_builddir,;t t
9098           s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9099           " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9100             rm -f $tmp/stdin
9101             if test x"$ac_file" != x-; then
9102               mv $tmp/out $ac_file
9103             else
9104               cat $tmp/out
9105               rm -f $tmp/out
9106             fi
9107           
9108           done
9109           _ACEOF
9110           cat >>$CONFIG_STATUS <<\_ACEOF
9111           
9112           #
9113           # CONFIG_HEADER section.
9114           #
9115 karl  1.1 
9116           # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9117           # NAME is the cpp macro being defined and VALUE is the value it is being given.
9118           #
9119           # ac_d sets the value in "#define NAME VALUE" lines.
9120           ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
9121           ac_dB='[ 	].*$,\1#\2'
9122           ac_dC=' '
9123           ac_dD=',;t'
9124           # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9125           ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
9126           ac_uB='$,\1#\2define\3'
9127           ac_uC=' '
9128           ac_uD=',;t'
9129           
9130           for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9131             # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9132             case $ac_file in
9133             - | *:- | *:-:* ) # input from stdin
9134                   cat >$tmp/stdin
9135                   ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9136 karl  1.1         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9137             *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9138                   ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9139             * )   ac_file_in=$ac_file.in ;;
9140             esac
9141           
9142             test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9143           echo "$as_me: creating $ac_file" >&6;}
9144           
9145             # First look for the input files in the build tree, otherwise in the
9146             # src tree.
9147             ac_file_inputs=`IFS=:
9148               for f in $ac_file_in; do
9149                 case $f in
9150                 -) echo $tmp/stdin ;;
9151                 [\\/$]*)
9152                    # Absolute (can't be DOS-style, as IFS=:)
9153                    test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9154           echo "$as_me: error: cannot find input file: $f" >&2;}
9155              { (exit 1); exit 1; }; }
9156                    echo $f;;
9157 karl  1.1       *) # Relative
9158                    if test -f "$f"; then
9159                      # Build tree
9160                      echo $f
9161                    elif test -f "$srcdir/$f"; then
9162                      # Source tree
9163                      echo $srcdir/$f
9164                    else
9165                      # /dev/null tree
9166                      { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9167           echo "$as_me: error: cannot find input file: $f" >&2;}
9168              { (exit 1); exit 1; }; }
9169                    fi;;
9170                 esac
9171               done` || { (exit 1); exit 1; }
9172             # Remove the trailing spaces.
9173             sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
9174           
9175           _ACEOF
9176           
9177           # Transform confdefs.h into two sed scripts, `conftest.defines' and
9178 karl  1.1 # `conftest.undefs', that substitutes the proper values into
9179           # config.h.in to produce config.h.  The first handles `#define'
9180           # templates, and the second `#undef' templates.
9181           # And first: Protect against being on the right side of a sed subst in
9182           # config.status.  Protect against being in an unquoted here document
9183           # in config.status.
9184           rm -f conftest.defines conftest.undefs
9185           # Using a here document instead of a string reduces the quoting nightmare.
9186           # Putting comments in sed scripts is not portable.
9187           #
9188           # `end' is used to avoid that the second main sed command (meant for
9189           # 0-ary CPP macros) applies to n-ary macro definitions.
9190           # See the Autoconf documentation for `clear'.
9191           cat >confdef2sed.sed <<\_ACEOF
9192           s/[\\&,]/\\&/g
9193           s,[\\$`],\\&,g
9194           t clear
9195           : clear
9196           s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9197           t end
9198           s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9199 karl  1.1 : end
9200           _ACEOF
9201           # If some macros were called several times there might be several times
9202           # the same #defines, which is useless.  Nevertheless, we may not want to
9203           # sort them, since we want the *last* AC-DEFINE to be honored.
9204           uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9205           sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9206           rm -f confdef2sed.sed
9207           
9208           # This sed command replaces #undef with comments.  This is necessary, for
9209           # example, in the case of _POSIX_SOURCE, which is predefined and required
9210           # on some systems where configure will not decide to define it.
9211           cat >>conftest.undefs <<\_ACEOF
9212           s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9213           _ACEOF
9214           
9215           # Break up conftest.defines because some shells have a limit on the size
9216           # of here documents, and old seds have small limits too (100 cmds).
9217           echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9218           echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9219           echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9220 karl  1.1 echo '  :' >>$CONFIG_STATUS
9221           rm -f conftest.tail
9222           while grep . conftest.defines >/dev/null
9223           do
9224             # Write a limited-size here document to $tmp/defines.sed.
9225             echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9226             # Speed up: don't consider the non `#define' lines.
9227             echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
9228             # Work around the forget-to-reset-the-flag bug.
9229             echo 't clr' >>$CONFIG_STATUS
9230             echo ': clr' >>$CONFIG_STATUS
9231             sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9232             echo 'CEOF
9233             sed -f $tmp/defines.sed $tmp/in >$tmp/out
9234             rm -f $tmp/in
9235             mv $tmp/out $tmp/in
9236           ' >>$CONFIG_STATUS
9237             sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9238             rm -f conftest.defines
9239             mv conftest.tail conftest.defines
9240           done
9241 karl  1.1 rm -f conftest.defines
9242           echo '  fi # egrep' >>$CONFIG_STATUS
9243           echo >>$CONFIG_STATUS
9244           
9245           # Break up conftest.undefs because some shells have a limit on the size
9246           # of here documents, and old seds have small limits too (100 cmds).
9247           echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9248           rm -f conftest.tail
9249           while grep . conftest.undefs >/dev/null
9250           do
9251             # Write a limited-size here document to $tmp/undefs.sed.
9252             echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9253             # Speed up: don't consider the non `#undef'
9254             echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
9255             # Work around the forget-to-reset-the-flag bug.
9256             echo 't clr' >>$CONFIG_STATUS
9257             echo ': clr' >>$CONFIG_STATUS
9258             sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9259             echo 'CEOF
9260             sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9261             rm -f $tmp/in
9262 karl  1.1   mv $tmp/out $tmp/in
9263           ' >>$CONFIG_STATUS
9264             sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9265             rm -f conftest.undefs
9266             mv conftest.tail conftest.undefs
9267           done
9268           rm -f conftest.undefs
9269           
9270           cat >>$CONFIG_STATUS <<\_ACEOF
9271             # Let's still pretend it is `configure' which instantiates (i.e., don't
9272             # use $as_me), people would be surprised to read:
9273             #    /* config.h.  Generated by config.status.  */
9274             if test x"$ac_file" = x-; then
9275               echo "/* Generated by configure.  */" >$tmp/config.h
9276             else
9277               echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9278             fi
9279             cat $tmp/in >>$tmp/config.h
9280             rm -f $tmp/in
9281             if test x"$ac_file" != x-; then
9282               if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
9283 karl  1.1       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9284           echo "$as_me: $ac_file is unchanged" >&6;}
9285               else
9286                 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9287           $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9288                    X"$ac_file" : 'X\(//\)[^/]' \| \
9289                    X"$ac_file" : 'X\(//\)$' \| \
9290                    X"$ac_file" : 'X\(/\)' \| \
9291                    .     : '\(.\)' 2>/dev/null ||
9292           echo X"$ac_file" |
9293               sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9294             	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9295             	  /^X\(\/\/\)$/{ s//\1/; q; }
9296             	  /^X\(\/\).*/{ s//\1/; q; }
9297             	  s/.*/./; q'`
9298                 { case "$ac_dir" in
9299             [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9300             *)                      as_incr_dir=.;;
9301           esac
9302           as_dummy="$ac_dir"
9303           for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9304 karl  1.1   case $as_mkdir_dir in
9305               # Skip DOS drivespec
9306               ?:) as_incr_dir=$as_mkdir_dir ;;
9307               *)
9308                 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9309                 test -d "$as_incr_dir" ||
9310                   mkdir "$as_incr_dir" ||
9311           	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9312           echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9313              { (exit 1); exit 1; }; }
9314               ;;
9315             esac
9316           done; }
9317           
9318                 rm -f $ac_file
9319                 mv $tmp/config.h $ac_file
9320               fi
9321             else
9322               cat $tmp/config.h
9323               rm -f $tmp/config.h
9324             fi
9325 karl  1.1 done
9326           _ACEOF
9327           
9328           cat >>$CONFIG_STATUS <<\_ACEOF
9329           
9330           { (exit 0); exit 0; }
9331           _ACEOF
9332           chmod +x $CONFIG_STATUS
9333           ac_clean_files=$ac_clean_files_save
9334           
9335           
9336           # configure is writing to config.log, and then calls config.status.
9337           # config.status does its own redirection, appending to config.log.
9338           # Unfortunately, on DOS this fails, as config.log is still kept open
9339           # by configure, so config.status won't be able to write to it; its
9340           # output is simply discarded.  So we exec the FD to /dev/null,
9341           # effectively closing config.log, so it can be properly (re)opened and
9342           # appended to by config.status.  When coming back to configure, we
9343           # need to make the FD available again.
9344           if test "$no_create" != yes; then
9345             ac_cs_success=:
9346 karl  1.1   exec 5>/dev/null
9347             $SHELL $CONFIG_STATUS || ac_cs_success=false
9348             exec 5>>config.log
9349             # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9350             # would make configure fail if this is the last instruction.
9351             $ac_cs_success || { (exit 1); exit 1; }
9352           fi
9353           

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2