home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Enlightenment / enl14.tgz / enl14.tar / enl14 / configure < prev    next >
Text File  |  1997-11-21  |  95KB  |  3,062 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.12 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-x                use the X Window System"
  16.  
  17. # Initialize some variables set by options.
  18. # The variables have the same names as the options, with
  19. # dashes changed to underlines.
  20. build=NONE
  21. cache_file=./config.cache
  22. exec_prefix=NONE
  23. host=NONE
  24. no_create=
  25. nonopt=NONE
  26. no_recursion=
  27. prefix=NONE
  28. program_prefix=NONE
  29. program_suffix=NONE
  30. program_transform_name=s,x,x,
  31. silent=
  32. site=
  33. srcdir=
  34. target=NONE
  35. verbose=
  36. x_includes=NONE
  37. x_libraries=NONE
  38. bindir='${exec_prefix}/bin'
  39. sbindir='${exec_prefix}/sbin'
  40. libexecdir='${exec_prefix}/libexec'
  41. datadir='${prefix}/share'
  42. sysconfdir='${prefix}/etc'
  43. sharedstatedir='${prefix}/com'
  44. localstatedir='${prefix}/var'
  45. libdir='${exec_prefix}/lib'
  46. includedir='${prefix}/include'
  47. oldincludedir='/usr/include'
  48. infodir='${prefix}/info'
  49. mandir='${prefix}/man'
  50.  
  51. # Initialize some other variables.
  52. subdirs=
  53. MFLAGS= MAKEFLAGS=
  54. # Maximum number of lines to put in a shell here document.
  55. ac_max_here_lines=12
  56.  
  57. ac_prev=
  58. for ac_option
  59. do
  60.  
  61.   # If the previous option needs an argument, assign it.
  62.   if test -n "$ac_prev"; then
  63.     eval "$ac_prev=\$ac_option"
  64.     ac_prev=
  65.     continue
  66.   fi
  67.  
  68.   case "$ac_option" in
  69.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  70.   *) ac_optarg= ;;
  71.   esac
  72.  
  73.   # Accept the important Cygnus configure options, so we can diagnose typos.
  74.  
  75.   case "$ac_option" in
  76.  
  77.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  78.     ac_prev=bindir ;;
  79.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  80.     bindir="$ac_optarg" ;;
  81.  
  82.   -build | --build | --buil | --bui | --bu)
  83.     ac_prev=build ;;
  84.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  85.     build="$ac_optarg" ;;
  86.  
  87.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  88.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  89.     ac_prev=cache_file ;;
  90.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  91.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  92.     cache_file="$ac_optarg" ;;
  93.  
  94.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  95.     ac_prev=datadir ;;
  96.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  97.   | --da=*)
  98.     datadir="$ac_optarg" ;;
  99.  
  100.   -disable-* | --disable-*)
  101.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  102.     # Reject names that are not valid shell variable names.
  103.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  104.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  105.     fi
  106.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  107.     eval "enable_${ac_feature}=no" ;;
  108.  
  109.   -enable-* | --enable-*)
  110.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  111.     # Reject names that are not valid shell variable names.
  112.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  113.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  114.     fi
  115.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  116.     case "$ac_option" in
  117.       *=*) ;;
  118.       *) ac_optarg=yes ;;
  119.     esac
  120.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  121.  
  122.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  123.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  124.   | --exec | --exe | --ex)
  125.     ac_prev=exec_prefix ;;
  126.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  127.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  128.   | --exec=* | --exe=* | --ex=*)
  129.     exec_prefix="$ac_optarg" ;;
  130.  
  131.   -gas | --gas | --ga | --g)
  132.     # Obsolete; use --with-gas.
  133.     with_gas=yes ;;
  134.  
  135.   -help | --help | --hel | --he)
  136.     # Omit some internal or obsolete options to make the list less imposing.
  137.     # This message is too long to be a string in the A/UX 3.1 sh.
  138.     cat << EOF
  139. Usage: configure [options] [host]
  140. Options: [defaults in brackets after descriptions]
  141. Configuration:
  142.   --cache-file=FILE       cache test results in FILE
  143.   --help                  print this message
  144.   --no-create             do not create output files
  145.   --quiet, --silent       do not print \`checking...' messages
  146.   --version               print the version of autoconf that created configure
  147. Directory and file names:
  148.   --prefix=PREFIX         install architecture-independent files in PREFIX
  149.                           [$ac_default_prefix]
  150.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  151.                           [same as prefix]
  152.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  153.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  154.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  155.   --datadir=DIR           read-only architecture-independent data in DIR
  156.                           [PREFIX/share]
  157.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  158.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  159.                           [PREFIX/com]
  160.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  161.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  162.   --includedir=DIR        C header files in DIR [PREFIX/include]
  163.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  164.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  165.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  166.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  167.   --program-prefix=PREFIX prepend PREFIX to installed program names
  168.   --program-suffix=SUFFIX append SUFFIX to installed program names
  169.   --program-transform-name=PROGRAM
  170.                           run sed PROGRAM on installed program names
  171. EOF
  172.     cat << EOF
  173. Host type:
  174.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  175.   --host=HOST             configure for HOST [guessed]
  176.   --target=TARGET         configure for TARGET [TARGET=HOST]
  177. Features and packages:
  178.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  179.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  180.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  181.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  182.   --x-includes=DIR        X include files are in DIR
  183.   --x-libraries=DIR       X library files are in DIR
  184. EOF
  185.     if test -n "$ac_help"; then
  186.       echo "--enable and --with options recognized:$ac_help"
  187.     fi
  188.     exit 0 ;;
  189.  
  190.   -host | --host | --hos | --ho)
  191.     ac_prev=host ;;
  192.   -host=* | --host=* | --hos=* | --ho=*)
  193.     host="$ac_optarg" ;;
  194.  
  195.   -includedir | --includedir | --includedi | --included | --include \
  196.   | --includ | --inclu | --incl | --inc)
  197.     ac_prev=includedir ;;
  198.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  199.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  200.     includedir="$ac_optarg" ;;
  201.  
  202.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  203.     ac_prev=infodir ;;
  204.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  205.     infodir="$ac_optarg" ;;
  206.  
  207.   -libdir | --libdir | --libdi | --libd)
  208.     ac_prev=libdir ;;
  209.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  210.     libdir="$ac_optarg" ;;
  211.  
  212.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  213.   | --libexe | --libex | --libe)
  214.     ac_prev=libexecdir ;;
  215.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  216.   | --libexe=* | --libex=* | --libe=*)
  217.     libexecdir="$ac_optarg" ;;
  218.  
  219.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  220.   | --localstate | --localstat | --localsta | --localst \
  221.   | --locals | --local | --loca | --loc | --lo)
  222.     ac_prev=localstatedir ;;
  223.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  224.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  225.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  226.     localstatedir="$ac_optarg" ;;
  227.  
  228.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  229.     ac_prev=mandir ;;
  230.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  231.     mandir="$ac_optarg" ;;
  232.  
  233.   -nfp | --nfp | --nf)
  234.     # Obsolete; use --without-fp.
  235.     with_fp=no ;;
  236.  
  237.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  238.   | --no-cr | --no-c)
  239.     no_create=yes ;;
  240.  
  241.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  242.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  243.     no_recursion=yes ;;
  244.  
  245.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  246.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  247.   | --oldin | --oldi | --old | --ol | --o)
  248.     ac_prev=oldincludedir ;;
  249.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  250.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  251.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  252.     oldincludedir="$ac_optarg" ;;
  253.  
  254.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  255.     ac_prev=prefix ;;
  256.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  257.     prefix="$ac_optarg" ;;
  258.  
  259.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  260.   | --program-pre | --program-pr | --program-p)
  261.     ac_prev=program_prefix ;;
  262.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  263.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  264.     program_prefix="$ac_optarg" ;;
  265.  
  266.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  267.   | --program-suf | --program-su | --program-s)
  268.     ac_prev=program_suffix ;;
  269.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  270.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  271.     program_suffix="$ac_optarg" ;;
  272.  
  273.   -program-transform-name | --program-transform-name \
  274.   | --program-transform-nam | --program-transform-na \
  275.   | --program-transform-n | --program-transform- \
  276.   | --program-transform | --program-transfor \
  277.   | --program-transfo | --program-transf \
  278.   | --program-trans | --program-tran \
  279.   | --progr-tra | --program-tr | --program-t)
  280.     ac_prev=program_transform_name ;;
  281.   -program-transform-name=* | --program-transform-name=* \
  282.   | --program-transform-nam=* | --program-transform-na=* \
  283.   | --program-transform-n=* | --program-transform-=* \
  284.   | --program-transform=* | --program-transfor=* \
  285.   | --program-transfo=* | --program-transf=* \
  286.   | --program-trans=* | --program-tran=* \
  287.   | --progr-tra=* | --program-tr=* | --program-t=*)
  288.     program_transform_name="$ac_optarg" ;;
  289.  
  290.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  291.   | -silent | --silent | --silen | --sile | --sil)
  292.     silent=yes ;;
  293.  
  294.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  295.     ac_prev=sbindir ;;
  296.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  297.   | --sbi=* | --sb=*)
  298.     sbindir="$ac_optarg" ;;
  299.  
  300.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  301.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  302.   | --sharedst | --shareds | --shared | --share | --shar \
  303.   | --sha | --sh)
  304.     ac_prev=sharedstatedir ;;
  305.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  306.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  307.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  308.   | --sha=* | --sh=*)
  309.     sharedstatedir="$ac_optarg" ;;
  310.  
  311.   -site | --site | --sit)
  312.     ac_prev=site ;;
  313.   -site=* | --site=* | --sit=*)
  314.     site="$ac_optarg" ;;
  315.  
  316.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  317.     ac_prev=srcdir ;;
  318.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  319.     srcdir="$ac_optarg" ;;
  320.  
  321.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  322.   | --syscon | --sysco | --sysc | --sys | --sy)
  323.     ac_prev=sysconfdir ;;
  324.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  325.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  326.     sysconfdir="$ac_optarg" ;;
  327.  
  328.   -target | --target | --targe | --targ | --tar | --ta | --t)
  329.     ac_prev=target ;;
  330.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  331.     target="$ac_optarg" ;;
  332.  
  333.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  334.     verbose=yes ;;
  335.  
  336.   -version | --version | --versio | --versi | --vers)
  337.     echo "configure generated by autoconf version 2.12"
  338.     exit 0 ;;
  339.  
  340.   -with-* | --with-*)
  341.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  342.     # Reject names that are not valid shell variable names.
  343.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  344.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  345.     fi
  346.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  347.     case "$ac_option" in
  348.       *=*) ;;
  349.       *) ac_optarg=yes ;;
  350.     esac
  351.     eval "with_${ac_package}='$ac_optarg'" ;;
  352.  
  353.   -without-* | --without-*)
  354.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  355.     # Reject names that are not valid shell variable names.
  356.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  357.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  358.     fi
  359.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  360.     eval "with_${ac_package}=no" ;;
  361.  
  362.   --x)
  363.     # Obsolete; use --with-x.
  364.     with_x=yes ;;
  365.  
  366.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  367.   | --x-incl | --x-inc | --x-in | --x-i)
  368.     ac_prev=x_includes ;;
  369.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  370.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  371.     x_includes="$ac_optarg" ;;
  372.  
  373.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  374.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  375.     ac_prev=x_libraries ;;
  376.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  377.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  378.     x_libraries="$ac_optarg" ;;
  379.  
  380.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  381.     ;;
  382.  
  383.   *)
  384.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  385.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  386.     fi
  387.     if test "x$nonopt" != xNONE; then
  388.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  389.     fi
  390.     nonopt="$ac_option"
  391.     ;;
  392.  
  393.   esac
  394. done
  395.  
  396. if test -n "$ac_prev"; then
  397.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  398. fi
  399.  
  400. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  401.  
  402. # File descriptor usage:
  403. # 0 standard input
  404. # 1 file creation
  405. # 2 errors and warnings
  406. # 3 some systems may open it to /dev/tty
  407. # 4 used on the Kubota Titan
  408. # 6 checking for... messages and results
  409. # 5 compiler messages saved in config.log
  410. if test "$silent" = yes; then
  411.   exec 6>/dev/null
  412. else
  413.   exec 6>&1
  414. fi
  415. exec 5>./config.log
  416.  
  417. echo "\
  418. This file contains any messages produced by compilers while
  419. running configure, to aid debugging if configure makes a mistake.
  420. " 1>&5
  421.  
  422. # Strip out --no-create and --no-recursion so they do not pile up.
  423. # Also quote any args containing shell metacharacters.
  424. ac_configure_args=
  425. for ac_arg
  426. do
  427.   case "$ac_arg" in
  428.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  429.   | --no-cr | --no-c) ;;
  430.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  432.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  433.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  434.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  435.   esac
  436. done
  437.  
  438. # NLS nuisances.
  439. # Only set these to C if already set.  These must not be set unconditionally
  440. # because not all systems understand e.g. LANG=C (notably SCO).
  441. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  442. # Non-C LC_CTYPE values break the ctype check.
  443. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  444. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  445. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  446. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  447.  
  448. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  449. rm -rf conftest* confdefs.h
  450. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  451. echo > confdefs.h
  452.  
  453. # A filename unique to this package, relative to the directory that
  454. # configure is in, which we can look for to find out if srcdir is correct.
  455. ac_unique_file=enl.h
  456.  
  457. # Find the source files, if location was not specified.
  458. if test -z "$srcdir"; then
  459.   ac_srcdir_defaulted=yes
  460.   # Try the directory containing this script, then its parent.
  461.   ac_prog=$0
  462.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  463.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  464.   srcdir=$ac_confdir
  465.   if test ! -r $srcdir/$ac_unique_file; then
  466.     srcdir=..
  467.   fi
  468. else
  469.   ac_srcdir_defaulted=no
  470. fi
  471. if test ! -r $srcdir/$ac_unique_file; then
  472.   if test "$ac_srcdir_defaulted" = yes; then
  473.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  474.   else
  475.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  476.   fi
  477. fi
  478. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  479.  
  480. # Prefer explicitly selected file to automatically selected ones.
  481. if test -z "$CONFIG_SITE"; then
  482.   if test "x$prefix" != xNONE; then
  483.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  484.   else
  485.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  486.   fi
  487. fi
  488. for ac_site_file in $CONFIG_SITE; do
  489.   if test -r "$ac_site_file"; then
  490.     echo "loading site script $ac_site_file"
  491.     . "$ac_site_file"
  492.   fi
  493. done
  494.  
  495. if test -r "$cache_file"; then
  496.   echo "loading cache $cache_file"
  497.   . $cache_file
  498. else
  499.   echo "creating cache $cache_file"
  500.   > $cache_file
  501. fi
  502.  
  503. ac_ext=c
  504. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  505. ac_cpp='$CPP $CPPFLAGS'
  506. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  507. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  508. cross_compiling=$ac_cv_prog_cc_cross
  509.  
  510. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  511.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  512.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  513.     ac_n= ac_c='
  514. ' ac_t='    '
  515.   else
  516.     ac_n=-n ac_c= ac_t=
  517.   fi
  518. else
  519.   ac_n= ac_c='\c' ac_t=
  520. fi
  521.  
  522.  
  523. clear
  524. echo "
  525. --------------------------------------------------------------------------------
  526.  
  527.    E     N     L     I     G     H     T     E     N     M     E     N     T 
  528.    
  529. --------------------------------------------------------------------------------
  530. Configuring Enlightenment, preparing Makefile for compilation.
  531. --------------------------------------------------------------------------------
  532. "
  533. sleep 3
  534. clear
  535.  
  536. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  537. echo "configure:538: checking whether ${MAKE-make} sets \${MAKE}" >&5
  538. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  539. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  540.   echo $ac_n "(cached) $ac_c" 1>&6
  541. else
  542.   cat > conftestmake <<\EOF
  543. all:
  544.     @echo 'ac_maketemp="${MAKE}"'
  545. EOF
  546. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  547. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  548. if test -n "$ac_maketemp"; then
  549.   eval ac_cv_prog_make_${ac_make}_set=yes
  550. else
  551.   eval ac_cv_prog_make_${ac_make}_set=no
  552. fi
  553. rm -f conftestmake
  554. fi
  555. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  556.   echo "$ac_t""yes" 1>&6
  557.   SET_MAKE=
  558. else
  559.   echo "$ac_t""no" 1>&6
  560.   SET_MAKE="MAKE=${MAKE-make}"
  561. fi
  562.  
  563. # Extract the first word of "gcc", so it can be a program name with args.
  564. set dummy gcc; ac_word=$2
  565. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  566. echo "configure:567: checking for $ac_word" >&5
  567. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  568.   echo $ac_n "(cached) $ac_c" 1>&6
  569. else
  570.   if test -n "$CC"; then
  571.   ac_cv_prog_CC="$CC" # Let the user override the test.
  572. else
  573.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  574.   for ac_dir in $PATH; do
  575.     test -z "$ac_dir" && ac_dir=.
  576.     if test -f $ac_dir/$ac_word; then
  577.       ac_cv_prog_CC="gcc"
  578.       break
  579.     fi
  580.   done
  581.   IFS="$ac_save_ifs"
  582. fi
  583. fi
  584. CC="$ac_cv_prog_CC"
  585. if test -n "$CC"; then
  586.   echo "$ac_t""$CC" 1>&6
  587. else
  588.   echo "$ac_t""no" 1>&6
  589. fi
  590.  
  591. if test -z "$CC"; then
  592.   # Extract the first word of "cc", so it can be a program name with args.
  593. set dummy cc; ac_word=$2
  594. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  595. echo "configure:596: checking for $ac_word" >&5
  596. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  597.   echo $ac_n "(cached) $ac_c" 1>&6
  598. else
  599.   if test -n "$CC"; then
  600.   ac_cv_prog_CC="$CC" # Let the user override the test.
  601. else
  602.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  603.   ac_prog_rejected=no
  604.   for ac_dir in $PATH; do
  605.     test -z "$ac_dir" && ac_dir=.
  606.     if test -f $ac_dir/$ac_word; then
  607.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  608.         ac_prog_rejected=yes
  609.     continue
  610.       fi
  611.       ac_cv_prog_CC="cc"
  612.       break
  613.     fi
  614.   done
  615.   IFS="$ac_save_ifs"
  616. if test $ac_prog_rejected = yes; then
  617.   # We found a bogon in the path, so make sure we never use it.
  618.   set dummy $ac_cv_prog_CC
  619.   shift
  620.   if test $# -gt 0; then
  621.     # We chose a different compiler from the bogus one.
  622.     # However, it has the same basename, so the bogon will be chosen
  623.     # first if we set CC to just the basename; use the full file name.
  624.     shift
  625.     set dummy "$ac_dir/$ac_word" "$@"
  626.     shift
  627.     ac_cv_prog_CC="$@"
  628.   fi
  629. fi
  630. fi
  631. fi
  632. CC="$ac_cv_prog_CC"
  633. if test -n "$CC"; then
  634.   echo "$ac_t""$CC" 1>&6
  635. else
  636.   echo "$ac_t""no" 1>&6
  637. fi
  638.  
  639.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  640. fi
  641.  
  642. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  643. echo "configure:644: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  644.  
  645. ac_ext=c
  646. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  647. ac_cpp='$CPP $CPPFLAGS'
  648. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  649. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  650. cross_compiling=$ac_cv_prog_cc_cross
  651.  
  652. cat > conftest.$ac_ext <<EOF
  653. #line 654 "configure"
  654. #include "confdefs.h"
  655. main(){return(0);}
  656. EOF
  657. if { (eval echo configure:658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  658.   ac_cv_prog_cc_works=yes
  659.   # If we can't run a trivial program, we are probably using a cross compiler.
  660.   if (./conftest; exit) 2>/dev/null; then
  661.     ac_cv_prog_cc_cross=no
  662.   else
  663.     ac_cv_prog_cc_cross=yes
  664.   fi
  665. else
  666.   echo "configure: failed program was:" >&5
  667.   cat conftest.$ac_ext >&5
  668.   ac_cv_prog_cc_works=no
  669. fi
  670. rm -fr conftest*
  671.  
  672. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  673. if test $ac_cv_prog_cc_works = no; then
  674.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  675. fi
  676. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  677. echo "configure:678: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  678. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  679. cross_compiling=$ac_cv_prog_cc_cross
  680.  
  681. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  682. echo "configure:683: checking whether we are using GNU C" >&5
  683. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  684.   echo $ac_n "(cached) $ac_c" 1>&6
  685. else
  686.   cat > conftest.c <<EOF
  687. #ifdef __GNUC__
  688.   yes;
  689. #endif
  690. EOF
  691. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  692.   ac_cv_prog_gcc=yes
  693. else
  694.   ac_cv_prog_gcc=no
  695. fi
  696. fi
  697.  
  698. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  699.  
  700. if test $ac_cv_prog_gcc = yes; then
  701.   GCC=yes
  702.   ac_test_CFLAGS="${CFLAGS+set}"
  703.   ac_save_CFLAGS="$CFLAGS"
  704.   CFLAGS=
  705.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  706. echo "configure:707: checking whether ${CC-cc} accepts -g" >&5
  707. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  708.   echo $ac_n "(cached) $ac_c" 1>&6
  709. else
  710.   echo 'void f(){}' > conftest.c
  711. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  712.   ac_cv_prog_cc_g=yes
  713. else
  714.   ac_cv_prog_cc_g=no
  715. fi
  716. rm -f conftest*
  717.  
  718. fi
  719.  
  720. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  721.   if test "$ac_test_CFLAGS" = set; then
  722.     CFLAGS="$ac_save_CFLAGS"
  723.   elif test $ac_cv_prog_cc_g = yes; then
  724.     CFLAGS="-g -O2"
  725.   else
  726.     CFLAGS="-O2"
  727.   fi
  728. else
  729.   GCC=
  730.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  731. fi
  732.  
  733. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  734. echo "configure:735: checking how to run the C preprocessor" >&5
  735. # On Suns, sometimes $CPP names a directory.
  736. if test -n "$CPP" && test -d "$CPP"; then
  737.   CPP=
  738. fi
  739. if test -z "$CPP"; then
  740. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  741.   echo $ac_n "(cached) $ac_c" 1>&6
  742. else
  743.     # This must be in double quotes, not single quotes, because CPP may get
  744.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  745.   CPP="${CC-cc} -E"
  746.   # On the NeXT, cc -E runs the code through the compiler's parser,
  747.   # not just through cpp.
  748.   cat > conftest.$ac_ext <<EOF
  749. #line 750 "configure"
  750. #include "confdefs.h"
  751. #include <assert.h>
  752. Syntax Error
  753. EOF
  754. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  755. { (eval echo configure:756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  756. ac_err=`grep -v '^ *+' conftest.out`
  757. if test -z "$ac_err"; then
  758.   :
  759. else
  760.   echo "$ac_err" >&5
  761.   echo "configure: failed program was:" >&5
  762.   cat conftest.$ac_ext >&5
  763.   rm -rf conftest*
  764.   CPP="${CC-cc} -E -traditional-cpp"
  765.   cat > conftest.$ac_ext <<EOF
  766. #line 767 "configure"
  767. #include "confdefs.h"
  768. #include <assert.h>
  769. Syntax Error
  770. EOF
  771. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  772. { (eval echo configure:773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  773. ac_err=`grep -v '^ *+' conftest.out`
  774. if test -z "$ac_err"; then
  775.   :
  776. else
  777.   echo "$ac_err" >&5
  778.   echo "configure: failed program was:" >&5
  779.   cat conftest.$ac_ext >&5
  780.   rm -rf conftest*
  781.   CPP=/lib/cpp
  782. fi
  783. rm -f conftest*
  784. fi
  785. rm -f conftest*
  786.   ac_cv_prog_CPP="$CPP"
  787. fi
  788.   CPP="$ac_cv_prog_CPP"
  789. else
  790.   ac_cv_prog_CPP="$CPP"
  791. fi
  792. echo "$ac_t""$CPP" 1>&6
  793.  
  794. ac_aux_dir=
  795. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  796.   if test -f $ac_dir/install-sh; then
  797.     ac_aux_dir=$ac_dir
  798.     ac_install_sh="$ac_aux_dir/install-sh -c"
  799.     break
  800.   elif test -f $ac_dir/install.sh; then
  801.     ac_aux_dir=$ac_dir
  802.     ac_install_sh="$ac_aux_dir/install.sh -c"
  803.     break
  804.   fi
  805. done
  806. if test -z "$ac_aux_dir"; then
  807.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  808. fi
  809. ac_config_guess=$ac_aux_dir/config.guess
  810. ac_config_sub=$ac_aux_dir/config.sub
  811. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  812.  
  813. # Find a good install program.  We prefer a C program (faster),
  814. # so one script is as good as another.  But avoid the broken or
  815. # incompatible versions:
  816. # SysV /etc/install, /usr/sbin/install
  817. # SunOS /usr/etc/install
  818. # IRIX /sbin/install
  819. # AIX /bin/install
  820. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  821. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  822. # ./install, which can be erroneously created by make from ./install.sh.
  823. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  824. echo "configure:825: checking for a BSD compatible install" >&5
  825. if test -z "$INSTALL"; then
  826. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  827.   echo $ac_n "(cached) $ac_c" 1>&6
  828. else
  829.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  830.   for ac_dir in $PATH; do
  831.     # Account for people who put trailing slashes in PATH elements.
  832.     case "$ac_dir/" in
  833.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  834.     *)
  835.       # OSF1 and SCO ODT 3.0 have their own names for install.
  836.       for ac_prog in ginstall installbsd scoinst install; do
  837.         if test -f $ac_dir/$ac_prog; then
  838.       if test $ac_prog = install &&
  839.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  840.         # AIX install.  It has an incompatible calling convention.
  841.         # OSF/1 installbsd also uses dspmsg, but is usable.
  842.         :
  843.       else
  844.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  845.         break 2
  846.       fi
  847.     fi
  848.       done
  849.       ;;
  850.     esac
  851.   done
  852.   IFS="$ac_save_IFS"
  853.  
  854. fi
  855.   if test "${ac_cv_path_install+set}" = set; then
  856.     INSTALL="$ac_cv_path_install"
  857.   else
  858.     # As a last resort, use the slow shell script.  We don't cache a
  859.     # path for INSTALL within a source directory, because that will
  860.     # break other packages using the cache if that directory is
  861.     # removed, or if the path is relative.
  862.     INSTALL="$ac_install_sh"
  863.   fi
  864. fi
  865. echo "$ac_t""$INSTALL" 1>&6
  866.  
  867. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  868. # It thinks the first close brace ends the variable substitution.
  869. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  870.  
  871. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  872.  
  873. # If we find X, set shell vars x_includes and x_libraries to the
  874. # paths, otherwise set no_x=yes.
  875. # Uses ac_ vars as temps to allow command line to override cache and checks.
  876. # --without-x overrides everything else, but does not touch the cache.
  877. echo $ac_n "checking for X""... $ac_c" 1>&6
  878. echo "configure:879: checking for X" >&5
  879.  
  880. # Check whether --with-x or --without-x was given.
  881. if test "${with_x+set}" = set; then
  882.   withval="$with_x"
  883.   :
  884. fi
  885.  
  886. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  887. if test "x$with_x" = xno; then
  888.   # The user explicitly disabled X.
  889.   have_x=disabled
  890. else
  891.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  892.     # Both variables are already set.
  893.     have_x=yes
  894.   else
  895. if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  896.   echo $ac_n "(cached) $ac_c" 1>&6
  897. else
  898.   # One or both of the vars are not set, and there is no cached value.
  899. ac_x_includes=NO ac_x_libraries=NO
  900. rm -fr conftestdir
  901. if mkdir conftestdir; then
  902.   cd conftestdir
  903.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  904.   cat > Imakefile <<'EOF'
  905. acfindx:
  906.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  907. EOF
  908.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  909.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  910.     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  911.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  912.     for ac_extension in a so sl; do
  913.       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  914.         test -f $ac_im_libdir/libX11.$ac_extension; then
  915.         ac_im_usrlibdir=$ac_im_libdir; break
  916.       fi
  917.     done
  918.     # Screen out bogus values from the imake configuration.  They are
  919.     # bogus both because they are the default anyway, and because
  920.     # using them would break gcc on systems where it needs fixed includes.
  921.     case "$ac_im_incroot" in
  922.     /usr/include) ;;
  923.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  924.     esac
  925.     case "$ac_im_usrlibdir" in
  926.     /usr/lib | /lib) ;;
  927.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  928.     esac
  929.   fi
  930.   cd ..
  931.   rm -fr conftestdir
  932. fi
  933.  
  934. if test "$ac_x_includes" = NO; then
  935.   # Guess where to find include files, by looking for this one X11 .h file.
  936.   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  937.  
  938.   # First, try using that file with no special directory specified.
  939. cat > conftest.$ac_ext <<EOF
  940. #line 941 "configure"
  941. #include "confdefs.h"
  942. #include <$x_direct_test_include>
  943. EOF
  944. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  945. { (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  946. ac_err=`grep -v '^ *+' conftest.out`
  947. if test -z "$ac_err"; then
  948.   rm -rf conftest*
  949.   # We can compile using X headers with no special include directory.
  950. ac_x_includes=
  951. else
  952.   echo "$ac_err" >&5
  953.   echo "configure: failed program was:" >&5
  954.   cat conftest.$ac_ext >&5
  955.   rm -rf conftest*
  956.   # Look for the header file in a standard set of common directories.
  957. # Check X11 before X11Rn because it is often a symlink to the current release.
  958.   for ac_dir in               \
  959.     /usr/X11/include          \
  960.     /usr/X11R6/include        \
  961.     /usr/X11R5/include        \
  962.     /usr/X11R4/include        \
  963.                               \
  964.     /usr/include/X11          \
  965.     /usr/include/X11R6        \
  966.     /usr/include/X11R5        \
  967.     /usr/include/X11R4        \
  968.                               \
  969.     /usr/local/X11/include    \
  970.     /usr/local/X11R6/include  \
  971.     /usr/local/X11R5/include  \
  972.     /usr/local/X11R4/include  \
  973.                               \
  974.     /usr/local/include/X11    \
  975.     /usr/local/include/X11R6  \
  976.     /usr/local/include/X11R5  \
  977.     /usr/local/include/X11R4  \
  978.                               \
  979.     /usr/X386/include         \
  980.     /usr/x386/include         \
  981.     /usr/XFree86/include/X11  \
  982.                               \
  983.     /usr/include              \
  984.     /usr/local/include        \
  985.     /usr/unsupported/include  \
  986.     /usr/athena/include       \
  987.     /usr/local/x11r5/include  \
  988.     /usr/lpp/Xamples/include  \
  989.                               \
  990.     /usr/openwin/include      \
  991.     /usr/openwin/share/include \
  992.     ; \
  993.   do
  994.     if test -r "$ac_dir/$x_direct_test_include"; then
  995.       ac_x_includes=$ac_dir
  996.       break
  997.     fi
  998.   done
  999. fi
  1000. rm -f conftest*
  1001. fi # $ac_x_includes = NO
  1002.  
  1003. if test "$ac_x_libraries" = NO; then
  1004.   # Check for the libraries.
  1005.  
  1006.   test -z "$x_direct_test_library" && x_direct_test_library=Xt
  1007.   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  1008.  
  1009.   # See if we find them without any special options.
  1010.   # Don't add to $LIBS permanently.
  1011.   ac_save_LIBS="$LIBS"
  1012.   LIBS="-l$x_direct_test_library $LIBS"
  1013. cat > conftest.$ac_ext <<EOF
  1014. #line 1015 "configure"
  1015. #include "confdefs.h"
  1016.  
  1017. int main() {
  1018. ${x_direct_test_function}()
  1019. ; return 0; }
  1020. EOF
  1021. if { (eval echo configure:1022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1022.   rm -rf conftest*
  1023.   LIBS="$ac_save_LIBS"
  1024. # We can link X programs with no special library path.
  1025. ac_x_libraries=
  1026. else
  1027.   echo "configure: failed program was:" >&5
  1028.   cat conftest.$ac_ext >&5
  1029.   rm -rf conftest*
  1030.   LIBS="$ac_save_LIBS"
  1031. # First see if replacing the include by lib works.
  1032. # Check X11 before X11Rn because it is often a symlink to the current release.
  1033. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  1034.     /usr/X11/lib          \
  1035.     /usr/X11R6/lib        \
  1036.     /usr/X11R5/lib        \
  1037.     /usr/X11R4/lib        \
  1038.                           \
  1039.     /usr/lib/X11          \
  1040.     /usr/lib/X11R6        \
  1041.     /usr/lib/X11R5        \
  1042.     /usr/lib/X11R4        \
  1043.                           \
  1044.     /usr/local/X11/lib    \
  1045.     /usr/local/X11R6/lib  \
  1046.     /usr/local/X11R5/lib  \
  1047.     /usr/local/X11R4/lib  \
  1048.                           \
  1049.     /usr/local/lib/X11    \
  1050.     /usr/local/lib/X11R6  \
  1051.     /usr/local/lib/X11R5  \
  1052.     /usr/local/lib/X11R4  \
  1053.                           \
  1054.     /usr/X386/lib         \
  1055.     /usr/x386/lib         \
  1056.     /usr/XFree86/lib/X11  \
  1057.                           \
  1058.     /usr/lib              \
  1059.     /usr/local/lib        \
  1060.     /usr/unsupported/lib  \
  1061.     /usr/athena/lib       \
  1062.     /usr/local/x11r5/lib  \
  1063.     /usr/lpp/Xamples/lib  \
  1064.     /lib/usr/lib/X11      \
  1065.                           \
  1066.     /usr/openwin/lib      \
  1067.     /usr/openwin/share/lib \
  1068.     ; \
  1069. do
  1070.   for ac_extension in a so sl; do
  1071.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  1072.       ac_x_libraries=$ac_dir
  1073.       break 2
  1074.     fi
  1075.   done
  1076. done
  1077. fi
  1078. rm -f conftest*
  1079. fi # $ac_x_libraries = NO
  1080.  
  1081. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  1082.   # Didn't find X anywhere.  Cache the known absence of X.
  1083.   ac_cv_have_x="have_x=no"
  1084. else
  1085.   # Record where we found X for the cache.
  1086.   ac_cv_have_x="have_x=yes \
  1087.             ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  1088. fi
  1089. fi
  1090.   fi
  1091.   eval "$ac_cv_have_x"
  1092. fi # $with_x != no
  1093.  
  1094. if test "$have_x" != yes; then
  1095.   echo "$ac_t""$have_x" 1>&6
  1096.   no_x=yes
  1097. else
  1098.   # If each of the values was on the command line, it overrides each guess.
  1099.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  1100.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  1101.   # Update the cache value to reflect the command line values.
  1102.   ac_cv_have_x="have_x=yes \
  1103.         ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  1104.   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  1105. fi
  1106.  
  1107. if test "$no_x" = yes; then
  1108.   # Not all programs may use this symbol, but it does not hurt to define it.
  1109.   cat >> confdefs.h <<\EOF
  1110. #define X_DISPLAY_MISSING 1
  1111. EOF
  1112.  
  1113.   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  1114. else
  1115.   if test -n "$x_includes"; then
  1116.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  1117.   fi
  1118.  
  1119.   # It would also be nice to do this for all -L options, not just this one.
  1120.   if test -n "$x_libraries"; then
  1121.     X_LIBS="$X_LIBS -L$x_libraries"
  1122.     # For Solaris; some versions of Sun CC require a space after -R and
  1123.     # others require no space.  Words are not sufficient . . . .
  1124.     case "`(uname -sr) 2>/dev/null`" in
  1125.     "SunOS 5"*)
  1126.       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  1127. echo "configure:1128: checking whether -R must be followed by a space" >&5
  1128.       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  1129.       cat > conftest.$ac_ext <<EOF
  1130. #line 1131 "configure"
  1131. #include "confdefs.h"
  1132.  
  1133. int main() {
  1134.  
  1135. ; return 0; }
  1136. EOF
  1137. if { (eval echo configure:1138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1138.   rm -rf conftest*
  1139.   ac_R_nospace=yes
  1140. else
  1141.   echo "configure: failed program was:" >&5
  1142.   cat conftest.$ac_ext >&5
  1143.   rm -rf conftest*
  1144.   ac_R_nospace=no
  1145. fi
  1146. rm -f conftest*
  1147.       if test $ac_R_nospace = yes; then
  1148.     echo "$ac_t""no" 1>&6
  1149.     X_LIBS="$X_LIBS -R$x_libraries"
  1150.       else
  1151.     LIBS="$ac_xsave_LIBS -R $x_libraries"
  1152.     cat > conftest.$ac_ext <<EOF
  1153. #line 1154 "configure"
  1154. #include "confdefs.h"
  1155.  
  1156. int main() {
  1157.  
  1158. ; return 0; }
  1159. EOF
  1160. if { (eval echo configure:1161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1161.   rm -rf conftest*
  1162.   ac_R_space=yes
  1163. else
  1164.   echo "configure: failed program was:" >&5
  1165.   cat conftest.$ac_ext >&5
  1166.   rm -rf conftest*
  1167.   ac_R_space=no
  1168. fi
  1169. rm -f conftest*
  1170.     if test $ac_R_space = yes; then
  1171.       echo "$ac_t""yes" 1>&6
  1172.       X_LIBS="$X_LIBS -R $x_libraries"
  1173.     else
  1174.       echo "$ac_t""neither works" 1>&6
  1175.     fi
  1176.       fi
  1177.       LIBS="$ac_xsave_LIBS"
  1178.     esac
  1179.   fi
  1180.  
  1181.   # Check for system-dependent libraries X programs must link with.
  1182.   # Do this before checking for the system-independent R6 libraries
  1183.   # (-lICE), since we may need -lsocket or whatever for X linking.
  1184.  
  1185.   if test "$ISC" = yes; then
  1186.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  1187.   else
  1188.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  1189.     # libraries were built with DECnet support.  And karl@cs.umb.edu says
  1190.     # the Alpha needs dnet_stub (dnet does not exist).
  1191.     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  1192. echo "configure:1193: checking for dnet_ntoa in -ldnet" >&5
  1193. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  1194. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1195.   echo $ac_n "(cached) $ac_c" 1>&6
  1196. else
  1197.   ac_save_LIBS="$LIBS"
  1198. LIBS="-ldnet  $LIBS"
  1199. cat > conftest.$ac_ext <<EOF
  1200. #line 1201 "configure"
  1201. #include "confdefs.h"
  1202. /* Override any gcc2 internal prototype to avoid an error.  */
  1203. /* We use char because int might match the return type of a gcc2
  1204.     builtin and then its argument prototype would still apply.  */
  1205. char dnet_ntoa();
  1206.  
  1207. int main() {
  1208. dnet_ntoa()
  1209. ; return 0; }
  1210. EOF
  1211. if { (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1212.   rm -rf conftest*
  1213.   eval "ac_cv_lib_$ac_lib_var=yes"
  1214. else
  1215.   echo "configure: failed program was:" >&5
  1216.   cat conftest.$ac_ext >&5
  1217.   rm -rf conftest*
  1218.   eval "ac_cv_lib_$ac_lib_var=no"
  1219. fi
  1220. rm -f conftest*
  1221. LIBS="$ac_save_LIBS"
  1222.  
  1223. fi
  1224. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1225.   echo "$ac_t""yes" 1>&6
  1226.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  1227. else
  1228.   echo "$ac_t""no" 1>&6
  1229. fi
  1230.  
  1231.     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  1232.       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  1233. echo "configure:1234: checking for dnet_ntoa in -ldnet_stub" >&5
  1234. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  1235. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1236.   echo $ac_n "(cached) $ac_c" 1>&6
  1237. else
  1238.   ac_save_LIBS="$LIBS"
  1239. LIBS="-ldnet_stub  $LIBS"
  1240. cat > conftest.$ac_ext <<EOF
  1241. #line 1242 "configure"
  1242. #include "confdefs.h"
  1243. /* Override any gcc2 internal prototype to avoid an error.  */
  1244. /* We use char because int might match the return type of a gcc2
  1245.     builtin and then its argument prototype would still apply.  */
  1246. char dnet_ntoa();
  1247.  
  1248. int main() {
  1249. dnet_ntoa()
  1250. ; return 0; }
  1251. EOF
  1252. if { (eval echo configure:1253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1253.   rm -rf conftest*
  1254.   eval "ac_cv_lib_$ac_lib_var=yes"
  1255. else
  1256.   echo "configure: failed program was:" >&5
  1257.   cat conftest.$ac_ext >&5
  1258.   rm -rf conftest*
  1259.   eval "ac_cv_lib_$ac_lib_var=no"
  1260. fi
  1261. rm -f conftest*
  1262. LIBS="$ac_save_LIBS"
  1263.  
  1264. fi
  1265. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1266.   echo "$ac_t""yes" 1>&6
  1267.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  1268. else
  1269.   echo "$ac_t""no" 1>&6
  1270. fi
  1271.  
  1272.     fi
  1273.  
  1274.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  1275.     # to get the SysV transport functions.
  1276.     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  1277.     # needs -lnsl.
  1278.     # The nsl library prevents programs from opening the X display
  1279.     # on Irix 5.2, according to dickey@clark.net.
  1280.     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  1281. echo "configure:1282: checking for gethostbyname" >&5
  1282. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  1283.   echo $ac_n "(cached) $ac_c" 1>&6
  1284. else
  1285.   cat > conftest.$ac_ext <<EOF
  1286. #line 1287 "configure"
  1287. #include "confdefs.h"
  1288. /* System header to define __stub macros and hopefully few prototypes,
  1289.     which can conflict with char gethostbyname(); below.  */
  1290. #include <assert.h>
  1291. /* Override any gcc2 internal prototype to avoid an error.  */
  1292. /* We use char because int might match the return type of a gcc2
  1293.     builtin and then its argument prototype would still apply.  */
  1294. char gethostbyname();
  1295.  
  1296. int main() {
  1297.  
  1298. /* The GNU C library defines this for functions which it implements
  1299.     to always fail with ENOSYS.  Some functions are actually named
  1300.     something starting with __ and the normal name is an alias.  */
  1301. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  1302. choke me
  1303. #else
  1304. gethostbyname();
  1305. #endif
  1306.  
  1307. ; return 0; }
  1308. EOF
  1309. if { (eval echo configure:1310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1310.   rm -rf conftest*
  1311.   eval "ac_cv_func_gethostbyname=yes"
  1312. else
  1313.   echo "configure: failed program was:" >&5
  1314.   cat conftest.$ac_ext >&5
  1315.   rm -rf conftest*
  1316.   eval "ac_cv_func_gethostbyname=no"
  1317. fi
  1318. rm -f conftest*
  1319. fi
  1320.  
  1321. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  1322.   echo "$ac_t""yes" 1>&6
  1323.   :
  1324. else
  1325.   echo "$ac_t""no" 1>&6
  1326. fi
  1327.  
  1328.     if test $ac_cv_func_gethostbyname = no; then
  1329.       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  1330. echo "configure:1331: checking for gethostbyname in -lnsl" >&5
  1331. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  1332. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1333.   echo $ac_n "(cached) $ac_c" 1>&6
  1334. else
  1335.   ac_save_LIBS="$LIBS"
  1336. LIBS="-lnsl  $LIBS"
  1337. cat > conftest.$ac_ext <<EOF
  1338. #line 1339 "configure"
  1339. #include "confdefs.h"
  1340. /* Override any gcc2 internal prototype to avoid an error.  */
  1341. /* We use char because int might match the return type of a gcc2
  1342.     builtin and then its argument prototype would still apply.  */
  1343. char gethostbyname();
  1344.  
  1345. int main() {
  1346. gethostbyname()
  1347. ; return 0; }
  1348. EOF
  1349. if { (eval echo configure:1350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1350.   rm -rf conftest*
  1351.   eval "ac_cv_lib_$ac_lib_var=yes"
  1352. else
  1353.   echo "configure: failed program was:" >&5
  1354.   cat conftest.$ac_ext >&5
  1355.   rm -rf conftest*
  1356.   eval "ac_cv_lib_$ac_lib_var=no"
  1357. fi
  1358. rm -f conftest*
  1359. LIBS="$ac_save_LIBS"
  1360.  
  1361. fi
  1362. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1363.   echo "$ac_t""yes" 1>&6
  1364.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  1365. else
  1366.   echo "$ac_t""no" 1>&6
  1367. fi
  1368.  
  1369.     fi
  1370.  
  1371.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  1372.     # socket/setsockopt and other routines are undefined under SCO ODT
  1373.     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
  1374.     # on later versions), says simon@lia.di.epfl.ch: it contains
  1375.     # gethostby* variants that don't use the nameserver (or something).
  1376.     # -lsocket must be given before -lnsl if both are needed.
  1377.     # We assume that if connect needs -lnsl, so does gethostbyname.
  1378.     echo $ac_n "checking for connect""... $ac_c" 1>&6
  1379. echo "configure:1380: checking for connect" >&5
  1380. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  1381.   echo $ac_n "(cached) $ac_c" 1>&6
  1382. else
  1383.   cat > conftest.$ac_ext <<EOF
  1384. #line 1385 "configure"
  1385. #include "confdefs.h"
  1386. /* System header to define __stub macros and hopefully few prototypes,
  1387.     which can conflict with char connect(); below.  */
  1388. #include <assert.h>
  1389. /* Override any gcc2 internal prototype to avoid an error.  */
  1390. /* We use char because int might match the return type of a gcc2
  1391.     builtin and then its argument prototype would still apply.  */
  1392. char connect();
  1393.  
  1394. int main() {
  1395.  
  1396. /* The GNU C library defines this for functions which it implements
  1397.     to always fail with ENOSYS.  Some functions are actually named
  1398.     something starting with __ and the normal name is an alias.  */
  1399. #if defined (__stub_connect) || defined (__stub___connect)
  1400. choke me
  1401. #else
  1402. connect();
  1403. #endif
  1404.  
  1405. ; return 0; }
  1406. EOF
  1407. if { (eval echo configure:1408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1408.   rm -rf conftest*
  1409.   eval "ac_cv_func_connect=yes"
  1410. else
  1411.   echo "configure: failed program was:" >&5
  1412.   cat conftest.$ac_ext >&5
  1413.   rm -rf conftest*
  1414.   eval "ac_cv_func_connect=no"
  1415. fi
  1416. rm -f conftest*
  1417. fi
  1418.  
  1419. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  1420.   echo "$ac_t""yes" 1>&6
  1421.   :
  1422. else
  1423.   echo "$ac_t""no" 1>&6
  1424. fi
  1425.  
  1426.     if test $ac_cv_func_connect = no; then
  1427.       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  1428. echo "configure:1429: checking for connect in -lsocket" >&5
  1429. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  1430. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1431.   echo $ac_n "(cached) $ac_c" 1>&6
  1432. else
  1433.   ac_save_LIBS="$LIBS"
  1434. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  1435. cat > conftest.$ac_ext <<EOF
  1436. #line 1437 "configure"
  1437. #include "confdefs.h"
  1438. /* Override any gcc2 internal prototype to avoid an error.  */
  1439. /* We use char because int might match the return type of a gcc2
  1440.     builtin and then its argument prototype would still apply.  */
  1441. char connect();
  1442.  
  1443. int main() {
  1444. connect()
  1445. ; return 0; }
  1446. EOF
  1447. if { (eval echo configure:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1448.   rm -rf conftest*
  1449.   eval "ac_cv_lib_$ac_lib_var=yes"
  1450. else
  1451.   echo "configure: failed program was:" >&5
  1452.   cat conftest.$ac_ext >&5
  1453.   rm -rf conftest*
  1454.   eval "ac_cv_lib_$ac_lib_var=no"
  1455. fi
  1456. rm -f conftest*
  1457. LIBS="$ac_save_LIBS"
  1458.  
  1459. fi
  1460. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1461.   echo "$ac_t""yes" 1>&6
  1462.   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  1463. else
  1464.   echo "$ac_t""no" 1>&6
  1465. fi
  1466.  
  1467.     fi
  1468.  
  1469.     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  1470.     echo $ac_n "checking for remove""... $ac_c" 1>&6
  1471. echo "configure:1472: checking for remove" >&5
  1472. if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  1473.   echo $ac_n "(cached) $ac_c" 1>&6
  1474. else
  1475.   cat > conftest.$ac_ext <<EOF
  1476. #line 1477 "configure"
  1477. #include "confdefs.h"
  1478. /* System header to define __stub macros and hopefully few prototypes,
  1479.     which can conflict with char remove(); below.  */
  1480. #include <assert.h>
  1481. /* Override any gcc2 internal prototype to avoid an error.  */
  1482. /* We use char because int might match the return type of a gcc2
  1483.     builtin and then its argument prototype would still apply.  */
  1484. char remove();
  1485.  
  1486. int main() {
  1487.  
  1488. /* The GNU C library defines this for functions which it implements
  1489.     to always fail with ENOSYS.  Some functions are actually named
  1490.     something starting with __ and the normal name is an alias.  */
  1491. #if defined (__stub_remove) || defined (__stub___remove)
  1492. choke me
  1493. #else
  1494. remove();
  1495. #endif
  1496.  
  1497. ; return 0; }
  1498. EOF
  1499. if { (eval echo configure:1500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1500.   rm -rf conftest*
  1501.   eval "ac_cv_func_remove=yes"
  1502. else
  1503.   echo "configure: failed program was:" >&5
  1504.   cat conftest.$ac_ext >&5
  1505.   rm -rf conftest*
  1506.   eval "ac_cv_func_remove=no"
  1507. fi
  1508. rm -f conftest*
  1509. fi
  1510.  
  1511. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  1512.   echo "$ac_t""yes" 1>&6
  1513.   :
  1514. else
  1515.   echo "$ac_t""no" 1>&6
  1516. fi
  1517.  
  1518.     if test $ac_cv_func_remove = no; then
  1519.       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  1520. echo "configure:1521: checking for remove in -lposix" >&5
  1521. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  1522. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1523.   echo $ac_n "(cached) $ac_c" 1>&6
  1524. else
  1525.   ac_save_LIBS="$LIBS"
  1526. LIBS="-lposix  $LIBS"
  1527. cat > conftest.$ac_ext <<EOF
  1528. #line 1529 "configure"
  1529. #include "confdefs.h"
  1530. /* Override any gcc2 internal prototype to avoid an error.  */
  1531. /* We use char because int might match the return type of a gcc2
  1532.     builtin and then its argument prototype would still apply.  */
  1533. char remove();
  1534.  
  1535. int main() {
  1536. remove()
  1537. ; return 0; }
  1538. EOF
  1539. if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1540.   rm -rf conftest*
  1541.   eval "ac_cv_lib_$ac_lib_var=yes"
  1542. else
  1543.   echo "configure: failed program was:" >&5
  1544.   cat conftest.$ac_ext >&5
  1545.   rm -rf conftest*
  1546.   eval "ac_cv_lib_$ac_lib_var=no"
  1547. fi
  1548. rm -f conftest*
  1549. LIBS="$ac_save_LIBS"
  1550.  
  1551. fi
  1552. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1553.   echo "$ac_t""yes" 1>&6
  1554.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  1555. else
  1556.   echo "$ac_t""no" 1>&6
  1557. fi
  1558.  
  1559.     fi
  1560.  
  1561.     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  1562.     echo $ac_n "checking for shmat""... $ac_c" 1>&6
  1563. echo "configure:1564: checking for shmat" >&5
  1564. if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  1565.   echo $ac_n "(cached) $ac_c" 1>&6
  1566. else
  1567.   cat > conftest.$ac_ext <<EOF
  1568. #line 1569 "configure"
  1569. #include "confdefs.h"
  1570. /* System header to define __stub macros and hopefully few prototypes,
  1571.     which can conflict with char shmat(); below.  */
  1572. #include <assert.h>
  1573. /* Override any gcc2 internal prototype to avoid an error.  */
  1574. /* We use char because int might match the return type of a gcc2
  1575.     builtin and then its argument prototype would still apply.  */
  1576. char shmat();
  1577.  
  1578. int main() {
  1579.  
  1580. /* The GNU C library defines this for functions which it implements
  1581.     to always fail with ENOSYS.  Some functions are actually named
  1582.     something starting with __ and the normal name is an alias.  */
  1583. #if defined (__stub_shmat) || defined (__stub___shmat)
  1584. choke me
  1585. #else
  1586. shmat();
  1587. #endif
  1588.  
  1589. ; return 0; }
  1590. EOF
  1591. if { (eval echo configure:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1592.   rm -rf conftest*
  1593.   eval "ac_cv_func_shmat=yes"
  1594. else
  1595.   echo "configure: failed program was:" >&5
  1596.   cat conftest.$ac_ext >&5
  1597.   rm -rf conftest*
  1598.   eval "ac_cv_func_shmat=no"
  1599. fi
  1600. rm -f conftest*
  1601. fi
  1602.  
  1603. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  1604.   echo "$ac_t""yes" 1>&6
  1605.   :
  1606. else
  1607.   echo "$ac_t""no" 1>&6
  1608. fi
  1609.  
  1610.     if test $ac_cv_func_shmat = no; then
  1611.       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  1612. echo "configure:1613: checking for shmat in -lipc" >&5
  1613. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  1614. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1615.   echo $ac_n "(cached) $ac_c" 1>&6
  1616. else
  1617.   ac_save_LIBS="$LIBS"
  1618. LIBS="-lipc  $LIBS"
  1619. cat > conftest.$ac_ext <<EOF
  1620. #line 1621 "configure"
  1621. #include "confdefs.h"
  1622. /* Override any gcc2 internal prototype to avoid an error.  */
  1623. /* We use char because int might match the return type of a gcc2
  1624.     builtin and then its argument prototype would still apply.  */
  1625. char shmat();
  1626.  
  1627. int main() {
  1628. shmat()
  1629. ; return 0; }
  1630. EOF
  1631. if { (eval echo configure:1632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1632.   rm -rf conftest*
  1633.   eval "ac_cv_lib_$ac_lib_var=yes"
  1634. else
  1635.   echo "configure: failed program was:" >&5
  1636.   cat conftest.$ac_ext >&5
  1637.   rm -rf conftest*
  1638.   eval "ac_cv_lib_$ac_lib_var=no"
  1639. fi
  1640. rm -f conftest*
  1641. LIBS="$ac_save_LIBS"
  1642.  
  1643. fi
  1644. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1645.   echo "$ac_t""yes" 1>&6
  1646.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  1647. else
  1648.   echo "$ac_t""no" 1>&6
  1649. fi
  1650.  
  1651.     fi
  1652.   fi
  1653.  
  1654.   # Check for libraries that X11R6 Xt/Xaw programs need.
  1655.   ac_save_LDFLAGS="$LDFLAGS"
  1656.   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  1657.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  1658.   # check for ICE first), but we must link in the order -lSM -lICE or
  1659.   # we get undefined symbols.  So assume we have SM if we have ICE.
  1660.   # These have to be linked with before -lX11, unlike the other
  1661.   # libraries we check for below, so use a different variable.
  1662.   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  1663.   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  1664. echo "configure:1665: checking for IceConnectionNumber in -lICE" >&5
  1665. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  1666. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1667.   echo $ac_n "(cached) $ac_c" 1>&6
  1668. else
  1669.   ac_save_LIBS="$LIBS"
  1670. LIBS="-lICE  $LIBS"
  1671. cat > conftest.$ac_ext <<EOF
  1672. #line 1673 "configure"
  1673. #include "confdefs.h"
  1674. /* Override any gcc2 internal prototype to avoid an error.  */
  1675. /* We use char because int might match the return type of a gcc2
  1676.     builtin and then its argument prototype would still apply.  */
  1677. char IceConnectionNumber();
  1678.  
  1679. int main() {
  1680. IceConnectionNumber()
  1681. ; return 0; }
  1682. EOF
  1683. if { (eval echo configure:1684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1684.   rm -rf conftest*
  1685.   eval "ac_cv_lib_$ac_lib_var=yes"
  1686. else
  1687.   echo "configure: failed program was:" >&5
  1688.   cat conftest.$ac_ext >&5
  1689.   rm -rf conftest*
  1690.   eval "ac_cv_lib_$ac_lib_var=no"
  1691. fi
  1692. rm -f conftest*
  1693. LIBS="$ac_save_LIBS"
  1694.  
  1695. fi
  1696. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1697.   echo "$ac_t""yes" 1>&6
  1698.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  1699. else
  1700.   echo "$ac_t""no" 1>&6
  1701. fi
  1702.  
  1703.   LDFLAGS="$ac_save_LDFLAGS"
  1704.  
  1705. fi
  1706.  
  1707. ac_header_dirent=no
  1708. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1709. do
  1710. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1711. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1712. echo "configure:1713: checking for $ac_hdr that defines DIR" >&5
  1713. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1714.   echo $ac_n "(cached) $ac_c" 1>&6
  1715. else
  1716.   cat > conftest.$ac_ext <<EOF
  1717. #line 1718 "configure"
  1718. #include "confdefs.h"
  1719. #include <sys/types.h>
  1720. #include <$ac_hdr>
  1721. int main() {
  1722. DIR *dirp = 0;
  1723. ; return 0; }
  1724. EOF
  1725. if { (eval echo configure:1726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1726.   rm -rf conftest*
  1727.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1728. else
  1729.   echo "configure: failed program was:" >&5
  1730.   cat conftest.$ac_ext >&5
  1731.   rm -rf conftest*
  1732.   eval "ac_cv_header_dirent_$ac_safe=no"
  1733. fi
  1734. rm -f conftest*
  1735. fi
  1736. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1737.   echo "$ac_t""yes" 1>&6
  1738.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1739.   cat >> confdefs.h <<EOF
  1740. #define $ac_tr_hdr 1
  1741. EOF
  1742.  ac_header_dirent=$ac_hdr; break
  1743. else
  1744.   echo "$ac_t""no" 1>&6
  1745. fi
  1746. done
  1747. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1748. if test $ac_header_dirent = dirent.h; then
  1749. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  1750. echo "configure:1751: checking for opendir in -ldir" >&5
  1751. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  1752. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1753.   echo $ac_n "(cached) $ac_c" 1>&6
  1754. else
  1755.   ac_save_LIBS="$LIBS"
  1756. LIBS="-ldir  $LIBS"
  1757. cat > conftest.$ac_ext <<EOF
  1758. #line 1759 "configure"
  1759. #include "confdefs.h"
  1760. /* Override any gcc2 internal prototype to avoid an error.  */
  1761. /* We use char because int might match the return type of a gcc2
  1762.     builtin and then its argument prototype would still apply.  */
  1763. char opendir();
  1764.  
  1765. int main() {
  1766. opendir()
  1767. ; return 0; }
  1768. EOF
  1769. if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1770.   rm -rf conftest*
  1771.   eval "ac_cv_lib_$ac_lib_var=yes"
  1772. else
  1773.   echo "configure: failed program was:" >&5
  1774.   cat conftest.$ac_ext >&5
  1775.   rm -rf conftest*
  1776.   eval "ac_cv_lib_$ac_lib_var=no"
  1777. fi
  1778. rm -f conftest*
  1779. LIBS="$ac_save_LIBS"
  1780.  
  1781. fi
  1782. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1783.   echo "$ac_t""yes" 1>&6
  1784.   LIBS="$LIBS -ldir"
  1785. else
  1786.   echo "$ac_t""no" 1>&6
  1787. fi
  1788.  
  1789. else
  1790. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  1791. echo "configure:1792: checking for opendir in -lx" >&5
  1792. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  1793. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1794.   echo $ac_n "(cached) $ac_c" 1>&6
  1795. else
  1796.   ac_save_LIBS="$LIBS"
  1797. LIBS="-lx  $LIBS"
  1798. cat > conftest.$ac_ext <<EOF
  1799. #line 1800 "configure"
  1800. #include "confdefs.h"
  1801. /* Override any gcc2 internal prototype to avoid an error.  */
  1802. /* We use char because int might match the return type of a gcc2
  1803.     builtin and then its argument prototype would still apply.  */
  1804. char opendir();
  1805.  
  1806. int main() {
  1807. opendir()
  1808. ; return 0; }
  1809. EOF
  1810. if { (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1811.   rm -rf conftest*
  1812.   eval "ac_cv_lib_$ac_lib_var=yes"
  1813. else
  1814.   echo "configure: failed program was:" >&5
  1815.   cat conftest.$ac_ext >&5
  1816.   rm -rf conftest*
  1817.   eval "ac_cv_lib_$ac_lib_var=no"
  1818. fi
  1819. rm -f conftest*
  1820. LIBS="$ac_save_LIBS"
  1821.  
  1822. fi
  1823. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1824.   echo "$ac_t""yes" 1>&6
  1825.   LIBS="$LIBS -lx"
  1826. else
  1827.   echo "$ac_t""no" 1>&6
  1828. fi
  1829.  
  1830. fi
  1831.  
  1832. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1833. echo "configure:1834: checking for ANSI C header files" >&5
  1834. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1835.   echo $ac_n "(cached) $ac_c" 1>&6
  1836. else
  1837.   cat > conftest.$ac_ext <<EOF
  1838. #line 1839 "configure"
  1839. #include "confdefs.h"
  1840. #include <stdlib.h>
  1841. #include <stdarg.h>
  1842. #include <string.h>
  1843. #include <float.h>
  1844. EOF
  1845. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1846. { (eval echo configure:1847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1847. ac_err=`grep -v '^ *+' conftest.out`
  1848. if test -z "$ac_err"; then
  1849.   rm -rf conftest*
  1850.   ac_cv_header_stdc=yes
  1851. else
  1852.   echo "$ac_err" >&5
  1853.   echo "configure: failed program was:" >&5
  1854.   cat conftest.$ac_ext >&5
  1855.   rm -rf conftest*
  1856.   ac_cv_header_stdc=no
  1857. fi
  1858. rm -f conftest*
  1859.  
  1860. if test $ac_cv_header_stdc = yes; then
  1861.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1862. cat > conftest.$ac_ext <<EOF
  1863. #line 1864 "configure"
  1864. #include "confdefs.h"
  1865. #include <string.h>
  1866. EOF
  1867. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1868.   egrep "memchr" >/dev/null 2>&1; then
  1869.   :
  1870. else
  1871.   rm -rf conftest*
  1872.   ac_cv_header_stdc=no
  1873. fi
  1874. rm -f conftest*
  1875.  
  1876. fi
  1877.  
  1878. if test $ac_cv_header_stdc = yes; then
  1879.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1880. cat > conftest.$ac_ext <<EOF
  1881. #line 1882 "configure"
  1882. #include "confdefs.h"
  1883. #include <stdlib.h>
  1884. EOF
  1885. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1886.   egrep "free" >/dev/null 2>&1; then
  1887.   :
  1888. else
  1889.   rm -rf conftest*
  1890.   ac_cv_header_stdc=no
  1891. fi
  1892. rm -f conftest*
  1893.  
  1894. fi
  1895.  
  1896. if test $ac_cv_header_stdc = yes; then
  1897.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1898. if test "$cross_compiling" = yes; then
  1899.   :
  1900. else
  1901.   cat > conftest.$ac_ext <<EOF
  1902. #line 1903 "configure"
  1903. #include "confdefs.h"
  1904. #include <ctype.h>
  1905. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1906. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1907. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1908. int main () { int i; for (i = 0; i < 256; i++)
  1909. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1910. exit (0); }
  1911.  
  1912. EOF
  1913. if { (eval echo configure:1914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1914. then
  1915.   :
  1916. else
  1917.   echo "configure: failed program was:" >&5
  1918.   cat conftest.$ac_ext >&5
  1919.   rm -fr conftest*
  1920.   ac_cv_header_stdc=no
  1921. fi
  1922. rm -fr conftest*
  1923. fi
  1924.  
  1925. fi
  1926. fi
  1927.  
  1928. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1929. if test $ac_cv_header_stdc = yes; then
  1930.   cat >> confdefs.h <<\EOF
  1931. #define STDC_HEADERS 1
  1932. EOF
  1933.  
  1934. fi
  1935.  
  1936. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  1937. echo "configure:1938: checking for sys/wait.h that is POSIX.1 compatible" >&5
  1938. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1939.   echo $ac_n "(cached) $ac_c" 1>&6
  1940. else
  1941.   cat > conftest.$ac_ext <<EOF
  1942. #line 1943 "configure"
  1943. #include "confdefs.h"
  1944. #include <sys/types.h>
  1945. #include <sys/wait.h>
  1946. #ifndef WEXITSTATUS
  1947. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  1948. #endif
  1949. #ifndef WIFEXITED
  1950. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  1951. #endif
  1952. int main() {
  1953. int s;
  1954. wait (&s);
  1955. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  1956. ; return 0; }
  1957. EOF
  1958. if { (eval echo configure:1959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1959.   rm -rf conftest*
  1960.   ac_cv_header_sys_wait_h=yes
  1961. else
  1962.   echo "configure: failed program was:" >&5
  1963.   cat conftest.$ac_ext >&5
  1964.   rm -rf conftest*
  1965.   ac_cv_header_sys_wait_h=no
  1966. fi
  1967. rm -f conftest*
  1968. fi
  1969.  
  1970. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  1971. if test $ac_cv_header_sys_wait_h = yes; then
  1972.   cat >> confdefs.h <<\EOF
  1973. #define HAVE_SYS_WAIT_H 1
  1974. EOF
  1975.  
  1976. fi
  1977.  
  1978. for ac_hdr in fcntl.h unistd.h
  1979. do
  1980. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1981. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1982. echo "configure:1983: checking for $ac_hdr" >&5
  1983. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1984.   echo $ac_n "(cached) $ac_c" 1>&6
  1985. else
  1986.   cat > conftest.$ac_ext <<EOF
  1987. #line 1988 "configure"
  1988. #include "confdefs.h"
  1989. #include <$ac_hdr>
  1990. EOF
  1991. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1992. { (eval echo configure:1993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1993. ac_err=`grep -v '^ *+' conftest.out`
  1994. if test -z "$ac_err"; then
  1995.   rm -rf conftest*
  1996.   eval "ac_cv_header_$ac_safe=yes"
  1997. else
  1998.   echo "$ac_err" >&5
  1999.   echo "configure: failed program was:" >&5
  2000.   cat conftest.$ac_ext >&5
  2001.   rm -rf conftest*
  2002.   eval "ac_cv_header_$ac_safe=no"
  2003. fi
  2004. rm -f conftest*
  2005. fi
  2006. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2007.   echo "$ac_t""yes" 1>&6
  2008.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2009.   cat >> confdefs.h <<EOF
  2010. #define $ac_tr_hdr 1
  2011. EOF
  2012.  
  2013. else
  2014.   echo "$ac_t""no" 1>&6
  2015. fi
  2016. done
  2017.  
  2018. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2019. echo "configure:2020: checking return type of signal handlers" >&5
  2020. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  2021.   echo $ac_n "(cached) $ac_c" 1>&6
  2022. else
  2023.   cat > conftest.$ac_ext <<EOF
  2024. #line 2025 "configure"
  2025. #include "confdefs.h"
  2026. #include <sys/types.h>
  2027. #include <signal.h>
  2028. #ifdef signal
  2029. #undef signal
  2030. #endif
  2031. #ifdef __cplusplus
  2032. extern "C" void (*signal (int, void (*)(int)))(int);
  2033. #else
  2034. void (*signal ()) ();
  2035. #endif
  2036.  
  2037. int main() {
  2038. int i;
  2039. ; return 0; }
  2040. EOF
  2041. if { (eval echo configure:2042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2042.   rm -rf conftest*
  2043.   ac_cv_type_signal=void
  2044. else
  2045.   echo "configure: failed program was:" >&5
  2046.   cat conftest.$ac_ext >&5
  2047.   rm -rf conftest*
  2048.   ac_cv_type_signal=int
  2049. fi
  2050. rm -f conftest*
  2051. fi
  2052.  
  2053. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2054. cat >> confdefs.h <<EOF
  2055. #define RETSIGTYPE $ac_cv_type_signal
  2056. EOF
  2057.  
  2058.  
  2059. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  2060. echo "configure:2061: checking for vprintf" >&5
  2061. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  2062.   echo $ac_n "(cached) $ac_c" 1>&6
  2063. else
  2064.   cat > conftest.$ac_ext <<EOF
  2065. #line 2066 "configure"
  2066. #include "confdefs.h"
  2067. /* System header to define __stub macros and hopefully few prototypes,
  2068.     which can conflict with char vprintf(); below.  */
  2069. #include <assert.h>
  2070. /* Override any gcc2 internal prototype to avoid an error.  */
  2071. /* We use char because int might match the return type of a gcc2
  2072.     builtin and then its argument prototype would still apply.  */
  2073. char vprintf();
  2074.  
  2075. int main() {
  2076.  
  2077. /* The GNU C library defines this for functions which it implements
  2078.     to always fail with ENOSYS.  Some functions are actually named
  2079.     something starting with __ and the normal name is an alias.  */
  2080. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  2081. choke me
  2082. #else
  2083. vprintf();
  2084. #endif
  2085.  
  2086. ; return 0; }
  2087. EOF
  2088. if { (eval echo configure:2089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2089.   rm -rf conftest*
  2090.   eval "ac_cv_func_vprintf=yes"
  2091. else
  2092.   echo "configure: failed program was:" >&5
  2093.   cat conftest.$ac_ext >&5
  2094.   rm -rf conftest*
  2095.   eval "ac_cv_func_vprintf=no"
  2096. fi
  2097. rm -f conftest*
  2098. fi
  2099.  
  2100. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  2101.   echo "$ac_t""yes" 1>&6
  2102.   cat >> confdefs.h <<\EOF
  2103. #define HAVE_VPRINTF 1
  2104. EOF
  2105.  
  2106. else
  2107.   echo "$ac_t""no" 1>&6
  2108. fi
  2109.  
  2110. if test "$ac_cv_func_vprintf" != yes; then
  2111. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  2112. echo "configure:2113: checking for _doprnt" >&5
  2113. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  2114.   echo $ac_n "(cached) $ac_c" 1>&6
  2115. else
  2116.   cat > conftest.$ac_ext <<EOF
  2117. #line 2118 "configure"
  2118. #include "confdefs.h"
  2119. /* System header to define __stub macros and hopefully few prototypes,
  2120.     which can conflict with char _doprnt(); below.  */
  2121. #include <assert.h>
  2122. /* Override any gcc2 internal prototype to avoid an error.  */
  2123. /* We use char because int might match the return type of a gcc2
  2124.     builtin and then its argument prototype would still apply.  */
  2125. char _doprnt();
  2126.  
  2127. int main() {
  2128.  
  2129. /* The GNU C library defines this for functions which it implements
  2130.     to always fail with ENOSYS.  Some functions are actually named
  2131.     something starting with __ and the normal name is an alias.  */
  2132. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  2133. choke me
  2134. #else
  2135. _doprnt();
  2136. #endif
  2137.  
  2138. ; return 0; }
  2139. EOF
  2140. if { (eval echo configure:2141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2141.   rm -rf conftest*
  2142.   eval "ac_cv_func__doprnt=yes"
  2143. else
  2144.   echo "configure: failed program was:" >&5
  2145.   cat conftest.$ac_ext >&5
  2146.   rm -rf conftest*
  2147.   eval "ac_cv_func__doprnt=no"
  2148. fi
  2149. rm -f conftest*
  2150. fi
  2151.  
  2152. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  2153.   echo "$ac_t""yes" 1>&6
  2154.   cat >> confdefs.h <<\EOF
  2155. #define HAVE_DOPRNT 1
  2156. EOF
  2157.  
  2158. else
  2159.   echo "$ac_t""no" 1>&6
  2160. fi
  2161.  
  2162. fi
  2163.  
  2164. echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
  2165. echo "configure:2166: checking for wait3 that fills in rusage" >&5
  2166. if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
  2167.   echo $ac_n "(cached) $ac_c" 1>&6
  2168. else
  2169.   if test "$cross_compiling" = yes; then
  2170.   ac_cv_func_wait3_rusage=no
  2171. else
  2172.   cat > conftest.$ac_ext <<EOF
  2173. #line 2174 "configure"
  2174. #include "confdefs.h"
  2175. #include <sys/types.h>
  2176. #include <sys/time.h>
  2177. #include <sys/resource.h>
  2178. #include <stdio.h>
  2179. /* HP-UX has wait3 but does not fill in rusage at all.  */
  2180. main() {
  2181.   struct rusage r;
  2182.   int i;
  2183.   /* Use a field that we can force nonzero --
  2184.      voluntary context switches.
  2185.      For systems like NeXT and OSF/1 that don't set it,
  2186.      also use the system CPU time.  And page faults (I/O) for Linux.  */
  2187.   r.ru_nvcsw = 0;
  2188.   r.ru_stime.tv_sec = 0;
  2189.   r.ru_stime.tv_usec = 0;
  2190.   r.ru_majflt = r.ru_minflt = 0;
  2191.   switch (fork()) {
  2192.   case 0: /* Child.  */
  2193.     sleep(1); /* Give up the CPU.  */
  2194.     _exit(0);
  2195.   case -1: _exit(0); /* What can we do?  */
  2196.   default: /* Parent.  */
  2197.     wait3(&i, 0, &r);
  2198.     sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines.  */
  2199.     exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
  2200.      && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
  2201.   }
  2202. }
  2203. EOF
  2204. if { (eval echo configure:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2205. then
  2206.   ac_cv_func_wait3_rusage=yes
  2207. else
  2208.   echo "configure: failed program was:" >&5
  2209.   cat conftest.$ac_ext >&5
  2210.   rm -fr conftest*
  2211.   ac_cv_func_wait3_rusage=no
  2212. fi
  2213. rm -fr conftest*
  2214. fi
  2215.  
  2216. fi
  2217.  
  2218. echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
  2219. if test $ac_cv_func_wait3_rusage = yes; then
  2220.   cat >> confdefs.h <<\EOF
  2221. #define HAVE_WAIT3 1
  2222. EOF
  2223.  
  2224. fi
  2225.  
  2226. for ac_func in getcwd mkdir
  2227. do
  2228. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2229. echo "configure:2230: checking for $ac_func" >&5
  2230. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2231.   echo $ac_n "(cached) $ac_c" 1>&6
  2232. else
  2233.   cat > conftest.$ac_ext <<EOF
  2234. #line 2235 "configure"
  2235. #include "confdefs.h"
  2236. /* System header to define __stub macros and hopefully few prototypes,
  2237.     which can conflict with char $ac_func(); below.  */
  2238. #include <assert.h>
  2239. /* Override any gcc2 internal prototype to avoid an error.  */
  2240. /* We use char because int might match the return type of a gcc2
  2241.     builtin and then its argument prototype would still apply.  */
  2242. char $ac_func();
  2243.  
  2244. int main() {
  2245.  
  2246. /* The GNU C library defines this for functions which it implements
  2247.     to always fail with ENOSYS.  Some functions are actually named
  2248.     something starting with __ and the normal name is an alias.  */
  2249. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2250. choke me
  2251. #else
  2252. $ac_func();
  2253. #endif
  2254.  
  2255. ; return 0; }
  2256. EOF
  2257. if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2258.   rm -rf conftest*
  2259.   eval "ac_cv_func_$ac_func=yes"
  2260. else
  2261.   echo "configure: failed program was:" >&5
  2262.   cat conftest.$ac_ext >&5
  2263.   rm -rf conftest*
  2264.   eval "ac_cv_func_$ac_func=no"
  2265. fi
  2266. rm -f conftest*
  2267. fi
  2268.  
  2269. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2270.   echo "$ac_t""yes" 1>&6
  2271.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2272.   cat >> confdefs.h <<EOF
  2273. #define $ac_tr_func 1
  2274. EOF
  2275.  
  2276. else
  2277.   echo "$ac_t""no" 1>&6
  2278. fi
  2279. done
  2280.  
  2281. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  2282. echo "configure:2283: checking whether ln -s works" >&5
  2283. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  2284.   echo $ac_n "(cached) $ac_c" 1>&6
  2285. else
  2286.   rm -f conftestdata
  2287. if ln -s X conftestdata 2>/dev/null
  2288. then
  2289.   rm -f conftestdata
  2290.   ac_cv_prog_LN_S="ln -s"
  2291. else
  2292.   ac_cv_prog_LN_S=ln
  2293. fi
  2294. fi
  2295. LN_S="$ac_cv_prog_LN_S"
  2296. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  2297.   echo "$ac_t""yes" 1>&6
  2298. else
  2299.   echo "$ac_t""no" 1>&6
  2300. fi
  2301.  
  2302. # Extract the first word of "convert", so it can be a program name with args.
  2303. set dummy convert; ac_word=$2
  2304. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2305. echo "configure:2306: checking for $ac_word" >&5
  2306. if eval "test \"`echo '$''{'ac_cv_path_CONVERT'+set}'`\" = set"; then
  2307.   echo $ac_n "(cached) $ac_c" 1>&6
  2308. else
  2309.   case "$CONVERT" in
  2310.   /*)
  2311.   ac_cv_path_CONVERT="$CONVERT" # Let the user override the test with a path.
  2312.   ;;
  2313.   *)
  2314.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2315.   for ac_dir in $PATH; do
  2316.     test -z "$ac_dir" && ac_dir=.
  2317.     if test -f $ac_dir/$ac_word; then
  2318.       ac_cv_path_CONVERT="$ac_dir/$ac_word"
  2319.       break
  2320.     fi
  2321.   done
  2322.   IFS="$ac_save_ifs"
  2323.   test -z "$ac_cv_path_CONVERT" && ac_cv_path_CONVERT="$PATH:/bin:/usr/bin:/usr/local/bin:/usr/openwin/bin:/usr/local/openwin/bin:/usr/local/X11/bin:/usr/X11/bin:/usr/X11R6/bin"
  2324.   ;;
  2325. esac
  2326. fi
  2327. CONVERT="$ac_cv_path_CONVERT"
  2328. if test -n "$CONVERT"; then
  2329.   echo "$ac_t""$CONVERT" 1>&6
  2330. else
  2331.   echo "$ac_t""no" 1>&6
  2332. fi
  2333.  
  2334. # Extract the first word of "tgatoppm", so it can be a program name with args.
  2335. set dummy tgatoppm; ac_word=$2
  2336. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2337. echo "configure:2338: checking for $ac_word" >&5
  2338. if eval "test \"`echo '$''{'ac_cv_path_GIFTOPPM'+set}'`\" = set"; then
  2339.   echo $ac_n "(cached) $ac_c" 1>&6
  2340. else
  2341.   case "$GIFTOPPM" in
  2342.   /*)
  2343.   ac_cv_path_GIFTOPPM="$GIFTOPPM" # Let the user override the test with a path.
  2344.   ;;
  2345.   *)
  2346.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2347.   for ac_dir in $PATH; do
  2348.     test -z "$ac_dir" && ac_dir=.
  2349.     if test -f $ac_dir/$ac_word; then
  2350.       ac_cv_path_GIFTOPPM="$ac_dir/$ac_word"
  2351.       break
  2352.     fi
  2353.   done
  2354.   IFS="$ac_save_ifs"
  2355.   test -z "$ac_cv_path_GIFTOPPM" && ac_cv_path_GIFTOPPM="$PATH:/bin:/usr/bin:/usr/local/bin:/usr/openwin/bin:/usr/local/openwin/bin:/usr/local/X11/bin:/usr/X11/bin:/usr/X11R6/bin"
  2356.   ;;
  2357. esac
  2358. fi
  2359. GIFTOPPM="$ac_cv_path_GIFTOPPM"
  2360. if test -n "$GIFTOPPM"; then
  2361.   echo "$ac_t""$GIFTOPPM" 1>&6
  2362. else
  2363.   echo "$ac_t""no" 1>&6
  2364. fi
  2365.  
  2366. # Extract the first word of "djpeg", so it can be a program name with args.
  2367. set dummy djpeg; ac_word=$2
  2368. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2369. echo "configure:2370: checking for $ac_word" >&5
  2370. if eval "test \"`echo '$''{'ac_cv_path_DJPEG'+set}'`\" = set"; then
  2371.   echo $ac_n "(cached) $ac_c" 1>&6
  2372. else
  2373.   case "$DJPEG" in
  2374.   /*)
  2375.   ac_cv_path_DJPEG="$DJPEG" # Let the user override the test with a path.
  2376.   ;;
  2377.   *)
  2378.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2379.   for ac_dir in $PATH; do
  2380.     test -z "$ac_dir" && ac_dir=.
  2381.     if test -f $ac_dir/$ac_word; then
  2382.       ac_cv_path_DJPEG="$ac_dir/$ac_word"
  2383.       break
  2384.     fi
  2385.   done
  2386.   IFS="$ac_save_ifs"
  2387.   test -z "$ac_cv_path_DJPEG" && ac_cv_path_DJPEG="$PATH:/bin:/usr/bin:/usr/local/bin:/usr/openwin/bin:/usr/local/openwin/bin:/usr/local/X11/bin:/usr/X11/bin:/usr/X11R6/bin"
  2388.   ;;
  2389. esac
  2390. fi
  2391. DJPEG="$ac_cv_path_DJPEG"
  2392. if test -n "$DJPEG"; then
  2393.   echo "$ac_t""$DJPEG" 1>&6
  2394. else
  2395.   echo "$ac_t""no" 1>&6
  2396. fi
  2397.  
  2398. echo $ac_n "checking for fopen in -lc""... $ac_c" 1>&6
  2399. echo "configure:2400: checking for fopen in -lc" >&5
  2400. ac_lib_var=`echo c'_'fopen | sed 'y%./+-%__p_%'`
  2401. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2402.   echo $ac_n "(cached) $ac_c" 1>&6
  2403. else
  2404.   ac_save_LIBS="$LIBS"
  2405. LIBS="-lc \
  2406. ${LIBS} ${X_LIBS} -lX11 -lXext -lc  $LIBS"
  2407. cat > conftest.$ac_ext <<EOF
  2408. #line 2409 "configure"
  2409. #include "confdefs.h"
  2410. /* Override any gcc2 internal prototype to avoid an error.  */
  2411. /* We use char because int might match the return type of a gcc2
  2412.     builtin and then its argument prototype would still apply.  */
  2413. char fopen();
  2414.  
  2415. int main() {
  2416. fopen()
  2417. ; return 0; }
  2418. EOF
  2419. if { (eval echo configure:2420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2420.   rm -rf conftest*
  2421.   eval "ac_cv_lib_$ac_lib_var=yes"
  2422. else
  2423.   echo "configure: failed program was:" >&5
  2424.   cat conftest.$ac_ext >&5
  2425.   rm -rf conftest*
  2426.   eval "ac_cv_lib_$ac_lib_var=no"
  2427. fi
  2428. rm -f conftest*
  2429. LIBS="$ac_save_LIBS"
  2430.  
  2431. fi
  2432. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2433.   echo "$ac_t""yes" 1>&6
  2434.   ""
  2435. else
  2436.   echo "$ac_t""no" 1>&6
  2437. \
  2438. echo; \
  2439. echo "--------------------------------------------------------------------------------"; \
  2440. echo "                                   E R R O R"; \
  2441. echo "--------------------------------------------------------------------------------"; \
  2442. echo "It appears you do not have a version of libc accessible to"; \
  2443. echo "compile Enlightenment for. You need to get this library first";
  2444. echo "--------------------------------------------------------------------------------"; \
  2445. echo; \
  2446. exit
  2447. fi
  2448.  
  2449. echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
  2450. echo "configure:2451: checking for pow in -lm" >&5
  2451. ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
  2452. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2453.   echo $ac_n "(cached) $ac_c" 1>&6
  2454. else
  2455.   ac_save_LIBS="$LIBS"
  2456. LIBS="-lm \
  2457. ${LIBS} ${X_LIBS} -L/usr/local/lib -L/usr/local/X11/lib -L/usr/openwin/lib \
  2458. -L/usr/X11/lib -L/usr/lib -L/lib -L/opt/lib \
  2459. -lX11 -lXext -lm -lc  $LIBS"
  2460. cat > conftest.$ac_ext <<EOF
  2461. #line 2462 "configure"
  2462. #include "confdefs.h"
  2463. /* Override any gcc2 internal prototype to avoid an error.  */
  2464. /* We use char because int might match the return type of a gcc2
  2465.     builtin and then its argument prototype would still apply.  */
  2466. char pow();
  2467.  
  2468. int main() {
  2469. pow()
  2470. ; return 0; }
  2471. EOF
  2472. if { (eval echo configure:2473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2473.   rm -rf conftest*
  2474.   eval "ac_cv_lib_$ac_lib_var=yes"
  2475. else
  2476.   echo "configure: failed program was:" >&5
  2477.   cat conftest.$ac_ext >&5
  2478.   rm -rf conftest*
  2479.   eval "ac_cv_lib_$ac_lib_var=no"
  2480. fi
  2481. rm -f conftest*
  2482. LIBS="$ac_save_LIBS"
  2483.  
  2484. fi
  2485. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2486.   echo "$ac_t""yes" 1>&6
  2487.   ""
  2488. else
  2489.   echo "$ac_t""no" 1>&6
  2490. \
  2491. echo; \
  2492. echo "--------------------------------------------------------------------------------"; \
  2493. echo "                                   E R R O R"; \
  2494. echo "--------------------------------------------------------------------------------"; \
  2495. echo "It appears you do not have a version of libm accessible to"; \
  2496. echo "compile Enlightenment for. You need to get this library first";
  2497. echo "--------------------------------------------------------------------------------"; \
  2498. echo; \
  2499. exit
  2500. fi
  2501.  
  2502. echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
  2503. echo "configure:2504: checking for XOpenDisplay in -lX11" >&5
  2504. ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
  2505. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2506.   echo $ac_n "(cached) $ac_c" 1>&6
  2507. else
  2508.   ac_save_LIBS="$LIBS"
  2509. LIBS="-lX11 \
  2510. ${LIBS} ${X_LIBS} -L/usr/local/lib -L/usr/local/X11/lib -L/usr/openwin/lib \
  2511. -L/usr/X11/lib -L/usr/lib -L/lib -L/opt/lib \
  2512. -lX11 -lXext -lc  $LIBS"
  2513. cat > conftest.$ac_ext <<EOF
  2514. #line 2515 "configure"
  2515. #include "confdefs.h"
  2516. /* Override any gcc2 internal prototype to avoid an error.  */
  2517. /* We use char because int might match the return type of a gcc2
  2518.     builtin and then its argument prototype would still apply.  */
  2519. char XOpenDisplay();
  2520.  
  2521. int main() {
  2522. XOpenDisplay()
  2523. ; return 0; }
  2524. EOF
  2525. if { (eval echo configure:2526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2526.   rm -rf conftest*
  2527.   eval "ac_cv_lib_$ac_lib_var=yes"
  2528. else
  2529.   echo "configure: failed program was:" >&5
  2530.   cat conftest.$ac_ext >&5
  2531.   rm -rf conftest*
  2532.   eval "ac_cv_lib_$ac_lib_var=no"
  2533. fi
  2534. rm -f conftest*
  2535. LIBS="$ac_save_LIBS"
  2536.  
  2537. fi
  2538. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2539.   echo "$ac_t""yes" 1>&6
  2540.   ""
  2541. else
  2542.   echo "$ac_t""no" 1>&6
  2543. \
  2544. echo; \
  2545. echo "--------------------------------------------------------------------------------"; \
  2546. echo "                                   E R R O R"; \
  2547. echo "--------------------------------------------------------------------------------"; \
  2548. echo "It appears you do not have a Xlib installed. It's pretty useless trying"; \
  2549. echo "to compile Enlightenment when you don't have Xlib.";
  2550. echo "--------------------------------------------------------------------------------"; \
  2551. echo; \
  2552. exit
  2553. fi
  2554.  
  2555. echo $ac_n "checking for jpeg_stdio_src in -ljpeg""... $ac_c" 1>&6
  2556. echo "configure:2557: checking for jpeg_stdio_src in -ljpeg" >&5
  2557. ac_lib_var=`echo jpeg'_'jpeg_stdio_src | sed 'y%./+-%__p_%'`
  2558. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2559.   echo $ac_n "(cached) $ac_c" 1>&6
  2560. else
  2561.   ac_save_LIBS="$LIBS"
  2562. LIBS="-ljpeg \
  2563. ${LIBS} ${X_LIBS} -L/usr/local/lib -L/usr/local/X11/lib -L/usr/openwin/lib \
  2564. -L/usr/X11/lib -L/usr/lib -L/lib -L/opt/lib \
  2565. -lX11 -lXext -ljpeg -lc  $LIBS"
  2566. cat > conftest.$ac_ext <<EOF
  2567. #line 2568 "configure"
  2568. #include "confdefs.h"
  2569. /* Override any gcc2 internal prototype to avoid an error.  */
  2570. /* We use char because int might match the return type of a gcc2
  2571.     builtin and then its argument prototype would still apply.  */
  2572. char jpeg_stdio_src();
  2573.  
  2574. int main() {
  2575. jpeg_stdio_src()
  2576. ; return 0; }
  2577. EOF
  2578. if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2579.   rm -rf conftest*
  2580.   eval "ac_cv_lib_$ac_lib_var=yes"
  2581. else
  2582.   echo "configure: failed program was:" >&5
  2583.   cat conftest.$ac_ext >&5
  2584.   rm -rf conftest*
  2585.   eval "ac_cv_lib_$ac_lib_var=no"
  2586. fi
  2587. rm -f conftest*
  2588. LIBS="$ac_save_LIBS"
  2589.  
  2590. fi
  2591. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2592.   echo "$ac_t""yes" 1>&6
  2593.   ""
  2594. else
  2595.   echo "$ac_t""no" 1>&6
  2596. \
  2597. echo; \
  2598. echo "--------------------------------------------------------------------------------"; \
  2599. echo "                                   E R R O R"; \
  2600. echo "--------------------------------------------------------------------------------"; \
  2601. echo "It appears you do not have a version of libjpeg accessible to"; \
  2602. echo "compile Enlightenment for. You need to get this library first";
  2603. echo "--------------------------------------------------------------------------------"; \
  2604. echo; \
  2605. exit
  2606. fi
  2607.  
  2608. echo $ac_n "checking for zlibVersion in -lz""... $ac_c" 1>&6
  2609. echo "configure:2610: checking for zlibVersion in -lz" >&5
  2610. ac_lib_var=`echo z'_'zlibVersion | sed 'y%./+-%__p_%'`
  2611. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2612.   echo $ac_n "(cached) $ac_c" 1>&6
  2613. else
  2614.   ac_save_LIBS="$LIBS"
  2615. LIBS="-lz \
  2616. ${LIBS} ${X_LIBS} -L/usr/local/lib -L/usr/local/X11/lib -L/usr/openwin/lib \
  2617. -L/usr/X11/lib -L/usr/lib -L/lib -L/opt/lib \
  2618. -lX11 -lXext -lz -lm -lc  $LIBS"
  2619. cat > conftest.$ac_ext <<EOF
  2620. #line 2621 "configure"
  2621. #include "confdefs.h"
  2622. /* Override any gcc2 internal prototype to avoid an error.  */
  2623. /* We use char because int might match the return type of a gcc2
  2624.     builtin and then its argument prototype would still apply.  */
  2625. char zlibVersion();
  2626.  
  2627. int main() {
  2628. zlibVersion()
  2629. ; return 0; }
  2630. EOF
  2631. if { (eval echo configure:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2632.   rm -rf conftest*
  2633.   eval "ac_cv_lib_$ac_lib_var=yes"
  2634. else
  2635.   echo "configure: failed program was:" >&5
  2636.   cat conftest.$ac_ext >&5
  2637.   rm -rf conftest*
  2638.   eval "ac_cv_lib_$ac_lib_var=no"
  2639. fi
  2640. rm -f conftest*
  2641. LIBS="$ac_save_LIBS"
  2642.  
  2643. fi
  2644. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2645.   echo "$ac_t""yes" 1>&6
  2646.   ""
  2647. else
  2648.   echo "$ac_t""no" 1>&6
  2649. \
  2650. echo; \
  2651. echo "--------------------------------------------------------------------------------"; \
  2652. echo "                                   E R R O R"; \
  2653. echo "--------------------------------------------------------------------------------"; \
  2654. echo "It appears you do not have a version of libz accessible to"; \
  2655. echo "compile Enlightenment for. You need to get this library first";
  2656. echo "--------------------------------------------------------------------------------"; \
  2657. echo; \
  2658. exit
  2659. fi
  2660.  
  2661. echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
  2662. echo "configure:2663: checking for png_check_sig in -lpng" >&5
  2663. ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
  2664. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2665.   echo $ac_n "(cached) $ac_c" 1>&6
  2666. else
  2667.   ac_save_LIBS="$LIBS"
  2668. LIBS="-lpng \
  2669. ${LIBS} ${X_LIBS} -L/usr/local/lib -L/usr/local/X11/lib -L/usr/openwin/lib \
  2670. -L/usr/X11/lib -L/usr/lib -L/lib -L/opt/lib \
  2671. -lX11 -lXext -lz -lm -lpng -lc  $LIBS"
  2672. cat > conftest.$ac_ext <<EOF
  2673. #line 2674 "configure"
  2674. #include "confdefs.h"
  2675. /* Override any gcc2 internal prototype to avoid an error.  */
  2676. /* We use char because int might match the return type of a gcc2
  2677.     builtin and then its argument prototype would still apply.  */
  2678. char png_check_sig();
  2679.  
  2680. int main() {
  2681. png_check_sig()
  2682. ; return 0; }
  2683. EOF
  2684. if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2685.   rm -rf conftest*
  2686.   eval "ac_cv_lib_$ac_lib_var=yes"
  2687. else
  2688.   echo "configure: failed program was:" >&5
  2689.   cat conftest.$ac_ext >&5
  2690.   rm -rf conftest*
  2691.   eval "ac_cv_lib_$ac_lib_var=no"
  2692. fi
  2693. rm -f conftest*
  2694. LIBS="$ac_save_LIBS"
  2695.  
  2696. fi
  2697. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2698.   echo "$ac_t""yes" 1>&6
  2699.   ""
  2700. else
  2701.   echo "$ac_t""no" 1>&6
  2702. \
  2703. echo; \
  2704. echo "--------------------------------------------------------------------------------"; \
  2705. echo "                                   E R R O R"; \
  2706. echo "--------------------------------------------------------------------------------"; \
  2707. echo "It appears you do not have a version of libpng accessible to"; \
  2708. echo "compile Enlightenment for. You need to get this library first";
  2709. echo "--------------------------------------------------------------------------------"; \
  2710. echo; \
  2711. exit
  2712. fi
  2713.  
  2714. echo $ac_n "checking for ImlibSaveImageToPPM in -lIm""... $ac_c" 1>&6
  2715. echo "configure:2716: checking for ImlibSaveImageToPPM in -lIm" >&5
  2716. ac_lib_var=`echo Im'_'ImlibSaveImageToPPM | sed 'y%./+-%__p_%'`
  2717. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2718.   echo $ac_n "(cached) $ac_c" 1>&6
  2719. else
  2720.   ac_save_LIBS="$LIBS"
  2721. LIBS="-lIm \
  2722. ${LIBS} ${X_LIBS} -L/usr/local/lib -L/usr/local/X11/lib -L/usr/openwin/lib \
  2723. -L/usr/X11/lib -L/usr/lib -L/lib -L/opt/lib \
  2724. -lX11 -lXext -lz -lm -lpng -ljpeg -lc  $LIBS"
  2725. cat > conftest.$ac_ext <<EOF
  2726. #line 2727 "configure"
  2727. #include "confdefs.h"
  2728. /* Override any gcc2 internal prototype to avoid an error.  */
  2729. /* We use char because int might match the return type of a gcc2
  2730.     builtin and then its argument prototype would still apply.  */
  2731. char ImlibSaveImageToPPM();
  2732.  
  2733. int main() {
  2734. ImlibSaveImageToPPM()
  2735. ; return 0; }
  2736. EOF
  2737. if { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2738.   rm -rf conftest*
  2739.   eval "ac_cv_lib_$ac_lib_var=yes"
  2740. else
  2741.   echo "configure: failed program was:" >&5
  2742.   cat conftest.$ac_ext >&5
  2743.   rm -rf conftest*
  2744.   eval "ac_cv_lib_$ac_lib_var=no"
  2745. fi
  2746. rm -f conftest*
  2747. LIBS="$ac_save_LIBS"
  2748.  
  2749. fi
  2750. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2751.   echo "$ac_t""yes" 1>&6
  2752.   ""
  2753. else
  2754.   echo "$ac_t""no" 1>&6
  2755. \
  2756. echo; \
  2757. echo "--------------------------------------------------------------------------------"; \
  2758. echo "                                   E R R O R"; \
  2759. echo "--------------------------------------------------------------------------------"; \
  2760. echo "It appears you do not have a version of Imlib recent enough to"; \
  2761. echo "compile Enlightenment for. You need to upgrade Imlib first";
  2762. echo "--------------------------------------------------------------------------------"; \
  2763. echo; \
  2764. exit
  2765. fi
  2766.  
  2767. trap '' 1 2 15
  2768. cat > confcache <<\EOF
  2769. # This file is a shell script that caches the results of configure
  2770. # tests run on this system so they can be shared between configure
  2771. # scripts and configure runs.  It is not useful on other systems.
  2772. # If it contains results you don't want to keep, you may remove or edit it.
  2773. #
  2774. # By default, configure uses ./config.cache as the cache file,
  2775. # creating it if it does not exist already.  You can give configure
  2776. # the --cache-file=FILE option to use a different cache file; that is
  2777. # what configure does when it calls configure scripts in
  2778. # subdirectories, so they share the cache.
  2779. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2780. # config.status only pays attention to the cache file if you give it the
  2781. # --recheck option to rerun configure.
  2782. #
  2783. EOF
  2784. # The following way of writing the cache mishandles newlines in values,
  2785. # but we know of no workaround that is simple, portable, and efficient.
  2786. # So, don't put newlines in cache variables' values.
  2787. # Ultrix sh set writes to stderr and can't be redirected directly,
  2788. # and sets the high bit in the cache file unless we assign to the vars.
  2789. (set) 2>&1 |
  2790.   case `(ac_space=' '; set) 2>&1` in
  2791.   *ac_space=\ *)
  2792.     # `set' does not quote correctly, so add quotes (double-quote substitution
  2793.     # turns \\\\ into \\, and sed turns \\ into \).
  2794.     sed -n \
  2795.       -e "s/'/'\\\\''/g" \
  2796.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2797.     ;;
  2798.   *)
  2799.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  2800.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2801.     ;;
  2802.   esac >> confcache
  2803. if cmp -s $cache_file confcache; then
  2804.   :
  2805. else
  2806.   if test -w $cache_file; then
  2807.     echo "updating cache $cache_file"
  2808.     cat confcache > $cache_file
  2809.   else
  2810.     echo "not updating unwritable cache $cache_file"
  2811.   fi
  2812. fi
  2813. rm -f confcache
  2814.  
  2815. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2816.  
  2817. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2818. # Let make expand exec_prefix.
  2819. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2820.  
  2821. # Any assignment to VPATH causes Sun make to only execute
  2822. # the first set of double-colon rules, so remove it if not needed.
  2823. # If there is a colon in the path, we need to keep it.
  2824. if test "x$srcdir" = x.; then
  2825.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2826. fi
  2827.  
  2828. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2829.  
  2830. # Transform confdefs.h into DEFS.
  2831. # Protect against shell expansion while executing Makefile rules.
  2832. # Protect against Makefile macro expansion.
  2833. cat > conftest.defs <<\EOF
  2834. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  2835. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  2836. s%\[%\\&%g
  2837. s%\]%\\&%g
  2838. s%\$%$$%g
  2839. EOF
  2840. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  2841. rm -f conftest.defs
  2842.  
  2843.  
  2844. # Without the "./", some shells look in PATH for config.status.
  2845. : ${CONFIG_STATUS=./config.status}
  2846.  
  2847. echo creating $CONFIG_STATUS
  2848. rm -f $CONFIG_STATUS
  2849. cat > $CONFIG_STATUS <<EOF
  2850. #! /bin/sh
  2851. # Generated automatically by configure.
  2852. # Run this file to recreate the current configuration.
  2853. # This directory was configured as follows,
  2854. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2855. #
  2856. # $0 $ac_configure_args
  2857. #
  2858. # Compiler output produced by configure, useful for debugging
  2859. # configure, is in ./config.log if it exists.
  2860.  
  2861. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2862. for ac_option
  2863. do
  2864.   case "\$ac_option" in
  2865.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2866.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2867.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2868.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2869.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  2870.     exit 0 ;;
  2871.   -help | --help | --hel | --he | --h)
  2872.     echo "\$ac_cs_usage"; exit 0 ;;
  2873.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2874.   esac
  2875. done
  2876.  
  2877. ac_given_srcdir=$srcdir
  2878. ac_given_INSTALL="$INSTALL"
  2879.  
  2880. trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2881. EOF
  2882. cat >> $CONFIG_STATUS <<EOF
  2883.  
  2884. # Protect against being on the right side of a sed subst in config.status.
  2885. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2886.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2887. $ac_vpsub
  2888. $extrasub
  2889. s%@CFLAGS@%$CFLAGS%g
  2890. s%@CPPFLAGS@%$CPPFLAGS%g
  2891. s%@CXXFLAGS@%$CXXFLAGS%g
  2892. s%@DEFS@%$DEFS%g
  2893. s%@LDFLAGS@%$LDFLAGS%g
  2894. s%@LIBS@%$LIBS%g
  2895. s%@exec_prefix@%$exec_prefix%g
  2896. s%@prefix@%$prefix%g
  2897. s%@program_transform_name@%$program_transform_name%g
  2898. s%@bindir@%$bindir%g
  2899. s%@sbindir@%$sbindir%g
  2900. s%@libexecdir@%$libexecdir%g
  2901. s%@datadir@%$datadir%g
  2902. s%@sysconfdir@%$sysconfdir%g
  2903. s%@sharedstatedir@%$sharedstatedir%g
  2904. s%@localstatedir@%$localstatedir%g
  2905. s%@libdir@%$libdir%g
  2906. s%@includedir@%$includedir%g
  2907. s%@oldincludedir@%$oldincludedir%g
  2908. s%@infodir@%$infodir%g
  2909. s%@mandir@%$mandir%g
  2910. s%@SET_MAKE@%$SET_MAKE%g
  2911. s%@CC@%$CC%g
  2912. s%@CPP@%$CPP%g
  2913. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2914. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2915. s%@X_CFLAGS@%$X_CFLAGS%g
  2916. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  2917. s%@X_LIBS@%$X_LIBS%g
  2918. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  2919. s%@LN_S@%$LN_S%g
  2920. s%@CONVERT@%$CONVERT%g
  2921. s%@GIFTOPPM@%$GIFTOPPM%g
  2922. s%@DJPEG@%$DJPEG%g
  2923.  
  2924. CEOF
  2925. EOF
  2926.  
  2927. cat >> $CONFIG_STATUS <<\EOF
  2928.  
  2929. # Split the substitutions into bite-sized pieces for seds with
  2930. # small command number limits, like on Digital OSF/1 and HP-UX.
  2931. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2932. ac_file=1 # Number of current file.
  2933. ac_beg=1 # First line for current file.
  2934. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2935. ac_more_lines=:
  2936. ac_sed_cmds=""
  2937. while $ac_more_lines; do
  2938.   if test $ac_beg -gt 1; then
  2939.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2940.   else
  2941.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2942.   fi
  2943.   if test ! -s conftest.s$ac_file; then
  2944.     ac_more_lines=false
  2945.     rm -f conftest.s$ac_file
  2946.   else
  2947.     if test -z "$ac_sed_cmds"; then
  2948.       ac_sed_cmds="sed -f conftest.s$ac_file"
  2949.     else
  2950.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2951.     fi
  2952.     ac_file=`expr $ac_file + 1`
  2953.     ac_beg=$ac_end
  2954.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2955.   fi
  2956. done
  2957. if test -z "$ac_sed_cmds"; then
  2958.   ac_sed_cmds=cat
  2959. fi
  2960. EOF
  2961.  
  2962. cat >> $CONFIG_STATUS <<EOF
  2963.  
  2964. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2965. EOF
  2966. cat >> $CONFIG_STATUS <<\EOF
  2967. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2968.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2969.   case "$ac_file" in
  2970.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2971.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2972.   *) ac_file_in="${ac_file}.in" ;;
  2973.   esac
  2974.  
  2975.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2976.  
  2977.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2978.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2979.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2980.     # The file is in a subdirectory.
  2981.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2982.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2983.     # A "../" for each directory in $ac_dir_suffix.
  2984.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2985.   else
  2986.     ac_dir_suffix= ac_dots=
  2987.   fi
  2988.  
  2989.   case "$ac_given_srcdir" in
  2990.   .)  srcdir=.
  2991.       if test -z "$ac_dots"; then top_srcdir=.
  2992.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2993.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2994.   *) # Relative path.
  2995.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2996.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2997.   esac
  2998.  
  2999.   case "$ac_given_INSTALL" in
  3000.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3001.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3002.   esac
  3003.  
  3004.   echo creating "$ac_file"
  3005.   rm -f "$ac_file"
  3006.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3007.   case "$ac_file" in
  3008.   *Makefile*) ac_comsub="1i\\
  3009. # $configure_input" ;;
  3010.   *) ac_comsub= ;;
  3011.   esac
  3012.  
  3013.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  3014.   sed -e "$ac_comsub
  3015. s%@configure_input@%$configure_input%g
  3016. s%@srcdir@%$srcdir%g
  3017. s%@top_srcdir@%$top_srcdir%g
  3018. s%@INSTALL@%$INSTALL%g
  3019. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  3020. fi; done
  3021. rm -f conftest.s*
  3022.  
  3023. EOF
  3024. cat >> $CONFIG_STATUS <<EOF
  3025.  
  3026. EOF
  3027. cat >> $CONFIG_STATUS <<\EOF
  3028.  
  3029. exit 0
  3030. EOF
  3031. chmod +x $CONFIG_STATUS
  3032. rm -fr confdefs* $ac_clean_files
  3033. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  3034.  
  3035.  
  3036. sleep 1
  3037. clear
  3038. echo "
  3039. --------------------------------------------------------------------------------
  3040.  
  3041.    E     N     L     I     G     H     T     E     N     M     E     N     T 
  3042.    
  3043. --------------------------------------------------------------------------------
  3044. ENLIGHTENMENT will be compiled and installed using the following information:
  3045.     Compiler              : ${CC}
  3046.     C Flags               : ${CFLAGS}
  3047.     Extra Include Flags   : ${CPPFLAGS}
  3048.     Extra Libs            : ${LIBS}
  3049.     X Includes            : ${X_CFLAGS}
  3050.     X Libs                : ${X_LIBS}
  3051.     Install Command       : ${INSTALL}
  3052.     SymLink Command       : ${LN_S}
  3053.     ImageMagick           : ${CONVERT}
  3054.     NetPBM                : ${GIFTOPPM}
  3055.     LibJPEG Commands      : ${DJPEG}
  3056. --------------------------------------------------------------------------------
  3057. Configuration complete and successful. Now type:
  3058.   make install
  3059. to compile and install enlightenment, or omit install just to compile.
  3060. --------------------------------------------------------------------------------
  3061. "
  3062.