home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gdb-4.16-base.tgz / gdb-4.16-base.tar / fsf / gdb / utils / sparclite / configure < prev    next >
Text File  |  1995-07-29  |  35KB  |  1,198 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.3 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14.  
  15. # Initialize some variables set by options.
  16. # The variables have the same names as the options, with
  17. # dashes changed to underlines.
  18. build=NONE
  19. cache_file=./config.cache
  20. exec_prefix=NONE
  21. host=NONE
  22. no_create=
  23. nonopt=NONE
  24. no_recursion=
  25. prefix=NONE
  26. program_prefix=NONE
  27. program_suffix=NONE
  28. program_transform_name=s,x,x,
  29. silent=
  30. site=
  31. srcdir=
  32. target=NONE
  33. verbose=
  34. x_includes=NONE
  35. x_libraries=NONE
  36.  
  37. # Initialize some other variables.
  38. subdirs=
  39.  
  40. ac_prev=
  41. for ac_option
  42. do
  43.  
  44.   # If the previous option needs an argument, assign it.
  45.   if test -n "$ac_prev"; then
  46.     eval "$ac_prev=\$ac_option"
  47.     ac_prev=
  48.     continue
  49.   fi
  50.  
  51.   case "$ac_option" in
  52.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  53.   *) ac_optarg= ;;
  54.   esac
  55.  
  56.   # Accept the important Cygnus configure options, so we can diagnose typos.
  57.  
  58.   case "$ac_option" in
  59.  
  60.   -build | --build | --buil | --bui | --bu | --b)
  61.     ac_prev=build ;;
  62.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  63.     build="$ac_optarg" ;;
  64.  
  65.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  66.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  67.     ac_prev=cache_file ;;
  68.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  69.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  70.     cache_file="$ac_optarg" ;;
  71.  
  72.   -disable-* | --disable-*)
  73.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  74.     # Reject names that are not valid shell variable names.
  75.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  76.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  77.     fi
  78.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  79.     eval "enable_${ac_feature}=no" ;;
  80.  
  81.   -enable-* | --enable-*)
  82.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  83.     # Reject names that are not valid shell variable names.
  84.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  85.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  86.     fi
  87.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  88.     case "$ac_option" in
  89.       *=*) ;;
  90.       *) ac_optarg=yes ;;
  91.     esac
  92.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  93.  
  94.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  95.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  96.   | --exec | --exe | --ex)
  97.     ac_prev=exec_prefix ;;
  98.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  99.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  100.   | --exec=* | --exe=* | --ex=*)
  101.     exec_prefix="$ac_optarg" ;;
  102.  
  103.   -gas | --gas | --ga | --g)
  104.     # Obsolete; use --with-gas.
  105.     with_gas=yes ;;
  106.  
  107.   -help | --help | --hel | --he)
  108.     # Omit some internal or obsolete options to make the list less imposing.
  109.     # This message is too long to be a string in the A/UX 3.1 sh.
  110.     cat << EOF
  111. Usage: configure [options] [host]
  112. Options: [defaults in brackets after descriptions]
  113. Configuration:
  114.   --cache-file=FILE       cache test results in FILE
  115.   --help                  print this message
  116.   --no-create             do not create output files
  117.   --quiet, --silent       do not print \`checking...' messages
  118.   --version               print the version of autoconf that created configure
  119. Directory and file names:
  120.   --prefix=PREFIX         install architecture-independent files in PREFIX
  121.                           [$ac_default_prefix]
  122.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  123.                           [same as prefix]
  124.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  125.   --program-prefix=PREFIX prepend PREFIX to installed program names
  126.   --program-suffix=SUFFIX append SUFFIX to installed program names
  127.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  128. Host type:
  129.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  130.   --host=HOST             configure for HOST [guessed]
  131.   --target=TARGET         configure for TARGET [TARGET=HOST]
  132. Features and packages:
  133.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  134.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  135.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  136.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  137.   --x-includes=DIR        X include files are in DIR
  138.   --x-libraries=DIR       X library files are in DIR
  139. --enable and --with options recognized:$ac_help
  140. EOF
  141.     exit 0 ;;
  142.  
  143.   -host | --host | --hos | --ho)
  144.     ac_prev=host ;;
  145.   -host=* | --host=* | --hos=* | --ho=*)
  146.     host="$ac_optarg" ;;
  147.  
  148.   -nfp | --nfp | --nf)
  149.     # Obsolete; use --without-fp.
  150.     with_fp=no ;;
  151.  
  152.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  153.   | --no-cr | --no-c)
  154.     no_create=yes ;;
  155.  
  156.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  157.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  158.     no_recursion=yes ;;
  159.  
  160.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  161.     ac_prev=prefix ;;
  162.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  163.     prefix="$ac_optarg" ;;
  164.  
  165.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  166.   | --program-pre | --program-pr | --program-p)
  167.     ac_prev=program_prefix ;;
  168.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  169.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  170.     program_prefix="$ac_optarg" ;;
  171.  
  172.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  173.   | --program-suf | --program-su | --program-s)
  174.     ac_prev=program_suffix ;;
  175.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  176.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  177.     program_suffix="$ac_optarg" ;;
  178.  
  179.   -program-transform-name | --program-transform-name \
  180.   | --program-transform-nam | --program-transform-na \
  181.   | --program-transform-n | --program-transform- \
  182.   | --program-transform | --program-transfor \
  183.   | --program-transfo | --program-transf \
  184.   | --program-trans | --program-tran \
  185.   | --progr-tra | --program-tr | --program-t)
  186.     ac_prev=program_transform_name ;;
  187.   -program-transform-name=* | --program-transform-name=* \
  188.   | --program-transform-nam=* | --program-transform-na=* \
  189.   | --program-transform-n=* | --program-transform-=* \
  190.   | --program-transform=* | --program-transfor=* \
  191.   | --program-transfo=* | --program-transf=* \
  192.   | --program-trans=* | --program-tran=* \
  193.   | --progr-tra=* | --program-tr=* | --program-t=*)
  194.     program_transform_name="$ac_optarg" ;;
  195.  
  196.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  197.   | -silent | --silent | --silen | --sile | --sil)
  198.     silent=yes ;;
  199.  
  200.   -site | --site | --sit)
  201.     ac_prev=site ;;
  202.   -site=* | --site=* | --sit=*)
  203.     site="$ac_optarg" ;;
  204.  
  205.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  206.     ac_prev=srcdir ;;
  207.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  208.     srcdir="$ac_optarg" ;;
  209.  
  210.   -target | --target | --targe | --targ | --tar | --ta | --t)
  211.     ac_prev=target ;;
  212.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  213.     target="$ac_optarg" ;;
  214.  
  215.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  216.     verbose=yes ;;
  217.  
  218.   -version | --version | --versio | --versi | --vers)
  219.     echo "configure generated by autoconf version 2.3"
  220.     exit 0 ;;
  221.  
  222.   -with-* | --with-*)
  223.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  224.     # Reject names that are not valid shell variable names.
  225.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  226.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  227.     fi
  228.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  229.     case "$ac_option" in
  230.       *=*) ;;
  231.       *) ac_optarg=yes ;;
  232.     esac
  233.     eval "with_${ac_package}='$ac_optarg'" ;;
  234.  
  235.   -without-* | --without-*)
  236.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  237.     # Reject names that are not valid shell variable names.
  238.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  239.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  240.     fi
  241.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  242.     eval "with_${ac_package}=no" ;;
  243.  
  244.   --x)
  245.     # Obsolete; use --with-x.
  246.     with_x=yes ;;
  247.  
  248.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  249.   | --x-incl | --x-inc | --x-in | --x-i)
  250.     ac_prev=x_includes ;;
  251.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  252.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  253.     x_includes="$ac_optarg" ;;
  254.  
  255.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  256.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  257.     ac_prev=x_libraries ;;
  258.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  259.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  260.     x_libraries="$ac_optarg" ;;
  261.  
  262.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  263.     ;;
  264.  
  265.   *) 
  266.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  267.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  268.     fi
  269.     if test "x$nonopt" != xNONE; then
  270.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  271.     fi
  272.     nonopt="$ac_option"
  273.     ;;
  274.  
  275.   esac
  276. done
  277.  
  278. if test -n "$ac_prev"; then
  279.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  280. fi
  281.  
  282. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  283.  
  284. # File descriptor usage:
  285. # 0 standard input
  286. # 1 file creation
  287. # 2 errors and warnings
  288. # 3 some systems may open it to /dev/tty
  289. # 4 used on the Kubota Titan
  290. # 6 checking for... messages and results
  291. # 5 compiler messages saved in config.log
  292. if test "$silent" = yes; then
  293.   exec 6>/dev/null
  294. else
  295.   exec 6>&1
  296. fi
  297. exec 5>./config.log
  298.  
  299. echo "\
  300. This file contains any messages produced by compilers while
  301. running configure, to aid debugging if configure makes a mistake.
  302. " 1>&5
  303.  
  304. # Strip out --no-create and --no-recursion so they do not pile up.
  305. # Also quote any args containing shell metacharacters.
  306. ac_configure_args=
  307. for ac_arg
  308. do
  309.   case "$ac_arg" in
  310.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  311.   | --no-cr | --no-c) ;;
  312.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  313.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  314.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  315.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  316.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  317.   esac
  318. done
  319.  
  320. # NLS nuisances.
  321. # Only set LANG and LC_ALL to C if already set.
  322. # These must not be set unconditionally because not all systems understand
  323. # e.g. LANG=C (notably SCO).
  324. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  325. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  326.  
  327. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  328. rm -rf conftest* confdefs.h
  329. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  330. echo > confdefs.h
  331.  
  332. # A filename unique to this package, relative to the directory that
  333. # configure is in, which we can look for to find out if srcdir is correct.
  334. ac_unique_file=aload.c
  335.  
  336. # Find the source files, if location was not specified.
  337. if test -z "$srcdir"; then
  338.   ac_srcdir_defaulted=yes
  339.   # Try the directory containing this script, then its parent.
  340.   ac_prog=$0
  341.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  342.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  343.   srcdir=$ac_confdir
  344.   if test ! -r $srcdir/$ac_unique_file; then
  345.     srcdir=..
  346.   fi
  347. else
  348.   ac_srcdir_defaulted=no
  349. fi
  350. if test ! -r $srcdir/$ac_unique_file; then
  351.   if test "$ac_srcdir_defaulted" = yes; then
  352.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  353.   else
  354.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  355.   fi
  356. fi
  357. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  358.  
  359. # Prefer explicitly selected file to automatically selected ones.
  360. if test -z "$CONFIG_SITE"; then
  361.   if test "x$prefix" != xNONE; then
  362.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  363.   else
  364.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  365.   fi
  366. fi
  367. for ac_site_file in $CONFIG_SITE; do
  368.   if test -r "$ac_site_file"; then
  369.     echo "loading site script $ac_site_file"
  370.     . "$ac_site_file"
  371.   fi
  372. done
  373.  
  374. if test -r "$cache_file"; then
  375.   echo "loading cache $cache_file"
  376.   . $cache_file
  377. else
  378.   echo "creating cache $cache_file"
  379.   > $cache_file
  380. fi
  381.  
  382. ac_ext=c
  383. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  384. ac_cpp='$CPP $CPPFLAGS'
  385. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  386. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  387.  
  388. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  389.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  390.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  391.     ac_n= ac_c='
  392. ' ac_t='    '
  393.   else
  394.     ac_n=-n ac_c= ac_t=
  395.   fi
  396. else
  397.   ac_n= ac_c='\c' ac_t=
  398. fi
  399.  
  400.  
  401.  
  402. CC=${CC-cc}
  403. # Extract the first word of "gcc", so it can be a program name with args.
  404. set dummy gcc; ac_word=$2
  405. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  406. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  407.   echo $ac_n "(cached) $ac_c" 1>&6
  408. else
  409.   if test -n "$CC"; then
  410.   ac_cv_prog_CC="$CC" # Let the user override the test.
  411. else
  412.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  413.   for ac_dir in $PATH; do
  414.     test -z "$ac_dir" && ac_dir=.
  415.     if test -f $ac_dir/$ac_word; then
  416.       ac_cv_prog_CC="gcc"
  417.       break
  418.     fi
  419.   done
  420.   IFS="$ac_save_ifs"
  421.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  422. fi
  423. fi
  424. CC="$ac_cv_prog_CC"
  425. if test -n "$CC"; then
  426.   echo "$ac_t""$CC" 1>&6
  427. else
  428.   echo "$ac_t""no" 1>&6
  429. fi
  430.  
  431.  
  432. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  433. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  434.   echo $ac_n "(cached) $ac_c" 1>&6
  435. else
  436.   cat > conftest.c <<EOF
  437. #ifdef __GNUC__
  438.   yes;
  439. #endif
  440. EOF
  441. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  442.   ac_cv_prog_gcc=yes
  443. else
  444.   ac_cv_prog_gcc=no
  445. fi
  446. fi
  447. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  448. if test $ac_cv_prog_gcc = yes; then
  449.   GCC=yes
  450.   if test "${CFLAGS+set}" != set; then
  451.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  452. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  453.   echo $ac_n "(cached) $ac_c" 1>&6
  454. else
  455.   echo 'void f(){}' > conftest.c
  456. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  457.   ac_cv_prog_gcc_g=yes
  458. else
  459.   ac_cv_prog_gcc_g=no
  460. fi
  461. rm -f conftest*
  462.  
  463. fi
  464.     echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  465.     if test $ac_cv_prog_gcc_g = yes; then
  466.       CFLAGS="-g -O"
  467.     else
  468.       CFLAGS="-O"
  469.     fi
  470.   fi
  471. else
  472.   GCC=
  473.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  474. fi
  475.  
  476. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  477. # On Suns, sometimes $CPP names a directory.
  478. if test -n "$CPP" && test -d "$CPP"; then
  479.   CPP=
  480. fi
  481. if test -z "$CPP"; then
  482. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  483.   echo $ac_n "(cached) $ac_c" 1>&6
  484. else
  485.     # This must be in double quotes, not single quotes, because CPP may get
  486.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  487.   CPP="${CC-cc} -E"
  488.   # On the NeXT, cc -E runs the code through the compiler's parser,
  489.   # not just through cpp.
  490.   cat > conftest.$ac_ext <<EOF
  491. #line 492 "configure"
  492. #include "confdefs.h"
  493. #include <assert.h>
  494. Syntax Error
  495. EOF
  496. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  497. ac_err=`grep -v '^ *+' conftest.out`
  498. if test -z "$ac_err"; then
  499.   :
  500. else
  501.   echo "$ac_err" >&5
  502.   rm -rf conftest*
  503.   CPP="${CC-cc} -E -traditional-cpp"
  504.   cat > conftest.$ac_ext <<EOF
  505. #line 506 "configure"
  506. #include "confdefs.h"
  507. #include <assert.h>
  508. Syntax Error
  509. EOF
  510. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  511. ac_err=`grep -v '^ *+' conftest.out`
  512. if test -z "$ac_err"; then
  513.   :
  514. else
  515.   echo "$ac_err" >&5
  516.   rm -rf conftest*
  517.   CPP=/lib/cpp
  518. fi
  519. rm -f conftest*
  520. fi
  521. rm -f conftest*
  522.   ac_cv_prog_CPP="$CPP"
  523. fi
  524. fi
  525. CPP="$ac_cv_prog_CPP"
  526. echo "$ac_t""$CPP" 1>&6
  527.  
  528. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  529. cat > conftest.$ac_ext <<EOF
  530. #line 531 "configure"
  531. #include "confdefs.h"
  532. #ifdef _AIX
  533.   yes
  534. #endif
  535.  
  536. EOF
  537. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  538.   egrep "yes" >/dev/null 2>&1; then
  539.   rm -rf conftest*
  540.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  541. #define _ALL_SOURCE 1
  542. EOF
  543.  
  544. else
  545.   rm -rf conftest*
  546.   echo "$ac_t""no" 1>&6
  547. fi
  548. rm -f conftest*
  549.  
  550.  
  551. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  552. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  553. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  554.   echo $ac_n "(cached) $ac_c" 1>&6
  555. else
  556.   cat > conftest.$ac_ext <<EOF
  557. #line 558 "configure"
  558. #include "confdefs.h"
  559. #include <minix/config.h>
  560. EOF
  561. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  562. ac_err=`grep -v '^ *+' conftest.out`
  563. if test -z "$ac_err"; then
  564.   rm -rf conftest*
  565.   eval "ac_cv_header_$ac_safe=yes"
  566. else
  567.   echo "$ac_err" >&5
  568.   rm -rf conftest*
  569.   eval "ac_cv_header_$ac_safe=no"
  570. fi
  571. rm -f conftest*
  572. fi
  573. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  574.   echo "$ac_t""yes" 1>&6
  575.   MINIX=yes
  576. else
  577.   echo "$ac_t""no" 1>&6
  578. MINIX=
  579. fi
  580.  
  581. if test "$MINIX" = yes; then
  582.   cat >> confdefs.h <<\EOF
  583. #define _POSIX_SOURCE 1
  584. EOF
  585.  
  586.   cat >> confdefs.h <<\EOF
  587. #define _POSIX_1_SOURCE 2
  588. EOF
  589.  
  590.   cat >> confdefs.h <<\EOF
  591. #define _MINIX 1
  592. EOF
  593.  
  594. fi
  595.  
  596. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  597. if test -d /etc/conf/kconfig.d &&
  598.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  599. then
  600.   echo "$ac_t""yes" 1>&6
  601.   ISC=yes # If later tests want to check for ISC.
  602.   cat >> confdefs.h <<\EOF
  603. #define _POSIX_SOURCE 1
  604. EOF
  605.  
  606.   if test "$GCC" = yes; then
  607.     CC="$CC -posix"
  608.   else
  609.     CC="$CC -Xp"
  610.   fi
  611. else
  612.   echo "$ac_t""no" 1>&6
  613.   ISC=
  614. fi
  615.  
  616.  
  617. ac_aux_dir=
  618. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  619.   if test -f $ac_dir/install-sh; then
  620.     ac_aux_dir=$ac_dir
  621.     ac_install_sh="$ac_aux_dir/install-sh -c"
  622.     break
  623.   elif test -f $ac_dir/install.sh; then
  624.     ac_aux_dir=$ac_dir
  625.     ac_install_sh="$ac_aux_dir/install.sh -c"
  626.     break
  627.   fi
  628. done
  629. if test -z "$ac_aux_dir"; then
  630.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  631. fi
  632. ac_config_guess=$ac_aux_dir/config.guess
  633. ac_config_sub=$ac_aux_dir/config.sub
  634. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  635.  
  636. # Find a good install program.  We prefer a C program (faster),
  637. # so one script is as good as another.  But avoid the broken or
  638. # incompatible versions:
  639. # SysV /etc/install, /usr/sbin/install
  640. # SunOS /usr/etc/install
  641. # IRIX /sbin/install
  642. # AIX /bin/install
  643. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  644. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  645. # ./install, which can be erroneously created by make from ./install.sh.
  646. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  647. if test -z "$INSTALL"; then
  648. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  649.   echo $ac_n "(cached) $ac_c" 1>&6
  650. else
  651.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  652.   for ac_dir in $PATH; do
  653.     # Account for people who put trailing slashes in PATH elements.
  654.     case "$ac_dir/" in
  655.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  656.     *)
  657.       # OSF1 and SCO ODT 3.0 have their own names for install.
  658.       for ac_prog in ginstall installbsd scoinst install; do
  659.         if test -f $ac_dir/$ac_prog; then
  660.       if test $ac_prog = install &&
  661.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  662.         # AIX install.  It has an incompatible calling convention.
  663.         # OSF/1 installbsd also uses dspmsg, but is usable.
  664.         :
  665.       else
  666.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  667.         break 2
  668.       fi
  669.     fi
  670.       done
  671.       ;;
  672.     esac
  673.   done
  674.   IFS="$ac_save_ifs"
  675.   # As a last resort, use the slow shell script.
  676.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  677. fi
  678.   INSTALL="$ac_cv_path_install"
  679. fi
  680. echo "$ac_t""$INSTALL" 1>&6
  681.  
  682. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  683. # It thinks the first close brace ends the variable substitution.
  684. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  685.  
  686. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  687.  
  688.  
  689. ac_aux_dir=
  690. for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
  691.   if test -f $ac_dir/install-sh; then
  692.     ac_aux_dir=$ac_dir
  693.     ac_install_sh="$ac_aux_dir/install-sh -c"
  694.     break
  695.   elif test -f $ac_dir/install.sh; then
  696.     ac_aux_dir=$ac_dir
  697.     ac_install_sh="$ac_aux_dir/install.sh -c"
  698.     break
  699.   fi
  700. done
  701. if test -z "$ac_aux_dir"; then
  702.   { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
  703. fi
  704. ac_config_guess=$ac_aux_dir/config.guess
  705. ac_config_sub=$ac_aux_dir/config.sub
  706. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  707.  
  708.  
  709. # Do some error checking and defaulting for the host and target type.
  710. # The inputs are:
  711. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  712. #
  713. # The rules are:
  714. # 1. You are not allowed to specify --host, --target, and nonopt at the
  715. #    same time. 
  716. # 2. Host defaults to nonopt.
  717. # 3. If nonopt is not specified, then host defaults to the current host,
  718. #    as determined by config.guess.
  719. # 4. Target and build default to nonopt.
  720. # 5. If nonopt is not specified, then target and build default to host.
  721.  
  722. # The aliases save the names the user supplied, while $host etc.
  723. # will get canonicalized.
  724. case $host---$target---$nonopt in
  725. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  726. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  727. esac
  728.  
  729.  
  730. # Make sure we can run config.sub.
  731. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  732. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  733. fi
  734.  
  735. echo $ac_n "checking host system type""... $ac_c" 1>&6
  736.  
  737. host_alias=$host
  738. case "$host_alias" in
  739. NONE)
  740.   case $nonopt in
  741.   NONE)
  742.     if host_alias=`$ac_config_guess`; then :
  743.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  744.     fi ;;
  745.   *) host_alias=$nonopt ;;
  746.   esac ;;
  747. esac
  748.  
  749. host=`$ac_config_sub $host_alias`
  750. host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  751. host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  752. host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  753. echo "$ac_t""$host" 1>&6
  754.  
  755. echo $ac_n "checking target system type""... $ac_c" 1>&6
  756.  
  757. target_alias=$target
  758. case "$target_alias" in
  759. NONE)
  760.   case $nonopt in
  761.   NONE) target_alias=$host_alias ;;
  762.   *) target_alias=$nonopt ;;
  763.   esac ;;
  764. esac
  765.  
  766. target=`$ac_config_sub $target_alias`
  767. target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  768. target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  769. target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  770. echo "$ac_t""$target" 1>&6
  771.  
  772. echo $ac_n "checking build system type""... $ac_c" 1>&6
  773.  
  774. build_alias=$build
  775. case "$build_alias" in
  776. NONE)
  777.   case $nonopt in
  778.   NONE) build_alias=$host_alias ;;
  779.   *) build_alias=$nonopt ;;
  780.   esac ;;
  781. esac
  782.  
  783. build=`$ac_config_sub $build_alias`
  784. build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  785. build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  786. build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  787. echo "$ac_t""$build" 1>&6
  788.  
  789. test "$host_alias" != "$target_alias" &&
  790.   test "$program_prefix$program_suffix$program_transform_name" = \
  791.     NONENONEs,x,x, &&
  792.   program_prefix=${target_alias}-
  793.  
  794. if test "$program_transform_name" = s,x,x,; then
  795.   program_transform_name=
  796. else
  797.   # Double any \ or $.
  798.   echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
  799.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  800.   rm -f conftestsed
  801. fi
  802. test "$program_prefix" != NONE &&
  803.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  804. # Use a double $ so make ignores it.
  805. test "$program_suffix" != NONE &&
  806.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  807.  
  808. # sed with no file args requires a program.
  809. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  810.  
  811.  
  812. ac_safe=`echo "termios.h" | tr './\055' '___'`
  813. echo $ac_n "checking for termios.h""... $ac_c" 1>&6
  814. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  815.   echo $ac_n "(cached) $ac_c" 1>&6
  816. else
  817.   cat > conftest.$ac_ext <<EOF
  818. #line 819 "configure"
  819. #include "confdefs.h"
  820. #include <termios.h>
  821. EOF
  822. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  823. ac_err=`grep -v '^ *+' conftest.out`
  824. if test -z "$ac_err"; then
  825.   rm -rf conftest*
  826.   eval "ac_cv_header_$ac_safe=yes"
  827. else
  828.   echo "$ac_err" >&5
  829.   rm -rf conftest*
  830.   eval "ac_cv_header_$ac_safe=no"
  831. fi
  832. rm -f conftest*
  833. fi
  834. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  835.   echo "$ac_t""yes" 1>&6
  836.   cat >> confdefs.h <<\EOF
  837. #define HAVE_TERMIOS 1
  838. EOF
  839.  termio=termios
  840. else
  841.   echo "$ac_t""no" 1>&6
  842. fi
  843.  
  844. ac_safe=`echo "termio.h" | tr './\055' '___'`
  845. echo $ac_n "checking for termio.h""... $ac_c" 1>&6
  846. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  847.   echo $ac_n "(cached) $ac_c" 1>&6
  848. else
  849.   cat > conftest.$ac_ext <<EOF
  850. #line 851 "configure"
  851. #include "confdefs.h"
  852. #include <termio.h>
  853. EOF
  854. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  855. ac_err=`grep -v '^ *+' conftest.out`
  856. if test -z "$ac_err"; then
  857.   rm -rf conftest*
  858.   eval "ac_cv_header_$ac_safe=yes"
  859. else
  860.   echo "$ac_err" >&5
  861.   rm -rf conftest*
  862.   eval "ac_cv_header_$ac_safe=no"
  863. fi
  864. rm -f conftest*
  865. fi
  866. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  867.   echo "$ac_t""yes" 1>&6
  868.   cat >> confdefs.h <<\EOF
  869. #define HAVE_TERMIO 1
  870. EOF
  871.  termio=termio
  872. else
  873.   echo "$ac_t""no" 1>&6
  874. fi
  875.  
  876. ac_safe=`echo "sgtty.h" | tr './\055' '___'`
  877. echo $ac_n "checking for sgtty.h""... $ac_c" 1>&6
  878. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  879.   echo $ac_n "(cached) $ac_c" 1>&6
  880. else
  881.   cat > conftest.$ac_ext <<EOF
  882. #line 883 "configure"
  883. #include "confdefs.h"
  884. #include <sgtty.h>
  885. EOF
  886. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  887. ac_err=`grep -v '^ *+' conftest.out`
  888. if test -z "$ac_err"; then
  889.   rm -rf conftest*
  890.   eval "ac_cv_header_$ac_safe=yes"
  891. else
  892.   echo "$ac_err" >&5
  893.   rm -rf conftest*
  894.   eval "ac_cv_header_$ac_safe=no"
  895. fi
  896. rm -f conftest*
  897. fi
  898. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  899.   echo "$ac_t""yes" 1>&6
  900.   cat >> confdefs.h <<\EOF
  901. #define HAVE_SGTTY 1
  902. EOF
  903.  termio=sgtty
  904. else
  905.   echo "$ac_t""no" 1>&6
  906. fi
  907.  
  908.  
  909. # disable standalone load programs on DOS/GO32 hosts
  910. PROGS="aload eload"
  911. case "${host}" in
  912. i[345]86-*-go32*)    
  913.     PROGS=""
  914.     ;;
  915. *)
  916. esac
  917.  
  918.  
  919. # check for networking libraries.
  920. NETLIBS=
  921. echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
  922. if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then
  923.   echo $ac_n "(cached) $ac_c" 1>&6
  924. else
  925.   ac_save_LIBS="$LIBS"
  926. LIBS="-lnsl  $LIBS"
  927. cat > conftest.$ac_ext <<EOF
  928. #line 929 "configure"
  929. #include "confdefs.h"
  930.  
  931. int main() { return 0; }
  932. int t() {
  933. t_accept()
  934. ; return 0; }
  935. EOF
  936. if eval $ac_link; then
  937.   rm -rf conftest*
  938.   eval "ac_cv_lib_nsl=yes"
  939. else
  940.   rm -rf conftest*
  941.   eval "ac_cv_lib_nsl=no"
  942. fi
  943. rm -f conftest*
  944. LIBS="$ac_save_LIBS"
  945.  
  946. fi
  947. if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
  948.   echo "$ac_t""yes" 1>&6
  949.   NETLIBS="$NETLIBS -lnsl"
  950. else
  951.   echo "$ac_t""no" 1>&6
  952. fi
  953.  
  954.  
  955. # -lsocket is required on some systems, but is broken on IRIX.
  956. if test "`(uname) 2> /dev/null`" != IRIX; then
  957.     echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
  958. if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
  959.   echo $ac_n "(cached) $ac_c" 1>&6
  960. else
  961.   ac_save_LIBS="$LIBS"
  962. LIBS="-lsocket  $LIBS"
  963. cat > conftest.$ac_ext <<EOF
  964. #line 965 "configure"
  965. #include "confdefs.h"
  966.  
  967. int main() { return 0; }
  968. int t() {
  969. socket()
  970. ; return 0; }
  971. EOF
  972. if eval $ac_link; then
  973.   rm -rf conftest*
  974.   eval "ac_cv_lib_socket=yes"
  975. else
  976.   rm -rf conftest*
  977.   eval "ac_cv_lib_socket=no"
  978. fi
  979. rm -f conftest*
  980. LIBS="$ac_save_LIBS"
  981.  
  982. fi
  983. if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
  984.   echo "$ac_t""yes" 1>&6
  985.   NETLIBS="$NETLIBS -lsocket"
  986. else
  987.   echo "$ac_t""no" 1>&6
  988. fi
  989.  
  990. fi
  991.  
  992.  
  993. trap '' 1 2 15
  994. cat > confcache <<\EOF
  995. # This file is a shell script that caches the results of configure
  996. # tests run on this system so they can be shared between configure
  997. # scripts and configure runs.  It is not useful on other systems.
  998. # If it contains results you don't want to keep, you may remove or edit it.
  999. #
  1000. # By default, configure uses ./config.cache as the cache file,
  1001. # creating it if it does not exist already.  You can give configure
  1002. # the --cache-file=FILE option to use a different cache file; that is
  1003. # what configure does when it calls configure scripts in
  1004. # subdirectories, so they share the cache.
  1005. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1006. # config.status only pays attention to the cache file if you give it the
  1007. # --recheck option to rerun configure.
  1008. #
  1009. EOF
  1010. # Ultrix sh set writes to stderr and can't be redirected directly,
  1011. # and sets the high bit in the cache file unless we assign to the vars.
  1012. (set) 2>&1 |
  1013.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1014.   >> confcache
  1015. if cmp -s $cache_file confcache; then
  1016.   :
  1017. else
  1018.   if test -w $cache_file; then
  1019.     echo "updating cache $cache_file"
  1020.     cat confcache > $cache_file
  1021.   else
  1022.     echo "not updating unwritable cache $cache_file"
  1023.   fi
  1024. fi
  1025. rm -f confcache
  1026.  
  1027. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1028.  
  1029. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1030. # Let make expand exec_prefix.
  1031. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1032.  
  1033. # Any assignment to VPATH causes Sun make to only execute
  1034. # the first set of double-colon rules, so remove it if not needed.
  1035. # If there is a colon in the path, we need to keep it.
  1036. if test "x$srcdir" = x.; then
  1037.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1038. fi
  1039.  
  1040. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1041.  
  1042. # Transform confdefs.h into DEFS.
  1043. # Protect against shell expansion while executing Makefile rules.
  1044. # Protect against Makefile macro expansion.
  1045. cat > conftest.defs <<\EOF
  1046. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  1047. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  1048. s%\[%\\&%g
  1049. s%\]%\\&%g
  1050. s%\$%$$%g
  1051. EOF
  1052. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1053. rm -f conftest.defs
  1054.  
  1055.  
  1056. # Without the "./", some shells look in PATH for config.status.
  1057. : ${CONFIG_STATUS=./config.status}
  1058.  
  1059. echo creating $CONFIG_STATUS
  1060. rm -f $CONFIG_STATUS
  1061. cat > $CONFIG_STATUS <<EOF
  1062. #! /bin/sh
  1063. # Generated automatically by configure.
  1064. # Run this file to recreate the current configuration.
  1065. # This directory was configured as follows,
  1066. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1067. #
  1068. # $0 $ac_configure_args
  1069. #
  1070. # Compiler output produced by configure, useful for debugging
  1071. # configure, is in ./config.log if it exists.
  1072.  
  1073. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1074. for ac_option
  1075. do
  1076.   case "\$ac_option" in
  1077.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1078.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1079.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1080.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1081.     echo "$CONFIG_STATUS generated by autoconf version 2.3"
  1082.     exit 0 ;;
  1083.   -help | --help | --hel | --he | --h)
  1084.     echo "\$ac_cs_usage"; exit 0 ;;
  1085.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1086.   esac
  1087. done
  1088.  
  1089. ac_given_srcdir=$srcdir
  1090. ac_given_INSTALL="$INSTALL"
  1091.  
  1092. trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1093.  
  1094. # Protect against being on the right side of a sed subst in config.status. 
  1095. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  1096.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1097. $ac_vpsub
  1098. $extrasub
  1099. s%@CFLAGS@%$CFLAGS%g
  1100. s%@CPPFLAGS@%$CPPFLAGS%g
  1101. s%@CXXFLAGS@%$CXXFLAGS%g
  1102. s%@DEFS@%$DEFS%g
  1103. s%@LDFLAGS@%$LDFLAGS%g
  1104. s%@LIBS@%$LIBS%g
  1105. s%@exec_prefix@%$exec_prefix%g
  1106. s%@prefix@%$prefix%g
  1107. s%@program_transform_name@%$program_transform_name%g
  1108. s%@CC@%$CC%g
  1109. s%@CPP@%$CPP%g
  1110. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1111. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1112. s%@host@%$host%g
  1113. s%@host_alias@%$host_alias%g
  1114. s%@host_cpu@%$host_cpu%g
  1115. s%@host_vendor@%$host_vendor%g
  1116. s%@host_os@%$host_os%g
  1117. s%@target@%$target%g
  1118. s%@target_alias@%$target_alias%g
  1119. s%@target_cpu@%$target_cpu%g
  1120. s%@target_vendor@%$target_vendor%g
  1121. s%@target_os@%$target_os%g
  1122. s%@build@%$build%g
  1123. s%@build_alias@%$build_alias%g
  1124. s%@build_cpu@%$build_cpu%g
  1125. s%@build_vendor@%$build_vendor%g
  1126. s%@build_os@%$build_os%g
  1127. s%@PROGS@%$PROGS%g
  1128. s%@NETLIBS@%$NETLIBS%g
  1129.  
  1130. CEOF
  1131. EOF
  1132. cat >> $CONFIG_STATUS <<EOF
  1133.  
  1134. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1135. EOF
  1136. cat >> $CONFIG_STATUS <<\EOF
  1137. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1138.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1139.   case "$ac_file" in
  1140.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1141.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1142.   *) ac_file_in="${ac_file}.in" ;;
  1143.   esac
  1144.  
  1145.   # Adjust relative srcdir, etc. for subdirectories.
  1146.  
  1147.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1148.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1149.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1150.     # The file is in a subdirectory.
  1151.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1152.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1153.     # A "../" for each directory in $ac_dir_suffix.
  1154.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1155.   else
  1156.     ac_dir_suffix= ac_dots=
  1157.   fi
  1158.  
  1159.   case "$ac_given_srcdir" in
  1160.   .)  srcdir=.
  1161.       if test -z "$ac_dots"; then top_srcdir=.
  1162.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1163.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1164.   *) # Relative path.
  1165.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1166.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1167.   esac
  1168.  
  1169.   case "$ac_given_INSTALL" in
  1170.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1171.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1172.   esac
  1173.   echo creating "$ac_file"
  1174.   rm -f "$ac_file"
  1175.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1176.   case "$ac_file" in
  1177.   *Makefile*) ac_comsub="1i\\
  1178. # $configure_input" ;;
  1179.   *) ac_comsub= ;;
  1180.   esac
  1181.   sed -e "$ac_comsub
  1182. s%@configure_input@%$configure_input%g
  1183. s%@srcdir@%$srcdir%g
  1184. s%@top_srcdir@%$top_srcdir%g
  1185. s%@INSTALL@%$INSTALL%g
  1186. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1187. fi; done
  1188. rm -f conftest.subs
  1189.  
  1190.  
  1191.  
  1192. exit 0
  1193. EOF
  1194. chmod +x $CONFIG_STATUS
  1195. rm -fr confdefs* $ac_clean_files
  1196. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1197.  
  1198.