Skip to content
Snippets Groups Projects
configure 351 KiB
Newer Older
  • Learn to ignore specific revisions
  • Kenneth Johansson's avatar
    Kenneth Johansson committed
    4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000
    $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
    esac
    if test "x$ac_cv_prog_cc_c89" != xno; then :
    
    fi
    
    ac_ext=c
    ac_cpp='$CPP $CPPFLAGS'
    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    ac_compiler_gnu=$ac_cv_c_compiler_gnu
    
    ac_ext=c
    ac_cpp='$CPP $CPPFLAGS'
    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    ac_compiler_gnu=$ac_cv_c_compiler_gnu
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
    $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
    if ${am_cv_prog_cc_c_o+:} false; then :
      $as_echo_n "(cached) " >&6
    else
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    
    int
    main ()
    {
    
      ;
      return 0;
    }
    _ACEOF
      # Make sure it works both with $CC and with simple cc.
      # Following AC_PROG_CC_C_O, we do the test twice because some
      # compilers refuse to overwrite an existing .o file with -o,
      # though they will create one.
      am_cv_prog_cc_c_o=yes
      for am_i in 1 2; do
        if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
       ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } \
             && test -f conftest2.$ac_objext; then
          : OK
        else
          am_cv_prog_cc_c_o=no
          break
        fi
      done
      rm -f core conftest*
      unset am_i
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
    $as_echo "$am_cv_prog_cc_c_o" >&6; }
    if test "$am_cv_prog_cc_c_o" != yes; then
       # Losing compiler, so override with the script.
       # FIXME: It is wrong to rewrite CC.
       # But if we don't then we get into trouble of one sort or another.
       # A longer-term fix would be to have automake use am__CC in this case,
       # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
       CC="$am_aux_dir/compile $CC"
    fi
    ac_ext=c
    ac_cpp='$CPP $CPPFLAGS'
    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    ac_compiler_gnu=$ac_cv_c_compiler_gnu
    
    DEPDIR="${am__leading_dot}deps"
    
    ac_config_commands="$ac_config_commands depfiles"
    
    
    am_make=${MAKE-make}
    cat > confinc << 'END'
    am__doit:
    	@echo this is the am__doit target
    .PHONY: am__doit
    END
    # If we don't find an include directive, just comment out the code.
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
    $as_echo_n "checking for style of include used by $am_make... " >&6; }
    am__include="#"
    am__quote=
    _am_result=none
    # First try GNU make style include.
    echo "include confinc" > confmf
    # Ignore all kinds of additional output from 'make'.
    case `$am_make -s -f confmf 2> /dev/null` in #(
    *the\ am__doit\ target*)
      am__include=include
      am__quote=
      _am_result=GNU
      ;;
    esac
    # Now try BSD make style include.
    if test "$am__include" = "#"; then
       echo '.include "confinc"' > confmf
       case `$am_make -s -f confmf 2> /dev/null` in #(
       *the\ am__doit\ target*)
         am__include=.include
         am__quote="\""
         _am_result=BSD
         ;;
       esac
    fi
    
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
    $as_echo "$_am_result" >&6; }
    rm -f confinc confmf
    
    # Check whether --enable-dependency-tracking was given.
    if test "${enable_dependency_tracking+set}" = set; then :
      enableval=$enable_dependency_tracking;
    fi
    
    if test "x$enable_dependency_tracking" != xno; then
      am_depcomp="$ac_aux_dir/depcomp"
      AMDEPBACKSLASH='\'
      am__nodep='_no'
    fi
     if test "x$enable_dependency_tracking" != xno; then
      AMDEP_TRUE=
      AMDEP_FALSE='#'
    else
      AMDEP_TRUE='#'
      AMDEP_FALSE=
    fi
    
    
    
    depcc="$CC"   am_compiler_list=
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
    $as_echo_n "checking dependency style of $depcc... " >&6; }
    if ${am_cv_CC_dependencies_compiler_type+:} false; then :
      $as_echo_n "(cached) " >&6
    else
      if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
      # We make a subdir and do the tests there.  Otherwise we can end up
      # making bogus files that we don't know about and never remove.  For
      # instance it was reported that on HP-UX the gcc test will end up
      # making a dummy file named 'D' -- because '-MD' means "put the output
      # in D".
      rm -rf conftest.dir
      mkdir conftest.dir
      # Copy depcomp to subdir because otherwise we won't find it if we're
      # using a relative directory.
      cp "$am_depcomp" conftest.dir
      cd conftest.dir
      # We will build objects and dependencies in a subdirectory because
      # it helps to detect inapplicable dependency modes.  For instance
      # both Tru64's cc and ICC support -MD to output dependencies as a
      # side effect of compilation, but ICC will put the dependencies in
      # the current directory while Tru64 will put them in the object
      # directory.
      mkdir sub
    
      am_cv_CC_dependencies_compiler_type=none
      if test "$am_compiler_list" = ""; then
         am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
      fi
      am__universal=false
      case " $depcc " in #(
         *\ -arch\ *\ -arch\ *) am__universal=true ;;
         esac
    
      for depmode in $am_compiler_list; do
        # Setup a source with many dependencies, because some compilers
        # like to wrap large dependency lists on column 80 (with \), and
        # we should not choose a depcomp mode which is confused by this.
        #
        # We need to recreate these files for each test, as the compiler may
        # overwrite some of them when testing with obscure command lines.
        # This happens at least with the AIX C compiler.
        : > sub/conftest.c
        for i in 1 2 3 4 5 6; do
          echo '#include "conftst'$i'.h"' >> sub/conftest.c
          # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
          # Solaris 10 /bin/sh.
          echo '/* dummy */' > sub/conftst$i.h
        done
        echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    
        # We check with '-c' and '-o' for the sake of the "dashmstdout"
        # mode.  It turns out that the SunPro C++ compiler does not properly
        # handle '-M -o', and we need to detect this.  Also, some Intel
        # versions had trouble with output in subdirs.
        am__obj=sub/conftest.${OBJEXT-o}
        am__minus_obj="-o $am__obj"
        case $depmode in
        gcc)
          # This depmode causes a compiler race in universal mode.
          test "$am__universal" = false || continue
          ;;
        nosideeffect)
          # After this tag, mechanisms are not by side-effect, so they'll
          # only be used when explicitly requested.
          if test "x$enable_dependency_tracking" = xyes; then
    	continue
          else
    	break
          fi
          ;;
        msvc7 | msvc7msys | msvisualcpp | msvcmsys)
          # This compiler won't grok '-c -o', but also, the minuso test has
          # not run yet.  These depmodes are late enough in the game, and
          # so weak that their functioning should not be impacted.
          am__obj=conftest.${OBJEXT-o}
          am__minus_obj=
          ;;
        none) break ;;
        esac
        if depmode=$depmode \
           source=sub/conftest.c object=$am__obj \
           depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
           $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
             >/dev/null 2>conftest.err &&
           grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
           grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
           grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
           ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
          # icc doesn't choke on unknown options, it will just issue warnings
          # or remarks (even with -Werror).  So we grep stderr for any message
          # that says an option was ignored or not supported.
          # When given -MP, icc 7.0 and 7.1 complain thusly:
          #   icc: Command line warning: ignoring option '-M'; no argument required
          # The diagnosis changed in icc 8.0:
          #   icc: Command line remark: option '-MP' not supported
          if (grep 'ignoring option' conftest.err ||
              grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
            am_cv_CC_dependencies_compiler_type=$depmode
            break
          fi
        fi
      done
    
      cd ..
      rm -rf conftest.dir
    else
      am_cv_CC_dependencies_compiler_type=none
    fi
    
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
    $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
    CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
    
     if
      test "x$enable_dependency_tracking" != xno \
      && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
      am__fastdepCC_TRUE=
      am__fastdepCC_FALSE='#'
    else
      am__fastdepCC_TRUE='#'
      am__fastdepCC_FALSE=
    fi
    
    
    
    
    # Checks for libraries.
    
    # Checks for header files.
    
    ac_ext=c
    ac_cpp='$CPP $CPPFLAGS'
    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    ac_compiler_gnu=$ac_cv_c_compiler_gnu
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
    $as_echo_n "checking how to run the C preprocessor... " >&6; }
    # On Suns, sometimes $CPP names a directory.
    if test -n "$CPP" && test -d "$CPP"; then
      CPP=
    fi
    if test -z "$CPP"; then
      if ${ac_cv_prog_CPP+:} false; then :
      $as_echo_n "(cached) " >&6
    else
          # Double quotes because CPP needs to be expanded
        for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
        do
          ac_preproc_ok=false
    for ac_c_preproc_warn_flag in '' yes
    do
      # Use a header file that comes with gcc, so configuring glibc
      # with a fresh cross-compiler works.
      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
      # <limits.h> exists even on freestanding compilers.
      # On the NeXT, cc -E runs the code through the compiler's parser,
      # not just through cpp. "Syntax error" is here to catch this case.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    #ifdef __STDC__
    # include <limits.h>
    #else
    # include <assert.h>
    #endif
    		     Syntax error
    _ACEOF
    if ac_fn_c_try_cpp "$LINENO"; then :
    
    else
      # Broken: fails on valid input.
    continue
    fi
    rm -f conftest.err conftest.i conftest.$ac_ext
    
      # OK, works on sane cases.  Now check whether nonexistent headers
      # can be detected and how.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    #include <ac_nonexistent.h>
    _ACEOF
    if ac_fn_c_try_cpp "$LINENO"; then :
      # Broken: success on invalid input.
    continue
    else
      # Passes both tests.
    ac_preproc_ok=:
    break
    fi
    rm -f conftest.err conftest.i conftest.$ac_ext
    
    done
    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    rm -f conftest.i conftest.err conftest.$ac_ext
    if $ac_preproc_ok; then :
      break
    fi
    
        done
        ac_cv_prog_CPP=$CPP
    
    fi
      CPP=$ac_cv_prog_CPP
    else
      ac_cv_prog_CPP=$CPP
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
    $as_echo "$CPP" >&6; }
    ac_preproc_ok=false
    for ac_c_preproc_warn_flag in '' yes
    do
      # Use a header file that comes with gcc, so configuring glibc
      # with a fresh cross-compiler works.
      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
      # <limits.h> exists even on freestanding compilers.
      # On the NeXT, cc -E runs the code through the compiler's parser,
      # not just through cpp. "Syntax error" is here to catch this case.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    #ifdef __STDC__
    # include <limits.h>
    #else
    # include <assert.h>
    #endif
    		     Syntax error
    _ACEOF
    if ac_fn_c_try_cpp "$LINENO"; then :
    
    else
      # Broken: fails on valid input.
    continue
    fi
    rm -f conftest.err conftest.i conftest.$ac_ext
    
      # OK, works on sane cases.  Now check whether nonexistent headers
      # can be detected and how.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    #include <ac_nonexistent.h>
    _ACEOF
    if ac_fn_c_try_cpp "$LINENO"; then :
      # Broken: success on invalid input.
    continue
    else
      # Passes both tests.
    ac_preproc_ok=:
    break
    fi
    rm -f conftest.err conftest.i conftest.$ac_ext
    
    done
    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    rm -f conftest.i conftest.err conftest.$ac_ext
    if $ac_preproc_ok; then :
    
    else
      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
    See \`config.log' for more details" "$LINENO" 5; }
    fi
    
    ac_ext=c
    ac_cpp='$CPP $CPPFLAGS'
    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    ac_compiler_gnu=$ac_cv_c_compiler_gnu
    
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
    $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
    if ${ac_cv_path_GREP+:} false; then :
      $as_echo_n "(cached) " >&6
    else
      if test -z "$GREP"; then
      ac_path_GREP_found=false
      # Loop through the user's path and test for each of PROGNAME-LIST
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
        for ac_prog in grep ggrep; do
        for ac_exec_ext in '' $ac_executable_extensions; do
          ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
          as_fn_executable_p "$ac_path_GREP" || continue
    # Check for GNU ac_path_GREP and select it if it is found.
      # Check for GNU $ac_path_GREP
    case `"$ac_path_GREP" --version 2>&1` in
    *GNU*)
      ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
    *)
      ac_count=0
      $as_echo_n 0123456789 >"conftest.in"
      while :
      do
        cat "conftest.in" "conftest.in" >"conftest.tmp"
        mv "conftest.tmp" "conftest.in"
        cp "conftest.in" "conftest.nl"
        $as_echo 'GREP' >> "conftest.nl"
        "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
        diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
        as_fn_arith $ac_count + 1 && ac_count=$as_val
        if test $ac_count -gt ${ac_path_GREP_max-0}; then
          # Best one so far, save it but keep looking for a better one
          ac_cv_path_GREP="$ac_path_GREP"
          ac_path_GREP_max=$ac_count
        fi
        # 10*(2^10) chars as input seems more than enough
        test $ac_count -gt 10 && break
      done
      rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
    esac
    
          $ac_path_GREP_found && break 3
        done
      done
      done
    IFS=$as_save_IFS
      if test -z "$ac_cv_path_GREP"; then
        as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
      fi
    else
      ac_cv_path_GREP=$GREP
    fi
    
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
    $as_echo "$ac_cv_path_GREP" >&6; }
     GREP="$ac_cv_path_GREP"
    
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
    $as_echo_n "checking for egrep... " >&6; }
    if ${ac_cv_path_EGREP+:} false; then :
      $as_echo_n "(cached) " >&6
    else
      if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
       then ac_cv_path_EGREP="$GREP -E"
       else
         if test -z "$EGREP"; then
      ac_path_EGREP_found=false
      # Loop through the user's path and test for each of PROGNAME-LIST
      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
    do
      IFS=$as_save_IFS
      test -z "$as_dir" && as_dir=.
        for ac_prog in egrep; do
        for ac_exec_ext in '' $ac_executable_extensions; do
          ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
          as_fn_executable_p "$ac_path_EGREP" || continue
    # Check for GNU ac_path_EGREP and select it if it is found.
      # Check for GNU $ac_path_EGREP
    case `"$ac_path_EGREP" --version 2>&1` in
    *GNU*)
      ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
    *)
      ac_count=0
      $as_echo_n 0123456789 >"conftest.in"
      while :
      do
        cat "conftest.in" "conftest.in" >"conftest.tmp"
        mv "conftest.tmp" "conftest.in"
        cp "conftest.in" "conftest.nl"
        $as_echo 'EGREP' >> "conftest.nl"
        "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
        diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
        as_fn_arith $ac_count + 1 && ac_count=$as_val
        if test $ac_count -gt ${ac_path_EGREP_max-0}; then
          # Best one so far, save it but keep looking for a better one
          ac_cv_path_EGREP="$ac_path_EGREP"
          ac_path_EGREP_max=$ac_count
        fi
        # 10*(2^10) chars as input seems more than enough
        test $ac_count -gt 10 && break
      done
      rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
    esac
    
          $ac_path_EGREP_found && break 3
        done
      done
      done
    IFS=$as_save_IFS
      if test -z "$ac_cv_path_EGREP"; then
        as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
      fi
    else
      ac_cv_path_EGREP=$EGREP
    fi
    
       fi
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
    $as_echo "$ac_cv_path_EGREP" >&6; }
     EGREP="$ac_cv_path_EGREP"
    
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
    $as_echo_n "checking for ANSI C header files... " >&6; }
    if ${ac_cv_header_stdc+:} false; then :
      $as_echo_n "(cached) " >&6
    else
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    #include <stdlib.h>
    #include <stdarg.h>
    #include <string.h>
    #include <float.h>
    
    int
    main ()
    {
    
      ;
      return 0;
    }
    _ACEOF
    if ac_fn_c_try_compile "$LINENO"; then :
      ac_cv_header_stdc=yes
    else
      ac_cv_header_stdc=no
    fi
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    
    if test $ac_cv_header_stdc = yes; then
      # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    #include <string.h>
    
    _ACEOF
    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
      $EGREP "memchr" >/dev/null 2>&1; then :
    
    else
      ac_cv_header_stdc=no
    fi
    rm -f conftest*
    
    fi
    
    if test $ac_cv_header_stdc = yes; then
      # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    #include <stdlib.h>
    
    _ACEOF
    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
      $EGREP "free" >/dev/null 2>&1; then :
    
    else
      ac_cv_header_stdc=no
    fi
    rm -f conftest*
    
    fi
    
    if test $ac_cv_header_stdc = yes; then
      # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
      if test "$cross_compiling" = yes; then :
      :
    else
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    #include <ctype.h>
    #include <stdlib.h>
    #if ((' ' & 0x0FF) == 0x020)
    # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    #else
    # define ISLOWER(c) \
    		   (('a' <= (c) && (c) <= 'i') \
    		     || ('j' <= (c) && (c) <= 'r') \
    		     || ('s' <= (c) && (c) <= 'z'))
    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    #endif
    
    #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    int
    main ()
    {
      int i;
      for (i = 0; i < 256; i++)
        if (XOR (islower (i), ISLOWER (i))
    	|| toupper (i) != TOUPPER (i))
          return 2;
      return 0;
    }
    _ACEOF
    if ac_fn_c_try_run "$LINENO"; then :
    
    else
      ac_cv_header_stdc=no
    fi
    rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
      conftest.$ac_objext conftest.beam conftest.$ac_ext
    fi
    
    fi
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
    $as_echo "$ac_cv_header_stdc" >&6; }
    if test $ac_cv_header_stdc = yes; then
    
    $as_echo "#define STDC_HEADERS 1" >>confdefs.h
    
    fi
    
    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    		  inttypes.h stdint.h unistd.h
    do :
      as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
    "
    if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
      cat >>confdefs.h <<_ACEOF
    #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    _ACEOF
    
    fi
    
    done
    
    
    for ac_header in arpa/inet.h fcntl.h float.h limits.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/ioctl.h sys/socket.h sys/time.h unistd.h
    do :
      as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
    if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
      cat >>confdefs.h <<_ACEOF
    #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    _ACEOF
    
    fi
    
    done
    
    
    # Checks for typedefs, structures, and compiler characteristics.
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
    $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
    if ${ac_cv_header_stdbool_h+:} false; then :
      $as_echo_n "(cached) " >&6
    else
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    
                 #include <stdbool.h>
                 #ifndef bool
                  "error: bool is not defined"
                 #endif
                 #ifndef false
                  "error: false is not defined"
                 #endif
                 #if false
                  "error: false is not 0"
                 #endif
                 #ifndef true
                  "error: true is not defined"
                 #endif
                 #if true != 1
                  "error: true is not 1"
                 #endif
                 #ifndef __bool_true_false_are_defined
                  "error: __bool_true_false_are_defined is not defined"
                 #endif
    
                 struct s { _Bool s: 1; _Bool t; } s;
    
                 char a[true == 1 ? 1 : -1];
                 char b[false == 0 ? 1 : -1];
                 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
                 char d[(bool) 0.5 == true ? 1 : -1];
                 /* See body of main program for 'e'.  */
                 char f[(_Bool) 0.0 == false ? 1 : -1];
                 char g[true];
                 char h[sizeof (_Bool)];
                 char i[sizeof s.t];
                 enum { j = false, k = true, l = false * true, m = true * 256 };
                 /* The following fails for
                    HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
                 _Bool n[m];
                 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
                 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
                 /* Catch a bug in an HP-UX C compiler.  See
                    http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
                    http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
                  */
                 _Bool q = true;
                 _Bool *pq = &q;
    
    int
    main ()
    {
    
                 bool e = &s;
                 *pq |= q;
                 *pq |= ! q;
                 /* Refer to every declared value, to avoid compiler optimizations.  */
                 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
                         + !m + !n + !o + !p + !q + !pq);
    
      ;
      return 0;
    }
    _ACEOF
    if ac_fn_c_try_compile "$LINENO"; then :
      ac_cv_header_stdbool_h=yes
    else
      ac_cv_header_stdbool_h=no
    fi
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
    $as_echo "$ac_cv_header_stdbool_h" >&6; }
       ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
    if test "x$ac_cv_type__Bool" = xyes; then :
    
    cat >>confdefs.h <<_ACEOF
    #define HAVE__BOOL 1
    _ACEOF
    
    
    fi
    
    
    if test $ac_cv_header_stdbool_h = yes; then
    
    $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
    
    fi
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
    $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
    if ${ac_cv_c_const+:} false; then :
      $as_echo_n "(cached) " >&6
    else
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    
    int
    main ()
    {
    
    #ifndef __cplusplus
      /* Ultrix mips cc rejects this sort of thing.  */
      typedef int charset[2];
      const charset cs = { 0, 0 };
      /* SunOS 4.1.1 cc rejects this.  */
      char const *const *pcpcc;
      char **ppc;
      /* NEC SVR4.0.2 mips cc rejects this.  */
      struct point {int x, y;};
      static struct point const zero = {0,0};
      /* AIX XL C 1.02.0.0 rejects this.
         It does not let you subtract one const X* pointer from another in
         an arm of an if-expression whose if-part is not a constant
         expression */
      const char *g = "string";
      pcpcc = &g + (g ? g-g : 0);
      /* HPUX 7.0 cc rejects these. */
      ++pcpcc;
      ppc = (char**) pcpcc;
      pcpcc = (char const *const *) ppc;
      { /* SCO 3.2v4 cc rejects this sort of thing.  */
        char tx;
        char *t = &tx;
        char const *s = 0 ? (char *) 0 : (char const *) 0;
    
        *t++ = 0;
        if (s) return 0;
      }
      { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
        int x[] = {25, 17};
        const int *foo = &x[0];
        ++foo;
      }
      { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
        typedef const int *iptr;
        iptr p = 0;
        ++p;
      }
      { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
           "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
        struct s { int j; const int *ap[3]; } bx;
        struct s *b = &bx; b->j = 5;
      }
      { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
        const int foo = 10;
        if (!foo) return 0;
      }
      return !cs[0] && !zero.x;
    #endif
    
      ;
      return 0;
    }
    _ACEOF
    if ac_fn_c_try_compile "$LINENO"; then :
      ac_cv_c_const=yes
    else
      ac_cv_c_const=no
    fi
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
    $as_echo "$ac_cv_c_const" >&6; }
    if test $ac_cv_c_const = no; then
    
    $as_echo "#define const /**/" >>confdefs.h
    
    fi
    
    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
    if test "x$ac_cv_type_size_t" = xyes; then :
    
    else
    
    cat >>confdefs.h <<_ACEOF
    #define size_t unsigned int
    _ACEOF
    
    fi
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
    $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
    if ${ac_cv_header_time+:} false; then :
      $as_echo_n "(cached) " >&6
    else
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    #include <sys/types.h>
    #include <sys/time.h>
    #include <time.h>
    
    int
    main ()
    {
    if ((struct tm *) 0)
    return 0;
      ;
      return 0;
    }
    _ACEOF
    if ac_fn_c_try_compile "$LINENO"; then :
      ac_cv_header_time=yes
    else
      ac_cv_header_time=no
    fi
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
    $as_echo "$ac_cv_header_time" >&6; }
    if test $ac_cv_header_time = yes; then
    
    $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
    
    fi
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
    $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
    if ${ac_cv_struct_tm+:} false; then :
      $as_echo_n "(cached) " >&6
    else
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    #include <sys/types.h>
    #include <time.h>
    
    int
    main ()
    {
    struct tm tm;
    				     int *p = &tm.tm_sec;
    				     return !p;
      ;
      return 0;
    }
    _ACEOF
    if ac_fn_c_try_compile "$LINENO"; then :
      ac_cv_struct_tm=time.h
    else
      ac_cv_struct_tm=sys/time.h
    fi
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
    $as_echo "$ac_cv_struct_tm" >&6; }
    if test $ac_cv_struct_tm = sys/time.h; then
    
    $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
    
    fi
    
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
    $as_echo_n "checking for working volatile... " >&6; }
    if ${ac_cv_c_volatile+:} false; then :
      $as_echo_n "(cached) " >&6
    else
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    /* end confdefs.h.  */
    
    int
    main ()
    {
    
    volatile int x;
    int * volatile y = (int *) 0;
    return !x && !y;
      ;
      return 0;
    }
    _ACEOF
    if ac_fn_c_try_compile "$LINENO"; then :
      ac_cv_c_volatile=yes
    else
      ac_cv_c_volatile=no
    fi
    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
    $as_echo "$ac_cv_c_volatile" >&6; }
    if test $ac_cv_c_volatile = no; then
    
    $as_echo "#define volatile /**/" >>confdefs.h
    
    fi
    
    
    # Checks for library functions.
    #AC_PROG_GCC_TRADITIONAL
    #AC_FUNC_MKTIME
    #AC_FUNC_SELECT_ARGTYPES
    #AC_FUNC_STRFTIME
    #AC_FUNC_STRTOD
    #AC_CHECK_FUNCS([ftime gethostbyname gettimeofday localtime_r memset select socket strchr strerror strstr strtoull])
    
    #
    # save the configure arguments
    #
    CONFIGURE_OPTIONS="$ac_configure_args"
    
    
     if false; then
      DEVICE_DANUBE_TRUE=
      DEVICE_DANUBE_FALSE='#'
    else
      DEVICE_DANUBE_TRUE='#'
      DEVICE_DANUBE_FALSE=
    fi
    
     if false; then
      DEVICE_VRX_TRUE=
      DEVICE_VRX_FALSE='#'
    else
      DEVICE_VRX_TRUE='#'
      DEVICE_VRX_FALSE=
    fi