home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / unixtex-6.1b-src.lha / unixtex-6.1b / configure < prev    next >
Encoding:
Text File  |  1995-04-03  |  29.6 KB  |  924 lines

  1. #!/bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.1 
  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.  
  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=`/bin/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=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  74.     # Reject names that are not valid shell variable names.
  75.     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  76.       { /bin/echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  77.     fi
  78.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  79.     eval "enable_${ac_feature}=no" ;;
  80.  
  81.   -enable-* | --enable-*)
  82.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  83.     # Reject names that are not valid shell variable names.
  84.     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  85.       { /bin/echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  86.     fi
  87.     ac_feature=`/bin/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.     /bin/echo "configure generated by autoconf version 2.1"
  220.     exit 0 ;;
  221.  
  222.   -with-* | --with-*)
  223.     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  224.     # Reject names that are not valid shell variable names.
  225.     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  226.       { /bin/echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  227.     fi
  228.     ac_package=`/bin/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=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  237.     # Reject names that are not valid shell variable names.
  238.     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  239.       { /bin/echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  240.     fi
  241.     ac_package=`/bin/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.   -*) { /bin/echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  263.     ;;
  264.  
  265.   *) 
  266.     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  267.       /bin/echo "configure: warning: $ac_option: invalid host type" 1>&2
  268.     fi
  269.     if test "x$nonopt" != xNONE; then
  270.       { /bin/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.   { /bin/echo "configure: error: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  280. fi
  281.  
  282. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  283.  
  284. # File descriptor usage:
  285. # 0 unused; standard input
  286. # 1 file creation
  287. # 2 errors and warnings
  288. # 3 unused; some systems may open it to /dev/tty
  289. # 4 checking for... messages and results
  290. # 5 compiler messages saved in config.log
  291. if test "$silent" = yes; then
  292.   exec 4>/dev/null
  293. else
  294.   exec 4>&1
  295. fi
  296. exec 5>./config.log
  297.  
  298. /bin/echo "\
  299. This file contains any messages produced by compilers while
  300. running configure, to aid debugging if configure makes a mistake.
  301. " 1>&5
  302.  
  303. # Strip out --no-create and --no-recursion so they do not pile up.
  304. # Also quote any args containing shell metacharacters.
  305. ac_configure_args=
  306. for ac_arg
  307. do
  308.   case "$ac_arg" in
  309.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  310.   | --no-cr | --no-c) ;;
  311.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  312.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  313.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  314.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  315.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  316.   esac
  317. done
  318.  
  319. # NLS nuisances.
  320. # Only set LANG and LC_ALL to C if already set.
  321. # These must not be set unconditionally because not all systems understand
  322. # e.g. LANG=C (notably SCO).
  323. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  324. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  325.  
  326. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  327. rm -rf conftest* confdefs.h
  328. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  329. /bin/echo > confdefs.h
  330.  
  331. # A filename unique to this package, relative to the directory that
  332. # configure is in, which we can look for to find out if srcdir is correct.
  333. ac_unique_file=kpathsea/kpathsea.texi
  334.  
  335. # Find the source files, if location was not specified.
  336. if test -z "$srcdir"; then
  337.   ac_srcdir_defaulted=yes
  338.   # Try the directory containing this script, then its parent.
  339.   ac_prog=$0
  340.   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  341.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  342.   srcdir=$ac_confdir
  343.   if test ! -r $srcdir/$ac_unique_file; then
  344.     srcdir=..
  345.   fi
  346. else
  347.   ac_srcdir_defaulted=no
  348. fi
  349. if test ! -r $srcdir/$ac_unique_file; then
  350.   if test "$ac_srcdir_defaulted" = yes; then
  351.     { /bin/echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  352.   else
  353.     { /bin/echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  354.   fi
  355. fi
  356. srcdir=`/bin/echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  357.  
  358. # Prefer explicitly selected file to automatically selected ones.
  359. if test -z "$CONFIG_SITE"; then
  360.   if test "x$prefix" != xNONE; then
  361.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  362.   else
  363.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  364.   fi
  365. fi
  366. for ac_site_file in $CONFIG_SITE; do
  367.   if test -r "$ac_site_file"; then
  368.     /bin/echo "loading site script $ac_site_file"
  369.     . "$ac_site_file"
  370.   fi
  371. done
  372.  
  373. if test -r "$cache_file"; then
  374.   /bin/echo "loading cache $cache_file"
  375.   . $cache_file
  376. else
  377.   /bin/echo "creating cache $cache_file"
  378.   > $cache_file
  379. fi
  380.  
  381. ac_ext=c
  382. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  383. ac_cpp='$CPP $CPPFLAGS'
  384. ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
  385. ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  386.  
  387. if (/bin/echo "testing\c"; /bin/echo 1,2,3) | grep c >/dev/null; then
  388.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  389.   if (/bin/echo -n testing; /bin/echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  390.     ac_n= ac_c='
  391. ' ac_t='    '
  392.   else
  393.     ac_n=-n ac_c= ac_t=
  394.   fi
  395. else
  396.   ac_n= ac_c='\c' ac_t=
  397. fi
  398.  
  399.  
  400.  
  401. /bin/echo $ac_n "checking whether ${MAKE-make} sets \$MAKE""... $ac_c" 1>&4
  402. set dummy ${MAKE-make}; ac_make=$2
  403. if eval "test \"`/bin/echo '${'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  404.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  405. else
  406.   cat > conftestmake <<\EOF
  407. all:
  408.     @/bin/echo 'ac_maketemp="${MAKE}"'
  409. EOF
  410. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  411. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  412. if test -n "$ac_maketemp"; then
  413.   eval ac_cv_prog_make_${ac_make}_set=yes
  414. else
  415.   eval ac_cv_prog_make_${ac_make}_set=no
  416. fi
  417. rm -f conftestmake
  418. fi
  419. if eval "test \"`/bin/echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  420.   /bin/echo "$ac_t""yes" 1>&4
  421.   SET_MAKE=
  422. else
  423.   /bin/echo "$ac_t""no" 1>&4
  424.   SET_MAKE="MAKE=${MAKE-make}"
  425. fi
  426.  
  427.  
  428. # Extract the first word of "gcc", so it can be a program name with args.
  429. set dummy gcc; ac_word=$2
  430. /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  431. if eval "test \"`/bin/echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  432.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  433. else
  434.   if test -n "$CC"; then
  435.   ac_cv_prog_CC="$CC" # Let the user override the test.
  436. else
  437.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  438.   for ac_dir in $PATH; do
  439.     test -z "$ac_dir" && ac_dir=.
  440.     if test -f $ac_dir/$ac_word; then
  441.       ac_cv_prog_CC="gcc"
  442.       break
  443.     fi
  444.   done
  445.   IFS="$ac_save_ifs"
  446.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  447. fi
  448. fi
  449. CC="$ac_cv_prog_CC"
  450. if test -n "$CC"; then
  451.   /bin/echo "$ac_t""$CC" 1>&4
  452. else
  453.   /bin/echo "$ac_t""no" 1>&4
  454. fi
  455.  
  456.  
  457. /bin/echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  458. if eval "test \"`/bin/echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  459.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  460. else
  461.   cat > conftest.c <<EOF
  462. #ifdef __GNUC__
  463.   yes;
  464. #endif
  465. EOF
  466. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  467.   ac_cv_prog_gcc=yes
  468. else
  469.   ac_cv_prog_gcc=no
  470. fi
  471. fi
  472. /bin/echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  473. if test $ac_cv_prog_gcc = yes; then
  474.   GCC=yes
  475.   if test "${CFLAGS+set}" != set; then
  476.     /bin/echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  477. if eval "test \"`/bin/echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  478.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  479. else
  480.   /bin/echo 'void f(){}' > conftest.c
  481. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  482. #  override this for now
  483. #  ac_cv_prog_gcc_g=yes
  484.   ac_cv_prog_gcc_g=no
  485. else
  486.   ac_cv_prog_gcc_g=no
  487. fi
  488. rm -f conftest*
  489.  
  490. fi
  491.     /bin/echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  492.     if test $ac_cv_prog_gcc_g = yes; then
  493.       CFLAGS="-g -O"
  494.     else
  495.       CFLAGS="-O"
  496.     fi
  497.   fi
  498. else
  499.   GCC=
  500.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  501. fi
  502.  
  503.  
  504. if test "x$prefix" = xNONE; then
  505. # Extract the first word of "tex", so it can be a program name with args.
  506. set dummy tex; ac_word=$2
  507. /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  508. if eval "test \"`/bin/echo '${'ac_cv_path_TEX'+set}'`\" = set"; then
  509.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  510. else
  511.   case "$TEX" in
  512.   /*)
  513.   ac_cv_path_TEX="$TEX" # Let the user override the test with a path.
  514.   ;;
  515.   *)
  516.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  517.   for ac_dir in $PATH; do
  518.     test -z "$ac_dir" && ac_dir=.
  519.     if test -f $ac_dir/$ac_word; then
  520.       ac_cv_path_TEX="$ac_dir/$ac_word"
  521.       break
  522.     fi
  523.   done
  524.   IFS="$ac_save_ifs"
  525.   ;;
  526. esac
  527. fi
  528. TEX="$ac_cv_path_TEX"
  529. if test -n "$TEX"; then
  530.   /bin/echo "$ac_t""$TEX" 1>&4
  531. else
  532.   /bin/echo "$ac_t""no" 1>&4
  533. fi
  534.  
  535.   if test -n "$ac_cv_path_TEX"; then
  536.     prefix=`/bin/echo $ac_cv_path_TEX|sed 's%/[^/][^/]*/[^/][^/]*$%%'`
  537.   fi
  538. fi
  539.  
  540.  
  541. ac_aux_dir=
  542. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  543.   if test -f $ac_dir/install-sh; then
  544.     ac_aux_dir=$ac_dir
  545.     ac_install_sh="$ac_aux_dir/install-sh -c"
  546.     break
  547.   elif test -f $ac_dir/install.sh; then
  548.     ac_aux_dir=$ac_dir
  549.     ac_install_sh="$ac_aux_dir/install.sh -c"
  550.     break
  551.   fi
  552. done
  553. if test -z "$ac_aux_dir"; then
  554.   { /bin/echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  555. fi
  556. ac_config_guess=$ac_aux_dir/config.guess
  557. ac_config_sub=$ac_aux_dir/config.sub
  558. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  559.  
  560. # Find a good install program.  We prefer a C program (faster),
  561. # so one script is as good as another.  But avoid the broken or
  562. # incompatible versions:
  563. # SysV /etc/install, /usr/sbin/install
  564. # SunOS /usr/etc/install
  565. # IRIX /sbin/install
  566. # AIX /bin/install
  567. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  568. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  569. # ./install, which can be erroneously created by make from ./install.sh.
  570. /bin/echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  571. INSTALL="/bin/install -c"
  572. if test -z "$INSTALL"; then
  573. if eval "test \"`/bin/echo '${'ac_cv_path_install'+set}'`\" = set"; then
  574.   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  575. else
  576.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  577.   for ac_dir in $PATH; do
  578.     case "$ac_dir" in
  579.     ''|.|/bin) ;;
  580.     *)
  581.       # OSF1 and SCO ODT 3.0 have their own names for install.
  582.       for ac_prog in ginstall installbsd scoinst install; do
  583.         if test -f $ac_dir/$ac_prog; then
  584.       if test $ac_prog = install &&
  585.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  586.         # AIX install.  It has an incompatible calling convention.
  587.         # OSF/1 installbsd also uses dspmsg, but is usable.
  588.         :
  589.       else
  590.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  591.         break 2
  592.       fi
  593.     fi
  594.       done
  595.       ;;
  596.     esac
  597.   done
  598.   IFS="$ac_save_ifs"
  599.   # As a last resort, use the slow shell script.
  600.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  601. fi
  602.   INSTALL="$ac_cv_path_install"
  603. fi
  604. /bin/echo "$ac_t""$INSTALL" 1>&4
  605.  
  606. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  607. # It thinks the first close brace ends the variable substitution.
  608. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  609.  
  610. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  611.  
  612.  
  613. subdirs="kpathsea dviljk dvipsk web2c xdvik"
  614.  
  615.  
  616. trap '' 1 2 15
  617. if test -w $cache_file; then
  618. /bin/echo "updating cache $cache_file"
  619. cat > $cache_file <<\EOF
  620. # This file is a shell script that caches the results of configure
  621. # tests run on this system so they can be shared between configure
  622. # scripts and configure runs.  It is not useful on other systems.
  623. # If it contains results you don't want to keep, you may remove or edit it.
  624. #
  625. # By default, configure uses ./config.cache as the cache file,
  626. # creating it if it does not exist already.  You can give configure
  627. # the --cache-file=FILE option to use a different cache file; that is
  628. # what configure does when it calls configure scripts in
  629. # subdirectories, so they share the cache.
  630. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  631. # config.status only pays attention to the cache file if you give it the
  632. # --recheck option to rerun configure.
  633. #
  634. EOF
  635. # Ultrix sh set writes to stderr and can't be redirected directly.
  636. # On AmigaDOS, the {} chars get eaten, so add them back with separate
  637. # sed commands.
  638. (set) 2>&1 |
  639.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" |
  640.   sed "s@\\\$@\${@" |
  641.   sed "s@\$@}@" >> $cache_file
  642. else
  643. /bin/echo "not updating unwritable cache $cache_file"
  644. fi
  645.  
  646. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  647.  
  648. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  649. # Let make expand exec_prefix.
  650. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  651.  
  652. # Any assignment to VPATH causes Sun make to only execute
  653. # the first set of double-colon rules, so remove it if not needed.
  654. # If there is a colon in the path, we need to keep it.
  655. if test "x$srcdir" = x.; then
  656.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  657. fi
  658.  
  659. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  660.  
  661. # Transform confdefs.h into DEFS.
  662. # Protect against shell expansion while executing Makefile rules.
  663. # Protect against Makefile macro expansion.
  664. cat > conftest.defs <<\EOF
  665. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  666. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  667. s%\[%\\&%g
  668. s%\]%\\&%g
  669. s%\$%$$%g
  670. EOF
  671. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  672. rm -f conftest.defs
  673.  
  674.  
  675. # Without the "./", some shells look in PATH for config.status.
  676. : ${CONFIG_STATUS=./config.status}
  677.  
  678. /bin/echo creating $CONFIG_STATUS
  679. rm -f $CONFIG_STATUS
  680. cat > $CONFIG_STATUS <<EOF
  681. #!/bin/sh
  682. # Generated automatically by configure.
  683. # Run this file to recreate the current configuration.
  684. # This directory was configured as follows,
  685. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  686. #
  687. # $0 $ac_configure_args
  688. #
  689. # Compiler output produced by configure, useful for debugging
  690. # configure, is in ./config.log if it exists.
  691.  
  692. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  693. for ac_option
  694. do
  695.   case "\$ac_option" in
  696.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  697.     /bin/echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  698.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  699.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  700.     /bin/echo "$CONFIG_STATUS generated by autoconf version 2.1"
  701.     exit 0 ;;
  702.   -help | --help | --hel | --he | --h)
  703.     /bin/echo "\$ac_cs_usage"; exit 0 ;;
  704.   *) /bin/echo "\$ac_cs_usage"; exit 1 ;;
  705.   esac
  706. done
  707.  
  708. ac_given_srcdir=$srcdir
  709. ac_given_INSTALL="$INSTALL"
  710.  
  711. trap 'rm -f Makefile; exit 1' 1 2 15
  712.  
  713. # Protect against being on the right side of a sed subst in config.status. 
  714. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  715.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  716. $ac_vpsub
  717. $extrasub
  718. s%@CFLAGS@%$CFLAGS%g
  719. s%@CPPFLAGS@%$CPPFLAGS%g
  720. s%@CXXFLAGS@%$CXXFLAGS%g
  721. s%@DEFS@%$DEFS%g
  722. s%@LDFLAGS@%$LDFLAGS%g
  723. s%@LIBS@%$LIBS%g
  724. s%@exec_prefix@%$exec_prefix%g
  725. s%@prefix@%$prefix%g
  726. s%@program_transform_name@%$program_transform_name%g
  727. s%@SET_MAKE@%$SET_MAKE%g
  728. s%@CC@%$CC%g
  729. s%@TEX@%$TEX%g
  730. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  731. s%@INSTALL_DATA@%$INSTALL_DATA%g
  732. s%@subdirs@%$subdirs%g
  733.  
  734. CEOF
  735. EOF
  736. cat >> $CONFIG_STATUS <<EOF
  737.  
  738. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  739. EOF
  740. cat >> $CONFIG_STATUS <<\EOF
  741. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  742.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  743.   case "$ac_file" in
  744.   *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
  745.        ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
  746.   *) ac_file_in="${ac_file}.in" ;;
  747.   esac
  748.  
  749.   # Adjust relative srcdir, etc. for subdirectories.
  750.  
  751.   # Remove last slash and all that follows it.  Not all systems have dirname.
  752.   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  753.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  754.     # The file is in a subdirectory.
  755.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  756.     ac_dir_suffix="/$ac_dir"
  757.     # A "../" for each directory in $ac_dir_suffix.
  758.     ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  759.   else
  760.     ac_dir_suffix= ac_dots=
  761.   fi
  762.  
  763.   case "$ac_given_srcdir" in
  764.   .)  srcdir=.
  765.       if test -z "$ac_dots"; then top_srcdir=.
  766.       else top_srcdir=`/bin/echo $ac_dots|sed 's%/$%%'`; fi ;;
  767.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  768.   *) # Relative path.
  769.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  770.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  771.   esac
  772.  
  773.   case "$ac_given_INSTALL" in
  774.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  775.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  776.   esac
  777.   /bin/echo creating "$ac_file"
  778.   rm -f "$ac_file"
  779.   configure_input="Generated automatically from `/bin/echo $ac_file_in|sed 's%.*/%%'` by configure."
  780.   case "$ac_file" in
  781.   *Makefile*) ac_comsub="1i\\
  782. # $configure_input" ;;
  783.   *) ac_comsub= ;;
  784.   esac
  785.   # Replace lines of the form ac_include foo with the contents of foo:
  786.   # first, from the ac_include lines construct a list of sed
  787.   # commands to remove them, and include the files; then run sed.
  788.   # Have to use sed because old (Ultrix, SunOS) awk does not support
  789.   # getline or system. (Anyway, configure scripts aren't supposed to use awk.)
  790.   # Use \@...@<cmd> form of sed address because the filename may contain /.
  791.   # Can't use only one -e and commands {dr foo} because foo has to be last.
  792.   # Use @e initially instead of -e because GNU /bin/echo has a -e option.
  793.   # USe `X' to mean a bunch of backslashes; this is for FreeBSD.
  794.   file_substs=`sed -n \
  795. "/^ac_include/s%ac_include[     ]*\(.*\)%@e 'X@^&@r \1' -e 'X@^&@d'%p" \
  796.                $ac_given_srcdir/${ac_file}.in`
  797.   if test -n "$file_substs"; then
  798.     # Change @e back to -e and X@^ to \@^.
  799.     file_subst_cmd="sed `/bin/echo $file_substs \
  800.                          | sed -e 's/@e/-e/g' -e 's/X@^/\\\\\@^/g'`"
  801.   else
  802.     # If no substitutions and hence no sed commands, don't choke.
  803.     file_subst_cmd=cat
  804.   fi
  805.   # cd into the srcdir because the files being included more or less
  806.   # must be part of the distribution. I can't find any way to do
  807.   # variable substitution in the sed commands (so the user could have,
  808.   # e.g., $top_srcdir in their ac_include line).
  809.   (cd $ac_given_srcdir && eval $file_subst_cmd ${ac_file}.in) \
  810.   | sed -e "$ac_comsub
  811. s%@configure_input@%$configure_input%g
  812. s%@srcdir@%$srcdir%g
  813. s%@top_srcdir@%$top_srcdir%g
  814. s%@INSTALL@%$INSTALL%g
  815. " -f conftest.subs > $ac_file
  816. fi; done
  817. rm -f conftest.subs
  818.  
  819.  
  820.  
  821. exit 0
  822. EOF
  823. chmod +x $CONFIG_STATUS
  824. rm -fr confdefs* $ac_clean_files
  825. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
  826.  
  827. if test "$no_recursion" != yes; then
  828.  
  829.   # Remove --cache-file and --srcdir arguments so they do not pile up.
  830.   ac_sub_configure_args=
  831.   ac_prev=
  832.   for ac_arg in $ac_configure_args; do
  833.     if test -n "$ac_prev"; then
  834.       ac_prev=
  835.       continue
  836.     fi
  837.     case "$ac_arg" in
  838.     -cache-file | --cache-file | --cache-fil | --cache-fi \
  839.     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  840.       ac_prev=cache_file ;;
  841.     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  842.     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  843.       ;;
  844.     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  845.       ac_prev=srcdir ;;
  846.     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  847.       ;;
  848.     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
  849.     esac
  850.   done
  851.  
  852.   for ac_config_dir in kpathsea dviljk dvipsk web2c xdvik; do
  853.  
  854.     # Do not complain, so a configure script can configure whichever
  855.     # parts of a large source tree are present.
  856.     if test ! -d $srcdir/$ac_config_dir; then
  857.       continue
  858.     fi
  859.  
  860.     /bin/echo configuring in $ac_config_dir
  861.  
  862.     case "$srcdir" in
  863.     .) ;;
  864.     *)
  865.       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
  866.       else
  867.         { /bin/echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
  868.       fi
  869.       ;;
  870.     esac
  871.  
  872.     ac_popdir=`pwd`
  873.     cd $ac_config_dir
  874.  
  875.     case "$srcdir" in
  876.     .) # No --srcdir option.  We are building in place.
  877.       ac_sub_srcdir=$srcdir ;;
  878.     /*) # Absolute path.
  879.       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
  880.     *) # Relative path.
  881.       ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
  882.     esac
  883.  
  884.     # Check for guested configure; otherwise get Cygnus style configure.
  885.     if test -f $ac_sub_srcdir/configure; then
  886.       ac_sub_configure=$ac_sub_srcdir/configure
  887.     elif test -f $ac_sub_srcdir/configure.in; then
  888.       ac_sub_configure=$ac_configure
  889.     else
  890.       /bin/echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
  891.       ac_sub_configure=
  892.     fi
  893.  
  894.     # The recursion is here.
  895.     if test -n "$ac_sub_configure"; then
  896.  
  897.       # Make the cache file name correct relative to the subdirectory.
  898.       # A "../" for each directory in /$ac_config_dir.
  899.       ac_dots=`/bin/echo /$ac_config_dir|sed 's%/[^/]*%../%g'`
  900.       case "$cache_file" in
  901.       /*) ac_sub_cache_file=$cache_file ;;
  902.       *) # Relative path.
  903.         ac_sub_cache_file="$ac_dots$cache_file" ;;
  904.       esac
  905.  
  906.   case "$ac_given_INSTALL" in
  907.         [/$]*) INSTALL="$ac_given_INSTALL" ;;
  908.         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  909.         esac
  910.  
  911.       /bin/echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
  912.       # The eval makes quoting arguments work.
  913.       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
  914.       then :
  915.       else
  916.         { /bin/echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
  917.       fi
  918.     fi
  919.  
  920.     cd $ac_popdir
  921.   done
  922. fi
  923.  
  924.