home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / fontutils-0.6-src.lha / fontutils-0.6 / configure < prev    next >
Encoding:
Text File  |  1995-03-10  |  46.7 KB  |  1,682 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.2 
  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=/gnu
  13. # Any additions from configure.in:
  14. ac_default_prefix=/gnu
  15.  
  16. # Initialize some variables set by options.
  17. # The variables have the same names as the options, with
  18. # dashes changed to underlines.
  19. build=NONE
  20. cache_file=./config.cache
  21. exec_prefix=NONE
  22. host=NONE
  23. no_create=
  24. nonopt=NONE
  25. no_recursion=
  26. prefix=NONE
  27. program_prefix=NONE
  28. program_suffix=NONE
  29. program_transform_name=s,x,x,
  30. silent=
  31. site=
  32. srcdir=
  33. target=NONE
  34. verbose=
  35. x_includes=NONE
  36. x_libraries=NONE
  37.  
  38. # Initialize some other variables.
  39. subdirs=
  40.  
  41. ac_prev=
  42. for ac_option
  43. do
  44.  
  45.   # If the previous option needs an argument, assign it.
  46.   if test -n "$ac_prev"; then
  47.     eval "$ac_prev=\$ac_option"
  48.     ac_prev=
  49.     continue
  50.   fi
  51.  
  52.   case "$ac_option" in
  53.   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  54.   *) ac_optarg= ;;
  55.   esac
  56.  
  57.   # Accept the important Cygnus configure options, so we can diagnose typos.
  58.  
  59.   case "$ac_option" in
  60.  
  61.   -build | --build | --buil | --bui | --bu | --b)
  62.     ac_prev=build ;;
  63.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  64.     build="$ac_optarg" ;;
  65.  
  66.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  67.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  68.     ac_prev=cache_file ;;
  69.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  70.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  71.     cache_file="$ac_optarg" ;;
  72.  
  73.   -disable-* | --disable-*)
  74.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  75.     # Reject names that are not valid shell variable names.
  76.     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  77.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  78.     fi
  79.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  80.     eval "enable_${ac_feature}=no" ;;
  81.  
  82.   -enable-* | --enable-*)
  83.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  84.     # Reject names that are not valid shell variable names.
  85.     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  86.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  87.     fi
  88.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  89.     case "$ac_option" in
  90.       *=*) ;;
  91.       *) ac_optarg=yes ;;
  92.     esac
  93.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  94.  
  95.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  96.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  97.   | --exec | --exe | --ex)
  98.     ac_prev=exec_prefix ;;
  99.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  100.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  101.   | --exec=* | --exe=* | --ex=*)
  102.     exec_prefix="$ac_optarg" ;;
  103.  
  104.   -gas | --gas | --ga | --g)
  105.     # Obsolete; use --with-gas.
  106.     with_gas=yes ;;
  107.  
  108.   -help | --help | --hel | --he)
  109.     # Omit some internal or obsolete options to make the list less imposing.
  110.     # This message is too long to be a string in the A/UX 3.1 sh.
  111.     cat << EOF
  112. Usage: configure [options] [host]
  113. Options: [defaults in brackets after descriptions]
  114. Configuration:
  115.   --cache-file=FILE       cache test results in FILE
  116.   --help                  print this message
  117.   --no-create             do not create output files
  118.   --quiet, --silent       do not print \`checking...' messages
  119.   --version               print the version of autoconf that created configure
  120. Directory and file names:
  121.   --prefix=PREFIX         install architecture-independent files in PREFIX
  122.                           [$ac_default_prefix]
  123.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  124.                           [same as prefix]
  125.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  126.   --program-prefix=PREFIX prepend PREFIX to installed program names
  127.   --program-suffix=SUFFIX append SUFFIX to installed program names
  128.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  129. Host type:
  130.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  131.   --host=HOST             configure for HOST [guessed]
  132.   --target=TARGET         configure for TARGET [TARGET=HOST]
  133. Features and packages:
  134.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  135.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  136.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  137.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  138.   --x-includes=DIR        X include files are in DIR
  139.   --x-libraries=DIR       X library files are in DIR
  140. --enable and --with options recognized:$ac_help
  141. EOF
  142.     exit 0 ;;
  143.  
  144.   -host | --host | --hos | --ho)
  145.     ac_prev=host ;;
  146.   -host=* | --host=* | --hos=* | --ho=*)
  147.     host="$ac_optarg" ;;
  148.  
  149.   -nfp | --nfp | --nf)
  150.     # Obsolete; use --without-fp.
  151.     with_fp=no ;;
  152.  
  153.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  154.   | --no-cr | --no-c)
  155.     no_create=yes ;;
  156.  
  157.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  158.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  159.     no_recursion=yes ;;
  160.  
  161.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  162.     ac_prev=prefix ;;
  163.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  164.     prefix="$ac_optarg" ;;
  165.  
  166.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  167.   | --program-pre | --program-pr | --program-p)
  168.     ac_prev=program_prefix ;;
  169.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  170.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  171.     program_prefix="$ac_optarg" ;;
  172.  
  173.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  174.   | --program-suf | --program-su | --program-s)
  175.     ac_prev=program_suffix ;;
  176.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  177.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  178.     program_suffix="$ac_optarg" ;;
  179.  
  180.   -program-transform-name | --program-transform-name \
  181.   | --program-transform-nam | --program-transform-na \
  182.   | --program-transform-n | --program-transform- \
  183.   | --program-transform | --program-transfor \
  184.   | --program-transfo | --program-transf \
  185.   | --program-trans | --program-tran \
  186.   | --progr-tra | --program-tr | --program-t)
  187.     ac_prev=program_transform_name ;;
  188.   -program-transform-name=* | --program-transform-name=* \
  189.   | --program-transform-nam=* | --program-transform-na=* \
  190.   | --program-transform-n=* | --program-transform-=* \
  191.   | --program-transform=* | --program-transfor=* \
  192.   | --program-transfo=* | --program-transf=* \
  193.   | --program-trans=* | --program-tran=* \
  194.   | --progr-tra=* | --program-tr=* | --program-t=*)
  195.     program_transform_name="$ac_optarg" ;;
  196.  
  197.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  198.   | -silent | --silent | --silen | --sile | --sil)
  199.     silent=yes ;;
  200.  
  201.   -site | --site | --sit)
  202.     ac_prev=site ;;
  203.   -site=* | --site=* | --sit=*)
  204.     site="$ac_optarg" ;;
  205.  
  206.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  207.     ac_prev=srcdir ;;
  208.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  209.     srcdir="$ac_optarg" ;;
  210.  
  211.   -target | --target | --targe | --targ | --tar | --ta | --t)
  212.     ac_prev=target ;;
  213.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  214.     target="$ac_optarg" ;;
  215.  
  216.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  217.     verbose=yes ;;
  218.  
  219.   -version | --version | --versio | --versi | --vers)
  220.     echo "configure generated by autoconf version 2.2"
  221.     exit 0 ;;
  222.  
  223.   -with-* | --with-*)
  224.     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  225.     # Reject names that are not valid shell variable names.
  226.     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  227.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  228.     fi
  229.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  230.     case "$ac_option" in
  231.       *=*) ;;
  232.       *) ac_optarg=yes ;;
  233.     esac
  234.     eval "with_${ac_package}='$ac_optarg'" ;;
  235.  
  236.   -without-* | --without-*)
  237.     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  238.     # Reject names that are not valid shell variable names.
  239.     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  240.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  241.     fi
  242.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  243.     eval "with_${ac_package}=no" ;;
  244.  
  245.   --x)
  246.     # Obsolete; use --with-x.
  247.     with_x=yes ;;
  248.  
  249.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  250.   | --x-incl | --x-inc | --x-in | --x-i)
  251.     ac_prev=x_includes ;;
  252.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  253.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  254.     x_includes="$ac_optarg" ;;
  255.  
  256.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  257.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  258.     ac_prev=x_libraries ;;
  259.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  260.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  261.     x_libraries="$ac_optarg" ;;
  262.  
  263.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  264.     ;;
  265.  
  266.   *) 
  267.     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  268.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  269.     fi
  270.     if test "x$nonopt" != xNONE; then
  271.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  272.     fi
  273.     nonopt="$ac_option"
  274.     ;;
  275.  
  276.   esac
  277. done
  278.  
  279. if test -n "$ac_prev"; then
  280.   { echo "configure: error: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  281. fi
  282.  
  283. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  284.  
  285. # File descriptor usage:
  286. # 0 standard input
  287. # 1 file creation
  288. # 2 errors and warnings
  289. # 3 some systems may open it to /dev/tty
  290. # 4 used on the Kubota Titan
  291. # 6 checking for... messages and results
  292. # 5 compiler messages saved in config.log
  293. if test "$silent" = yes; then
  294.   exec 6>/dev/null
  295. else
  296.   exec 6>&1
  297. fi
  298. exec 5>./config.log
  299.  
  300. echo "\
  301. This file contains any messages produced by compilers while
  302. running configure, to aid debugging if configure makes a mistake.
  303. " 1>&5
  304.  
  305. # Strip out --no-create and --no-recursion so they do not pile up.
  306. # Also quote any args containing shell metacharacters.
  307. ac_configure_args=
  308. for ac_arg
  309. do
  310.   case "$ac_arg" in
  311.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  312.   | --no-cr | --no-c) ;;
  313.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  314.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  315.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  316.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  317.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  318.   esac
  319. done
  320.  
  321. # NLS nuisances.
  322. # Only set LANG and LC_ALL to C if already set.
  323. # These must not be set unconditionally because not all systems understand
  324. # e.g. LANG=C (notably SCO).
  325. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  326. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  327.  
  328. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  329. rm -rf conftest* confdefs.h
  330. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  331. /bin/echo > confdefs.h
  332.  
  333. # A filename unique to this package, relative to the directory that
  334. # configure is in, which we can look for to find out if srcdir is correct.
  335. ac_unique_file=limn/fit.c
  336.  
  337. # Find the source files, if location was not specified.
  338. if test -z "$srcdir"; then
  339.   ac_srcdir_defaulted=yes
  340.   # Try the directory containing this script, then its parent.
  341.   ac_prog=$0
  342.   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  343.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  344.   srcdir=$ac_confdir
  345.   if test ! -r $srcdir/$ac_unique_file; then
  346.     srcdir=..
  347.   fi
  348. else
  349.   ac_srcdir_defaulted=no
  350. fi
  351. if test ! -r $srcdir/$ac_unique_file; then
  352.   if test "$ac_srcdir_defaulted" = yes; then
  353.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  354.   else
  355.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  356.   fi
  357. fi
  358. srcdir=`/bin/echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  359.  
  360. # Prefer explicitly selected file to automatically selected ones.
  361. if test -z "$CONFIG_SITE"; then
  362.   if test "x$prefix" != xNONE; then
  363.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  364.   else
  365.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  366.   fi
  367. fi
  368. for ac_site_file in $CONFIG_SITE; do
  369.   if test -r "$ac_site_file"; then
  370.     echo "loading site script $ac_site_file"
  371.     . "$ac_site_file"
  372.   fi
  373. done
  374.  
  375. if test -r "$cache_file"; then
  376.   echo "loading cache $cache_file"
  377.   . $cache_file
  378. else
  379.   echo "creating cache $cache_file"
  380.   > $cache_file
  381. fi
  382.  
  383. ac_ext=c
  384. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  385. ac_cpp='$CPP $CPPFLAGS'
  386. ac_compile='${CC-cc} conftest.$ac_ext $CFLAGS $CPPFLAGS -c 1>&5 2>&5'
  387. ac_link='${CC-cc} conftest.$ac_ext $CFLAGS $CPPFLAGS $LDFLAGS -o conftest $LIBS 1>&5 2>&5'
  388.  
  389. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  390.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  391.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  392.     ac_n= ac_c='
  393. ' ac_t='    '
  394.   else
  395.     ac_n=-n ac_c= ac_t=
  396.   fi
  397. else
  398.   ac_n= ac_c='\c' ac_t=
  399. fi
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406. # We must have gcc.
  407. # Extract the first word of "gcc", so it can be a program name with args.
  408. set dummy gcc; ac_word=$2
  409. /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  410. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  411.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  412. else
  413.   if test -n "$CC"; then
  414.   ac_cv_prog_CC="$CC" # Let the user override the test.
  415. else
  416.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  417.   for ac_dir in $PATH; do
  418.     test -z "$ac_dir" && ac_dir=.
  419.     if test -f $ac_dir/$ac_word; then
  420.       ac_cv_prog_CC="gcc"
  421.       break
  422.     fi
  423.   done
  424.   IFS="$ac_save_ifs"
  425.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  426. fi
  427. fi
  428. CC="$ac_cv_prog_CC"
  429. if test -n "$CC"; then
  430.   /bin/echo "$ac_t""$CC" 1>&6
  431. else
  432.   /bin/echo "$ac_t""no" 1>&6
  433. fi
  434.  
  435.  
  436. /bin/echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  437. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  438.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  439. else
  440.   cat > conftest.c <<EOF
  441. #ifdef __GNUC__
  442.   yes;
  443. #endif
  444. EOF
  445. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  446.   ac_cv_prog_gcc=yes
  447. else
  448.   ac_cv_prog_gcc=no
  449. fi
  450. fi
  451. /bin/echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  452. if test $ac_cv_prog_gcc = yes; then
  453.   GCC=yes
  454.   if test "${CFLAGS+set}" != set; then
  455.     /bin/echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  456. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  457.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  458. else
  459.   echo 'void f(){}' > conftest.c
  460. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  461.   ac_cv_prog_gcc_g=yes
  462. else
  463.   ac_cv_prog_gcc_g=no
  464. fi
  465. rm -f conftest*
  466.  
  467. fi
  468.     /bin/echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  469.     if test $ac_cv_prog_gcc_g = yes; then
  470.       # Amiga hack - suppress automatically using -g for now
  471.       # Also default to using -O2
  472.       CFLAGS="-O2"
  473.     else
  474.       CFLAGS="-O2"
  475.     fi
  476.   fi
  477. else
  478.   GCC=
  479.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  480. fi
  481.  
  482. if test -n "$GCC"
  483. then :
  484. else
  485.   echo "Warning: these programs are written in GNU C,"
  486.   echo "so you need to have gcc."
  487. fi
  488. /bin/echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  489. # On Suns, sometimes $CPP names a directory.
  490. if test -n "$CPP" && test -d "$CPP"; then
  491.   CPP=
  492. fi
  493. if test -z "$CPP"; then
  494. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  495.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  496. else
  497.     # This must be in double quotes, not single quotes, because CPP may get
  498.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  499.   CPP="${CC-cc} -E"
  500.   # On the NeXT, cc -E runs the code through the compiler's parser,
  501.   # not just through cpp.
  502.   cat > conftest.$ac_ext <<EOF
  503. #line 504 "configure"
  504. #include "confdefs.h"
  505. #include <assert.h>
  506. Syntax Error
  507. EOF
  508. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  509. ac_err=`grep -v '^ *+' conftest.out`
  510. if test -z "$ac_err"; then
  511.   :
  512. else
  513.   /bin/echo "$ac_err" >&5
  514.   rm -rf conftest*
  515.   CPP="${CC-cc} -E -traditional-cpp"
  516.   cat > conftest.$ac_ext <<EOF
  517. #line 518 "configure"
  518. #include "confdefs.h"
  519. #include <assert.h>
  520. Syntax Error
  521. EOF
  522. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  523. ac_err=`grep -v '^ *+' conftest.out`
  524. if test -z "$ac_err"; then
  525.   :
  526. else
  527.   /bin/echo "$ac_err" >&5
  528.   rm -rf conftest*
  529.   CPP=/lib/cpp
  530. fi
  531. rm -f conftest*
  532. fi
  533. rm -f conftest*
  534.   ac_cv_prog_CPP="$CPP"
  535. fi
  536. fi
  537. CPP="$ac_cv_prog_CPP"
  538. /bin/echo "$ac_t""$CPP" 1>&6
  539.  
  540. if test $ac_cv_prog_gcc = yes; then
  541.   /bin/echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  542. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  543.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  544. else
  545.     ac_pattern="Autoconf.*'x'"
  546.   cat > conftest.$ac_ext <<EOF
  547. #line 548 "configure"
  548. #include "confdefs.h"
  549. #include <sgtty.h>
  550. Autoconf TIOCGETP
  551. EOF
  552. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  553.   egrep "$ac_pattern" >/dev/null 2>&1; then
  554.   rm -rf conftest*
  555.   ac_cv_prog_gcc_traditional=yes
  556. else
  557.   rm -rf conftest*
  558.   ac_cv_prog_gcc_traditional=no
  559. fi
  560. rm -f conftest*
  561.  
  562.  
  563.   if test $ac_cv_prog_gcc_traditional = no; then
  564.     cat > conftest.$ac_ext <<EOF
  565. #line 566 "configure"
  566. #include "confdefs.h"
  567. #include <termio.h>
  568. Autoconf TCGETA
  569. EOF
  570. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  571.   egrep "$ac_pattern" >/dev/null 2>&1; then
  572.   rm -rf conftest*
  573.   ac_cv_prog_gcc_traditional=yes
  574. fi
  575. rm -f conftest*
  576.  
  577.   fi
  578. fi
  579.   /bin/echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  580.   if test $ac_cv_prog_gcc_traditional = yes; then
  581.     CC="$CC -traditional"
  582.   fi
  583. fi
  584.  
  585. ac_aux_dir=
  586. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  587.   if test -f $ac_dir/install-sh; then
  588.     ac_aux_dir=$ac_dir
  589.     ac_install_sh="$ac_aux_dir/install-sh -c"
  590.     break
  591.   elif test -f $ac_dir/install.sh; then
  592.     ac_aux_dir=$ac_dir
  593.     ac_install_sh="$ac_aux_dir/install.sh -c"
  594.     break
  595.   fi
  596. done
  597. if test -z "$ac_aux_dir"; then
  598.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  599. fi
  600. ac_config_guess=$ac_aux_dir/config.guess
  601. ac_config_sub=$ac_aux_dir/config.sub
  602. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  603.  
  604. # Find a good install program.  We prefer a C program (faster),
  605. # so one script is as good as another.  But avoid the broken or
  606. # incompatible versions:
  607. # SysV /etc/install, /usr/sbin/install
  608. # SunOS /usr/etc/install
  609. # IRIX /sbin/install
  610. # AIX /bin/install
  611. # AmigaDOS /c/install
  612. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  613. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  614. # ./install, which can be erroneously created by make from ./install.sh.
  615. /bin/echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  616. if test -z "$INSTALL"; then
  617. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  618.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  619. else
  620.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  621.   for ac_dir in $PATH; do
  622.     # Account for people who put trailing slashes in PATH elements.
  623.     case "$ac_dir/" in
  624.     /|./|.//|/c/*) ;;
  625.     *)
  626.       # OSF1 and SCO ODT 3.0 have their own names for install.
  627.       for ac_prog in ginstall installbsd scoinst install; do
  628.         if test -f $ac_dir/$ac_prog; then
  629.       if test $ac_prog = install &&
  630.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  631.         # AIX install.  It has an incompatible calling convention.
  632.         # OSF/1 installbsd also uses dspmsg, but is usable.
  633.         :
  634.       else
  635.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  636.         break 2
  637.       fi
  638.     fi
  639.       done
  640.       ;;
  641.     esac
  642.   done
  643.   IFS="$ac_save_ifs"
  644.   # As a last resort, use the slow shell script.
  645.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  646. fi
  647.   INSTALL="$ac_cv_path_install"
  648. fi
  649. /bin/echo "$ac_t""$INSTALL" 1>&6
  650.  
  651. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  652. # It thinks the first close brace ends the variable substitution.
  653. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  654.  
  655. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  656.  
  657. # Extract the first word of "ranlib", so it can be a program name with args.
  658. set dummy ranlib; ac_word=$2
  659. /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  660. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  661.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  662. else
  663.   if test -n "$RANLIB"; then
  664.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  665. else
  666.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  667.   for ac_dir in $PATH; do
  668.     test -z "$ac_dir" && ac_dir=.
  669.     if test -f $ac_dir/$ac_word; then
  670.       ac_cv_prog_RANLIB="ranlib"
  671.       break
  672.     fi
  673.   done
  674.   IFS="$ac_save_ifs"
  675.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  676. fi
  677. fi
  678. RANLIB="$ac_cv_prog_RANLIB"
  679. if test -n "$RANLIB"; then
  680.   /bin/echo "$ac_t""$RANLIB" 1>&6
  681. else
  682.   /bin/echo "$ac_t""no" 1>&6
  683. fi
  684.  
  685.  
  686. /bin/echo $ac_n "checking for AIX""... $ac_c" 1>&6
  687. cat > conftest.$ac_ext <<EOF
  688. #line 689 "configure"
  689. #include "confdefs.h"
  690. #ifdef _AIX
  691.   yes
  692. #endif
  693.  
  694. EOF
  695. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  696.   egrep "yes" >/dev/null 2>&1; then
  697.   rm -rf conftest*
  698.   /bin/echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  699. #define _ALL_SOURCE 1
  700. EOF
  701.  
  702. else
  703.   rm -rf conftest*
  704.   /bin/echo "$ac_t""no" 1>&6
  705. fi
  706. rm -f conftest*
  707.  
  708.  
  709. /bin/echo $ac_n "checking for -lseq""... $ac_c" 1>&6
  710. if eval "test \"`echo '$''{'ac_cv_lib_seq'+set}'`\" = set"; then
  711.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  712. else
  713.   ac_save_LIBS="$LIBS"
  714. LIBS="-lseq  $LIBS"
  715. cat > conftest.$ac_ext <<EOF
  716. #line 717 "configure"
  717. #include "confdefs.h"
  718.  
  719. int main() { return 0; }
  720. int t() {
  721. getmntent()
  722. ; return 0; }
  723. EOF
  724. if eval $ac_link; then
  725.   rm -rf conftest*
  726.   eval "ac_cv_lib_seq=yes"
  727. else
  728.   rm -rf conftest*
  729.   eval "ac_cv_lib_seq=no"
  730. fi
  731. rm -f conftest*
  732. LIBS="$ac_save_LIBS"
  733.  
  734. fi
  735. if eval "test \"`echo '$ac_cv_lib_'seq`\" = yes"; then
  736.   /bin/echo "$ac_t""yes" 1>&6
  737.   LIBS="-lseq $LIBS"
  738. else
  739.   /bin/echo "$ac_t""no" 1>&6
  740. fi
  741.  
  742.  
  743. /bin/echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  744. if test -d /gnu/etc/conf/kconfig.d &&
  745.   grep _POSIX_VERSION /gnu/include/sys/unistd.h >/dev/null 2>&1
  746. then
  747.   /bin/echo "$ac_t""yes" 1>&6
  748.   ISC=yes # If later tests want to check for ISC.
  749.   cat >> confdefs.h <<\EOF
  750. #define _POSIX_SOURCE 1
  751. EOF
  752.  
  753.   if test "$GCC" = yes; then
  754.     CC="$CC -posix"
  755.   else
  756.     CC="$CC -Xp"
  757.   fi
  758. else
  759.   /bin/echo "$ac_t""no" 1>&6
  760.   ISC=
  761. fi
  762.  
  763. echo checking for ISC X window libraries
  764. if test -n "$ISC"
  765. then wlibs="$wlibs -lnsl_s -linet"
  766. fi
  767.  
  768. ac_safe=`/bin/echo "minix/config.h" | tr './\055' '___'`
  769. /bin/echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  770. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  771.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  772. else
  773.   cat > conftest.$ac_ext <<EOF
  774. #line 775 "configure"
  775. #include "confdefs.h"
  776. #include <minix/config.h>
  777. EOF
  778. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  779. ac_err=`grep -v '^ *+' conftest.out`
  780. if test -z "$ac_err"; then
  781.   rm -rf conftest*
  782.   eval "ac_cv_header_$ac_safe=yes"
  783. else
  784.   /bin/echo "$ac_err" >&5
  785.   rm -rf conftest*
  786.   eval "ac_cv_header_$ac_safe=no"
  787. fi
  788. rm -f conftest*
  789. fi
  790. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  791.   /bin/echo "$ac_t""yes" 1>&6
  792.   MINIX=yes
  793. else
  794.   /bin/echo "$ac_t""no" 1>&6
  795. MINIX=
  796. fi
  797.  
  798. if test "$MINIX" = yes; then
  799.   cat >> confdefs.h <<\EOF
  800. #define _POSIX_SOURCE 1
  801. EOF
  802.  
  803.   cat >> confdefs.h <<\EOF
  804. #define _POSIX_1_SOURCE 2
  805. EOF
  806.  
  807.   cat >> confdefs.h <<\EOF
  808. #define _MINIX 1
  809. EOF
  810.  
  811. fi
  812.  
  813. # If we cannot run a trivial program, we must be cross compiling.
  814. /bin/echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  815. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  816.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  817. else
  818.   if test "$cross_compiling" = yes; then
  819.   ac_cv_c_cross=yes
  820. else
  821. cat > conftest.$ac_ext <<EOF
  822. #line 823 "configure"
  823. #include "confdefs.h"
  824. main(){return(0);}
  825. EOF
  826. eval $ac_link
  827. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  828.   ac_cv_c_cross=no
  829. else
  830.   ac_cv_c_cross=yes
  831. fi
  832. fi
  833. rm -fr conftest*
  834. fi
  835. cross_compiling=$ac_cv_c_cross
  836. /bin/echo "$ac_t""$ac_cv_c_cross" 1>&6
  837.  
  838. ac_header_dirent=no
  839. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  840.   ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  841. /bin/echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  842. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  843.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  844. else
  845.   cat > conftest.$ac_ext <<EOF
  846. #line 847 "configure"
  847. #include "confdefs.h"
  848. #include <sys/types.h>
  849. #include <$ac_hdr>
  850. int main() { return 0; }
  851. int t() {
  852. DIR *dirp = 0;
  853. ; return 0; }
  854. EOF
  855. if eval $ac_compile; then
  856.   rm -rf conftest*
  857.   eval "ac_cv_header_dirent_$ac_safe=yes"
  858. else
  859.   rm -rf conftest*
  860.   eval "ac_cv_header_dirent_$ac_safe=no"
  861. fi
  862. rm -f conftest*
  863.  
  864. fi
  865. if eval "test \"`/bin/echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  866.   /bin/echo "$ac_t""yes" 1>&6
  867.   ac_header_dirent=$ac_hdr; break
  868. else
  869.   /bin/echo "$ac_t""no" 1>&6
  870. fi
  871.  
  872. done
  873.  
  874. case "$ac_header_dirent" in
  875. dirent.h) cat >> confdefs.h <<\EOF
  876. #define DIRENT 1
  877. EOF
  878.  ;;
  879. sys/ndir.h) cat >> confdefs.h <<\EOF
  880. #define SYSNDIR 1
  881. EOF
  882.  ;;
  883. sys/dir.h) cat >> confdefs.h <<\EOF
  884. #define SYSDIR 1
  885. EOF
  886.  ;;
  887. ndir.h) cat >> confdefs.h <<\EOF
  888. #define NDIR 1
  889. EOF
  890.  ;;
  891. esac
  892.  
  893. /bin/echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
  894. if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
  895.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  896. else
  897.   if test "$cross_compiling" = yes; then
  898.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  899. else
  900. cat > conftest.$ac_ext <<EOF
  901. #line 902 "configure"
  902. #include "confdefs.h"
  903. #include <sys/types.h>
  904. #include <$ac_header_dirent>
  905. int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  906. EOF
  907. eval $ac_link
  908. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  909.   ac_cv_func_closedir_void=no
  910. else
  911.   ac_cv_func_closedir_void=yes
  912. fi
  913. fi
  914. rm -fr conftest*
  915. fi
  916. /bin/echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
  917. if test $ac_cv_func_closedir_void = yes; then
  918.   cat >> confdefs.h <<\EOF
  919. #define VOID_CLOSEDIR 1
  920. EOF
  921.  
  922. fi
  923.  
  924. /bin/echo $ac_n "checking for Xenix""... $ac_c" 1>&6
  925. cat > conftest.$ac_ext <<EOF
  926. #line 927 "configure"
  927. #include "confdefs.h"
  928. #if defined(M_XENIX) && !defined(M_UNIX)
  929.   yes
  930. #endif
  931.  
  932. EOF
  933. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  934.   egrep "yes" >/dev/null 2>&1; then
  935.   rm -rf conftest*
  936.   /bin/echo "$ac_t""yes" 1>&6; XENIX=yes
  937. else
  938.   rm -rf conftest*
  939.   /bin/echo "$ac_t""no" 1>&6; XENIX=
  940. fi
  941. rm -f conftest*
  942.  
  943. if test "$XENIX" = yes; then
  944.   # Make sure -ldir precedes -lx.
  945.   test $ac_header_dirent = dirent.h && LIBS="-ldir $LIBS"
  946.   LIBS="$LIBS -lx"
  947. fi
  948.  
  949.  
  950. ac_header_dirent=no
  951. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  952.   ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  953. /bin/echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  954. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  955.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  956. else
  957.   cat > conftest.$ac_ext <<EOF
  958. #line 959 "configure"
  959. #include "confdefs.h"
  960. #include <sys/types.h>
  961. #include <$ac_hdr>
  962. int main() { return 0; }
  963. int t() {
  964. DIR *dirp = 0;
  965. ; return 0; }
  966. EOF
  967. if eval $ac_compile; then
  968.   rm -rf conftest*
  969.   eval "ac_cv_header_dirent_$ac_safe=yes"
  970. else
  971.   rm -rf conftest*
  972.   eval "ac_cv_header_dirent_$ac_safe=no"
  973. fi
  974. rm -f conftest*
  975.  
  976. fi
  977. if eval "test \"`/bin/echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  978.   /bin/echo "$ac_t""yes" 1>&6
  979.   ac_header_dirent=$ac_hdr; break
  980. else
  981.   /bin/echo "$ac_t""no" 1>&6
  982. fi
  983.  
  984. done
  985.  
  986. case "$ac_header_dirent" in
  987. dirent.h) cat >> confdefs.h <<\EOF
  988. #define DIRENT 1
  989. EOF
  990.  ;;
  991. sys/ndir.h) cat >> confdefs.h <<\EOF
  992. #define SYSNDIR 1
  993. EOF
  994.  ;;
  995. sys/dir.h) cat >> confdefs.h <<\EOF
  996. #define SYSDIR 1
  997. EOF
  998.  ;;
  999. ndir.h) cat >> confdefs.h <<\EOF
  1000. #define NDIR 1
  1001. EOF
  1002.  ;;
  1003. esac
  1004.  
  1005. /bin/echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
  1006. if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
  1007.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  1008. else
  1009.   if test "$cross_compiling" = yes; then
  1010.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1011. else
  1012. cat > conftest.$ac_ext <<EOF
  1013. #line 1014 "configure"
  1014. #include "confdefs.h"
  1015. #include <sys/types.h>
  1016. #include <$ac_header_dirent>
  1017. int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1018. EOF
  1019. eval $ac_link
  1020. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1021.   ac_cv_func_closedir_void=no
  1022. else
  1023.   ac_cv_func_closedir_void=yes
  1024. fi
  1025. fi
  1026. rm -fr conftest*
  1027. fi
  1028. /bin/echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
  1029. if test $ac_cv_func_closedir_void = yes; then
  1030.   cat >> confdefs.h <<\EOF
  1031. #define VOID_CLOSEDIR 1
  1032. EOF
  1033.  
  1034. fi
  1035.  
  1036. ac_safe=`/bin/echo "limits.h" | tr './\055' '___'`
  1037. /bin/echo $ac_n "checking for limits.h""... $ac_c" 1>&6
  1038. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1039.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  1040. else
  1041.   cat > conftest.$ac_ext <<EOF
  1042. #line 1043 "configure"
  1043. #include "confdefs.h"
  1044. #include <limits.h>
  1045. EOF
  1046. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1047. ac_err=`grep -v '^ *+' conftest.out`
  1048. if test -z "$ac_err"; then
  1049.   rm -rf conftest*
  1050.   eval "ac_cv_header_$ac_safe=yes"
  1051. else
  1052.   /bin/echo "$ac_err" >&5
  1053.   rm -rf conftest*
  1054.   eval "ac_cv_header_$ac_safe=no"
  1055. fi
  1056. rm -f conftest*
  1057. fi
  1058. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1059.   /bin/echo "$ac_t""yes" 1>&6
  1060.   :
  1061. else
  1062.   /bin/echo "$ac_t""no" 1>&6
  1063. cat >> confdefs.h <<\EOF
  1064. #define LIMITS_H_MISSING 1
  1065. EOF
  1066.  
  1067. fi
  1068.  
  1069. ac_safe=`/bin/echo "float.h" | tr './\055' '___'`
  1070. /bin/echo $ac_n "checking for float.h""... $ac_c" 1>&6
  1071. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1072.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  1073. else
  1074.   cat > conftest.$ac_ext <<EOF
  1075. #line 1076 "configure"
  1076. #include "confdefs.h"
  1077. #include <float.h>
  1078. EOF
  1079. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1080. ac_err=`grep -v '^ *+' conftest.out`
  1081. if test -z "$ac_err"; then
  1082.   rm -rf conftest*
  1083.   eval "ac_cv_header_$ac_safe=yes"
  1084. else
  1085.   /bin/echo "$ac_err" >&5
  1086.   rm -rf conftest*
  1087.   eval "ac_cv_header_$ac_safe=no"
  1088. fi
  1089. rm -f conftest*
  1090. fi
  1091. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1092.   /bin/echo "$ac_t""yes" 1>&6
  1093.   :
  1094. else
  1095.   /bin/echo "$ac_t""no" 1>&6
  1096. cat >> confdefs.h <<\EOF
  1097. #define FLOAT_H_MISSING 1
  1098. EOF
  1099.  
  1100. fi
  1101.  
  1102. /bin/echo $ac_n "checking whether string.h declares mem functions""... $ac_c" 1>&6
  1103. cat > conftest.$ac_ext <<EOF
  1104. #line 1105 "configure"
  1105. #include "confdefs.h"
  1106. #include <string.h>
  1107. EOF
  1108. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1109.   egrep "memchr" >/dev/null 2>&1; then
  1110.   rm -rf conftest*
  1111.   ac_found=yes
  1112. else
  1113.   rm -rf conftest*
  1114.   ac_found=no
  1115. fi
  1116. rm -f conftest*
  1117.  
  1118. /bin/echo "$ac_t""$ac_found" 1>&6
  1119. if test $ac_found = no; then
  1120.   ac_safe=`/bin/echo "memory.h" | tr './\055' '___'`
  1121. /bin/echo $ac_n "checking for memory.h""... $ac_c" 1>&6
  1122. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1123.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  1124. else
  1125.   cat > conftest.$ac_ext <<EOF
  1126. #line 1127 "configure"
  1127. #include "confdefs.h"
  1128. #include <memory.h>
  1129. EOF
  1130. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1131. ac_err=`grep -v '^ *+' conftest.out`
  1132. if test -z "$ac_err"; then
  1133.   rm -rf conftest*
  1134.   eval "ac_cv_header_$ac_safe=yes"
  1135. else
  1136.   /bin/echo "$ac_err" >&5
  1137.   rm -rf conftest*
  1138.   eval "ac_cv_header_$ac_safe=no"
  1139. fi
  1140. rm -f conftest*
  1141. fi
  1142. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1143.   /bin/echo "$ac_t""yes" 1>&6
  1144.   cat >> confdefs.h <<\EOF
  1145. #define NEED_MEMORY_H 1
  1146. EOF
  1147.  
  1148. else
  1149.   /bin/echo "$ac_t""no" 1>&6
  1150. fi
  1151.  
  1152. fi
  1153.  
  1154. /bin/echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1155. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1156.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  1157. else
  1158.   cat > conftest.$ac_ext <<EOF
  1159. #line 1160 "configure"
  1160. #include "confdefs.h"
  1161. #include <stdlib.h>
  1162. #include <stdarg.h>
  1163. #include <string.h>
  1164. #include <float.h>
  1165. EOF
  1166. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1167. ac_err=`grep -v '^ *+' conftest.out`
  1168. if test -z "$ac_err"; then
  1169.   rm -rf conftest*
  1170.   ac_cv_header_stdc=yes
  1171. else
  1172.   /bin/echo "$ac_err" >&5
  1173.   rm -rf conftest*
  1174.   ac_cv_header_stdc=no
  1175. fi
  1176. rm -f conftest*
  1177.  
  1178. if test $ac_cv_header_stdc = yes; then
  1179.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1180. cat > conftest.$ac_ext <<EOF
  1181. #line 1182 "configure"
  1182. #include "confdefs.h"
  1183. #include <string.h>
  1184. EOF
  1185. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1186.   egrep "memchr" >/dev/null 2>&1; then
  1187.   :
  1188. else
  1189.   rm -rf conftest*
  1190.   ac_cv_header_stdc=no
  1191. fi
  1192. rm -f conftest*
  1193.  
  1194. fi
  1195.  
  1196. if test $ac_cv_header_stdc = yes; then
  1197.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1198. cat > conftest.$ac_ext <<EOF
  1199. #line 1200 "configure"
  1200. #include "confdefs.h"
  1201. #include <stdlib.h>
  1202. EOF
  1203. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1204.   egrep "free" >/dev/null 2>&1; then
  1205.   :
  1206. else
  1207.   rm -rf conftest*
  1208.   ac_cv_header_stdc=no
  1209. fi
  1210. rm -f conftest*
  1211.  
  1212. fi
  1213.  
  1214. if test $ac_cv_header_stdc = yes; then
  1215.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1216. if test "$cross_compiling" = yes; then
  1217.   ac_cv_header_stdc=no
  1218. else
  1219. cat > conftest.$ac_ext <<EOF
  1220. #line 1221 "configure"
  1221. #include "confdefs.h"
  1222. #include <ctype.h>
  1223. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1224. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1225. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1226. int main () { int i; for (i = 0; i < 256; i++)
  1227. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1228. exit (0); }
  1229.  
  1230. EOF
  1231. eval $ac_link
  1232. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1233.   :
  1234. else
  1235.   ac_cv_header_stdc=no
  1236. fi
  1237. fi
  1238. rm -fr conftest*
  1239. fi
  1240. fi
  1241. /bin/echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1242. if test $ac_cv_header_stdc = yes; then
  1243.   cat >> confdefs.h <<\EOF
  1244. #define STDC_HEADERS 1
  1245. EOF
  1246.  
  1247. fi
  1248.  
  1249. ac_safe=`/bin/echo "unistd.h" | tr './\055' '___'`
  1250. /bin/echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
  1251. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1252.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  1253. else
  1254.   cat > conftest.$ac_ext <<EOF
  1255. #line 1256 "configure"
  1256. #include "confdefs.h"
  1257. #include <unistd.h>
  1258. EOF
  1259. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1260. ac_err=`grep -v '^ *+' conftest.out`
  1261. if test -z "$ac_err"; then
  1262.   rm -rf conftest*
  1263.   eval "ac_cv_header_$ac_safe=yes"
  1264. else
  1265.   /bin/echo "$ac_err" >&5
  1266.   rm -rf conftest*
  1267.   eval "ac_cv_header_$ac_safe=no"
  1268. fi
  1269. rm -f conftest*
  1270. fi
  1271. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1272.   /bin/echo "$ac_t""yes" 1>&6
  1273.   cat >> confdefs.h <<\EOF
  1274. #define HAVE_UNISTD_H 1
  1275. EOF
  1276.  
  1277. else
  1278.   /bin/echo "$ac_t""no" 1>&6
  1279. fi
  1280.  
  1281. /bin/echo $ac_n "checking for BSD string and memory functions""... $ac_c" 1>&6
  1282. cat > conftest.$ac_ext <<EOF
  1283. #line 1284 "configure"
  1284. #include "confdefs.h"
  1285. #include <strings.h>
  1286. int main() { return 0; }
  1287. int t() {
  1288. rindex(0, 0); bzero(0, 0);
  1289. ; return 0; }
  1290. EOF
  1291. if eval $ac_link; then
  1292.   rm -rf conftest*
  1293.   /bin/echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1294. #define USG 1
  1295. EOF
  1296.  
  1297. else
  1298.   rm -rf conftest*
  1299.   /bin/echo "$ac_t""no" 1>&6
  1300. fi
  1301. rm -f conftest*
  1302.  
  1303.  
  1304. echo checking for X11 headers and libraries
  1305. dir=""
  1306. cat > conftest.$ac_ext <<EOF
  1307. #line 1308 "configure"
  1308. #include "confdefs.h"
  1309. #include <X11/Xaw/Box.h>
  1310. EOF
  1311. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1312. ac_err=`grep -v '^ *+' conftest.out`
  1313. if test -z "$ac_err"; then
  1314.   rm -rf conftest*
  1315.   :
  1316. else
  1317.   /bin/echo "$ac_err" >&5
  1318.   rm -rf conftest*
  1319.   if test -r /local/include/X11/Xaw/Box.h
  1320.   then dir=/local/include
  1321.   elif test -r /gnu/lpp/X11/Xamples/include/Box.h
  1322.   then dir=/gnu/lpp/X11/Xamples/include
  1323.   elif test -r /gnu/include/X11R4/Xaw/Box.h
  1324.   then dir=/gnu/include/X11R4
  1325.   elif test -r /gnu/include/X11R5/Xaw/Box.h
  1326.   then dir=/gnu/include/X11R5
  1327.   elif test -r /gnu/X11/include/Box.h
  1328.   then dir=/gnu/X11/include
  1329.   elif test -r /gnu/X11R5/include/Box.h
  1330.   then dir=/gnu/X11R5/include
  1331.   fi
  1332.  
  1333. fi
  1334. rm -f conftest*
  1335. if test -n "$dir"
  1336. then xincludedir=-I$dir
  1337.      
  1338. fi
  1339. # Now check for the libraries.  Amazing how every single X vendor puts
  1340. # these in a different place, and all because MIT thought they should go
  1341. # in /gnu/lib.
  1342. dir1=""
  1343. if test -r /local/lib/libXaw.a
  1344. then dir1=/local/lib
  1345. elif test -r /gnu/lpp/X11/Xamples/lib/Xaw/libXaw.a
  1346. then dir1=/gnu/lpp/X11/Xamples/lib/Xaw
  1347. elif test -r /gnu/lib/X11R4/libX11.sl
  1348. then dir1=/gnu/lib/X11R4
  1349. elif test -r /gnu/X11/lib/libXaw.a
  1350. then dir1=/gnu/X11/lib
  1351. elif test -r /gnu/X11R5/lib/libXaw.a
  1352. then dir1=/gnu/X11R5/lib
  1353. fi
  1354. dir2=""
  1355. if test -r /gnu/lpp/X11/Xamples/lib/Xmu/libXmu.a
  1356. then dir2=/gnu/lpp/X11/Xamples/lib/Xmu
  1357. fi
  1358. test -n "$dir1" && xlibdir=-L$dir1
  1359. test -n "$dir2" && xlibdir="$xlibdir -L$dir2"
  1360.  
  1361. if test "x$prefix" = xNONE; then
  1362. /bin/echo $ac_n "checking for prefix by ""... $ac_c" 1>&6
  1363. # Extract the first word of "gcc", so it can be a program name with args.
  1364. set dummy gcc; ac_word=$2
  1365. /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1366. if eval "test \"`echo '$''{'ac_cv_path_GCC'+set}'`\" = set"; then
  1367.   /bin/echo $ac_n "(cached) $ac_c" 1>&6
  1368. else
  1369.   case "$GCC" in
  1370.   /*)
  1371.   ac_cv_path_GCC="$GCC" # Let the user override the test with a path.
  1372.   ;;
  1373.   *)
  1374.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1375.   for ac_dir in $PATH; do
  1376.     test -z "$ac_dir" && ac_dir=.
  1377.     if test -f $ac_dir/$ac_word; then
  1378.       ac_cv_path_GCC="$ac_dir/$ac_word"
  1379.       break
  1380.     fi
  1381.   done
  1382.   IFS="$ac_save_ifs"
  1383.   ;;
  1384. esac
  1385. fi
  1386. GCC="$ac_cv_path_GCC"
  1387. if test -n "$GCC"; then
  1388.   /bin/echo "$ac_t""$GCC" 1>&6
  1389. else
  1390.   /bin/echo "$ac_t""no" 1>&6
  1391. fi
  1392.  
  1393.   if test -n "$ac_cv_path_GCC"; then
  1394.     prefix=`/bin/echo $ac_cv_path_GCC|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
  1395.   fi
  1396. fi
  1397.  
  1398.  
  1399. # This will generate `Makefile'(s), `config.status', and our header file.
  1400. trap '' 1 2 15
  1401. cat > confcache <<\EOF
  1402. # This file is a shell script that caches the results of configure
  1403. # tests run on this system so they can be shared between configure
  1404. # scripts and configure runs.  It is not useful on other systems.
  1405. # If it contains results you don't want to keep, you may remove or edit it.
  1406. #
  1407. # By default, configure uses ./config.cache as the cache file,
  1408. # creating it if it does not exist already.  You can give configure
  1409. # the --cache-file=FILE option to use a different cache file; that is
  1410. # what configure does when it calls configure scripts in
  1411. # subdirectories, so they share the cache.
  1412. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1413. # config.status only pays attention to the cache file if you give it the
  1414. # --recheck option to rerun configure.
  1415. #
  1416. EOF
  1417. # Ultrix sh set writes to stderr and can't be redirected directly,
  1418. # and sets the high bit in the cache file unless we assign to the vars.
  1419. (set) 2>&1 |
  1420.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1421.   >> confcache
  1422. if cmp -s $cache_file confcache; then
  1423.   :
  1424. else
  1425.   if test -w $cache_file; then
  1426.     echo "updating cache $cache_file"
  1427.     cat confcache > $cache_file
  1428.   else
  1429.     echo "not updating unwritable cache $cache_file"
  1430.   fi
  1431. fi
  1432. rm -f confcache
  1433.  
  1434. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1435.  
  1436. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1437. # Let make expand exec_prefix.
  1438. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1439.  
  1440. # Any assignment to VPATH causes Sun make to only execute
  1441. # the first set of double-colon rules, so remove it if not needed.
  1442. # If there is a colon in the path, we need to keep it.
  1443. if test "x$srcdir" = x.; then
  1444.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1445. fi
  1446.  
  1447. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1448.  
  1449. DEFS=-DHAVE_CONFIG_H
  1450.  
  1451. # Without the "./", some shells look in PATH for config.status.
  1452. : ${CONFIG_STATUS=./config.status}
  1453.  
  1454. echo creating $CONFIG_STATUS
  1455. # Some systems, like AmigaDOS, won't allow you to remove a script that is
  1456. # being executed, so just move it out of the way instead.
  1457. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1458. cat > $CONFIG_STATUS <<EOF
  1459. #! /bin/sh
  1460. # Generated automatically by configure.
  1461. # Run this file to recreate the current configuration.
  1462. # This directory was configured as follows,
  1463. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1464. #
  1465. # $0 $ac_configure_args
  1466. #
  1467. # Compiler output produced by configure, useful for debugging
  1468. # configure, is in ./config.log if it exists.
  1469.  
  1470. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1471. for ac_option
  1472. do
  1473.   case "\$ac_option" in
  1474.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1475.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1476.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1477.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1478.     /bin/echo "$CONFIG_STATUS generated by autoconf version 2.2"
  1479.     exit 0 ;;
  1480.   -help | --help | --hel | --he | --h)
  1481.     echo "\$ac_cs_usage"; exit 0 ;;
  1482.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1483.   esac
  1484. done
  1485.  
  1486. ac_given_srcdir=$srcdir
  1487. ac_given_INSTALL="$INSTALL"
  1488.  
  1489. trap 'rm -fr `/bin/echo Makefile bpltobzr/Makefile bzr/Makefile bzrto/Makefile charspace/Makefile doc/Makefile fontconvert/Makefile gf/Makefile gsrenderfont/Makefile imageto/Makefile imgrotate/Makefile lib/Makefile limn/Makefile pbm/Makefile pk/Makefile tfm/Makefile widgets/Makefile xbfe/Makefile include/c-auto.h | tr : " "` conftest*; exit 1' 1 2 15
  1490.  
  1491. # Protect against being on the right side of a sed subst in config.status. 
  1492. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  1493.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1494. $ac_vpsub
  1495. $extrasub
  1496. s%@CFLAGS@%$CFLAGS%g
  1497. s%@CPPFLAGS@%$CPPFLAGS%g
  1498. s%@CXXFLAGS@%$CXXFLAGS%g
  1499. s%@DEFS@%$DEFS%g
  1500. s%@LDFLAGS@%$LDFLAGS%g
  1501. s%@LIBS@%$LIBS%g
  1502. s%@exec_prefix@%$exec_prefix%g
  1503. s%@prefix@%$prefix%g
  1504. s%@program_transform_name@%$program_transform_name%g
  1505. s%@CC@%$CC%g
  1506. s%@CPP@%$CPP%g
  1507. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1508. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1509. s%@RANLIB@%$RANLIB%g
  1510. s%@wlibs@%$wlibs%g
  1511. s%@xincludedir@%$xincludedir%g
  1512. s%@xlibdir@%$xlibdir%g
  1513. s%@GCC@%$GCC%g
  1514.  
  1515. CEOF
  1516. EOF
  1517. cat >> $CONFIG_STATUS <<EOF
  1518.  
  1519. CONFIG_FILES=\${CONFIG_FILES-"Makefile bpltobzr/Makefile bzr/Makefile bzrto/Makefile charspace/Makefile doc/Makefile fontconvert/Makefile gf/Makefile gsrenderfont/Makefile imageto/Makefile imgrotate/Makefile lib/Makefile limn/Makefile pbm/Makefile pk/Makefile tfm/Makefile widgets/Makefile xbfe/Makefile"}
  1520. EOF
  1521. cat >> $CONFIG_STATUS <<\EOF
  1522. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1523.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1524.   case "$ac_file" in
  1525.   *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
  1526.        ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
  1527.   *) ac_file_in="${ac_file}.in" ;;
  1528.   esac
  1529.  
  1530.   # Adjust relative srcdir, etc. for subdirectories.
  1531.  
  1532.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1533.   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1534.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1535.     # The file is in a subdirectory.
  1536.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1537.     ac_dir_suffix="/`/bin/echo $ac_dir|sed 's%^\./%%'`"
  1538.     # A "../" for each directory in $ac_dir_suffix.
  1539.     ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1540.   else
  1541.     ac_dir_suffix= ac_dots=
  1542.   fi
  1543.  
  1544.   case "$ac_given_srcdir" in
  1545.   .)  srcdir=.
  1546.       if test -z "$ac_dots"; then top_srcdir=.
  1547.       else top_srcdir=`/bin/echo $ac_dots|sed 's%/$%%'`; fi ;;
  1548.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1549.   *) # Relative path.
  1550.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1551.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1552.   esac
  1553.  
  1554.   case "$ac_given_INSTALL" in
  1555.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1556.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1557.   esac
  1558.   echo creating "$ac_file"
  1559.   rm -f "$ac_file"
  1560.   configure_input="Generated automatically from `/bin/echo $ac_file_in|sed 's%.*/%%'` by configure."
  1561.   case "$ac_file" in
  1562.   *Makefile*) ac_comsub="1i\\
  1563. # $configure_input" ;;
  1564.   *) ac_comsub= ;;
  1565.   esac
  1566.   sed -e "$ac_comsub
  1567. s%@configure_input@%$configure_input%g
  1568. s%@srcdir@%$srcdir%g
  1569. s%@top_srcdir@%$top_srcdir%g
  1570. s%@INSTALL@%$INSTALL%g
  1571. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1572. fi; done
  1573. rm -f conftest.subs
  1574.  
  1575. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1576. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1577. #
  1578. # ac_d sets the value in "#define NAME VALUE" lines.
  1579. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1580. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  1581. ac_dC='\3'
  1582. ac_dD='%g'
  1583. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1584. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1585. ac_uB='\([     ]\)%\1#\2define\3'
  1586. ac_uC=' '
  1587. ac_uD='\4%g'
  1588. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1589. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1590. ac_eB='$%\1#\2define\3'
  1591. ac_eC=' '
  1592. ac_eD='%g'
  1593.  
  1594. CONFIG_HEADERS=${CONFIG_HEADERS-"include/c-auto.h"}
  1595. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1596.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1597.   case "$ac_file" in
  1598.   *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
  1599.        ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
  1600.   *) ac_file_in="${ac_file}.in" ;;
  1601.   esac
  1602.  
  1603.   echo creating $ac_file
  1604.  
  1605.   rm -f conftest.frag conftest.in conftest.out
  1606.   cp $ac_given_srcdir/$ac_file_in conftest.in
  1607.  
  1608. EOF
  1609.  
  1610. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1611. # the proper values into config.h.in to produce config.h.  And first:
  1612. # Protect against being on the right side of a sed subst in config.status. 
  1613. # Protect against being in an unquoted here document in config.status.
  1614. rm -f conftest.vals
  1615. cat > conftest.hdr <<\EOF
  1616. s/[\\&%]/\\&/g
  1617. s%[\\$`]%\\&%g
  1618. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1619. s%ac_d%ac_u%gp
  1620. s%ac_u%ac_e%gp
  1621. EOF
  1622. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1623. rm -f conftest.hdr
  1624.  
  1625. # This sed command replaces #undef with comments.  This is necessary, for
  1626. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1627. # on some systems where configure will not decide to define it.
  1628. cat >> conftest.vals <<\EOF
  1629. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1630. EOF
  1631.  
  1632. # Break up conftest.vals because some shells have a limit on
  1633. # the size of here documents, and old seds have small limits too.
  1634. # Maximum number of lines to put in a single here document.
  1635. ac_max_here_lines=12
  1636.  
  1637. rm -f conftest.tail
  1638. while :
  1639. do
  1640.   ac_lines=`grep -c . conftest.vals`
  1641.   # grep -c gives empty output for an empty file on some AIX systems.
  1642.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1643.   # Write a limited-size here document to conftest.frag.
  1644.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1645.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1646.   echo 'CEOF
  1647.   sed -f conftest.frag conftest.in > conftest.out
  1648.   rm -f conftest.in
  1649.   mv conftest.out conftest.in
  1650. ' >> $CONFIG_STATUS
  1651.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1652.   rm -f conftest.vals
  1653.   mv conftest.tail conftest.vals
  1654. done
  1655. rm -f conftest.vals
  1656.  
  1657. cat >> $CONFIG_STATUS <<\EOF
  1658.   rm -f conftest.frag conftest.h
  1659.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  1660.   cat conftest.in >> conftest.h
  1661.   rm -f conftest.in
  1662.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  1663.     /bin/echo "$ac_file is unchanged"
  1664.     rm -f conftest.h
  1665.   else
  1666.     rm -f $ac_file
  1667.     # Make include path if necessary.
  1668.     dir=`dirname $ac_file`
  1669.     if test -d $dir; then true; else mkdir -p $dir; fi
  1670.     mv conftest.h $ac_file
  1671.   fi
  1672. fi; done
  1673.  
  1674.  
  1675.  
  1676. exit 0
  1677. EOF
  1678. chmod +x $CONFIG_STATUS
  1679. rm -fr confdefs* $ac_clean_files
  1680. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1681.  
  1682.